diff --git a/CMakeLists.txt b/CMakeLists.txt index d8bacecb..10a416d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,14 @@ cmake_minimum_required(VERSION 2.8) project(PythonQt) #----------------------------------------------------------------------------- +# By default PythonQt is compiled in Release mode +IF(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + MESSAGE(STATUS "Setting build type to 'Release' as none was specified.") + SET(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE) + # Set the possible values of build type for cmake-gui + SET_PROPERTY(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo") +ENDIF(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + #----------------------------------------------------------------------------- # Python libraries @@ -14,224 +22,341 @@ add_definitions(-DPYTHONQT_USE_RELEASE_PYTHON_FALLBACK) #----------------------------------------------------------------------------- # Build options -option(PythonQt_Wrap_QtAll "Make all Qt components available in python" OFF) +set(PythonQt_QT_VERSION "" CACHE STRING "Choose which version of Qt (4 or 5) you wand to wrap") -set(qtlibs core gui network opengl sql svg uitools webkit xml xmlpatterns) -foreach(qtlib ${qtlibs}) - OPTION(PythonQt_Wrap_Qt${qtlib} "Make all of Qt${qtlib} available in python" OFF) -endforeach() +if (PythonQt_QT_VERSION VERSION_GREATER "4") + set(Qt5_CMAKE_PATH NOTFOUND CACHE PATH "Path containing the Qt5* folders with inside the Qt5*Config.cmake files.") +endif() + +if ((PythonQt_QT_VERSION AND (PythonQt_QT_VERSION VERSION_LESS "5")) OR Qt5_CMAKE_PATH) + + option(PythonQt_Wrap_QtAll "Make all Qt components available in python" OFF) + + set(qtlibs Core Gui Widgets Network OpenGL PrintSupport Sql Svg UiTools WebKit WebKitWidgets Xml XmlPatterns) + if (PythonQt_QT_VERSION VERSION_LESS "5") + set(qtlibs_lower) + foreach(qtlib ${qtlibs}) + string(TOLOWER ${qtlib} qtlib_lower) + list(APPEND qtlibs_lower ${qtlib_lower}) + endforeach() + set(qtlibs ${qtlibs_lower}) + else() + # Add Qt5 CMake path in CMAKE_PREFIX_PATH + SET(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${Qt5_CMAKE_PATH}) + endif() -# Force option if it applies -if(PythonQt_Wrap_QtAll) - list(REMOVE_ITEM qtlibs xmlpatterns) # xmlpatterns wrapper does *NOT* build at all :( foreach(qtlib ${qtlibs}) - if(NOT ${PythonQt_Wrap_Qt${qtlib}}) - set(PythonQt_Wrap_Qt${qtlib} ON CACHE BOOL "Make all of Qt${qtlib} available in python" FORCE) - message(STATUS "Enabling [PythonQt_Wrap_Qt${qtlib}] because of [PythonQt_Wrap_QtAll] evaluates to True") - endif() + if ((PythonQt_QT_VERSION VERSION_GREATER "4") AND (${qtlib} STREQUAL "Core")) + # Because the macro qt5_wrap_cpp is available in Qt5Core + OPTION(PythonQt_Wrap_Qt${qtlib} "Make all of Qt${qtlib} available in python" TRUE) + else () + OPTION(PythonQt_Wrap_Qt${qtlib} "Make all of Qt${qtlib} available in python" FALSE) + endif () endforeach() -endif() -option(PythonQt_DEBUG "Enable/Disable PythonQt debug output" OFF) -if(PythonQt_DEBUG) - add_definitions(-DPYTHONQT_DEBUG) -else() - remove_definitions(-DPYTHONQT_DEBUG) -endif() + # TODO: xmlpatterns wrapper does *NOT* build at all :( + list(REMOVE_ITEM qtlibs XmlPatterns) + list(REMOVE_ITEM qtlibs xmlpatterns) + + # Force option if it applies + if(PythonQt_Wrap_QtAll) + foreach(qtlib ${qtlibs}) + if(NOT ${PythonQt_Wrap_Qt${qtlib}}) + set(PythonQt_Wrap_Qt${qtlib} ON CACHE BOOL "Make all of Qt${qtlib} available in python" FORCE) + message(STATUS "Enabling [PythonQt_Wrap_Qt${qtlib}] because of [PythonQt_Wrap_QtAll] evaluates to True") + endif() + endforeach() + endif() + + option(PythonQt_DEBUG "Enable/Disable PythonQt debug output" OFF) + if(PythonQt_DEBUG) + add_definitions(-DPYTHONQT_DEBUG) + else() + remove_definitions(-DPYTHONQT_DEBUG) + endif() #----------------------------------------------------------------------------- # Setup Qt -set(minimum_required_qt_version "4.6.2") + set(minimum_required_qt_version "4.6.2") + + if (PythonQt_QT_VERSION VERSION_GREATER "4") + + set(QT_LIBRARIES) + foreach(qtlib ${qtlibs}) + if (${PythonQt_Wrap_Qt${qtlib}}) + find_package(Qt5${qtlib}) + include_directories(${Qt5${qtlib}_INCLUDE_DIRS}) + add_definitions(${Qt5${qtlib}_DEFINITIONS}) + list(APPEND QT_LIBRARIES ${Qt5${qtlib}_LIBRARIES}) + foreach(dep ${_Qt5${qtlib}_MODULE_DEPENDENCIES}) + if (NOT ${PythonQt_Wrap_Qt${dep}}) + set(PythonQt_Wrap_Qt${dep} ON CACHE BOOL "Make all of Qt${dep} available in python" FORCE) + message(STATUS "Module Qt${dep} has been activated (Required to wrap the module ${qtlib}).") + endif() + endforeach() + endif() + endforeach() + + if (BUILD_TESTING) + find_package(Qt5Test REQUIRED) + endif() + + else() + find_package(Qt4) -find_package(Qt4) + if(QT4_FOUND) -if(QT4_FOUND) + set(found_qt_version ${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}.${QT_VERSION_PATCH}) - set(found_qt_version ${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}.${QT_VERSION_PATCH}) + if(${found_qt_version} VERSION_LESS ${minimum_required_qt_version}) + message(FATAL_ERROR "error: PythonQt requires Qt >= ${minimum_required_qt_version} -- you cannot use Qt ${found_qt_version}.") + endif() - if(${found_qt_version} VERSION_LESS ${minimum_required_qt_version}) - message(FATAL_ERROR "error: PythonQt requires Qt >= ${minimum_required_qt_version} -- you cannot use Qt ${found_qt_version}.") - endif() - - # Enable required qt module - foreach(qtlib network opengl sql svg uitools webkit xml xmlpatterns) - string(TOUPPER ${qtlib} qtlib_uppercase) - if (NOT ${QT_QT${qtlib_uppercase}_FOUND}) - message(FATAL_ERROR "QT_QT${${qtlib_uppercase} *not* FOUND - Try to disable PythonQt_Wrap_Qt${qtlib}") + # Enable required qt module + set(qt4libs ${qtlibs}) + list(REMOVE_ITEM qt4libs core gui widgets) + foreach(qtlib ${qt4libs}) + string(TOUPPER ${qtlib} qtlib_uppercase) + if (NOT ${QT_QT${qtlib_uppercase}_FOUND}) + message(FATAL_ERROR "QT_QT${qtlib_uppercase} *not* FOUND - Try to disable PythonQt_Wrap_Qt${qtlib}") + endif() + set(QT_USE_QT${qtlib_uppercase} ${PythonQt_Wrap_Qt${qtlib}}) + endforeach() + + # Enable QtTest in Qt4 is the option BUILD_TESTING was activated + set(QT_USE_QTTEST ${BUILD_TESTING}) + + include(${QT_USE_FILE}) + else() + message(FATAL_ERROR "error: Qt4 was not found on your system. You probably need to set the QT_QMAKE_EXECUTABLE variable") endif() - set(QT_USE_QT${qtlib_uppercase} ${PythonQt_Wrap_Qt${qtlib}}) - endforeach() - set(QT_USE_QTTEST ${BUILD_TESTING}) + endif() - include(${QT_USE_FILE}) +#----------------------------------------------------------------------------- +# Print a summary of the wrapped module +message(STATUS "\nQt modules wrapped" ) +message(STATUS "==================") +foreach(qtlib ${qtlibs}) + if (${PythonQt_Wrap_Qt${qtlib}}) + string(TOLOWER ${qtlib} qtlib_lower) + if ("${qtlib_lower}" STREQUAL "widgets") + message(STATUS " - ${qtlib} ... Yes (included in PythonQt.QtGui namespace)") + elseif ("${qtlib_lower}" STREQUAL "printsupport") + message(STATUS " - ${qtlib} ... Yes (included in PythonQt.QtGui namespace)") + elseif ("${qtlib_lower}" STREQUAL "webkitwidgets") + message(STATUS " - ${qtlib} ... Yes (included in PythonQt.QtWebKit namespace)") + else() + message(STATUS " - ${qtlib} ... Yes") + endif() + else() + message(STATUS " - ${qtlib} ... No") + endif() +endforeach() +if (PythonQt_QT_VERSION VERSION_GREATER "4") + message(STATUS "\nIMPORTANT: In case you reconfigure and regenerate the project to wrap new modules,\nit is clearly advised to clean first the build. Otherwise you could have lots of\nlinker errors as the moc files will not be regenerated. This issue is related to\nthe way the module QtWidgets, QtPrintSupport and QtWebKitWidgets are integrated in\nthe sources of PythonQt.\n") else() - message(FATAL_ERROR "error: Qt4 was not found on your system. You probably need to set the QT_QMAKE_EXECUTABLE variable") + message(STATUS "\n") endif() #----------------------------------------------------------------------------- # The variable "generated_cpp_suffix" allows to conditionnally compile the generated wrappers # associated with the Qt version being used. -set(generated_cpp_suffix "_${QT_VERSION_MAJOR}${QT_VERSION_MINOR}") -if("${generated_cpp_suffix}" STREQUAL "_48") set(generated_cpp_suffix "") -endif() -if("${generated_cpp_suffix}" STREQUAL "_46") - set(generated_cpp_suffix "_47") # Also use 4.7 wrappers for 4.6.x version -endif() + if (PythonQt_QT_VERSION VERSION_GREATER "4") + set(generated_cpp_suffix "_${Qt5Core_VERSION_MAJOR}${Qt5Core_VERSION_MINOR}") + else() + set(generated_cpp_suffix "_${QT_VERSION_MAJOR}${QT_VERSION_MINOR}") + endif() + + if(("${generated_cpp_suffix}" STREQUAL "_51") OR ("${generated_cpp_suffix}" STREQUAL "_52")) + set(generated_cpp_suffix "_50") + endif() + if("${generated_cpp_suffix}" STREQUAL "_48") + set(generated_cpp_suffix "") + endif() + if("${generated_cpp_suffix}" STREQUAL "_46") + set(generated_cpp_suffix "_47") # Also use 4.7 wrappers for 4.6.x version + endif() #----------------------------------------------------------------------------- # Sources -set(sources - src/PythonQtClassInfo.cpp - src/PythonQtClassWrapper.cpp - src/PythonQtConversion.cpp - src/PythonQt.cpp - src/PythonQtImporter.cpp - src/PythonQtInstanceWrapper.cpp - src/PythonQtMethodInfo.cpp - src/PythonQtMisc.cpp - src/PythonQtObjectPtr.cpp - src/PythonQtQFileImporter.cpp - src/PythonQtSignalReceiver.cpp - src/PythonQtSlot.cpp - src/PythonQtSignal.cpp - src/PythonQtStdDecorators.cpp - src/PythonQtStdIn.cpp - src/PythonQtStdOut.cpp - src/gui/PythonQtScriptingConsole.cpp - - generated_cpp${generated_cpp_suffix}/PythonQt_QtBindings.cpp - - generated_cpp${generated_cpp_suffix}/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp - generated_cpp${generated_cpp_suffix}/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin_init.cpp - generated_cpp${generated_cpp_suffix}/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp - generated_cpp${generated_cpp_suffix}/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin_init.cpp -) + set(sources + src/PythonQtClassInfo.cpp + src/PythonQtClassWrapper.cpp + src/PythonQtConversion.cpp + src/PythonQt.cpp + src/PythonQtImporter.cpp + src/PythonQtInstanceWrapper.cpp + src/PythonQtMethodInfo.cpp + src/PythonQtMisc.cpp + src/PythonQtObjectPtr.cpp + src/PythonQtQFileImporter.cpp + src/PythonQtSignalReceiver.cpp + src/PythonQtSlot.cpp + src/PythonQtSignal.cpp + src/PythonQtStdDecorators.cpp + src/PythonQtStdIn.cpp + src/PythonQtStdOut.cpp + generated_cpp${generated_cpp_suffix}/PythonQt_QtBindings.cpp + generated_cpp${generated_cpp_suffix}/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp + generated_cpp${generated_cpp_suffix}/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin_init.cpp + ) + + if (PythonQt_Wrap_QtGui OR PythonQt_Wrap_Qtgui) + set(sources + ${sources} + generated_cpp${generated_cpp_suffix}/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp + generated_cpp${generated_cpp_suffix}/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin_init.cpp + ) + endif() + + if (PythonQt_Wrap_QtWidgets OR PythonQt_Wrap_Qtwidgets) + set(sources + ${sources} + src/gui/PythonQtScriptingConsole.cpp + ) + endif() #----------------------------------------------------------------------------- # List headers. This is list is used for the install command. -set(headers - src/PythonQtClassInfo.h - src/PythonQtClassWrapper.h - src/PythonQtConversion.h - src/PythonQtCppWrapperFactory.h - src/PythonQtDoc.h - src/PythonQt.h - src/PythonQtImporter.h - src/PythonQtImportFileInterface.h - src/PythonQtInstanceWrapper.h - src/PythonQtMethodInfo.h - src/PythonQtMisc.h - src/PythonQtObjectPtr.h - src/PythonQtQFileImporter.h - src/PythonQtSignalReceiver.h - src/PythonQtSlot.h - src/PythonQtSignal.h - src/PythonQtStdDecorators.h - src/PythonQtStdIn.h - src/PythonQtStdOut.h - src/PythonQtSystem.h - src/PythonQtVariants.h - src/PythonQtPythonInclude.h - generated_cpp${generated_cpp_suffix}/PythonQt_QtBindings.h -) + set(headers + src/PythonQtClassInfo.h + src/PythonQtClassWrapper.h + src/PythonQtConversion.h + src/PythonQtCppWrapperFactory.h + src/PythonQtDoc.h + src/PythonQt.h + src/PythonQtImporter.h + src/PythonQtImportFileInterface.h + src/PythonQtInstanceWrapper.h + src/PythonQtMethodInfo.h + src/PythonQtMisc.h + src/PythonQtObjectPtr.h + src/PythonQtQFileImporter.h + src/PythonQtSignalReceiver.h + src/PythonQtSlot.h + src/PythonQtSignal.h + src/PythonQtStdDecorators.h + src/PythonQtStdIn.h + src/PythonQtStdOut.h + src/PythonQtSystem.h + src/PythonQtVariants.h + src/PythonQtPythonInclude.h + generated_cpp${generated_cpp_suffix}/PythonQt_QtBindings.h + ) #----------------------------------------------------------------------------- # Headers that should run through moc -set(moc_sources - src/PythonQt.h - src/PythonQtSignalReceiver.h - src/PythonQtStdDecorators.h - src/gui/PythonQtScriptingConsole.h - - generated_cpp${generated_cpp_suffix}/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.h - generated_cpp${generated_cpp_suffix}/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.h -) + set(moc_sources + src/PythonQt.h + src/PythonQtSignalReceiver.h + src/PythonQtStdDecorators.h + generated_cpp${generated_cpp_suffix}/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.h + ) + + if (PythonQt_Wrap_QtGui OR PythonQt_Wrap_Qtgui) + set(moc_sources + ${moc_sources} + generated_cpp${generated_cpp_suffix}/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.h + ) + endif() + + if (PythonQt_Wrap_QtWidgets OR PythonQt_Wrap_Qtwidgets) + set(moc_sources + ${moc_sources} + src/gui/PythonQtScriptingConsole.h + ) + endif() #----------------------------------------------------------------------------- # Add extra sources -foreach(qtlib core gui network opengl sql svg uitools webkit xml xmlpatterns) - - if (${PythonQt_Wrap_Qt${qtlib}}) - - ADD_DEFINITIONS(-DPYTHONQT_WRAP_Qt${qtlib}) - - set(file_prefix generated_cpp${generated_cpp_suffix}/com_trolltech_qt_${qtlib}/com_trolltech_qt_${qtlib}) - - foreach(index RANGE 0 11) + foreach(qtlib ${qtlibs}) + if (${PythonQt_Wrap_Qt${qtlib}}) - # Source files - if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file_prefix}${index}.cpp) - list(APPEND sources ${file_prefix}${index}.cpp) - endif() + ADD_DEFINITIONS(-DPYTHONQT_WRAP_Qt${qtlib}) + string(TOLOWER ${qtlib} qtlib_lower) - # Headers that should run through moc - if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file_prefix}${index}.h) - list(APPEND moc_sources ${file_prefix}${index}.h) + # NOTE: Gui is currently including Widgets and PrintSupport files. However, both modules must be selected in CMake to include their classes in gui + # NOTE: WebKit is currently including WebKitWidgets files. However, it must be selected in CMake to include its classes in WebKit. + if ((NOT "${qtlib_lower}" STREQUAL "widgets") + AND (NOT "${qtlib_lower}" STREQUAL "printsupport") + AND (NOT "${qtlib_lower}" STREQUAL "webkitwidgets")) + + set(file_prefix generated_cpp${generated_cpp_suffix}/com_trolltech_qt_${qtlib_lower}/com_trolltech_qt_${qtlib_lower}) + + foreach(index RANGE 0 11) + + # Source files + if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file_prefix}${index}.cpp) + list(APPEND sources ${file_prefix}${index}.cpp) + endif() + + # Headers that should run through moc + if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file_prefix}${index}.h) + list(APPEND moc_sources ${file_prefix}${index}.h) + endif() + + endforeach() + + list(APPEND sources ${file_prefix}_init.cpp) + endif() - - endforeach() - - list(APPEND sources ${file_prefix}_init.cpp) - - endif() -endforeach() - -#----------------------------------------------------------------------------- -# UI files -set(ui_sources ) -#----------------------------------------------------------------------------- -# Resources -set(qrc_sources ) + endif() + endforeach() #----------------------------------------------------------------------------- # Do wrapping -qt4_wrap_cpp(gen_moc_sources ${moc_sources}) -qt4_wrap_ui(gen_ui_sources ${ui_sources}) -qt4_add_resources(gen_qrc_sources ${qrc_sources}) + if (PythonQt_QT_VERSION VERSION_GREATER "4") + qt5_wrap_cpp(gen_moc_sources ${moc_sources}) + else() + qt4_wrap_cpp(gen_moc_sources ${moc_sources}) + endif() #----------------------------------------------------------------------------- # Build the library -include_directories( - ${CMAKE_CURRENT_SOURCE_DIR}/src - ) + include_directories( + ${CMAKE_CURRENT_SOURCE_DIR}/src + ) -add_library(PythonQt SHARED - ${sources} - ${gen_moc_sources} - ${gen_ui_sources} - ${gen_qrc_sources} - ) -set_target_properties(PythonQt PROPERTIES DEFINE_SYMBOL PYTHONQT_EXPORTS) + add_library(PythonQt SHARED + ${sources} + ${gen_moc_sources} + ${gen_ui_sources} + ${gen_qrc_sources} + ) + set_target_properties(PythonQt PROPERTIES DEFINE_SYMBOL PYTHONQT_EXPORTS) # # That should solve linkage error on Mac when the project is used in a superbuild setup # See http://blog.onesadcookie.com/2008/01/installname-magic.html # -set_target_properties(PythonQt PROPERTIES - INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib" - ) + set_target_properties(PythonQt PROPERTIES + INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib" + ) -target_link_libraries(PythonQt - ${PYTHON_LIBRARY} - ${QT_LIBRARIES} - ) + target_link_libraries(PythonQt + ${PYTHON_LIBRARY} + ${QT_LIBRARIES} + ) #----------------------------------------------------------------------------- # Install library (on windows, put the dll in 'bin' and the archive in 'lib') -install(TARGETS PythonQt - RUNTIME DESTINATION bin - LIBRARY DESTINATION lib - ARCHIVE DESTINATION lib) -install(FILES ${headers} DESTINATION include/PythonQt) + install(TARGETS PythonQt + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib) + install(FILES ${headers} DESTINATION include/PythonQt) + + +endif() #----------------------------------------------------------------------------- # Testing @@ -249,18 +374,20 @@ if(BUILD_TESTING) tests/PythonQtTests.h ) - QT4_WRAP_CPP(test_sources - tests/PythonQtTests.h - ) + if (PythonQt_QT_VERSION VERSION_GREATER "4") + QT5_WRAP_CPP(test_sources tests/PythonQtTests.h) + else() + QT4_WRAP_CPP(test_sources tests/PythonQtTests.h) + endif() set_property(SOURCE tests/PythonQtTestMain.cpp PROPERTY COMPILE_DEFINITIONS "main=tests_PythonQtTestMain") add_executable(PythonQtCppTests ${test_sources}) - target_link_libraries(PythonQtCppTests PythonQt) + target_link_libraries(PythonQtCppTests PythonQt ${Qt5Test_LIBRARIES}) add_test( NAME tests_PythonQtTestMain - COMMAND ${Slicer_LAUNCH_COMMAND} $ tests/PythonQtTestMain + COMMAND PythonQtCppTests tests/PythonQtTestMain ) endif() diff --git a/README.md b/README.md index 9e43ea73..f50385af 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Prerequisites ------------- * CMake 2.8.x -* Qt 4.6.2 or above +* Qt 4.6.2 or above (Qt5.x also supported) Build instructions ------------------ @@ -36,17 +36,30 @@ make Additional configure options are: * `CMAKE_BUILD_TYPE`: Debug, Release, RelWithDebInfo or MinSizeRel +* `PythonQt_QT_VERSION`: 4, 5 * `PythonQt_DEBUG`: Enable/Disable PythonQt debug output * `PythonQt_Wrap_QtAll`: Make all Qt components available in python * `PythonQt_Wrap_Qt`: Build PythonQt wrapper associated with ``. Possible `` are `gui`, `network`, `opengl`, `sql`, `uitools`, `webkit`, `xml`, `xmlpatterns`. +* `Qt5_CMAKE_PATH`: Path containing the Qt5* folders with inside the Qt5*Config.cmake files. Available branches ------------------ -This repository contains three branches: -* Based on [r245](http://sourceforge.net/p/pythonqt/code/245/) +This repository contains different branches: +* Based on the original PythonQt source code on [sourceforge]( http://sourceforge.net/p/pythonqt/code/) +### patched-5 + +* Based on patched-4 + backported upstream: [r246](http://sourceforge.net/p/pythonqt/code/246/), [r247](http://sourceforge.net/p/pythonqt/code/247/), [r248](http://sourceforge.net/p/pythonqt/code/248/) + branch: [add-qt5-support](https://github.com/commontk/PythonQt/tree/add-qt5-support) +* List of features + * Qt 5.x support: + * Modules QtWidgets and QtPrintSupport only wrapped if selected, but they will stay in the PythonQt.QtGui namespace for compatibily reason. + * Module QtWebKitWidgets only wrapped if selected, but it stays in the PythonQt.QtWebKit namespace for compatibily reason. + * CMake forces the wrapping of the selected modules dependency (e.g. QtPrintSupport requires QtWidgets, QtGui and QtCore) + * CMake variable `PythonQt_QT_VERSION` to select the version of Qt to wrap (4 or 5) + ### patched-4 + * Based on patched-3 + [r245](http://sourceforge.net/p/pythonqt/code/245/) * List of features: * Add BUILD_TESTING option disabled by default to keep behavior consistent with previous version. @@ -54,6 +67,7 @@ This repository contains three branches: * Ensure enums added using only Q_FLAGS without corresponding Q_ENUMS are wrapped. ### patched-3 + * Backported: * Most of the [change specific to](https://github.com/commontk/PythonQt/compare/e2dce4b...patched-2) `patched-2` branch have been backported upstream: [r241](http://sourceforge.net/p/pythonqt/code/241/), [r242](http://sourceforge.net/p/pythonqt/code/242/), [r243](http://sourceforge.net/p/pythonqt/code/243/) diff --git a/generated_cpp_50/PythonQt_QtBindings.cpp b/generated_cpp_50/PythonQt_QtBindings.cpp new file mode 100644 index 00000000..78604411 --- /dev/null +++ b/generated_cpp_50/PythonQt_QtBindings.cpp @@ -0,0 +1,63 @@ + +#include "PythonQt_QtBindings.h" + +#include "PythonQt.h" + +void PythonQt_init_QtGui(PyObject*); +void PythonQt_init_QtSvg(PyObject*); +void PythonQt_init_QtSql(PyObject*); +void PythonQt_init_QtNetwork(PyObject*); +void PythonQt_init_QtCore(PyObject*); +void PythonQt_init_QtWebKit(PyObject*); +void PythonQt_init_QtOpenGL(PyObject*); +void PythonQt_init_QtXml(PyObject*); +void PythonQt_init_QtXmlPatterns(PyObject*); +void PythonQt_init_QtUiTools(PyObject*); +void PythonQt_init_QtPhonon(PyObject*); + +PYTHONQT_EXPORT void PythonQt_init_QtBindings() + { + #ifdef PYTHONQT_WRAP_QtCore + PythonQt_init_QtCore(0); + #endif + + #ifdef PYTHONQT_WRAP_QtGui + PythonQt_init_QtGui(0); + #endif + + #ifdef PYTHONQT_WRAP_QtNetwork + PythonQt_init_QtNetwork(0); + #endif + + #ifdef PYTHONQT_WRAP_QtOpenGL + PythonQt_init_QtOpenGL(0); + #endif + + #ifdef PYTHONQT_WRAP_QtSql + PythonQt_init_QtSql(0); + #endif + + #ifdef PYTHONQT_WRAP_QtSvg + PythonQt_init_QtSvg(0); + #endif + + #ifdef PYTHONQT_WRAP_QtUiTools + PythonQt_init_QtUiTools(0); + #endif + + #ifdef PYTHONQT_WRAP_QtWebKit + PythonQt_init_QtWebKit(0); + #endif + + #ifdef PYTHONQT_WRAP_QtXml + PythonQt_init_QtXml(0); + #endif + + #ifdef PYTHONQT_WRAP_QtXmlPatterns + PythonQt_init_QtXmlPatterns(0); + #endif + + #ifdef PYTHONQT_WRAP_QtPhonon + PythonQt_init_QtPhonon(0); + #endif + }; diff --git a/generated_cpp_50/PythonQt_QtBindings.h b/generated_cpp_50/PythonQt_QtBindings.h new file mode 100644 index 00000000..03e96aed --- /dev/null +++ b/generated_cpp_50/PythonQt_QtBindings.h @@ -0,0 +1,10 @@ +#ifndef _PYTHONQT_QTBINDINGS_H +#define _PYTHONQT_QTBINDINGS_H + +#include "PythonQtSystem.h" + +/// Initialize Qt bindings enabled at configuration time +PYTHONQT_EXPORT void PythonQt_init_QtBindings(); + +#endif + diff --git a/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core.pri b/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core.pri new file mode 100644 index 00000000..d9003d9f --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core.pri @@ -0,0 +1,10 @@ +HEADERS += \ + $$PWD/com_trolltech_qt_core0.h \ + $$PWD/com_trolltech_qt_core1.h \ + $$PWD/com_trolltech_qt_core2.h \ + +SOURCES += \ + $$PWD/com_trolltech_qt_core0.cpp \ + $$PWD/com_trolltech_qt_core1.cpp \ + $$PWD/com_trolltech_qt_core2.cpp \ + $$PWD/com_trolltech_qt_core_init.cpp diff --git a/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core0.cpp b/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core0.cpp new file mode 100644 index 00000000..6db9bea6 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core0.cpp @@ -0,0 +1,8066 @@ +#include "com_trolltech_qt_core0.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +PythonQtShell_QAbstractAnimation::~PythonQtShell_QAbstractAnimation() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QAbstractAnimation::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractAnimation::childEvent(arg__1); +} +void PythonQtShell_QAbstractAnimation::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractAnimation::customEvent(arg__1); +} +int PythonQtShell_QAbstractAnimation::duration() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "duration"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("duration", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +bool PythonQtShell_QAbstractAnimation::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractAnimation::event(event); +} +bool PythonQtShell_QAbstractAnimation::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractAnimation::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QAbstractAnimation::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractAnimation::timerEvent(arg__1); +} +void PythonQtShell_QAbstractAnimation::updateCurrentTime(int currentTime) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentTime"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)¤tTime}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractAnimation::updateDirection(QAbstractAnimation::Direction direction) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateDirection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractAnimation::Direction"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&direction}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractAnimation::updateDirection(direction); +} +void PythonQtShell_QAbstractAnimation::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateState"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractAnimation::State" , "QAbstractAnimation::State"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&newState, (void*)&oldState}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractAnimation::updateState(newState, oldState); +} +QAbstractAnimation* PythonQtWrapper_QAbstractAnimation::new_QAbstractAnimation(QObject* parent) +{ +return new PythonQtShell_QAbstractAnimation(parent); } + +int PythonQtWrapper_QAbstractAnimation::currentLoop(QAbstractAnimation* theWrappedObject) const +{ + return ( theWrappedObject->currentLoop()); +} + +int PythonQtWrapper_QAbstractAnimation::currentLoopTime(QAbstractAnimation* theWrappedObject) const +{ + return ( theWrappedObject->currentLoopTime()); +} + +int PythonQtWrapper_QAbstractAnimation::currentTime(QAbstractAnimation* theWrappedObject) const +{ + return ( theWrappedObject->currentTime()); +} + +QAbstractAnimation::Direction PythonQtWrapper_QAbstractAnimation::direction(QAbstractAnimation* theWrappedObject) const +{ + return ( theWrappedObject->direction()); +} + +bool PythonQtWrapper_QAbstractAnimation::event(QAbstractAnimation* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QAbstractAnimation*)theWrappedObject)->promoted_event(event)); +} + +QAnimationGroup* PythonQtWrapper_QAbstractAnimation::group(QAbstractAnimation* theWrappedObject) const +{ + return ( theWrappedObject->group()); +} + +int PythonQtWrapper_QAbstractAnimation::loopCount(QAbstractAnimation* theWrappedObject) const +{ + return ( theWrappedObject->loopCount()); +} + +void PythonQtWrapper_QAbstractAnimation::setDirection(QAbstractAnimation* theWrappedObject, QAbstractAnimation::Direction direction) +{ + ( theWrappedObject->setDirection(direction)); +} + +void PythonQtWrapper_QAbstractAnimation::setLoopCount(QAbstractAnimation* theWrappedObject, int loopCount) +{ + ( theWrappedObject->setLoopCount(loopCount)); +} + +QAbstractAnimation::State PythonQtWrapper_QAbstractAnimation::state(QAbstractAnimation* theWrappedObject) const +{ + return ( theWrappedObject->state()); +} + +int PythonQtWrapper_QAbstractAnimation::totalDuration(QAbstractAnimation* theWrappedObject) const +{ + return ( theWrappedObject->totalDuration()); +} + +void PythonQtWrapper_QAbstractAnimation::updateDirection(QAbstractAnimation* theWrappedObject, QAbstractAnimation::Direction direction) +{ + ( ((PythonQtPublicPromoter_QAbstractAnimation*)theWrappedObject)->promoted_updateDirection(direction)); +} + +void PythonQtWrapper_QAbstractAnimation::updateState(QAbstractAnimation* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState) +{ + ( ((PythonQtPublicPromoter_QAbstractAnimation*)theWrappedObject)->promoted_updateState(newState, oldState)); +} + + + +PythonQtShell_QAbstractItemModel::~PythonQtShell_QAbstractItemModel() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QModelIndex PythonQtShell_QAbstractItemModel::buddy(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "buddy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("buddy", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::buddy(index); +} +bool PythonQtShell_QAbstractItemModel::canDropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canDropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canDropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::canDropMimeData(data, action, row, column, parent); +} +bool PythonQtShell_QAbstractItemModel::canFetchMore(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canFetchMore"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canFetchMore", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::canFetchMore(parent); +} +void PythonQtShell_QAbstractItemModel::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemModel::childEvent(arg__1); +} +int PythonQtShell_QAbstractItemModel::columnCount(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "columnCount"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("columnCount", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +void PythonQtShell_QAbstractItemModel::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemModel::customEvent(arg__1); +} +QVariant PythonQtShell_QAbstractItemModel::data(const QModelIndex& index, int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVariant(); +} +bool PythonQtShell_QAbstractItemModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::dropMimeData(data, action, row, column, parent); +} +bool PythonQtShell_QAbstractItemModel::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::event(arg__1); +} +bool PythonQtShell_QAbstractItemModel::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QAbstractItemModel::fetchMore(const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchMore"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemModel::fetchMore(parent); +} +Qt::ItemFlags PythonQtShell_QAbstractItemModel::flags(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "flags"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + Qt::ItemFlags returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("flags", methodInfo, result); + } else { + returnValue = *((Qt::ItemFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::flags(index); +} +bool PythonQtShell_QAbstractItemModel::hasChildren(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasChildren"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasChildren", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::hasChildren(parent); +} +QVariant PythonQtShell_QAbstractItemModel::headerData(int section, Qt::Orientation orientation, int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "headerData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "int" , "Qt::Orientation" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QVariant returnValue; + void* args[4] = {NULL, (void*)§ion, (void*)&orientation, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("headerData", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::headerData(section, orientation, role); +} +QModelIndex PythonQtShell_QAbstractItemModel::index(int row, int column, const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "index"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QModelIndex returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("index", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QModelIndex(); +} +bool PythonQtShell_QAbstractItemModel::insertColumns(int column, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::insertColumns(column, count, parent); +} +bool PythonQtShell_QAbstractItemModel::insertRows(int row, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::insertRows(row, count, parent); +} +QMap PythonQtShell_QAbstractItemModel::itemData(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMap" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMap returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemData", methodInfo, result); + } else { + returnValue = *((QMap*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::itemData(index); +} +QList PythonQtShell_QAbstractItemModel::match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "match"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList" , "const QModelIndex&" , "int" , "const QVariant&" , "int" , "Qt::MatchFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + QList returnValue; + void* args[6] = {NULL, (void*)&start, (void*)&role, (void*)&value, (void*)&hits, (void*)&flags}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("match", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::match(start, role, value, hits, flags); +} +QMimeData* PythonQtShell_QAbstractItemModel::mimeData(const QList& indexes) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMimeData*" , "const QList&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMimeData* returnValue; + void* args[2] = {NULL, (void*)&indexes}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); + } else { + returnValue = *((QMimeData**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::mimeData(indexes); +} +QStringList PythonQtShell_QAbstractItemModel::mimeTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStringList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStringList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); + } else { + returnValue = *((QStringList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::mimeTypes(); +} +bool PythonQtShell_QAbstractItemModel::moveColumns(const QModelIndex& sourceParent, int sourceColumn, int count, const QModelIndex& destinationParent, int destinationChild) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "int" , "int" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&sourceParent, (void*)&sourceColumn, (void*)&count, (void*)&destinationParent, (void*)&destinationChild}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("moveColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); +} +bool PythonQtShell_QAbstractItemModel::moveRows(const QModelIndex& sourceParent, int sourceRow, int count, const QModelIndex& destinationParent, int destinationChild) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "int" , "int" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&sourceParent, (void*)&sourceRow, (void*)&count, (void*)&destinationParent, (void*)&destinationChild}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("moveRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); +} +QModelIndex PythonQtShell_QAbstractItemModel::parent(const QModelIndex& child) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "parent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&child}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("parent", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QModelIndex(); +} +bool PythonQtShell_QAbstractItemModel::removeColumns(int column, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("removeColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::removeColumns(column, count, parent); +} +bool PythonQtShell_QAbstractItemModel::removeRows(int row, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("removeRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::removeRows(row, count, parent); +} +void PythonQtShell_QAbstractItemModel::revert() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "revert"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemModel::revert(); +} +QHash PythonQtShell_QAbstractItemModel::roleNames() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "roleNames"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QHash"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QHash returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("roleNames", methodInfo, result); + } else { + returnValue = *((QHash*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::roleNames(); +} +int PythonQtShell_QAbstractItemModel::rowCount(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowCount"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("rowCount", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +bool PythonQtShell_QAbstractItemModel::setData(const QModelIndex& index, const QVariant& value, int role) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::setData(index, value, role); +} +bool PythonQtShell_QAbstractItemModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setHeaderData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setHeaderData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::setHeaderData(section, orientation, value, role); +} +bool PythonQtShell_QAbstractItemModel::setItemData(const QModelIndex& index, const QMap& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setItemData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setItemData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::setItemData(index, roles); +} +QModelIndex PythonQtShell_QAbstractItemModel::sibling(int row, int column, const QModelIndex& idx) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sibling"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QModelIndex returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&idx}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sibling", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::sibling(row, column, idx); +} +void PythonQtShell_QAbstractItemModel::sort(int column, Qt::SortOrder order) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sort"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "Qt::SortOrder"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&column, (void*)&order}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemModel::sort(column, order); +} +QSize PythonQtShell_QAbstractItemModel::span(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "span"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QSize returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("span", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::span(index); +} +bool PythonQtShell_QAbstractItemModel::submit() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "submit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("submit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::submit(); +} +Qt::DropActions PythonQtShell_QAbstractItemModel::supportedDragActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDragActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDragActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::supportedDragActions(); +} +Qt::DropActions PythonQtShell_QAbstractItemModel::supportedDropActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemModel::supportedDropActions(); +} +void PythonQtShell_QAbstractItemModel::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemModel::timerEvent(arg__1); +} +QAbstractItemModel* PythonQtWrapper_QAbstractItemModel::new_QAbstractItemModel(QObject* parent) +{ +return new PythonQtShell_QAbstractItemModel(parent); } + +QModelIndex PythonQtWrapper_QAbstractItemModel::buddy(QAbstractItemModel* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_buddy(index)); +} + +bool PythonQtWrapper_QAbstractItemModel::canDropMimeData(QAbstractItemModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_canDropMimeData(data, action, row, column, parent)); +} + +bool PythonQtWrapper_QAbstractItemModel::canFetchMore(QAbstractItemModel* theWrappedObject, const QModelIndex& parent) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_canFetchMore(parent)); +} + +bool PythonQtWrapper_QAbstractItemModel::dropMimeData(QAbstractItemModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_dropMimeData(data, action, row, column, parent)); +} + +void PythonQtWrapper_QAbstractItemModel::fetchMore(QAbstractItemModel* theWrappedObject, const QModelIndex& parent) +{ + ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_fetchMore(parent)); +} + +Qt::ItemFlags PythonQtWrapper_QAbstractItemModel::flags(QAbstractItemModel* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_flags(index)); +} + +bool PythonQtWrapper_QAbstractItemModel::hasChildren(QAbstractItemModel* theWrappedObject, const QModelIndex& parent) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_hasChildren(parent)); +} + +bool PythonQtWrapper_QAbstractItemModel::hasIndex(QAbstractItemModel* theWrappedObject, int row, int column, const QModelIndex& parent) const +{ + return ( theWrappedObject->hasIndex(row, column, parent)); +} + +QVariant PythonQtWrapper_QAbstractItemModel::headerData(QAbstractItemModel* theWrappedObject, int section, Qt::Orientation orientation, int role) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_headerData(section, orientation, role)); +} + +bool PythonQtWrapper_QAbstractItemModel::insertColumn(QAbstractItemModel* theWrappedObject, int column, const QModelIndex& parent) +{ + return ( theWrappedObject->insertColumn(column, parent)); +} + +bool PythonQtWrapper_QAbstractItemModel::insertColumns(QAbstractItemModel* theWrappedObject, int column, int count, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_insertColumns(column, count, parent)); +} + +bool PythonQtWrapper_QAbstractItemModel::insertRow(QAbstractItemModel* theWrappedObject, int row, const QModelIndex& parent) +{ + return ( theWrappedObject->insertRow(row, parent)); +} + +bool PythonQtWrapper_QAbstractItemModel::insertRows(QAbstractItemModel* theWrappedObject, int row, int count, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_insertRows(row, count, parent)); +} + +QMap PythonQtWrapper_QAbstractItemModel::itemData(QAbstractItemModel* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_itemData(index)); +} + +QList PythonQtWrapper_QAbstractItemModel::match(QAbstractItemModel* theWrappedObject, const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_match(start, role, value, hits, flags)); +} + +QMimeData* PythonQtWrapper_QAbstractItemModel::mimeData(QAbstractItemModel* theWrappedObject, const QList& indexes) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_mimeData(indexes)); +} + +QStringList PythonQtWrapper_QAbstractItemModel::mimeTypes(QAbstractItemModel* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_mimeTypes()); +} + +bool PythonQtWrapper_QAbstractItemModel::moveColumn(QAbstractItemModel* theWrappedObject, const QModelIndex& sourceParent, int sourceColumn, const QModelIndex& destinationParent, int destinationChild) +{ + return ( theWrappedObject->moveColumn(sourceParent, sourceColumn, destinationParent, destinationChild)); +} + +bool PythonQtWrapper_QAbstractItemModel::moveColumns(QAbstractItemModel* theWrappedObject, const QModelIndex& sourceParent, int sourceColumn, int count, const QModelIndex& destinationParent, int destinationChild) +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild)); +} + +bool PythonQtWrapper_QAbstractItemModel::moveRow(QAbstractItemModel* theWrappedObject, const QModelIndex& sourceParent, int sourceRow, const QModelIndex& destinationParent, int destinationChild) +{ + return ( theWrappedObject->moveRow(sourceParent, sourceRow, destinationParent, destinationChild)); +} + +bool PythonQtWrapper_QAbstractItemModel::moveRows(QAbstractItemModel* theWrappedObject, const QModelIndex& sourceParent, int sourceRow, int count, const QModelIndex& destinationParent, int destinationChild) +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild)); +} + +QObject* PythonQtWrapper_QAbstractItemModel::parent(QAbstractItemModel* theWrappedObject) const +{ + return ( theWrappedObject->parent()); +} + +bool PythonQtWrapper_QAbstractItemModel::removeColumn(QAbstractItemModel* theWrappedObject, int column, const QModelIndex& parent) +{ + return ( theWrappedObject->removeColumn(column, parent)); +} + +bool PythonQtWrapper_QAbstractItemModel::removeColumns(QAbstractItemModel* theWrappedObject, int column, int count, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_removeColumns(column, count, parent)); +} + +bool PythonQtWrapper_QAbstractItemModel::removeRow(QAbstractItemModel* theWrappedObject, int row, const QModelIndex& parent) +{ + return ( theWrappedObject->removeRow(row, parent)); +} + +bool PythonQtWrapper_QAbstractItemModel::removeRows(QAbstractItemModel* theWrappedObject, int row, int count, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_removeRows(row, count, parent)); +} + +void PythonQtWrapper_QAbstractItemModel::revert(QAbstractItemModel* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_revert()); +} + +QHash PythonQtWrapper_QAbstractItemModel::roleNames(QAbstractItemModel* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_roleNames()); +} + +bool PythonQtWrapper_QAbstractItemModel::setData(QAbstractItemModel* theWrappedObject, const QModelIndex& index, const QVariant& value, int role) +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_setData(index, value, role)); +} + +bool PythonQtWrapper_QAbstractItemModel::setHeaderData(QAbstractItemModel* theWrappedObject, int section, Qt::Orientation orientation, const QVariant& value, int role) +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_setHeaderData(section, orientation, value, role)); +} + +bool PythonQtWrapper_QAbstractItemModel::setItemData(QAbstractItemModel* theWrappedObject, const QModelIndex& index, const QMap& roles) +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_setItemData(index, roles)); +} + +QModelIndex PythonQtWrapper_QAbstractItemModel::sibling(QAbstractItemModel* theWrappedObject, int row, int column, const QModelIndex& idx) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_sibling(row, column, idx)); +} + +void PythonQtWrapper_QAbstractItemModel::sort(QAbstractItemModel* theWrappedObject, int column, Qt::SortOrder order) +{ + ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_sort(column, order)); +} + +QSize PythonQtWrapper_QAbstractItemModel::span(QAbstractItemModel* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_span(index)); +} + +bool PythonQtWrapper_QAbstractItemModel::submit(QAbstractItemModel* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_submit()); +} + +Qt::DropActions PythonQtWrapper_QAbstractItemModel::supportedDragActions(QAbstractItemModel* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_supportedDragActions()); +} + +Qt::DropActions PythonQtWrapper_QAbstractItemModel::supportedDropActions(QAbstractItemModel* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_supportedDropActions()); +} + + + +PythonQtShell_QAbstractListModel::~PythonQtShell_QAbstractListModel() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QModelIndex PythonQtShell_QAbstractListModel::buddy(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "buddy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("buddy", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::buddy(index); +} +bool PythonQtShell_QAbstractListModel::canDropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canDropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canDropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::canDropMimeData(data, action, row, column, parent); +} +bool PythonQtShell_QAbstractListModel::canFetchMore(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canFetchMore"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canFetchMore", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::canFetchMore(parent); +} +void PythonQtShell_QAbstractListModel::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractListModel::childEvent(arg__1); +} +void PythonQtShell_QAbstractListModel::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractListModel::customEvent(arg__1); +} +QVariant PythonQtShell_QAbstractListModel::data(const QModelIndex& index, int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVariant(); +} +bool PythonQtShell_QAbstractListModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::dropMimeData(data, action, row, column, parent); +} +bool PythonQtShell_QAbstractListModel::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::event(arg__1); +} +bool PythonQtShell_QAbstractListModel::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QAbstractListModel::fetchMore(const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchMore"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractListModel::fetchMore(parent); +} +Qt::ItemFlags PythonQtShell_QAbstractListModel::flags(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "flags"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + Qt::ItemFlags returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("flags", methodInfo, result); + } else { + returnValue = *((Qt::ItemFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::flags(index); +} +QVariant PythonQtShell_QAbstractListModel::headerData(int section, Qt::Orientation orientation, int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "headerData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "int" , "Qt::Orientation" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QVariant returnValue; + void* args[4] = {NULL, (void*)§ion, (void*)&orientation, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("headerData", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::headerData(section, orientation, role); +} +QModelIndex PythonQtShell_QAbstractListModel::index(int row, int column, const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "index"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QModelIndex returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("index", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::index(row, column, parent); +} +bool PythonQtShell_QAbstractListModel::insertColumns(int column, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::insertColumns(column, count, parent); +} +bool PythonQtShell_QAbstractListModel::insertRows(int row, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::insertRows(row, count, parent); +} +QMap PythonQtShell_QAbstractListModel::itemData(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMap" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMap returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemData", methodInfo, result); + } else { + returnValue = *((QMap*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::itemData(index); +} +QList PythonQtShell_QAbstractListModel::match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "match"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList" , "const QModelIndex&" , "int" , "const QVariant&" , "int" , "Qt::MatchFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + QList returnValue; + void* args[6] = {NULL, (void*)&start, (void*)&role, (void*)&value, (void*)&hits, (void*)&flags}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("match", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::match(start, role, value, hits, flags); +} +QMimeData* PythonQtShell_QAbstractListModel::mimeData(const QList& indexes) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMimeData*" , "const QList&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMimeData* returnValue; + void* args[2] = {NULL, (void*)&indexes}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); + } else { + returnValue = *((QMimeData**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::mimeData(indexes); +} +QStringList PythonQtShell_QAbstractListModel::mimeTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStringList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStringList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); + } else { + returnValue = *((QStringList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::mimeTypes(); +} +bool PythonQtShell_QAbstractListModel::moveColumns(const QModelIndex& sourceParent, int sourceColumn, int count, const QModelIndex& destinationParent, int destinationChild) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "int" , "int" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&sourceParent, (void*)&sourceColumn, (void*)&count, (void*)&destinationParent, (void*)&destinationChild}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("moveColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); +} +bool PythonQtShell_QAbstractListModel::moveRows(const QModelIndex& sourceParent, int sourceRow, int count, const QModelIndex& destinationParent, int destinationChild) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "int" , "int" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&sourceParent, (void*)&sourceRow, (void*)&count, (void*)&destinationParent, (void*)&destinationChild}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("moveRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); +} +bool PythonQtShell_QAbstractListModel::removeColumns(int column, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("removeColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::removeColumns(column, count, parent); +} +bool PythonQtShell_QAbstractListModel::removeRows(int row, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("removeRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::removeRows(row, count, parent); +} +void PythonQtShell_QAbstractListModel::revert() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "revert"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractListModel::revert(); +} +QHash PythonQtShell_QAbstractListModel::roleNames() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "roleNames"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QHash"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QHash returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("roleNames", methodInfo, result); + } else { + returnValue = *((QHash*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::roleNames(); +} +int PythonQtShell_QAbstractListModel::rowCount(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowCount"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("rowCount", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +bool PythonQtShell_QAbstractListModel::setData(const QModelIndex& index, const QVariant& value, int role) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::setData(index, value, role); +} +bool PythonQtShell_QAbstractListModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setHeaderData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setHeaderData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::setHeaderData(section, orientation, value, role); +} +bool PythonQtShell_QAbstractListModel::setItemData(const QModelIndex& index, const QMap& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setItemData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setItemData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::setItemData(index, roles); +} +QModelIndex PythonQtShell_QAbstractListModel::sibling(int row, int column, const QModelIndex& idx) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sibling"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QModelIndex returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&idx}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sibling", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::sibling(row, column, idx); +} +void PythonQtShell_QAbstractListModel::sort(int column, Qt::SortOrder order) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sort"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "Qt::SortOrder"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&column, (void*)&order}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractListModel::sort(column, order); +} +QSize PythonQtShell_QAbstractListModel::span(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "span"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QSize returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("span", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::span(index); +} +bool PythonQtShell_QAbstractListModel::submit() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "submit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("submit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::submit(); +} +Qt::DropActions PythonQtShell_QAbstractListModel::supportedDragActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDragActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDragActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::supportedDragActions(); +} +Qt::DropActions PythonQtShell_QAbstractListModel::supportedDropActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractListModel::supportedDropActions(); +} +void PythonQtShell_QAbstractListModel::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractListModel::timerEvent(arg__1); +} +QAbstractListModel* PythonQtWrapper_QAbstractListModel::new_QAbstractListModel(QObject* parent) +{ +return new PythonQtShell_QAbstractListModel(parent); } + +bool PythonQtWrapper_QAbstractListModel::dropMimeData(QAbstractListModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QAbstractListModel*)theWrappedObject)->promoted_dropMimeData(data, action, row, column, parent)); +} + +QModelIndex PythonQtWrapper_QAbstractListModel::index(QAbstractListModel* theWrappedObject, int row, int column, const QModelIndex& parent) const +{ + return ( ((PythonQtPublicPromoter_QAbstractListModel*)theWrappedObject)->promoted_index(row, column, parent)); +} + + + +PythonQtShell_QAbstractState::~PythonQtShell_QAbstractState() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QAbstractState::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractState::childEvent(arg__1); +} +void PythonQtShell_QAbstractState::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractState::customEvent(arg__1); +} +bool PythonQtShell_QAbstractState::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractState::event(e); +} +bool PythonQtShell_QAbstractState::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractState::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QAbstractState::onEntry(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onEntry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractState::onExit(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onExit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractState::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractState::timerEvent(arg__1); +} +bool PythonQtWrapper_QAbstractState::event(QAbstractState* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QAbstractState*)theWrappedObject)->promoted_event(e)); +} + +QStateMachine* PythonQtWrapper_QAbstractState::machine(QAbstractState* theWrappedObject) const +{ + return ( theWrappedObject->machine()); +} + +QState* PythonQtWrapper_QAbstractState::parentState(QAbstractState* theWrappedObject) const +{ + return ( theWrappedObject->parentState()); +} + + + +PythonQtShell_QAbstractTableModel::~PythonQtShell_QAbstractTableModel() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QModelIndex PythonQtShell_QAbstractTableModel::buddy(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "buddy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("buddy", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::buddy(index); +} +bool PythonQtShell_QAbstractTableModel::canDropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canDropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canDropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::canDropMimeData(data, action, row, column, parent); +} +bool PythonQtShell_QAbstractTableModel::canFetchMore(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canFetchMore"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canFetchMore", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::canFetchMore(parent); +} +void PythonQtShell_QAbstractTableModel::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractTableModel::childEvent(arg__1); +} +int PythonQtShell_QAbstractTableModel::columnCount(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "columnCount"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("columnCount", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +void PythonQtShell_QAbstractTableModel::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractTableModel::customEvent(arg__1); +} +QVariant PythonQtShell_QAbstractTableModel::data(const QModelIndex& index, int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVariant(); +} +bool PythonQtShell_QAbstractTableModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::dropMimeData(data, action, row, column, parent); +} +bool PythonQtShell_QAbstractTableModel::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::event(arg__1); +} +bool PythonQtShell_QAbstractTableModel::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QAbstractTableModel::fetchMore(const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchMore"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractTableModel::fetchMore(parent); +} +Qt::ItemFlags PythonQtShell_QAbstractTableModel::flags(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "flags"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + Qt::ItemFlags returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("flags", methodInfo, result); + } else { + returnValue = *((Qt::ItemFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::flags(index); +} +QVariant PythonQtShell_QAbstractTableModel::headerData(int section, Qt::Orientation orientation, int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "headerData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "int" , "Qt::Orientation" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QVariant returnValue; + void* args[4] = {NULL, (void*)§ion, (void*)&orientation, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("headerData", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::headerData(section, orientation, role); +} +QModelIndex PythonQtShell_QAbstractTableModel::index(int row, int column, const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "index"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QModelIndex returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("index", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::index(row, column, parent); +} +bool PythonQtShell_QAbstractTableModel::insertColumns(int column, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::insertColumns(column, count, parent); +} +bool PythonQtShell_QAbstractTableModel::insertRows(int row, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::insertRows(row, count, parent); +} +QMap PythonQtShell_QAbstractTableModel::itemData(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMap" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMap returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemData", methodInfo, result); + } else { + returnValue = *((QMap*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::itemData(index); +} +QList PythonQtShell_QAbstractTableModel::match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "match"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList" , "const QModelIndex&" , "int" , "const QVariant&" , "int" , "Qt::MatchFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + QList returnValue; + void* args[6] = {NULL, (void*)&start, (void*)&role, (void*)&value, (void*)&hits, (void*)&flags}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("match", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::match(start, role, value, hits, flags); +} +QMimeData* PythonQtShell_QAbstractTableModel::mimeData(const QList& indexes) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMimeData*" , "const QList&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMimeData* returnValue; + void* args[2] = {NULL, (void*)&indexes}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); + } else { + returnValue = *((QMimeData**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::mimeData(indexes); +} +QStringList PythonQtShell_QAbstractTableModel::mimeTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStringList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStringList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); + } else { + returnValue = *((QStringList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::mimeTypes(); +} +bool PythonQtShell_QAbstractTableModel::moveColumns(const QModelIndex& sourceParent, int sourceColumn, int count, const QModelIndex& destinationParent, int destinationChild) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "int" , "int" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&sourceParent, (void*)&sourceColumn, (void*)&count, (void*)&destinationParent, (void*)&destinationChild}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("moveColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); +} +bool PythonQtShell_QAbstractTableModel::moveRows(const QModelIndex& sourceParent, int sourceRow, int count, const QModelIndex& destinationParent, int destinationChild) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "int" , "int" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&sourceParent, (void*)&sourceRow, (void*)&count, (void*)&destinationParent, (void*)&destinationChild}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("moveRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); +} +bool PythonQtShell_QAbstractTableModel::removeColumns(int column, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("removeColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::removeColumns(column, count, parent); +} +bool PythonQtShell_QAbstractTableModel::removeRows(int row, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("removeRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::removeRows(row, count, parent); +} +void PythonQtShell_QAbstractTableModel::revert() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "revert"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractTableModel::revert(); +} +QHash PythonQtShell_QAbstractTableModel::roleNames() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "roleNames"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QHash"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QHash returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("roleNames", methodInfo, result); + } else { + returnValue = *((QHash*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::roleNames(); +} +int PythonQtShell_QAbstractTableModel::rowCount(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowCount"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("rowCount", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +bool PythonQtShell_QAbstractTableModel::setData(const QModelIndex& index, const QVariant& value, int role) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::setData(index, value, role); +} +bool PythonQtShell_QAbstractTableModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setHeaderData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setHeaderData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::setHeaderData(section, orientation, value, role); +} +bool PythonQtShell_QAbstractTableModel::setItemData(const QModelIndex& index, const QMap& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setItemData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setItemData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::setItemData(index, roles); +} +QModelIndex PythonQtShell_QAbstractTableModel::sibling(int row, int column, const QModelIndex& idx) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sibling"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QModelIndex returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&idx}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sibling", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::sibling(row, column, idx); +} +void PythonQtShell_QAbstractTableModel::sort(int column, Qt::SortOrder order) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sort"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "Qt::SortOrder"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&column, (void*)&order}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractTableModel::sort(column, order); +} +QSize PythonQtShell_QAbstractTableModel::span(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "span"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QSize returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("span", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::span(index); +} +bool PythonQtShell_QAbstractTableModel::submit() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "submit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("submit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::submit(); +} +Qt::DropActions PythonQtShell_QAbstractTableModel::supportedDragActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDragActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDragActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::supportedDragActions(); +} +Qt::DropActions PythonQtShell_QAbstractTableModel::supportedDropActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTableModel::supportedDropActions(); +} +void PythonQtShell_QAbstractTableModel::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractTableModel::timerEvent(arg__1); +} +QAbstractTableModel* PythonQtWrapper_QAbstractTableModel::new_QAbstractTableModel(QObject* parent) +{ +return new PythonQtShell_QAbstractTableModel(parent); } + +bool PythonQtWrapper_QAbstractTableModel::dropMimeData(QAbstractTableModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QAbstractTableModel*)theWrappedObject)->promoted_dropMimeData(data, action, row, column, parent)); +} + +QModelIndex PythonQtWrapper_QAbstractTableModel::index(QAbstractTableModel* theWrappedObject, int row, int column, const QModelIndex& parent) const +{ + return ( ((PythonQtPublicPromoter_QAbstractTableModel*)theWrappedObject)->promoted_index(row, column, parent)); +} + + + +PythonQtShell_QAbstractTransition::~PythonQtShell_QAbstractTransition() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QAbstractTransition::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractTransition::childEvent(arg__1); +} +void PythonQtShell_QAbstractTransition::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractTransition::customEvent(arg__1); +} +bool PythonQtShell_QAbstractTransition::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTransition::event(e); +} +bool PythonQtShell_QAbstractTransition::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractTransition::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QAbstractTransition::eventTest(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventTest"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventTest", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +void PythonQtShell_QAbstractTransition::onTransition(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onTransition"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractTransition::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractTransition::timerEvent(arg__1); +} +QAbstractTransition* PythonQtWrapper_QAbstractTransition::new_QAbstractTransition(QState* sourceState) +{ +return new PythonQtShell_QAbstractTransition(sourceState); } + +void PythonQtWrapper_QAbstractTransition::addAnimation(QAbstractTransition* theWrappedObject, QAbstractAnimation* animation) +{ + ( theWrappedObject->addAnimation(animation)); +} + +QList PythonQtWrapper_QAbstractTransition::animations(QAbstractTransition* theWrappedObject) const +{ + return ( theWrappedObject->animations()); +} + +bool PythonQtWrapper_QAbstractTransition::event(QAbstractTransition* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QAbstractTransition*)theWrappedObject)->promoted_event(e)); +} + +QStateMachine* PythonQtWrapper_QAbstractTransition::machine(QAbstractTransition* theWrappedObject) const +{ + return ( theWrappedObject->machine()); +} + +void PythonQtWrapper_QAbstractTransition::removeAnimation(QAbstractTransition* theWrappedObject, QAbstractAnimation* animation) +{ + ( theWrappedObject->removeAnimation(animation)); +} + +void PythonQtWrapper_QAbstractTransition::setTargetState(QAbstractTransition* theWrappedObject, QAbstractState* target) +{ + ( theWrappedObject->setTargetState(target)); +} + +void PythonQtWrapper_QAbstractTransition::setTargetStates(QAbstractTransition* theWrappedObject, const QList& targets) +{ + ( theWrappedObject->setTargetStates(targets)); +} + +QState* PythonQtWrapper_QAbstractTransition::sourceState(QAbstractTransition* theWrappedObject) const +{ + return ( theWrappedObject->sourceState()); +} + +QAbstractState* PythonQtWrapper_QAbstractTransition::targetState(QAbstractTransition* theWrappedObject) const +{ + return ( theWrappedObject->targetState()); +} + +QList PythonQtWrapper_QAbstractTransition::targetStates(QAbstractTransition* theWrappedObject) const +{ + return ( theWrappedObject->targetStates()); +} + + + +PythonQtShell_QAnimationGroup::~PythonQtShell_QAnimationGroup() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QAnimationGroup::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAnimationGroup::childEvent(arg__1); +} +void PythonQtShell_QAnimationGroup::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAnimationGroup::customEvent(arg__1); +} +int PythonQtShell_QAnimationGroup::duration() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "duration"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("duration", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +bool PythonQtShell_QAnimationGroup::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAnimationGroup::event(event); +} +bool PythonQtShell_QAnimationGroup::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAnimationGroup::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QAnimationGroup::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAnimationGroup::timerEvent(arg__1); +} +void PythonQtShell_QAnimationGroup::updateCurrentTime(int currentTime) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentTime"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)¤tTime}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAnimationGroup::updateDirection(QAbstractAnimation::Direction direction) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateDirection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractAnimation::Direction"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&direction}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAnimationGroup::updateDirection(direction); +} +void PythonQtShell_QAnimationGroup::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateState"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractAnimation::State" , "QAbstractAnimation::State"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&newState, (void*)&oldState}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAnimationGroup::updateState(newState, oldState); +} +QAnimationGroup* PythonQtWrapper_QAnimationGroup::new_QAnimationGroup(QObject* parent) +{ +return new PythonQtShell_QAnimationGroup(parent); } + +void PythonQtWrapper_QAnimationGroup::addAnimation(QAnimationGroup* theWrappedObject, QAbstractAnimation* animation) +{ + ( theWrappedObject->addAnimation(animation)); +} + +QAbstractAnimation* PythonQtWrapper_QAnimationGroup::animationAt(QAnimationGroup* theWrappedObject, int index) const +{ + return ( theWrappedObject->animationAt(index)); +} + +int PythonQtWrapper_QAnimationGroup::animationCount(QAnimationGroup* theWrappedObject) const +{ + return ( theWrappedObject->animationCount()); +} + +void PythonQtWrapper_QAnimationGroup::clear(QAnimationGroup* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +bool PythonQtWrapper_QAnimationGroup::event(QAnimationGroup* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QAnimationGroup*)theWrappedObject)->promoted_event(event)); +} + +int PythonQtWrapper_QAnimationGroup::indexOfAnimation(QAnimationGroup* theWrappedObject, QAbstractAnimation* animation) const +{ + return ( theWrappedObject->indexOfAnimation(animation)); +} + +void PythonQtWrapper_QAnimationGroup::insertAnimation(QAnimationGroup* theWrappedObject, int index, QAbstractAnimation* animation) +{ + ( theWrappedObject->insertAnimation(index, animation)); +} + +void PythonQtWrapper_QAnimationGroup::removeAnimation(QAnimationGroup* theWrappedObject, QAbstractAnimation* animation) +{ + ( theWrappedObject->removeAnimation(animation)); +} + +QAbstractAnimation* PythonQtWrapper_QAnimationGroup::takeAnimation(QAnimationGroup* theWrappedObject, int index) +{ + return ( theWrappedObject->takeAnimation(index)); +} + + + +PythonQtShell_QBasicMutex::~PythonQtShell_QBasicMutex() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QBasicMutex* PythonQtWrapper_QBasicMutex::new_QBasicMutex() +{ +return new PythonQtShell_QBasicMutex(); } + +bool PythonQtWrapper_QBasicMutex::isRecursive(QBasicMutex* theWrappedObject) +{ + return ( theWrappedObject->isRecursive()); +} + +void PythonQtWrapper_QBasicMutex::lock(QBasicMutex* theWrappedObject) +{ + ( theWrappedObject->lock()); +} + +bool PythonQtWrapper_QBasicMutex::tryLock(QBasicMutex* theWrappedObject) +{ + return ( theWrappedObject->tryLock()); +} + +void PythonQtWrapper_QBasicMutex::unlock(QBasicMutex* theWrappedObject) +{ + ( theWrappedObject->unlock()); +} + + + +QBasicTimer* PythonQtWrapper_QBasicTimer::new_QBasicTimer() +{ +return new QBasicTimer(); } + +bool PythonQtWrapper_QBasicTimer::isActive(QBasicTimer* theWrappedObject) const +{ + return ( theWrappedObject->isActive()); +} + +void PythonQtWrapper_QBasicTimer::start(QBasicTimer* theWrappedObject, int msec, QObject* obj) +{ + ( theWrappedObject->start(msec, obj)); +} + +void PythonQtWrapper_QBasicTimer::start(QBasicTimer* theWrappedObject, int msec, Qt::TimerType timerType, QObject* obj) +{ + ( theWrappedObject->start(msec, timerType, obj)); +} + +void PythonQtWrapper_QBasicTimer::stop(QBasicTimer* theWrappedObject) +{ + ( theWrappedObject->stop()); +} + +int PythonQtWrapper_QBasicTimer::timerId(QBasicTimer* theWrappedObject) const +{ + return ( theWrappedObject->timerId()); +} + + + +PythonQtShell_QBuffer::~PythonQtShell_QBuffer() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QBuffer::atEnd() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBuffer::atEnd(); +} +qint64 PythonQtShell_QBuffer::bytesAvailable() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBuffer::bytesAvailable(); +} +qint64 PythonQtShell_QBuffer::bytesToWrite() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBuffer::bytesToWrite(); +} +bool PythonQtShell_QBuffer::canReadLine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBuffer::canReadLine(); +} +void PythonQtShell_QBuffer::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QBuffer::childEvent(arg__1); +} +void PythonQtShell_QBuffer::close() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QBuffer::close(); +} +void PythonQtShell_QBuffer::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QBuffer::customEvent(arg__1); +} +bool PythonQtShell_QBuffer::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBuffer::event(arg__1); +} +bool PythonQtShell_QBuffer::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBuffer::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QBuffer::isSequential() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBuffer::isSequential(); +} +bool PythonQtShell_QBuffer::open(QIODevice::OpenMode openMode) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&openMode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBuffer::open(openMode); +} +qint64 PythonQtShell_QBuffer::pos() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBuffer::pos(); +} +qint64 PythonQtShell_QBuffer::readData(char* data, qint64 maxlen) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBuffer::readData(data, maxlen); +} +qint64 PythonQtShell_QBuffer::readLineData(char* data, qint64 maxlen) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBuffer::readLineData(data, maxlen); +} +bool PythonQtShell_QBuffer::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBuffer::reset(); +} +bool PythonQtShell_QBuffer::seek(qint64 off) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&off}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBuffer::seek(off); +} +qint64 PythonQtShell_QBuffer::size() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBuffer::size(); +} +void PythonQtShell_QBuffer::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QBuffer::timerEvent(arg__1); +} +bool PythonQtShell_QBuffer::waitForBytesWritten(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBuffer::waitForBytesWritten(msecs); +} +bool PythonQtShell_QBuffer::waitForReadyRead(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBuffer::waitForReadyRead(msecs); +} +qint64 PythonQtShell_QBuffer::writeData(const char* data, qint64 len) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&len}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBuffer::writeData(data, len); +} +QBuffer* PythonQtWrapper_QBuffer::new_QBuffer(QByteArray* buf, QObject* parent) +{ +return new PythonQtShell_QBuffer(buf, parent); } + +QBuffer* PythonQtWrapper_QBuffer::new_QBuffer(QObject* parent) +{ +return new PythonQtShell_QBuffer(parent); } + +bool PythonQtWrapper_QBuffer::atEnd(QBuffer* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_atEnd()); +} + +bool PythonQtWrapper_QBuffer::canReadLine(QBuffer* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_canReadLine()); +} + +void PythonQtWrapper_QBuffer::close(QBuffer* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_close()); +} + +bool PythonQtWrapper_QBuffer::open(QBuffer* theWrappedObject, QIODevice::OpenMode openMode) +{ + return ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_open(openMode)); +} + +qint64 PythonQtWrapper_QBuffer::pos(QBuffer* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_pos()); +} + +qint64 PythonQtWrapper_QBuffer::readData(QBuffer* theWrappedObject, char* data, qint64 maxlen) +{ + return ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_readData(data, maxlen)); +} + +bool PythonQtWrapper_QBuffer::seek(QBuffer* theWrappedObject, qint64 off) +{ + return ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_seek(off)); +} + +void PythonQtWrapper_QBuffer::setBuffer(QBuffer* theWrappedObject, QByteArray* a) +{ + ( theWrappedObject->setBuffer(a)); +} + +void PythonQtWrapper_QBuffer::setData(QBuffer* theWrappedObject, const QByteArray& data) +{ + ( theWrappedObject->setData(data)); +} + +qint64 PythonQtWrapper_QBuffer::size(QBuffer* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_size()); +} + +qint64 PythonQtWrapper_QBuffer::writeData(QBuffer* theWrappedObject, const char* data, qint64 len) +{ + return ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_writeData(data, len)); +} + + + +QByteArrayMatcher* PythonQtWrapper_QByteArrayMatcher::new_QByteArrayMatcher() +{ +return new QByteArrayMatcher(); } + +QByteArrayMatcher* PythonQtWrapper_QByteArrayMatcher::new_QByteArrayMatcher(const QByteArray& pattern) +{ +return new QByteArrayMatcher(pattern); } + +QByteArrayMatcher* PythonQtWrapper_QByteArrayMatcher::new_QByteArrayMatcher(const QByteArrayMatcher& other) +{ +return new QByteArrayMatcher(other); } + +QByteArrayMatcher* PythonQtWrapper_QByteArrayMatcher::new_QByteArrayMatcher(const char* pattern, int length) +{ +return new QByteArrayMatcher(pattern, length); } + +int PythonQtWrapper_QByteArrayMatcher::indexIn(QByteArrayMatcher* theWrappedObject, const QByteArray& ba, int from) const +{ + return ( theWrappedObject->indexIn(ba, from)); +} + +int PythonQtWrapper_QByteArrayMatcher::indexIn(QByteArrayMatcher* theWrappedObject, const char* str, int len, int from) const +{ + return ( theWrappedObject->indexIn(str, len, from)); +} + +QByteArray PythonQtWrapper_QByteArrayMatcher::pattern(QByteArrayMatcher* theWrappedObject) const +{ + return ( theWrappedObject->pattern()); +} + +void PythonQtWrapper_QByteArrayMatcher::setPattern(QByteArrayMatcher* theWrappedObject, const QByteArray& pattern) +{ + ( theWrappedObject->setPattern(pattern)); +} + + + +PythonQtShell_QChildEvent::~PythonQtShell_QChildEvent() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QChildEvent* PythonQtWrapper_QChildEvent::new_QChildEvent(QEvent::Type type, QObject* child) +{ +return new PythonQtShell_QChildEvent(type, child); } + +bool PythonQtWrapper_QChildEvent::added(QChildEvent* theWrappedObject) const +{ + return ( theWrappedObject->added()); +} + +QObject* PythonQtWrapper_QChildEvent::child(QChildEvent* theWrappedObject) const +{ + return ( theWrappedObject->child()); +} + +bool PythonQtWrapper_QChildEvent::polished(QChildEvent* theWrappedObject) const +{ + return ( theWrappedObject->polished()); +} + +bool PythonQtWrapper_QChildEvent::removed(QChildEvent* theWrappedObject) const +{ + return ( theWrappedObject->removed()); +} + + + +PythonQtShell_QCoreApplication::~PythonQtShell_QCoreApplication() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QCoreApplication::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCoreApplication::childEvent(arg__1); +} +void PythonQtShell_QCoreApplication::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCoreApplication::customEvent(arg__1); +} +bool PythonQtShell_QCoreApplication::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCoreApplication::event(arg__1); +} +bool PythonQtShell_QCoreApplication::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCoreApplication::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QCoreApplication::notify(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "notify"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("notify", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCoreApplication::notify(arg__1, arg__2); +} +void PythonQtShell_QCoreApplication::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCoreApplication::timerEvent(arg__1); +} +QCoreApplication* PythonQtWrapper_QCoreApplication::new_QCoreApplication(int& argc, char** argv) +{ +return new PythonQtShell_QCoreApplication(argc, argv); } + +void PythonQtWrapper_QCoreApplication::static_QCoreApplication_addLibraryPath(const QString& arg__1) +{ + (QCoreApplication::addLibraryPath(arg__1)); +} + +QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationDirPath() +{ + return (QCoreApplication::applicationDirPath()); +} + +QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationFilePath() +{ + return (QCoreApplication::applicationFilePath()); +} + +QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationName() +{ + return (QCoreApplication::applicationName()); +} + +qint64 PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationPid() +{ + return (QCoreApplication::applicationPid()); +} + +QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationVersion() +{ + return (QCoreApplication::applicationVersion()); +} + +bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_closingDown() +{ + return (QCoreApplication::closingDown()); +} + +bool PythonQtWrapper_QCoreApplication::event(QCoreApplication* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QCoreApplication*)theWrappedObject)->promoted_event(arg__1)); +} + +int PythonQtWrapper_QCoreApplication::static_QCoreApplication_exec() +{ + return (QCoreApplication::exec()); +} + +void PythonQtWrapper_QCoreApplication::static_QCoreApplication_exit(int retcode) +{ + (QCoreApplication::exit(retcode)); +} + +void PythonQtWrapper_QCoreApplication::static_QCoreApplication_flush() +{ + (QCoreApplication::flush()); +} + +bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_hasPendingEvents() +{ + return (QCoreApplication::hasPendingEvents()); +} + +bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_installTranslator(QTranslator* messageFile) +{ + return (QCoreApplication::installTranslator(messageFile)); +} + +QCoreApplication* PythonQtWrapper_QCoreApplication::static_QCoreApplication_instance() +{ + return (QCoreApplication::instance()); +} + +bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_isQuitLockEnabled() +{ + return (QCoreApplication::isQuitLockEnabled()); +} + +QStringList PythonQtWrapper_QCoreApplication::static_QCoreApplication_libraryPaths() +{ + return (QCoreApplication::libraryPaths()); +} + +bool PythonQtWrapper_QCoreApplication::notify(QCoreApplication* theWrappedObject, QObject* arg__1, QEvent* arg__2) +{ + return ( ((PythonQtPublicPromoter_QCoreApplication*)theWrappedObject)->promoted_notify(arg__1, arg__2)); +} + +QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_organizationDomain() +{ + return (QCoreApplication::organizationDomain()); +} + +QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_organizationName() +{ + return (QCoreApplication::organizationName()); +} + +void PythonQtWrapper_QCoreApplication::static_QCoreApplication_postEvent(QObject* receiver, QEvent* event, int priority) +{ + (QCoreApplication::postEvent(receiver, event, priority)); +} + +void PythonQtWrapper_QCoreApplication::static_QCoreApplication_processEvents(QEventLoop::ProcessEventsFlags flags) +{ + (QCoreApplication::processEvents(flags)); +} + +void PythonQtWrapper_QCoreApplication::static_QCoreApplication_processEvents(QEventLoop::ProcessEventsFlags flags, int maxtime) +{ + (QCoreApplication::processEvents(flags, maxtime)); +} + +void PythonQtWrapper_QCoreApplication::static_QCoreApplication_removeLibraryPath(const QString& arg__1) +{ + (QCoreApplication::removeLibraryPath(arg__1)); +} + +void PythonQtWrapper_QCoreApplication::static_QCoreApplication_removePostedEvents(QObject* receiver, int eventType) +{ + (QCoreApplication::removePostedEvents(receiver, eventType)); +} + +bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_removeTranslator(QTranslator* messageFile) +{ + return (QCoreApplication::removeTranslator(messageFile)); +} + +bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_sendEvent(QObject* receiver, QEvent* event) +{ + return (QCoreApplication::sendEvent(receiver, event)); +} + +void PythonQtWrapper_QCoreApplication::static_QCoreApplication_sendPostedEvents(QObject* receiver, int event_type) +{ + (QCoreApplication::sendPostedEvents(receiver, event_type)); +} + +void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setApplicationName(const QString& application) +{ + (QCoreApplication::setApplicationName(application)); +} + +void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setApplicationVersion(const QString& version) +{ + (QCoreApplication::setApplicationVersion(version)); +} + +void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setAttribute(Qt::ApplicationAttribute attribute, bool on) +{ + (QCoreApplication::setAttribute(attribute, on)); +} + +void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setLibraryPaths(const QStringList& arg__1) +{ + (QCoreApplication::setLibraryPaths(arg__1)); +} + +void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setOrganizationDomain(const QString& orgDomain) +{ + (QCoreApplication::setOrganizationDomain(orgDomain)); +} + +void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setOrganizationName(const QString& orgName) +{ + (QCoreApplication::setOrganizationName(orgName)); +} + +void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setQuitLockEnabled(bool enabled) +{ + (QCoreApplication::setQuitLockEnabled(enabled)); +} + +bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_startingUp() +{ + return (QCoreApplication::startingUp()); +} + +bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_testAttribute(Qt::ApplicationAttribute attribute) +{ + return (QCoreApplication::testAttribute(attribute)); +} + +QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_translate(const char* context, const char* key, const char* disambiguation, int n) +{ + return (QCoreApplication::translate(context, key, disambiguation, n)); +} + + + +QCryptographicHash* PythonQtWrapper_QCryptographicHash::new_QCryptographicHash(QCryptographicHash::Algorithm method) +{ +return new QCryptographicHash(method); } + +bool PythonQtWrapper_QCryptographicHash::addData(QCryptographicHash* theWrappedObject, QIODevice* device) +{ + return ( theWrappedObject->addData(device)); +} + +void PythonQtWrapper_QCryptographicHash::addData(QCryptographicHash* theWrappedObject, const QByteArray& data) +{ + ( theWrappedObject->addData(data)); +} + +QByteArray PythonQtWrapper_QCryptographicHash::static_QCryptographicHash_hash(const QByteArray& data, QCryptographicHash::Algorithm method) +{ + return (QCryptographicHash::hash(data, method)); +} + +void PythonQtWrapper_QCryptographicHash::reset(QCryptographicHash* theWrappedObject) +{ + ( theWrappedObject->reset()); +} + +QByteArray PythonQtWrapper_QCryptographicHash::result(QCryptographicHash* theWrappedObject) const +{ + return ( theWrappedObject->result()); +} + + + +QDir* PythonQtWrapper_QDir::new_QDir(const QDir& arg__1) +{ +return new QDir(arg__1); } + +QDir* PythonQtWrapper_QDir::new_QDir(const QString& path) +{ +return new QDir(path); } + +QDir* PythonQtWrapper_QDir::new_QDir(const QString& path, const QString& nameFilter, QDir::SortFlags sort, QDir::Filters filter) +{ +return new QDir(path, nameFilter, sort, filter); } + +QString PythonQtWrapper_QDir::absoluteFilePath(QDir* theWrappedObject, const QString& fileName) const +{ + return ( theWrappedObject->absoluteFilePath(fileName)); +} + +QString PythonQtWrapper_QDir::absolutePath(QDir* theWrappedObject) const +{ + return ( theWrappedObject->absolutePath()); +} + +void PythonQtWrapper_QDir::static_QDir_addSearchPath(const QString& prefix, const QString& path) +{ + (QDir::addSearchPath(prefix, path)); +} + +QString PythonQtWrapper_QDir::canonicalPath(QDir* theWrappedObject) const +{ + return ( theWrappedObject->canonicalPath()); +} + +bool PythonQtWrapper_QDir::cd(QDir* theWrappedObject, const QString& dirName) +{ + return ( theWrappedObject->cd(dirName)); +} + +bool PythonQtWrapper_QDir::cdUp(QDir* theWrappedObject) +{ + return ( theWrappedObject->cdUp()); +} + +QString PythonQtWrapper_QDir::static_QDir_cleanPath(const QString& path) +{ + return (QDir::cleanPath(path)); +} + +uint PythonQtWrapper_QDir::count(QDir* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +QDir PythonQtWrapper_QDir::static_QDir_current() +{ + return (QDir::current()); +} + +QString PythonQtWrapper_QDir::static_QDir_currentPath() +{ + return (QDir::currentPath()); +} + +QString PythonQtWrapper_QDir::dirName(QDir* theWrappedObject) const +{ + return ( theWrappedObject->dirName()); +} + +QList PythonQtWrapper_QDir::static_QDir_drives() +{ + return (QDir::drives()); +} + +QList PythonQtWrapper_QDir::entryInfoList(QDir* theWrappedObject, QDir::Filters filters, QDir::SortFlags sort) const +{ + return ( theWrappedObject->entryInfoList(filters, sort)); +} + +QList PythonQtWrapper_QDir::entryInfoList(QDir* theWrappedObject, const QStringList& nameFilters, QDir::Filters filters, QDir::SortFlags sort) const +{ + return ( theWrappedObject->entryInfoList(nameFilters, filters, sort)); +} + +QStringList PythonQtWrapper_QDir::entryList(QDir* theWrappedObject, QDir::Filters filters, QDir::SortFlags sort) const +{ + return ( theWrappedObject->entryList(filters, sort)); +} + +QStringList PythonQtWrapper_QDir::entryList(QDir* theWrappedObject, const QStringList& nameFilters, QDir::Filters filters, QDir::SortFlags sort) const +{ + return ( theWrappedObject->entryList(nameFilters, filters, sort)); +} + +bool PythonQtWrapper_QDir::exists(QDir* theWrappedObject) const +{ + return ( theWrappedObject->exists()); +} + +bool PythonQtWrapper_QDir::exists(QDir* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->exists(name)); +} + +QString PythonQtWrapper_QDir::filePath(QDir* theWrappedObject, const QString& fileName) const +{ + return ( theWrappedObject->filePath(fileName)); +} + +QDir::Filters PythonQtWrapper_QDir::filter(QDir* theWrappedObject) const +{ + return ( theWrappedObject->filter()); +} + +QString PythonQtWrapper_QDir::static_QDir_fromNativeSeparators(const QString& pathName) +{ + return (QDir::fromNativeSeparators(pathName)); +} + +QDir PythonQtWrapper_QDir::static_QDir_home() +{ + return (QDir::home()); +} + +QString PythonQtWrapper_QDir::static_QDir_homePath() +{ + return (QDir::homePath()); +} + +bool PythonQtWrapper_QDir::isAbsolute(QDir* theWrappedObject) const +{ + return ( theWrappedObject->isAbsolute()); +} + +bool PythonQtWrapper_QDir::static_QDir_isAbsolutePath(const QString& path) +{ + return (QDir::isAbsolutePath(path)); +} + +bool PythonQtWrapper_QDir::isReadable(QDir* theWrappedObject) const +{ + return ( theWrappedObject->isReadable()); +} + +bool PythonQtWrapper_QDir::isRelative(QDir* theWrappedObject) const +{ + return ( theWrappedObject->isRelative()); +} + +bool PythonQtWrapper_QDir::static_QDir_isRelativePath(const QString& path) +{ + return (QDir::isRelativePath(path)); +} + +bool PythonQtWrapper_QDir::isRoot(QDir* theWrappedObject) const +{ + return ( theWrappedObject->isRoot()); +} + +bool PythonQtWrapper_QDir::makeAbsolute(QDir* theWrappedObject) +{ + return ( theWrappedObject->makeAbsolute()); +} + +bool PythonQtWrapper_QDir::static_QDir_match(const QString& filter, const QString& fileName) +{ + return (QDir::match(filter, fileName)); +} + +bool PythonQtWrapper_QDir::static_QDir_match(const QStringList& filters, const QString& fileName) +{ + return (QDir::match(filters, fileName)); +} + +bool PythonQtWrapper_QDir::mkdir(QDir* theWrappedObject, const QString& dirName) const +{ + return ( theWrappedObject->mkdir(dirName)); +} + +bool PythonQtWrapper_QDir::mkpath(QDir* theWrappedObject, const QString& dirPath) const +{ + return ( theWrappedObject->mkpath(dirPath)); +} + +QStringList PythonQtWrapper_QDir::nameFilters(QDir* theWrappedObject) const +{ + return ( theWrappedObject->nameFilters()); +} + +QStringList PythonQtWrapper_QDir::static_QDir_nameFiltersFromString(const QString& nameFilter) +{ + return (QDir::nameFiltersFromString(nameFilter)); +} + +bool PythonQtWrapper_QDir::__ne__(QDir* theWrappedObject, const QDir& dir) const +{ + return ( (*theWrappedObject)!= dir); +} + +bool PythonQtWrapper_QDir::__eq__(QDir* theWrappedObject, const QDir& dir) const +{ + return ( (*theWrappedObject)== dir); +} + +QString PythonQtWrapper_QDir::operator_subscript(QDir* theWrappedObject, int arg__1) const +{ + return ( (*theWrappedObject)[arg__1]); +} + +QString PythonQtWrapper_QDir::path(QDir* theWrappedObject) const +{ + return ( theWrappedObject->path()); +} + +void PythonQtWrapper_QDir::refresh(QDir* theWrappedObject) const +{ + ( theWrappedObject->refresh()); +} + +QString PythonQtWrapper_QDir::relativeFilePath(QDir* theWrappedObject, const QString& fileName) const +{ + return ( theWrappedObject->relativeFilePath(fileName)); +} + +bool PythonQtWrapper_QDir::remove(QDir* theWrappedObject, const QString& fileName) +{ + return ( theWrappedObject->remove(fileName)); +} + +bool PythonQtWrapper_QDir::removeRecursively(QDir* theWrappedObject) +{ + return ( theWrappedObject->removeRecursively()); +} + +bool PythonQtWrapper_QDir::rename(QDir* theWrappedObject, const QString& oldName, const QString& newName) +{ + return ( theWrappedObject->rename(oldName, newName)); +} + +bool PythonQtWrapper_QDir::rmdir(QDir* theWrappedObject, const QString& dirName) const +{ + return ( theWrappedObject->rmdir(dirName)); +} + +bool PythonQtWrapper_QDir::rmpath(QDir* theWrappedObject, const QString& dirPath) const +{ + return ( theWrappedObject->rmpath(dirPath)); +} + +QDir PythonQtWrapper_QDir::static_QDir_root() +{ + return (QDir::root()); +} + +QString PythonQtWrapper_QDir::static_QDir_rootPath() +{ + return (QDir::rootPath()); +} + +QStringList PythonQtWrapper_QDir::static_QDir_searchPaths(const QString& prefix) +{ + return (QDir::searchPaths(prefix)); +} + +QChar PythonQtWrapper_QDir::static_QDir_separator() +{ + return (QDir::separator()); +} + +bool PythonQtWrapper_QDir::static_QDir_setCurrent(const QString& path) +{ + return (QDir::setCurrent(path)); +} + +void PythonQtWrapper_QDir::setFilter(QDir* theWrappedObject, QDir::Filters filter) +{ + ( theWrappedObject->setFilter(filter)); +} + +void PythonQtWrapper_QDir::setNameFilters(QDir* theWrappedObject, const QStringList& nameFilters) +{ + ( theWrappedObject->setNameFilters(nameFilters)); +} + +void PythonQtWrapper_QDir::setPath(QDir* theWrappedObject, const QString& path) +{ + ( theWrappedObject->setPath(path)); +} + +void PythonQtWrapper_QDir::static_QDir_setSearchPaths(const QString& prefix, const QStringList& searchPaths) +{ + (QDir::setSearchPaths(prefix, searchPaths)); +} + +void PythonQtWrapper_QDir::setSorting(QDir* theWrappedObject, QDir::SortFlags sort) +{ + ( theWrappedObject->setSorting(sort)); +} + +QDir::SortFlags PythonQtWrapper_QDir::sorting(QDir* theWrappedObject) const +{ + return ( theWrappedObject->sorting()); +} + +void PythonQtWrapper_QDir::swap(QDir* theWrappedObject, QDir& other) +{ + ( theWrappedObject->swap(other)); +} + +QDir PythonQtWrapper_QDir::static_QDir_temp() +{ + return (QDir::temp()); +} + +QString PythonQtWrapper_QDir::static_QDir_tempPath() +{ + return (QDir::tempPath()); +} + +QString PythonQtWrapper_QDir::static_QDir_toNativeSeparators(const QString& pathName) +{ + return (QDir::toNativeSeparators(pathName)); +} + +QString PythonQtWrapper_QDir::py_toString(QDir* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QDirIterator* PythonQtWrapper_QDirIterator::new_QDirIterator(const QDir& dir, QDirIterator::IteratorFlags flags) +{ +return new QDirIterator(dir, flags); } + +QDirIterator* PythonQtWrapper_QDirIterator::new_QDirIterator(const QString& path, QDir::Filters filter, QDirIterator::IteratorFlags flags) +{ +return new QDirIterator(path, filter, flags); } + +QDirIterator* PythonQtWrapper_QDirIterator::new_QDirIterator(const QString& path, QDirIterator::IteratorFlags flags) +{ +return new QDirIterator(path, flags); } + +QDirIterator* PythonQtWrapper_QDirIterator::new_QDirIterator(const QString& path, const QStringList& nameFilters, QDir::Filters filters, QDirIterator::IteratorFlags flags) +{ +return new QDirIterator(path, nameFilters, filters, flags); } + +QFileInfo PythonQtWrapper_QDirIterator::fileInfo(QDirIterator* theWrappedObject) const +{ + return ( theWrappedObject->fileInfo()); +} + +QString PythonQtWrapper_QDirIterator::fileName(QDirIterator* theWrappedObject) const +{ + return ( theWrappedObject->fileName()); +} + +QString PythonQtWrapper_QDirIterator::filePath(QDirIterator* theWrappedObject) const +{ + return ( theWrappedObject->filePath()); +} + +bool PythonQtWrapper_QDirIterator::hasNext(QDirIterator* theWrappedObject) const +{ + return ( theWrappedObject->hasNext()); +} + +QString PythonQtWrapper_QDirIterator::next(QDirIterator* theWrappedObject) +{ + return ( theWrappedObject->next()); +} + +QString PythonQtWrapper_QDirIterator::path(QDirIterator* theWrappedObject) const +{ + return ( theWrappedObject->path()); +} + + + +QDynamicPropertyChangeEvent* PythonQtWrapper_QDynamicPropertyChangeEvent::new_QDynamicPropertyChangeEvent(const QByteArray& name) +{ +return new QDynamicPropertyChangeEvent(name); } + +QByteArray PythonQtWrapper_QDynamicPropertyChangeEvent::propertyName(QDynamicPropertyChangeEvent* theWrappedObject) const +{ + return ( theWrappedObject->propertyName()); +} + + + +QEasingCurve* PythonQtWrapper_QEasingCurve::new_QEasingCurve(QEasingCurve::Type type) +{ +return new QEasingCurve(type); } + +void PythonQtWrapper_QEasingCurve::addCubicBezierSegment(QEasingCurve* theWrappedObject, const QPointF& c1, const QPointF& c2, const QPointF& endPoint) +{ + ( theWrappedObject->addCubicBezierSegment(c1, c2, endPoint)); +} + +void PythonQtWrapper_QEasingCurve::addTCBSegment(QEasingCurve* theWrappedObject, const QPointF& nextPoint, qreal t, qreal c, qreal b) +{ + ( theWrappedObject->addTCBSegment(nextPoint, t, c, b)); +} + +qreal PythonQtWrapper_QEasingCurve::amplitude(QEasingCurve* theWrappedObject) const +{ + return ( theWrappedObject->amplitude()); +} + +qreal PythonQtWrapper_QEasingCurve::overshoot(QEasingCurve* theWrappedObject) const +{ + return ( theWrappedObject->overshoot()); +} + +qreal PythonQtWrapper_QEasingCurve::period(QEasingCurve* theWrappedObject) const +{ + return ( theWrappedObject->period()); +} + +void PythonQtWrapper_QEasingCurve::setAmplitude(QEasingCurve* theWrappedObject, qreal amplitude) +{ + ( theWrappedObject->setAmplitude(amplitude)); +} + +void PythonQtWrapper_QEasingCurve::setOvershoot(QEasingCurve* theWrappedObject, qreal overshoot) +{ + ( theWrappedObject->setOvershoot(overshoot)); +} + +void PythonQtWrapper_QEasingCurve::setPeriod(QEasingCurve* theWrappedObject, qreal period) +{ + ( theWrappedObject->setPeriod(period)); +} + +void PythonQtWrapper_QEasingCurve::setType(QEasingCurve* theWrappedObject, QEasingCurve::Type type) +{ + ( theWrappedObject->setType(type)); +} + +void PythonQtWrapper_QEasingCurve::swap(QEasingCurve* theWrappedObject, QEasingCurve& other) +{ + ( theWrappedObject->swap(other)); +} + +QVector PythonQtWrapper_QEasingCurve::toCubicSpline(QEasingCurve* theWrappedObject) const +{ + return ( theWrappedObject->toCubicSpline()); +} + +QEasingCurve::Type PythonQtWrapper_QEasingCurve::type(QEasingCurve* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + +qreal PythonQtWrapper_QEasingCurve::valueForProgress(QEasingCurve* theWrappedObject, qreal progress) const +{ + return ( theWrappedObject->valueForProgress(progress)); +} + +QString PythonQtWrapper_QEasingCurve::py_toString(QEasingCurve* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +PythonQtShell_QEvent::~PythonQtShell_QEvent() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QEvent* PythonQtWrapper_QEvent::new_QEvent(QEvent::Type type) +{ +return new PythonQtShell_QEvent(type); } + +QEvent* PythonQtWrapper_QEvent::new_QEvent(const QEvent& other) +{ +return new PythonQtShell_QEvent(other); } + +void PythonQtWrapper_QEvent::accept(QEvent* theWrappedObject) +{ + ( theWrappedObject->accept()); +} + +void PythonQtWrapper_QEvent::ignore(QEvent* theWrappedObject) +{ + ( theWrappedObject->ignore()); +} + +bool PythonQtWrapper_QEvent::isAccepted(QEvent* theWrappedObject) const +{ + return ( theWrappedObject->isAccepted()); +} + +QEvent* PythonQtWrapper_QEvent::operator_assign(QEvent* theWrappedObject, const QEvent& other) +{ + return &( (*theWrappedObject)= other); +} + +int PythonQtWrapper_QEvent::static_QEvent_registerEventType(int hint) +{ + return (QEvent::registerEventType(hint)); +} + +void PythonQtWrapper_QEvent::setAccepted(QEvent* theWrappedObject, bool accepted) +{ + ( theWrappedObject->setAccepted(accepted)); +} + +bool PythonQtWrapper_QEvent::spontaneous(QEvent* theWrappedObject) const +{ + return ( theWrappedObject->spontaneous()); +} + +QEvent::Type PythonQtWrapper_QEvent::type(QEvent* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + +QString PythonQtWrapper_QEvent::py_toString(QEvent* obj) { + QString result; + QDebug d(&result); + d << obj; + return result; +} + + + +PythonQtShell_QEventLoop::~PythonQtShell_QEventLoop() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QEventLoop::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QEventLoop::childEvent(arg__1); +} +void PythonQtShell_QEventLoop::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QEventLoop::customEvent(arg__1); +} +bool PythonQtShell_QEventLoop::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QEventLoop::event(event); +} +bool PythonQtShell_QEventLoop::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QEventLoop::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QEventLoop::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QEventLoop::timerEvent(arg__1); +} +QEventLoop* PythonQtWrapper_QEventLoop::new_QEventLoop(QObject* parent) +{ +return new PythonQtShell_QEventLoop(parent); } + +bool PythonQtWrapper_QEventLoop::event(QEventLoop* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QEventLoop*)theWrappedObject)->promoted_event(event)); +} + +int PythonQtWrapper_QEventLoop::exec(QEventLoop* theWrappedObject, QEventLoop::ProcessEventsFlags flags) +{ + return ( theWrappedObject->exec(flags)); +} + +void PythonQtWrapper_QEventLoop::exit(QEventLoop* theWrappedObject, int returnCode) +{ + ( theWrappedObject->exit(returnCode)); +} + +bool PythonQtWrapper_QEventLoop::isRunning(QEventLoop* theWrappedObject) const +{ + return ( theWrappedObject->isRunning()); +} + +bool PythonQtWrapper_QEventLoop::processEvents(QEventLoop* theWrappedObject, QEventLoop::ProcessEventsFlags flags) +{ + return ( theWrappedObject->processEvents(flags)); +} + +void PythonQtWrapper_QEventLoop::processEvents(QEventLoop* theWrappedObject, QEventLoop::ProcessEventsFlags flags, int maximumTime) +{ + ( theWrappedObject->processEvents(flags, maximumTime)); +} + +void PythonQtWrapper_QEventLoop::wakeUp(QEventLoop* theWrappedObject) +{ + ( theWrappedObject->wakeUp()); +} + + + +PythonQtShell_QEventTransition::~PythonQtShell_QEventTransition() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QEventTransition::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QEventTransition::childEvent(arg__1); +} +void PythonQtShell_QEventTransition::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QEventTransition::customEvent(arg__1); +} +bool PythonQtShell_QEventTransition::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QEventTransition::event(e); +} +bool PythonQtShell_QEventTransition::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QEventTransition::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QEventTransition::eventTest(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventTest"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventTest", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QEventTransition::eventTest(event); +} +void PythonQtShell_QEventTransition::onTransition(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onTransition"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QEventTransition::onTransition(event); +} +void PythonQtShell_QEventTransition::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QEventTransition::timerEvent(arg__1); +} +QEventTransition* PythonQtWrapper_QEventTransition::new_QEventTransition(QObject* object, QEvent::Type type, QState* sourceState) +{ +return new PythonQtShell_QEventTransition(object, type, sourceState); } + +QEventTransition* PythonQtWrapper_QEventTransition::new_QEventTransition(QState* sourceState) +{ +return new PythonQtShell_QEventTransition(sourceState); } + +bool PythonQtWrapper_QEventTransition::event(QEventTransition* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QEventTransition*)theWrappedObject)->promoted_event(e)); +} + +QObject* PythonQtWrapper_QEventTransition::eventSource(QEventTransition* theWrappedObject) const +{ + return ( theWrappedObject->eventSource()); +} + +bool PythonQtWrapper_QEventTransition::eventTest(QEventTransition* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QEventTransition*)theWrappedObject)->promoted_eventTest(event)); +} + +QEvent::Type PythonQtWrapper_QEventTransition::eventType(QEventTransition* theWrappedObject) const +{ + return ( theWrappedObject->eventType()); +} + +void PythonQtWrapper_QEventTransition::onTransition(QEventTransition* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QEventTransition*)theWrappedObject)->promoted_onTransition(event)); +} + +void PythonQtWrapper_QEventTransition::setEventSource(QEventTransition* theWrappedObject, QObject* object) +{ + ( theWrappedObject->setEventSource(object)); +} + +void PythonQtWrapper_QEventTransition::setEventType(QEventTransition* theWrappedObject, QEvent::Type type) +{ + ( theWrappedObject->setEventType(type)); +} + + + +QFile* PythonQtWrapper_QFile::new_QFile() +{ +return new QFile(); } + +QFile* PythonQtWrapper_QFile::new_QFile(QObject* parent) +{ +return new QFile(parent); } + +QFile* PythonQtWrapper_QFile::new_QFile(const QString& name) +{ +return new QFile(name); } + +QFile* PythonQtWrapper_QFile::new_QFile(const QString& name, QObject* parent) +{ +return new QFile(name, parent); } + +bool PythonQtWrapper_QFile::static_QFile_copy(const QString& fileName, const QString& newName) +{ + return (QFile::copy(fileName, newName)); +} + +bool PythonQtWrapper_QFile::copy(QFile* theWrappedObject, const QString& newName) +{ + return ( theWrappedObject->copy(newName)); +} + +QString PythonQtWrapper_QFile::static_QFile_decodeName(const QByteArray& localFileName) +{ + return (QFile::decodeName(localFileName)); +} + +QByteArray PythonQtWrapper_QFile::static_QFile_encodeName(const QString& fileName) +{ + return (QFile::encodeName(fileName)); +} + +bool PythonQtWrapper_QFile::exists(QFile* theWrappedObject) const +{ + return ( theWrappedObject->exists()); +} + +bool PythonQtWrapper_QFile::static_QFile_exists(const QString& fileName) +{ + return (QFile::exists(fileName)); +} + +QString PythonQtWrapper_QFile::fileName(QFile* theWrappedObject) const +{ + return ( theWrappedObject->fileName()); +} + +bool PythonQtWrapper_QFile::link(QFile* theWrappedObject, const QString& newName) +{ + return ( theWrappedObject->link(newName)); +} + +bool PythonQtWrapper_QFile::static_QFile_link(const QString& oldname, const QString& newName) +{ + return (QFile::link(oldname, newName)); +} + +bool PythonQtWrapper_QFile::open(QFile* theWrappedObject, QIODevice::OpenMode flags) +{ + return ( theWrappedObject->open(flags)); +} + +bool PythonQtWrapper_QFile::remove(QFile* theWrappedObject) +{ + return ( theWrappedObject->remove()); +} + +bool PythonQtWrapper_QFile::static_QFile_remove(const QString& fileName) +{ + return (QFile::remove(fileName)); +} + +bool PythonQtWrapper_QFile::rename(QFile* theWrappedObject, const QString& newName) +{ + return ( theWrappedObject->rename(newName)); +} + +bool PythonQtWrapper_QFile::static_QFile_rename(const QString& oldName, const QString& newName) +{ + return (QFile::rename(oldName, newName)); +} + +bool PythonQtWrapper_QFile::static_QFile_resize(const QString& filename, qint64 sz) +{ + return (QFile::resize(filename, sz)); +} + +bool PythonQtWrapper_QFile::resize(QFile* theWrappedObject, qint64 sz) +{ + return ( theWrappedObject->resize(sz)); +} + +void PythonQtWrapper_QFile::setFileName(QFile* theWrappedObject, const QString& name) +{ + ( theWrappedObject->setFileName(name)); +} + +qint64 PythonQtWrapper_QFile::size(QFile* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +QString PythonQtWrapper_QFile::symLinkTarget(QFile* theWrappedObject) const +{ + return ( theWrappedObject->symLinkTarget()); +} + +QString PythonQtWrapper_QFile::static_QFile_symLinkTarget(const QString& fileName) +{ + return (QFile::symLinkTarget(fileName)); +} + + + +QFileInfo* PythonQtWrapper_QFileInfo::new_QFileInfo() +{ +return new QFileInfo(); } + +QFileInfo* PythonQtWrapper_QFileInfo::new_QFileInfo(const QDir& dir, const QString& file) +{ +return new QFileInfo(dir, file); } + +QFileInfo* PythonQtWrapper_QFileInfo::new_QFileInfo(const QFile& file) +{ +return new QFileInfo(file); } + +QFileInfo* PythonQtWrapper_QFileInfo::new_QFileInfo(const QFileInfo& fileinfo) +{ +return new QFileInfo(fileinfo); } + +QFileInfo* PythonQtWrapper_QFileInfo::new_QFileInfo(const QString& file) +{ +return new QFileInfo(file); } + +QDir PythonQtWrapper_QFileInfo::absoluteDir(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->absoluteDir()); +} + +QString PythonQtWrapper_QFileInfo::absoluteFilePath(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->absoluteFilePath()); +} + +QString PythonQtWrapper_QFileInfo::absolutePath(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->absolutePath()); +} + +QString PythonQtWrapper_QFileInfo::baseName(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->baseName()); +} + +QString PythonQtWrapper_QFileInfo::bundleName(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->bundleName()); +} + +bool PythonQtWrapper_QFileInfo::caching(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->caching()); +} + +QString PythonQtWrapper_QFileInfo::canonicalFilePath(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->canonicalFilePath()); +} + +QString PythonQtWrapper_QFileInfo::canonicalPath(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->canonicalPath()); +} + +QString PythonQtWrapper_QFileInfo::completeBaseName(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->completeBaseName()); +} + +QString PythonQtWrapper_QFileInfo::completeSuffix(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->completeSuffix()); +} + +QDateTime PythonQtWrapper_QFileInfo::created(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->created()); +} + +QDir PythonQtWrapper_QFileInfo::dir(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->dir()); +} + +bool PythonQtWrapper_QFileInfo::exists(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->exists()); +} + +QString PythonQtWrapper_QFileInfo::fileName(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->fileName()); +} + +QString PythonQtWrapper_QFileInfo::filePath(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->filePath()); +} + +QString PythonQtWrapper_QFileInfo::group(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->group()); +} + +uint PythonQtWrapper_QFileInfo::groupId(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->groupId()); +} + +bool PythonQtWrapper_QFileInfo::isAbsolute(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->isAbsolute()); +} + +bool PythonQtWrapper_QFileInfo::isBundle(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->isBundle()); +} + +bool PythonQtWrapper_QFileInfo::isDir(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->isDir()); +} + +bool PythonQtWrapper_QFileInfo::isExecutable(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->isExecutable()); +} + +bool PythonQtWrapper_QFileInfo::isFile(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->isFile()); +} + +bool PythonQtWrapper_QFileInfo::isHidden(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->isHidden()); +} + +bool PythonQtWrapper_QFileInfo::isNativePath(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->isNativePath()); +} + +bool PythonQtWrapper_QFileInfo::isReadable(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->isReadable()); +} + +bool PythonQtWrapper_QFileInfo::isRelative(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->isRelative()); +} + +bool PythonQtWrapper_QFileInfo::isRoot(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->isRoot()); +} + +bool PythonQtWrapper_QFileInfo::isSymLink(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->isSymLink()); +} + +bool PythonQtWrapper_QFileInfo::isWritable(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->isWritable()); +} + +QDateTime PythonQtWrapper_QFileInfo::lastModified(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->lastModified()); +} + +QDateTime PythonQtWrapper_QFileInfo::lastRead(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->lastRead()); +} + +bool PythonQtWrapper_QFileInfo::makeAbsolute(QFileInfo* theWrappedObject) +{ + return ( theWrappedObject->makeAbsolute()); +} + +QString PythonQtWrapper_QFileInfo::owner(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->owner()); +} + +uint PythonQtWrapper_QFileInfo::ownerId(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->ownerId()); +} + +QString PythonQtWrapper_QFileInfo::path(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->path()); +} + +bool PythonQtWrapper_QFileInfo::permission(QFileInfo* theWrappedObject, QFile::Permissions permissions) const +{ + return ( theWrappedObject->permission(permissions)); +} + +QFile::Permissions PythonQtWrapper_QFileInfo::permissions(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->permissions()); +} + +void PythonQtWrapper_QFileInfo::refresh(QFileInfo* theWrappedObject) +{ + ( theWrappedObject->refresh()); +} + +void PythonQtWrapper_QFileInfo::setCaching(QFileInfo* theWrappedObject, bool on) +{ + ( theWrappedObject->setCaching(on)); +} + +void PythonQtWrapper_QFileInfo::setFile(QFileInfo* theWrappedObject, const QDir& dir, const QString& file) +{ + ( theWrappedObject->setFile(dir, file)); +} + +void PythonQtWrapper_QFileInfo::setFile(QFileInfo* theWrappedObject, const QFile& file) +{ + ( theWrappedObject->setFile(file)); +} + +void PythonQtWrapper_QFileInfo::setFile(QFileInfo* theWrappedObject, const QString& file) +{ + ( theWrappedObject->setFile(file)); +} + +qint64 PythonQtWrapper_QFileInfo::size(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +QString PythonQtWrapper_QFileInfo::suffix(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->suffix()); +} + +void PythonQtWrapper_QFileInfo::swap(QFileInfo* theWrappedObject, QFileInfo& other) +{ + ( theWrappedObject->swap(other)); +} + +QString PythonQtWrapper_QFileInfo::symLinkTarget(QFileInfo* theWrappedObject) const +{ + return ( theWrappedObject->symLinkTarget()); +} + + + +PythonQtShell_QFileSystemWatcher::~PythonQtShell_QFileSystemWatcher() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QFileSystemWatcher::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileSystemWatcher::childEvent(arg__1); +} +void PythonQtShell_QFileSystemWatcher::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileSystemWatcher::customEvent(arg__1); +} +bool PythonQtShell_QFileSystemWatcher::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileSystemWatcher::event(arg__1); +} +bool PythonQtShell_QFileSystemWatcher::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileSystemWatcher::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QFileSystemWatcher::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileSystemWatcher::timerEvent(arg__1); +} +QFileSystemWatcher* PythonQtWrapper_QFileSystemWatcher::new_QFileSystemWatcher(QObject* parent) +{ +return new PythonQtShell_QFileSystemWatcher(parent); } + +QFileSystemWatcher* PythonQtWrapper_QFileSystemWatcher::new_QFileSystemWatcher(const QStringList& paths, QObject* parent) +{ +return new PythonQtShell_QFileSystemWatcher(paths, parent); } + +bool PythonQtWrapper_QFileSystemWatcher::addPath(QFileSystemWatcher* theWrappedObject, const QString& file) +{ + return ( theWrappedObject->addPath(file)); +} + +QStringList PythonQtWrapper_QFileSystemWatcher::addPaths(QFileSystemWatcher* theWrappedObject, const QStringList& files) +{ + return ( theWrappedObject->addPaths(files)); +} + +QStringList PythonQtWrapper_QFileSystemWatcher::directories(QFileSystemWatcher* theWrappedObject) const +{ + return ( theWrappedObject->directories()); +} + +QStringList PythonQtWrapper_QFileSystemWatcher::files(QFileSystemWatcher* theWrappedObject) const +{ + return ( theWrappedObject->files()); +} + +bool PythonQtWrapper_QFileSystemWatcher::removePath(QFileSystemWatcher* theWrappedObject, const QString& file) +{ + return ( theWrappedObject->removePath(file)); +} + +QStringList PythonQtWrapper_QFileSystemWatcher::removePaths(QFileSystemWatcher* theWrappedObject, const QStringList& files) +{ + return ( theWrappedObject->removePaths(files)); +} + + + +PythonQtShell_QFinalState::~PythonQtShell_QFinalState() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QFinalState::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFinalState::childEvent(arg__1); +} +void PythonQtShell_QFinalState::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFinalState::customEvent(arg__1); +} +bool PythonQtShell_QFinalState::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFinalState::event(e); +} +bool PythonQtShell_QFinalState::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFinalState::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QFinalState::onEntry(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onEntry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFinalState::onEntry(event); +} +void PythonQtShell_QFinalState::onExit(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onExit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFinalState::onExit(event); +} +void PythonQtShell_QFinalState::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFinalState::timerEvent(arg__1); +} +QFinalState* PythonQtWrapper_QFinalState::new_QFinalState(QState* parent) +{ +return new PythonQtShell_QFinalState(parent); } + +bool PythonQtWrapper_QFinalState::event(QFinalState* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QFinalState*)theWrappedObject)->promoted_event(e)); +} + +void PythonQtWrapper_QFinalState::onEntry(QFinalState* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QFinalState*)theWrappedObject)->promoted_onEntry(event)); +} + +void PythonQtWrapper_QFinalState::onExit(QFinalState* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QFinalState*)theWrappedObject)->promoted_onExit(event)); +} + + + +PythonQtShell_QHistoryState::~PythonQtShell_QHistoryState() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QHistoryState::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHistoryState::childEvent(arg__1); +} +void PythonQtShell_QHistoryState::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHistoryState::customEvent(arg__1); +} +bool PythonQtShell_QHistoryState::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHistoryState::event(e); +} +bool PythonQtShell_QHistoryState::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHistoryState::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QHistoryState::onEntry(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onEntry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHistoryState::onEntry(event); +} +void PythonQtShell_QHistoryState::onExit(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onExit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHistoryState::onExit(event); +} +void PythonQtShell_QHistoryState::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHistoryState::timerEvent(arg__1); +} +QHistoryState* PythonQtWrapper_QHistoryState::new_QHistoryState(QHistoryState::HistoryType type, QState* parent) +{ +return new PythonQtShell_QHistoryState(type, parent); } + +QHistoryState* PythonQtWrapper_QHistoryState::new_QHistoryState(QState* parent) +{ +return new PythonQtShell_QHistoryState(parent); } + +QAbstractState* PythonQtWrapper_QHistoryState::defaultState(QHistoryState* theWrappedObject) const +{ + return ( theWrappedObject->defaultState()); +} + +bool PythonQtWrapper_QHistoryState::event(QHistoryState* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QHistoryState*)theWrappedObject)->promoted_event(e)); +} + +QHistoryState::HistoryType PythonQtWrapper_QHistoryState::historyType(QHistoryState* theWrappedObject) const +{ + return ( theWrappedObject->historyType()); +} + +void PythonQtWrapper_QHistoryState::onEntry(QHistoryState* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QHistoryState*)theWrappedObject)->promoted_onEntry(event)); +} + +void PythonQtWrapper_QHistoryState::onExit(QHistoryState* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QHistoryState*)theWrappedObject)->promoted_onExit(event)); +} + +void PythonQtWrapper_QHistoryState::setDefaultState(QHistoryState* theWrappedObject, QAbstractState* state) +{ + ( theWrappedObject->setDefaultState(state)); +} + +void PythonQtWrapper_QHistoryState::setHistoryType(QHistoryState* theWrappedObject, QHistoryState::HistoryType type) +{ + ( theWrappedObject->setHistoryType(type)); +} + + + +PythonQtShell_QIODevice::~PythonQtShell_QIODevice() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QIODevice::atEnd() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIODevice::atEnd(); +} +qint64 PythonQtShell_QIODevice::bytesAvailable() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIODevice::bytesAvailable(); +} +qint64 PythonQtShell_QIODevice::bytesToWrite() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIODevice::bytesToWrite(); +} +bool PythonQtShell_QIODevice::canReadLine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIODevice::canReadLine(); +} +void PythonQtShell_QIODevice::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QIODevice::childEvent(arg__1); +} +void PythonQtShell_QIODevice::close() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QIODevice::close(); +} +void PythonQtShell_QIODevice::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QIODevice::customEvent(arg__1); +} +bool PythonQtShell_QIODevice::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIODevice::event(arg__1); +} +bool PythonQtShell_QIODevice::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIODevice::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QIODevice::isSequential() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIODevice::isSequential(); +} +bool PythonQtShell_QIODevice::open(QIODevice::OpenMode mode) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIODevice::open(mode); +} +qint64 PythonQtShell_QIODevice::pos() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIODevice::pos(); +} +qint64 PythonQtShell_QIODevice::readData(char* data, qint64 maxlen) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return qint64(); +} +qint64 PythonQtShell_QIODevice::readLineData(char* data, qint64 maxlen) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIODevice::readLineData(data, maxlen); +} +bool PythonQtShell_QIODevice::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIODevice::reset(); +} +bool PythonQtShell_QIODevice::seek(qint64 pos) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIODevice::seek(pos); +} +qint64 PythonQtShell_QIODevice::size() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIODevice::size(); +} +void PythonQtShell_QIODevice::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QIODevice::timerEvent(arg__1); +} +bool PythonQtShell_QIODevice::waitForBytesWritten(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIODevice::waitForBytesWritten(msecs); +} +bool PythonQtShell_QIODevice::waitForReadyRead(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIODevice::waitForReadyRead(msecs); +} +qint64 PythonQtShell_QIODevice::writeData(const char* data, qint64 len) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&len}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return qint64(); +} +QIODevice* PythonQtWrapper_QIODevice::new_QIODevice() +{ +return new PythonQtShell_QIODevice(); } + +QIODevice* PythonQtWrapper_QIODevice::new_QIODevice(QObject* parent) +{ +return new PythonQtShell_QIODevice(parent); } + +bool PythonQtWrapper_QIODevice::atEnd(QIODevice* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_atEnd()); +} + +qint64 PythonQtWrapper_QIODevice::bytesAvailable(QIODevice* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_bytesAvailable()); +} + +qint64 PythonQtWrapper_QIODevice::bytesToWrite(QIODevice* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_bytesToWrite()); +} + +bool PythonQtWrapper_QIODevice::canReadLine(QIODevice* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_canReadLine()); +} + +void PythonQtWrapper_QIODevice::close(QIODevice* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_close()); +} + +QString PythonQtWrapper_QIODevice::errorString(QIODevice* theWrappedObject) const +{ + return ( theWrappedObject->errorString()); +} + +bool PythonQtWrapper_QIODevice::getChar(QIODevice* theWrappedObject, char* c) +{ + return ( theWrappedObject->getChar(c)); +} + +bool PythonQtWrapper_QIODevice::isOpen(QIODevice* theWrappedObject) const +{ + return ( theWrappedObject->isOpen()); +} + +bool PythonQtWrapper_QIODevice::isReadable(QIODevice* theWrappedObject) const +{ + return ( theWrappedObject->isReadable()); +} + +bool PythonQtWrapper_QIODevice::isSequential(QIODevice* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_isSequential()); +} + +bool PythonQtWrapper_QIODevice::isTextModeEnabled(QIODevice* theWrappedObject) const +{ + return ( theWrappedObject->isTextModeEnabled()); +} + +bool PythonQtWrapper_QIODevice::isWritable(QIODevice* theWrappedObject) const +{ + return ( theWrappedObject->isWritable()); +} + +bool PythonQtWrapper_QIODevice::open(QIODevice* theWrappedObject, QIODevice::OpenMode mode) +{ + return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_open(mode)); +} + +QIODevice::OpenMode PythonQtWrapper_QIODevice::openMode(QIODevice* theWrappedObject) const +{ + return ( theWrappedObject->openMode()); +} + +QByteArray PythonQtWrapper_QIODevice::peek(QIODevice* theWrappedObject, qint64 maxlen) +{ + return ( theWrappedObject->peek(maxlen)); +} + +qint64 PythonQtWrapper_QIODevice::pos(QIODevice* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_pos()); +} + +bool PythonQtWrapper_QIODevice::putChar(QIODevice* theWrappedObject, char c) +{ + return ( theWrappedObject->putChar(c)); +} + +QByteArray PythonQtWrapper_QIODevice::read(QIODevice* theWrappedObject, qint64 maxlen) +{ + return ( theWrappedObject->read(maxlen)); +} + +QByteArray PythonQtWrapper_QIODevice::readAll(QIODevice* theWrappedObject) +{ + return ( theWrappedObject->readAll()); +} + +QByteArray PythonQtWrapper_QIODevice::readLine(QIODevice* theWrappedObject, qint64 maxlen) +{ + return ( theWrappedObject->readLine(maxlen)); +} + +qint64 PythonQtWrapper_QIODevice::readLineData(QIODevice* theWrappedObject, char* data, qint64 maxlen) +{ + return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_readLineData(data, maxlen)); +} + +bool PythonQtWrapper_QIODevice::reset(QIODevice* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_reset()); +} + +bool PythonQtWrapper_QIODevice::seek(QIODevice* theWrappedObject, qint64 pos) +{ + return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_seek(pos)); +} + +void PythonQtWrapper_QIODevice::setTextModeEnabled(QIODevice* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setTextModeEnabled(enabled)); +} + +qint64 PythonQtWrapper_QIODevice::size(QIODevice* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_size()); +} + +void PythonQtWrapper_QIODevice::ungetChar(QIODevice* theWrappedObject, char c) +{ + ( theWrappedObject->ungetChar(c)); +} + +bool PythonQtWrapper_QIODevice::waitForBytesWritten(QIODevice* theWrappedObject, int msecs) +{ + return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_waitForBytesWritten(msecs)); +} + +bool PythonQtWrapper_QIODevice::waitForReadyRead(QIODevice* theWrappedObject, int msecs) +{ + return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_waitForReadyRead(msecs)); +} + +qint64 PythonQtWrapper_QIODevice::write(QIODevice* theWrappedObject, const QByteArray& data) +{ + return ( theWrappedObject->write(data)); +} + +qint64 PythonQtWrapper_QIODevice::write(QIODevice* theWrappedObject, const char* data) +{ + return ( theWrappedObject->write(data)); +} + + + +QDate PythonQtWrapper_QLibraryInfo::static_QLibraryInfo_buildDate() +{ + return (QLibraryInfo::buildDate()); +} + +bool PythonQtWrapper_QLibraryInfo::static_QLibraryInfo_isDebugBuild() +{ + return (QLibraryInfo::isDebugBuild()); +} + +QString PythonQtWrapper_QLibraryInfo::static_QLibraryInfo_licensedProducts() +{ + return (QLibraryInfo::licensedProducts()); +} + +QString PythonQtWrapper_QLibraryInfo::static_QLibraryInfo_licensee() +{ + return (QLibraryInfo::licensee()); +} + +QString PythonQtWrapper_QLibraryInfo::static_QLibraryInfo_location(QLibraryInfo::LibraryLocation arg__1) +{ + return (QLibraryInfo::location(arg__1)); +} + + + +QMargins* PythonQtWrapper_QMargins::new_QMargins() +{ +return new QMargins(); } + +QMargins* PythonQtWrapper_QMargins::new_QMargins(int left, int top, int right, int bottom) +{ +return new QMargins(left, top, right, bottom); } + +int PythonQtWrapper_QMargins::bottom(QMargins* theWrappedObject) const +{ + return ( theWrappedObject->bottom()); +} + +bool PythonQtWrapper_QMargins::isNull(QMargins* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +int PythonQtWrapper_QMargins::left(QMargins* theWrappedObject) const +{ + return ( theWrappedObject->left()); +} + +bool PythonQtWrapper_QMargins::__eq__(QMargins* theWrappedObject, const QMargins& m2) +{ + return ( (*theWrappedObject)== m2); +} + +int PythonQtWrapper_QMargins::right(QMargins* theWrappedObject) const +{ + return ( theWrappedObject->right()); +} + +void PythonQtWrapper_QMargins::setBottom(QMargins* theWrappedObject, int bottom) +{ + ( theWrappedObject->setBottom(bottom)); +} + +void PythonQtWrapper_QMargins::setLeft(QMargins* theWrappedObject, int left) +{ + ( theWrappedObject->setLeft(left)); +} + +void PythonQtWrapper_QMargins::setRight(QMargins* theWrappedObject, int right) +{ + ( theWrappedObject->setRight(right)); +} + +void PythonQtWrapper_QMargins::setTop(QMargins* theWrappedObject, int top) +{ + ( theWrappedObject->setTop(top)); +} + +int PythonQtWrapper_QMargins::top(QMargins* theWrappedObject) const +{ + return ( theWrappedObject->top()); +} + +QString PythonQtWrapper_QMargins::py_toString(QMargins* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +PythonQtShell_QMimeData::~PythonQtShell_QMimeData() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QMimeData::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMimeData::childEvent(arg__1); +} +void PythonQtShell_QMimeData::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMimeData::customEvent(arg__1); +} +bool PythonQtShell_QMimeData::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMimeData::event(arg__1); +} +bool PythonQtShell_QMimeData::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMimeData::eventFilter(arg__1, arg__2); +} +QStringList PythonQtShell_QMimeData::formats() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "formats"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStringList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStringList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("formats", methodInfo, result); + } else { + returnValue = *((QStringList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMimeData::formats(); +} +bool PythonQtShell_QMimeData::hasFormat(const QString& mimetype) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasFormat"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&mimetype}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasFormat", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMimeData::hasFormat(mimetype); +} +QVariant PythonQtShell_QMimeData::retrieveData(const QString& mimetype, QVariant::Type preferredType) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "retrieveData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QString&" , "QVariant::Type"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&mimetype, (void*)&preferredType}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("retrieveData", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMimeData::retrieveData(mimetype, preferredType); +} +void PythonQtShell_QMimeData::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMimeData::timerEvent(arg__1); +} +QMimeData* PythonQtWrapper_QMimeData::new_QMimeData() +{ +return new PythonQtShell_QMimeData(); } + +void PythonQtWrapper_QMimeData::clear(QMimeData* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +QVariant PythonQtWrapper_QMimeData::colorData(QMimeData* theWrappedObject) const +{ + return ( theWrappedObject->colorData()); +} + +QByteArray PythonQtWrapper_QMimeData::data(QMimeData* theWrappedObject, const QString& mimetype) const +{ + return ( theWrappedObject->data(mimetype)); +} + +QStringList PythonQtWrapper_QMimeData::formats(QMimeData* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QMimeData*)theWrappedObject)->promoted_formats()); +} + +bool PythonQtWrapper_QMimeData::hasColor(QMimeData* theWrappedObject) const +{ + return ( theWrappedObject->hasColor()); +} + +bool PythonQtWrapper_QMimeData::hasFormat(QMimeData* theWrappedObject, const QString& mimetype) const +{ + return ( ((PythonQtPublicPromoter_QMimeData*)theWrappedObject)->promoted_hasFormat(mimetype)); +} + +bool PythonQtWrapper_QMimeData::hasHtml(QMimeData* theWrappedObject) const +{ + return ( theWrappedObject->hasHtml()); +} + +bool PythonQtWrapper_QMimeData::hasImage(QMimeData* theWrappedObject) const +{ + return ( theWrappedObject->hasImage()); +} + +bool PythonQtWrapper_QMimeData::hasText(QMimeData* theWrappedObject) const +{ + return ( theWrappedObject->hasText()); +} + +bool PythonQtWrapper_QMimeData::hasUrls(QMimeData* theWrappedObject) const +{ + return ( theWrappedObject->hasUrls()); +} + +QString PythonQtWrapper_QMimeData::html(QMimeData* theWrappedObject) const +{ + return ( theWrappedObject->html()); +} + +QVariant PythonQtWrapper_QMimeData::imageData(QMimeData* theWrappedObject) const +{ + return ( theWrappedObject->imageData()); +} + +void PythonQtWrapper_QMimeData::removeFormat(QMimeData* theWrappedObject, const QString& mimetype) +{ + ( theWrappedObject->removeFormat(mimetype)); +} + +QVariant PythonQtWrapper_QMimeData::retrieveData(QMimeData* theWrappedObject, const QString& mimetype, QVariant::Type preferredType) const +{ + return ( ((PythonQtPublicPromoter_QMimeData*)theWrappedObject)->promoted_retrieveData(mimetype, preferredType)); +} + +void PythonQtWrapper_QMimeData::setColorData(QMimeData* theWrappedObject, const QVariant& color) +{ + ( theWrappedObject->setColorData(color)); +} + +void PythonQtWrapper_QMimeData::setData(QMimeData* theWrappedObject, const QString& mimetype, const QByteArray& data) +{ + ( theWrappedObject->setData(mimetype, data)); +} + +void PythonQtWrapper_QMimeData::setHtml(QMimeData* theWrappedObject, const QString& html) +{ + ( theWrappedObject->setHtml(html)); +} + +void PythonQtWrapper_QMimeData::setImageData(QMimeData* theWrappedObject, const QVariant& image) +{ + ( theWrappedObject->setImageData(image)); +} + +void PythonQtWrapper_QMimeData::setText(QMimeData* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setText(text)); +} + +void PythonQtWrapper_QMimeData::setUrls(QMimeData* theWrappedObject, const QList& urls) +{ + ( theWrappedObject->setUrls(urls)); +} + +QString PythonQtWrapper_QMimeData::text(QMimeData* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + +QList PythonQtWrapper_QMimeData::urls(QMimeData* theWrappedObject) const +{ + return ( theWrappedObject->urls()); +} + + diff --git a/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core0.h b/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core0.h new file mode 100644 index 00000000..5ac39619 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core0.h @@ -0,0 +1,1459 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +class PythonQtShell_QAbstractAnimation : public QAbstractAnimation +{ +public: + PythonQtShell_QAbstractAnimation(QObject* parent = 0):QAbstractAnimation(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractAnimation(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int duration() const; +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void updateCurrentTime(int currentTime); +virtual void updateDirection(QAbstractAnimation::Direction direction); +virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QAbstractAnimation : public QAbstractAnimation +{ public: +inline bool promoted_event(QEvent* event) { return QAbstractAnimation::event(event); } +inline void promoted_updateDirection(QAbstractAnimation::Direction direction) { QAbstractAnimation::updateDirection(direction); } +inline void promoted_updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { QAbstractAnimation::updateState(newState, oldState); } +}; + +class PythonQtWrapper_QAbstractAnimation : public QObject +{ Q_OBJECT +public: +Q_ENUMS(DeletionPolicy ) +enum DeletionPolicy{ + KeepWhenStopped = QAbstractAnimation::KeepWhenStopped, DeleteWhenStopped = QAbstractAnimation::DeleteWhenStopped}; +public slots: +QAbstractAnimation* new_QAbstractAnimation(QObject* parent = 0); +void delete_QAbstractAnimation(QAbstractAnimation* obj) { delete obj; } + int currentLoop(QAbstractAnimation* theWrappedObject) const; + int currentLoopTime(QAbstractAnimation* theWrappedObject) const; + int currentTime(QAbstractAnimation* theWrappedObject) const; + QAbstractAnimation::Direction direction(QAbstractAnimation* theWrappedObject) const; + bool event(QAbstractAnimation* theWrappedObject, QEvent* event); + QAnimationGroup* group(QAbstractAnimation* theWrappedObject) const; + int loopCount(QAbstractAnimation* theWrappedObject) const; + void setDirection(QAbstractAnimation* theWrappedObject, QAbstractAnimation::Direction direction); + void setLoopCount(QAbstractAnimation* theWrappedObject, int loopCount); + QAbstractAnimation::State state(QAbstractAnimation* theWrappedObject) const; + int totalDuration(QAbstractAnimation* theWrappedObject) const; + void updateDirection(QAbstractAnimation* theWrappedObject, QAbstractAnimation::Direction direction); + void updateState(QAbstractAnimation* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState); +}; + + + + + +class PythonQtShell_QAbstractItemModel : public QAbstractItemModel +{ +public: + PythonQtShell_QAbstractItemModel(QObject* parent = 0):QAbstractItemModel(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractItemModel(); + +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 childEvent(QChildEvent* arg__1); +virtual int columnCount(const QModelIndex& parent = QModelIndex()) const; +virtual void customEvent(QEvent* arg__1); +virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; +virtual bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fetchMore(const QModelIndex& parent); +virtual Qt::ItemFlags flags(const QModelIndex& index) const; +virtual bool hasChildren(const QModelIndex& parent = QModelIndex()) const; +virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; +virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const; +virtual bool insertColumns(int column, int count, const QModelIndex& parent = QModelIndex()); +virtual bool insertRows(int row, int count, const QModelIndex& parent = QModelIndex()); +virtual QMap itemData(const QModelIndex& index) const; +virtual QList match(const QModelIndex& start, int role, const QVariant& value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const; +virtual QMimeData* mimeData(const QList& 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& child) const; +virtual bool removeColumns(int column, int count, const QModelIndex& parent = QModelIndex()); +virtual bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex()); +virtual void revert(); +virtual QHash roleNames() const; +virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; +virtual bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); +virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role = Qt::EditRole); +virtual bool setItemData(const QModelIndex& index, const QMap& roles); +virtual QModelIndex sibling(int row, int column, const QModelIndex& idx) const; +virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder); +virtual QSize span(const QModelIndex& index) const; +virtual bool submit(); +virtual Qt::DropActions supportedDragActions() const; +virtual Qt::DropActions supportedDropActions() const; +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QAbstractItemModel : public QAbstractItemModel +{ public: +inline QModelIndex promoted_buddy(const QModelIndex& index) const { return QAbstractItemModel::buddy(index); } +inline bool promoted_canDropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) const { return QAbstractItemModel::canDropMimeData(data, action, row, column, parent); } +inline bool promoted_canFetchMore(const QModelIndex& parent) const { return QAbstractItemModel::canFetchMore(parent); } +inline bool promoted_dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) { return QAbstractItemModel::dropMimeData(data, action, row, column, parent); } +inline void promoted_fetchMore(const QModelIndex& parent) { QAbstractItemModel::fetchMore(parent); } +inline Qt::ItemFlags promoted_flags(const QModelIndex& index) const { return QAbstractItemModel::flags(index); } +inline bool promoted_hasChildren(const QModelIndex& parent = QModelIndex()) const { return QAbstractItemModel::hasChildren(parent); } +inline QVariant promoted_headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const { return QAbstractItemModel::headerData(section, orientation, role); } +inline bool promoted_insertColumns(int column, int count, const QModelIndex& parent = QModelIndex()) { return QAbstractItemModel::insertColumns(column, count, parent); } +inline bool promoted_insertRows(int row, int count, const QModelIndex& parent = QModelIndex()) { return QAbstractItemModel::insertRows(row, count, parent); } +inline QMap promoted_itemData(const QModelIndex& index) const { return QAbstractItemModel::itemData(index); } +inline QList promoted_match(const QModelIndex& start, int role, const QVariant& value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const { return QAbstractItemModel::match(start, role, value, hits, flags); } +inline QMimeData* promoted_mimeData(const QList& indexes) const { return QAbstractItemModel::mimeData(indexes); } +inline QStringList promoted_mimeTypes() const { return QAbstractItemModel::mimeTypes(); } +inline bool promoted_moveColumns(const QModelIndex& sourceParent, int sourceColumn, int count, const QModelIndex& destinationParent, int destinationChild) { return QAbstractItemModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); } +inline bool promoted_moveRows(const QModelIndex& sourceParent, int sourceRow, int count, const QModelIndex& destinationParent, int destinationChild) { return QAbstractItemModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); } +inline bool promoted_removeColumns(int column, int count, const QModelIndex& parent = QModelIndex()) { return QAbstractItemModel::removeColumns(column, count, parent); } +inline bool promoted_removeRows(int row, int count, const QModelIndex& parent = QModelIndex()) { return QAbstractItemModel::removeRows(row, count, parent); } +inline void promoted_revert() { QAbstractItemModel::revert(); } +inline QHash promoted_roleNames() const { return QAbstractItemModel::roleNames(); } +inline bool promoted_setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) { return QAbstractItemModel::setData(index, value, role); } +inline bool promoted_setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role = Qt::EditRole) { return QAbstractItemModel::setHeaderData(section, orientation, value, role); } +inline bool promoted_setItemData(const QModelIndex& index, const QMap& roles) { return QAbstractItemModel::setItemData(index, roles); } +inline QModelIndex promoted_sibling(int row, int column, const QModelIndex& idx) const { return QAbstractItemModel::sibling(row, column, idx); } +inline void promoted_sort(int column, Qt::SortOrder order = Qt::AscendingOrder) { QAbstractItemModel::sort(column, order); } +inline QSize promoted_span(const QModelIndex& index) const { return QAbstractItemModel::span(index); } +inline bool promoted_submit() { return QAbstractItemModel::submit(); } +inline Qt::DropActions promoted_supportedDragActions() const { return QAbstractItemModel::supportedDragActions(); } +inline Qt::DropActions promoted_supportedDropActions() const { return QAbstractItemModel::supportedDropActions(); } +}; + +class PythonQtWrapper_QAbstractItemModel : public QObject +{ Q_OBJECT +public: +public slots: +QAbstractItemModel* new_QAbstractItemModel(QObject* parent = 0); +void delete_QAbstractItemModel(QAbstractItemModel* obj) { delete obj; } + QModelIndex buddy(QAbstractItemModel* theWrappedObject, const QModelIndex& index) const; + bool canDropMimeData(QAbstractItemModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) const; + bool canFetchMore(QAbstractItemModel* theWrappedObject, const QModelIndex& parent) const; + bool dropMimeData(QAbstractItemModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); + void fetchMore(QAbstractItemModel* theWrappedObject, const QModelIndex& parent); + Qt::ItemFlags flags(QAbstractItemModel* theWrappedObject, const QModelIndex& index) const; + bool hasChildren(QAbstractItemModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const; + bool hasIndex(QAbstractItemModel* theWrappedObject, int row, int column, const QModelIndex& parent = QModelIndex()) const; + QVariant headerData(QAbstractItemModel* theWrappedObject, int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; + bool insertColumn(QAbstractItemModel* theWrappedObject, int column, const QModelIndex& parent = QModelIndex()); + bool insertColumns(QAbstractItemModel* theWrappedObject, int column, int count, const QModelIndex& parent = QModelIndex()); + bool insertRow(QAbstractItemModel* theWrappedObject, int row, const QModelIndex& parent = QModelIndex()); + bool insertRows(QAbstractItemModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex()); + QMap itemData(QAbstractItemModel* theWrappedObject, const QModelIndex& index) const; + QList match(QAbstractItemModel* theWrappedObject, const QModelIndex& start, int role, const QVariant& value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const; + QMimeData* mimeData(QAbstractItemModel* theWrappedObject, const QList& indexes) const; + QStringList mimeTypes(QAbstractItemModel* theWrappedObject) const; + bool moveColumn(QAbstractItemModel* theWrappedObject, const QModelIndex& sourceParent, int sourceColumn, const QModelIndex& destinationParent, int destinationChild); + bool moveColumns(QAbstractItemModel* theWrappedObject, const QModelIndex& sourceParent, int sourceColumn, int count, const QModelIndex& destinationParent, int destinationChild); + bool moveRow(QAbstractItemModel* theWrappedObject, const QModelIndex& sourceParent, int sourceRow, const QModelIndex& destinationParent, int destinationChild); + bool moveRows(QAbstractItemModel* theWrappedObject, const QModelIndex& sourceParent, int sourceRow, int count, const QModelIndex& destinationParent, int destinationChild); + QObject* parent(QAbstractItemModel* theWrappedObject) const; + bool removeColumn(QAbstractItemModel* theWrappedObject, int column, const QModelIndex& parent = QModelIndex()); + bool removeColumns(QAbstractItemModel* theWrappedObject, int column, int count, const QModelIndex& parent = QModelIndex()); + bool removeRow(QAbstractItemModel* theWrappedObject, int row, const QModelIndex& parent = QModelIndex()); + bool removeRows(QAbstractItemModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex()); + void revert(QAbstractItemModel* theWrappedObject); + QHash roleNames(QAbstractItemModel* theWrappedObject) const; + bool setData(QAbstractItemModel* theWrappedObject, const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); + bool setHeaderData(QAbstractItemModel* theWrappedObject, int section, Qt::Orientation orientation, const QVariant& value, int role = Qt::EditRole); + bool setItemData(QAbstractItemModel* theWrappedObject, const QModelIndex& index, const QMap& roles); + QModelIndex sibling(QAbstractItemModel* theWrappedObject, int row, int column, const QModelIndex& idx) const; + void sort(QAbstractItemModel* theWrappedObject, int column, Qt::SortOrder order = Qt::AscendingOrder); + QSize span(QAbstractItemModel* theWrappedObject, const QModelIndex& index) const; + bool submit(QAbstractItemModel* theWrappedObject); + Qt::DropActions supportedDragActions(QAbstractItemModel* theWrappedObject) const; + Qt::DropActions supportedDropActions(QAbstractItemModel* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QAbstractListModel : public QAbstractListModel +{ +public: + PythonQtShell_QAbstractListModel(QObject* parent = 0):QAbstractListModel(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractListModel(); + +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 childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +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 bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fetchMore(const QModelIndex& parent); +virtual Qt::ItemFlags flags(const QModelIndex& index) const; +virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const; +virtual QModelIndex index(int row, int column = 0, const QModelIndex& parent = QModelIndex()) const; +virtual bool insertColumns(int column, int count, const QModelIndex& parent); +virtual bool insertRows(int row, int count, const QModelIndex& parent); +virtual QMap itemData(const QModelIndex& index) const; +virtual QList match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const; +virtual QMimeData* mimeData(const QList& 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 void revert(); +virtual QHash roleNames() const; +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 bool setItemData(const QModelIndex& index, const QMap& roles); +virtual QModelIndex sibling(int row, int column, const QModelIndex& idx) const; +virtual void sort(int column, Qt::SortOrder order); +virtual QSize span(const QModelIndex& index) const; +virtual bool submit(); +virtual Qt::DropActions supportedDragActions() const; +virtual Qt::DropActions supportedDropActions() const; +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QAbstractListModel : public QAbstractListModel +{ public: +inline bool promoted_dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) { return QAbstractListModel::dropMimeData(data, action, row, column, parent); } +inline QModelIndex promoted_index(int row, int column = 0, const QModelIndex& parent = QModelIndex()) const { return QAbstractListModel::index(row, column, parent); } +}; + +class PythonQtWrapper_QAbstractListModel : public QObject +{ Q_OBJECT +public: +public slots: +QAbstractListModel* new_QAbstractListModel(QObject* parent = 0); +void delete_QAbstractListModel(QAbstractListModel* obj) { delete obj; } + bool dropMimeData(QAbstractListModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); + QModelIndex index(QAbstractListModel* theWrappedObject, int row, int column = 0, const QModelIndex& parent = QModelIndex()) const; +}; + + + + + +class PythonQtShell_QAbstractState : public QAbstractState +{ +public: + PythonQtShell_QAbstractState(QState* parent = 0):QAbstractState(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractState(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void onEntry(QEvent* event); +virtual void onExit(QEvent* event); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QAbstractState : public QAbstractState +{ public: +inline bool promoted_event(QEvent* e) { return QAbstractState::event(e); } +}; + +class PythonQtWrapper_QAbstractState : public QObject +{ Q_OBJECT +public: +public slots: +void delete_QAbstractState(QAbstractState* obj) { delete obj; } + bool event(QAbstractState* theWrappedObject, QEvent* e); + QStateMachine* machine(QAbstractState* theWrappedObject) const; + QState* parentState(QAbstractState* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QAbstractTableModel : public QAbstractTableModel +{ +public: + PythonQtShell_QAbstractTableModel(QObject* parent = 0):QAbstractTableModel(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractTableModel(); + +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 childEvent(QChildEvent* arg__1); +virtual int columnCount(const QModelIndex& parent) const; +virtual void customEvent(QEvent* arg__1); +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 bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fetchMore(const QModelIndex& parent); +virtual Qt::ItemFlags flags(const QModelIndex& index) const; +virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const; +virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const; +virtual bool insertColumns(int column, int count, const QModelIndex& parent); +virtual bool insertRows(int row, int count, const QModelIndex& parent); +virtual QMap itemData(const QModelIndex& index) const; +virtual QList match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const; +virtual QMimeData* mimeData(const QList& 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 void revert(); +virtual QHash roleNames() const; +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 bool setItemData(const QModelIndex& index, const QMap& roles); +virtual QModelIndex sibling(int row, int column, const QModelIndex& idx) const; +virtual void sort(int column, Qt::SortOrder order); +virtual QSize span(const QModelIndex& index) const; +virtual bool submit(); +virtual Qt::DropActions supportedDragActions() const; +virtual Qt::DropActions supportedDropActions() const; +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QAbstractTableModel : public QAbstractTableModel +{ public: +inline bool promoted_dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) { return QAbstractTableModel::dropMimeData(data, action, row, column, parent); } +inline QModelIndex promoted_index(int row, int column, const QModelIndex& parent = QModelIndex()) const { return QAbstractTableModel::index(row, column, parent); } +}; + +class PythonQtWrapper_QAbstractTableModel : public QObject +{ Q_OBJECT +public: +public slots: +QAbstractTableModel* new_QAbstractTableModel(QObject* parent = 0); +void delete_QAbstractTableModel(QAbstractTableModel* obj) { delete obj; } + bool dropMimeData(QAbstractTableModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); + QModelIndex index(QAbstractTableModel* theWrappedObject, int row, int column, const QModelIndex& parent = QModelIndex()) const; +}; + + + + + +class PythonQtShell_QAbstractTransition : public QAbstractTransition +{ +public: + PythonQtShell_QAbstractTransition(QState* sourceState = 0):QAbstractTransition(sourceState),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractTransition(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool eventTest(QEvent* event); +virtual void onTransition(QEvent* event); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QAbstractTransition : public QAbstractTransition +{ public: +inline bool promoted_event(QEvent* e) { return QAbstractTransition::event(e); } +}; + +class PythonQtWrapper_QAbstractTransition : public QObject +{ Q_OBJECT +public: +public slots: +QAbstractTransition* new_QAbstractTransition(QState* sourceState = 0); +void delete_QAbstractTransition(QAbstractTransition* obj) { delete obj; } + void addAnimation(QAbstractTransition* theWrappedObject, QAbstractAnimation* animation); + QList animations(QAbstractTransition* theWrappedObject) const; + bool event(QAbstractTransition* theWrappedObject, QEvent* e); + QStateMachine* machine(QAbstractTransition* theWrappedObject) const; + void removeAnimation(QAbstractTransition* theWrappedObject, QAbstractAnimation* animation); + void setTargetState(QAbstractTransition* theWrappedObject, QAbstractState* target); + void setTargetStates(QAbstractTransition* theWrappedObject, const QList& targets); + QState* sourceState(QAbstractTransition* theWrappedObject) const; + QAbstractState* targetState(QAbstractTransition* theWrappedObject) const; + QList targetStates(QAbstractTransition* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QAnimationGroup : public QAnimationGroup +{ +public: + PythonQtShell_QAnimationGroup(QObject* parent = 0):QAnimationGroup(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAnimationGroup(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int duration() const; +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void updateCurrentTime(int currentTime); +virtual void updateDirection(QAbstractAnimation::Direction direction); +virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QAnimationGroup : public QAnimationGroup +{ public: +inline bool promoted_event(QEvent* event) { return QAnimationGroup::event(event); } +}; + +class PythonQtWrapper_QAnimationGroup : public QObject +{ Q_OBJECT +public: +public slots: +QAnimationGroup* new_QAnimationGroup(QObject* parent = 0); +void delete_QAnimationGroup(QAnimationGroup* obj) { delete obj; } + void addAnimation(QAnimationGroup* theWrappedObject, QAbstractAnimation* animation); + QAbstractAnimation* animationAt(QAnimationGroup* theWrappedObject, int index) const; + int animationCount(QAnimationGroup* theWrappedObject) const; + void clear(QAnimationGroup* theWrappedObject); + bool event(QAnimationGroup* theWrappedObject, QEvent* event); + int indexOfAnimation(QAnimationGroup* theWrappedObject, QAbstractAnimation* animation) const; + void insertAnimation(QAnimationGroup* theWrappedObject, int index, QAbstractAnimation* animation); + void removeAnimation(QAnimationGroup* theWrappedObject, QAbstractAnimation* animation); + QAbstractAnimation* takeAnimation(QAnimationGroup* theWrappedObject, int index); +}; + + + + + +class PythonQtShell_QBasicMutex : public QBasicMutex +{ +public: + PythonQtShell_QBasicMutex():QBasicMutex(),_wrapper(NULL) {}; + + ~PythonQtShell_QBasicMutex(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QBasicMutex : public QObject +{ Q_OBJECT +public: +public slots: +QBasicMutex* new_QBasicMutex(); +void delete_QBasicMutex(QBasicMutex* obj) { delete obj; } + bool isRecursive(QBasicMutex* theWrappedObject); + void lock(QBasicMutex* theWrappedObject); + bool tryLock(QBasicMutex* theWrappedObject); + void unlock(QBasicMutex* theWrappedObject); +}; + + + + + +class PythonQtWrapper_QBasicTimer : public QObject +{ Q_OBJECT +public: +public slots: +QBasicTimer* new_QBasicTimer(); +QBasicTimer* new_QBasicTimer(const QBasicTimer& other) { +QBasicTimer* a = new QBasicTimer(); +*((QBasicTimer*)a) = other; +return a; } +void delete_QBasicTimer(QBasicTimer* obj) { delete obj; } + bool isActive(QBasicTimer* theWrappedObject) const; + void start(QBasicTimer* theWrappedObject, int msec, QObject* obj); + void start(QBasicTimer* theWrappedObject, int msec, Qt::TimerType timerType, QObject* obj); + void stop(QBasicTimer* theWrappedObject); + int timerId(QBasicTimer* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QBuffer : public QBuffer +{ +public: + PythonQtShell_QBuffer(QByteArray* buf, QObject* parent = 0):QBuffer(buf, parent),_wrapper(NULL) {}; + PythonQtShell_QBuffer(QObject* parent = 0):QBuffer(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QBuffer(); + +virtual bool atEnd() const; +virtual qint64 bytesAvailable() const; +virtual qint64 bytesToWrite() const; +virtual bool canReadLine() const; +virtual void childEvent(QChildEvent* arg__1); +virtual void close(); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool isSequential() const; +virtual bool open(QIODevice::OpenMode openMode); +virtual qint64 pos() const; +virtual qint64 readData(char* data, qint64 maxlen); +virtual qint64 readLineData(char* data, qint64 maxlen); +virtual bool reset(); +virtual bool seek(qint64 off); +virtual qint64 size() const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool waitForBytesWritten(int msecs); +virtual bool waitForReadyRead(int msecs); +virtual qint64 writeData(const char* data, qint64 len); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QBuffer : public QBuffer +{ public: +inline bool promoted_atEnd() const { return QBuffer::atEnd(); } +inline bool promoted_canReadLine() const { return QBuffer::canReadLine(); } +inline void promoted_close() { QBuffer::close(); } +inline bool promoted_open(QIODevice::OpenMode openMode) { return QBuffer::open(openMode); } +inline qint64 promoted_pos() const { return QBuffer::pos(); } +inline qint64 promoted_readData(char* data, qint64 maxlen) { return QBuffer::readData(data, maxlen); } +inline bool promoted_seek(qint64 off) { return QBuffer::seek(off); } +inline qint64 promoted_size() const { return QBuffer::size(); } +inline qint64 promoted_writeData(const char* data, qint64 len) { return QBuffer::writeData(data, len); } +}; + +class PythonQtWrapper_QBuffer : public QObject +{ Q_OBJECT +public: +public slots: +QBuffer* new_QBuffer(QByteArray* buf, QObject* parent = 0); +QBuffer* new_QBuffer(QObject* parent = 0); +void delete_QBuffer(QBuffer* obj) { delete obj; } + bool atEnd(QBuffer* theWrappedObject) const; + bool canReadLine(QBuffer* theWrappedObject) const; + void close(QBuffer* theWrappedObject); + bool open(QBuffer* theWrappedObject, QIODevice::OpenMode openMode); + qint64 pos(QBuffer* theWrappedObject) const; + qint64 readData(QBuffer* theWrappedObject, char* data, qint64 maxlen); + bool seek(QBuffer* theWrappedObject, qint64 off); + void setBuffer(QBuffer* theWrappedObject, QByteArray* a); + void setData(QBuffer* theWrappedObject, const QByteArray& data); + qint64 size(QBuffer* theWrappedObject) const; + qint64 writeData(QBuffer* theWrappedObject, const char* data, qint64 len); +}; + + + + + +class PythonQtWrapper_QByteArrayMatcher : public QObject +{ Q_OBJECT +public: +public slots: +QByteArrayMatcher* new_QByteArrayMatcher(); +QByteArrayMatcher* new_QByteArrayMatcher(const QByteArray& pattern); +QByteArrayMatcher* new_QByteArrayMatcher(const QByteArrayMatcher& other); +QByteArrayMatcher* new_QByteArrayMatcher(const char* pattern, int length); +void delete_QByteArrayMatcher(QByteArrayMatcher* obj) { delete obj; } + int indexIn(QByteArrayMatcher* theWrappedObject, const QByteArray& ba, int from = 0) const; + int indexIn(QByteArrayMatcher* theWrappedObject, const char* str, int len, int from = 0) const; + QByteArray pattern(QByteArrayMatcher* theWrappedObject) const; + void setPattern(QByteArrayMatcher* theWrappedObject, const QByteArray& pattern); +}; + + + + + +class PythonQtShell_QChildEvent : public QChildEvent +{ +public: + PythonQtShell_QChildEvent(QEvent::Type type, QObject* child):QChildEvent(type, child),_wrapper(NULL) {}; + + ~PythonQtShell_QChildEvent(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QChildEvent : public QObject +{ Q_OBJECT +public: +public slots: +QChildEvent* new_QChildEvent(QEvent::Type type, QObject* child); +void delete_QChildEvent(QChildEvent* obj) { delete obj; } + bool added(QChildEvent* theWrappedObject) const; + QObject* child(QChildEvent* theWrappedObject) const; + bool polished(QChildEvent* theWrappedObject) const; + bool removed(QChildEvent* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QCoreApplication : public QCoreApplication +{ +public: + PythonQtShell_QCoreApplication(int& argc, char** argv, int arg__3 = ApplicationFlags):QCoreApplication(argc, argv, arg__3),_wrapper(NULL) {}; + + ~PythonQtShell_QCoreApplication(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool notify(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QCoreApplication : public QCoreApplication +{ public: +inline bool promoted_event(QEvent* arg__1) { return QCoreApplication::event(arg__1); } +inline bool promoted_notify(QObject* arg__1, QEvent* arg__2) { return QCoreApplication::notify(arg__1, arg__2); } +}; + +class PythonQtWrapper_QCoreApplication : public QObject +{ Q_OBJECT +public: +public slots: +QCoreApplication* new_QCoreApplication(int& argc, char** argv); +void delete_QCoreApplication(QCoreApplication* obj) { delete obj; } + void static_QCoreApplication_addLibraryPath(const QString& arg__1); + QString static_QCoreApplication_applicationDirPath(); + QString static_QCoreApplication_applicationFilePath(); + QString static_QCoreApplication_applicationName(); + qint64 static_QCoreApplication_applicationPid(); + QString static_QCoreApplication_applicationVersion(); + bool static_QCoreApplication_closingDown(); + bool event(QCoreApplication* theWrappedObject, QEvent* arg__1); + int static_QCoreApplication_exec(); + void static_QCoreApplication_exit(int retcode = 0); + void static_QCoreApplication_flush(); + bool static_QCoreApplication_hasPendingEvents(); + bool static_QCoreApplication_installTranslator(QTranslator* messageFile); + QCoreApplication* static_QCoreApplication_instance(); + bool static_QCoreApplication_isQuitLockEnabled(); + QStringList static_QCoreApplication_libraryPaths(); + bool notify(QCoreApplication* theWrappedObject, QObject* arg__1, QEvent* arg__2); + QString static_QCoreApplication_organizationDomain(); + QString static_QCoreApplication_organizationName(); + void static_QCoreApplication_postEvent(QObject* receiver, QEvent* event, int priority = Qt::NormalEventPriority); + void static_QCoreApplication_processEvents(QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents); + void static_QCoreApplication_processEvents(QEventLoop::ProcessEventsFlags flags, int maxtime); + void static_QCoreApplication_removeLibraryPath(const QString& arg__1); + void static_QCoreApplication_removePostedEvents(QObject* receiver, int eventType = 0); + bool static_QCoreApplication_removeTranslator(QTranslator* messageFile); + bool static_QCoreApplication_sendEvent(QObject* receiver, QEvent* event); + void static_QCoreApplication_sendPostedEvents(QObject* receiver = 0, int event_type = 0); + void static_QCoreApplication_setApplicationName(const QString& application); + void static_QCoreApplication_setApplicationVersion(const QString& version); + void static_QCoreApplication_setAttribute(Qt::ApplicationAttribute attribute, bool on = true); + void static_QCoreApplication_setLibraryPaths(const QStringList& arg__1); + void static_QCoreApplication_setOrganizationDomain(const QString& orgDomain); + void static_QCoreApplication_setOrganizationName(const QString& orgName); + void static_QCoreApplication_setQuitLockEnabled(bool enabled); + bool static_QCoreApplication_startingUp(); + bool static_QCoreApplication_testAttribute(Qt::ApplicationAttribute attribute); + QString static_QCoreApplication_translate(const char* context, const char* key, const char* disambiguation = 0, int n = -1); +}; + + + + + +class PythonQtWrapper_QCryptographicHash : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Algorithm ) +enum Algorithm{ + Md4 = QCryptographicHash::Md4, Md5 = QCryptographicHash::Md5, Sha1 = QCryptographicHash::Sha1, Sha224 = QCryptographicHash::Sha224, Sha256 = QCryptographicHash::Sha256, Sha384 = QCryptographicHash::Sha384, Sha512 = QCryptographicHash::Sha512}; +public slots: +QCryptographicHash* new_QCryptographicHash(QCryptographicHash::Algorithm method); +void delete_QCryptographicHash(QCryptographicHash* obj) { delete obj; } + bool addData(QCryptographicHash* theWrappedObject, QIODevice* device); + void addData(QCryptographicHash* theWrappedObject, const QByteArray& data); + QByteArray static_QCryptographicHash_hash(const QByteArray& data, QCryptographicHash::Algorithm method); + void reset(QCryptographicHash* theWrappedObject); + QByteArray result(QCryptographicHash* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QDir : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Filter SortFlag ) +Q_FLAGS(Filters SortFlags ) +enum Filter{ + Dirs = QDir::Dirs, Files = QDir::Files, Drives = QDir::Drives, NoSymLinks = QDir::NoSymLinks, AllEntries = QDir::AllEntries, TypeMask = QDir::TypeMask, Readable = QDir::Readable, Writable = QDir::Writable, Executable = QDir::Executable, PermissionMask = QDir::PermissionMask, Modified = QDir::Modified, Hidden = QDir::Hidden, System = QDir::System, AccessMask = QDir::AccessMask, AllDirs = QDir::AllDirs, CaseSensitive = QDir::CaseSensitive, NoDot = QDir::NoDot, NoDotDot = QDir::NoDotDot, NoDotAndDotDot = QDir::NoDotAndDotDot, NoFilter = QDir::NoFilter}; +enum SortFlag{ + Name = QDir::Name, Time = QDir::Time, Size = QDir::Size, Unsorted = QDir::Unsorted, SortByMask = QDir::SortByMask, DirsFirst = QDir::DirsFirst, Reversed = QDir::Reversed, IgnoreCase = QDir::IgnoreCase, DirsLast = QDir::DirsLast, LocaleAware = QDir::LocaleAware, Type = QDir::Type, NoSort = QDir::NoSort}; +Q_DECLARE_FLAGS(Filters, Filter) +Q_DECLARE_FLAGS(SortFlags, SortFlag) +public slots: +QDir* new_QDir(const QDir& arg__1); +QDir* new_QDir(const QString& path = QString()); +QDir* new_QDir(const QString& path, const QString& nameFilter, QDir::SortFlags sort = QDir::SortFlags(Name | IgnoreCase), QDir::Filters filter = QDir::AllEntries); +void delete_QDir(QDir* obj) { delete obj; } + QString absoluteFilePath(QDir* theWrappedObject, const QString& fileName) const; + QString absolutePath(QDir* theWrappedObject) const; + void static_QDir_addSearchPath(const QString& prefix, const QString& path); + QString canonicalPath(QDir* theWrappedObject) const; + bool cd(QDir* theWrappedObject, const QString& dirName); + bool cdUp(QDir* theWrappedObject); + QString static_QDir_cleanPath(const QString& path); + uint count(QDir* theWrappedObject) const; + QDir static_QDir_current(); + QString static_QDir_currentPath(); + QString dirName(QDir* theWrappedObject) const; + QList static_QDir_drives(); + QList entryInfoList(QDir* theWrappedObject, QDir::Filters filters = QDir::NoFilter, QDir::SortFlags sort = QDir::NoSort) const; + QList entryInfoList(QDir* theWrappedObject, const QStringList& nameFilters, QDir::Filters filters = QDir::NoFilter, QDir::SortFlags sort = QDir::NoSort) const; + QStringList entryList(QDir* theWrappedObject, QDir::Filters filters = QDir::NoFilter, QDir::SortFlags sort = QDir::NoSort) const; + QStringList entryList(QDir* theWrappedObject, const QStringList& nameFilters, QDir::Filters filters = QDir::NoFilter, QDir::SortFlags sort = QDir::NoSort) const; + bool exists(QDir* theWrappedObject) const; + bool exists(QDir* theWrappedObject, const QString& name) const; + QString filePath(QDir* theWrappedObject, const QString& fileName) const; + QDir::Filters filter(QDir* theWrappedObject) const; + QString static_QDir_fromNativeSeparators(const QString& pathName); + QDir static_QDir_home(); + QString static_QDir_homePath(); + bool isAbsolute(QDir* theWrappedObject) const; + bool static_QDir_isAbsolutePath(const QString& path); + bool isReadable(QDir* theWrappedObject) const; + bool isRelative(QDir* theWrappedObject) const; + bool static_QDir_isRelativePath(const QString& path); + bool isRoot(QDir* theWrappedObject) const; + bool makeAbsolute(QDir* theWrappedObject); + bool static_QDir_match(const QString& filter, const QString& fileName); + bool static_QDir_match(const QStringList& filters, const QString& fileName); + bool mkdir(QDir* theWrappedObject, const QString& dirName) const; + bool mkpath(QDir* theWrappedObject, const QString& dirPath) const; + QStringList nameFilters(QDir* theWrappedObject) const; + QStringList static_QDir_nameFiltersFromString(const QString& nameFilter); + bool __ne__(QDir* theWrappedObject, const QDir& dir) const; + bool __eq__(QDir* theWrappedObject, const QDir& dir) const; + QString operator_subscript(QDir* theWrappedObject, int arg__1) const; + QString path(QDir* theWrappedObject) const; + void refresh(QDir* theWrappedObject) const; + QString relativeFilePath(QDir* theWrappedObject, const QString& fileName) const; + bool remove(QDir* theWrappedObject, const QString& fileName); + bool removeRecursively(QDir* theWrappedObject); + bool rename(QDir* theWrappedObject, const QString& oldName, const QString& newName); + bool rmdir(QDir* theWrappedObject, const QString& dirName) const; + bool rmpath(QDir* theWrappedObject, const QString& dirPath) const; + QDir static_QDir_root(); + QString static_QDir_rootPath(); + QStringList static_QDir_searchPaths(const QString& prefix); + QChar static_QDir_separator(); + bool static_QDir_setCurrent(const QString& path); + void setFilter(QDir* theWrappedObject, QDir::Filters filter); + void setNameFilters(QDir* theWrappedObject, const QStringList& nameFilters); + void setPath(QDir* theWrappedObject, const QString& path); + void static_QDir_setSearchPaths(const QString& prefix, const QStringList& searchPaths); + void setSorting(QDir* theWrappedObject, QDir::SortFlags sort); + QDir::SortFlags sorting(QDir* theWrappedObject) const; + void swap(QDir* theWrappedObject, QDir& other); + QDir static_QDir_temp(); + QString static_QDir_tempPath(); + QString static_QDir_toNativeSeparators(const QString& pathName); + QString py_toString(QDir*); +}; + + + + + +class PythonQtWrapper_QDirIterator : public QObject +{ Q_OBJECT +public: +Q_ENUMS(IteratorFlag ) +Q_FLAGS(IteratorFlags ) +enum IteratorFlag{ + NoIteratorFlags = QDirIterator::NoIteratorFlags, FollowSymlinks = QDirIterator::FollowSymlinks, Subdirectories = QDirIterator::Subdirectories}; +Q_DECLARE_FLAGS(IteratorFlags, IteratorFlag) +public slots: +QDirIterator* new_QDirIterator(const QDir& dir, QDirIterator::IteratorFlags flags = QDirIterator::NoIteratorFlags); +QDirIterator* new_QDirIterator(const QString& path, QDir::Filters filter, QDirIterator::IteratorFlags flags = QDirIterator::NoIteratorFlags); +QDirIterator* new_QDirIterator(const QString& path, QDirIterator::IteratorFlags flags = QDirIterator::NoIteratorFlags); +QDirIterator* new_QDirIterator(const QString& path, const QStringList& nameFilters, QDir::Filters filters = QDir::NoFilter, QDirIterator::IteratorFlags flags = QDirIterator::NoIteratorFlags); +void delete_QDirIterator(QDirIterator* obj) { delete obj; } + QFileInfo fileInfo(QDirIterator* theWrappedObject) const; + QString fileName(QDirIterator* theWrappedObject) const; + QString filePath(QDirIterator* theWrappedObject) const; + bool hasNext(QDirIterator* theWrappedObject) const; + QString next(QDirIterator* theWrappedObject); + QString path(QDirIterator* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QDynamicPropertyChangeEvent : public QObject +{ Q_OBJECT +public: +public slots: +QDynamicPropertyChangeEvent* new_QDynamicPropertyChangeEvent(const QByteArray& name); +void delete_QDynamicPropertyChangeEvent(QDynamicPropertyChangeEvent* obj) { delete obj; } + QByteArray propertyName(QDynamicPropertyChangeEvent* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QEasingCurve : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Type ) +enum Type{ + Linear = QEasingCurve::Linear, InQuad = QEasingCurve::InQuad, OutQuad = QEasingCurve::OutQuad, InOutQuad = QEasingCurve::InOutQuad, OutInQuad = QEasingCurve::OutInQuad, InCubic = QEasingCurve::InCubic, OutCubic = QEasingCurve::OutCubic, InOutCubic = QEasingCurve::InOutCubic, OutInCubic = QEasingCurve::OutInCubic, InQuart = QEasingCurve::InQuart, OutQuart = QEasingCurve::OutQuart, InOutQuart = QEasingCurve::InOutQuart, OutInQuart = QEasingCurve::OutInQuart, InQuint = QEasingCurve::InQuint, OutQuint = QEasingCurve::OutQuint, InOutQuint = QEasingCurve::InOutQuint, OutInQuint = QEasingCurve::OutInQuint, InSine = QEasingCurve::InSine, OutSine = QEasingCurve::OutSine, InOutSine = QEasingCurve::InOutSine, OutInSine = QEasingCurve::OutInSine, InExpo = QEasingCurve::InExpo, OutExpo = QEasingCurve::OutExpo, InOutExpo = QEasingCurve::InOutExpo, OutInExpo = QEasingCurve::OutInExpo, InCirc = QEasingCurve::InCirc, OutCirc = QEasingCurve::OutCirc, InOutCirc = QEasingCurve::InOutCirc, OutInCirc = QEasingCurve::OutInCirc, InElastic = QEasingCurve::InElastic, OutElastic = QEasingCurve::OutElastic, InOutElastic = QEasingCurve::InOutElastic, OutInElastic = QEasingCurve::OutInElastic, InBack = QEasingCurve::InBack, OutBack = QEasingCurve::OutBack, InOutBack = QEasingCurve::InOutBack, OutInBack = QEasingCurve::OutInBack, InBounce = QEasingCurve::InBounce, OutBounce = QEasingCurve::OutBounce, InOutBounce = QEasingCurve::InOutBounce, OutInBounce = QEasingCurve::OutInBounce, InCurve = QEasingCurve::InCurve, OutCurve = QEasingCurve::OutCurve, SineCurve = QEasingCurve::SineCurve, CosineCurve = QEasingCurve::CosineCurve, BezierSpline = QEasingCurve::BezierSpline, TCBSpline = QEasingCurve::TCBSpline, Custom = QEasingCurve::Custom, NCurveTypes = QEasingCurve::NCurveTypes}; +public slots: +QEasingCurve* new_QEasingCurve(QEasingCurve::Type type = QEasingCurve::Linear); +void delete_QEasingCurve(QEasingCurve* obj) { delete obj; } + void addCubicBezierSegment(QEasingCurve* theWrappedObject, const QPointF& c1, const QPointF& c2, const QPointF& endPoint); + void addTCBSegment(QEasingCurve* theWrappedObject, const QPointF& nextPoint, qreal t, qreal c, qreal b); + qreal amplitude(QEasingCurve* theWrappedObject) const; + qreal overshoot(QEasingCurve* theWrappedObject) const; + qreal period(QEasingCurve* theWrappedObject) const; + void setAmplitude(QEasingCurve* theWrappedObject, qreal amplitude); + void setOvershoot(QEasingCurve* theWrappedObject, qreal overshoot); + void setPeriod(QEasingCurve* theWrappedObject, qreal period); + void setType(QEasingCurve* theWrappedObject, QEasingCurve::Type type); + void swap(QEasingCurve* theWrappedObject, QEasingCurve& other); + QVector toCubicSpline(QEasingCurve* theWrappedObject) const; + QEasingCurve::Type type(QEasingCurve* theWrappedObject) const; + qreal valueForProgress(QEasingCurve* theWrappedObject, qreal progress) const; + QString py_toString(QEasingCurve*); +}; + + + + + +class PythonQtShell_QEvent : public QEvent +{ +public: + PythonQtShell_QEvent(QEvent::Type type):QEvent(type),_wrapper(NULL) {}; + PythonQtShell_QEvent(const QEvent& other):QEvent(other),_wrapper(NULL) {}; + + ~PythonQtShell_QEvent(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QEvent : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Type ) +enum Type{ + None = QEvent::None, Timer = QEvent::Timer, MouseButtonPress = QEvent::MouseButtonPress, MouseButtonRelease = QEvent::MouseButtonRelease, MouseButtonDblClick = QEvent::MouseButtonDblClick, MouseMove = QEvent::MouseMove, KeyPress = QEvent::KeyPress, KeyRelease = QEvent::KeyRelease, FocusIn = QEvent::FocusIn, FocusOut = QEvent::FocusOut, FocusAboutToChange = QEvent::FocusAboutToChange, Enter = QEvent::Enter, Leave = QEvent::Leave, Paint = QEvent::Paint, Move = QEvent::Move, Resize = QEvent::Resize, Create = QEvent::Create, Destroy = QEvent::Destroy, Show = QEvent::Show, Hide = QEvent::Hide, Close = QEvent::Close, Quit = QEvent::Quit, ParentChange = QEvent::ParentChange, ParentAboutToChange = QEvent::ParentAboutToChange, ThreadChange = QEvent::ThreadChange, WindowActivate = QEvent::WindowActivate, WindowDeactivate = QEvent::WindowDeactivate, ShowToParent = QEvent::ShowToParent, HideToParent = QEvent::HideToParent, Wheel = QEvent::Wheel, WindowTitleChange = QEvent::WindowTitleChange, WindowIconChange = QEvent::WindowIconChange, ApplicationWindowIconChange = QEvent::ApplicationWindowIconChange, ApplicationFontChange = QEvent::ApplicationFontChange, ApplicationLayoutDirectionChange = QEvent::ApplicationLayoutDirectionChange, ApplicationPaletteChange = QEvent::ApplicationPaletteChange, PaletteChange = QEvent::PaletteChange, Clipboard = QEvent::Clipboard, Speech = QEvent::Speech, MetaCall = QEvent::MetaCall, SockAct = QEvent::SockAct, WinEventAct = QEvent::WinEventAct, DeferredDelete = QEvent::DeferredDelete, DragEnter = QEvent::DragEnter, DragMove = QEvent::DragMove, DragLeave = QEvent::DragLeave, Drop = QEvent::Drop, DragResponse = QEvent::DragResponse, ChildAdded = QEvent::ChildAdded, ChildPolished = QEvent::ChildPolished, ChildRemoved = QEvent::ChildRemoved, ShowWindowRequest = QEvent::ShowWindowRequest, PolishRequest = QEvent::PolishRequest, Polish = QEvent::Polish, LayoutRequest = QEvent::LayoutRequest, UpdateRequest = QEvent::UpdateRequest, UpdateLater = QEvent::UpdateLater, EmbeddingControl = QEvent::EmbeddingControl, ActivateControl = QEvent::ActivateControl, DeactivateControl = QEvent::DeactivateControl, ContextMenu = QEvent::ContextMenu, InputMethod = QEvent::InputMethod, TabletMove = QEvent::TabletMove, LocaleChange = QEvent::LocaleChange, LanguageChange = QEvent::LanguageChange, LayoutDirectionChange = QEvent::LayoutDirectionChange, Style = QEvent::Style, TabletPress = QEvent::TabletPress, TabletRelease = QEvent::TabletRelease, OkRequest = QEvent::OkRequest, HelpRequest = QEvent::HelpRequest, IconDrag = QEvent::IconDrag, FontChange = QEvent::FontChange, EnabledChange = QEvent::EnabledChange, ActivationChange = QEvent::ActivationChange, StyleChange = QEvent::StyleChange, IconTextChange = QEvent::IconTextChange, ModifiedChange = QEvent::ModifiedChange, MouseTrackingChange = QEvent::MouseTrackingChange, WindowBlocked = QEvent::WindowBlocked, WindowUnblocked = QEvent::WindowUnblocked, WindowStateChange = QEvent::WindowStateChange, ToolTip = QEvent::ToolTip, WhatsThis = QEvent::WhatsThis, StatusTip = QEvent::StatusTip, ActionChanged = QEvent::ActionChanged, ActionAdded = QEvent::ActionAdded, ActionRemoved = QEvent::ActionRemoved, FileOpen = QEvent::FileOpen, Shortcut = QEvent::Shortcut, ShortcutOverride = QEvent::ShortcutOverride, WhatsThisClicked = QEvent::WhatsThisClicked, ToolBarChange = QEvent::ToolBarChange, ApplicationActivate = QEvent::ApplicationActivate, ApplicationActivated = QEvent::ApplicationActivated, ApplicationDeactivate = QEvent::ApplicationDeactivate, ApplicationDeactivated = QEvent::ApplicationDeactivated, QueryWhatsThis = QEvent::QueryWhatsThis, EnterWhatsThisMode = QEvent::EnterWhatsThisMode, LeaveWhatsThisMode = QEvent::LeaveWhatsThisMode, ZOrderChange = QEvent::ZOrderChange, HoverEnter = QEvent::HoverEnter, HoverLeave = QEvent::HoverLeave, HoverMove = QEvent::HoverMove, AcceptDropsChange = QEvent::AcceptDropsChange, ZeroTimerEvent = QEvent::ZeroTimerEvent, GraphicsSceneMouseMove = QEvent::GraphicsSceneMouseMove, GraphicsSceneMousePress = QEvent::GraphicsSceneMousePress, GraphicsSceneMouseRelease = QEvent::GraphicsSceneMouseRelease, GraphicsSceneMouseDoubleClick = QEvent::GraphicsSceneMouseDoubleClick, GraphicsSceneContextMenu = QEvent::GraphicsSceneContextMenu, GraphicsSceneHoverEnter = QEvent::GraphicsSceneHoverEnter, GraphicsSceneHoverMove = QEvent::GraphicsSceneHoverMove, GraphicsSceneHoverLeave = QEvent::GraphicsSceneHoverLeave, GraphicsSceneHelp = QEvent::GraphicsSceneHelp, GraphicsSceneDragEnter = QEvent::GraphicsSceneDragEnter, GraphicsSceneDragMove = QEvent::GraphicsSceneDragMove, GraphicsSceneDragLeave = QEvent::GraphicsSceneDragLeave, GraphicsSceneDrop = QEvent::GraphicsSceneDrop, GraphicsSceneWheel = QEvent::GraphicsSceneWheel, KeyboardLayoutChange = QEvent::KeyboardLayoutChange, DynamicPropertyChange = QEvent::DynamicPropertyChange, TabletEnterProximity = QEvent::TabletEnterProximity, TabletLeaveProximity = QEvent::TabletLeaveProximity, NonClientAreaMouseMove = QEvent::NonClientAreaMouseMove, NonClientAreaMouseButtonPress = QEvent::NonClientAreaMouseButtonPress, NonClientAreaMouseButtonRelease = QEvent::NonClientAreaMouseButtonRelease, NonClientAreaMouseButtonDblClick = QEvent::NonClientAreaMouseButtonDblClick, MacSizeChange = QEvent::MacSizeChange, ContentsRectChange = QEvent::ContentsRectChange, MacGLWindowChange = QEvent::MacGLWindowChange, FutureCallOut = QEvent::FutureCallOut, GraphicsSceneResize = QEvent::GraphicsSceneResize, GraphicsSceneMove = QEvent::GraphicsSceneMove, CursorChange = QEvent::CursorChange, ToolTipChange = QEvent::ToolTipChange, NetworkReplyUpdated = QEvent::NetworkReplyUpdated, GrabMouse = QEvent::GrabMouse, UngrabMouse = QEvent::UngrabMouse, GrabKeyboard = QEvent::GrabKeyboard, UngrabKeyboard = QEvent::UngrabKeyboard, MacGLClearDrawable = QEvent::MacGLClearDrawable, StateMachineSignal = QEvent::StateMachineSignal, StateMachineWrapped = QEvent::StateMachineWrapped, TouchBegin = QEvent::TouchBegin, TouchUpdate = QEvent::TouchUpdate, TouchEnd = QEvent::TouchEnd, NativeGesture = QEvent::NativeGesture, RequestSoftwareInputPanel = QEvent::RequestSoftwareInputPanel, CloseSoftwareInputPanel = QEvent::CloseSoftwareInputPanel, WinIdChange = QEvent::WinIdChange, Gesture = QEvent::Gesture, GestureOverride = QEvent::GestureOverride, ScrollPrepare = QEvent::ScrollPrepare, Scroll = QEvent::Scroll, Expose = QEvent::Expose, InputMethodQuery = QEvent::InputMethodQuery, OrientationChange = QEvent::OrientationChange, TouchCancel = QEvent::TouchCancel, ThemeChange = QEvent::ThemeChange, SockClose = QEvent::SockClose, PlatformPanel = QEvent::PlatformPanel, StyleAnimationUpdate = QEvent::StyleAnimationUpdate, User = QEvent::User, MaxUser = QEvent::MaxUser}; +public slots: +QEvent* new_QEvent(QEvent::Type type); +QEvent* new_QEvent(const QEvent& other); +void delete_QEvent(QEvent* obj) { delete obj; } + void accept(QEvent* theWrappedObject); + void ignore(QEvent* theWrappedObject); + bool isAccepted(QEvent* theWrappedObject) const; + QEvent* operator_assign(QEvent* theWrappedObject, const QEvent& other); + int static_QEvent_registerEventType(int hint = -1); + void setAccepted(QEvent* theWrappedObject, bool accepted); + bool spontaneous(QEvent* theWrappedObject) const; + QEvent::Type type(QEvent* theWrappedObject) const; + QString py_toString(QEvent*); +}; + + + + + +class PythonQtShell_QEventLoop : public QEventLoop +{ +public: + PythonQtShell_QEventLoop(QObject* parent = 0):QEventLoop(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QEventLoop(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QEventLoop : public QEventLoop +{ public: +inline bool promoted_event(QEvent* event) { return QEventLoop::event(event); } +}; + +class PythonQtWrapper_QEventLoop : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ProcessEventsFlag ) +Q_FLAGS(ProcessEventsFlags ) +enum ProcessEventsFlag{ + AllEvents = QEventLoop::AllEvents, ExcludeUserInputEvents = QEventLoop::ExcludeUserInputEvents, ExcludeSocketNotifiers = QEventLoop::ExcludeSocketNotifiers, WaitForMoreEvents = QEventLoop::WaitForMoreEvents, X11ExcludeTimers = QEventLoop::X11ExcludeTimers, EventLoopExec = QEventLoop::EventLoopExec, DialogExec = QEventLoop::DialogExec}; +Q_DECLARE_FLAGS(ProcessEventsFlags, ProcessEventsFlag) +public slots: +QEventLoop* new_QEventLoop(QObject* parent = 0); +void delete_QEventLoop(QEventLoop* obj) { delete obj; } + bool event(QEventLoop* theWrappedObject, QEvent* event); + int exec(QEventLoop* theWrappedObject, QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents); + void exit(QEventLoop* theWrappedObject, int returnCode = 0); + bool isRunning(QEventLoop* theWrappedObject) const; + bool processEvents(QEventLoop* theWrappedObject, QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents); + void processEvents(QEventLoop* theWrappedObject, QEventLoop::ProcessEventsFlags flags, int maximumTime); + void wakeUp(QEventLoop* theWrappedObject); +}; + + + + + +class PythonQtShell_QEventTransition : public QEventTransition +{ +public: + PythonQtShell_QEventTransition(QObject* object, QEvent::Type type, QState* sourceState = 0):QEventTransition(object, type, sourceState),_wrapper(NULL) {}; + PythonQtShell_QEventTransition(QState* sourceState = 0):QEventTransition(sourceState),_wrapper(NULL) {}; + + ~PythonQtShell_QEventTransition(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool eventTest(QEvent* event); +virtual void onTransition(QEvent* event); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QEventTransition : public QEventTransition +{ public: +inline bool promoted_event(QEvent* e) { return QEventTransition::event(e); } +inline bool promoted_eventTest(QEvent* event) { return QEventTransition::eventTest(event); } +inline void promoted_onTransition(QEvent* event) { QEventTransition::onTransition(event); } +}; + +class PythonQtWrapper_QEventTransition : public QObject +{ Q_OBJECT +public: +public slots: +QEventTransition* new_QEventTransition(QObject* object, QEvent::Type type, QState* sourceState = 0); +QEventTransition* new_QEventTransition(QState* sourceState = 0); +void delete_QEventTransition(QEventTransition* obj) { delete obj; } + bool event(QEventTransition* theWrappedObject, QEvent* e); + QObject* eventSource(QEventTransition* theWrappedObject) const; + bool eventTest(QEventTransition* theWrappedObject, QEvent* event); + QEvent::Type eventType(QEventTransition* theWrappedObject) const; + void onTransition(QEventTransition* theWrappedObject, QEvent* event); + void setEventSource(QEventTransition* theWrappedObject, QObject* object); + void setEventType(QEventTransition* theWrappedObject, QEvent::Type type); +}; + + + + + +class PythonQtWrapper_QFile : public QObject +{ Q_OBJECT +public: +public slots: +QFile* new_QFile(); +QFile* new_QFile(QObject* parent); +QFile* new_QFile(const QString& name); +QFile* new_QFile(const QString& name, QObject* parent); +void delete_QFile(QFile* obj) { delete obj; } + bool static_QFile_copy(const QString& fileName, const QString& newName); + bool copy(QFile* theWrappedObject, const QString& newName); + QString static_QFile_decodeName(const QByteArray& localFileName); + QByteArray static_QFile_encodeName(const QString& fileName); + bool exists(QFile* theWrappedObject) const; + bool static_QFile_exists(const QString& fileName); + QString fileName(QFile* theWrappedObject) const; + bool link(QFile* theWrappedObject, const QString& newName); + bool static_QFile_link(const QString& oldname, const QString& newName); + bool open(QFile* theWrappedObject, QIODevice::OpenMode flags); + bool remove(QFile* theWrappedObject); + bool static_QFile_remove(const QString& fileName); + bool rename(QFile* theWrappedObject, const QString& newName); + bool static_QFile_rename(const QString& oldName, const QString& newName); + bool static_QFile_resize(const QString& filename, qint64 sz); + bool resize(QFile* theWrappedObject, qint64 sz); + void setFileName(QFile* theWrappedObject, const QString& name); + qint64 size(QFile* theWrappedObject) const; + QString symLinkTarget(QFile* theWrappedObject) const; + QString static_QFile_symLinkTarget(const QString& fileName); +}; + + + + + +class PythonQtWrapper_QFileInfo : public QObject +{ Q_OBJECT +public: +public slots: +QFileInfo* new_QFileInfo(); +QFileInfo* new_QFileInfo(const QDir& dir, const QString& file); +QFileInfo* new_QFileInfo(const QFile& file); +QFileInfo* new_QFileInfo(const QFileInfo& fileinfo); +QFileInfo* new_QFileInfo(const QString& file); +void delete_QFileInfo(QFileInfo* obj) { delete obj; } + QDir absoluteDir(QFileInfo* theWrappedObject) const; + QString absoluteFilePath(QFileInfo* theWrappedObject) const; + QString absolutePath(QFileInfo* theWrappedObject) const; + QString baseName(QFileInfo* theWrappedObject) const; + QString bundleName(QFileInfo* theWrappedObject) const; + bool caching(QFileInfo* theWrappedObject) const; + QString canonicalFilePath(QFileInfo* theWrappedObject) const; + QString canonicalPath(QFileInfo* theWrappedObject) const; + QString completeBaseName(QFileInfo* theWrappedObject) const; + QString completeSuffix(QFileInfo* theWrappedObject) const; + QDateTime created(QFileInfo* theWrappedObject) const; + QDir dir(QFileInfo* theWrappedObject) const; + bool exists(QFileInfo* theWrappedObject) const; + QString fileName(QFileInfo* theWrappedObject) const; + QString filePath(QFileInfo* theWrappedObject) const; + QString group(QFileInfo* theWrappedObject) const; + uint groupId(QFileInfo* theWrappedObject) const; + bool isAbsolute(QFileInfo* theWrappedObject) const; + bool isBundle(QFileInfo* theWrappedObject) const; + bool isDir(QFileInfo* theWrappedObject) const; + bool isExecutable(QFileInfo* theWrappedObject) const; + bool isFile(QFileInfo* theWrappedObject) const; + bool isHidden(QFileInfo* theWrappedObject) const; + bool isNativePath(QFileInfo* theWrappedObject) const; + bool isReadable(QFileInfo* theWrappedObject) const; + bool isRelative(QFileInfo* theWrappedObject) const; + bool isRoot(QFileInfo* theWrappedObject) const; + bool isSymLink(QFileInfo* theWrappedObject) const; + bool isWritable(QFileInfo* theWrappedObject) const; + QDateTime lastModified(QFileInfo* theWrappedObject) const; + QDateTime lastRead(QFileInfo* theWrappedObject) const; + bool makeAbsolute(QFileInfo* theWrappedObject); + QString owner(QFileInfo* theWrappedObject) const; + uint ownerId(QFileInfo* theWrappedObject) const; + QString path(QFileInfo* theWrappedObject) const; + bool permission(QFileInfo* theWrappedObject, QFile::Permissions permissions) const; + QFile::Permissions permissions(QFileInfo* theWrappedObject) const; + void refresh(QFileInfo* theWrappedObject); + void setCaching(QFileInfo* theWrappedObject, bool on); + void setFile(QFileInfo* theWrappedObject, const QDir& dir, const QString& file); + void setFile(QFileInfo* theWrappedObject, const QFile& file); + void setFile(QFileInfo* theWrappedObject, const QString& file); + qint64 size(QFileInfo* theWrappedObject) const; + QString suffix(QFileInfo* theWrappedObject) const; + void swap(QFileInfo* theWrappedObject, QFileInfo& other); + QString symLinkTarget(QFileInfo* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QFileSystemWatcher : public QFileSystemWatcher +{ +public: + PythonQtShell_QFileSystemWatcher(QObject* parent = 0):QFileSystemWatcher(parent),_wrapper(NULL) {}; + PythonQtShell_QFileSystemWatcher(const QStringList& paths, QObject* parent = 0):QFileSystemWatcher(paths, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QFileSystemWatcher(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QFileSystemWatcher : public QObject +{ Q_OBJECT +public: +public slots: +QFileSystemWatcher* new_QFileSystemWatcher(QObject* parent = 0); +QFileSystemWatcher* new_QFileSystemWatcher(const QStringList& paths, QObject* parent = 0); +void delete_QFileSystemWatcher(QFileSystemWatcher* obj) { delete obj; } + bool addPath(QFileSystemWatcher* theWrappedObject, const QString& file); + QStringList addPaths(QFileSystemWatcher* theWrappedObject, const QStringList& files); + QStringList directories(QFileSystemWatcher* theWrappedObject) const; + QStringList files(QFileSystemWatcher* theWrappedObject) const; + bool removePath(QFileSystemWatcher* theWrappedObject, const QString& file); + QStringList removePaths(QFileSystemWatcher* theWrappedObject, const QStringList& files); +}; + + + + + +class PythonQtShell_QFinalState : public QFinalState +{ +public: + PythonQtShell_QFinalState(QState* parent = 0):QFinalState(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QFinalState(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void onEntry(QEvent* event); +virtual void onExit(QEvent* event); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QFinalState : public QFinalState +{ public: +inline bool promoted_event(QEvent* e) { return QFinalState::event(e); } +inline void promoted_onEntry(QEvent* event) { QFinalState::onEntry(event); } +inline void promoted_onExit(QEvent* event) { QFinalState::onExit(event); } +}; + +class PythonQtWrapper_QFinalState : public QObject +{ Q_OBJECT +public: +public slots: +QFinalState* new_QFinalState(QState* parent = 0); +void delete_QFinalState(QFinalState* obj) { delete obj; } + bool event(QFinalState* theWrappedObject, QEvent* e); + void onEntry(QFinalState* theWrappedObject, QEvent* event); + void onExit(QFinalState* theWrappedObject, QEvent* event); +}; + + + + + +class PythonQtShell_QHistoryState : public QHistoryState +{ +public: + PythonQtShell_QHistoryState(QHistoryState::HistoryType type, QState* parent = 0):QHistoryState(type, parent),_wrapper(NULL) {}; + PythonQtShell_QHistoryState(QState* parent = 0):QHistoryState(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QHistoryState(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void onEntry(QEvent* event); +virtual void onExit(QEvent* event); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QHistoryState : public QHistoryState +{ public: +inline bool promoted_event(QEvent* e) { return QHistoryState::event(e); } +inline void promoted_onEntry(QEvent* event) { QHistoryState::onEntry(event); } +inline void promoted_onExit(QEvent* event) { QHistoryState::onExit(event); } +}; + +class PythonQtWrapper_QHistoryState : public QObject +{ Q_OBJECT +public: +public slots: +QHistoryState* new_QHistoryState(QHistoryState::HistoryType type, QState* parent = 0); +QHistoryState* new_QHistoryState(QState* parent = 0); +void delete_QHistoryState(QHistoryState* obj) { delete obj; } + QAbstractState* defaultState(QHistoryState* theWrappedObject) const; + bool event(QHistoryState* theWrappedObject, QEvent* e); + QHistoryState::HistoryType historyType(QHistoryState* theWrappedObject) const; + void onEntry(QHistoryState* theWrappedObject, QEvent* event); + void onExit(QHistoryState* theWrappedObject, QEvent* event); + void setDefaultState(QHistoryState* theWrappedObject, QAbstractState* state); + void setHistoryType(QHistoryState* theWrappedObject, QHistoryState::HistoryType type); +}; + + + + + +class PythonQtShell_QIODevice : public QIODevice +{ +public: + PythonQtShell_QIODevice():QIODevice(),_wrapper(NULL) {}; + PythonQtShell_QIODevice(QObject* parent):QIODevice(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QIODevice(); + +virtual bool atEnd() const; +virtual qint64 bytesAvailable() const; +virtual qint64 bytesToWrite() const; +virtual bool canReadLine() const; +virtual void childEvent(QChildEvent* arg__1); +virtual void close(); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool isSequential() const; +virtual bool open(QIODevice::OpenMode mode); +virtual qint64 pos() const; +virtual qint64 readData(char* data, qint64 maxlen); +virtual qint64 readLineData(char* data, qint64 maxlen); +virtual bool reset(); +virtual bool seek(qint64 pos); +virtual qint64 size() const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool waitForBytesWritten(int msecs); +virtual bool waitForReadyRead(int msecs); +virtual qint64 writeData(const char* data, qint64 len); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QIODevice : public QIODevice +{ public: +inline bool promoted_atEnd() const { return QIODevice::atEnd(); } +inline qint64 promoted_bytesAvailable() const { return QIODevice::bytesAvailable(); } +inline qint64 promoted_bytesToWrite() const { return QIODevice::bytesToWrite(); } +inline bool promoted_canReadLine() const { return QIODevice::canReadLine(); } +inline void promoted_close() { QIODevice::close(); } +inline bool promoted_isSequential() const { return QIODevice::isSequential(); } +inline bool promoted_open(QIODevice::OpenMode mode) { return QIODevice::open(mode); } +inline qint64 promoted_pos() const { return QIODevice::pos(); } +inline qint64 promoted_readLineData(char* data, qint64 maxlen) { return QIODevice::readLineData(data, maxlen); } +inline bool promoted_reset() { return QIODevice::reset(); } +inline bool promoted_seek(qint64 pos) { return QIODevice::seek(pos); } +inline qint64 promoted_size() const { return QIODevice::size(); } +inline bool promoted_waitForBytesWritten(int msecs) { return QIODevice::waitForBytesWritten(msecs); } +inline bool promoted_waitForReadyRead(int msecs) { return QIODevice::waitForReadyRead(msecs); } +}; + +class PythonQtWrapper_QIODevice : public QObject +{ Q_OBJECT +public: +Q_ENUMS(OpenModeFlag ) +Q_FLAGS(OpenMode ) +enum OpenModeFlag{ + NotOpen = QIODevice::NotOpen, ReadOnly = QIODevice::ReadOnly, WriteOnly = QIODevice::WriteOnly, ReadWrite = QIODevice::ReadWrite, Append = QIODevice::Append, Truncate = QIODevice::Truncate, Text = QIODevice::Text, Unbuffered = QIODevice::Unbuffered}; +Q_DECLARE_FLAGS(OpenMode, OpenModeFlag) +public slots: +QIODevice* new_QIODevice(); +QIODevice* new_QIODevice(QObject* parent); +void delete_QIODevice(QIODevice* obj) { delete obj; } + bool atEnd(QIODevice* theWrappedObject) const; + qint64 bytesAvailable(QIODevice* theWrappedObject) const; + qint64 bytesToWrite(QIODevice* theWrappedObject) const; + bool canReadLine(QIODevice* theWrappedObject) const; + void close(QIODevice* theWrappedObject); + QString errorString(QIODevice* theWrappedObject) const; + bool getChar(QIODevice* theWrappedObject, char* c); + bool isOpen(QIODevice* theWrappedObject) const; + bool isReadable(QIODevice* theWrappedObject) const; + bool isSequential(QIODevice* theWrappedObject) const; + bool isTextModeEnabled(QIODevice* theWrappedObject) const; + bool isWritable(QIODevice* theWrappedObject) const; + bool open(QIODevice* theWrappedObject, QIODevice::OpenMode mode); + QIODevice::OpenMode openMode(QIODevice* theWrappedObject) const; + QByteArray peek(QIODevice* theWrappedObject, qint64 maxlen); + qint64 pos(QIODevice* theWrappedObject) const; + bool putChar(QIODevice* theWrappedObject, char c); + QByteArray read(QIODevice* theWrappedObject, qint64 maxlen); + QByteArray readAll(QIODevice* theWrappedObject); + QByteArray readLine(QIODevice* theWrappedObject, qint64 maxlen = 0); + qint64 readLineData(QIODevice* theWrappedObject, char* data, qint64 maxlen); + bool reset(QIODevice* theWrappedObject); + bool seek(QIODevice* theWrappedObject, qint64 pos); + void setTextModeEnabled(QIODevice* theWrappedObject, bool enabled); + qint64 size(QIODevice* theWrappedObject) const; + void ungetChar(QIODevice* theWrappedObject, char c); + bool waitForBytesWritten(QIODevice* theWrappedObject, int msecs); + bool waitForReadyRead(QIODevice* theWrappedObject, int msecs); + qint64 write(QIODevice* theWrappedObject, const QByteArray& data); + qint64 write(QIODevice* theWrappedObject, const char* data); +}; + + + + + +class PythonQtWrapper_QLibraryInfo : public QObject +{ Q_OBJECT +public: +Q_ENUMS(LibraryLocation ) +enum LibraryLocation{ + PrefixPath = QLibraryInfo::PrefixPath, DocumentationPath = QLibraryInfo::DocumentationPath, HeadersPath = QLibraryInfo::HeadersPath, LibrariesPath = QLibraryInfo::LibrariesPath, LibraryExecutablesPath = QLibraryInfo::LibraryExecutablesPath, BinariesPath = QLibraryInfo::BinariesPath, PluginsPath = QLibraryInfo::PluginsPath, ImportsPath = QLibraryInfo::ImportsPath, Qml2ImportsPath = QLibraryInfo::Qml2ImportsPath, ArchDataPath = QLibraryInfo::ArchDataPath, DataPath = QLibraryInfo::DataPath, TranslationsPath = QLibraryInfo::TranslationsPath, ExamplesPath = QLibraryInfo::ExamplesPath, TestsPath = QLibraryInfo::TestsPath, SettingsPath = QLibraryInfo::SettingsPath}; +public slots: +void delete_QLibraryInfo(QLibraryInfo* obj) { delete obj; } + QDate static_QLibraryInfo_buildDate(); + bool static_QLibraryInfo_isDebugBuild(); + QString static_QLibraryInfo_licensedProducts(); + QString static_QLibraryInfo_licensee(); + QString static_QLibraryInfo_location(QLibraryInfo::LibraryLocation arg__1); +}; + + + + + +class PythonQtWrapper_QMargins : public QObject +{ Q_OBJECT +public: +public slots: +QMargins* new_QMargins(); +QMargins* new_QMargins(int left, int top, int right, int bottom); +QMargins* new_QMargins(const QMargins& other) { +QMargins* a = new QMargins(); +*((QMargins*)a) = other; +return a; } +void delete_QMargins(QMargins* obj) { delete obj; } + int bottom(QMargins* theWrappedObject) const; + bool isNull(QMargins* theWrappedObject) const; + int left(QMargins* theWrappedObject) const; + bool __eq__(QMargins* theWrappedObject, const QMargins& m2); + int right(QMargins* theWrappedObject) const; + void setBottom(QMargins* theWrappedObject, int bottom); + void setLeft(QMargins* theWrappedObject, int left); + void setRight(QMargins* theWrappedObject, int right); + void setTop(QMargins* theWrappedObject, int top); + int top(QMargins* theWrappedObject) const; + QString py_toString(QMargins*); + bool __nonzero__(QMargins* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtShell_QMimeData : public QMimeData +{ +public: + PythonQtShell_QMimeData():QMimeData(),_wrapper(NULL) {}; + + ~PythonQtShell_QMimeData(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual QStringList formats() const; +virtual bool hasFormat(const QString& mimetype) const; +virtual QVariant retrieveData(const QString& mimetype, QVariant::Type preferredType) const; +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QMimeData : public QMimeData +{ public: +inline QStringList promoted_formats() const { return QMimeData::formats(); } +inline bool promoted_hasFormat(const QString& mimetype) const { return QMimeData::hasFormat(mimetype); } +inline QVariant promoted_retrieveData(const QString& mimetype, QVariant::Type preferredType) const { return QMimeData::retrieveData(mimetype, preferredType); } +}; + +class PythonQtWrapper_QMimeData : public QObject +{ Q_OBJECT +public: +public slots: +QMimeData* new_QMimeData(); +void delete_QMimeData(QMimeData* obj) { delete obj; } + void clear(QMimeData* theWrappedObject); + QVariant colorData(QMimeData* theWrappedObject) const; + QByteArray data(QMimeData* theWrappedObject, const QString& mimetype) const; + QStringList formats(QMimeData* theWrappedObject) const; + bool hasColor(QMimeData* theWrappedObject) const; + bool hasFormat(QMimeData* theWrappedObject, const QString& mimetype) const; + bool hasHtml(QMimeData* theWrappedObject) const; + bool hasImage(QMimeData* theWrappedObject) const; + bool hasText(QMimeData* theWrappedObject) const; + bool hasUrls(QMimeData* theWrappedObject) const; + QString html(QMimeData* theWrappedObject) const; + QVariant imageData(QMimeData* theWrappedObject) const; + void removeFormat(QMimeData* theWrappedObject, const QString& mimetype); + QVariant retrieveData(QMimeData* theWrappedObject, const QString& mimetype, QVariant::Type preferredType) const; + void setColorData(QMimeData* theWrappedObject, const QVariant& color); + void setData(QMimeData* theWrappedObject, const QString& mimetype, const QByteArray& data); + void setHtml(QMimeData* theWrappedObject, const QString& html); + void setImageData(QMimeData* theWrappedObject, const QVariant& image); + void setText(QMimeData* theWrappedObject, const QString& text); + void setUrls(QMimeData* theWrappedObject, const QList& urls); + QString text(QMimeData* theWrappedObject) const; + QList urls(QMimeData* theWrappedObject) const; +}; + + diff --git a/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core1.cpp b/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core1.cpp new file mode 100644 index 00000000..6d473d32 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core1.cpp @@ -0,0 +1,4801 @@ +#include "com_trolltech_qt_core1.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QModelIndex* PythonQtWrapper_QModelIndex::new_QModelIndex() +{ +return new QModelIndex(); } + +QModelIndex PythonQtWrapper_QModelIndex::child(QModelIndex* theWrappedObject, int row, int column) const +{ + return ( theWrappedObject->child(row, column)); +} + +int PythonQtWrapper_QModelIndex::column(QModelIndex* theWrappedObject) const +{ + return ( theWrappedObject->column()); +} + +QVariant PythonQtWrapper_QModelIndex::data(QModelIndex* theWrappedObject, int role) const +{ + return ( theWrappedObject->data(role)); +} + +Qt::ItemFlags PythonQtWrapper_QModelIndex::flags(QModelIndex* theWrappedObject) const +{ + return ( theWrappedObject->flags()); +} + +quintptr PythonQtWrapper_QModelIndex::internalId(QModelIndex* theWrappedObject) const +{ + return ( theWrappedObject->internalId()); +} + +void* PythonQtWrapper_QModelIndex::internalPointer(QModelIndex* theWrappedObject) const +{ + return ( theWrappedObject->internalPointer()); +} + +bool PythonQtWrapper_QModelIndex::isValid(QModelIndex* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +const QAbstractItemModel* PythonQtWrapper_QModelIndex::model(QModelIndex* theWrappedObject) const +{ + return ( theWrappedObject->model()); +} + +bool PythonQtWrapper_QModelIndex::__ne__(QModelIndex* theWrappedObject, const QModelIndex& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QModelIndex::__lt__(QModelIndex* theWrappedObject, const QModelIndex& other) const +{ + return ( (*theWrappedObject)< other); +} + +bool PythonQtWrapper_QModelIndex::__eq__(QModelIndex* theWrappedObject, const QModelIndex& other) const +{ + return ( (*theWrappedObject)== other); +} + +QModelIndex PythonQtWrapper_QModelIndex::parent(QModelIndex* theWrappedObject) const +{ + return ( theWrappedObject->parent()); +} + +int PythonQtWrapper_QModelIndex::row(QModelIndex* theWrappedObject) const +{ + return ( theWrappedObject->row()); +} + +QModelIndex PythonQtWrapper_QModelIndex::sibling(QModelIndex* theWrappedObject, int row, int column) const +{ + return ( theWrappedObject->sibling(row, column)); +} + +QString PythonQtWrapper_QModelIndex::py_toString(QModelIndex* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QMutex* PythonQtWrapper_QMutex::new_QMutex(QMutex::RecursionMode mode) +{ +return new QMutex(mode); } + +void PythonQtWrapper_QMutex::lock(QMutex* theWrappedObject) +{ + ( theWrappedObject->lock()); +} + +bool PythonQtWrapper_QMutex::tryLock(QMutex* theWrappedObject, int timeout) +{ + return ( theWrappedObject->tryLock(timeout)); +} + +void PythonQtWrapper_QMutex::unlock(QMutex* theWrappedObject) +{ + ( theWrappedObject->unlock()); +} + + + +PythonQtShell_QObject::~PythonQtShell_QObject() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QObject::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QObject::childEvent(arg__1); +} +void PythonQtShell_QObject::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QObject::customEvent(arg__1); +} +bool PythonQtShell_QObject::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QObject::event(arg__1); +} +bool PythonQtShell_QObject::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QObject::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QObject::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QObject::timerEvent(arg__1); +} +QObject* PythonQtWrapper_QObject::new_QObject(QObject* parent) +{ +return new PythonQtShell_QObject(parent); } + +bool PythonQtWrapper_QObject::blockSignals(QObject* theWrappedObject, bool b) +{ + return ( theWrappedObject->blockSignals(b)); +} + +void PythonQtWrapper_QObject::childEvent(QObject* theWrappedObject, QChildEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QObject*)theWrappedObject)->promoted_childEvent(arg__1)); +} + +const QList* PythonQtWrapper_QObject::children(QObject* theWrappedObject) const +{ + return &( theWrappedObject->children()); +} + +void PythonQtWrapper_QObject::customEvent(QObject* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QObject*)theWrappedObject)->promoted_customEvent(arg__1)); +} + +void PythonQtWrapper_QObject::dumpObjectInfo(QObject* theWrappedObject) +{ + ( theWrappedObject->dumpObjectInfo()); +} + +void PythonQtWrapper_QObject::dumpObjectTree(QObject* theWrappedObject) +{ + ( theWrappedObject->dumpObjectTree()); +} + +QList PythonQtWrapper_QObject::dynamicPropertyNames(QObject* theWrappedObject) const +{ + return ( theWrappedObject->dynamicPropertyNames()); +} + +bool PythonQtWrapper_QObject::event(QObject* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QObject*)theWrappedObject)->promoted_event(arg__1)); +} + +bool PythonQtWrapper_QObject::eventFilter(QObject* theWrappedObject, QObject* arg__1, QEvent* arg__2) +{ + return ( ((PythonQtPublicPromoter_QObject*)theWrappedObject)->promoted_eventFilter(arg__1, arg__2)); +} + +bool PythonQtWrapper_QObject::inherits(QObject* theWrappedObject, const char* classname) const +{ + return ( theWrappedObject->inherits(classname)); +} + +void PythonQtWrapper_QObject::installEventFilter(QObject* theWrappedObject, QObject* arg__1) +{ + ( theWrappedObject->installEventFilter(arg__1)); +} + +bool PythonQtWrapper_QObject::isWidgetType(QObject* theWrappedObject) const +{ + return ( theWrappedObject->isWidgetType()); +} + +bool PythonQtWrapper_QObject::isWindowType(QObject* theWrappedObject) const +{ + return ( theWrappedObject->isWindowType()); +} + +void PythonQtWrapper_QObject::killTimer(QObject* theWrappedObject, int id) +{ + ( theWrappedObject->killTimer(id)); +} + +QString PythonQtWrapper_QObject::objectName(QObject* theWrappedObject) const +{ + return ( theWrappedObject->objectName()); +} + +QObject* PythonQtWrapper_QObject::parent(QObject* theWrappedObject) const +{ + return ( theWrappedObject->parent()); +} + +QVariant PythonQtWrapper_QObject::property(QObject* theWrappedObject, const char* name) const +{ + return ( theWrappedObject->property(name)); +} + +void PythonQtWrapper_QObject::removeEventFilter(QObject* theWrappedObject, QObject* arg__1) +{ + ( theWrappedObject->removeEventFilter(arg__1)); +} + +void PythonQtWrapper_QObject::setObjectName(QObject* theWrappedObject, const QString& name) +{ + ( theWrappedObject->setObjectName(name)); +} + +void PythonQtWrapper_QObject::setParent(QObject* theWrappedObject, QObject* arg__1) +{ + ( theWrappedObject->setParent(arg__1)); +} + +bool PythonQtWrapper_QObject::setProperty(QObject* theWrappedObject, const char* name, const QVariant& value) +{ + return ( theWrappedObject->setProperty(name, value)); +} + +bool PythonQtWrapper_QObject::signalsBlocked(QObject* theWrappedObject) const +{ + return ( theWrappedObject->signalsBlocked()); +} + +int PythonQtWrapper_QObject::startTimer(QObject* theWrappedObject, int interval, Qt::TimerType timerType) +{ + return ( theWrappedObject->startTimer(interval, timerType)); +} + +void PythonQtWrapper_QObject::timerEvent(QObject* theWrappedObject, QTimerEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QObject*)theWrappedObject)->promoted_timerEvent(arg__1)); +} + + + +PythonQtShell_QParallelAnimationGroup::~PythonQtShell_QParallelAnimationGroup() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QParallelAnimationGroup::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QParallelAnimationGroup::childEvent(arg__1); +} +void PythonQtShell_QParallelAnimationGroup::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QParallelAnimationGroup::customEvent(arg__1); +} +int PythonQtShell_QParallelAnimationGroup::duration() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "duration"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("duration", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QParallelAnimationGroup::duration(); +} +bool PythonQtShell_QParallelAnimationGroup::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QParallelAnimationGroup::event(event); +} +bool PythonQtShell_QParallelAnimationGroup::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QParallelAnimationGroup::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QParallelAnimationGroup::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QParallelAnimationGroup::timerEvent(arg__1); +} +void PythonQtShell_QParallelAnimationGroup::updateCurrentTime(int currentTime) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentTime"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)¤tTime}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QParallelAnimationGroup::updateCurrentTime(currentTime); +} +void PythonQtShell_QParallelAnimationGroup::updateDirection(QAbstractAnimation::Direction direction) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateDirection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractAnimation::Direction"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&direction}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QParallelAnimationGroup::updateDirection(direction); +} +void PythonQtShell_QParallelAnimationGroup::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateState"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractAnimation::State" , "QAbstractAnimation::State"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&newState, (void*)&oldState}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QParallelAnimationGroup::updateState(newState, oldState); +} +QParallelAnimationGroup* PythonQtWrapper_QParallelAnimationGroup::new_QParallelAnimationGroup(QObject* parent) +{ +return new PythonQtShell_QParallelAnimationGroup(parent); } + +int PythonQtWrapper_QParallelAnimationGroup::duration(QParallelAnimationGroup* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QParallelAnimationGroup*)theWrappedObject)->promoted_duration()); +} + +bool PythonQtWrapper_QParallelAnimationGroup::event(QParallelAnimationGroup* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QParallelAnimationGroup*)theWrappedObject)->promoted_event(event)); +} + +void PythonQtWrapper_QParallelAnimationGroup::updateCurrentTime(QParallelAnimationGroup* theWrappedObject, int currentTime) +{ + ( ((PythonQtPublicPromoter_QParallelAnimationGroup*)theWrappedObject)->promoted_updateCurrentTime(currentTime)); +} + +void PythonQtWrapper_QParallelAnimationGroup::updateDirection(QParallelAnimationGroup* theWrappedObject, QAbstractAnimation::Direction direction) +{ + ( ((PythonQtPublicPromoter_QParallelAnimationGroup*)theWrappedObject)->promoted_updateDirection(direction)); +} + +void PythonQtWrapper_QParallelAnimationGroup::updateState(QParallelAnimationGroup* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState) +{ + ( ((PythonQtPublicPromoter_QParallelAnimationGroup*)theWrappedObject)->promoted_updateState(newState, oldState)); +} + + + +PythonQtShell_QPauseAnimation::~PythonQtShell_QPauseAnimation() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QPauseAnimation::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPauseAnimation::childEvent(arg__1); +} +void PythonQtShell_QPauseAnimation::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPauseAnimation::customEvent(arg__1); +} +int PythonQtShell_QPauseAnimation::duration() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "duration"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("duration", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPauseAnimation::duration(); +} +bool PythonQtShell_QPauseAnimation::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPauseAnimation::event(e); +} +bool PythonQtShell_QPauseAnimation::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPauseAnimation::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QPauseAnimation::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPauseAnimation::timerEvent(arg__1); +} +void PythonQtShell_QPauseAnimation::updateCurrentTime(int arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentTime"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPauseAnimation::updateCurrentTime(arg__1); +} +void PythonQtShell_QPauseAnimation::updateDirection(QAbstractAnimation::Direction direction) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateDirection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractAnimation::Direction"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&direction}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPauseAnimation::updateDirection(direction); +} +void PythonQtShell_QPauseAnimation::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateState"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractAnimation::State" , "QAbstractAnimation::State"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&newState, (void*)&oldState}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPauseAnimation::updateState(newState, oldState); +} +QPauseAnimation* PythonQtWrapper_QPauseAnimation::new_QPauseAnimation(QObject* parent) +{ +return new PythonQtShell_QPauseAnimation(parent); } + +QPauseAnimation* PythonQtWrapper_QPauseAnimation::new_QPauseAnimation(int msecs, QObject* parent) +{ +return new PythonQtShell_QPauseAnimation(msecs, parent); } + +int PythonQtWrapper_QPauseAnimation::duration(QPauseAnimation* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QPauseAnimation*)theWrappedObject)->promoted_duration()); +} + +bool PythonQtWrapper_QPauseAnimation::event(QPauseAnimation* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QPauseAnimation*)theWrappedObject)->promoted_event(e)); +} + +void PythonQtWrapper_QPauseAnimation::setDuration(QPauseAnimation* theWrappedObject, int msecs) +{ + ( theWrappedObject->setDuration(msecs)); +} + +void PythonQtWrapper_QPauseAnimation::updateCurrentTime(QPauseAnimation* theWrappedObject, int arg__1) +{ + ( ((PythonQtPublicPromoter_QPauseAnimation*)theWrappedObject)->promoted_updateCurrentTime(arg__1)); +} + + + +PythonQtShell_QProcess::~PythonQtShell_QProcess() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QProcess::atEnd() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProcess::atEnd(); +} +qint64 PythonQtShell_QProcess::bytesAvailable() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProcess::bytesAvailable(); +} +qint64 PythonQtShell_QProcess::bytesToWrite() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProcess::bytesToWrite(); +} +bool PythonQtShell_QProcess::canReadLine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProcess::canReadLine(); +} +void PythonQtShell_QProcess::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProcess::childEvent(arg__1); +} +void PythonQtShell_QProcess::close() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProcess::close(); +} +void PythonQtShell_QProcess::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProcess::customEvent(arg__1); +} +bool PythonQtShell_QProcess::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProcess::event(arg__1); +} +bool PythonQtShell_QProcess::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProcess::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QProcess::isSequential() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProcess::isSequential(); +} +bool PythonQtShell_QProcess::open(QIODevice::OpenMode mode) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProcess::open(mode); +} +qint64 PythonQtShell_QProcess::pos() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProcess::pos(); +} +qint64 PythonQtShell_QProcess::readData(char* data, qint64 maxlen) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProcess::readData(data, maxlen); +} +qint64 PythonQtShell_QProcess::readLineData(char* data, qint64 maxlen) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProcess::readLineData(data, maxlen); +} +bool PythonQtShell_QProcess::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProcess::reset(); +} +bool PythonQtShell_QProcess::seek(qint64 pos) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProcess::seek(pos); +} +void PythonQtShell_QProcess::setupChildProcess() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupChildProcess"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProcess::setupChildProcess(); +} +qint64 PythonQtShell_QProcess::size() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProcess::size(); +} +void PythonQtShell_QProcess::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProcess::timerEvent(arg__1); +} +bool PythonQtShell_QProcess::waitForBytesWritten(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProcess::waitForBytesWritten(msecs); +} +bool PythonQtShell_QProcess::waitForReadyRead(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProcess::waitForReadyRead(msecs); +} +qint64 PythonQtShell_QProcess::writeData(const char* data, qint64 len) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&len}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProcess::writeData(data, len); +} +QProcess* PythonQtWrapper_QProcess::new_QProcess(QObject* parent) +{ +return new PythonQtShell_QProcess(parent); } + +QStringList PythonQtWrapper_QProcess::arguments(QProcess* theWrappedObject) const +{ + return ( theWrappedObject->arguments()); +} + +bool PythonQtWrapper_QProcess::atEnd(QProcess* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_atEnd()); +} + +qint64 PythonQtWrapper_QProcess::bytesAvailable(QProcess* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_bytesAvailable()); +} + +qint64 PythonQtWrapper_QProcess::bytesToWrite(QProcess* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_bytesToWrite()); +} + +bool PythonQtWrapper_QProcess::canReadLine(QProcess* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_canReadLine()); +} + +void PythonQtWrapper_QProcess::close(QProcess* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_close()); +} + +void PythonQtWrapper_QProcess::closeReadChannel(QProcess* theWrappedObject, QProcess::ProcessChannel channel) +{ + ( theWrappedObject->closeReadChannel(channel)); +} + +void PythonQtWrapper_QProcess::closeWriteChannel(QProcess* theWrappedObject) +{ + ( theWrappedObject->closeWriteChannel()); +} + +QStringList PythonQtWrapper_QProcess::environment(QProcess* theWrappedObject) const +{ + return ( theWrappedObject->environment()); +} + +QProcess::ProcessError PythonQtWrapper_QProcess::error(QProcess* theWrappedObject) const +{ + return ( theWrappedObject->error()); +} + +int PythonQtWrapper_QProcess::static_QProcess_execute(const QString& program) +{ + return (QProcess::execute(program)); +} + +int PythonQtWrapper_QProcess::static_QProcess_execute(const QString& program, const QStringList& arguments) +{ + return (QProcess::execute(program, arguments)); +} + +int PythonQtWrapper_QProcess::exitCode(QProcess* theWrappedObject) const +{ + return ( theWrappedObject->exitCode()); +} + +QProcess::ExitStatus PythonQtWrapper_QProcess::exitStatus(QProcess* theWrappedObject) const +{ + return ( theWrappedObject->exitStatus()); +} + +bool PythonQtWrapper_QProcess::isSequential(QProcess* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_isSequential()); +} + +QProcess::ProcessChannelMode PythonQtWrapper_QProcess::processChannelMode(QProcess* theWrappedObject) const +{ + return ( theWrappedObject->processChannelMode()); +} + +QProcessEnvironment PythonQtWrapper_QProcess::processEnvironment(QProcess* theWrappedObject) const +{ + return ( theWrappedObject->processEnvironment()); +} + +QString PythonQtWrapper_QProcess::program(QProcess* theWrappedObject) const +{ + return ( theWrappedObject->program()); +} + +QByteArray PythonQtWrapper_QProcess::readAllStandardError(QProcess* theWrappedObject) +{ + return ( theWrappedObject->readAllStandardError()); +} + +QByteArray PythonQtWrapper_QProcess::readAllStandardOutput(QProcess* theWrappedObject) +{ + return ( theWrappedObject->readAllStandardOutput()); +} + +QProcess::ProcessChannel PythonQtWrapper_QProcess::readChannel(QProcess* theWrappedObject) const +{ + return ( theWrappedObject->readChannel()); +} + +qint64 PythonQtWrapper_QProcess::readData(QProcess* theWrappedObject, char* data, qint64 maxlen) +{ + return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_readData(data, maxlen)); +} + +void PythonQtWrapper_QProcess::setEnvironment(QProcess* theWrappedObject, const QStringList& environment) +{ + ( theWrappedObject->setEnvironment(environment)); +} + +void PythonQtWrapper_QProcess::setProcessChannelMode(QProcess* theWrappedObject, QProcess::ProcessChannelMode mode) +{ + ( theWrappedObject->setProcessChannelMode(mode)); +} + +void PythonQtWrapper_QProcess::setProcessEnvironment(QProcess* theWrappedObject, const QProcessEnvironment& environment) +{ + ( theWrappedObject->setProcessEnvironment(environment)); +} + +void PythonQtWrapper_QProcess::setReadChannel(QProcess* theWrappedObject, QProcess::ProcessChannel channel) +{ + ( theWrappedObject->setReadChannel(channel)); +} + +void PythonQtWrapper_QProcess::setStandardErrorFile(QProcess* theWrappedObject, const QString& fileName, QIODevice::OpenMode mode) +{ + ( theWrappedObject->setStandardErrorFile(fileName, mode)); +} + +void PythonQtWrapper_QProcess::setStandardInputFile(QProcess* theWrappedObject, const QString& fileName) +{ + ( theWrappedObject->setStandardInputFile(fileName)); +} + +void PythonQtWrapper_QProcess::setStandardOutputFile(QProcess* theWrappedObject, const QString& fileName, QIODevice::OpenMode mode) +{ + ( theWrappedObject->setStandardOutputFile(fileName, mode)); +} + +void PythonQtWrapper_QProcess::setStandardOutputProcess(QProcess* theWrappedObject, QProcess* destination) +{ + ( theWrappedObject->setStandardOutputProcess(destination)); +} + +void PythonQtWrapper_QProcess::setWorkingDirectory(QProcess* theWrappedObject, const QString& dir) +{ + ( theWrappedObject->setWorkingDirectory(dir)); +} + +void PythonQtWrapper_QProcess::setupChildProcess(QProcess* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_setupChildProcess()); +} + +void PythonQtWrapper_QProcess::start(QProcess* theWrappedObject, const QString& command, QIODevice::OpenMode mode) +{ + ( theWrappedObject->start(command, mode)); +} + +void PythonQtWrapper_QProcess::start(QProcess* theWrappedObject, const QString& program, const QStringList& arguments, QIODevice::OpenMode mode) +{ + ( theWrappedObject->start(program, arguments, mode)); +} + +bool PythonQtWrapper_QProcess::static_QProcess_startDetached(const QString& program) +{ + return (QProcess::startDetached(program)); +} + +bool PythonQtWrapper_QProcess::static_QProcess_startDetached(const QString& program, const QStringList& arguments) +{ + return (QProcess::startDetached(program, arguments)); +} + +bool PythonQtWrapper_QProcess::static_QProcess_startDetached(const QString& program, const QStringList& arguments, const QString& workingDirectory, qint64* pid) +{ + return (QProcess::startDetached(program, arguments, workingDirectory, pid)); +} + +QProcess::ProcessState PythonQtWrapper_QProcess::state(QProcess* theWrappedObject) const +{ + return ( theWrappedObject->state()); +} + +QStringList PythonQtWrapper_QProcess::static_QProcess_systemEnvironment() +{ + return (QProcess::systemEnvironment()); +} + +bool PythonQtWrapper_QProcess::waitForBytesWritten(QProcess* theWrappedObject, int msecs) +{ + return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_waitForBytesWritten(msecs)); +} + +bool PythonQtWrapper_QProcess::waitForFinished(QProcess* theWrappedObject, int msecs) +{ + return ( theWrappedObject->waitForFinished(msecs)); +} + +bool PythonQtWrapper_QProcess::waitForReadyRead(QProcess* theWrappedObject, int msecs) +{ + return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_waitForReadyRead(msecs)); +} + +bool PythonQtWrapper_QProcess::waitForStarted(QProcess* theWrappedObject, int msecs) +{ + return ( theWrappedObject->waitForStarted(msecs)); +} + +QString PythonQtWrapper_QProcess::workingDirectory(QProcess* theWrappedObject) const +{ + return ( theWrappedObject->workingDirectory()); +} + +qint64 PythonQtWrapper_QProcess::writeData(QProcess* theWrappedObject, const char* data, qint64 len) +{ + return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_writeData(data, len)); +} + + + +QProcessEnvironment* PythonQtWrapper_QProcessEnvironment::new_QProcessEnvironment() +{ +return new QProcessEnvironment(); } + +QProcessEnvironment* PythonQtWrapper_QProcessEnvironment::new_QProcessEnvironment(const QProcessEnvironment& other) +{ +return new QProcessEnvironment(other); } + +void PythonQtWrapper_QProcessEnvironment::clear(QProcessEnvironment* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +bool PythonQtWrapper_QProcessEnvironment::contains(QProcessEnvironment* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->contains(name)); +} + +void PythonQtWrapper_QProcessEnvironment::insert(QProcessEnvironment* theWrappedObject, const QProcessEnvironment& e) +{ + ( theWrappedObject->insert(e)); +} + +void PythonQtWrapper_QProcessEnvironment::insert(QProcessEnvironment* theWrappedObject, const QString& name, const QString& value) +{ + ( theWrappedObject->insert(name, value)); +} + +bool PythonQtWrapper_QProcessEnvironment::isEmpty(QProcessEnvironment* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +QStringList PythonQtWrapper_QProcessEnvironment::keys(QProcessEnvironment* theWrappedObject) const +{ + return ( theWrappedObject->keys()); +} + +bool PythonQtWrapper_QProcessEnvironment::__ne__(QProcessEnvironment* theWrappedObject, const QProcessEnvironment& other) const +{ + return ( (*theWrappedObject)!= other); +} + +QProcessEnvironment* PythonQtWrapper_QProcessEnvironment::operator_assign(QProcessEnvironment* theWrappedObject, const QProcessEnvironment& other) +{ + return &( (*theWrappedObject)= other); +} + +bool PythonQtWrapper_QProcessEnvironment::__eq__(QProcessEnvironment* theWrappedObject, const QProcessEnvironment& other) const +{ + return ( (*theWrappedObject)== other); +} + +void PythonQtWrapper_QProcessEnvironment::remove(QProcessEnvironment* theWrappedObject, const QString& name) +{ + ( theWrappedObject->remove(name)); +} + +void PythonQtWrapper_QProcessEnvironment::swap(QProcessEnvironment* theWrappedObject, QProcessEnvironment& other) +{ + ( theWrappedObject->swap(other)); +} + +QProcessEnvironment PythonQtWrapper_QProcessEnvironment::static_QProcessEnvironment_systemEnvironment() +{ + return (QProcessEnvironment::systemEnvironment()); +} + +QStringList PythonQtWrapper_QProcessEnvironment::toStringList(QProcessEnvironment* theWrappedObject) const +{ + return ( theWrappedObject->toStringList()); +} + +QString PythonQtWrapper_QProcessEnvironment::value(QProcessEnvironment* theWrappedObject, const QString& name, const QString& defaultValue) const +{ + return ( theWrappedObject->value(name, defaultValue)); +} + + + +PythonQtShell_QPropertyAnimation::~PythonQtShell_QPropertyAnimation() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QPropertyAnimation::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPropertyAnimation::childEvent(arg__1); +} +void PythonQtShell_QPropertyAnimation::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPropertyAnimation::customEvent(arg__1); +} +int PythonQtShell_QPropertyAnimation::duration() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "duration"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("duration", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPropertyAnimation::duration(); +} +bool PythonQtShell_QPropertyAnimation::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPropertyAnimation::event(event); +} +bool PythonQtShell_QPropertyAnimation::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPropertyAnimation::eventFilter(arg__1, arg__2); +} +QVariant PythonQtShell_QPropertyAnimation::interpolated(const QVariant& from, const QVariant& to, qreal progress) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "interpolated"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QVariant&" , "const QVariant&" , "qreal"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QVariant returnValue; + void* args[4] = {NULL, (void*)&from, (void*)&to, (void*)&progress}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("interpolated", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPropertyAnimation::interpolated(from, to, progress); +} +void PythonQtShell_QPropertyAnimation::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPropertyAnimation::timerEvent(arg__1); +} +void PythonQtShell_QPropertyAnimation::updateCurrentTime(int arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentTime"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPropertyAnimation::updateCurrentTime(arg__1); +} +void PythonQtShell_QPropertyAnimation::updateCurrentValue(const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentValue"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPropertyAnimation::updateCurrentValue(value); +} +void PythonQtShell_QPropertyAnimation::updateDirection(QAbstractAnimation::Direction direction) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateDirection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractAnimation::Direction"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&direction}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPropertyAnimation::updateDirection(direction); +} +void PythonQtShell_QPropertyAnimation::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateState"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractAnimation::State" , "QAbstractAnimation::State"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&newState, (void*)&oldState}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPropertyAnimation::updateState(newState, oldState); +} +QPropertyAnimation* PythonQtWrapper_QPropertyAnimation::new_QPropertyAnimation(QObject* parent) +{ +return new PythonQtShell_QPropertyAnimation(parent); } + +QPropertyAnimation* PythonQtWrapper_QPropertyAnimation::new_QPropertyAnimation(QObject* target, const QByteArray& propertyName, QObject* parent) +{ +return new PythonQtShell_QPropertyAnimation(target, propertyName, parent); } + +bool PythonQtWrapper_QPropertyAnimation::event(QPropertyAnimation* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QPropertyAnimation*)theWrappedObject)->promoted_event(event)); +} + +QByteArray PythonQtWrapper_QPropertyAnimation::propertyName(QPropertyAnimation* theWrappedObject) const +{ + return ( theWrappedObject->propertyName()); +} + +void PythonQtWrapper_QPropertyAnimation::setPropertyName(QPropertyAnimation* theWrappedObject, const QByteArray& propertyName) +{ + ( theWrappedObject->setPropertyName(propertyName)); +} + +void PythonQtWrapper_QPropertyAnimation::setTargetObject(QPropertyAnimation* theWrappedObject, QObject* target) +{ + ( theWrappedObject->setTargetObject(target)); +} + +QObject* PythonQtWrapper_QPropertyAnimation::targetObject(QPropertyAnimation* theWrappedObject) const +{ + return ( theWrappedObject->targetObject()); +} + +void PythonQtWrapper_QPropertyAnimation::updateCurrentValue(QPropertyAnimation* theWrappedObject, const QVariant& value) +{ + ( ((PythonQtPublicPromoter_QPropertyAnimation*)theWrappedObject)->promoted_updateCurrentValue(value)); +} + +void PythonQtWrapper_QPropertyAnimation::updateState(QPropertyAnimation* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState) +{ + ( ((PythonQtPublicPromoter_QPropertyAnimation*)theWrappedObject)->promoted_updateState(newState, oldState)); +} + + + +QReadWriteLock* PythonQtWrapper_QReadWriteLock::new_QReadWriteLock(QReadWriteLock::RecursionMode recursionMode) +{ +return new QReadWriteLock(recursionMode); } + +void PythonQtWrapper_QReadWriteLock::lockForRead(QReadWriteLock* theWrappedObject) +{ + ( theWrappedObject->lockForRead()); +} + +void PythonQtWrapper_QReadWriteLock::lockForWrite(QReadWriteLock* theWrappedObject) +{ + ( theWrappedObject->lockForWrite()); +} + +bool PythonQtWrapper_QReadWriteLock::tryLockForRead(QReadWriteLock* theWrappedObject) +{ + return ( theWrappedObject->tryLockForRead()); +} + +bool PythonQtWrapper_QReadWriteLock::tryLockForRead(QReadWriteLock* theWrappedObject, int timeout) +{ + return ( theWrappedObject->tryLockForRead(timeout)); +} + +bool PythonQtWrapper_QReadWriteLock::tryLockForWrite(QReadWriteLock* theWrappedObject) +{ + return ( theWrappedObject->tryLockForWrite()); +} + +bool PythonQtWrapper_QReadWriteLock::tryLockForWrite(QReadWriteLock* theWrappedObject, int timeout) +{ + return ( theWrappedObject->tryLockForWrite(timeout)); +} + +void PythonQtWrapper_QReadWriteLock::unlock(QReadWriteLock* theWrappedObject) +{ + ( theWrappedObject->unlock()); +} + + + +PythonQtShell_QRunnable::~PythonQtShell_QRunnable() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QRunnable::run() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "run"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +QRunnable* PythonQtWrapper_QRunnable::new_QRunnable() +{ +return new PythonQtShell_QRunnable(); } + +bool PythonQtWrapper_QRunnable::autoDelete(QRunnable* theWrappedObject) const +{ + return ( theWrappedObject->autoDelete()); +} + +void PythonQtWrapper_QRunnable::setAutoDelete(QRunnable* theWrappedObject, bool _autoDelete) +{ + ( theWrappedObject->setAutoDelete(_autoDelete)); +} + + + +QSemaphore* PythonQtWrapper_QSemaphore::new_QSemaphore(int n) +{ +return new QSemaphore(n); } + +void PythonQtWrapper_QSemaphore::acquire(QSemaphore* theWrappedObject, int n) +{ + ( theWrappedObject->acquire(n)); +} + +int PythonQtWrapper_QSemaphore::available(QSemaphore* theWrappedObject) const +{ + return ( theWrappedObject->available()); +} + +void PythonQtWrapper_QSemaphore::release(QSemaphore* theWrappedObject, int n) +{ + ( theWrappedObject->release(n)); +} + +bool PythonQtWrapper_QSemaphore::tryAcquire(QSemaphore* theWrappedObject, int n) +{ + return ( theWrappedObject->tryAcquire(n)); +} + +bool PythonQtWrapper_QSemaphore::tryAcquire(QSemaphore* theWrappedObject, int n, int timeout) +{ + return ( theWrappedObject->tryAcquire(n, timeout)); +} + + + +PythonQtShell_QSequentialAnimationGroup::~PythonQtShell_QSequentialAnimationGroup() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QSequentialAnimationGroup::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSequentialAnimationGroup::childEvent(arg__1); +} +void PythonQtShell_QSequentialAnimationGroup::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSequentialAnimationGroup::customEvent(arg__1); +} +int PythonQtShell_QSequentialAnimationGroup::duration() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "duration"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("duration", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSequentialAnimationGroup::duration(); +} +bool PythonQtShell_QSequentialAnimationGroup::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSequentialAnimationGroup::event(event); +} +bool PythonQtShell_QSequentialAnimationGroup::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSequentialAnimationGroup::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QSequentialAnimationGroup::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSequentialAnimationGroup::timerEvent(arg__1); +} +void PythonQtShell_QSequentialAnimationGroup::updateCurrentTime(int arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentTime"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSequentialAnimationGroup::updateCurrentTime(arg__1); +} +void PythonQtShell_QSequentialAnimationGroup::updateDirection(QAbstractAnimation::Direction direction) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateDirection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractAnimation::Direction"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&direction}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSequentialAnimationGroup::updateDirection(direction); +} +void PythonQtShell_QSequentialAnimationGroup::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateState"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractAnimation::State" , "QAbstractAnimation::State"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&newState, (void*)&oldState}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSequentialAnimationGroup::updateState(newState, oldState); +} +QSequentialAnimationGroup* PythonQtWrapper_QSequentialAnimationGroup::new_QSequentialAnimationGroup(QObject* parent) +{ +return new PythonQtShell_QSequentialAnimationGroup(parent); } + +QPauseAnimation* PythonQtWrapper_QSequentialAnimationGroup::addPause(QSequentialAnimationGroup* theWrappedObject, int msecs) +{ + return ( theWrappedObject->addPause(msecs)); +} + +QAbstractAnimation* PythonQtWrapper_QSequentialAnimationGroup::currentAnimation(QSequentialAnimationGroup* theWrappedObject) const +{ + return ( theWrappedObject->currentAnimation()); +} + +int PythonQtWrapper_QSequentialAnimationGroup::duration(QSequentialAnimationGroup* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSequentialAnimationGroup*)theWrappedObject)->promoted_duration()); +} + +bool PythonQtWrapper_QSequentialAnimationGroup::event(QSequentialAnimationGroup* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QSequentialAnimationGroup*)theWrappedObject)->promoted_event(event)); +} + +QPauseAnimation* PythonQtWrapper_QSequentialAnimationGroup::insertPause(QSequentialAnimationGroup* theWrappedObject, int index, int msecs) +{ + return ( theWrappedObject->insertPause(index, msecs)); +} + +void PythonQtWrapper_QSequentialAnimationGroup::updateCurrentTime(QSequentialAnimationGroup* theWrappedObject, int arg__1) +{ + ( ((PythonQtPublicPromoter_QSequentialAnimationGroup*)theWrappedObject)->promoted_updateCurrentTime(arg__1)); +} + +void PythonQtWrapper_QSequentialAnimationGroup::updateDirection(QSequentialAnimationGroup* theWrappedObject, QAbstractAnimation::Direction direction) +{ + ( ((PythonQtPublicPromoter_QSequentialAnimationGroup*)theWrappedObject)->promoted_updateDirection(direction)); +} + +void PythonQtWrapper_QSequentialAnimationGroup::updateState(QSequentialAnimationGroup* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState) +{ + ( ((PythonQtPublicPromoter_QSequentialAnimationGroup*)theWrappedObject)->promoted_updateState(newState, oldState)); +} + + + +PythonQtShell_QSettings::~PythonQtShell_QSettings() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QSettings::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSettings::childEvent(arg__1); +} +void PythonQtShell_QSettings::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSettings::customEvent(arg__1); +} +bool PythonQtShell_QSettings::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSettings::event(event); +} +bool PythonQtShell_QSettings::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSettings::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QSettings::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSettings::timerEvent(arg__1); +} +QSettings* PythonQtWrapper_QSettings::new_QSettings(QObject* parent) +{ +return new PythonQtShell_QSettings(parent); } + +QSettings* PythonQtWrapper_QSettings::new_QSettings(QSettings::Format format, QSettings::Scope scope, const QString& organization, const QString& application, QObject* parent) +{ +return new PythonQtShell_QSettings(format, scope, organization, application, parent); } + +QSettings* PythonQtWrapper_QSettings::new_QSettings(QSettings::Scope scope, const QString& organization, const QString& application, QObject* parent) +{ +return new PythonQtShell_QSettings(scope, organization, application, parent); } + +QSettings* PythonQtWrapper_QSettings::new_QSettings(const QString& fileName, QSettings::Format format, QObject* parent) +{ +return new PythonQtShell_QSettings(fileName, format, parent); } + +QSettings* PythonQtWrapper_QSettings::new_QSettings(const QString& organization, const QString& application, QObject* parent) +{ +return new PythonQtShell_QSettings(organization, application, parent); } + +QStringList PythonQtWrapper_QSettings::allKeys(QSettings* theWrappedObject) const +{ + return ( theWrappedObject->allKeys()); +} + +QString PythonQtWrapper_QSettings::applicationName(QSettings* theWrappedObject) const +{ + return ( theWrappedObject->applicationName()); +} + +void PythonQtWrapper_QSettings::beginGroup(QSettings* theWrappedObject, const QString& prefix) +{ + ( theWrappedObject->beginGroup(prefix)); +} + +int PythonQtWrapper_QSettings::beginReadArray(QSettings* theWrappedObject, const QString& prefix) +{ + return ( theWrappedObject->beginReadArray(prefix)); +} + +void PythonQtWrapper_QSettings::beginWriteArray(QSettings* theWrappedObject, const QString& prefix, int size) +{ + ( theWrappedObject->beginWriteArray(prefix, size)); +} + +QStringList PythonQtWrapper_QSettings::childGroups(QSettings* theWrappedObject) const +{ + return ( theWrappedObject->childGroups()); +} + +QStringList PythonQtWrapper_QSettings::childKeys(QSettings* theWrappedObject) const +{ + return ( theWrappedObject->childKeys()); +} + +void PythonQtWrapper_QSettings::clear(QSettings* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +bool PythonQtWrapper_QSettings::contains(QSettings* theWrappedObject, const QString& key) const +{ + return ( theWrappedObject->contains(key)); +} + +QSettings::Format PythonQtWrapper_QSettings::static_QSettings_defaultFormat() +{ + return (QSettings::defaultFormat()); +} + +void PythonQtWrapper_QSettings::endArray(QSettings* theWrappedObject) +{ + ( theWrappedObject->endArray()); +} + +void PythonQtWrapper_QSettings::endGroup(QSettings* theWrappedObject) +{ + ( theWrappedObject->endGroup()); +} + +bool PythonQtWrapper_QSettings::event(QSettings* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QSettings*)theWrappedObject)->promoted_event(event)); +} + +bool PythonQtWrapper_QSettings::fallbacksEnabled(QSettings* theWrappedObject) const +{ + return ( theWrappedObject->fallbacksEnabled()); +} + +QString PythonQtWrapper_QSettings::fileName(QSettings* theWrappedObject) const +{ + return ( theWrappedObject->fileName()); +} + +QSettings::Format PythonQtWrapper_QSettings::format(QSettings* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +QString PythonQtWrapper_QSettings::group(QSettings* theWrappedObject) const +{ + return ( theWrappedObject->group()); +} + +QTextCodec* PythonQtWrapper_QSettings::iniCodec(QSettings* theWrappedObject) const +{ + return ( theWrappedObject->iniCodec()); +} + +bool PythonQtWrapper_QSettings::isWritable(QSettings* theWrappedObject) const +{ + return ( theWrappedObject->isWritable()); +} + +QString PythonQtWrapper_QSettings::organizationName(QSettings* theWrappedObject) const +{ + return ( theWrappedObject->organizationName()); +} + +void PythonQtWrapper_QSettings::remove(QSettings* theWrappedObject, const QString& key) +{ + ( theWrappedObject->remove(key)); +} + +QSettings::Scope PythonQtWrapper_QSettings::scope(QSettings* theWrappedObject) const +{ + return ( theWrappedObject->scope()); +} + +void PythonQtWrapper_QSettings::setArrayIndex(QSettings* theWrappedObject, int i) +{ + ( theWrappedObject->setArrayIndex(i)); +} + +void PythonQtWrapper_QSettings::static_QSettings_setDefaultFormat(QSettings::Format format) +{ + (QSettings::setDefaultFormat(format)); +} + +void PythonQtWrapper_QSettings::setFallbacksEnabled(QSettings* theWrappedObject, bool b) +{ + ( theWrappedObject->setFallbacksEnabled(b)); +} + +void PythonQtWrapper_QSettings::setIniCodec(QSettings* theWrappedObject, QTextCodec* codec) +{ + ( theWrappedObject->setIniCodec(codec)); +} + +void PythonQtWrapper_QSettings::setIniCodec(QSettings* theWrappedObject, const char* codecName) +{ + ( theWrappedObject->setIniCodec(codecName)); +} + +void PythonQtWrapper_QSettings::static_QSettings_setPath(QSettings::Format format, QSettings::Scope scope, const QString& path) +{ + (QSettings::setPath(format, scope, path)); +} + +void PythonQtWrapper_QSettings::setValue(QSettings* theWrappedObject, const QString& key, const QVariant& value) +{ + ( theWrappedObject->setValue(key, value)); +} + +QSettings::Status PythonQtWrapper_QSettings::status(QSettings* theWrappedObject) const +{ + return ( theWrappedObject->status()); +} + +void PythonQtWrapper_QSettings::sync(QSettings* theWrappedObject) +{ + ( theWrappedObject->sync()); +} + +QVariant PythonQtWrapper_QSettings::value(QSettings* theWrappedObject, const QString& key, const QVariant& defaultValue) const +{ + return ( theWrappedObject->value(key, defaultValue)); +} + + + +PythonQtShell_QSignalMapper::~PythonQtShell_QSignalMapper() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QSignalMapper::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSignalMapper::childEvent(arg__1); +} +void PythonQtShell_QSignalMapper::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSignalMapper::customEvent(arg__1); +} +bool PythonQtShell_QSignalMapper::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSignalMapper::event(arg__1); +} +bool PythonQtShell_QSignalMapper::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSignalMapper::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QSignalMapper::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSignalMapper::timerEvent(arg__1); +} +QSignalMapper* PythonQtWrapper_QSignalMapper::new_QSignalMapper(QObject* parent) +{ +return new PythonQtShell_QSignalMapper(parent); } + +QObject* PythonQtWrapper_QSignalMapper::mapping(QSignalMapper* theWrappedObject, QObject* object) const +{ + return ( theWrappedObject->mapping(object)); +} + +QObject* PythonQtWrapper_QSignalMapper::mapping(QSignalMapper* theWrappedObject, const QString& text) const +{ + return ( theWrappedObject->mapping(text)); +} + +QObject* PythonQtWrapper_QSignalMapper::mapping(QSignalMapper* theWrappedObject, int id) const +{ + return ( theWrappedObject->mapping(id)); +} + +void PythonQtWrapper_QSignalMapper::removeMappings(QSignalMapper* theWrappedObject, QObject* sender) +{ + ( theWrappedObject->removeMappings(sender)); +} + +void PythonQtWrapper_QSignalMapper::setMapping(QSignalMapper* theWrappedObject, QObject* sender, QObject* object) +{ + ( theWrappedObject->setMapping(sender, object)); +} + +void PythonQtWrapper_QSignalMapper::setMapping(QSignalMapper* theWrappedObject, QObject* sender, const QString& text) +{ + ( theWrappedObject->setMapping(sender, text)); +} + +void PythonQtWrapper_QSignalMapper::setMapping(QSignalMapper* theWrappedObject, QObject* sender, int id) +{ + ( theWrappedObject->setMapping(sender, id)); +} + + + +PythonQtShell_QSignalTransition::~PythonQtShell_QSignalTransition() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QSignalTransition::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSignalTransition::childEvent(arg__1); +} +void PythonQtShell_QSignalTransition::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSignalTransition::customEvent(arg__1); +} +bool PythonQtShell_QSignalTransition::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSignalTransition::event(e); +} +bool PythonQtShell_QSignalTransition::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSignalTransition::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QSignalTransition::eventTest(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventTest"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventTest", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSignalTransition::eventTest(event); +} +void PythonQtShell_QSignalTransition::onTransition(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onTransition"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSignalTransition::onTransition(event); +} +void PythonQtShell_QSignalTransition::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSignalTransition::timerEvent(arg__1); +} +QSignalTransition* PythonQtWrapper_QSignalTransition::new_QSignalTransition(QState* sourceState) +{ +return new PythonQtShell_QSignalTransition(sourceState); } + +QSignalTransition* PythonQtWrapper_QSignalTransition::new_QSignalTransition(const QObject* sender, const char* signal, QState* sourceState) +{ +return new PythonQtShell_QSignalTransition(sender, signal, sourceState); } + +bool PythonQtWrapper_QSignalTransition::event(QSignalTransition* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QSignalTransition*)theWrappedObject)->promoted_event(e)); +} + +bool PythonQtWrapper_QSignalTransition::eventTest(QSignalTransition* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QSignalTransition*)theWrappedObject)->promoted_eventTest(event)); +} + +void PythonQtWrapper_QSignalTransition::onTransition(QSignalTransition* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QSignalTransition*)theWrappedObject)->promoted_onTransition(event)); +} + +QObject* PythonQtWrapper_QSignalTransition::senderObject(QSignalTransition* theWrappedObject) const +{ + return ( theWrappedObject->senderObject()); +} + +void PythonQtWrapper_QSignalTransition::setSenderObject(QSignalTransition* theWrappedObject, const QObject* sender) +{ + ( theWrappedObject->setSenderObject(sender)); +} + +void PythonQtWrapper_QSignalTransition::setSignal(QSignalTransition* theWrappedObject, const QByteArray& signal) +{ + ( theWrappedObject->setSignal(signal)); +} + +QByteArray PythonQtWrapper_QSignalTransition::signal(QSignalTransition* theWrappedObject) const +{ + return ( theWrappedObject->signal()); +} + + + +bool PythonQtWrapper_QSocketNotifier::event(QSocketNotifier* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QSocketNotifier*)theWrappedObject)->promoted_event(arg__1)); +} + +bool PythonQtWrapper_QSocketNotifier::isEnabled(QSocketNotifier* theWrappedObject) const +{ + return ( theWrappedObject->isEnabled()); +} + +QSocketNotifier::Type PythonQtWrapper_QSocketNotifier::type(QSocketNotifier* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + + + +PythonQtShell_QState::~PythonQtShell_QState() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QState::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QState::childEvent(arg__1); +} +void PythonQtShell_QState::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QState::customEvent(arg__1); +} +bool PythonQtShell_QState::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QState::event(e); +} +bool PythonQtShell_QState::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QState::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QState::onEntry(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onEntry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QState::onEntry(event); +} +void PythonQtShell_QState::onExit(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onExit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QState::onExit(event); +} +void PythonQtShell_QState::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QState::timerEvent(arg__1); +} +QState* PythonQtWrapper_QState::new_QState(QState* parent) +{ +return new PythonQtShell_QState(parent); } + +QState* PythonQtWrapper_QState::new_QState(QState::ChildMode childMode, QState* parent) +{ +return new PythonQtShell_QState(childMode, parent); } + +QAbstractTransition* PythonQtWrapper_QState::addTransition(QState* theWrappedObject, QAbstractState* target) +{ + return ( theWrappedObject->addTransition(target)); +} + +void PythonQtWrapper_QState::addTransition(QState* theWrappedObject, QAbstractTransition* transition) +{ + ( theWrappedObject->addTransition(transition)); +} + +QSignalTransition* PythonQtWrapper_QState::addTransition(QState* theWrappedObject, const QObject* sender, const char* signal, QAbstractState* target) +{ + return ( theWrappedObject->addTransition(sender, signal, target)); +} + +void PythonQtWrapper_QState::assignProperty(QState* theWrappedObject, QObject* object, const char* name, const QVariant& value) +{ + ( theWrappedObject->assignProperty(object, name, value)); +} + +QState::ChildMode PythonQtWrapper_QState::childMode(QState* theWrappedObject) const +{ + return ( theWrappedObject->childMode()); +} + +QAbstractState* PythonQtWrapper_QState::errorState(QState* theWrappedObject) const +{ + return ( theWrappedObject->errorState()); +} + +bool PythonQtWrapper_QState::event(QState* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QState*)theWrappedObject)->promoted_event(e)); +} + +QAbstractState* PythonQtWrapper_QState::initialState(QState* theWrappedObject) const +{ + return ( theWrappedObject->initialState()); +} + +void PythonQtWrapper_QState::onEntry(QState* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QState*)theWrappedObject)->promoted_onEntry(event)); +} + +void PythonQtWrapper_QState::onExit(QState* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QState*)theWrappedObject)->promoted_onExit(event)); +} + +void PythonQtWrapper_QState::removeTransition(QState* theWrappedObject, QAbstractTransition* transition) +{ + ( theWrappedObject->removeTransition(transition)); +} + +void PythonQtWrapper_QState::setChildMode(QState* theWrappedObject, QState::ChildMode mode) +{ + ( theWrappedObject->setChildMode(mode)); +} + +void PythonQtWrapper_QState::setErrorState(QState* theWrappedObject, QAbstractState* state) +{ + ( theWrappedObject->setErrorState(state)); +} + +void PythonQtWrapper_QState::setInitialState(QState* theWrappedObject, QAbstractState* state) +{ + ( theWrappedObject->setInitialState(state)); +} + +QList PythonQtWrapper_QState::transitions(QState* theWrappedObject) const +{ + return ( theWrappedObject->transitions()); +} + + + +PythonQtShell_QStateMachine::~PythonQtShell_QStateMachine() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QStateMachine::beginMicrostep(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "beginMicrostep"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStateMachine::beginMicrostep(event); +} +void PythonQtShell_QStateMachine::beginSelectTransitions(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "beginSelectTransitions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStateMachine::beginSelectTransitions(event); +} +void PythonQtShell_QStateMachine::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStateMachine::childEvent(arg__1); +} +void PythonQtShell_QStateMachine::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStateMachine::customEvent(arg__1); +} +void PythonQtShell_QStateMachine::endMicrostep(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endMicrostep"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStateMachine::endMicrostep(event); +} +void PythonQtShell_QStateMachine::endSelectTransitions(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endSelectTransitions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStateMachine::endSelectTransitions(event); +} +bool PythonQtShell_QStateMachine::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStateMachine::event(e); +} +bool PythonQtShell_QStateMachine::eventFilter(QObject* watched, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&watched, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStateMachine::eventFilter(watched, event); +} +void PythonQtShell_QStateMachine::onEntry(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onEntry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStateMachine::onEntry(event); +} +void PythonQtShell_QStateMachine::onExit(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onExit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStateMachine::onExit(event); +} +void PythonQtShell_QStateMachine::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStateMachine::timerEvent(arg__1); +} +QStateMachine* PythonQtWrapper_QStateMachine::new_QStateMachine(QObject* parent) +{ +return new PythonQtShell_QStateMachine(parent); } + +QStateMachine* PythonQtWrapper_QStateMachine::new_QStateMachine(QState::ChildMode childMode, QObject* parent) +{ +return new PythonQtShell_QStateMachine(childMode, parent); } + +void PythonQtWrapper_QStateMachine::addDefaultAnimation(QStateMachine* theWrappedObject, QAbstractAnimation* animation) +{ + ( theWrappedObject->addDefaultAnimation(animation)); +} + +void PythonQtWrapper_QStateMachine::addState(QStateMachine* theWrappedObject, QAbstractState* state) +{ + ( theWrappedObject->addState(state)); +} + +void PythonQtWrapper_QStateMachine::beginMicrostep(QStateMachine* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QStateMachine*)theWrappedObject)->promoted_beginMicrostep(event)); +} + +void PythonQtWrapper_QStateMachine::beginSelectTransitions(QStateMachine* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QStateMachine*)theWrappedObject)->promoted_beginSelectTransitions(event)); +} + +bool PythonQtWrapper_QStateMachine::cancelDelayedEvent(QStateMachine* theWrappedObject, int id) +{ + return ( theWrappedObject->cancelDelayedEvent(id)); +} + +void PythonQtWrapper_QStateMachine::clearError(QStateMachine* theWrappedObject) +{ + ( theWrappedObject->clearError()); +} + +QSet PythonQtWrapper_QStateMachine::configuration(QStateMachine* theWrappedObject) const +{ + return ( theWrappedObject->configuration()); +} + +QList PythonQtWrapper_QStateMachine::defaultAnimations(QStateMachine* theWrappedObject) const +{ + return ( theWrappedObject->defaultAnimations()); +} + +void PythonQtWrapper_QStateMachine::endMicrostep(QStateMachine* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QStateMachine*)theWrappedObject)->promoted_endMicrostep(event)); +} + +void PythonQtWrapper_QStateMachine::endSelectTransitions(QStateMachine* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QStateMachine*)theWrappedObject)->promoted_endSelectTransitions(event)); +} + +QStateMachine::Error PythonQtWrapper_QStateMachine::error(QStateMachine* theWrappedObject) const +{ + return ( theWrappedObject->error()); +} + +QString PythonQtWrapper_QStateMachine::errorString(QStateMachine* theWrappedObject) const +{ + return ( theWrappedObject->errorString()); +} + +bool PythonQtWrapper_QStateMachine::event(QStateMachine* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QStateMachine*)theWrappedObject)->promoted_event(e)); +} + +bool PythonQtWrapper_QStateMachine::eventFilter(QStateMachine* theWrappedObject, QObject* watched, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QStateMachine*)theWrappedObject)->promoted_eventFilter(watched, event)); +} + +bool PythonQtWrapper_QStateMachine::isAnimated(QStateMachine* theWrappedObject) const +{ + return ( theWrappedObject->isAnimated()); +} + +bool PythonQtWrapper_QStateMachine::isRunning(QStateMachine* theWrappedObject) const +{ + return ( theWrappedObject->isRunning()); +} + +void PythonQtWrapper_QStateMachine::onEntry(QStateMachine* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QStateMachine*)theWrappedObject)->promoted_onEntry(event)); +} + +void PythonQtWrapper_QStateMachine::onExit(QStateMachine* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QStateMachine*)theWrappedObject)->promoted_onExit(event)); +} + +int PythonQtWrapper_QStateMachine::postDelayedEvent(QStateMachine* theWrappedObject, QEvent* event, int delay) +{ + return ( theWrappedObject->postDelayedEvent(event, delay)); +} + +void PythonQtWrapper_QStateMachine::postEvent(QStateMachine* theWrappedObject, QEvent* event, QStateMachine::EventPriority priority) +{ + ( theWrappedObject->postEvent(event, priority)); +} + +void PythonQtWrapper_QStateMachine::removeDefaultAnimation(QStateMachine* theWrappedObject, QAbstractAnimation* animation) +{ + ( theWrappedObject->removeDefaultAnimation(animation)); +} + +void PythonQtWrapper_QStateMachine::removeState(QStateMachine* theWrappedObject, QAbstractState* state) +{ + ( theWrappedObject->removeState(state)); +} + +void PythonQtWrapper_QStateMachine::setAnimated(QStateMachine* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setAnimated(enabled)); +} + + + +QStateMachine::SignalEvent* PythonQtWrapper_QStateMachine_SignalEvent::new_QStateMachine_SignalEvent(QObject* sender, int signalIndex, const QList& arguments) +{ +return new QStateMachine::SignalEvent(sender, signalIndex, arguments); } + +QList PythonQtWrapper_QStateMachine_SignalEvent::arguments(QStateMachine::SignalEvent* theWrappedObject) const +{ + return ( theWrappedObject->arguments()); +} + +QObject* PythonQtWrapper_QStateMachine_SignalEvent::sender(QStateMachine::SignalEvent* theWrappedObject) const +{ + return ( theWrappedObject->sender()); +} + +int PythonQtWrapper_QStateMachine_SignalEvent::signalIndex(QStateMachine::SignalEvent* theWrappedObject) const +{ + return ( theWrappedObject->signalIndex()); +} + + + +QStateMachine::WrappedEvent* PythonQtWrapper_QStateMachine_WrappedEvent::new_QStateMachine_WrappedEvent(QObject* object, QEvent* event) +{ +return new QStateMachine::WrappedEvent(object, event); } + +QEvent* PythonQtWrapper_QStateMachine_WrappedEvent::event(QStateMachine::WrappedEvent* theWrappedObject) const +{ + return ( theWrappedObject->event()); +} + +QObject* PythonQtWrapper_QStateMachine_WrappedEvent::object(QStateMachine::WrappedEvent* theWrappedObject) const +{ + return ( theWrappedObject->object()); +} + + + +QStringMatcher* PythonQtWrapper_QStringMatcher::new_QStringMatcher() +{ +return new QStringMatcher(); } + +QStringMatcher* PythonQtWrapper_QStringMatcher::new_QStringMatcher(const QString& pattern, Qt::CaseSensitivity cs) +{ +return new QStringMatcher(pattern, cs); } + +QStringMatcher* PythonQtWrapper_QStringMatcher::new_QStringMatcher(const QStringMatcher& other) +{ +return new QStringMatcher(other); } + +Qt::CaseSensitivity PythonQtWrapper_QStringMatcher::caseSensitivity(QStringMatcher* theWrappedObject) const +{ + return ( theWrappedObject->caseSensitivity()); +} + +int PythonQtWrapper_QStringMatcher::indexIn(QStringMatcher* theWrappedObject, const QString& str, int from) const +{ + return ( theWrappedObject->indexIn(str, from)); +} + +QString PythonQtWrapper_QStringMatcher::pattern(QStringMatcher* theWrappedObject) const +{ + return ( theWrappedObject->pattern()); +} + +void PythonQtWrapper_QStringMatcher::setCaseSensitivity(QStringMatcher* theWrappedObject, Qt::CaseSensitivity cs) +{ + ( theWrappedObject->setCaseSensitivity(cs)); +} + +void PythonQtWrapper_QStringMatcher::setPattern(QStringMatcher* theWrappedObject, const QString& pattern) +{ + ( theWrappedObject->setPattern(pattern)); +} + + + +QSystemSemaphore* PythonQtWrapper_QSystemSemaphore::new_QSystemSemaphore(const QString& key, int initialValue, QSystemSemaphore::AccessMode mode) +{ +return new QSystemSemaphore(key, initialValue, mode); } + +bool PythonQtWrapper_QSystemSemaphore::acquire(QSystemSemaphore* theWrappedObject) +{ + return ( theWrappedObject->acquire()); +} + +QSystemSemaphore::SystemSemaphoreError PythonQtWrapper_QSystemSemaphore::error(QSystemSemaphore* theWrappedObject) const +{ + return ( theWrappedObject->error()); +} + +QString PythonQtWrapper_QSystemSemaphore::errorString(QSystemSemaphore* theWrappedObject) const +{ + return ( theWrappedObject->errorString()); +} + +QString PythonQtWrapper_QSystemSemaphore::key(QSystemSemaphore* theWrappedObject) const +{ + return ( theWrappedObject->key()); +} + +bool PythonQtWrapper_QSystemSemaphore::release(QSystemSemaphore* theWrappedObject, int n) +{ + return ( theWrappedObject->release(n)); +} + +void PythonQtWrapper_QSystemSemaphore::setKey(QSystemSemaphore* theWrappedObject, const QString& key, int initialValue, QSystemSemaphore::AccessMode mode) +{ + ( theWrappedObject->setKey(key, initialValue, mode)); +} + + + +QTemporaryFile* PythonQtWrapper_QTemporaryFile::new_QTemporaryFile() +{ +return new QTemporaryFile(); } + +QTemporaryFile* PythonQtWrapper_QTemporaryFile::new_QTemporaryFile(QObject* parent) +{ +return new QTemporaryFile(parent); } + +QTemporaryFile* PythonQtWrapper_QTemporaryFile::new_QTemporaryFile(const QString& templateName) +{ +return new QTemporaryFile(templateName); } + +QTemporaryFile* PythonQtWrapper_QTemporaryFile::new_QTemporaryFile(const QString& templateName, QObject* parent) +{ +return new QTemporaryFile(templateName, parent); } + +bool PythonQtWrapper_QTemporaryFile::autoRemove(QTemporaryFile* theWrappedObject) const +{ + return ( theWrappedObject->autoRemove()); +} + +QTemporaryFile* PythonQtWrapper_QTemporaryFile::static_QTemporaryFile_createLocalFile(QFile& file) +{ + return (QTemporaryFile::createLocalFile(file)); +} + +QTemporaryFile* PythonQtWrapper_QTemporaryFile::static_QTemporaryFile_createLocalFile(const QString& fileName) +{ + return (QTemporaryFile::createLocalFile(fileName)); +} + +QTemporaryFile* PythonQtWrapper_QTemporaryFile::static_QTemporaryFile_createNativeFile(QFile& file) +{ + return (QTemporaryFile::createNativeFile(file)); +} + +QTemporaryFile* PythonQtWrapper_QTemporaryFile::static_QTemporaryFile_createNativeFile(const QString& fileName) +{ + return (QTemporaryFile::createNativeFile(fileName)); +} + +QString PythonQtWrapper_QTemporaryFile::fileName(QTemporaryFile* theWrappedObject) const +{ + return ( theWrappedObject->fileName()); +} + +QString PythonQtWrapper_QTemporaryFile::fileTemplate(QTemporaryFile* theWrappedObject) const +{ + return ( theWrappedObject->fileTemplate()); +} + +bool PythonQtWrapper_QTemporaryFile::open(QTemporaryFile* theWrappedObject) +{ + return ( theWrappedObject->open()); +} + +void PythonQtWrapper_QTemporaryFile::setAutoRemove(QTemporaryFile* theWrappedObject, bool b) +{ + ( theWrappedObject->setAutoRemove(b)); +} + +void PythonQtWrapper_QTemporaryFile::setFileTemplate(QTemporaryFile* theWrappedObject, const QString& name) +{ + ( theWrappedObject->setFileTemplate(name)); +} + + + +QTextBoundaryFinder* PythonQtWrapper_QTextBoundaryFinder::new_QTextBoundaryFinder() +{ +return new QTextBoundaryFinder(); } + +QTextBoundaryFinder* PythonQtWrapper_QTextBoundaryFinder::new_QTextBoundaryFinder(QTextBoundaryFinder::BoundaryType type, const QString& string) +{ +return new QTextBoundaryFinder(type, string); } + +QTextBoundaryFinder* PythonQtWrapper_QTextBoundaryFinder::new_QTextBoundaryFinder(const QTextBoundaryFinder& other) +{ +return new QTextBoundaryFinder(other); } + +QTextBoundaryFinder::BoundaryReasons PythonQtWrapper_QTextBoundaryFinder::boundaryReasons(QTextBoundaryFinder* theWrappedObject) const +{ + return ( theWrappedObject->boundaryReasons()); +} + +bool PythonQtWrapper_QTextBoundaryFinder::isAtBoundary(QTextBoundaryFinder* theWrappedObject) const +{ + return ( theWrappedObject->isAtBoundary()); +} + +bool PythonQtWrapper_QTextBoundaryFinder::isValid(QTextBoundaryFinder* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +int PythonQtWrapper_QTextBoundaryFinder::position(QTextBoundaryFinder* theWrappedObject) const +{ + return ( theWrappedObject->position()); +} + +void PythonQtWrapper_QTextBoundaryFinder::setPosition(QTextBoundaryFinder* theWrappedObject, int position) +{ + ( theWrappedObject->setPosition(position)); +} + +QString PythonQtWrapper_QTextBoundaryFinder::string(QTextBoundaryFinder* theWrappedObject) const +{ + return ( theWrappedObject->string()); +} + +void PythonQtWrapper_QTextBoundaryFinder::toEnd(QTextBoundaryFinder* theWrappedObject) +{ + ( theWrappedObject->toEnd()); +} + +int PythonQtWrapper_QTextBoundaryFinder::toNextBoundary(QTextBoundaryFinder* theWrappedObject) +{ + return ( theWrappedObject->toNextBoundary()); +} + +int PythonQtWrapper_QTextBoundaryFinder::toPreviousBoundary(QTextBoundaryFinder* theWrappedObject) +{ + return ( theWrappedObject->toPreviousBoundary()); +} + +void PythonQtWrapper_QTextBoundaryFinder::toStart(QTextBoundaryFinder* theWrappedObject) +{ + ( theWrappedObject->toStart()); +} + +QTextBoundaryFinder::BoundaryType PythonQtWrapper_QTextBoundaryFinder::type(QTextBoundaryFinder* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + + + +PythonQtShell_QTextCodec::~PythonQtShell_QTextCodec() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QList PythonQtShell_QTextCodec::aliases() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "aliases"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("aliases", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextCodec::aliases(); +} +QByteArray PythonQtShell_QTextCodec::convertFromUnicode(const QChar* in, int length, QTextCodec::ConverterState* state) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "convertFromUnicode"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QByteArray" , "const QChar*" , "int" , "QTextCodec::ConverterState*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QByteArray returnValue; + void* args[4] = {NULL, (void*)&in, (void*)&length, (void*)&state}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("convertFromUnicode", methodInfo, result); + } else { + returnValue = *((QByteArray*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QByteArray(); +} +QString PythonQtShell_QTextCodec::convertToUnicode(const char* in, int length, QTextCodec::ConverterState* state) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "convertToUnicode"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "const char*" , "int" , "QTextCodec::ConverterState*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QString returnValue; + void* args[4] = {NULL, (void*)&in, (void*)&length, (void*)&state}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("convertToUnicode", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QString(); +} +int PythonQtShell_QTextCodec::mibEnum() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mibEnum"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mibEnum", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +QByteArray PythonQtShell_QTextCodec::name() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "name"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QByteArray"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QByteArray returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("name", methodInfo, result); + } else { + returnValue = *((QByteArray*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QByteArray(); +} +QList PythonQtWrapper_QTextCodec::aliases(QTextCodec* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTextCodec*)theWrappedObject)->promoted_aliases()); +} + +QList PythonQtWrapper_QTextCodec::static_QTextCodec_availableCodecs() +{ + return (QTextCodec::availableCodecs()); +} + +QList PythonQtWrapper_QTextCodec::static_QTextCodec_availableMibs() +{ + return (QTextCodec::availableMibs()); +} + +bool PythonQtWrapper_QTextCodec::canEncode(QTextCodec* theWrappedObject, QChar arg__1) const +{ + return ( theWrappedObject->canEncode(arg__1)); +} + +bool PythonQtWrapper_QTextCodec::canEncode(QTextCodec* theWrappedObject, const QString& arg__1) const +{ + return ( theWrappedObject->canEncode(arg__1)); +} + +QTextCodec* PythonQtWrapper_QTextCodec::static_QTextCodec_codecForHtml(const QByteArray& ba) +{ + return (QTextCodec::codecForHtml(ba)); +} + +QTextCodec* PythonQtWrapper_QTextCodec::static_QTextCodec_codecForHtml(const QByteArray& ba, QTextCodec* defaultCodec) +{ + return (QTextCodec::codecForHtml(ba, defaultCodec)); +} + +QTextCodec* PythonQtWrapper_QTextCodec::static_QTextCodec_codecForLocale() +{ + return (QTextCodec::codecForLocale()); +} + +QTextCodec* PythonQtWrapper_QTextCodec::static_QTextCodec_codecForMib(int mib) +{ + return (QTextCodec::codecForMib(mib)); +} + +QTextCodec* PythonQtWrapper_QTextCodec::static_QTextCodec_codecForName(const QByteArray& name) +{ + return (QTextCodec::codecForName(name)); +} + +QTextCodec* PythonQtWrapper_QTextCodec::static_QTextCodec_codecForName(const char* name) +{ + return (QTextCodec::codecForName(name)); +} + +QTextCodec* PythonQtWrapper_QTextCodec::static_QTextCodec_codecForUtfText(const QByteArray& ba) +{ + return (QTextCodec::codecForUtfText(ba)); +} + +QTextCodec* PythonQtWrapper_QTextCodec::static_QTextCodec_codecForUtfText(const QByteArray& ba, QTextCodec* defaultCodec) +{ + return (QTextCodec::codecForUtfText(ba, defaultCodec)); +} + +QByteArray PythonQtWrapper_QTextCodec::fromUnicode(QTextCodec* theWrappedObject, const QString& uc) const +{ + return ( theWrappedObject->fromUnicode(uc)); +} + +QTextDecoder* PythonQtWrapper_QTextCodec::makeDecoder(QTextCodec* theWrappedObject, QTextCodec::ConversionFlags flags) const +{ + return ( theWrappedObject->makeDecoder(flags)); +} + +QTextEncoder* PythonQtWrapper_QTextCodec::makeEncoder(QTextCodec* theWrappedObject, QTextCodec::ConversionFlags flags) const +{ + return ( theWrappedObject->makeEncoder(flags)); +} + +void PythonQtWrapper_QTextCodec::static_QTextCodec_setCodecForLocale(QTextCodec* c) +{ + (QTextCodec::setCodecForLocale(c)); +} + +QString PythonQtWrapper_QTextCodec::toUnicode(QTextCodec* theWrappedObject, const QByteArray& arg__1) const +{ + return ( theWrappedObject->toUnicode(arg__1)); +} + + + +QTextDecoder* PythonQtWrapper_QTextDecoder::new_QTextDecoder(const QTextCodec* codec) +{ +return new QTextDecoder(codec); } + +QTextDecoder* PythonQtWrapper_QTextDecoder::new_QTextDecoder(const QTextCodec* codec, QTextCodec::ConversionFlags flags) +{ +return new QTextDecoder(codec, flags); } + +bool PythonQtWrapper_QTextDecoder::hasFailure(QTextDecoder* theWrappedObject) const +{ + return ( theWrappedObject->hasFailure()); +} + +QString PythonQtWrapper_QTextDecoder::toUnicode(QTextDecoder* theWrappedObject, const QByteArray& ba) +{ + return ( theWrappedObject->toUnicode(ba)); +} + + + +QTextEncoder* PythonQtWrapper_QTextEncoder::new_QTextEncoder(const QTextCodec* codec) +{ +return new QTextEncoder(codec); } + +QTextEncoder* PythonQtWrapper_QTextEncoder::new_QTextEncoder(const QTextCodec* codec, QTextCodec::ConversionFlags flags) +{ +return new QTextEncoder(codec, flags); } + +QByteArray PythonQtWrapper_QTextEncoder::fromUnicode(QTextEncoder* theWrappedObject, const QString& str) +{ + return ( theWrappedObject->fromUnicode(str)); +} + +bool PythonQtWrapper_QTextEncoder::hasFailure(QTextEncoder* theWrappedObject) const +{ + return ( theWrappedObject->hasFailure()); +} + + + +PythonQtShell_QTextStream::~PythonQtShell_QTextStream() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QTextStream* PythonQtWrapper_QTextStream::new_QTextStream() +{ +return new PythonQtShell_QTextStream(); } + +QTextStream* PythonQtWrapper_QTextStream::new_QTextStream(QIODevice* device) +{ +return new PythonQtShell_QTextStream(device); } + +QTextStream* PythonQtWrapper_QTextStream::new_QTextStream(const QByteArray& array, QIODevice::OpenMode openMode) +{ +return new PythonQtShell_QTextStream(array, openMode); } + +bool PythonQtWrapper_QTextStream::atEnd(QTextStream* theWrappedObject) const +{ + return ( theWrappedObject->atEnd()); +} + +bool PythonQtWrapper_QTextStream::autoDetectUnicode(QTextStream* theWrappedObject) const +{ + return ( theWrappedObject->autoDetectUnicode()); +} + +QTextCodec* PythonQtWrapper_QTextStream::codec(QTextStream* theWrappedObject) const +{ + return ( theWrappedObject->codec()); +} + +QIODevice* PythonQtWrapper_QTextStream::device(QTextStream* theWrappedObject) const +{ + return ( theWrappedObject->device()); +} + +QTextStream::FieldAlignment PythonQtWrapper_QTextStream::fieldAlignment(QTextStream* theWrappedObject) const +{ + return ( theWrappedObject->fieldAlignment()); +} + +int PythonQtWrapper_QTextStream::fieldWidth(QTextStream* theWrappedObject) const +{ + return ( theWrappedObject->fieldWidth()); +} + +void PythonQtWrapper_QTextStream::flush(QTextStream* theWrappedObject) +{ + ( theWrappedObject->flush()); +} + +bool PythonQtWrapper_QTextStream::generateByteOrderMark(QTextStream* theWrappedObject) const +{ + return ( theWrappedObject->generateByteOrderMark()); +} + +int PythonQtWrapper_QTextStream::integerBase(QTextStream* theWrappedObject) const +{ + return ( theWrappedObject->integerBase()); +} + +QLocale PythonQtWrapper_QTextStream::locale(QTextStream* theWrappedObject) const +{ + return ( theWrappedObject->locale()); +} + +QTextStream::NumberFlags PythonQtWrapper_QTextStream::numberFlags(QTextStream* theWrappedObject) const +{ + return ( theWrappedObject->numberFlags()); +} + +QTextStream* PythonQtWrapper_QTextStream::writeByte(QTextStream* theWrappedObject, char ch) +{ + return &( (*theWrappedObject) <>ch); +} + +QTextStream* PythonQtWrapper_QTextStream::readDouble(QTextStream* theWrappedObject, double& f) +{ + return &( (*theWrappedObject) >>f); +} + +QTextStream* PythonQtWrapper_QTextStream::readFloat(QTextStream* theWrappedObject, float& f) +{ + return &( (*theWrappedObject) >>f); +} + +QTextStream* PythonQtWrapper_QTextStream::readLongLong(QTextStream* theWrappedObject, qlonglong& i) +{ + return &( (*theWrappedObject) >>i); +} + +QTextStream* PythonQtWrapper_QTextStream::readInt(QTextStream* theWrappedObject, signed int& i) +{ + return &( (*theWrappedObject) >>i); +} + +QTextStream* PythonQtWrapper_QTextStream::readShort(QTextStream* theWrappedObject, signed short& i) +{ + return &( (*theWrappedObject) >>i); +} + +QTextStream* PythonQtWrapper_QTextStream::readUInt(QTextStream* theWrappedObject, unsigned int& i) +{ + return &( (*theWrappedObject) >>i); +} + +QTextStream* PythonQtWrapper_QTextStream::readUShort(QTextStream* theWrappedObject, unsigned short& i) +{ + return &( (*theWrappedObject) >>i); +} + +QChar PythonQtWrapper_QTextStream::padChar(QTextStream* theWrappedObject) const +{ + return ( theWrappedObject->padChar()); +} + +qint64 PythonQtWrapper_QTextStream::pos(QTextStream* theWrappedObject) const +{ + return ( theWrappedObject->pos()); +} + +QString PythonQtWrapper_QTextStream::read(QTextStream* theWrappedObject, qint64 maxlen) +{ + return ( theWrappedObject->read(maxlen)); +} + +QString PythonQtWrapper_QTextStream::readAll(QTextStream* theWrappedObject) +{ + return ( theWrappedObject->readAll()); +} + +QString PythonQtWrapper_QTextStream::readLine(QTextStream* theWrappedObject, qint64 maxlen) +{ + return ( theWrappedObject->readLine(maxlen)); +} + +QTextStream::RealNumberNotation PythonQtWrapper_QTextStream::realNumberNotation(QTextStream* theWrappedObject) const +{ + return ( theWrappedObject->realNumberNotation()); +} + +int PythonQtWrapper_QTextStream::realNumberPrecision(QTextStream* theWrappedObject) const +{ + return ( theWrappedObject->realNumberPrecision()); +} + +void PythonQtWrapper_QTextStream::reset(QTextStream* theWrappedObject) +{ + ( theWrappedObject->reset()); +} + +void PythonQtWrapper_QTextStream::resetStatus(QTextStream* theWrappedObject) +{ + ( theWrappedObject->resetStatus()); +} + +bool PythonQtWrapper_QTextStream::seek(QTextStream* theWrappedObject, qint64 pos) +{ + return ( theWrappedObject->seek(pos)); +} + +void PythonQtWrapper_QTextStream::setAutoDetectUnicode(QTextStream* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setAutoDetectUnicode(enabled)); +} + +void PythonQtWrapper_QTextStream::setCodec(QTextStream* theWrappedObject, QTextCodec* codec) +{ + ( theWrappedObject->setCodec(codec)); +} + +void PythonQtWrapper_QTextStream::setCodec(QTextStream* theWrappedObject, const char* codecName) +{ + ( theWrappedObject->setCodec(codecName)); +} + +void PythonQtWrapper_QTextStream::setDevice(QTextStream* theWrappedObject, QIODevice* device) +{ + ( theWrappedObject->setDevice(device)); +} + +void PythonQtWrapper_QTextStream::setFieldAlignment(QTextStream* theWrappedObject, QTextStream::FieldAlignment alignment) +{ + ( theWrappedObject->setFieldAlignment(alignment)); +} + +void PythonQtWrapper_QTextStream::setFieldWidth(QTextStream* theWrappedObject, int width) +{ + ( theWrappedObject->setFieldWidth(width)); +} + +void PythonQtWrapper_QTextStream::setGenerateByteOrderMark(QTextStream* theWrappedObject, bool generate) +{ + ( theWrappedObject->setGenerateByteOrderMark(generate)); +} + +void PythonQtWrapper_QTextStream::setIntegerBase(QTextStream* theWrappedObject, int base) +{ + ( theWrappedObject->setIntegerBase(base)); +} + +void PythonQtWrapper_QTextStream::setLocale(QTextStream* theWrappedObject, const QLocale& locale) +{ + ( theWrappedObject->setLocale(locale)); +} + +void PythonQtWrapper_QTextStream::setNumberFlags(QTextStream* theWrappedObject, QTextStream::NumberFlags flags) +{ + ( theWrappedObject->setNumberFlags(flags)); +} + +void PythonQtWrapper_QTextStream::setPadChar(QTextStream* theWrappedObject, QChar ch) +{ + ( theWrappedObject->setPadChar(ch)); +} + +void PythonQtWrapper_QTextStream::setRealNumberNotation(QTextStream* theWrappedObject, QTextStream::RealNumberNotation notation) +{ + ( theWrappedObject->setRealNumberNotation(notation)); +} + +void PythonQtWrapper_QTextStream::setRealNumberPrecision(QTextStream* theWrappedObject, int precision) +{ + ( theWrappedObject->setRealNumberPrecision(precision)); +} + +void PythonQtWrapper_QTextStream::setStatus(QTextStream* theWrappedObject, QTextStream::Status status) +{ + ( theWrappedObject->setStatus(status)); +} + +void PythonQtWrapper_QTextStream::skipWhiteSpace(QTextStream* theWrappedObject) +{ + ( theWrappedObject->skipWhiteSpace()); +} + +QTextStream::Status PythonQtWrapper_QTextStream::status(QTextStream* theWrappedObject) const +{ + return ( theWrappedObject->status()); +} + + + +PythonQtShell_QThreadPool::~PythonQtShell_QThreadPool() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QThreadPool::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QThreadPool::childEvent(arg__1); +} +void PythonQtShell_QThreadPool::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QThreadPool::customEvent(arg__1); +} +bool PythonQtShell_QThreadPool::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QThreadPool::event(arg__1); +} +bool PythonQtShell_QThreadPool::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QThreadPool::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QThreadPool::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QThreadPool::timerEvent(arg__1); +} +QThreadPool* PythonQtWrapper_QThreadPool::new_QThreadPool(QObject* parent) +{ +return new PythonQtShell_QThreadPool(parent); } + +int PythonQtWrapper_QThreadPool::activeThreadCount(QThreadPool* theWrappedObject) const +{ + return ( theWrappedObject->activeThreadCount()); +} + +int PythonQtWrapper_QThreadPool::expiryTimeout(QThreadPool* theWrappedObject) const +{ + return ( theWrappedObject->expiryTimeout()); +} + +QThreadPool* PythonQtWrapper_QThreadPool::static_QThreadPool_globalInstance() +{ + return (QThreadPool::globalInstance()); +} + +int PythonQtWrapper_QThreadPool::maxThreadCount(QThreadPool* theWrappedObject) const +{ + return ( theWrappedObject->maxThreadCount()); +} + +void PythonQtWrapper_QThreadPool::releaseThread(QThreadPool* theWrappedObject) +{ + ( theWrappedObject->releaseThread()); +} + +void PythonQtWrapper_QThreadPool::reserveThread(QThreadPool* theWrappedObject) +{ + ( theWrappedObject->reserveThread()); +} + +void PythonQtWrapper_QThreadPool::setExpiryTimeout(QThreadPool* theWrappedObject, int expiryTimeout) +{ + ( theWrappedObject->setExpiryTimeout(expiryTimeout)); +} + +void PythonQtWrapper_QThreadPool::setMaxThreadCount(QThreadPool* theWrappedObject, int maxThreadCount) +{ + ( theWrappedObject->setMaxThreadCount(maxThreadCount)); +} + +void PythonQtWrapper_QThreadPool::start(QThreadPool* theWrappedObject, QRunnable* runnable, int priority) +{ + ( theWrappedObject->start(runnable, priority)); +} + +bool PythonQtWrapper_QThreadPool::tryStart(QThreadPool* theWrappedObject, QRunnable* runnable) +{ + return ( theWrappedObject->tryStart(runnable)); +} + +bool PythonQtWrapper_QThreadPool::waitForDone(QThreadPool* theWrappedObject, int msecs) +{ + return ( theWrappedObject->waitForDone(msecs)); +} + + + +PythonQtShell_QTimeLine::~PythonQtShell_QTimeLine() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTimeLine::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeLine::childEvent(arg__1); +} +void PythonQtShell_QTimeLine::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeLine::customEvent(arg__1); +} +bool PythonQtShell_QTimeLine::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeLine::event(arg__1); +} +bool PythonQtShell_QTimeLine::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeLine::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QTimeLine::timerEvent(QTimerEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeLine::timerEvent(event); +} +qreal PythonQtShell_QTimeLine::valueForTime(int msec) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "valueForTime"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qreal" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + qreal returnValue; + void* args[2] = {NULL, (void*)&msec}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("valueForTime", methodInfo, result); + } else { + returnValue = *((qreal*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeLine::valueForTime(msec); +} +QTimeLine* PythonQtWrapper_QTimeLine::new_QTimeLine(int duration, QObject* parent) +{ +return new PythonQtShell_QTimeLine(duration, parent); } + +int PythonQtWrapper_QTimeLine::currentFrame(QTimeLine* theWrappedObject) const +{ + return ( theWrappedObject->currentFrame()); +} + +int PythonQtWrapper_QTimeLine::currentTime(QTimeLine* theWrappedObject) const +{ + return ( theWrappedObject->currentTime()); +} + +qreal PythonQtWrapper_QTimeLine::currentValue(QTimeLine* theWrappedObject) const +{ + return ( theWrappedObject->currentValue()); +} + +QTimeLine::CurveShape PythonQtWrapper_QTimeLine::curveShape(QTimeLine* theWrappedObject) const +{ + return ( theWrappedObject->curveShape()); +} + +QTimeLine::Direction PythonQtWrapper_QTimeLine::direction(QTimeLine* theWrappedObject) const +{ + return ( theWrappedObject->direction()); +} + +int PythonQtWrapper_QTimeLine::duration(QTimeLine* theWrappedObject) const +{ + return ( theWrappedObject->duration()); +} + +QEasingCurve PythonQtWrapper_QTimeLine::easingCurve(QTimeLine* theWrappedObject) const +{ + return ( theWrappedObject->easingCurve()); +} + +int PythonQtWrapper_QTimeLine::endFrame(QTimeLine* theWrappedObject) const +{ + return ( theWrappedObject->endFrame()); +} + +int PythonQtWrapper_QTimeLine::frameForTime(QTimeLine* theWrappedObject, int msec) const +{ + return ( theWrappedObject->frameForTime(msec)); +} + +int PythonQtWrapper_QTimeLine::loopCount(QTimeLine* theWrappedObject) const +{ + return ( theWrappedObject->loopCount()); +} + +void PythonQtWrapper_QTimeLine::setCurveShape(QTimeLine* theWrappedObject, QTimeLine::CurveShape shape) +{ + ( theWrappedObject->setCurveShape(shape)); +} + +void PythonQtWrapper_QTimeLine::setDirection(QTimeLine* theWrappedObject, QTimeLine::Direction direction) +{ + ( theWrappedObject->setDirection(direction)); +} + +void PythonQtWrapper_QTimeLine::setDuration(QTimeLine* theWrappedObject, int duration) +{ + ( theWrappedObject->setDuration(duration)); +} + +void PythonQtWrapper_QTimeLine::setEasingCurve(QTimeLine* theWrappedObject, const QEasingCurve& curve) +{ + ( theWrappedObject->setEasingCurve(curve)); +} + +void PythonQtWrapper_QTimeLine::setEndFrame(QTimeLine* theWrappedObject, int frame) +{ + ( theWrappedObject->setEndFrame(frame)); +} + +void PythonQtWrapper_QTimeLine::setFrameRange(QTimeLine* theWrappedObject, int startFrame, int endFrame) +{ + ( theWrappedObject->setFrameRange(startFrame, endFrame)); +} + +void PythonQtWrapper_QTimeLine::setLoopCount(QTimeLine* theWrappedObject, int count) +{ + ( theWrappedObject->setLoopCount(count)); +} + +void PythonQtWrapper_QTimeLine::setStartFrame(QTimeLine* theWrappedObject, int frame) +{ + ( theWrappedObject->setStartFrame(frame)); +} + +void PythonQtWrapper_QTimeLine::setUpdateInterval(QTimeLine* theWrappedObject, int interval) +{ + ( theWrappedObject->setUpdateInterval(interval)); +} + +int PythonQtWrapper_QTimeLine::startFrame(QTimeLine* theWrappedObject) const +{ + return ( theWrappedObject->startFrame()); +} + +QTimeLine::State PythonQtWrapper_QTimeLine::state(QTimeLine* theWrappedObject) const +{ + return ( theWrappedObject->state()); +} + +void PythonQtWrapper_QTimeLine::timerEvent(QTimeLine* theWrappedObject, QTimerEvent* event) +{ + ( ((PythonQtPublicPromoter_QTimeLine*)theWrappedObject)->promoted_timerEvent(event)); +} + +int PythonQtWrapper_QTimeLine::updateInterval(QTimeLine* theWrappedObject) const +{ + return ( theWrappedObject->updateInterval()); +} + +qreal PythonQtWrapper_QTimeLine::valueForTime(QTimeLine* theWrappedObject, int msec) const +{ + return ( ((PythonQtPublicPromoter_QTimeLine*)theWrappedObject)->promoted_valueForTime(msec)); +} + + diff --git a/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core1.h b/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core1.h new file mode 100644 index 00000000..ca854939 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core1.h @@ -0,0 +1,1273 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +class PythonQtWrapper_QModelIndex : public QObject +{ Q_OBJECT +public: +public slots: +QModelIndex* new_QModelIndex(); +QModelIndex* new_QModelIndex(const QModelIndex& other) { +QModelIndex* a = new QModelIndex(); +*((QModelIndex*)a) = other; +return a; } +void delete_QModelIndex(QModelIndex* obj) { delete obj; } + QModelIndex child(QModelIndex* theWrappedObject, int row, int column) const; + int column(QModelIndex* theWrappedObject) const; + QVariant data(QModelIndex* theWrappedObject, int role = Qt::DisplayRole) const; + Qt::ItemFlags flags(QModelIndex* theWrappedObject) const; + quintptr internalId(QModelIndex* theWrappedObject) const; + void* internalPointer(QModelIndex* theWrappedObject) const; + bool isValid(QModelIndex* theWrappedObject) const; + const QAbstractItemModel* model(QModelIndex* theWrappedObject) const; + bool __ne__(QModelIndex* theWrappedObject, const QModelIndex& other) const; + bool __lt__(QModelIndex* theWrappedObject, const QModelIndex& other) const; + bool __eq__(QModelIndex* theWrappedObject, const QModelIndex& other) const; + QModelIndex parent(QModelIndex* theWrappedObject) const; + int row(QModelIndex* theWrappedObject) const; + QModelIndex sibling(QModelIndex* theWrappedObject, int row, int column) const; + QString py_toString(QModelIndex*); +}; + + + + + +class PythonQtWrapper_QMutex : public QObject +{ Q_OBJECT +public: +Q_ENUMS(RecursionMode ) +enum RecursionMode{ + NonRecursive = QMutex::NonRecursive, Recursive = QMutex::Recursive}; +public slots: +QMutex* new_QMutex(QMutex::RecursionMode mode = QMutex::NonRecursive); +void delete_QMutex(QMutex* obj) { delete obj; } + void lock(QMutex* theWrappedObject); + bool tryLock(QMutex* theWrappedObject, int timeout = 0); + void unlock(QMutex* theWrappedObject); +}; + + + + + +class PythonQtShell_QObject : public QObject +{ +public: + PythonQtShell_QObject(QObject* parent = 0):QObject(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QObject(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QObject : public QObject +{ public: +inline void promoted_childEvent(QChildEvent* arg__1) { QObject::childEvent(arg__1); } +inline void promoted_customEvent(QEvent* arg__1) { QObject::customEvent(arg__1); } +inline bool promoted_event(QEvent* arg__1) { return QObject::event(arg__1); } +inline bool promoted_eventFilter(QObject* arg__1, QEvent* arg__2) { return QObject::eventFilter(arg__1, arg__2); } +inline void promoted_timerEvent(QTimerEvent* arg__1) { QObject::timerEvent(arg__1); } +}; + +class PythonQtWrapper_QObject : public QObject +{ Q_OBJECT +public: +public slots: +QObject* new_QObject(QObject* parent = 0); +void delete_QObject(QObject* obj) { delete obj; } + bool blockSignals(QObject* theWrappedObject, bool b); + void childEvent(QObject* theWrappedObject, QChildEvent* arg__1); + const QList* children(QObject* theWrappedObject) const; + void customEvent(QObject* theWrappedObject, QEvent* arg__1); + void dumpObjectInfo(QObject* theWrappedObject); + void dumpObjectTree(QObject* theWrappedObject); + QList dynamicPropertyNames(QObject* theWrappedObject) const; + bool event(QObject* theWrappedObject, QEvent* arg__1); + bool eventFilter(QObject* theWrappedObject, QObject* arg__1, QEvent* arg__2); + bool inherits(QObject* theWrappedObject, const char* classname) const; + void installEventFilter(QObject* theWrappedObject, QObject* arg__1); + bool isWidgetType(QObject* theWrappedObject) const; + bool isWindowType(QObject* theWrappedObject) const; + void killTimer(QObject* theWrappedObject, int id); + QString objectName(QObject* theWrappedObject) const; + QObject* parent(QObject* theWrappedObject) const; + QVariant property(QObject* theWrappedObject, const char* name) const; + void removeEventFilter(QObject* theWrappedObject, QObject* arg__1); + void setObjectName(QObject* theWrappedObject, const QString& name); + void setParent(QObject* theWrappedObject, QObject* arg__1); + bool setProperty(QObject* theWrappedObject, const char* name, const QVariant& value); + bool signalsBlocked(QObject* theWrappedObject) const; + int startTimer(QObject* theWrappedObject, int interval, Qt::TimerType timerType = Qt::CoarseTimer); + void timerEvent(QObject* theWrappedObject, QTimerEvent* arg__1); +}; + + + + + +class PythonQtShell_QParallelAnimationGroup : public QParallelAnimationGroup +{ +public: + PythonQtShell_QParallelAnimationGroup(QObject* parent = 0):QParallelAnimationGroup(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QParallelAnimationGroup(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int duration() const; +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void updateCurrentTime(int currentTime); +virtual void updateDirection(QAbstractAnimation::Direction direction); +virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QParallelAnimationGroup : public QParallelAnimationGroup +{ public: +inline int promoted_duration() const { return QParallelAnimationGroup::duration(); } +inline bool promoted_event(QEvent* event) { return QParallelAnimationGroup::event(event); } +inline void promoted_updateCurrentTime(int currentTime) { QParallelAnimationGroup::updateCurrentTime(currentTime); } +inline void promoted_updateDirection(QAbstractAnimation::Direction direction) { QParallelAnimationGroup::updateDirection(direction); } +inline void promoted_updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { QParallelAnimationGroup::updateState(newState, oldState); } +}; + +class PythonQtWrapper_QParallelAnimationGroup : public QObject +{ Q_OBJECT +public: +public slots: +QParallelAnimationGroup* new_QParallelAnimationGroup(QObject* parent = 0); +void delete_QParallelAnimationGroup(QParallelAnimationGroup* obj) { delete obj; } + int duration(QParallelAnimationGroup* theWrappedObject) const; + bool event(QParallelAnimationGroup* theWrappedObject, QEvent* event); + void updateCurrentTime(QParallelAnimationGroup* theWrappedObject, int currentTime); + void updateDirection(QParallelAnimationGroup* theWrappedObject, QAbstractAnimation::Direction direction); + void updateState(QParallelAnimationGroup* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState); +}; + + + + + +class PythonQtShell_QPauseAnimation : public QPauseAnimation +{ +public: + PythonQtShell_QPauseAnimation(QObject* parent = 0):QPauseAnimation(parent),_wrapper(NULL) {}; + PythonQtShell_QPauseAnimation(int msecs, QObject* parent = 0):QPauseAnimation(msecs, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QPauseAnimation(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int duration() const; +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void updateCurrentTime(int arg__1); +virtual void updateDirection(QAbstractAnimation::Direction direction); +virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QPauseAnimation : public QPauseAnimation +{ public: +inline int promoted_duration() const { return QPauseAnimation::duration(); } +inline bool promoted_event(QEvent* e) { return QPauseAnimation::event(e); } +inline void promoted_updateCurrentTime(int arg__1) { QPauseAnimation::updateCurrentTime(arg__1); } +}; + +class PythonQtWrapper_QPauseAnimation : public QObject +{ Q_OBJECT +public: +public slots: +QPauseAnimation* new_QPauseAnimation(QObject* parent = 0); +QPauseAnimation* new_QPauseAnimation(int msecs, QObject* parent = 0); +void delete_QPauseAnimation(QPauseAnimation* obj) { delete obj; } + int duration(QPauseAnimation* theWrappedObject) const; + bool event(QPauseAnimation* theWrappedObject, QEvent* e); + void setDuration(QPauseAnimation* theWrappedObject, int msecs); + void updateCurrentTime(QPauseAnimation* theWrappedObject, int arg__1); +}; + + + + + +class PythonQtShell_QProcess : public QProcess +{ +public: + PythonQtShell_QProcess(QObject* parent = 0):QProcess(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QProcess(); + +virtual bool atEnd() const; +virtual qint64 bytesAvailable() const; +virtual qint64 bytesToWrite() const; +virtual bool canReadLine() const; +virtual void childEvent(QChildEvent* arg__1); +virtual void close(); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool isSequential() const; +virtual bool open(QIODevice::OpenMode mode); +virtual qint64 pos() const; +virtual qint64 readData(char* data, qint64 maxlen); +virtual qint64 readLineData(char* data, qint64 maxlen); +virtual bool reset(); +virtual bool seek(qint64 pos); +virtual void setupChildProcess(); +virtual qint64 size() const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool waitForBytesWritten(int msecs = 30000); +virtual bool waitForReadyRead(int msecs = 30000); +virtual qint64 writeData(const char* data, qint64 len); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QProcess : public QProcess +{ public: +inline bool promoted_atEnd() const { return QProcess::atEnd(); } +inline qint64 promoted_bytesAvailable() const { return QProcess::bytesAvailable(); } +inline qint64 promoted_bytesToWrite() const { return QProcess::bytesToWrite(); } +inline bool promoted_canReadLine() const { return QProcess::canReadLine(); } +inline void promoted_close() { QProcess::close(); } +inline bool promoted_isSequential() const { return QProcess::isSequential(); } +inline qint64 promoted_readData(char* data, qint64 maxlen) { return QProcess::readData(data, maxlen); } +inline void promoted_setupChildProcess() { QProcess::setupChildProcess(); } +inline bool promoted_waitForBytesWritten(int msecs = 30000) { return QProcess::waitForBytesWritten(msecs); } +inline bool promoted_waitForReadyRead(int msecs = 30000) { return QProcess::waitForReadyRead(msecs); } +inline qint64 promoted_writeData(const char* data, qint64 len) { return QProcess::writeData(data, len); } +}; + +class PythonQtWrapper_QProcess : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ProcessState ProcessError ProcessChannelMode ExitStatus ProcessChannel ) +enum ProcessState{ + NotRunning = QProcess::NotRunning, Starting = QProcess::Starting, Running = QProcess::Running}; +enum ProcessError{ + FailedToStart = QProcess::FailedToStart, Crashed = QProcess::Crashed, Timedout = QProcess::Timedout, ReadError = QProcess::ReadError, WriteError = QProcess::WriteError, UnknownError = QProcess::UnknownError}; +enum ProcessChannelMode{ + SeparateChannels = QProcess::SeparateChannels, MergedChannels = QProcess::MergedChannels, ForwardedChannels = QProcess::ForwardedChannels}; +enum ExitStatus{ + NormalExit = QProcess::NormalExit, CrashExit = QProcess::CrashExit}; +enum ProcessChannel{ + StandardOutput = QProcess::StandardOutput, StandardError = QProcess::StandardError}; +public slots: +QProcess* new_QProcess(QObject* parent = 0); +void delete_QProcess(QProcess* obj) { delete obj; } + QStringList arguments(QProcess* theWrappedObject) const; + bool atEnd(QProcess* theWrappedObject) const; + qint64 bytesAvailable(QProcess* theWrappedObject) const; + qint64 bytesToWrite(QProcess* theWrappedObject) const; + bool canReadLine(QProcess* theWrappedObject) const; + void close(QProcess* theWrappedObject); + void closeReadChannel(QProcess* theWrappedObject, QProcess::ProcessChannel channel); + void closeWriteChannel(QProcess* theWrappedObject); + QStringList environment(QProcess* theWrappedObject) const; + QProcess::ProcessError error(QProcess* theWrappedObject) const; + int static_QProcess_execute(const QString& program); + int static_QProcess_execute(const QString& program, const QStringList& arguments); + int exitCode(QProcess* theWrappedObject) const; + QProcess::ExitStatus exitStatus(QProcess* theWrappedObject) const; + bool isSequential(QProcess* theWrappedObject) const; + QProcess::ProcessChannelMode processChannelMode(QProcess* theWrappedObject) const; + QProcessEnvironment processEnvironment(QProcess* theWrappedObject) const; + QString program(QProcess* theWrappedObject) const; + QByteArray readAllStandardError(QProcess* theWrappedObject); + QByteArray readAllStandardOutput(QProcess* theWrappedObject); + QProcess::ProcessChannel readChannel(QProcess* theWrappedObject) const; + qint64 readData(QProcess* theWrappedObject, char* data, qint64 maxlen); + void setEnvironment(QProcess* theWrappedObject, const QStringList& environment); + void setProcessChannelMode(QProcess* theWrappedObject, QProcess::ProcessChannelMode mode); + void setProcessEnvironment(QProcess* theWrappedObject, const QProcessEnvironment& environment); + void setReadChannel(QProcess* theWrappedObject, QProcess::ProcessChannel channel); + void setStandardErrorFile(QProcess* theWrappedObject, const QString& fileName, QIODevice::OpenMode mode = QIODevice::Truncate); + void setStandardInputFile(QProcess* theWrappedObject, const QString& fileName); + void setStandardOutputFile(QProcess* theWrappedObject, const QString& fileName, QIODevice::OpenMode mode = QIODevice::Truncate); + void setStandardOutputProcess(QProcess* theWrappedObject, QProcess* destination); + void setWorkingDirectory(QProcess* theWrappedObject, const QString& dir); + void setupChildProcess(QProcess* theWrappedObject); + void start(QProcess* theWrappedObject, const QString& command, QIODevice::OpenMode mode = QIODevice::ReadWrite); + void start(QProcess* theWrappedObject, const QString& program, const QStringList& arguments, QIODevice::OpenMode mode = QIODevice::ReadWrite); + bool static_QProcess_startDetached(const QString& program); + bool static_QProcess_startDetached(const QString& program, const QStringList& arguments); + bool static_QProcess_startDetached(const QString& program, const QStringList& arguments, const QString& workingDirectory, qint64* pid = 0); + QProcess::ProcessState state(QProcess* theWrappedObject) const; + QStringList static_QProcess_systemEnvironment(); + bool waitForBytesWritten(QProcess* theWrappedObject, int msecs = 30000); + bool waitForFinished(QProcess* theWrappedObject, int msecs = 30000); + bool waitForReadyRead(QProcess* theWrappedObject, int msecs = 30000); + bool waitForStarted(QProcess* theWrappedObject, int msecs = 30000); + QString workingDirectory(QProcess* theWrappedObject) const; + qint64 writeData(QProcess* theWrappedObject, const char* data, qint64 len); +}; + + + + + +class PythonQtWrapper_QProcessEnvironment : public QObject +{ Q_OBJECT +public: +public slots: +QProcessEnvironment* new_QProcessEnvironment(); +QProcessEnvironment* new_QProcessEnvironment(const QProcessEnvironment& other); +void delete_QProcessEnvironment(QProcessEnvironment* obj) { delete obj; } + void clear(QProcessEnvironment* theWrappedObject); + bool contains(QProcessEnvironment* theWrappedObject, const QString& name) const; + void insert(QProcessEnvironment* theWrappedObject, const QProcessEnvironment& e); + void insert(QProcessEnvironment* theWrappedObject, const QString& name, const QString& value); + bool isEmpty(QProcessEnvironment* theWrappedObject) const; + QStringList keys(QProcessEnvironment* theWrappedObject) const; + bool __ne__(QProcessEnvironment* theWrappedObject, const QProcessEnvironment& other) const; + QProcessEnvironment* operator_assign(QProcessEnvironment* theWrappedObject, const QProcessEnvironment& other); + bool __eq__(QProcessEnvironment* theWrappedObject, const QProcessEnvironment& other) const; + void remove(QProcessEnvironment* theWrappedObject, const QString& name); + void swap(QProcessEnvironment* theWrappedObject, QProcessEnvironment& other); + QProcessEnvironment static_QProcessEnvironment_systemEnvironment(); + QStringList toStringList(QProcessEnvironment* theWrappedObject) const; + QString value(QProcessEnvironment* theWrappedObject, const QString& name, const QString& defaultValue = QString()) const; +}; + + + + + +class PythonQtShell_QPropertyAnimation : public QPropertyAnimation +{ +public: + PythonQtShell_QPropertyAnimation(QObject* parent = 0):QPropertyAnimation(parent),_wrapper(NULL) {}; + PythonQtShell_QPropertyAnimation(QObject* target, const QByteArray& propertyName, QObject* parent = 0):QPropertyAnimation(target, propertyName, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QPropertyAnimation(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int duration() const; +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual QVariant interpolated(const QVariant& from, const QVariant& to, qreal progress) const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual void updateCurrentTime(int arg__1); +virtual void updateCurrentValue(const QVariant& value); +virtual void updateDirection(QAbstractAnimation::Direction direction); +virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QPropertyAnimation : public QPropertyAnimation +{ public: +inline bool promoted_event(QEvent* event) { return QPropertyAnimation::event(event); } +inline void promoted_updateCurrentValue(const QVariant& value) { QPropertyAnimation::updateCurrentValue(value); } +inline void promoted_updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { QPropertyAnimation::updateState(newState, oldState); } +}; + +class PythonQtWrapper_QPropertyAnimation : public QObject +{ Q_OBJECT +public: +public slots: +QPropertyAnimation* new_QPropertyAnimation(QObject* parent = 0); +QPropertyAnimation* new_QPropertyAnimation(QObject* target, const QByteArray& propertyName, QObject* parent = 0); +void delete_QPropertyAnimation(QPropertyAnimation* obj) { delete obj; } + bool event(QPropertyAnimation* theWrappedObject, QEvent* event); + QByteArray propertyName(QPropertyAnimation* theWrappedObject) const; + void setPropertyName(QPropertyAnimation* theWrappedObject, const QByteArray& propertyName); + void setTargetObject(QPropertyAnimation* theWrappedObject, QObject* target); + QObject* targetObject(QPropertyAnimation* theWrappedObject) const; + void updateCurrentValue(QPropertyAnimation* theWrappedObject, const QVariant& value); + void updateState(QPropertyAnimation* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState); +}; + + + + + +class PythonQtWrapper_QReadWriteLock : public QObject +{ Q_OBJECT +public: +Q_ENUMS(RecursionMode ) +enum RecursionMode{ + NonRecursive = QReadWriteLock::NonRecursive, Recursive = QReadWriteLock::Recursive}; +public slots: +QReadWriteLock* new_QReadWriteLock(QReadWriteLock::RecursionMode recursionMode = QReadWriteLock::NonRecursive); +void delete_QReadWriteLock(QReadWriteLock* obj) { delete obj; } + void lockForRead(QReadWriteLock* theWrappedObject); + void lockForWrite(QReadWriteLock* theWrappedObject); + bool tryLockForRead(QReadWriteLock* theWrappedObject); + bool tryLockForRead(QReadWriteLock* theWrappedObject, int timeout); + bool tryLockForWrite(QReadWriteLock* theWrappedObject); + bool tryLockForWrite(QReadWriteLock* theWrappedObject, int timeout); + void unlock(QReadWriteLock* theWrappedObject); +}; + + + + + +class PythonQtShell_QRunnable : public QRunnable +{ +public: + PythonQtShell_QRunnable():QRunnable(),_wrapper(NULL) {}; + + ~PythonQtShell_QRunnable(); + +virtual void run(); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QRunnable : public QObject +{ Q_OBJECT +public: +public slots: +QRunnable* new_QRunnable(); +void delete_QRunnable(QRunnable* obj) { delete obj; } + bool autoDelete(QRunnable* theWrappedObject) const; + void setAutoDelete(QRunnable* theWrappedObject, bool _autoDelete); +}; + + + + + +class PythonQtWrapper_QSemaphore : public QObject +{ Q_OBJECT +public: +public slots: +QSemaphore* new_QSemaphore(int n = 0); +void delete_QSemaphore(QSemaphore* obj) { delete obj; } + void acquire(QSemaphore* theWrappedObject, int n = 1); + int available(QSemaphore* theWrappedObject) const; + void release(QSemaphore* theWrappedObject, int n = 1); + bool tryAcquire(QSemaphore* theWrappedObject, int n = 1); + bool tryAcquire(QSemaphore* theWrappedObject, int n, int timeout); +}; + + + + + +class PythonQtShell_QSequentialAnimationGroup : public QSequentialAnimationGroup +{ +public: + PythonQtShell_QSequentialAnimationGroup(QObject* parent = 0):QSequentialAnimationGroup(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QSequentialAnimationGroup(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int duration() const; +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void updateCurrentTime(int arg__1); +virtual void updateDirection(QAbstractAnimation::Direction direction); +virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSequentialAnimationGroup : public QSequentialAnimationGroup +{ public: +inline int promoted_duration() const { return QSequentialAnimationGroup::duration(); } +inline bool promoted_event(QEvent* event) { return QSequentialAnimationGroup::event(event); } +inline void promoted_updateCurrentTime(int arg__1) { QSequentialAnimationGroup::updateCurrentTime(arg__1); } +inline void promoted_updateDirection(QAbstractAnimation::Direction direction) { QSequentialAnimationGroup::updateDirection(direction); } +inline void promoted_updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { QSequentialAnimationGroup::updateState(newState, oldState); } +}; + +class PythonQtWrapper_QSequentialAnimationGroup : public QObject +{ Q_OBJECT +public: +public slots: +QSequentialAnimationGroup* new_QSequentialAnimationGroup(QObject* parent = 0); +void delete_QSequentialAnimationGroup(QSequentialAnimationGroup* obj) { delete obj; } + QPauseAnimation* addPause(QSequentialAnimationGroup* theWrappedObject, int msecs); + QAbstractAnimation* currentAnimation(QSequentialAnimationGroup* theWrappedObject) const; + int duration(QSequentialAnimationGroup* theWrappedObject) const; + bool event(QSequentialAnimationGroup* theWrappedObject, QEvent* event); + QPauseAnimation* insertPause(QSequentialAnimationGroup* theWrappedObject, int index, int msecs); + void updateCurrentTime(QSequentialAnimationGroup* theWrappedObject, int arg__1); + void updateDirection(QSequentialAnimationGroup* theWrappedObject, QAbstractAnimation::Direction direction); + void updateState(QSequentialAnimationGroup* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState); +}; + + + + + +class PythonQtShell_QSettings : public QSettings +{ +public: + PythonQtShell_QSettings(QObject* parent = 0):QSettings(parent),_wrapper(NULL) {}; + PythonQtShell_QSettings(QSettings::Format format, QSettings::Scope scope, const QString& organization, const QString& application = QString(), QObject* parent = 0):QSettings(format, scope, organization, application, parent),_wrapper(NULL) {}; + PythonQtShell_QSettings(QSettings::Scope scope, const QString& organization, const QString& application = QString(), QObject* parent = 0):QSettings(scope, organization, application, parent),_wrapper(NULL) {}; + PythonQtShell_QSettings(const QString& fileName, QSettings::Format format, QObject* parent = 0):QSettings(fileName, format, parent),_wrapper(NULL) {}; + PythonQtShell_QSettings(const QString& organization, const QString& application = QString(), QObject* parent = 0):QSettings(organization, application, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QSettings(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSettings : public QSettings +{ public: +inline bool promoted_event(QEvent* event) { return QSettings::event(event); } +}; + +class PythonQtWrapper_QSettings : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Format Status Scope ) +enum Format{ + NativeFormat = QSettings::NativeFormat, IniFormat = QSettings::IniFormat, InvalidFormat = QSettings::InvalidFormat, CustomFormat1 = QSettings::CustomFormat1, CustomFormat2 = QSettings::CustomFormat2, CustomFormat3 = QSettings::CustomFormat3, CustomFormat4 = QSettings::CustomFormat4, CustomFormat5 = QSettings::CustomFormat5, CustomFormat6 = QSettings::CustomFormat6, CustomFormat7 = QSettings::CustomFormat7, CustomFormat8 = QSettings::CustomFormat8, CustomFormat9 = QSettings::CustomFormat9, CustomFormat10 = QSettings::CustomFormat10, CustomFormat11 = QSettings::CustomFormat11, CustomFormat12 = QSettings::CustomFormat12, CustomFormat13 = QSettings::CustomFormat13, CustomFormat14 = QSettings::CustomFormat14, CustomFormat15 = QSettings::CustomFormat15, CustomFormat16 = QSettings::CustomFormat16}; +enum Status{ + NoError = QSettings::NoError, AccessError = QSettings::AccessError, FormatError = QSettings::FormatError}; +enum Scope{ + UserScope = QSettings::UserScope, SystemScope = QSettings::SystemScope}; +public slots: +QSettings* new_QSettings(QObject* parent = 0); +QSettings* new_QSettings(QSettings::Format format, QSettings::Scope scope, const QString& organization, const QString& application = QString(), QObject* parent = 0); +QSettings* new_QSettings(QSettings::Scope scope, const QString& organization, const QString& application = QString(), QObject* parent = 0); +QSettings* new_QSettings(const QString& fileName, QSettings::Format format, QObject* parent = 0); +QSettings* new_QSettings(const QString& organization, const QString& application = QString(), QObject* parent = 0); +void delete_QSettings(QSettings* obj) { delete obj; } + QStringList allKeys(QSettings* theWrappedObject) const; + QString applicationName(QSettings* theWrappedObject) const; + void beginGroup(QSettings* theWrappedObject, const QString& prefix); + int beginReadArray(QSettings* theWrappedObject, const QString& prefix); + void beginWriteArray(QSettings* theWrappedObject, const QString& prefix, int size = -1); + QStringList childGroups(QSettings* theWrappedObject) const; + QStringList childKeys(QSettings* theWrappedObject) const; + void clear(QSettings* theWrappedObject); + bool contains(QSettings* theWrappedObject, const QString& key) const; + QSettings::Format static_QSettings_defaultFormat(); + void endArray(QSettings* theWrappedObject); + void endGroup(QSettings* theWrappedObject); + bool event(QSettings* theWrappedObject, QEvent* event); + bool fallbacksEnabled(QSettings* theWrappedObject) const; + QString fileName(QSettings* theWrappedObject) const; + QSettings::Format format(QSettings* theWrappedObject) const; + QString group(QSettings* theWrappedObject) const; + QTextCodec* iniCodec(QSettings* theWrappedObject) const; + bool isWritable(QSettings* theWrappedObject) const; + QString organizationName(QSettings* theWrappedObject) const; + void remove(QSettings* theWrappedObject, const QString& key); + QSettings::Scope scope(QSettings* theWrappedObject) const; + void setArrayIndex(QSettings* theWrappedObject, int i); + void static_QSettings_setDefaultFormat(QSettings::Format format); + void setFallbacksEnabled(QSettings* theWrappedObject, bool b); + void setIniCodec(QSettings* theWrappedObject, QTextCodec* codec); + void setIniCodec(QSettings* theWrappedObject, const char* codecName); + void static_QSettings_setPath(QSettings::Format format, QSettings::Scope scope, const QString& path); + void setValue(QSettings* theWrappedObject, const QString& key, const QVariant& value); + QSettings::Status status(QSettings* theWrappedObject) const; + void sync(QSettings* theWrappedObject); + QVariant value(QSettings* theWrappedObject, const QString& key, const QVariant& defaultValue = QVariant()) const; +}; + + + + + +class PythonQtShell_QSignalMapper : public QSignalMapper +{ +public: + PythonQtShell_QSignalMapper(QObject* parent = 0):QSignalMapper(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QSignalMapper(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QSignalMapper : public QObject +{ Q_OBJECT +public: +public slots: +QSignalMapper* new_QSignalMapper(QObject* parent = 0); +void delete_QSignalMapper(QSignalMapper* obj) { delete obj; } + QObject* mapping(QSignalMapper* theWrappedObject, QObject* object) const; + QObject* mapping(QSignalMapper* theWrappedObject, const QString& text) const; + QObject* mapping(QSignalMapper* theWrappedObject, int id) const; + void removeMappings(QSignalMapper* theWrappedObject, QObject* sender); + void setMapping(QSignalMapper* theWrappedObject, QObject* sender, QObject* object); + void setMapping(QSignalMapper* theWrappedObject, QObject* sender, const QString& text); + void setMapping(QSignalMapper* theWrappedObject, QObject* sender, int id); +}; + + + + + +class PythonQtShell_QSignalTransition : public QSignalTransition +{ +public: + PythonQtShell_QSignalTransition(QState* sourceState = 0):QSignalTransition(sourceState),_wrapper(NULL) {}; + PythonQtShell_QSignalTransition(const QObject* sender, const char* signal, QState* sourceState = 0):QSignalTransition(sender, signal, sourceState),_wrapper(NULL) {}; + + ~PythonQtShell_QSignalTransition(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool eventTest(QEvent* event); +virtual void onTransition(QEvent* event); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSignalTransition : public QSignalTransition +{ public: +inline bool promoted_event(QEvent* e) { return QSignalTransition::event(e); } +inline bool promoted_eventTest(QEvent* event) { return QSignalTransition::eventTest(event); } +inline void promoted_onTransition(QEvent* event) { QSignalTransition::onTransition(event); } +}; + +class PythonQtWrapper_QSignalTransition : public QObject +{ Q_OBJECT +public: +public slots: +QSignalTransition* new_QSignalTransition(QState* sourceState = 0); +QSignalTransition* new_QSignalTransition(const QObject* sender, const char* signal, QState* sourceState = 0); +void delete_QSignalTransition(QSignalTransition* obj) { delete obj; } + bool event(QSignalTransition* theWrappedObject, QEvent* e); + bool eventTest(QSignalTransition* theWrappedObject, QEvent* event); + void onTransition(QSignalTransition* theWrappedObject, QEvent* event); + QObject* senderObject(QSignalTransition* theWrappedObject) const; + void setSenderObject(QSignalTransition* theWrappedObject, const QObject* sender); + void setSignal(QSignalTransition* theWrappedObject, const QByteArray& signal); + QByteArray signal(QSignalTransition* theWrappedObject) const; +}; + + + + + +class PythonQtPublicPromoter_QSocketNotifier : public QSocketNotifier +{ public: +inline bool promoted_event(QEvent* arg__1) { return QSocketNotifier::event(arg__1); } +}; + +class PythonQtWrapper_QSocketNotifier : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Type ) +enum Type{ + Read = QSocketNotifier::Read, Write = QSocketNotifier::Write, Exception = QSocketNotifier::Exception}; +public slots: +void delete_QSocketNotifier(QSocketNotifier* obj) { delete obj; } + bool event(QSocketNotifier* theWrappedObject, QEvent* arg__1); + bool isEnabled(QSocketNotifier* theWrappedObject) const; + QSocketNotifier::Type type(QSocketNotifier* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QState : public QState +{ +public: + PythonQtShell_QState(QState* parent = 0):QState(parent),_wrapper(NULL) {}; + PythonQtShell_QState(QState::ChildMode childMode, QState* parent = 0):QState(childMode, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QState(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void onEntry(QEvent* event); +virtual void onExit(QEvent* event); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QState : public QState +{ public: +inline bool promoted_event(QEvent* e) { return QState::event(e); } +inline void promoted_onEntry(QEvent* event) { QState::onEntry(event); } +inline void promoted_onExit(QEvent* event) { QState::onExit(event); } +}; + +class PythonQtWrapper_QState : public QObject +{ Q_OBJECT +public: +public slots: +QState* new_QState(QState* parent = 0); +QState* new_QState(QState::ChildMode childMode, QState* parent = 0); +void delete_QState(QState* obj) { delete obj; } + QAbstractTransition* addTransition(QState* theWrappedObject, QAbstractState* target); + void addTransition(QState* theWrappedObject, QAbstractTransition* transition); + QSignalTransition* addTransition(QState* theWrappedObject, const QObject* sender, const char* signal, QAbstractState* target); + void assignProperty(QState* theWrappedObject, QObject* object, const char* name, const QVariant& value); + QState::ChildMode childMode(QState* theWrappedObject) const; + QAbstractState* errorState(QState* theWrappedObject) const; + bool event(QState* theWrappedObject, QEvent* e); + QAbstractState* initialState(QState* theWrappedObject) const; + void onEntry(QState* theWrappedObject, QEvent* event); + void onExit(QState* theWrappedObject, QEvent* event); + void removeTransition(QState* theWrappedObject, QAbstractTransition* transition); + void setChildMode(QState* theWrappedObject, QState::ChildMode mode); + void setErrorState(QState* theWrappedObject, QAbstractState* state); + void setInitialState(QState* theWrappedObject, QAbstractState* state); + QList transitions(QState* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QStateMachine : public QStateMachine +{ +public: + PythonQtShell_QStateMachine(QObject* parent = 0):QStateMachine(parent),_wrapper(NULL) {}; + PythonQtShell_QStateMachine(QState::ChildMode childMode, QObject* parent = 0):QStateMachine(childMode, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QStateMachine(); + +virtual void beginMicrostep(QEvent* event); +virtual void beginSelectTransitions(QEvent* event); +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual void endMicrostep(QEvent* event); +virtual void endSelectTransitions(QEvent* event); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* watched, QEvent* event); +virtual void onEntry(QEvent* event); +virtual void onExit(QEvent* event); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QStateMachine : public QStateMachine +{ public: +inline void promoted_beginMicrostep(QEvent* event) { QStateMachine::beginMicrostep(event); } +inline void promoted_beginSelectTransitions(QEvent* event) { QStateMachine::beginSelectTransitions(event); } +inline void promoted_endMicrostep(QEvent* event) { QStateMachine::endMicrostep(event); } +inline void promoted_endSelectTransitions(QEvent* event) { QStateMachine::endSelectTransitions(event); } +inline bool promoted_event(QEvent* e) { return QStateMachine::event(e); } +inline bool promoted_eventFilter(QObject* watched, QEvent* event) { return QStateMachine::eventFilter(watched, event); } +inline void promoted_onEntry(QEvent* event) { QStateMachine::onEntry(event); } +inline void promoted_onExit(QEvent* event) { QStateMachine::onExit(event); } +}; + +class PythonQtWrapper_QStateMachine : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Error EventPriority ) +enum Error{ + NoError = QStateMachine::NoError, NoInitialStateError = QStateMachine::NoInitialStateError, NoDefaultStateInHistoryStateError = QStateMachine::NoDefaultStateInHistoryStateError, NoCommonAncestorForTransitionError = QStateMachine::NoCommonAncestorForTransitionError}; +enum EventPriority{ + NormalPriority = QStateMachine::NormalPriority, HighPriority = QStateMachine::HighPriority}; +public slots: +QStateMachine* new_QStateMachine(QObject* parent = 0); +QStateMachine* new_QStateMachine(QState::ChildMode childMode, QObject* parent = 0); +void delete_QStateMachine(QStateMachine* obj) { delete obj; } + void addDefaultAnimation(QStateMachine* theWrappedObject, QAbstractAnimation* animation); + void addState(QStateMachine* theWrappedObject, QAbstractState* state); + void beginMicrostep(QStateMachine* theWrappedObject, QEvent* event); + void beginSelectTransitions(QStateMachine* theWrappedObject, QEvent* event); + bool cancelDelayedEvent(QStateMachine* theWrappedObject, int id); + void clearError(QStateMachine* theWrappedObject); + QSet configuration(QStateMachine* theWrappedObject) const; + QList defaultAnimations(QStateMachine* theWrappedObject) const; + void endMicrostep(QStateMachine* theWrappedObject, QEvent* event); + void endSelectTransitions(QStateMachine* theWrappedObject, QEvent* event); + QStateMachine::Error error(QStateMachine* theWrappedObject) const; + QString errorString(QStateMachine* theWrappedObject) const; + bool event(QStateMachine* theWrappedObject, QEvent* e); + bool eventFilter(QStateMachine* theWrappedObject, QObject* watched, QEvent* event); + bool isAnimated(QStateMachine* theWrappedObject) const; + bool isRunning(QStateMachine* theWrappedObject) const; + void onEntry(QStateMachine* theWrappedObject, QEvent* event); + void onExit(QStateMachine* theWrappedObject, QEvent* event); + int postDelayedEvent(QStateMachine* theWrappedObject, QEvent* event, int delay); + void postEvent(QStateMachine* theWrappedObject, QEvent* event, QStateMachine::EventPriority priority = QStateMachine::NormalPriority); + void removeDefaultAnimation(QStateMachine* theWrappedObject, QAbstractAnimation* animation); + void removeState(QStateMachine* theWrappedObject, QAbstractState* state); + void setAnimated(QStateMachine* theWrappedObject, bool enabled); +}; + + + + + +class PythonQtWrapper_QStateMachine_SignalEvent : public QObject +{ Q_OBJECT +public: +public slots: +QStateMachine::SignalEvent* new_QStateMachine_SignalEvent(QObject* sender, int signalIndex, const QList& arguments); +void delete_QStateMachine_SignalEvent(QStateMachine::SignalEvent* obj) { delete obj; } + QList arguments(QStateMachine::SignalEvent* theWrappedObject) const; + QObject* sender(QStateMachine::SignalEvent* theWrappedObject) const; + int signalIndex(QStateMachine::SignalEvent* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QStateMachine_WrappedEvent : public QObject +{ Q_OBJECT +public: +public slots: +QStateMachine::WrappedEvent* new_QStateMachine_WrappedEvent(QObject* object, QEvent* event); +void delete_QStateMachine_WrappedEvent(QStateMachine::WrappedEvent* obj) { delete obj; } + QEvent* event(QStateMachine::WrappedEvent* theWrappedObject) const; + QObject* object(QStateMachine::WrappedEvent* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QStringMatcher : public QObject +{ Q_OBJECT +public: +public slots: +QStringMatcher* new_QStringMatcher(); +QStringMatcher* new_QStringMatcher(const QString& pattern, Qt::CaseSensitivity cs = Qt::CaseSensitive); +QStringMatcher* new_QStringMatcher(const QStringMatcher& other); +void delete_QStringMatcher(QStringMatcher* obj) { delete obj; } + Qt::CaseSensitivity caseSensitivity(QStringMatcher* theWrappedObject) const; + int indexIn(QStringMatcher* theWrappedObject, const QString& str, int from = 0) const; + QString pattern(QStringMatcher* theWrappedObject) const; + void setCaseSensitivity(QStringMatcher* theWrappedObject, Qt::CaseSensitivity cs); + void setPattern(QStringMatcher* theWrappedObject, const QString& pattern); +}; + + + + + +class PythonQtWrapper_QSystemSemaphore : public QObject +{ Q_OBJECT +public: +Q_ENUMS(SystemSemaphoreError AccessMode ) +enum SystemSemaphoreError{ + NoError = QSystemSemaphore::NoError, PermissionDenied = QSystemSemaphore::PermissionDenied, KeyError = QSystemSemaphore::KeyError, AlreadyExists = QSystemSemaphore::AlreadyExists, NotFound = QSystemSemaphore::NotFound, OutOfResources = QSystemSemaphore::OutOfResources, UnknownError = QSystemSemaphore::UnknownError}; +enum AccessMode{ + Open = QSystemSemaphore::Open, Create = QSystemSemaphore::Create}; +public slots: +QSystemSemaphore* new_QSystemSemaphore(const QString& key, int initialValue = 0, QSystemSemaphore::AccessMode mode = QSystemSemaphore::Open); +void delete_QSystemSemaphore(QSystemSemaphore* obj) { delete obj; } + bool acquire(QSystemSemaphore* theWrappedObject); + QSystemSemaphore::SystemSemaphoreError error(QSystemSemaphore* theWrappedObject) const; + QString errorString(QSystemSemaphore* theWrappedObject) const; + QString key(QSystemSemaphore* theWrappedObject) const; + bool release(QSystemSemaphore* theWrappedObject, int n = 1); + void setKey(QSystemSemaphore* theWrappedObject, const QString& key, int initialValue = 0, QSystemSemaphore::AccessMode mode = QSystemSemaphore::Open); +}; + + + + + +class PythonQtWrapper_QTemporaryFile : public QObject +{ Q_OBJECT +public: +public slots: +QTemporaryFile* new_QTemporaryFile(); +QTemporaryFile* new_QTemporaryFile(QObject* parent); +QTemporaryFile* new_QTemporaryFile(const QString& templateName); +QTemporaryFile* new_QTemporaryFile(const QString& templateName, QObject* parent); +void delete_QTemporaryFile(QTemporaryFile* obj) { delete obj; } + bool autoRemove(QTemporaryFile* theWrappedObject) const; + QTemporaryFile* static_QTemporaryFile_createLocalFile(QFile& file); + QTemporaryFile* static_QTemporaryFile_createLocalFile(const QString& fileName); + QTemporaryFile* static_QTemporaryFile_createNativeFile(QFile& file); + QTemporaryFile* static_QTemporaryFile_createNativeFile(const QString& fileName); + QString fileName(QTemporaryFile* theWrappedObject) const; + QString fileTemplate(QTemporaryFile* theWrappedObject) const; + bool open(QTemporaryFile* theWrappedObject); + void setAutoRemove(QTemporaryFile* theWrappedObject, bool b); + void setFileTemplate(QTemporaryFile* theWrappedObject, const QString& name); +}; + + + + + +class PythonQtWrapper_QTextBoundaryFinder : public QObject +{ Q_OBJECT +public: +Q_ENUMS(BoundaryReason BoundaryType ) +Q_FLAGS(BoundaryReasons ) +enum BoundaryReason{ + NotAtBoundary = QTextBoundaryFinder::NotAtBoundary, BreakOpportunity = QTextBoundaryFinder::BreakOpportunity, StartOfItem = QTextBoundaryFinder::StartOfItem, EndOfItem = QTextBoundaryFinder::EndOfItem, MandatoryBreak = QTextBoundaryFinder::MandatoryBreak, SoftHyphen = QTextBoundaryFinder::SoftHyphen}; +enum BoundaryType{ + Grapheme = QTextBoundaryFinder::Grapheme, Word = QTextBoundaryFinder::Word, Sentence = QTextBoundaryFinder::Sentence, Line = QTextBoundaryFinder::Line}; +Q_DECLARE_FLAGS(BoundaryReasons, BoundaryReason) +public slots: +QTextBoundaryFinder* new_QTextBoundaryFinder(); +QTextBoundaryFinder* new_QTextBoundaryFinder(QTextBoundaryFinder::BoundaryType type, const QString& string); +QTextBoundaryFinder* new_QTextBoundaryFinder(const QTextBoundaryFinder& other); +void delete_QTextBoundaryFinder(QTextBoundaryFinder* obj) { delete obj; } + QTextBoundaryFinder::BoundaryReasons boundaryReasons(QTextBoundaryFinder* theWrappedObject) const; + bool isAtBoundary(QTextBoundaryFinder* theWrappedObject) const; + bool isValid(QTextBoundaryFinder* theWrappedObject) const; + int position(QTextBoundaryFinder* theWrappedObject) const; + void setPosition(QTextBoundaryFinder* theWrappedObject, int position); + QString string(QTextBoundaryFinder* theWrappedObject) const; + void toEnd(QTextBoundaryFinder* theWrappedObject); + int toNextBoundary(QTextBoundaryFinder* theWrappedObject); + int toPreviousBoundary(QTextBoundaryFinder* theWrappedObject); + void toStart(QTextBoundaryFinder* theWrappedObject); + QTextBoundaryFinder::BoundaryType type(QTextBoundaryFinder* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QTextCodec : public QTextCodec +{ +public: + PythonQtShell_QTextCodec():QTextCodec(),_wrapper(NULL) {}; + + ~PythonQtShell_QTextCodec(); + +virtual QList aliases() const; +virtual QByteArray convertFromUnicode(const QChar* in, int length, QTextCodec::ConverterState* state) const; +virtual QString convertToUnicode(const char* in, int length, QTextCodec::ConverterState* state) const; +virtual int mibEnum() const; +virtual QByteArray name() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QTextCodec : public QTextCodec +{ public: +inline QList promoted_aliases() const { return QTextCodec::aliases(); } +}; + +class PythonQtWrapper_QTextCodec : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ConversionFlag ) +Q_FLAGS(ConversionFlags ) +enum ConversionFlag{ + DefaultConversion = QTextCodec::DefaultConversion, ConvertInvalidToNull = QTextCodec::ConvertInvalidToNull, IgnoreHeader = QTextCodec::IgnoreHeader, FreeFunction = QTextCodec::FreeFunction}; +Q_DECLARE_FLAGS(ConversionFlags, ConversionFlag) +public slots: + QList aliases(QTextCodec* theWrappedObject) const; + QList static_QTextCodec_availableCodecs(); + QList static_QTextCodec_availableMibs(); + bool canEncode(QTextCodec* theWrappedObject, QChar arg__1) const; + bool canEncode(QTextCodec* theWrappedObject, const QString& arg__1) const; + QTextCodec* static_QTextCodec_codecForHtml(const QByteArray& ba); + QTextCodec* static_QTextCodec_codecForHtml(const QByteArray& ba, QTextCodec* defaultCodec); + QTextCodec* static_QTextCodec_codecForLocale(); + QTextCodec* static_QTextCodec_codecForMib(int mib); + QTextCodec* static_QTextCodec_codecForName(const QByteArray& name); + QTextCodec* static_QTextCodec_codecForName(const char* name); + QTextCodec* static_QTextCodec_codecForUtfText(const QByteArray& ba); + QTextCodec* static_QTextCodec_codecForUtfText(const QByteArray& ba, QTextCodec* defaultCodec); + QByteArray fromUnicode(QTextCodec* theWrappedObject, const QString& uc) const; + QTextDecoder* makeDecoder(QTextCodec* theWrappedObject, QTextCodec::ConversionFlags flags = QTextCodec::DefaultConversion) const; + QTextEncoder* makeEncoder(QTextCodec* theWrappedObject, QTextCodec::ConversionFlags flags = QTextCodec::DefaultConversion) const; + void static_QTextCodec_setCodecForLocale(QTextCodec* c); + QString toUnicode(QTextCodec* theWrappedObject, const QByteArray& arg__1) const; +}; + + + + + +class PythonQtWrapper_QTextDecoder : public QObject +{ Q_OBJECT +public: +public slots: +QTextDecoder* new_QTextDecoder(const QTextCodec* codec); +QTextDecoder* new_QTextDecoder(const QTextCodec* codec, QTextCodec::ConversionFlags flags); +void delete_QTextDecoder(QTextDecoder* obj) { delete obj; } + bool hasFailure(QTextDecoder* theWrappedObject) const; + QString toUnicode(QTextDecoder* theWrappedObject, const QByteArray& ba); +}; + + + + + +class PythonQtWrapper_QTextEncoder : public QObject +{ Q_OBJECT +public: +public slots: +QTextEncoder* new_QTextEncoder(const QTextCodec* codec); +QTextEncoder* new_QTextEncoder(const QTextCodec* codec, QTextCodec::ConversionFlags flags); +void delete_QTextEncoder(QTextEncoder* obj) { delete obj; } + QByteArray fromUnicode(QTextEncoder* theWrappedObject, const QString& str); + bool hasFailure(QTextEncoder* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QTextStream : public QTextStream +{ +public: + PythonQtShell_QTextStream():QTextStream(),_wrapper(NULL) {}; + PythonQtShell_QTextStream(QIODevice* device):QTextStream(device),_wrapper(NULL) {}; + PythonQtShell_QTextStream(const QByteArray& array, QIODevice::OpenMode openMode = QIODevice::ReadOnly):QTextStream(array, openMode),_wrapper(NULL) {}; + + ~PythonQtShell_QTextStream(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTextStream : public QObject +{ Q_OBJECT +public: +Q_ENUMS(FieldAlignment NumberFlag Status RealNumberNotation ) +Q_FLAGS(NumberFlags ) +enum FieldAlignment{ + AlignLeft = QTextStream::AlignLeft, AlignRight = QTextStream::AlignRight, AlignCenter = QTextStream::AlignCenter, AlignAccountingStyle = QTextStream::AlignAccountingStyle}; +enum NumberFlag{ + ShowBase = QTextStream::ShowBase, ForcePoint = QTextStream::ForcePoint, ForceSign = QTextStream::ForceSign, UppercaseBase = QTextStream::UppercaseBase, UppercaseDigits = QTextStream::UppercaseDigits}; +enum Status{ + Ok = QTextStream::Ok, ReadPastEnd = QTextStream::ReadPastEnd, ReadCorruptData = QTextStream::ReadCorruptData, WriteFailed = QTextStream::WriteFailed}; +enum RealNumberNotation{ + SmartNotation = QTextStream::SmartNotation, FixedNotation = QTextStream::FixedNotation, ScientificNotation = QTextStream::ScientificNotation}; +Q_DECLARE_FLAGS(NumberFlags, NumberFlag) +public slots: +QTextStream* new_QTextStream(); +QTextStream* new_QTextStream(QIODevice* device); +QTextStream* new_QTextStream(const QByteArray& array, QIODevice::OpenMode openMode = QIODevice::ReadOnly); +void delete_QTextStream(QTextStream* obj) { delete obj; } + bool atEnd(QTextStream* theWrappedObject) const; + bool autoDetectUnicode(QTextStream* theWrappedObject) const; + QTextCodec* codec(QTextStream* theWrappedObject) const; + QIODevice* device(QTextStream* theWrappedObject) const; + QTextStream::FieldAlignment fieldAlignment(QTextStream* theWrappedObject) const; + int fieldWidth(QTextStream* theWrappedObject) const; + void flush(QTextStream* theWrappedObject); + bool generateByteOrderMark(QTextStream* theWrappedObject) const; + int integerBase(QTextStream* theWrappedObject) const; + QLocale locale(QTextStream* theWrappedObject) const; + QTextStream::NumberFlags numberFlags(QTextStream* theWrappedObject) const; + QTextStream* writeByte(QTextStream* theWrappedObject, char ch); + QTextStream* writeByteArray(QTextStream* theWrappedObject, const QByteArray& array); + QTextStream* writeString(QTextStream* theWrappedObject, const QString& s); + QTextStream* writeDouble(QTextStream* theWrappedObject, double f); + QTextStream* writeFloat(QTextStream* theWrappedObject, float f); + QTextStream* writeInt(QTextStream* theWrappedObject, signed int i); + QTextStream* writeShort(QTextStream* theWrappedObject, signed short i); + QTextStream* readByte(QTextStream* theWrappedObject, char& ch); + QTextStream* readDouble(QTextStream* theWrappedObject, double& f); + QTextStream* readFloat(QTextStream* theWrappedObject, float& f); + QTextStream* readLongLong(QTextStream* theWrappedObject, qlonglong& i); + QTextStream* readInt(QTextStream* theWrappedObject, signed int& i); + QTextStream* readShort(QTextStream* theWrappedObject, signed short& i); + QTextStream* readUInt(QTextStream* theWrappedObject, unsigned int& i); + QTextStream* readUShort(QTextStream* theWrappedObject, unsigned short& i); + QChar padChar(QTextStream* theWrappedObject) const; + qint64 pos(QTextStream* theWrappedObject) const; + QString read(QTextStream* theWrappedObject, qint64 maxlen); + QString readAll(QTextStream* theWrappedObject); + QString readLine(QTextStream* theWrappedObject, qint64 maxlen = 0); + QTextStream::RealNumberNotation realNumberNotation(QTextStream* theWrappedObject) const; + int realNumberPrecision(QTextStream* theWrappedObject) const; + void reset(QTextStream* theWrappedObject); + void resetStatus(QTextStream* theWrappedObject); + bool seek(QTextStream* theWrappedObject, qint64 pos); + void setAutoDetectUnicode(QTextStream* theWrappedObject, bool enabled); + void setCodec(QTextStream* theWrappedObject, QTextCodec* codec); + void setCodec(QTextStream* theWrappedObject, const char* codecName); + void setDevice(QTextStream* theWrappedObject, QIODevice* device); + void setFieldAlignment(QTextStream* theWrappedObject, QTextStream::FieldAlignment alignment); + void setFieldWidth(QTextStream* theWrappedObject, int width); + void setGenerateByteOrderMark(QTextStream* theWrappedObject, bool generate); + void setIntegerBase(QTextStream* theWrappedObject, int base); + void setLocale(QTextStream* theWrappedObject, const QLocale& locale); + void setNumberFlags(QTextStream* theWrappedObject, QTextStream::NumberFlags flags); + void setPadChar(QTextStream* theWrappedObject, QChar ch); + void setRealNumberNotation(QTextStream* theWrappedObject, QTextStream::RealNumberNotation notation); + void setRealNumberPrecision(QTextStream* theWrappedObject, int precision); + void setStatus(QTextStream* theWrappedObject, QTextStream::Status status); + void skipWhiteSpace(QTextStream* theWrappedObject); + QTextStream::Status status(QTextStream* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QThreadPool : public QThreadPool +{ +public: + PythonQtShell_QThreadPool(QObject* parent = 0):QThreadPool(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QThreadPool(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QThreadPool : public QObject +{ Q_OBJECT +public: +public slots: +QThreadPool* new_QThreadPool(QObject* parent = 0); +void delete_QThreadPool(QThreadPool* obj) { delete obj; } + int activeThreadCount(QThreadPool* theWrappedObject) const; + int expiryTimeout(QThreadPool* theWrappedObject) const; + QThreadPool* static_QThreadPool_globalInstance(); + int maxThreadCount(QThreadPool* theWrappedObject) const; + void releaseThread(QThreadPool* theWrappedObject); + void reserveThread(QThreadPool* theWrappedObject); + void setExpiryTimeout(QThreadPool* theWrappedObject, int expiryTimeout); + void setMaxThreadCount(QThreadPool* theWrappedObject, int maxThreadCount); + void start(QThreadPool* theWrappedObject, QRunnable* runnable, int priority = 0); + bool tryStart(QThreadPool* theWrappedObject, QRunnable* runnable); + bool waitForDone(QThreadPool* theWrappedObject, int msecs = -1); +}; + + + + + +class PythonQtShell_QTimeLine : public QTimeLine +{ +public: + PythonQtShell_QTimeLine(int duration = 1000, QObject* parent = 0):QTimeLine(duration, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QTimeLine(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* event); +virtual qreal valueForTime(int msec) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QTimeLine : public QTimeLine +{ public: +inline void promoted_timerEvent(QTimerEvent* event) { QTimeLine::timerEvent(event); } +inline qreal promoted_valueForTime(int msec) const { return QTimeLine::valueForTime(msec); } +}; + +class PythonQtWrapper_QTimeLine : public QObject +{ Q_OBJECT +public: +Q_ENUMS(State CurveShape Direction ) +enum State{ + NotRunning = QTimeLine::NotRunning, Paused = QTimeLine::Paused, Running = QTimeLine::Running}; +enum CurveShape{ + EaseInCurve = QTimeLine::EaseInCurve, EaseOutCurve = QTimeLine::EaseOutCurve, EaseInOutCurve = QTimeLine::EaseInOutCurve, LinearCurve = QTimeLine::LinearCurve, SineCurve = QTimeLine::SineCurve, CosineCurve = QTimeLine::CosineCurve}; +enum Direction{ + Forward = QTimeLine::Forward, Backward = QTimeLine::Backward}; +public slots: +QTimeLine* new_QTimeLine(int duration = 1000, QObject* parent = 0); +void delete_QTimeLine(QTimeLine* obj) { delete obj; } + int currentFrame(QTimeLine* theWrappedObject) const; + int currentTime(QTimeLine* theWrappedObject) const; + qreal currentValue(QTimeLine* theWrappedObject) const; + QTimeLine::CurveShape curveShape(QTimeLine* theWrappedObject) const; + QTimeLine::Direction direction(QTimeLine* theWrappedObject) const; + int duration(QTimeLine* theWrappedObject) const; + QEasingCurve easingCurve(QTimeLine* theWrappedObject) const; + int endFrame(QTimeLine* theWrappedObject) const; + int frameForTime(QTimeLine* theWrappedObject, int msec) const; + int loopCount(QTimeLine* theWrappedObject) const; + void setCurveShape(QTimeLine* theWrappedObject, QTimeLine::CurveShape shape); + void setDirection(QTimeLine* theWrappedObject, QTimeLine::Direction direction); + void setDuration(QTimeLine* theWrappedObject, int duration); + void setEasingCurve(QTimeLine* theWrappedObject, const QEasingCurve& curve); + void setEndFrame(QTimeLine* theWrappedObject, int frame); + void setFrameRange(QTimeLine* theWrappedObject, int startFrame, int endFrame); + void setLoopCount(QTimeLine* theWrappedObject, int count); + void setStartFrame(QTimeLine* theWrappedObject, int frame); + void setUpdateInterval(QTimeLine* theWrappedObject, int interval); + int startFrame(QTimeLine* theWrappedObject) const; + QTimeLine::State state(QTimeLine* theWrappedObject) const; + void timerEvent(QTimeLine* theWrappedObject, QTimerEvent* event); + int updateInterval(QTimeLine* theWrappedObject) const; + qreal valueForTime(QTimeLine* theWrappedObject, int msec) const; +}; + + diff --git a/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core2.cpp b/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core2.cpp new file mode 100644 index 00000000..4cb38e90 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core2.cpp @@ -0,0 +1,1770 @@ +#include "com_trolltech_qt_core2.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +PythonQtShell_QTimer::~PythonQtShell_QTimer() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTimer::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimer::childEvent(arg__1); +} +void PythonQtShell_QTimer::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimer::customEvent(arg__1); +} +bool PythonQtShell_QTimer::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimer::event(arg__1); +} +bool PythonQtShell_QTimer::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimer::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QTimer::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimer::timerEvent(arg__1); +} +QTimer* PythonQtWrapper_QTimer::new_QTimer(QObject* parent) +{ +return new PythonQtShell_QTimer(parent); } + +int PythonQtWrapper_QTimer::interval(QTimer* theWrappedObject) const +{ + return ( theWrappedObject->interval()); +} + +bool PythonQtWrapper_QTimer::isActive(QTimer* theWrappedObject) const +{ + return ( theWrappedObject->isActive()); +} + +bool PythonQtWrapper_QTimer::isSingleShot(QTimer* theWrappedObject) const +{ + return ( theWrappedObject->isSingleShot()); +} + +int PythonQtWrapper_QTimer::remainingTime(QTimer* theWrappedObject) const +{ + return ( theWrappedObject->remainingTime()); +} + +void PythonQtWrapper_QTimer::setInterval(QTimer* theWrappedObject, int msec) +{ + ( theWrappedObject->setInterval(msec)); +} + +void PythonQtWrapper_QTimer::setSingleShot(QTimer* theWrappedObject, bool singleShot) +{ + ( theWrappedObject->setSingleShot(singleShot)); +} + +void PythonQtWrapper_QTimer::setTimerType(QTimer* theWrappedObject, Qt::TimerType atype) +{ + ( theWrappedObject->setTimerType(atype)); +} + +void PythonQtWrapper_QTimer::timerEvent(QTimer* theWrappedObject, QTimerEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QTimer*)theWrappedObject)->promoted_timerEvent(arg__1)); +} + +int PythonQtWrapper_QTimer::timerId(QTimer* theWrappedObject) const +{ + return ( theWrappedObject->timerId()); +} + +Qt::TimerType PythonQtWrapper_QTimer::timerType(QTimer* theWrappedObject) const +{ + return ( theWrappedObject->timerType()); +} + + + +PythonQtShell_QTimerEvent::~PythonQtShell_QTimerEvent() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QTimerEvent* PythonQtWrapper_QTimerEvent::new_QTimerEvent(int timerId) +{ +return new PythonQtShell_QTimerEvent(timerId); } + +int PythonQtWrapper_QTimerEvent::timerId(QTimerEvent* theWrappedObject) const +{ + return ( theWrappedObject->timerId()); +} + + + +PythonQtShell_QTranslator::~PythonQtShell_QTranslator() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTranslator::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTranslator::childEvent(arg__1); +} +void PythonQtShell_QTranslator::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTranslator::customEvent(arg__1); +} +bool PythonQtShell_QTranslator::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTranslator::event(arg__1); +} +bool PythonQtShell_QTranslator::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTranslator::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QTranslator::isEmpty() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTranslator::isEmpty(); +} +void PythonQtShell_QTranslator::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTranslator::timerEvent(arg__1); +} +QString PythonQtShell_QTranslator::translate(const char* context, const char* sourceText, const char* disambiguation, int n) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "translate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "const char*" , "const char*" , "const char*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + QString returnValue; + void* args[5] = {NULL, (void*)&context, (void*)&sourceText, (void*)&disambiguation, (void*)&n}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("translate", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTranslator::translate(context, sourceText, disambiguation, n); +} +QTranslator* PythonQtWrapper_QTranslator::new_QTranslator(QObject* parent) +{ +return new PythonQtShell_QTranslator(parent); } + +bool PythonQtWrapper_QTranslator::isEmpty(QTranslator* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTranslator*)theWrappedObject)->promoted_isEmpty()); +} + +bool PythonQtWrapper_QTranslator::load(QTranslator* theWrappedObject, const QLocale& locale, const QString& filename, const QString& prefix, const QString& directory, const QString& suffix) +{ + return ( theWrappedObject->load(locale, filename, prefix, directory, suffix)); +} + +bool PythonQtWrapper_QTranslator::load(QTranslator* theWrappedObject, const QString& filename, const QString& directory, const QString& search_delimiters, const QString& suffix) +{ + return ( theWrappedObject->load(filename, directory, search_delimiters, suffix)); +} + +bool PythonQtWrapper_QTranslator::load(QTranslator* theWrappedObject, const uchar* data, int len, const QString& directory) +{ + return ( theWrappedObject->load(data, len, directory)); +} + + + +PythonQtShell_QUuid::~PythonQtShell_QUuid() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QUuid* PythonQtWrapper_QUuid::new_QUuid() +{ +return new PythonQtShell_QUuid(); } + +QUuid* PythonQtWrapper_QUuid::new_QUuid(const QByteArray& arg__1) +{ +return new PythonQtShell_QUuid(arg__1); } + +QUuid* PythonQtWrapper_QUuid::new_QUuid(const QString& arg__1) +{ +return new PythonQtShell_QUuid(arg__1); } + +QUuid* PythonQtWrapper_QUuid::new_QUuid(uint l, ushort w1, ushort w2, uchar b1, uchar b2, uchar b3, uchar b4, uchar b5, uchar b6, uchar b7, uchar b8) +{ +return new PythonQtShell_QUuid(l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8); } + +QUuid PythonQtWrapper_QUuid::static_QUuid_createUuid() +{ + return (QUuid::createUuid()); +} + +QUuid PythonQtWrapper_QUuid::static_QUuid_createUuidV3(const QUuid& ns, const QByteArray& baseData) +{ + return (QUuid::createUuidV3(ns, baseData)); +} + +QUuid PythonQtWrapper_QUuid::static_QUuid_createUuidV3(const QUuid& ns, const QString& baseData) +{ + return (QUuid::createUuidV3(ns, baseData)); +} + +QUuid PythonQtWrapper_QUuid::static_QUuid_createUuidV5(const QUuid& ns, const QByteArray& baseData) +{ + return (QUuid::createUuidV5(ns, baseData)); +} + +QUuid PythonQtWrapper_QUuid::static_QUuid_createUuidV5(const QUuid& ns, const QString& baseData) +{ + return (QUuid::createUuidV5(ns, baseData)); +} + +QUuid PythonQtWrapper_QUuid::static_QUuid_fromRfc4122(const QByteArray& arg__1) +{ + return (QUuid::fromRfc4122(arg__1)); +} + +bool PythonQtWrapper_QUuid::isNull(QUuid* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QUuid::__ne__(QUuid* theWrappedObject, const QUuid& orig) const +{ + return ( (*theWrappedObject)!= orig); +} + +bool PythonQtWrapper_QUuid::__lt__(QUuid* theWrappedObject, const QUuid& other) const +{ + return ( (*theWrappedObject)< other); +} + +bool PythonQtWrapper_QUuid::__eq__(QUuid* theWrappedObject, const QUuid& orig) const +{ + return ( (*theWrappedObject)== orig); +} + +bool PythonQtWrapper_QUuid::__gt__(QUuid* theWrappedObject, const QUuid& other) const +{ + return ( (*theWrappedObject)> other); +} + +QByteArray PythonQtWrapper_QUuid::toByteArray(QUuid* theWrappedObject) const +{ + return ( theWrappedObject->toByteArray()); +} + +QByteArray PythonQtWrapper_QUuid::toRfc4122(QUuid* theWrappedObject) const +{ + return ( theWrappedObject->toRfc4122()); +} + +QString PythonQtWrapper_QUuid::toString(QUuid* theWrappedObject) const +{ + return ( theWrappedObject->toString()); +} + +QUuid::Variant PythonQtWrapper_QUuid::variant(QUuid* theWrappedObject) const +{ + return ( theWrappedObject->variant()); +} + +QUuid::Version PythonQtWrapper_QUuid::version(QUuid* theWrappedObject) const +{ + return ( theWrappedObject->version()); +} + +QString PythonQtWrapper_QUuid::py_toString(QUuid* obj) { return obj->toString(); } + + +PythonQtShell_QVariantAnimation::~PythonQtShell_QVariantAnimation() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QVariantAnimation::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QVariantAnimation::childEvent(arg__1); +} +void PythonQtShell_QVariantAnimation::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QVariantAnimation::customEvent(arg__1); +} +int PythonQtShell_QVariantAnimation::duration() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "duration"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("duration", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVariantAnimation::duration(); +} +bool PythonQtShell_QVariantAnimation::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVariantAnimation::event(event); +} +bool PythonQtShell_QVariantAnimation::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVariantAnimation::eventFilter(arg__1, arg__2); +} +QVariant PythonQtShell_QVariantAnimation::interpolated(const QVariant& from, const QVariant& to, qreal progress) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "interpolated"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QVariant&" , "const QVariant&" , "qreal"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QVariant returnValue; + void* args[4] = {NULL, (void*)&from, (void*)&to, (void*)&progress}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("interpolated", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVariantAnimation::interpolated(from, to, progress); +} +void PythonQtShell_QVariantAnimation::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QVariantAnimation::timerEvent(arg__1); +} +void PythonQtShell_QVariantAnimation::updateCurrentTime(int arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentTime"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QVariantAnimation::updateCurrentTime(arg__1); +} +void PythonQtShell_QVariantAnimation::updateCurrentValue(const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentValue"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QVariantAnimation::updateCurrentValue(value); +} +void PythonQtShell_QVariantAnimation::updateDirection(QAbstractAnimation::Direction direction) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateDirection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractAnimation::Direction"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&direction}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QVariantAnimation::updateDirection(direction); +} +void PythonQtShell_QVariantAnimation::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateState"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractAnimation::State" , "QAbstractAnimation::State"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&newState, (void*)&oldState}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QVariantAnimation::updateState(newState, oldState); +} +QVariantAnimation* PythonQtWrapper_QVariantAnimation::new_QVariantAnimation(QObject* parent) +{ +return new PythonQtShell_QVariantAnimation(parent); } + +QVariant PythonQtWrapper_QVariantAnimation::currentValue(QVariantAnimation* theWrappedObject) const +{ + return ( theWrappedObject->currentValue()); +} + +int PythonQtWrapper_QVariantAnimation::duration(QVariantAnimation* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QVariantAnimation*)theWrappedObject)->promoted_duration()); +} + +QEasingCurve PythonQtWrapper_QVariantAnimation::easingCurve(QVariantAnimation* theWrappedObject) const +{ + return ( theWrappedObject->easingCurve()); +} + +QVariant PythonQtWrapper_QVariantAnimation::endValue(QVariantAnimation* theWrappedObject) const +{ + return ( theWrappedObject->endValue()); +} + +bool PythonQtWrapper_QVariantAnimation::event(QVariantAnimation* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QVariantAnimation*)theWrappedObject)->promoted_event(event)); +} + +QVariant PythonQtWrapper_QVariantAnimation::interpolated(QVariantAnimation* theWrappedObject, const QVariant& from, const QVariant& to, qreal progress) const +{ + return ( ((PythonQtPublicPromoter_QVariantAnimation*)theWrappedObject)->promoted_interpolated(from, to, progress)); +} + +QVariant PythonQtWrapper_QVariantAnimation::keyValueAt(QVariantAnimation* theWrappedObject, qreal step) const +{ + return ( theWrappedObject->keyValueAt(step)); +} + +QVector > PythonQtWrapper_QVariantAnimation::keyValues(QVariantAnimation* theWrappedObject) const +{ + return ( theWrappedObject->keyValues()); +} + +void PythonQtWrapper_QVariantAnimation::setDuration(QVariantAnimation* theWrappedObject, int msecs) +{ + ( theWrappedObject->setDuration(msecs)); +} + +void PythonQtWrapper_QVariantAnimation::setEasingCurve(QVariantAnimation* theWrappedObject, const QEasingCurve& easing) +{ + ( theWrappedObject->setEasingCurve(easing)); +} + +void PythonQtWrapper_QVariantAnimation::setEndValue(QVariantAnimation* theWrappedObject, const QVariant& value) +{ + ( theWrappedObject->setEndValue(value)); +} + +void PythonQtWrapper_QVariantAnimation::setKeyValueAt(QVariantAnimation* theWrappedObject, qreal step, const QVariant& value) +{ + ( theWrappedObject->setKeyValueAt(step, value)); +} + +void PythonQtWrapper_QVariantAnimation::setKeyValues(QVariantAnimation* theWrappedObject, const QVector >& values) +{ + ( theWrappedObject->setKeyValues(values)); +} + +void PythonQtWrapper_QVariantAnimation::setStartValue(QVariantAnimation* theWrappedObject, const QVariant& value) +{ + ( theWrappedObject->setStartValue(value)); +} + +QVariant PythonQtWrapper_QVariantAnimation::startValue(QVariantAnimation* theWrappedObject) const +{ + return ( theWrappedObject->startValue()); +} + +void PythonQtWrapper_QVariantAnimation::updateCurrentTime(QVariantAnimation* theWrappedObject, int arg__1) +{ + ( ((PythonQtPublicPromoter_QVariantAnimation*)theWrappedObject)->promoted_updateCurrentTime(arg__1)); +} + +void PythonQtWrapper_QVariantAnimation::updateCurrentValue(QVariantAnimation* theWrappedObject, const QVariant& value) +{ + ( ((PythonQtPublicPromoter_QVariantAnimation*)theWrappedObject)->promoted_updateCurrentValue(value)); +} + +void PythonQtWrapper_QVariantAnimation::updateState(QVariantAnimation* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState) +{ + ( ((PythonQtPublicPromoter_QVariantAnimation*)theWrappedObject)->promoted_updateState(newState, oldState)); +} + + + +QWaitCondition* PythonQtWrapper_QWaitCondition::new_QWaitCondition() +{ +return new QWaitCondition(); } + +bool PythonQtWrapper_QWaitCondition::wait(QWaitCondition* theWrappedObject, QMutex* lockedMutex, unsigned long time) +{ + return ( theWrappedObject->wait(lockedMutex, time)); +} + +bool PythonQtWrapper_QWaitCondition::wait(QWaitCondition* theWrappedObject, QReadWriteLock* lockedReadWriteLock, unsigned long time) +{ + return ( theWrappedObject->wait(lockedReadWriteLock, time)); +} + +void PythonQtWrapper_QWaitCondition::wakeAll(QWaitCondition* theWrappedObject) +{ + ( theWrappedObject->wakeAll()); +} + +void PythonQtWrapper_QWaitCondition::wakeOne(QWaitCondition* theWrappedObject) +{ + ( theWrappedObject->wakeOne()); +} + + + +QXmlStreamAttribute* PythonQtWrapper_QXmlStreamAttribute::new_QXmlStreamAttribute() +{ +return new QXmlStreamAttribute(); } + +QXmlStreamAttribute* PythonQtWrapper_QXmlStreamAttribute::new_QXmlStreamAttribute(const QString& namespaceUri, const QString& name, const QString& value) +{ +return new QXmlStreamAttribute(namespaceUri, name, value); } + +QXmlStreamAttribute* PythonQtWrapper_QXmlStreamAttribute::new_QXmlStreamAttribute(const QString& qualifiedName, const QString& value) +{ +return new QXmlStreamAttribute(qualifiedName, value); } + +QXmlStreamAttribute* PythonQtWrapper_QXmlStreamAttribute::new_QXmlStreamAttribute(const QXmlStreamAttribute& arg__1) +{ +return new QXmlStreamAttribute(arg__1); } + +bool PythonQtWrapper_QXmlStreamAttribute::isDefault(QXmlStreamAttribute* theWrappedObject) const +{ + return ( theWrappedObject->isDefault()); +} + +QStringRef PythonQtWrapper_QXmlStreamAttribute::name(QXmlStreamAttribute* theWrappedObject) const +{ + return ( theWrappedObject->name()); +} + +QStringRef PythonQtWrapper_QXmlStreamAttribute::namespaceUri(QXmlStreamAttribute* theWrappedObject) const +{ + return ( theWrappedObject->namespaceUri()); +} + +bool PythonQtWrapper_QXmlStreamAttribute::__ne__(QXmlStreamAttribute* theWrappedObject, const QXmlStreamAttribute& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QXmlStreamAttribute::__eq__(QXmlStreamAttribute* theWrappedObject, const QXmlStreamAttribute& other) const +{ + return ( (*theWrappedObject)== other); +} + +QStringRef PythonQtWrapper_QXmlStreamAttribute::prefix(QXmlStreamAttribute* theWrappedObject) const +{ + return ( theWrappedObject->prefix()); +} + +QStringRef PythonQtWrapper_QXmlStreamAttribute::qualifiedName(QXmlStreamAttribute* theWrappedObject) const +{ + return ( theWrappedObject->qualifiedName()); +} + +QStringRef PythonQtWrapper_QXmlStreamAttribute::value(QXmlStreamAttribute* theWrappedObject) const +{ + return ( theWrappedObject->value()); +} + + + +QXmlStreamAttributes* PythonQtWrapper_QXmlStreamAttributes::new_QXmlStreamAttributes() +{ +return new QXmlStreamAttributes(); } + +void PythonQtWrapper_QXmlStreamAttributes::append(QXmlStreamAttributes* theWrappedObject, const QString& namespaceUri, const QString& name, const QString& value) +{ + ( theWrappedObject->append(namespaceUri, name, value)); +} + +void PythonQtWrapper_QXmlStreamAttributes::append(QXmlStreamAttributes* theWrappedObject, const QString& qualifiedName, const QString& value) +{ + ( theWrappedObject->append(qualifiedName, value)); +} + +void PythonQtWrapper_QXmlStreamAttributes::append(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& attribute) +{ + ( theWrappedObject->append(attribute)); +} + +const QXmlStreamAttribute* PythonQtWrapper_QXmlStreamAttributes::at(QXmlStreamAttributes* theWrappedObject, int i) const +{ + return &( theWrappedObject->at(i)); +} + +int PythonQtWrapper_QXmlStreamAttributes::capacity(QXmlStreamAttributes* theWrappedObject) const +{ + return ( theWrappedObject->capacity()); +} + +void PythonQtWrapper_QXmlStreamAttributes::clear(QXmlStreamAttributes* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +bool PythonQtWrapper_QXmlStreamAttributes::contains(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t) const +{ + return ( theWrappedObject->contains(t)); +} + +int PythonQtWrapper_QXmlStreamAttributes::count(QXmlStreamAttributes* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +int PythonQtWrapper_QXmlStreamAttributes::count(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t) const +{ + return ( theWrappedObject->count(t)); +} + +bool PythonQtWrapper_QXmlStreamAttributes::empty(QXmlStreamAttributes* theWrappedObject) const +{ + return ( theWrappedObject->empty()); +} + +bool PythonQtWrapper_QXmlStreamAttributes::endsWith(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t) const +{ + return ( theWrappedObject->endsWith(t)); +} + +QVector* PythonQtWrapper_QXmlStreamAttributes::fill(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t, int size) +{ + return &( theWrappedObject->fill(t, size)); +} + +const QXmlStreamAttribute* PythonQtWrapper_QXmlStreamAttributes::first(QXmlStreamAttributes* theWrappedObject) const +{ + return &( theWrappedObject->first()); +} + +QVector PythonQtWrapper_QXmlStreamAttributes::static_QXmlStreamAttributes_fromList(const QList& list) +{ + return (QXmlStreamAttributes::fromList(list)); +} + +bool PythonQtWrapper_QXmlStreamAttributes::hasAttribute(QXmlStreamAttributes* theWrappedObject, const QString& namespaceUri, const QString& name) const +{ + return ( theWrappedObject->hasAttribute(namespaceUri, name)); +} + +bool PythonQtWrapper_QXmlStreamAttributes::hasAttribute(QXmlStreamAttributes* theWrappedObject, const QString& qualifiedName) const +{ + return ( theWrappedObject->hasAttribute(qualifiedName)); +} + +int PythonQtWrapper_QXmlStreamAttributes::indexOf(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t, int from) const +{ + return ( theWrappedObject->indexOf(t, from)); +} + +bool PythonQtWrapper_QXmlStreamAttributes::isEmpty(QXmlStreamAttributes* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +bool PythonQtWrapper_QXmlStreamAttributes::isSharedWith(QXmlStreamAttributes* theWrappedObject, const QVector& other) const +{ + return ( theWrappedObject->isSharedWith(other)); +} + +const QXmlStreamAttribute* PythonQtWrapper_QXmlStreamAttributes::last(QXmlStreamAttributes* theWrappedObject) const +{ + return &( theWrappedObject->last()); +} + +int PythonQtWrapper_QXmlStreamAttributes::lastIndexOf(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t, int from) const +{ + return ( theWrappedObject->lastIndexOf(t, from)); +} + +QVector PythonQtWrapper_QXmlStreamAttributes::mid(QXmlStreamAttributes* theWrappedObject, int pos, int length) const +{ + return ( theWrappedObject->mid(pos, length)); +} + +bool PythonQtWrapper_QXmlStreamAttributes::__ne__(QXmlStreamAttributes* theWrappedObject, const QVector& v) const +{ + return ( (*theWrappedObject)!= v); +} + +bool PythonQtWrapper_QXmlStreamAttributes::__eq__(QXmlStreamAttributes* theWrappedObject, const QVector& v) const +{ + return ( (*theWrappedObject)== v); +} + +void PythonQtWrapper_QXmlStreamAttributes::prepend(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t) +{ + ( theWrappedObject->prepend(t)); +} + +void PythonQtWrapper_QXmlStreamAttributes::remove(QXmlStreamAttributes* theWrappedObject, int i) +{ + ( theWrappedObject->remove(i)); +} + +void PythonQtWrapper_QXmlStreamAttributes::remove(QXmlStreamAttributes* theWrappedObject, int i, int n) +{ + ( theWrappedObject->remove(i, n)); +} + +void PythonQtWrapper_QXmlStreamAttributes::replace(QXmlStreamAttributes* theWrappedObject, int i, const QXmlStreamAttribute& t) +{ + ( theWrappedObject->replace(i, t)); +} + +void PythonQtWrapper_QXmlStreamAttributes::reserve(QXmlStreamAttributes* theWrappedObject, int size) +{ + ( theWrappedObject->reserve(size)); +} + +void PythonQtWrapper_QXmlStreamAttributes::resize(QXmlStreamAttributes* theWrappedObject, int size) +{ + ( theWrappedObject->resize(size)); +} + +void PythonQtWrapper_QXmlStreamAttributes::setSharable(QXmlStreamAttributes* theWrappedObject, bool sharable) +{ + ( theWrappedObject->setSharable(sharable)); +} + +int PythonQtWrapper_QXmlStreamAttributes::size(QXmlStreamAttributes* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +void PythonQtWrapper_QXmlStreamAttributes::squeeze(QXmlStreamAttributes* theWrappedObject) +{ + ( theWrappedObject->squeeze()); +} + +bool PythonQtWrapper_QXmlStreamAttributes::startsWith(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t) const +{ + return ( theWrappedObject->startsWith(t)); +} + +void PythonQtWrapper_QXmlStreamAttributes::swap(QXmlStreamAttributes* theWrappedObject, QVector& other) +{ + ( theWrappedObject->swap(other)); +} + +QList PythonQtWrapper_QXmlStreamAttributes::toList(QXmlStreamAttributes* theWrappedObject) const +{ + return ( theWrappedObject->toList()); +} + +QStringRef PythonQtWrapper_QXmlStreamAttributes::value(QXmlStreamAttributes* theWrappedObject, const QString& namespaceUri, const QString& name) const +{ + return ( theWrappedObject->value(namespaceUri, name)); +} + +QStringRef PythonQtWrapper_QXmlStreamAttributes::value(QXmlStreamAttributes* theWrappedObject, const QString& qualifiedName) const +{ + return ( theWrappedObject->value(qualifiedName)); +} + + + +QXmlStreamEntityDeclaration* PythonQtWrapper_QXmlStreamEntityDeclaration::new_QXmlStreamEntityDeclaration() +{ +return new QXmlStreamEntityDeclaration(); } + +QXmlStreamEntityDeclaration* PythonQtWrapper_QXmlStreamEntityDeclaration::new_QXmlStreamEntityDeclaration(const QXmlStreamEntityDeclaration& arg__1) +{ +return new QXmlStreamEntityDeclaration(arg__1); } + +QStringRef PythonQtWrapper_QXmlStreamEntityDeclaration::name(QXmlStreamEntityDeclaration* theWrappedObject) const +{ + return ( theWrappedObject->name()); +} + +QStringRef PythonQtWrapper_QXmlStreamEntityDeclaration::notationName(QXmlStreamEntityDeclaration* theWrappedObject) const +{ + return ( theWrappedObject->notationName()); +} + +bool PythonQtWrapper_QXmlStreamEntityDeclaration::__ne__(QXmlStreamEntityDeclaration* theWrappedObject, const QXmlStreamEntityDeclaration& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QXmlStreamEntityDeclaration::__eq__(QXmlStreamEntityDeclaration* theWrappedObject, const QXmlStreamEntityDeclaration& other) const +{ + return ( (*theWrappedObject)== other); +} + +QStringRef PythonQtWrapper_QXmlStreamEntityDeclaration::publicId(QXmlStreamEntityDeclaration* theWrappedObject) const +{ + return ( theWrappedObject->publicId()); +} + +QStringRef PythonQtWrapper_QXmlStreamEntityDeclaration::systemId(QXmlStreamEntityDeclaration* theWrappedObject) const +{ + return ( theWrappedObject->systemId()); +} + +QStringRef PythonQtWrapper_QXmlStreamEntityDeclaration::value(QXmlStreamEntityDeclaration* theWrappedObject) const +{ + return ( theWrappedObject->value()); +} + + + +PythonQtShell_QXmlStreamEntityResolver::~PythonQtShell_QXmlStreamEntityResolver() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QString PythonQtShell_QXmlStreamEntityResolver::resolveEntity(const QString& publicId, const QString& systemId) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resolveEntity"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QString returnValue; + void* args[3] = {NULL, (void*)&publicId, (void*)&systemId}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("resolveEntity", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlStreamEntityResolver::resolveEntity(publicId, systemId); +} +QString PythonQtShell_QXmlStreamEntityResolver::resolveUndeclaredEntity(const QString& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resolveUndeclaredEntity"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QString returnValue; + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("resolveUndeclaredEntity", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlStreamEntityResolver::resolveUndeclaredEntity(name); +} +QXmlStreamEntityResolver* PythonQtWrapper_QXmlStreamEntityResolver::new_QXmlStreamEntityResolver() +{ +return new PythonQtShell_QXmlStreamEntityResolver(); } + +QString PythonQtWrapper_QXmlStreamEntityResolver::resolveEntity(QXmlStreamEntityResolver* theWrappedObject, const QString& publicId, const QString& systemId) +{ + return ( ((PythonQtPublicPromoter_QXmlStreamEntityResolver*)theWrappedObject)->promoted_resolveEntity(publicId, systemId)); +} + +QString PythonQtWrapper_QXmlStreamEntityResolver::resolveUndeclaredEntity(QXmlStreamEntityResolver* theWrappedObject, const QString& name) +{ + return ( ((PythonQtPublicPromoter_QXmlStreamEntityResolver*)theWrappedObject)->promoted_resolveUndeclaredEntity(name)); +} + + + +QXmlStreamNamespaceDeclaration* PythonQtWrapper_QXmlStreamNamespaceDeclaration::new_QXmlStreamNamespaceDeclaration() +{ +return new QXmlStreamNamespaceDeclaration(); } + +QXmlStreamNamespaceDeclaration* PythonQtWrapper_QXmlStreamNamespaceDeclaration::new_QXmlStreamNamespaceDeclaration(const QString& prefix, const QString& namespaceUri) +{ +return new QXmlStreamNamespaceDeclaration(prefix, namespaceUri); } + +QXmlStreamNamespaceDeclaration* PythonQtWrapper_QXmlStreamNamespaceDeclaration::new_QXmlStreamNamespaceDeclaration(const QXmlStreamNamespaceDeclaration& arg__1) +{ +return new QXmlStreamNamespaceDeclaration(arg__1); } + +QStringRef PythonQtWrapper_QXmlStreamNamespaceDeclaration::namespaceUri(QXmlStreamNamespaceDeclaration* theWrappedObject) const +{ + return ( theWrappedObject->namespaceUri()); +} + +bool PythonQtWrapper_QXmlStreamNamespaceDeclaration::__ne__(QXmlStreamNamespaceDeclaration* theWrappedObject, const QXmlStreamNamespaceDeclaration& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QXmlStreamNamespaceDeclaration::__eq__(QXmlStreamNamespaceDeclaration* theWrappedObject, const QXmlStreamNamespaceDeclaration& other) const +{ + return ( (*theWrappedObject)== other); +} + +QStringRef PythonQtWrapper_QXmlStreamNamespaceDeclaration::prefix(QXmlStreamNamespaceDeclaration* theWrappedObject) const +{ + return ( theWrappedObject->prefix()); +} + + + +QXmlStreamNotationDeclaration* PythonQtWrapper_QXmlStreamNotationDeclaration::new_QXmlStreamNotationDeclaration() +{ +return new QXmlStreamNotationDeclaration(); } + +QXmlStreamNotationDeclaration* PythonQtWrapper_QXmlStreamNotationDeclaration::new_QXmlStreamNotationDeclaration(const QXmlStreamNotationDeclaration& arg__1) +{ +return new QXmlStreamNotationDeclaration(arg__1); } + +QStringRef PythonQtWrapper_QXmlStreamNotationDeclaration::name(QXmlStreamNotationDeclaration* theWrappedObject) const +{ + return ( theWrappedObject->name()); +} + +bool PythonQtWrapper_QXmlStreamNotationDeclaration::__ne__(QXmlStreamNotationDeclaration* theWrappedObject, const QXmlStreamNotationDeclaration& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QXmlStreamNotationDeclaration::__eq__(QXmlStreamNotationDeclaration* theWrappedObject, const QXmlStreamNotationDeclaration& other) const +{ + return ( (*theWrappedObject)== other); +} + +QStringRef PythonQtWrapper_QXmlStreamNotationDeclaration::publicId(QXmlStreamNotationDeclaration* theWrappedObject) const +{ + return ( theWrappedObject->publicId()); +} + +QStringRef PythonQtWrapper_QXmlStreamNotationDeclaration::systemId(QXmlStreamNotationDeclaration* theWrappedObject) const +{ + return ( theWrappedObject->systemId()); +} + + + +QXmlStreamReader* PythonQtWrapper_QXmlStreamReader::new_QXmlStreamReader() +{ +return new QXmlStreamReader(); } + +QXmlStreamReader* PythonQtWrapper_QXmlStreamReader::new_QXmlStreamReader(QIODevice* device) +{ +return new QXmlStreamReader(device); } + +QXmlStreamReader* PythonQtWrapper_QXmlStreamReader::new_QXmlStreamReader(const QByteArray& data) +{ +return new QXmlStreamReader(data); } + +QXmlStreamReader* PythonQtWrapper_QXmlStreamReader::new_QXmlStreamReader(const QString& data) +{ +return new QXmlStreamReader(data); } + +void PythonQtWrapper_QXmlStreamReader::addData(QXmlStreamReader* theWrappedObject, const QByteArray& data) +{ + ( theWrappedObject->addData(data)); +} + +void PythonQtWrapper_QXmlStreamReader::addData(QXmlStreamReader* theWrappedObject, const QString& data) +{ + ( theWrappedObject->addData(data)); +} + +void PythonQtWrapper_QXmlStreamReader::addExtraNamespaceDeclaration(QXmlStreamReader* theWrappedObject, const QXmlStreamNamespaceDeclaration& extraNamespaceDeclaraction) +{ + ( theWrappedObject->addExtraNamespaceDeclaration(extraNamespaceDeclaraction)); +} + +void PythonQtWrapper_QXmlStreamReader::addExtraNamespaceDeclarations(QXmlStreamReader* theWrappedObject, const QVector& extraNamespaceDeclaractions) +{ + ( theWrappedObject->addExtraNamespaceDeclarations(extraNamespaceDeclaractions)); +} + +bool PythonQtWrapper_QXmlStreamReader::atEnd(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->atEnd()); +} + +QXmlStreamAttributes PythonQtWrapper_QXmlStreamReader::attributes(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->attributes()); +} + +qint64 PythonQtWrapper_QXmlStreamReader::characterOffset(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->characterOffset()); +} + +void PythonQtWrapper_QXmlStreamReader::clear(QXmlStreamReader* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +qint64 PythonQtWrapper_QXmlStreamReader::columnNumber(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->columnNumber()); +} + +QIODevice* PythonQtWrapper_QXmlStreamReader::device(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->device()); +} + +QStringRef PythonQtWrapper_QXmlStreamReader::documentEncoding(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->documentEncoding()); +} + +QStringRef PythonQtWrapper_QXmlStreamReader::documentVersion(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->documentVersion()); +} + +QStringRef PythonQtWrapper_QXmlStreamReader::dtdName(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->dtdName()); +} + +QStringRef PythonQtWrapper_QXmlStreamReader::dtdPublicId(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->dtdPublicId()); +} + +QStringRef PythonQtWrapper_QXmlStreamReader::dtdSystemId(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->dtdSystemId()); +} + +QVector PythonQtWrapper_QXmlStreamReader::entityDeclarations(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->entityDeclarations()); +} + +QXmlStreamEntityResolver* PythonQtWrapper_QXmlStreamReader::entityResolver(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->entityResolver()); +} + +QXmlStreamReader::Error PythonQtWrapper_QXmlStreamReader::error(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->error()); +} + +QString PythonQtWrapper_QXmlStreamReader::errorString(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->errorString()); +} + +bool PythonQtWrapper_QXmlStreamReader::hasError(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->hasError()); +} + +bool PythonQtWrapper_QXmlStreamReader::isCDATA(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->isCDATA()); +} + +bool PythonQtWrapper_QXmlStreamReader::isCharacters(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->isCharacters()); +} + +bool PythonQtWrapper_QXmlStreamReader::isComment(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->isComment()); +} + +bool PythonQtWrapper_QXmlStreamReader::isDTD(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->isDTD()); +} + +bool PythonQtWrapper_QXmlStreamReader::isEndDocument(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->isEndDocument()); +} + +bool PythonQtWrapper_QXmlStreamReader::isEndElement(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->isEndElement()); +} + +bool PythonQtWrapper_QXmlStreamReader::isEntityReference(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->isEntityReference()); +} + +bool PythonQtWrapper_QXmlStreamReader::isProcessingInstruction(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->isProcessingInstruction()); +} + +bool PythonQtWrapper_QXmlStreamReader::isStandaloneDocument(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->isStandaloneDocument()); +} + +bool PythonQtWrapper_QXmlStreamReader::isStartDocument(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->isStartDocument()); +} + +bool PythonQtWrapper_QXmlStreamReader::isStartElement(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->isStartElement()); +} + +bool PythonQtWrapper_QXmlStreamReader::isWhitespace(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->isWhitespace()); +} + +qint64 PythonQtWrapper_QXmlStreamReader::lineNumber(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->lineNumber()); +} + +QStringRef PythonQtWrapper_QXmlStreamReader::name(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->name()); +} + +QVector PythonQtWrapper_QXmlStreamReader::namespaceDeclarations(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->namespaceDeclarations()); +} + +bool PythonQtWrapper_QXmlStreamReader::namespaceProcessing(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->namespaceProcessing()); +} + +QStringRef PythonQtWrapper_QXmlStreamReader::namespaceUri(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->namespaceUri()); +} + +QVector PythonQtWrapper_QXmlStreamReader::notationDeclarations(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->notationDeclarations()); +} + +QStringRef PythonQtWrapper_QXmlStreamReader::prefix(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->prefix()); +} + +QStringRef PythonQtWrapper_QXmlStreamReader::processingInstructionData(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->processingInstructionData()); +} + +QStringRef PythonQtWrapper_QXmlStreamReader::processingInstructionTarget(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->processingInstructionTarget()); +} + +QStringRef PythonQtWrapper_QXmlStreamReader::qualifiedName(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->qualifiedName()); +} + +void PythonQtWrapper_QXmlStreamReader::raiseError(QXmlStreamReader* theWrappedObject, const QString& message) +{ + ( theWrappedObject->raiseError(message)); +} + +QString PythonQtWrapper_QXmlStreamReader::readElementText(QXmlStreamReader* theWrappedObject, QXmlStreamReader::ReadElementTextBehaviour behaviour) +{ + return ( theWrappedObject->readElementText(behaviour)); +} + +QXmlStreamReader::TokenType PythonQtWrapper_QXmlStreamReader::readNext(QXmlStreamReader* theWrappedObject) +{ + return ( theWrappedObject->readNext()); +} + +bool PythonQtWrapper_QXmlStreamReader::readNextStartElement(QXmlStreamReader* theWrappedObject) +{ + return ( theWrappedObject->readNextStartElement()); +} + +void PythonQtWrapper_QXmlStreamReader::setDevice(QXmlStreamReader* theWrappedObject, QIODevice* device) +{ + ( theWrappedObject->setDevice(device)); +} + +void PythonQtWrapper_QXmlStreamReader::setEntityResolver(QXmlStreamReader* theWrappedObject, QXmlStreamEntityResolver* resolver) +{ + ( theWrappedObject->setEntityResolver(resolver)); +} + +void PythonQtWrapper_QXmlStreamReader::setNamespaceProcessing(QXmlStreamReader* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setNamespaceProcessing(arg__1)); +} + +void PythonQtWrapper_QXmlStreamReader::skipCurrentElement(QXmlStreamReader* theWrappedObject) +{ + ( theWrappedObject->skipCurrentElement()); +} + +QStringRef PythonQtWrapper_QXmlStreamReader::text(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + +QString PythonQtWrapper_QXmlStreamReader::tokenString(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->tokenString()); +} + +QXmlStreamReader::TokenType PythonQtWrapper_QXmlStreamReader::tokenType(QXmlStreamReader* theWrappedObject) const +{ + return ( theWrappedObject->tokenType()); +} + + + +QXmlStreamWriter* PythonQtWrapper_QXmlStreamWriter::new_QXmlStreamWriter() +{ +return new QXmlStreamWriter(); } + +QXmlStreamWriter* PythonQtWrapper_QXmlStreamWriter::new_QXmlStreamWriter(QByteArray* array) +{ +return new QXmlStreamWriter(array); } + +QXmlStreamWriter* PythonQtWrapper_QXmlStreamWriter::new_QXmlStreamWriter(QIODevice* device) +{ +return new QXmlStreamWriter(device); } + +bool PythonQtWrapper_QXmlStreamWriter::autoFormatting(QXmlStreamWriter* theWrappedObject) const +{ + return ( theWrappedObject->autoFormatting()); +} + +int PythonQtWrapper_QXmlStreamWriter::autoFormattingIndent(QXmlStreamWriter* theWrappedObject) const +{ + return ( theWrappedObject->autoFormattingIndent()); +} + +QTextCodec* PythonQtWrapper_QXmlStreamWriter::codec(QXmlStreamWriter* theWrappedObject) const +{ + return ( theWrappedObject->codec()); +} + +QIODevice* PythonQtWrapper_QXmlStreamWriter::device(QXmlStreamWriter* theWrappedObject) const +{ + return ( theWrappedObject->device()); +} + +bool PythonQtWrapper_QXmlStreamWriter::hasError(QXmlStreamWriter* theWrappedObject) const +{ + return ( theWrappedObject->hasError()); +} + +void PythonQtWrapper_QXmlStreamWriter::setAutoFormatting(QXmlStreamWriter* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setAutoFormatting(arg__1)); +} + +void PythonQtWrapper_QXmlStreamWriter::setAutoFormattingIndent(QXmlStreamWriter* theWrappedObject, int spacesOrTabs) +{ + ( theWrappedObject->setAutoFormattingIndent(spacesOrTabs)); +} + +void PythonQtWrapper_QXmlStreamWriter::setCodec(QXmlStreamWriter* theWrappedObject, QTextCodec* codec) +{ + ( theWrappedObject->setCodec(codec)); +} + +void PythonQtWrapper_QXmlStreamWriter::setCodec(QXmlStreamWriter* theWrappedObject, const char* codecName) +{ + ( theWrappedObject->setCodec(codecName)); +} + +void PythonQtWrapper_QXmlStreamWriter::setDevice(QXmlStreamWriter* theWrappedObject, QIODevice* device) +{ + ( theWrappedObject->setDevice(device)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeAttribute(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri, const QString& name, const QString& value) +{ + ( theWrappedObject->writeAttribute(namespaceUri, name, value)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeAttribute(QXmlStreamWriter* theWrappedObject, const QString& qualifiedName, const QString& value) +{ + ( theWrappedObject->writeAttribute(qualifiedName, value)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeAttribute(QXmlStreamWriter* theWrappedObject, const QXmlStreamAttribute& attribute) +{ + ( theWrappedObject->writeAttribute(attribute)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeAttributes(QXmlStreamWriter* theWrappedObject, const QXmlStreamAttributes& attributes) +{ + ( theWrappedObject->writeAttributes(attributes)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeCDATA(QXmlStreamWriter* theWrappedObject, const QString& text) +{ + ( theWrappedObject->writeCDATA(text)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeCharacters(QXmlStreamWriter* theWrappedObject, const QString& text) +{ + ( theWrappedObject->writeCharacters(text)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeComment(QXmlStreamWriter* theWrappedObject, const QString& text) +{ + ( theWrappedObject->writeComment(text)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeCurrentToken(QXmlStreamWriter* theWrappedObject, const QXmlStreamReader& reader) +{ + ( theWrappedObject->writeCurrentToken(reader)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeDTD(QXmlStreamWriter* theWrappedObject, const QString& dtd) +{ + ( theWrappedObject->writeDTD(dtd)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeDefaultNamespace(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri) +{ + ( theWrappedObject->writeDefaultNamespace(namespaceUri)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeEmptyElement(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri, const QString& name) +{ + ( theWrappedObject->writeEmptyElement(namespaceUri, name)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeEmptyElement(QXmlStreamWriter* theWrappedObject, const QString& qualifiedName) +{ + ( theWrappedObject->writeEmptyElement(qualifiedName)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeEndDocument(QXmlStreamWriter* theWrappedObject) +{ + ( theWrappedObject->writeEndDocument()); +} + +void PythonQtWrapper_QXmlStreamWriter::writeEndElement(QXmlStreamWriter* theWrappedObject) +{ + ( theWrappedObject->writeEndElement()); +} + +void PythonQtWrapper_QXmlStreamWriter::writeEntityReference(QXmlStreamWriter* theWrappedObject, const QString& name) +{ + ( theWrappedObject->writeEntityReference(name)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeNamespace(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri, const QString& prefix) +{ + ( theWrappedObject->writeNamespace(namespaceUri, prefix)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeProcessingInstruction(QXmlStreamWriter* theWrappedObject, const QString& target, const QString& data) +{ + ( theWrappedObject->writeProcessingInstruction(target, data)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeStartDocument(QXmlStreamWriter* theWrappedObject) +{ + ( theWrappedObject->writeStartDocument()); +} + +void PythonQtWrapper_QXmlStreamWriter::writeStartDocument(QXmlStreamWriter* theWrappedObject, const QString& version) +{ + ( theWrappedObject->writeStartDocument(version)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeStartDocument(QXmlStreamWriter* theWrappedObject, const QString& version, bool standalone) +{ + ( theWrappedObject->writeStartDocument(version, standalone)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeStartElement(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri, const QString& name) +{ + ( theWrappedObject->writeStartElement(namespaceUri, name)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeStartElement(QXmlStreamWriter* theWrappedObject, const QString& qualifiedName) +{ + ( theWrappedObject->writeStartElement(qualifiedName)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeTextElement(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri, const QString& name, const QString& text) +{ + ( theWrappedObject->writeTextElement(namespaceUri, name, text)); +} + +void PythonQtWrapper_QXmlStreamWriter::writeTextElement(QXmlStreamWriter* theWrappedObject, const QString& qualifiedName, const QString& text) +{ + ( theWrappedObject->writeTextElement(qualifiedName, text)); +} + + diff --git a/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core2.h b/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core2.h new file mode 100644 index 00000000..701b325c --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core2.h @@ -0,0 +1,557 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +class PythonQtShell_QTimer : public QTimer +{ +public: + PythonQtShell_QTimer(QObject* parent = 0):QTimer(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QTimer(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QTimer : public QTimer +{ public: +inline void promoted_timerEvent(QTimerEvent* arg__1) { QTimer::timerEvent(arg__1); } +}; + +class PythonQtWrapper_QTimer : public QObject +{ Q_OBJECT +public: +public slots: +QTimer* new_QTimer(QObject* parent = 0); +void delete_QTimer(QTimer* obj) { delete obj; } + int interval(QTimer* theWrappedObject) const; + bool isActive(QTimer* theWrappedObject) const; + bool isSingleShot(QTimer* theWrappedObject) const; + int remainingTime(QTimer* theWrappedObject) const; + void setInterval(QTimer* theWrappedObject, int msec); + void setSingleShot(QTimer* theWrappedObject, bool singleShot); + void setTimerType(QTimer* theWrappedObject, Qt::TimerType atype); + void timerEvent(QTimer* theWrappedObject, QTimerEvent* arg__1); + int timerId(QTimer* theWrappedObject) const; + Qt::TimerType timerType(QTimer* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QTimerEvent : public QTimerEvent +{ +public: + PythonQtShell_QTimerEvent(int timerId):QTimerEvent(timerId),_wrapper(NULL) {}; + + ~PythonQtShell_QTimerEvent(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTimerEvent : public QObject +{ Q_OBJECT +public: +public slots: +QTimerEvent* new_QTimerEvent(int timerId); +void delete_QTimerEvent(QTimerEvent* obj) { delete obj; } + int timerId(QTimerEvent* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QTranslator : public QTranslator +{ +public: + PythonQtShell_QTranslator(QObject* parent = 0):QTranslator(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QTranslator(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool isEmpty() const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual QString translate(const char* context, const char* sourceText, const char* disambiguation = 0, int n = -1) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QTranslator : public QTranslator +{ public: +inline bool promoted_isEmpty() const { return QTranslator::isEmpty(); } +}; + +class PythonQtWrapper_QTranslator : public QObject +{ Q_OBJECT +public: +public slots: +QTranslator* new_QTranslator(QObject* parent = 0); +void delete_QTranslator(QTranslator* obj) { delete obj; } + bool isEmpty(QTranslator* theWrappedObject) const; + bool load(QTranslator* theWrappedObject, const QLocale& locale, const QString& filename, const QString& prefix = QString(), const QString& directory = QString(), const QString& suffix = QString()); + bool load(QTranslator* theWrappedObject, const QString& filename, const QString& directory = QString(), const QString& search_delimiters = QString(), const QString& suffix = QString()); + bool load(QTranslator* theWrappedObject, const uchar* data, int len, const QString& directory = QString()); +}; + + + + + +class PythonQtShell_QUuid : public QUuid +{ +public: + PythonQtShell_QUuid():QUuid(),_wrapper(NULL) {}; + PythonQtShell_QUuid(const QByteArray& arg__1):QUuid(arg__1),_wrapper(NULL) {}; + PythonQtShell_QUuid(const QString& arg__1):QUuid(arg__1),_wrapper(NULL) {}; + PythonQtShell_QUuid(uint l, ushort w1, ushort w2, uchar b1, uchar b2, uchar b3, uchar b4, uchar b5, uchar b6, uchar b7, uchar b8):QUuid(l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8),_wrapper(NULL) {}; + + ~PythonQtShell_QUuid(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QUuid : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Version Variant ) +enum Version{ + VerUnknown = QUuid::VerUnknown, Time = QUuid::Time, EmbeddedPOSIX = QUuid::EmbeddedPOSIX, Md5 = QUuid::Md5, Name = QUuid::Name, Random = QUuid::Random, Sha1 = QUuid::Sha1}; +enum Variant{ + VarUnknown = QUuid::VarUnknown, NCS = QUuid::NCS, DCE = QUuid::DCE, Microsoft = QUuid::Microsoft, Reserved = QUuid::Reserved}; +public slots: +QUuid* new_QUuid(); +QUuid* new_QUuid(const QByteArray& arg__1); +QUuid* new_QUuid(const QString& arg__1); +QUuid* new_QUuid(uint l, ushort w1, ushort w2, uchar b1, uchar b2, uchar b3, uchar b4, uchar b5, uchar b6, uchar b7, uchar b8); +QUuid* new_QUuid(const QUuid& other) { +PythonQtShell_QUuid* a = new PythonQtShell_QUuid(); +*((QUuid*)a) = other; +return a; } +void delete_QUuid(QUuid* obj) { delete obj; } + QUuid static_QUuid_createUuid(); + QUuid static_QUuid_createUuidV3(const QUuid& ns, const QByteArray& baseData); + QUuid static_QUuid_createUuidV3(const QUuid& ns, const QString& baseData); + QUuid static_QUuid_createUuidV5(const QUuid& ns, const QByteArray& baseData); + QUuid static_QUuid_createUuidV5(const QUuid& ns, const QString& baseData); + QUuid static_QUuid_fromRfc4122(const QByteArray& arg__1); + bool isNull(QUuid* theWrappedObject) const; + bool __ne__(QUuid* theWrappedObject, const QUuid& orig) const; + bool __lt__(QUuid* theWrappedObject, const QUuid& other) const; + bool __eq__(QUuid* theWrappedObject, const QUuid& orig) const; + bool __gt__(QUuid* theWrappedObject, const QUuid& other) const; + QByteArray toByteArray(QUuid* theWrappedObject) const; + QByteArray toRfc4122(QUuid* theWrappedObject) const; + QString toString(QUuid* theWrappedObject) const; + QUuid::Variant variant(QUuid* theWrappedObject) const; + QUuid::Version version(QUuid* theWrappedObject) const; + QString py_toString(QUuid*); + bool __nonzero__(QUuid* obj) { return !obj->isNull(); } +void py_set_data3(QUuid* theWrappedObject, ushort data3){ theWrappedObject->data3 = data3; } +ushort py_get_data3(QUuid* theWrappedObject){ return theWrappedObject->data3; } +void py_set_data1(QUuid* theWrappedObject, uint data1){ theWrappedObject->data1 = data1; } +uint py_get_data1(QUuid* theWrappedObject){ return theWrappedObject->data1; } +void py_set_data2(QUuid* theWrappedObject, ushort data2){ theWrappedObject->data2 = data2; } +ushort py_get_data2(QUuid* theWrappedObject){ return theWrappedObject->data2; } +}; + + + + + +class PythonQtShell_QVariantAnimation : public QVariantAnimation +{ +public: + PythonQtShell_QVariantAnimation(QObject* parent = 0):QVariantAnimation(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QVariantAnimation(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int duration() const; +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual QVariant interpolated(const QVariant& from, const QVariant& to, qreal progress) const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual void updateCurrentTime(int arg__1); +virtual void updateCurrentValue(const QVariant& value); +virtual void updateDirection(QAbstractAnimation::Direction direction); +virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QVariantAnimation : public QVariantAnimation +{ public: +inline int promoted_duration() const { return QVariantAnimation::duration(); } +inline bool promoted_event(QEvent* event) { return QVariantAnimation::event(event); } +inline QVariant promoted_interpolated(const QVariant& from, const QVariant& to, qreal progress) const { return QVariantAnimation::interpolated(from, to, progress); } +inline void promoted_updateCurrentTime(int arg__1) { QVariantAnimation::updateCurrentTime(arg__1); } +inline void promoted_updateCurrentValue(const QVariant& value) { QVariantAnimation::updateCurrentValue(value); } +inline void promoted_updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { QVariantAnimation::updateState(newState, oldState); } +}; + +class PythonQtWrapper_QVariantAnimation : public QObject +{ Q_OBJECT +public: +public slots: +QVariantAnimation* new_QVariantAnimation(QObject* parent = 0); +void delete_QVariantAnimation(QVariantAnimation* obj) { delete obj; } + QVariant currentValue(QVariantAnimation* theWrappedObject) const; + int duration(QVariantAnimation* theWrappedObject) const; + QEasingCurve easingCurve(QVariantAnimation* theWrappedObject) const; + QVariant endValue(QVariantAnimation* theWrappedObject) const; + bool event(QVariantAnimation* theWrappedObject, QEvent* event); + QVariant interpolated(QVariantAnimation* theWrappedObject, const QVariant& from, const QVariant& to, qreal progress) const; + QVariant keyValueAt(QVariantAnimation* theWrappedObject, qreal step) const; + QVector > keyValues(QVariantAnimation* theWrappedObject) const; + void setDuration(QVariantAnimation* theWrappedObject, int msecs); + void setEasingCurve(QVariantAnimation* theWrappedObject, const QEasingCurve& easing); + void setEndValue(QVariantAnimation* theWrappedObject, const QVariant& value); + void setKeyValueAt(QVariantAnimation* theWrappedObject, qreal step, const QVariant& value); + void setKeyValues(QVariantAnimation* theWrappedObject, const QVector >& values); + void setStartValue(QVariantAnimation* theWrappedObject, const QVariant& value); + QVariant startValue(QVariantAnimation* theWrappedObject) const; + void updateCurrentTime(QVariantAnimation* theWrappedObject, int arg__1); + void updateCurrentValue(QVariantAnimation* theWrappedObject, const QVariant& value); + void updateState(QVariantAnimation* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState); +}; + + + + + +class PythonQtWrapper_QWaitCondition : public QObject +{ Q_OBJECT +public: +public slots: +QWaitCondition* new_QWaitCondition(); +void delete_QWaitCondition(QWaitCondition* obj) { delete obj; } + bool wait(QWaitCondition* theWrappedObject, QMutex* lockedMutex, unsigned long time = ULONG_MAX); + bool wait(QWaitCondition* theWrappedObject, QReadWriteLock* lockedReadWriteLock, unsigned long time = ULONG_MAX); + void wakeAll(QWaitCondition* theWrappedObject); + void wakeOne(QWaitCondition* theWrappedObject); +}; + + + + + +class PythonQtWrapper_QXmlStreamAttribute : public QObject +{ Q_OBJECT +public: +public slots: +QXmlStreamAttribute* new_QXmlStreamAttribute(); +QXmlStreamAttribute* new_QXmlStreamAttribute(const QString& namespaceUri, const QString& name, const QString& value); +QXmlStreamAttribute* new_QXmlStreamAttribute(const QString& qualifiedName, const QString& value); +QXmlStreamAttribute* new_QXmlStreamAttribute(const QXmlStreamAttribute& arg__1); +void delete_QXmlStreamAttribute(QXmlStreamAttribute* obj) { delete obj; } + bool isDefault(QXmlStreamAttribute* theWrappedObject) const; + QStringRef name(QXmlStreamAttribute* theWrappedObject) const; + QStringRef namespaceUri(QXmlStreamAttribute* theWrappedObject) const; + bool __ne__(QXmlStreamAttribute* theWrappedObject, const QXmlStreamAttribute& other) const; + bool __eq__(QXmlStreamAttribute* theWrappedObject, const QXmlStreamAttribute& other) const; + QStringRef prefix(QXmlStreamAttribute* theWrappedObject) const; + QStringRef qualifiedName(QXmlStreamAttribute* theWrappedObject) const; + QStringRef value(QXmlStreamAttribute* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QXmlStreamAttributes : public QObject +{ Q_OBJECT +public: +public slots: +QXmlStreamAttributes* new_QXmlStreamAttributes(); +QXmlStreamAttributes* new_QXmlStreamAttributes(const QXmlStreamAttributes& other) { +QXmlStreamAttributes* a = new QXmlStreamAttributes(); +*((QXmlStreamAttributes*)a) = other; +return a; } +void delete_QXmlStreamAttributes(QXmlStreamAttributes* obj) { delete obj; } + void append(QXmlStreamAttributes* theWrappedObject, const QString& namespaceUri, const QString& name, const QString& value); + void append(QXmlStreamAttributes* theWrappedObject, const QString& qualifiedName, const QString& value); + void append(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& attribute); + const QXmlStreamAttribute* at(QXmlStreamAttributes* theWrappedObject, int i) const; + int capacity(QXmlStreamAttributes* theWrappedObject) const; + void clear(QXmlStreamAttributes* theWrappedObject); + bool contains(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t) const; + int count(QXmlStreamAttributes* theWrappedObject) const; + int count(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t) const; + bool empty(QXmlStreamAttributes* theWrappedObject) const; + bool endsWith(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t) const; + QVector* fill(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t, int size); + const QXmlStreamAttribute* first(QXmlStreamAttributes* theWrappedObject) const; + QVector static_QXmlStreamAttributes_fromList(const QList& list); + bool hasAttribute(QXmlStreamAttributes* theWrappedObject, const QString& namespaceUri, const QString& name) const; + bool hasAttribute(QXmlStreamAttributes* theWrappedObject, const QString& qualifiedName) const; + int indexOf(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t, int from) const; + bool isEmpty(QXmlStreamAttributes* theWrappedObject) const; + bool isSharedWith(QXmlStreamAttributes* theWrappedObject, const QVector& other) const; + const QXmlStreamAttribute* last(QXmlStreamAttributes* theWrappedObject) const; + int lastIndexOf(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t, int from) const; + QVector mid(QXmlStreamAttributes* theWrappedObject, int pos, int length) const; + bool __ne__(QXmlStreamAttributes* theWrappedObject, const QVector& v) const; + bool __eq__(QXmlStreamAttributes* theWrappedObject, const QVector& v) const; + void prepend(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t); + void remove(QXmlStreamAttributes* theWrappedObject, int i); + void remove(QXmlStreamAttributes* theWrappedObject, int i, int n); + void replace(QXmlStreamAttributes* theWrappedObject, int i, const QXmlStreamAttribute& t); + void reserve(QXmlStreamAttributes* theWrappedObject, int size); + void resize(QXmlStreamAttributes* theWrappedObject, int size); + void setSharable(QXmlStreamAttributes* theWrappedObject, bool sharable); + int size(QXmlStreamAttributes* theWrappedObject) const; + void squeeze(QXmlStreamAttributes* theWrappedObject); + bool startsWith(QXmlStreamAttributes* theWrappedObject, const QXmlStreamAttribute& t) const; + void swap(QXmlStreamAttributes* theWrappedObject, QVector& other); + QList toList(QXmlStreamAttributes* theWrappedObject) const; + QStringRef value(QXmlStreamAttributes* theWrappedObject, const QString& namespaceUri, const QString& name) const; + QStringRef value(QXmlStreamAttributes* theWrappedObject, const QString& qualifiedName) const; +}; + + + + + +class PythonQtWrapper_QXmlStreamEntityDeclaration : public QObject +{ Q_OBJECT +public: +public slots: +QXmlStreamEntityDeclaration* new_QXmlStreamEntityDeclaration(); +QXmlStreamEntityDeclaration* new_QXmlStreamEntityDeclaration(const QXmlStreamEntityDeclaration& arg__1); +void delete_QXmlStreamEntityDeclaration(QXmlStreamEntityDeclaration* obj) { delete obj; } + QStringRef name(QXmlStreamEntityDeclaration* theWrappedObject) const; + QStringRef notationName(QXmlStreamEntityDeclaration* theWrappedObject) const; + bool __ne__(QXmlStreamEntityDeclaration* theWrappedObject, const QXmlStreamEntityDeclaration& other) const; + bool __eq__(QXmlStreamEntityDeclaration* theWrappedObject, const QXmlStreamEntityDeclaration& other) const; + QStringRef publicId(QXmlStreamEntityDeclaration* theWrappedObject) const; + QStringRef systemId(QXmlStreamEntityDeclaration* theWrappedObject) const; + QStringRef value(QXmlStreamEntityDeclaration* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QXmlStreamEntityResolver : public QXmlStreamEntityResolver +{ +public: + PythonQtShell_QXmlStreamEntityResolver():QXmlStreamEntityResolver(),_wrapper(NULL) {}; + + ~PythonQtShell_QXmlStreamEntityResolver(); + +virtual QString resolveEntity(const QString& publicId, const QString& systemId); +virtual QString resolveUndeclaredEntity(const QString& name); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QXmlStreamEntityResolver : public QXmlStreamEntityResolver +{ public: +inline QString promoted_resolveEntity(const QString& publicId, const QString& systemId) { return QXmlStreamEntityResolver::resolveEntity(publicId, systemId); } +inline QString promoted_resolveUndeclaredEntity(const QString& name) { return QXmlStreamEntityResolver::resolveUndeclaredEntity(name); } +}; + +class PythonQtWrapper_QXmlStreamEntityResolver : public QObject +{ Q_OBJECT +public: +public slots: +QXmlStreamEntityResolver* new_QXmlStreamEntityResolver(); +void delete_QXmlStreamEntityResolver(QXmlStreamEntityResolver* obj) { delete obj; } + QString resolveEntity(QXmlStreamEntityResolver* theWrappedObject, const QString& publicId, const QString& systemId); + QString resolveUndeclaredEntity(QXmlStreamEntityResolver* theWrappedObject, const QString& name); +}; + + + + + +class PythonQtWrapper_QXmlStreamNamespaceDeclaration : public QObject +{ Q_OBJECT +public: +public slots: +QXmlStreamNamespaceDeclaration* new_QXmlStreamNamespaceDeclaration(); +QXmlStreamNamespaceDeclaration* new_QXmlStreamNamespaceDeclaration(const QString& prefix, const QString& namespaceUri); +QXmlStreamNamespaceDeclaration* new_QXmlStreamNamespaceDeclaration(const QXmlStreamNamespaceDeclaration& arg__1); +void delete_QXmlStreamNamespaceDeclaration(QXmlStreamNamespaceDeclaration* obj) { delete obj; } + QStringRef namespaceUri(QXmlStreamNamespaceDeclaration* theWrappedObject) const; + bool __ne__(QXmlStreamNamespaceDeclaration* theWrappedObject, const QXmlStreamNamespaceDeclaration& other) const; + bool __eq__(QXmlStreamNamespaceDeclaration* theWrappedObject, const QXmlStreamNamespaceDeclaration& other) const; + QStringRef prefix(QXmlStreamNamespaceDeclaration* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QXmlStreamNotationDeclaration : public QObject +{ Q_OBJECT +public: +public slots: +QXmlStreamNotationDeclaration* new_QXmlStreamNotationDeclaration(); +QXmlStreamNotationDeclaration* new_QXmlStreamNotationDeclaration(const QXmlStreamNotationDeclaration& arg__1); +void delete_QXmlStreamNotationDeclaration(QXmlStreamNotationDeclaration* obj) { delete obj; } + QStringRef name(QXmlStreamNotationDeclaration* theWrappedObject) const; + bool __ne__(QXmlStreamNotationDeclaration* theWrappedObject, const QXmlStreamNotationDeclaration& other) const; + bool __eq__(QXmlStreamNotationDeclaration* theWrappedObject, const QXmlStreamNotationDeclaration& other) const; + QStringRef publicId(QXmlStreamNotationDeclaration* theWrappedObject) const; + QStringRef systemId(QXmlStreamNotationDeclaration* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QXmlStreamReader : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ReadElementTextBehaviour TokenType Error ) +enum ReadElementTextBehaviour{ + ErrorOnUnexpectedElement = QXmlStreamReader::ErrorOnUnexpectedElement, IncludeChildElements = QXmlStreamReader::IncludeChildElements, SkipChildElements = QXmlStreamReader::SkipChildElements}; +enum TokenType{ + NoToken = QXmlStreamReader::NoToken, Invalid = QXmlStreamReader::Invalid, StartDocument = QXmlStreamReader::StartDocument, EndDocument = QXmlStreamReader::EndDocument, StartElement = QXmlStreamReader::StartElement, EndElement = QXmlStreamReader::EndElement, Characters = QXmlStreamReader::Characters, Comment = QXmlStreamReader::Comment, DTD = QXmlStreamReader::DTD, EntityReference = QXmlStreamReader::EntityReference, ProcessingInstruction = QXmlStreamReader::ProcessingInstruction}; +enum Error{ + NoError = QXmlStreamReader::NoError, UnexpectedElementError = QXmlStreamReader::UnexpectedElementError, CustomError = QXmlStreamReader::CustomError, NotWellFormedError = QXmlStreamReader::NotWellFormedError, PrematureEndOfDocumentError = QXmlStreamReader::PrematureEndOfDocumentError}; +public slots: +QXmlStreamReader* new_QXmlStreamReader(); +QXmlStreamReader* new_QXmlStreamReader(QIODevice* device); +QXmlStreamReader* new_QXmlStreamReader(const QByteArray& data); +QXmlStreamReader* new_QXmlStreamReader(const QString& data); +void delete_QXmlStreamReader(QXmlStreamReader* obj) { delete obj; } + void addData(QXmlStreamReader* theWrappedObject, const QByteArray& data); + void addData(QXmlStreamReader* theWrappedObject, const QString& data); + void addExtraNamespaceDeclaration(QXmlStreamReader* theWrappedObject, const QXmlStreamNamespaceDeclaration& extraNamespaceDeclaraction); + void addExtraNamespaceDeclarations(QXmlStreamReader* theWrappedObject, const QVector& extraNamespaceDeclaractions); + bool atEnd(QXmlStreamReader* theWrappedObject) const; + QXmlStreamAttributes attributes(QXmlStreamReader* theWrappedObject) const; + qint64 characterOffset(QXmlStreamReader* theWrappedObject) const; + void clear(QXmlStreamReader* theWrappedObject); + qint64 columnNumber(QXmlStreamReader* theWrappedObject) const; + QIODevice* device(QXmlStreamReader* theWrappedObject) const; + QStringRef documentEncoding(QXmlStreamReader* theWrappedObject) const; + QStringRef documentVersion(QXmlStreamReader* theWrappedObject) const; + QStringRef dtdName(QXmlStreamReader* theWrappedObject) const; + QStringRef dtdPublicId(QXmlStreamReader* theWrappedObject) const; + QStringRef dtdSystemId(QXmlStreamReader* theWrappedObject) const; + QVector entityDeclarations(QXmlStreamReader* theWrappedObject) const; + QXmlStreamEntityResolver* entityResolver(QXmlStreamReader* theWrappedObject) const; + QXmlStreamReader::Error error(QXmlStreamReader* theWrappedObject) const; + QString errorString(QXmlStreamReader* theWrappedObject) const; + bool hasError(QXmlStreamReader* theWrappedObject) const; + bool isCDATA(QXmlStreamReader* theWrappedObject) const; + bool isCharacters(QXmlStreamReader* theWrappedObject) const; + bool isComment(QXmlStreamReader* theWrappedObject) const; + bool isDTD(QXmlStreamReader* theWrappedObject) const; + bool isEndDocument(QXmlStreamReader* theWrappedObject) const; + bool isEndElement(QXmlStreamReader* theWrappedObject) const; + bool isEntityReference(QXmlStreamReader* theWrappedObject) const; + bool isProcessingInstruction(QXmlStreamReader* theWrappedObject) const; + bool isStandaloneDocument(QXmlStreamReader* theWrappedObject) const; + bool isStartDocument(QXmlStreamReader* theWrappedObject) const; + bool isStartElement(QXmlStreamReader* theWrappedObject) const; + bool isWhitespace(QXmlStreamReader* theWrappedObject) const; + qint64 lineNumber(QXmlStreamReader* theWrappedObject) const; + QStringRef name(QXmlStreamReader* theWrappedObject) const; + QVector namespaceDeclarations(QXmlStreamReader* theWrappedObject) const; + bool namespaceProcessing(QXmlStreamReader* theWrappedObject) const; + QStringRef namespaceUri(QXmlStreamReader* theWrappedObject) const; + QVector notationDeclarations(QXmlStreamReader* theWrappedObject) const; + QStringRef prefix(QXmlStreamReader* theWrappedObject) const; + QStringRef processingInstructionData(QXmlStreamReader* theWrappedObject) const; + QStringRef processingInstructionTarget(QXmlStreamReader* theWrappedObject) const; + QStringRef qualifiedName(QXmlStreamReader* theWrappedObject) const; + void raiseError(QXmlStreamReader* theWrappedObject, const QString& message = QString()); + QString readElementText(QXmlStreamReader* theWrappedObject, QXmlStreamReader::ReadElementTextBehaviour behaviour = QXmlStreamReader::ErrorOnUnexpectedElement); + QXmlStreamReader::TokenType readNext(QXmlStreamReader* theWrappedObject); + bool readNextStartElement(QXmlStreamReader* theWrappedObject); + void setDevice(QXmlStreamReader* theWrappedObject, QIODevice* device); + void setEntityResolver(QXmlStreamReader* theWrappedObject, QXmlStreamEntityResolver* resolver); + void setNamespaceProcessing(QXmlStreamReader* theWrappedObject, bool arg__1); + void skipCurrentElement(QXmlStreamReader* theWrappedObject); + QStringRef text(QXmlStreamReader* theWrappedObject) const; + QString tokenString(QXmlStreamReader* theWrappedObject) const; + QXmlStreamReader::TokenType tokenType(QXmlStreamReader* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QXmlStreamWriter : public QObject +{ Q_OBJECT +public: +public slots: +QXmlStreamWriter* new_QXmlStreamWriter(); +QXmlStreamWriter* new_QXmlStreamWriter(QByteArray* array); +QXmlStreamWriter* new_QXmlStreamWriter(QIODevice* device); +void delete_QXmlStreamWriter(QXmlStreamWriter* obj) { delete obj; } + bool autoFormatting(QXmlStreamWriter* theWrappedObject) const; + int autoFormattingIndent(QXmlStreamWriter* theWrappedObject) const; + QTextCodec* codec(QXmlStreamWriter* theWrappedObject) const; + QIODevice* device(QXmlStreamWriter* theWrappedObject) const; + bool hasError(QXmlStreamWriter* theWrappedObject) const; + void setAutoFormatting(QXmlStreamWriter* theWrappedObject, bool arg__1); + void setAutoFormattingIndent(QXmlStreamWriter* theWrappedObject, int spacesOrTabs); + void setCodec(QXmlStreamWriter* theWrappedObject, QTextCodec* codec); + void setCodec(QXmlStreamWriter* theWrappedObject, const char* codecName); + void setDevice(QXmlStreamWriter* theWrappedObject, QIODevice* device); + void writeAttribute(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri, const QString& name, const QString& value); + void writeAttribute(QXmlStreamWriter* theWrappedObject, const QString& qualifiedName, const QString& value); + void writeAttribute(QXmlStreamWriter* theWrappedObject, const QXmlStreamAttribute& attribute); + void writeAttributes(QXmlStreamWriter* theWrappedObject, const QXmlStreamAttributes& attributes); + void writeCDATA(QXmlStreamWriter* theWrappedObject, const QString& text); + void writeCharacters(QXmlStreamWriter* theWrappedObject, const QString& text); + void writeComment(QXmlStreamWriter* theWrappedObject, const QString& text); + void writeCurrentToken(QXmlStreamWriter* theWrappedObject, const QXmlStreamReader& reader); + void writeDTD(QXmlStreamWriter* theWrappedObject, const QString& dtd); + void writeDefaultNamespace(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri); + void writeEmptyElement(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri, const QString& name); + void writeEmptyElement(QXmlStreamWriter* theWrappedObject, const QString& qualifiedName); + void writeEndDocument(QXmlStreamWriter* theWrappedObject); + void writeEndElement(QXmlStreamWriter* theWrappedObject); + void writeEntityReference(QXmlStreamWriter* theWrappedObject, const QString& name); + void writeNamespace(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri, const QString& prefix = QString()); + void writeProcessingInstruction(QXmlStreamWriter* theWrappedObject, const QString& target, const QString& data = QString()); + void writeStartDocument(QXmlStreamWriter* theWrappedObject); + void writeStartDocument(QXmlStreamWriter* theWrappedObject, const QString& version); + void writeStartDocument(QXmlStreamWriter* theWrappedObject, const QString& version, bool standalone); + void writeStartElement(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri, const QString& name); + void writeStartElement(QXmlStreamWriter* theWrappedObject, const QString& qualifiedName); + void writeTextElement(QXmlStreamWriter* theWrappedObject, const QString& namespaceUri, const QString& name, const QString& text); + void writeTextElement(QXmlStreamWriter* theWrappedObject, const QString& qualifiedName, const QString& text); +}; + + diff --git a/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core_init.cpp b/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core_init.cpp new file mode 100644 index 00000000..9a152155 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_core/com_trolltech_qt_core_init.cpp @@ -0,0 +1,114 @@ +#include +#include "com_trolltech_qt_core0.h" +#include "com_trolltech_qt_core1.h" +#include "com_trolltech_qt_core2.h" + +static void* polymorphichandler_QEvent(const void *ptr, const char **class_name) +{ + Q_ASSERT(ptr != 0); + QEvent *object = (QEvent *)ptr; + if (object->type() == QEvent::ChildAdded || object->type() == QEvent::ChildPolished || object->type() == QEvent::ChildRemoved) { + *class_name = "QChildEvent"; + return (QChildEvent*)object; + } + if (object->type() == QEvent::DynamicPropertyChange) { + *class_name = "QDynamicPropertyChangeEvent"; + return (QDynamicPropertyChangeEvent*)object; + } + if (object->type() == QEvent::None) { + *class_name = "QEvent"; + return (QEvent*)object; + } + if (object->type() == QEvent::StateMachineSignal) { + *class_name = "QStateMachine_SignalEvent"; + return (QStateMachine::SignalEvent*)object; + } + if (object->type() == QEvent::StateMachineWrapped) { + *class_name = "QStateMachine_WrappedEvent"; + return (QStateMachine::WrappedEvent*)object; + } + if (object->type() == QEvent::Timer) { + *class_name = "QTimerEvent"; + return (QTimerEvent*)object; + } + return NULL; +} + +void PythonQt_init_QtCore(PyObject* module) { +PythonQt::priv()->registerClass(&QAbstractAnimation::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QAbstractItemModel::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QAbstractListModel::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QAbstractState::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QAbstractTableModel::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QAbstractTransition::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QAnimationGroup::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QBasicMutex", "", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QBasicTimer", "", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerClass(&QBuffer::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QByteArrayMatcher", "", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QChildEvent", "QEvent", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QCoreApplication::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QCryptographicHash", "", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QDir", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QDirIterator", "", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QDynamicPropertyChangeEvent", "QEvent", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QEasingCurve", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QEvent", "", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QEventLoop::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QEventTransition::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QFile::staticMetaObject, "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QFileInfo", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerClass(&QFileSystemWatcher::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QFinalState::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QHistoryState::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QIODevice::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QLibraryInfo", "", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QMargins", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerClass(&QMimeData::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QModelIndex", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QMutex", "QBasicMutex", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerClass(&QObject::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QParallelAnimationGroup::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QPauseAnimation::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QProcess::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QProcessEnvironment", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerClass(&QPropertyAnimation::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QReadWriteLock", "", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QRunnable", "", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QSemaphore", "", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerClass(&QSequentialAnimationGroup::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QSettings::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QSignalMapper::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QSignalTransition::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QSocketNotifier::staticMetaObject, "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerClass(&QState::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QStateMachine::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStateMachine::SignalEvent", "QEvent", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QStateMachine::WrappedEvent", "QEvent", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QStringMatcher", "", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QSystemSemaphore", "", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerClass(&QTemporaryFile::staticMetaObject, "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QTextBoundaryFinder", "", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QTextCodec", "", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QTextDecoder", "", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QTextEncoder", "", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QTextStream", "", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QThreadPool::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QTimeLine::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QTimer::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QTimerEvent", "QEvent", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QTranslator::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QUuid", "", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerClass(&QVariantAnimation::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QWaitCondition", "", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QXmlStreamAttribute", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QXmlStreamAttributes", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_Add|PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QXmlStreamEntityDeclaration", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QXmlStreamEntityResolver", "", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QXmlStreamNamespaceDeclaration", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QXmlStreamNotationDeclaration", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QXmlStreamReader", "", "QtCore", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QXmlStreamWriter", "", "QtCore", PythonQtCreateObject, NULL, module, 0); + +PythonQt::self()->addPolymorphicHandler("QEvent", polymorphichandler_QEvent); +} diff --git a/generated_cpp_50/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin.pri b/generated_cpp_50/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin.pri new file mode 100644 index 00000000..181c29c5 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin.pri @@ -0,0 +1,6 @@ +HEADERS += \ + $$PWD/com_trolltech_qt_core_builtin0.h \ + +SOURCES += \ + $$PWD/com_trolltech_qt_core_builtin0.cpp \ + $$PWD/com_trolltech_qt_core_builtin_init.cpp diff --git a/generated_cpp_50/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp b/generated_cpp_50/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp new file mode 100644 index 00000000..b382466b --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp @@ -0,0 +1,3137 @@ +#include "com_trolltech_qt_core_builtin0.h" +#include +#include +#include + +QBitArray* PythonQtWrapper_QBitArray::new_QBitArray() +{ +return new QBitArray(); } + +QBitArray* PythonQtWrapper_QBitArray::new_QBitArray(const QBitArray& other) +{ +return new QBitArray(other); } + +QBitArray* PythonQtWrapper_QBitArray::new_QBitArray(int size, bool val) +{ +return new QBitArray(size, val); } + +bool PythonQtWrapper_QBitArray::at(QBitArray* theWrappedObject, int i) const +{ + return ( theWrappedObject->at(i)); +} + +void PythonQtWrapper_QBitArray::clear(QBitArray* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +void PythonQtWrapper_QBitArray::clearBit(QBitArray* theWrappedObject, int i) +{ + ( theWrappedObject->clearBit(i)); +} + +int PythonQtWrapper_QBitArray::count(QBitArray* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +int PythonQtWrapper_QBitArray::count(QBitArray* theWrappedObject, bool on) const +{ + return ( theWrappedObject->count(on)); +} + +void PythonQtWrapper_QBitArray::fill(QBitArray* theWrappedObject, bool val, int first, int last) +{ + ( theWrappedObject->fill(val, first, last)); +} + +bool PythonQtWrapper_QBitArray::fill(QBitArray* theWrappedObject, bool val, int size) +{ + return ( theWrappedObject->fill(val, size)); +} + +bool PythonQtWrapper_QBitArray::isEmpty(QBitArray* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +bool PythonQtWrapper_QBitArray::isNull(QBitArray* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QBitArray::__ne__(QBitArray* theWrappedObject, const QBitArray& other) const +{ + return ( (*theWrappedObject)!= other); +} + +QBitArray PythonQtWrapper_QBitArray::__and__(QBitArray* theWrappedObject, const QBitArray& arg__2) +{ + return ( (*theWrappedObject)& arg__2); +} + +QBitArray* PythonQtWrapper_QBitArray::__iand__(QBitArray* theWrappedObject, const QBitArray& arg__1) +{ + return &( (*theWrappedObject)&= arg__1); +} + +QBitArray* PythonQtWrapper_QBitArray::operator_assign(QBitArray* theWrappedObject, const QBitArray& other) +{ + return &( (*theWrappedObject)= other); +} + +bool PythonQtWrapper_QBitArray::__eq__(QBitArray* theWrappedObject, const QBitArray& other) const +{ + return ( (*theWrappedObject)== other); +} + +QBitArray PythonQtWrapper_QBitArray::__xor__(QBitArray* theWrappedObject, const QBitArray& arg__2) +{ + return ( (*theWrappedObject)^ arg__2); +} + +QBitArray* PythonQtWrapper_QBitArray::__ixor__(QBitArray* theWrappedObject, const QBitArray& arg__1) +{ + return &( (*theWrappedObject)^= arg__1); +} + +QBitArray PythonQtWrapper_QBitArray::__or__(QBitArray* theWrappedObject, const QBitArray& arg__2) +{ + return ( (*theWrappedObject)| arg__2); +} + +QBitArray* PythonQtWrapper_QBitArray::__ior__(QBitArray* theWrappedObject, const QBitArray& arg__1) +{ + return &( (*theWrappedObject)|= arg__1); +} + +QBitArray PythonQtWrapper_QBitArray::__invert__(QBitArray* theWrappedObject) const +{ + return ( theWrappedObject->operator~()); +} + +void PythonQtWrapper_QBitArray::resize(QBitArray* theWrappedObject, int size) +{ + ( theWrappedObject->resize(size)); +} + +void PythonQtWrapper_QBitArray::setBit(QBitArray* theWrappedObject, int i) +{ + ( theWrappedObject->setBit(i)); +} + +void PythonQtWrapper_QBitArray::setBit(QBitArray* theWrappedObject, int i, bool val) +{ + ( theWrappedObject->setBit(i, val)); +} + +int PythonQtWrapper_QBitArray::size(QBitArray* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +void PythonQtWrapper_QBitArray::swap(QBitArray* theWrappedObject, QBitArray& other) +{ + ( theWrappedObject->swap(other)); +} + +bool PythonQtWrapper_QBitArray::testBit(QBitArray* theWrappedObject, int i) const +{ + return ( theWrappedObject->testBit(i)); +} + +bool PythonQtWrapper_QBitArray::toggleBit(QBitArray* theWrappedObject, int i) +{ + return ( theWrappedObject->toggleBit(i)); +} + +void PythonQtWrapper_QBitArray::truncate(QBitArray* theWrappedObject, int pos) +{ + ( theWrappedObject->truncate(pos)); +} + +QString PythonQtWrapper_QBitArray::py_toString(QBitArray* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QByteArray* PythonQtWrapper_QByteArray::new_QByteArray() +{ +return new QByteArray(); } + +QByteArray* PythonQtWrapper_QByteArray::new_QByteArray(const QByteArray& arg__1) +{ +return new QByteArray(arg__1); } + +QByteArray* PythonQtWrapper_QByteArray::new_QByteArray(int size, char c) +{ +return new QByteArray(size, c); } + +QByteArray* PythonQtWrapper_QByteArray::append(QByteArray* theWrappedObject, char c) +{ + return &( theWrappedObject->append(c)); +} + +QByteArray* PythonQtWrapper_QByteArray::append(QByteArray* theWrappedObject, const QByteArray& a) +{ + return &( theWrappedObject->append(a)); +} + +QByteArray* PythonQtWrapper_QByteArray::append(QByteArray* theWrappedObject, const QString& s) +{ + return &( theWrappedObject->append(s)); +} + +QByteArray* PythonQtWrapper_QByteArray::append(QByteArray* theWrappedObject, const char* s, int len) +{ + return &( theWrappedObject->append(s, len)); +} + +char PythonQtWrapper_QByteArray::at(QByteArray* theWrappedObject, int i) const +{ + return ( theWrappedObject->at(i)); +} + +int PythonQtWrapper_QByteArray::capacity(QByteArray* theWrappedObject) const +{ + return ( theWrappedObject->capacity()); +} + +const char* PythonQtWrapper_QByteArray::cbegin(QByteArray* theWrappedObject) const +{ + return ( theWrappedObject->cbegin()); +} + +const char* PythonQtWrapper_QByteArray::cend(QByteArray* theWrappedObject) const +{ + return ( theWrappedObject->cend()); +} + +void PythonQtWrapper_QByteArray::chop(QByteArray* theWrappedObject, int n) +{ + ( theWrappedObject->chop(n)); +} + +void PythonQtWrapper_QByteArray::clear(QByteArray* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +int PythonQtWrapper_QByteArray::count(QByteArray* theWrappedObject, char c) const +{ + return ( theWrappedObject->count(c)); +} + +int PythonQtWrapper_QByteArray::count(QByteArray* theWrappedObject, const QByteArray& a) const +{ + return ( theWrappedObject->count(a)); +} + +bool PythonQtWrapper_QByteArray::endsWith(QByteArray* theWrappedObject, char c) const +{ + return ( theWrappedObject->endsWith(c)); +} + +bool PythonQtWrapper_QByteArray::endsWith(QByteArray* theWrappedObject, const QByteArray& a) const +{ + return ( theWrappedObject->endsWith(a)); +} + +QByteArray* PythonQtWrapper_QByteArray::fill(QByteArray* theWrappedObject, char c, int size) +{ + return &( theWrappedObject->fill(c, size)); +} + +QByteArray PythonQtWrapper_QByteArray::static_QByteArray_fromBase64(const QByteArray& base64) +{ + return (QByteArray::fromBase64(base64)); +} + +QByteArray PythonQtWrapper_QByteArray::static_QByteArray_fromHex(const QByteArray& hexEncoded) +{ + return (QByteArray::fromHex(hexEncoded)); +} + +QByteArray PythonQtWrapper_QByteArray::static_QByteArray_fromPercentEncoding(const QByteArray& pctEncoded, char percent) +{ + return (QByteArray::fromPercentEncoding(pctEncoded, percent)); +} + +int PythonQtWrapper_QByteArray::indexOf(QByteArray* theWrappedObject, char c, int from) const +{ + return ( theWrappedObject->indexOf(c, from)); +} + +int PythonQtWrapper_QByteArray::indexOf(QByteArray* theWrappedObject, const QByteArray& a, int from) const +{ + return ( theWrappedObject->indexOf(a, from)); +} + +int PythonQtWrapper_QByteArray::indexOf(QByteArray* theWrappedObject, const QString& s, int from) const +{ + return ( theWrappedObject->indexOf(s, from)); +} + +QByteArray* PythonQtWrapper_QByteArray::insert(QByteArray* theWrappedObject, int i, char c) +{ + return &( theWrappedObject->insert(i, c)); +} + +QByteArray* PythonQtWrapper_QByteArray::insert(QByteArray* theWrappedObject, int i, const QByteArray& a) +{ + return &( theWrappedObject->insert(i, a)); +} + +QByteArray* PythonQtWrapper_QByteArray::insert(QByteArray* theWrappedObject, int i, const QString& s) +{ + return &( theWrappedObject->insert(i, s)); +} + +QByteArray* PythonQtWrapper_QByteArray::insert(QByteArray* theWrappedObject, int i, const char* s, int len) +{ + return &( theWrappedObject->insert(i, s, len)); +} + +bool PythonQtWrapper_QByteArray::isEmpty(QByteArray* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +bool PythonQtWrapper_QByteArray::isNull(QByteArray* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QByteArray::isSharedWith(QByteArray* theWrappedObject, const QByteArray& other) const +{ + return ( theWrappedObject->isSharedWith(other)); +} + +int PythonQtWrapper_QByteArray::lastIndexOf(QByteArray* theWrappedObject, char c, int from) const +{ + return ( theWrappedObject->lastIndexOf(c, from)); +} + +int PythonQtWrapper_QByteArray::lastIndexOf(QByteArray* theWrappedObject, const QByteArray& a, int from) const +{ + return ( theWrappedObject->lastIndexOf(a, from)); +} + +int PythonQtWrapper_QByteArray::lastIndexOf(QByteArray* theWrappedObject, const QString& s, int from) const +{ + return ( theWrappedObject->lastIndexOf(s, from)); +} + +QByteArray PythonQtWrapper_QByteArray::left(QByteArray* theWrappedObject, int len) const +{ + return ( theWrappedObject->left(len)); +} + +QByteArray PythonQtWrapper_QByteArray::leftJustified(QByteArray* theWrappedObject, int width, char fill, bool truncate) const +{ + return ( theWrappedObject->leftJustified(width, fill, truncate)); +} + +int PythonQtWrapper_QByteArray::length(QByteArray* theWrappedObject) const +{ + return ( theWrappedObject->length()); +} + +QByteArray PythonQtWrapper_QByteArray::mid(QByteArray* theWrappedObject, int index, int len) const +{ + return ( theWrappedObject->mid(index, len)); +} + +QByteArray PythonQtWrapper_QByteArray::static_QByteArray_number(double arg__1, char f, int prec) +{ + return (QByteArray::number(arg__1, f, prec)); +} + +QByteArray PythonQtWrapper_QByteArray::static_QByteArray_number(int arg__1, int base) +{ + return (QByteArray::number(arg__1, base)); +} + +QByteArray PythonQtWrapper_QByteArray::static_QByteArray_number(qlonglong arg__1, int base) +{ + return (QByteArray::number(arg__1, base)); +} + +bool PythonQtWrapper_QByteArray::__ne__(QByteArray* theWrappedObject, const QString& s2) const +{ + return ( (*theWrappedObject)!= s2); +} + +const QByteArray PythonQtWrapper_QByteArray::__add__(QByteArray* theWrappedObject, char a2) +{ + return ( (*theWrappedObject)+ a2); +} + +const QByteArray PythonQtWrapper_QByteArray::__add__(QByteArray* theWrappedObject, const QByteArray& a2) +{ + return ( (*theWrappedObject)+ a2); +} + +const QString PythonQtWrapper_QByteArray::__add__(QByteArray* theWrappedObject, const QString& s) +{ + return ( (*theWrappedObject)+ s); +} + +const QByteArray PythonQtWrapper_QByteArray::__add__(QByteArray* theWrappedObject, const char* a2) +{ + return ( (*theWrappedObject)+ a2); +} + +bool PythonQtWrapper_QByteArray::__lt__(QByteArray* theWrappedObject, const QByteArray& a2) +{ + return ( (*theWrappedObject)< a2); +} + +bool PythonQtWrapper_QByteArray::__lt__(QByteArray* theWrappedObject, const QString& s2) const +{ + return ( (*theWrappedObject)< s2); +} + +bool PythonQtWrapper_QByteArray::__le__(QByteArray* theWrappedObject, const QByteArray& a2) +{ + return ( (*theWrappedObject)<= a2); +} + +bool PythonQtWrapper_QByteArray::__le__(QByteArray* theWrappedObject, const QString& s2) const +{ + return ( (*theWrappedObject)<= s2); +} + +QByteArray* PythonQtWrapper_QByteArray::operator_assign(QByteArray* theWrappedObject, const QByteArray& arg__1) +{ + return &( (*theWrappedObject)= arg__1); +} + +bool PythonQtWrapper_QByteArray::__eq__(QByteArray* theWrappedObject, const QByteArray& a2) +{ + return ( (*theWrappedObject)== a2); +} + +bool PythonQtWrapper_QByteArray::__eq__(QByteArray* theWrappedObject, const QString& s2) const +{ + return ( (*theWrappedObject)== s2); +} + +bool PythonQtWrapper_QByteArray::__gt__(QByteArray* theWrappedObject, const QByteArray& a2) +{ + return ( (*theWrappedObject)> a2); +} + +bool PythonQtWrapper_QByteArray::__gt__(QByteArray* theWrappedObject, const QString& s2) const +{ + return ( (*theWrappedObject)> s2); +} + +bool PythonQtWrapper_QByteArray::__ge__(QByteArray* theWrappedObject, const QByteArray& a2) +{ + return ( (*theWrappedObject)>= a2); +} + +bool PythonQtWrapper_QByteArray::__ge__(QByteArray* theWrappedObject, const QString& s2) const +{ + return ( (*theWrappedObject)>= s2); +} + +QByteArray* PythonQtWrapper_QByteArray::prepend(QByteArray* theWrappedObject, char c) +{ + return &( theWrappedObject->prepend(c)); +} + +QByteArray* PythonQtWrapper_QByteArray::prepend(QByteArray* theWrappedObject, const QByteArray& a) +{ + return &( theWrappedObject->prepend(a)); +} + +QByteArray* PythonQtWrapper_QByteArray::prepend(QByteArray* theWrappedObject, const char* s, int len) +{ + return &( theWrappedObject->prepend(s, len)); +} + +QByteArray* PythonQtWrapper_QByteArray::remove(QByteArray* theWrappedObject, int index, int len) +{ + return &( theWrappedObject->remove(index, len)); +} + +QByteArray PythonQtWrapper_QByteArray::repeated(QByteArray* theWrappedObject, int times) const +{ + return ( theWrappedObject->repeated(times)); +} + +QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, char before, char after) +{ + return &( theWrappedObject->replace(before, after)); +} + +QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, char before, const QByteArray& after) +{ + return &( theWrappedObject->replace(before, after)); +} + +QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, char c, const QString& after) +{ + return &( theWrappedObject->replace(c, after)); +} + +QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, const QByteArray& before, const QByteArray& after) +{ + return &( theWrappedObject->replace(before, after)); +} + +QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, const QString& before, const QByteArray& after) +{ + return &( theWrappedObject->replace(before, after)); +} + +QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, const char* before, int bsize, const char* after, int asize) +{ + return &( theWrappedObject->replace(before, bsize, after, asize)); +} + +QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, int index, int len, const QByteArray& s) +{ + return &( theWrappedObject->replace(index, len, s)); +} + +QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, int index, int len, const char* s, int alen) +{ + return &( theWrappedObject->replace(index, len, s, alen)); +} + +void PythonQtWrapper_QByteArray::reserve(QByteArray* theWrappedObject, int size) +{ + ( theWrappedObject->reserve(size)); +} + +void PythonQtWrapper_QByteArray::resize(QByteArray* theWrappedObject, int size) +{ + ( theWrappedObject->resize(size)); +} + +QByteArray PythonQtWrapper_QByteArray::right(QByteArray* theWrappedObject, int len) const +{ + return ( theWrappedObject->right(len)); +} + +QByteArray PythonQtWrapper_QByteArray::rightJustified(QByteArray* theWrappedObject, int width, char fill, bool truncate) const +{ + return ( theWrappedObject->rightJustified(width, fill, truncate)); +} + +QByteArray* PythonQtWrapper_QByteArray::setNum(QByteArray* theWrappedObject, double arg__1, char f, int prec) +{ + return &( theWrappedObject->setNum(arg__1, f, prec)); +} + +QByteArray* PythonQtWrapper_QByteArray::setNum(QByteArray* theWrappedObject, float arg__1, char f, int prec) +{ + return &( theWrappedObject->setNum(arg__1, f, prec)); +} + +QByteArray* PythonQtWrapper_QByteArray::setNum(QByteArray* theWrappedObject, int arg__1, int base) +{ + return &( theWrappedObject->setNum(arg__1, base)); +} + +QByteArray* PythonQtWrapper_QByteArray::setNum(QByteArray* theWrappedObject, qlonglong arg__1, int base) +{ + return &( theWrappedObject->setNum(arg__1, base)); +} + +QByteArray* PythonQtWrapper_QByteArray::setNum(QByteArray* theWrappedObject, short arg__1, int base) +{ + return &( theWrappedObject->setNum(arg__1, base)); +} + +QByteArray* PythonQtWrapper_QByteArray::setRawData(QByteArray* theWrappedObject, const char* a, uint n) +{ + return &( theWrappedObject->setRawData(a, n)); +} + +QByteArray PythonQtWrapper_QByteArray::simplified(QByteArray* theWrappedObject) const +{ + return ( theWrappedObject->simplified()); +} + +int PythonQtWrapper_QByteArray::size(QByteArray* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +QList PythonQtWrapper_QByteArray::split(QByteArray* theWrappedObject, char sep) const +{ + return ( theWrappedObject->split(sep)); +} + +void PythonQtWrapper_QByteArray::squeeze(QByteArray* theWrappedObject) +{ + ( theWrappedObject->squeeze()); +} + +bool PythonQtWrapper_QByteArray::startsWith(QByteArray* theWrappedObject, char c) const +{ + return ( theWrappedObject->startsWith(c)); +} + +bool PythonQtWrapper_QByteArray::startsWith(QByteArray* theWrappedObject, const QByteArray& a) const +{ + return ( theWrappedObject->startsWith(a)); +} + +void PythonQtWrapper_QByteArray::swap(QByteArray* theWrappedObject, QByteArray& other) +{ + ( theWrappedObject->swap(other)); +} + +QByteArray PythonQtWrapper_QByteArray::toBase64(QByteArray* theWrappedObject) const +{ + return ( theWrappedObject->toBase64()); +} + +double PythonQtWrapper_QByteArray::toDouble(QByteArray* theWrappedObject, bool* ok) const +{ + return ( theWrappedObject->toDouble(ok)); +} + +float PythonQtWrapper_QByteArray::toFloat(QByteArray* theWrappedObject, bool* ok) const +{ + return ( theWrappedObject->toFloat(ok)); +} + +QByteArray PythonQtWrapper_QByteArray::toHex(QByteArray* theWrappedObject) const +{ + return ( theWrappedObject->toHex()); +} + +int PythonQtWrapper_QByteArray::toInt(QByteArray* theWrappedObject, bool* ok, int base) const +{ + return ( theWrappedObject->toInt(ok, base)); +} + +QByteArray PythonQtWrapper_QByteArray::toLower(QByteArray* theWrappedObject) const +{ + return ( theWrappedObject->toLower()); +} + +QByteArray PythonQtWrapper_QByteArray::toPercentEncoding(QByteArray* theWrappedObject, const QByteArray& exclude, const QByteArray& include, char percent) const +{ + return ( theWrappedObject->toPercentEncoding(exclude, include, percent)); +} + +ushort PythonQtWrapper_QByteArray::toUShort(QByteArray* theWrappedObject, bool* ok, int base) const +{ + return ( theWrappedObject->toUShort(ok, base)); +} + +QByteArray PythonQtWrapper_QByteArray::toUpper(QByteArray* theWrappedObject) const +{ + return ( theWrappedObject->toUpper()); +} + +QByteArray PythonQtWrapper_QByteArray::trimmed(QByteArray* theWrappedObject) const +{ + return ( theWrappedObject->trimmed()); +} + +void PythonQtWrapper_QByteArray::truncate(QByteArray* theWrappedObject, int pos) +{ + ( theWrappedObject->truncate(pos)); +} + + + +QDate* PythonQtWrapper_QDate::new_QDate() +{ +return new QDate(); } + +QDate* PythonQtWrapper_QDate::new_QDate(int y, int m, int d) +{ +return new QDate(y, m, d); } + +QDate PythonQtWrapper_QDate::addDays(QDate* theWrappedObject, qint64 days) const +{ + return ( theWrappedObject->addDays(days)); +} + +QDate PythonQtWrapper_QDate::addMonths(QDate* theWrappedObject, int months) const +{ + return ( theWrappedObject->addMonths(months)); +} + +QDate PythonQtWrapper_QDate::addYears(QDate* theWrappedObject, int years) const +{ + return ( theWrappedObject->addYears(years)); +} + +QDate PythonQtWrapper_QDate::static_QDate_currentDate() +{ + return (QDate::currentDate()); +} + +int PythonQtWrapper_QDate::day(QDate* theWrappedObject) const +{ + return ( theWrappedObject->day()); +} + +int PythonQtWrapper_QDate::dayOfWeek(QDate* theWrappedObject) const +{ + return ( theWrappedObject->dayOfWeek()); +} + +int PythonQtWrapper_QDate::dayOfYear(QDate* theWrappedObject) const +{ + return ( theWrappedObject->dayOfYear()); +} + +int PythonQtWrapper_QDate::daysInMonth(QDate* theWrappedObject) const +{ + return ( theWrappedObject->daysInMonth()); +} + +int PythonQtWrapper_QDate::daysInYear(QDate* theWrappedObject) const +{ + return ( theWrappedObject->daysInYear()); +} + +qint64 PythonQtWrapper_QDate::daysTo(QDate* theWrappedObject, const QDate& arg__1) const +{ + return ( theWrappedObject->daysTo(arg__1)); +} + +QDate PythonQtWrapper_QDate::static_QDate_fromJulianDay(qint64 jd) +{ + return (QDate::fromJulianDay(jd)); +} + +QDate PythonQtWrapper_QDate::static_QDate_fromString(const QString& s, Qt::DateFormat f) +{ + return (QDate::fromString(s, f)); +} + +QDate PythonQtWrapper_QDate::static_QDate_fromString(const QString& s, const QString& format) +{ + return (QDate::fromString(s, format)); +} + +void PythonQtWrapper_QDate::getDate(QDate* theWrappedObject, int* year, int* month, int* day) +{ + ( theWrappedObject->getDate(year, month, day)); +} + +bool PythonQtWrapper_QDate::static_QDate_isLeapYear(int year) +{ + return (QDate::isLeapYear(year)); +} + +bool PythonQtWrapper_QDate::isNull(QDate* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QDate::isValid(QDate* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +bool PythonQtWrapper_QDate::static_QDate_isValid(int y, int m, int d) +{ + return (QDate::isValid(y, m, d)); +} + +QString PythonQtWrapper_QDate::static_QDate_longDayName(int weekday, QDate::MonthNameType type) +{ + return (QDate::longDayName(weekday, type)); +} + +QString PythonQtWrapper_QDate::static_QDate_longMonthName(int month, QDate::MonthNameType type) +{ + return (QDate::longMonthName(month, type)); +} + +int PythonQtWrapper_QDate::month(QDate* theWrappedObject) const +{ + return ( theWrappedObject->month()); +} + +bool PythonQtWrapper_QDate::__ne__(QDate* theWrappedObject, const QDate& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QDate::__lt__(QDate* theWrappedObject, const QDate& other) const +{ + return ( (*theWrappedObject)< other); +} + +bool PythonQtWrapper_QDate::__le__(QDate* theWrappedObject, const QDate& other) const +{ + return ( (*theWrappedObject)<= other); +} + +bool PythonQtWrapper_QDate::__eq__(QDate* theWrappedObject, const QDate& other) const +{ + return ( (*theWrappedObject)== other); +} + +bool PythonQtWrapper_QDate::__gt__(QDate* theWrappedObject, const QDate& other) const +{ + return ( (*theWrappedObject)> other); +} + +bool PythonQtWrapper_QDate::__ge__(QDate* theWrappedObject, const QDate& other) const +{ + return ( (*theWrappedObject)>= other); +} + +bool PythonQtWrapper_QDate::setDate(QDate* theWrappedObject, int year, int month, int day) +{ + return ( theWrappedObject->setDate(year, month, day)); +} + +QString PythonQtWrapper_QDate::static_QDate_shortDayName(int weekday, QDate::MonthNameType type) +{ + return (QDate::shortDayName(weekday, type)); +} + +QString PythonQtWrapper_QDate::static_QDate_shortMonthName(int month, QDate::MonthNameType type) +{ + return (QDate::shortMonthName(month, type)); +} + +qint64 PythonQtWrapper_QDate::toJulianDay(QDate* theWrappedObject) const +{ + return ( theWrappedObject->toJulianDay()); +} + +QString PythonQtWrapper_QDate::toString(QDate* theWrappedObject, Qt::DateFormat f) const +{ + return ( theWrappedObject->toString(f)); +} + +QString PythonQtWrapper_QDate::toString(QDate* theWrappedObject, const QString& format) const +{ + return ( theWrappedObject->toString(format)); +} + +int PythonQtWrapper_QDate::weekNumber(QDate* theWrappedObject, int* yearNum) const +{ + return ( theWrappedObject->weekNumber(yearNum)); +} + +int PythonQtWrapper_QDate::year(QDate* theWrappedObject) const +{ + return ( theWrappedObject->year()); +} + +QString PythonQtWrapper_QDate::py_toString(QDate* obj) { return obj->toString(); } + + +QDateTime* PythonQtWrapper_QDateTime::new_QDateTime() +{ +return new QDateTime(); } + +QDateTime* PythonQtWrapper_QDateTime::new_QDateTime(const QDate& arg__1) +{ +return new QDateTime(arg__1); } + +QDateTime* PythonQtWrapper_QDateTime::new_QDateTime(const QDate& arg__1, const QTime& arg__2, Qt::TimeSpec spec) +{ +return new QDateTime(arg__1, arg__2, spec); } + +QDateTime* PythonQtWrapper_QDateTime::new_QDateTime(const QDateTime& other) +{ +return new QDateTime(other); } + +QDateTime PythonQtWrapper_QDateTime::addDays(QDateTime* theWrappedObject, qint64 days) const +{ + return ( theWrappedObject->addDays(days)); +} + +QDateTime PythonQtWrapper_QDateTime::addMSecs(QDateTime* theWrappedObject, qint64 msecs) const +{ + return ( theWrappedObject->addMSecs(msecs)); +} + +QDateTime PythonQtWrapper_QDateTime::addMonths(QDateTime* theWrappedObject, int months) const +{ + return ( theWrappedObject->addMonths(months)); +} + +QDateTime PythonQtWrapper_QDateTime::addSecs(QDateTime* theWrappedObject, qint64 secs) const +{ + return ( theWrappedObject->addSecs(secs)); +} + +QDateTime PythonQtWrapper_QDateTime::addYears(QDateTime* theWrappedObject, int years) const +{ + return ( theWrappedObject->addYears(years)); +} + +QDateTime PythonQtWrapper_QDateTime::static_QDateTime_currentDateTime() +{ + return (QDateTime::currentDateTime()); +} + +QDateTime PythonQtWrapper_QDateTime::static_QDateTime_currentDateTimeUtc() +{ + return (QDateTime::currentDateTimeUtc()); +} + +qint64 PythonQtWrapper_QDateTime::static_QDateTime_currentMSecsSinceEpoch() +{ + return (QDateTime::currentMSecsSinceEpoch()); +} + +QDate PythonQtWrapper_QDateTime::date(QDateTime* theWrappedObject) const +{ + return ( theWrappedObject->date()); +} + +qint64 PythonQtWrapper_QDateTime::daysTo(QDateTime* theWrappedObject, const QDateTime& arg__1) const +{ + return ( theWrappedObject->daysTo(arg__1)); +} + +QDateTime PythonQtWrapper_QDateTime::static_QDateTime_fromMSecsSinceEpoch(qint64 msecs) +{ + return (QDateTime::fromMSecsSinceEpoch(msecs)); +} + +QDateTime PythonQtWrapper_QDateTime::static_QDateTime_fromString(const QString& s, Qt::DateFormat f) +{ + return (QDateTime::fromString(s, f)); +} + +QDateTime PythonQtWrapper_QDateTime::static_QDateTime_fromString(const QString& s, const QString& format) +{ + return (QDateTime::fromString(s, format)); +} + +QDateTime PythonQtWrapper_QDateTime::static_QDateTime_fromTime_t(uint secsSince1Jan1970UTC) +{ + return (QDateTime::fromTime_t(secsSince1Jan1970UTC)); +} + +bool PythonQtWrapper_QDateTime::isNull(QDateTime* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QDateTime::isValid(QDateTime* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +qint64 PythonQtWrapper_QDateTime::msecsTo(QDateTime* theWrappedObject, const QDateTime& arg__1) const +{ + return ( theWrappedObject->msecsTo(arg__1)); +} + +bool PythonQtWrapper_QDateTime::__ne__(QDateTime* theWrappedObject, const QDateTime& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QDateTime::__lt__(QDateTime* theWrappedObject, const QDateTime& other) const +{ + return ( (*theWrappedObject)< other); +} + +bool PythonQtWrapper_QDateTime::__le__(QDateTime* theWrappedObject, const QDateTime& other) const +{ + return ( (*theWrappedObject)<= other); +} + +bool PythonQtWrapper_QDateTime::__eq__(QDateTime* theWrappedObject, const QDateTime& other) const +{ + return ( (*theWrappedObject)== other); +} + +bool PythonQtWrapper_QDateTime::__gt__(QDateTime* theWrappedObject, const QDateTime& other) const +{ + return ( (*theWrappedObject)> other); +} + +bool PythonQtWrapper_QDateTime::__ge__(QDateTime* theWrappedObject, const QDateTime& other) const +{ + return ( (*theWrappedObject)>= other); +} + +qint64 PythonQtWrapper_QDateTime::secsTo(QDateTime* theWrappedObject, const QDateTime& arg__1) const +{ + return ( theWrappedObject->secsTo(arg__1)); +} + +void PythonQtWrapper_QDateTime::setDate(QDateTime* theWrappedObject, const QDate& date) +{ + ( theWrappedObject->setDate(date)); +} + +void PythonQtWrapper_QDateTime::setMSecsSinceEpoch(QDateTime* theWrappedObject, qint64 msecs) +{ + ( theWrappedObject->setMSecsSinceEpoch(msecs)); +} + +void PythonQtWrapper_QDateTime::setTime(QDateTime* theWrappedObject, const QTime& time) +{ + ( theWrappedObject->setTime(time)); +} + +void PythonQtWrapper_QDateTime::setTimeSpec(QDateTime* theWrappedObject, Qt::TimeSpec spec) +{ + ( theWrappedObject->setTimeSpec(spec)); +} + +void PythonQtWrapper_QDateTime::setTime_t(QDateTime* theWrappedObject, uint secsSince1Jan1970UTC) +{ + ( theWrappedObject->setTime_t(secsSince1Jan1970UTC)); +} + +void PythonQtWrapper_QDateTime::setUtcOffset(QDateTime* theWrappedObject, int seconds) +{ + ( theWrappedObject->setUtcOffset(seconds)); +} + +void PythonQtWrapper_QDateTime::swap(QDateTime* theWrappedObject, QDateTime& other) +{ + ( theWrappedObject->swap(other)); +} + +QTime PythonQtWrapper_QDateTime::time(QDateTime* theWrappedObject) const +{ + return ( theWrappedObject->time()); +} + +Qt::TimeSpec PythonQtWrapper_QDateTime::timeSpec(QDateTime* theWrappedObject) const +{ + return ( theWrappedObject->timeSpec()); +} + +QDateTime PythonQtWrapper_QDateTime::toLocalTime(QDateTime* theWrappedObject) const +{ + return ( theWrappedObject->toLocalTime()); +} + +qint64 PythonQtWrapper_QDateTime::toMSecsSinceEpoch(QDateTime* theWrappedObject) const +{ + return ( theWrappedObject->toMSecsSinceEpoch()); +} + +QString PythonQtWrapper_QDateTime::toString(QDateTime* theWrappedObject, Qt::DateFormat f) const +{ + return ( theWrappedObject->toString(f)); +} + +QString PythonQtWrapper_QDateTime::toString(QDateTime* theWrappedObject, const QString& format) const +{ + return ( theWrappedObject->toString(format)); +} + +QDateTime PythonQtWrapper_QDateTime::toTimeSpec(QDateTime* theWrappedObject, Qt::TimeSpec spec) const +{ + return ( theWrappedObject->toTimeSpec(spec)); +} + +uint PythonQtWrapper_QDateTime::toTime_t(QDateTime* theWrappedObject) const +{ + return ( theWrappedObject->toTime_t()); +} + +QDateTime PythonQtWrapper_QDateTime::toUTC(QDateTime* theWrappedObject) const +{ + return ( theWrappedObject->toUTC()); +} + +int PythonQtWrapper_QDateTime::utcOffset(QDateTime* theWrappedObject) const +{ + return ( theWrappedObject->utcOffset()); +} + +QString PythonQtWrapper_QDateTime::py_toString(QDateTime* obj) { return obj->toString(); } + + +QLocale* PythonQtWrapper_QLocale::new_QLocale() +{ +return new QLocale(); } + +QLocale* PythonQtWrapper_QLocale::new_QLocale(QLocale::Language language, QLocale::Country country) +{ +return new QLocale(language, country); } + +QLocale* PythonQtWrapper_QLocale::new_QLocale(QLocale::Language language, QLocale::Script script, QLocale::Country country) +{ +return new QLocale(language, script, country); } + +QLocale* PythonQtWrapper_QLocale::new_QLocale(const QLocale& other) +{ +return new QLocale(other); } + +QLocale* PythonQtWrapper_QLocale::new_QLocale(const QString& name) +{ +return new QLocale(name); } + +QString PythonQtWrapper_QLocale::amText(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->amText()); +} + +QString PythonQtWrapper_QLocale::bcp47Name(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->bcp47Name()); +} + +QLocale PythonQtWrapper_QLocale::static_QLocale_c() +{ + return (QLocale::c()); +} + +QList PythonQtWrapper_QLocale::static_QLocale_countriesForLanguage(QLocale::Language lang) +{ + return (QLocale::countriesForLanguage(lang)); +} + +QLocale::Country PythonQtWrapper_QLocale::country(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->country()); +} + +QString PythonQtWrapper_QLocale::static_QLocale_countryToString(QLocale::Country country) +{ + return (QLocale::countryToString(country)); +} + +QString PythonQtWrapper_QLocale::createSeparatedList(QLocale* theWrappedObject, const QStringList& strl) const +{ + return ( theWrappedObject->createSeparatedList(strl)); +} + +QString PythonQtWrapper_QLocale::currencySymbol(QLocale* theWrappedObject, QLocale::CurrencySymbolFormat arg__1) const +{ + return ( theWrappedObject->currencySymbol(arg__1)); +} + +QString PythonQtWrapper_QLocale::dateFormat(QLocale* theWrappedObject, QLocale::FormatType format) const +{ + return ( theWrappedObject->dateFormat(format)); +} + +QString PythonQtWrapper_QLocale::dateTimeFormat(QLocale* theWrappedObject, QLocale::FormatType format) const +{ + return ( theWrappedObject->dateTimeFormat(format)); +} + +QString PythonQtWrapper_QLocale::dayName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format) const +{ + return ( theWrappedObject->dayName(arg__1, format)); +} + +QChar PythonQtWrapper_QLocale::decimalPoint(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->decimalPoint()); +} + +QChar PythonQtWrapper_QLocale::exponential(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->exponential()); +} + +Qt::DayOfWeek PythonQtWrapper_QLocale::firstDayOfWeek(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->firstDayOfWeek()); +} + +QChar PythonQtWrapper_QLocale::groupSeparator(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->groupSeparator()); +} + +QLocale::Language PythonQtWrapper_QLocale::language(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->language()); +} + +QString PythonQtWrapper_QLocale::static_QLocale_languageToString(QLocale::Language language) +{ + return (QLocale::languageToString(language)); +} + +QList PythonQtWrapper_QLocale::static_QLocale_matchingLocales(QLocale::Language language, QLocale::Script script, QLocale::Country country) +{ + return (QLocale::matchingLocales(language, script, country)); +} + +QLocale::MeasurementSystem PythonQtWrapper_QLocale::measurementSystem(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->measurementSystem()); +} + +QString PythonQtWrapper_QLocale::monthName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format) const +{ + return ( theWrappedObject->monthName(arg__1, format)); +} + +QString PythonQtWrapper_QLocale::name(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->name()); +} + +QString PythonQtWrapper_QLocale::nativeCountryName(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->nativeCountryName()); +} + +QString PythonQtWrapper_QLocale::nativeLanguageName(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->nativeLanguageName()); +} + +QChar PythonQtWrapper_QLocale::negativeSign(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->negativeSign()); +} + +QLocale::NumberOptions PythonQtWrapper_QLocale::numberOptions(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->numberOptions()); +} + +bool PythonQtWrapper_QLocale::__ne__(QLocale* theWrappedObject, const QLocale& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QLocale::__eq__(QLocale* theWrappedObject, const QLocale& other) const +{ + return ( (*theWrappedObject)== other); +} + +QChar PythonQtWrapper_QLocale::percent(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->percent()); +} + +QString PythonQtWrapper_QLocale::pmText(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->pmText()); +} + +QChar PythonQtWrapper_QLocale::positiveSign(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->positiveSign()); +} + +QString PythonQtWrapper_QLocale::quoteString(QLocale* theWrappedObject, const QString& str, QLocale::QuotationStyle style) const +{ + return ( theWrappedObject->quoteString(str, style)); +} + +QString PythonQtWrapper_QLocale::quoteString(QLocale* theWrappedObject, const QStringRef& str, QLocale::QuotationStyle style) const +{ + return ( theWrappedObject->quoteString(str, style)); +} + +QLocale::Script PythonQtWrapper_QLocale::script(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->script()); +} + +QString PythonQtWrapper_QLocale::static_QLocale_scriptToString(QLocale::Script script) +{ + return (QLocale::scriptToString(script)); +} + +void PythonQtWrapper_QLocale::static_QLocale_setDefault(const QLocale& locale) +{ + (QLocale::setDefault(locale)); +} + +void PythonQtWrapper_QLocale::setNumberOptions(QLocale* theWrappedObject, QLocale::NumberOptions options) +{ + ( theWrappedObject->setNumberOptions(options)); +} + +QString PythonQtWrapper_QLocale::standaloneDayName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format) const +{ + return ( theWrappedObject->standaloneDayName(arg__1, format)); +} + +QString PythonQtWrapper_QLocale::standaloneMonthName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format) const +{ + return ( theWrappedObject->standaloneMonthName(arg__1, format)); +} + +QLocale PythonQtWrapper_QLocale::static_QLocale_system() +{ + return (QLocale::system()); +} + +Qt::LayoutDirection PythonQtWrapper_QLocale::textDirection(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->textDirection()); +} + +QString PythonQtWrapper_QLocale::timeFormat(QLocale* theWrappedObject, QLocale::FormatType format) const +{ + return ( theWrappedObject->timeFormat(format)); +} + +QString PythonQtWrapper_QLocale::toCurrencyString(QLocale* theWrappedObject, double arg__1, const QString& symbol) const +{ + return ( theWrappedObject->toCurrencyString(arg__1, symbol)); +} + +QString PythonQtWrapper_QLocale::toCurrencyString(QLocale* theWrappedObject, float arg__1, const QString& symbol) const +{ + return ( theWrappedObject->toCurrencyString(arg__1, symbol)); +} + +QString PythonQtWrapper_QLocale::toCurrencyString(QLocale* theWrappedObject, int arg__1, const QString& symbol) const +{ + return ( theWrappedObject->toCurrencyString(arg__1, symbol)); +} + +QString PythonQtWrapper_QLocale::toCurrencyString(QLocale* theWrappedObject, qlonglong arg__1, const QString& symbol) const +{ + return ( theWrappedObject->toCurrencyString(arg__1, symbol)); +} + +QString PythonQtWrapper_QLocale::toCurrencyString(QLocale* theWrappedObject, qulonglong arg__1, const QString& symbol) const +{ + return ( theWrappedObject->toCurrencyString(arg__1, symbol)); +} + +QString PythonQtWrapper_QLocale::toCurrencyString(QLocale* theWrappedObject, short arg__1, const QString& symbol) const +{ + return ( theWrappedObject->toCurrencyString(arg__1, symbol)); +} + +QString PythonQtWrapper_QLocale::toCurrencyString(QLocale* theWrappedObject, uint arg__1, const QString& symbol) const +{ + return ( theWrappedObject->toCurrencyString(arg__1, symbol)); +} + +QString PythonQtWrapper_QLocale::toCurrencyString(QLocale* theWrappedObject, ushort arg__1, const QString& symbol) const +{ + return ( theWrappedObject->toCurrencyString(arg__1, symbol)); +} + +QDate PythonQtWrapper_QLocale::toDate(QLocale* theWrappedObject, const QString& string, QLocale::FormatType arg__2) const +{ + return ( theWrappedObject->toDate(string, arg__2)); +} + +QDate PythonQtWrapper_QLocale::toDate(QLocale* theWrappedObject, const QString& string, const QString& format) const +{ + return ( theWrappedObject->toDate(string, format)); +} + +QDateTime PythonQtWrapper_QLocale::toDateTime(QLocale* theWrappedObject, const QString& string, QLocale::FormatType format) const +{ + return ( theWrappedObject->toDateTime(string, format)); +} + +QDateTime PythonQtWrapper_QLocale::toDateTime(QLocale* theWrappedObject, const QString& string, const QString& format) const +{ + return ( theWrappedObject->toDateTime(string, format)); +} + +double PythonQtWrapper_QLocale::toDouble(QLocale* theWrappedObject, const QString& s, bool* ok) const +{ + return ( theWrappedObject->toDouble(s, ok)); +} + +float PythonQtWrapper_QLocale::toFloat(QLocale* theWrappedObject, const QString& s, bool* ok) const +{ + return ( theWrappedObject->toFloat(s, ok)); +} + +int PythonQtWrapper_QLocale::toInt(QLocale* theWrappedObject, const QString& s, bool* ok) const +{ + return ( theWrappedObject->toInt(s, ok)); +} + +qlonglong PythonQtWrapper_QLocale::toLongLong(QLocale* theWrappedObject, const QString& s, bool* ok) const +{ + return ( theWrappedObject->toLongLong(s, ok)); +} + +QString PythonQtWrapper_QLocale::toLower(QLocale* theWrappedObject, const QString& str) const +{ + return ( theWrappedObject->toLower(str)); +} + +short PythonQtWrapper_QLocale::toShort(QLocale* theWrappedObject, const QString& s, bool* ok) const +{ + return ( theWrappedObject->toShort(s, ok)); +} + +QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QDate& date, QLocale::FormatType format) const +{ + return ( theWrappedObject->toString(date, format)); +} + +QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QDate& date, const QString& formatStr) const +{ + return ( theWrappedObject->toString(date, formatStr)); +} + +QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QDateTime& dateTime, QLocale::FormatType format) const +{ + return ( theWrappedObject->toString(dateTime, format)); +} + +QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QDateTime& dateTime, const QString& format) const +{ + return ( theWrappedObject->toString(dateTime, format)); +} + +QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QTime& time, QLocale::FormatType format) const +{ + return ( theWrappedObject->toString(time, format)); +} + +QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QTime& time, const QString& formatStr) const +{ + return ( theWrappedObject->toString(time, formatStr)); +} + +QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, double i, char f, int prec) const +{ + return ( theWrappedObject->toString(i, f, prec)); +} + +QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, float i, char f, int prec) const +{ + return ( theWrappedObject->toString(i, f, prec)); +} + +QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, int i) const +{ + return ( theWrappedObject->toString(i)); +} + +QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, qulonglong i) const +{ + return ( theWrappedObject->toString(i)); +} + +QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, short i) const +{ + return ( theWrappedObject->toString(i)); +} + +QTime PythonQtWrapper_QLocale::toTime(QLocale* theWrappedObject, const QString& string, QLocale::FormatType arg__2) const +{ + return ( theWrappedObject->toTime(string, arg__2)); +} + +QTime PythonQtWrapper_QLocale::toTime(QLocale* theWrappedObject, const QString& string, const QString& format) const +{ + return ( theWrappedObject->toTime(string, format)); +} + +uint PythonQtWrapper_QLocale::toUInt(QLocale* theWrappedObject, const QString& s, bool* ok) const +{ + return ( theWrappedObject->toUInt(s, ok)); +} + +qulonglong PythonQtWrapper_QLocale::toULongLong(QLocale* theWrappedObject, const QString& s, bool* ok) const +{ + return ( theWrappedObject->toULongLong(s, ok)); +} + +ushort PythonQtWrapper_QLocale::toUShort(QLocale* theWrappedObject, const QString& s, bool* ok) const +{ + return ( theWrappedObject->toUShort(s, ok)); +} + +QString PythonQtWrapper_QLocale::toUpper(QLocale* theWrappedObject, const QString& str) const +{ + return ( theWrappedObject->toUpper(str)); +} + +QStringList PythonQtWrapper_QLocale::uiLanguages(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->uiLanguages()); +} + +QList PythonQtWrapper_QLocale::weekdays(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->weekdays()); +} + +QChar PythonQtWrapper_QLocale::zeroDigit(QLocale* theWrappedObject) const +{ + return ( theWrappedObject->zeroDigit()); +} + +QString PythonQtWrapper_QLocale::py_toString(QLocale* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QPoint* PythonQtWrapper_QPoint::new_QPoint() +{ +return new QPoint(); } + +QPoint* PythonQtWrapper_QPoint::new_QPoint(int xpos, int ypos) +{ +return new QPoint(xpos, ypos); } + +bool PythonQtWrapper_QPoint::isNull(QPoint* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +int PythonQtWrapper_QPoint::manhattanLength(QPoint* theWrappedObject) const +{ + return ( theWrappedObject->manhattanLength()); +} + +#if defined(QT_GUI_LIB) +QPoint PythonQtWrapper_QPoint::__mul__(QPoint* theWrappedObject, const QMatrix& m) +{ + return ( (*theWrappedObject)* m); +} + +QPoint PythonQtWrapper_QPoint::__mul__(QPoint* theWrappedObject, const QMatrix4x4& matrix) +{ + return ( (*theWrappedObject)* matrix); +} + +QPoint PythonQtWrapper_QPoint::__mul__(QPoint* theWrappedObject, const QTransform& m) +{ + return ( (*theWrappedObject)* m); +} +#endif + +const QPoint PythonQtWrapper_QPoint::__mul__(QPoint* theWrappedObject, double factor) +{ + return ( (*theWrappedObject)* factor); +} + +const QPoint PythonQtWrapper_QPoint::__mul__(QPoint* theWrappedObject, float factor) +{ + return ( (*theWrappedObject)* factor); +} + +const QPoint PythonQtWrapper_QPoint::__mul__(QPoint* theWrappedObject, int factor) +{ + return ( (*theWrappedObject)* factor); +} + +QPoint* PythonQtWrapper_QPoint::__imul__(QPoint* theWrappedObject, double factor) +{ + return &( (*theWrappedObject)*= factor); +} + +QPoint* PythonQtWrapper_QPoint::__imul__(QPoint* theWrappedObject, float factor) +{ + return &( (*theWrappedObject)*= factor); +} + +QPoint* PythonQtWrapper_QPoint::__imul__(QPoint* theWrappedObject, int factor) +{ + return &( (*theWrappedObject)*= factor); +} + +const QPoint PythonQtWrapper_QPoint::__add__(QPoint* theWrappedObject, const QPoint& p2) +{ + return ( (*theWrappedObject)+ p2); +} + +QPoint* PythonQtWrapper_QPoint::__iadd__(QPoint* theWrappedObject, const QPoint& p) +{ + return &( (*theWrappedObject)+= p); +} + +const QPoint PythonQtWrapper_QPoint::__sub__(QPoint* theWrappedObject, const QPoint& p2) +{ + return ( (*theWrappedObject)- p2); +} + +QPoint* PythonQtWrapper_QPoint::__isub__(QPoint* theWrappedObject, const QPoint& p) +{ + return &( (*theWrappedObject)-= p); +} + +const QPoint PythonQtWrapper_QPoint::__div__(QPoint* theWrappedObject, qreal c) +{ + return ( (*theWrappedObject)/ c); +} + +QPoint* PythonQtWrapper_QPoint::__idiv__(QPoint* theWrappedObject, qreal divisor) +{ + return &( (*theWrappedObject)/= divisor); +} + +bool PythonQtWrapper_QPoint::__eq__(QPoint* theWrappedObject, const QPoint& p2) +{ + return ( (*theWrappedObject)== p2); +} + +void PythonQtWrapper_QPoint::setX(QPoint* theWrappedObject, int x) +{ + ( theWrappedObject->setX(x)); +} + +void PythonQtWrapper_QPoint::setY(QPoint* theWrappedObject, int y) +{ + ( theWrappedObject->setY(y)); +} + +int PythonQtWrapper_QPoint::x(QPoint* theWrappedObject) const +{ + return ( theWrappedObject->x()); +} + +int PythonQtWrapper_QPoint::y(QPoint* theWrappedObject) const +{ + return ( theWrappedObject->y()); +} + +QString PythonQtWrapper_QPoint::py_toString(QPoint* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QPointF* PythonQtWrapper_QPointF::new_QPointF() +{ +return new QPointF(); } + +QPointF* PythonQtWrapper_QPointF::new_QPointF(const QPoint& p) +{ +return new QPointF(p); } + +QPointF* PythonQtWrapper_QPointF::new_QPointF(qreal xpos, qreal ypos) +{ +return new QPointF(xpos, ypos); } + +bool PythonQtWrapper_QPointF::isNull(QPointF* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +qreal PythonQtWrapper_QPointF::manhattanLength(QPointF* theWrappedObject) const +{ + return ( theWrappedObject->manhattanLength()); +} + +#if defined(QT_GUI_LIB) +QPointF PythonQtWrapper_QPointF::__mul__(QPointF* theWrappedObject, const QMatrix& m) +{ + return ( (*theWrappedObject)* m); +} + +QPointF PythonQtWrapper_QPointF::__mul__(QPointF* theWrappedObject, const QMatrix4x4& matrix) +{ + return ( (*theWrappedObject)* matrix); +} + +QPointF PythonQtWrapper_QPointF::__mul__(QPointF* theWrappedObject, const QTransform& m) +{ + return ( (*theWrappedObject)* m); +} +#endif + +const QPointF PythonQtWrapper_QPointF::__mul__(QPointF* theWrappedObject, qreal c) +{ + return ( (*theWrappedObject)* c); +} + +QPointF* PythonQtWrapper_QPointF::__imul__(QPointF* theWrappedObject, qreal c) +{ + return &( (*theWrappedObject)*= c); +} + +const QPointF PythonQtWrapper_QPointF::__add__(QPointF* theWrappedObject, const QPointF& p2) +{ + return ( (*theWrappedObject)+ p2); +} + +QPointF* PythonQtWrapper_QPointF::__iadd__(QPointF* theWrappedObject, const QPointF& p) +{ + return &( (*theWrappedObject)+= p); +} + +const QPointF PythonQtWrapper_QPointF::__sub__(QPointF* theWrappedObject, const QPointF& p2) +{ + return ( (*theWrappedObject)- p2); +} + +QPointF* PythonQtWrapper_QPointF::__isub__(QPointF* theWrappedObject, const QPointF& p) +{ + return &( (*theWrappedObject)-= p); +} + +const QPointF PythonQtWrapper_QPointF::__div__(QPointF* theWrappedObject, qreal divisor) +{ + return ( (*theWrappedObject)/ divisor); +} + +QPointF* PythonQtWrapper_QPointF::__idiv__(QPointF* theWrappedObject, qreal c) +{ + return &( (*theWrappedObject)/= c); +} + +bool PythonQtWrapper_QPointF::__eq__(QPointF* theWrappedObject, const QPointF& p2) +{ + return ( (*theWrappedObject)== p2); +} + +void PythonQtWrapper_QPointF::setX(QPointF* theWrappedObject, qreal x) +{ + ( theWrappedObject->setX(x)); +} + +void PythonQtWrapper_QPointF::setY(QPointF* theWrappedObject, qreal y) +{ + ( theWrappedObject->setY(y)); +} + +QPoint PythonQtWrapper_QPointF::toPoint(QPointF* theWrappedObject) const +{ + return ( theWrappedObject->toPoint()); +} + +qreal PythonQtWrapper_QPointF::x(QPointF* theWrappedObject) const +{ + return ( theWrappedObject->x()); +} + +qreal PythonQtWrapper_QPointF::y(QPointF* theWrappedObject) const +{ + return ( theWrappedObject->y()); +} + +QString PythonQtWrapper_QPointF::py_toString(QPointF* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QRect* PythonQtWrapper_QRect::new_QRect() +{ +return new QRect(); } + +QRect* PythonQtWrapper_QRect::new_QRect(const QPoint& topleft, const QPoint& bottomright) +{ +return new QRect(topleft, bottomright); } + +QRect* PythonQtWrapper_QRect::new_QRect(const QPoint& topleft, const QSize& size) +{ +return new QRect(topleft, size); } + +QRect* PythonQtWrapper_QRect::new_QRect(int left, int top, int width, int height) +{ +return new QRect(left, top, width, height); } + +void PythonQtWrapper_QRect::adjust(QRect* theWrappedObject, int x1, int y1, int x2, int y2) +{ + ( theWrappedObject->adjust(x1, y1, x2, y2)); +} + +QRect PythonQtWrapper_QRect::adjusted(QRect* theWrappedObject, int x1, int y1, int x2, int y2) const +{ + return ( theWrappedObject->adjusted(x1, y1, x2, y2)); +} + +int PythonQtWrapper_QRect::bottom(QRect* theWrappedObject) const +{ + return ( theWrappedObject->bottom()); +} + +QPoint PythonQtWrapper_QRect::bottomLeft(QRect* theWrappedObject) const +{ + return ( theWrappedObject->bottomLeft()); +} + +QPoint PythonQtWrapper_QRect::bottomRight(QRect* theWrappedObject) const +{ + return ( theWrappedObject->bottomRight()); +} + +QPoint PythonQtWrapper_QRect::center(QRect* theWrappedObject) const +{ + return ( theWrappedObject->center()); +} + +bool PythonQtWrapper_QRect::contains(QRect* theWrappedObject, const QPoint& p, bool proper) const +{ + return ( theWrappedObject->contains(p, proper)); +} + +bool PythonQtWrapper_QRect::contains(QRect* theWrappedObject, const QRect& r, bool proper) const +{ + return ( theWrappedObject->contains(r, proper)); +} + +bool PythonQtWrapper_QRect::contains(QRect* theWrappedObject, int x, int y) const +{ + return ( theWrappedObject->contains(x, y)); +} + +bool PythonQtWrapper_QRect::contains(QRect* theWrappedObject, int x, int y, bool proper) const +{ + return ( theWrappedObject->contains(x, y, proper)); +} + +int PythonQtWrapper_QRect::height(QRect* theWrappedObject) const +{ + return ( theWrappedObject->height()); +} + +QRect PythonQtWrapper_QRect::intersected(QRect* theWrappedObject, const QRect& other) const +{ + return ( theWrappedObject->intersected(other)); +} + +bool PythonQtWrapper_QRect::intersects(QRect* theWrappedObject, const QRect& r) const +{ + return ( theWrappedObject->intersects(r)); +} + +bool PythonQtWrapper_QRect::isEmpty(QRect* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +bool PythonQtWrapper_QRect::isNull(QRect* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QRect::isValid(QRect* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +int PythonQtWrapper_QRect::left(QRect* theWrappedObject) const +{ + return ( theWrappedObject->left()); +} + +void PythonQtWrapper_QRect::moveBottom(QRect* theWrappedObject, int pos) +{ + ( theWrappedObject->moveBottom(pos)); +} + +void PythonQtWrapper_QRect::moveBottomLeft(QRect* theWrappedObject, const QPoint& p) +{ + ( theWrappedObject->moveBottomLeft(p)); +} + +void PythonQtWrapper_QRect::moveBottomRight(QRect* theWrappedObject, const QPoint& p) +{ + ( theWrappedObject->moveBottomRight(p)); +} + +void PythonQtWrapper_QRect::moveCenter(QRect* theWrappedObject, const QPoint& p) +{ + ( theWrappedObject->moveCenter(p)); +} + +void PythonQtWrapper_QRect::moveLeft(QRect* theWrappedObject, int pos) +{ + ( theWrappedObject->moveLeft(pos)); +} + +void PythonQtWrapper_QRect::moveRight(QRect* theWrappedObject, int pos) +{ + ( theWrappedObject->moveRight(pos)); +} + +void PythonQtWrapper_QRect::moveTo(QRect* theWrappedObject, const QPoint& p) +{ + ( theWrappedObject->moveTo(p)); +} + +void PythonQtWrapper_QRect::moveTo(QRect* theWrappedObject, int x, int t) +{ + ( theWrappedObject->moveTo(x, t)); +} + +void PythonQtWrapper_QRect::moveTop(QRect* theWrappedObject, int pos) +{ + ( theWrappedObject->moveTop(pos)); +} + +void PythonQtWrapper_QRect::moveTopLeft(QRect* theWrappedObject, const QPoint& p) +{ + ( theWrappedObject->moveTopLeft(p)); +} + +void PythonQtWrapper_QRect::moveTopRight(QRect* theWrappedObject, const QPoint& p) +{ + ( theWrappedObject->moveTopRight(p)); +} + +QRect PythonQtWrapper_QRect::normalized(QRect* theWrappedObject) const +{ + return ( theWrappedObject->normalized()); +} + +bool PythonQtWrapper_QRect::__eq__(QRect* theWrappedObject, const QRect& arg__2) +{ + return ( (*theWrappedObject)== arg__2); +} + +int PythonQtWrapper_QRect::right(QRect* theWrappedObject) const +{ + return ( theWrappedObject->right()); +} + +void PythonQtWrapper_QRect::setBottom(QRect* theWrappedObject, int pos) +{ + ( theWrappedObject->setBottom(pos)); +} + +void PythonQtWrapper_QRect::setBottomLeft(QRect* theWrappedObject, const QPoint& p) +{ + ( theWrappedObject->setBottomLeft(p)); +} + +void PythonQtWrapper_QRect::setBottomRight(QRect* theWrappedObject, const QPoint& p) +{ + ( theWrappedObject->setBottomRight(p)); +} + +void PythonQtWrapper_QRect::setCoords(QRect* theWrappedObject, int x1, int y1, int x2, int y2) +{ + ( theWrappedObject->setCoords(x1, y1, x2, y2)); +} + +void PythonQtWrapper_QRect::setHeight(QRect* theWrappedObject, int h) +{ + ( theWrappedObject->setHeight(h)); +} + +void PythonQtWrapper_QRect::setLeft(QRect* theWrappedObject, int pos) +{ + ( theWrappedObject->setLeft(pos)); +} + +void PythonQtWrapper_QRect::setRect(QRect* theWrappedObject, int x, int y, int w, int h) +{ + ( theWrappedObject->setRect(x, y, w, h)); +} + +void PythonQtWrapper_QRect::setRight(QRect* theWrappedObject, int pos) +{ + ( theWrappedObject->setRight(pos)); +} + +void PythonQtWrapper_QRect::setSize(QRect* theWrappedObject, const QSize& s) +{ + ( theWrappedObject->setSize(s)); +} + +void PythonQtWrapper_QRect::setTop(QRect* theWrappedObject, int pos) +{ + ( theWrappedObject->setTop(pos)); +} + +void PythonQtWrapper_QRect::setTopLeft(QRect* theWrappedObject, const QPoint& p) +{ + ( theWrappedObject->setTopLeft(p)); +} + +void PythonQtWrapper_QRect::setTopRight(QRect* theWrappedObject, const QPoint& p) +{ + ( theWrappedObject->setTopRight(p)); +} + +void PythonQtWrapper_QRect::setWidth(QRect* theWrappedObject, int w) +{ + ( theWrappedObject->setWidth(w)); +} + +void PythonQtWrapper_QRect::setX(QRect* theWrappedObject, int x) +{ + ( theWrappedObject->setX(x)); +} + +void PythonQtWrapper_QRect::setY(QRect* theWrappedObject, int y) +{ + ( theWrappedObject->setY(y)); +} + +QSize PythonQtWrapper_QRect::size(QRect* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +int PythonQtWrapper_QRect::top(QRect* theWrappedObject) const +{ + return ( theWrappedObject->top()); +} + +QPoint PythonQtWrapper_QRect::topLeft(QRect* theWrappedObject) const +{ + return ( theWrappedObject->topLeft()); +} + +QPoint PythonQtWrapper_QRect::topRight(QRect* theWrappedObject) const +{ + return ( theWrappedObject->topRight()); +} + +void PythonQtWrapper_QRect::translate(QRect* theWrappedObject, const QPoint& p) +{ + ( theWrappedObject->translate(p)); +} + +void PythonQtWrapper_QRect::translate(QRect* theWrappedObject, int dx, int dy) +{ + ( theWrappedObject->translate(dx, dy)); +} + +QRect PythonQtWrapper_QRect::translated(QRect* theWrappedObject, const QPoint& p) const +{ + return ( theWrappedObject->translated(p)); +} + +QRect PythonQtWrapper_QRect::translated(QRect* theWrappedObject, int dx, int dy) const +{ + return ( theWrappedObject->translated(dx, dy)); +} + +QRect PythonQtWrapper_QRect::united(QRect* theWrappedObject, const QRect& other) const +{ + return ( theWrappedObject->united(other)); +} + +int PythonQtWrapper_QRect::width(QRect* theWrappedObject) const +{ + return ( theWrappedObject->width()); +} + +int PythonQtWrapper_QRect::x(QRect* theWrappedObject) const +{ + return ( theWrappedObject->x()); +} + +int PythonQtWrapper_QRect::y(QRect* theWrappedObject) const +{ + return ( theWrappedObject->y()); +} + +QString PythonQtWrapper_QRect::py_toString(QRect* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QRectF* PythonQtWrapper_QRectF::new_QRectF() +{ +return new QRectF(); } + +QRectF* PythonQtWrapper_QRectF::new_QRectF(const QPointF& topleft, const QPointF& bottomRight) +{ +return new QRectF(topleft, bottomRight); } + +QRectF* PythonQtWrapper_QRectF::new_QRectF(const QPointF& topleft, const QSizeF& size) +{ +return new QRectF(topleft, size); } + +QRectF* PythonQtWrapper_QRectF::new_QRectF(const QRect& rect) +{ +return new QRectF(rect); } + +QRectF* PythonQtWrapper_QRectF::new_QRectF(qreal left, qreal top, qreal width, qreal height) +{ +return new QRectF(left, top, width, height); } + +void PythonQtWrapper_QRectF::adjust(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2) +{ + ( theWrappedObject->adjust(x1, y1, x2, y2)); +} + +QRectF PythonQtWrapper_QRectF::adjusted(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2) const +{ + return ( theWrappedObject->adjusted(x1, y1, x2, y2)); +} + +qreal PythonQtWrapper_QRectF::bottom(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->bottom()); +} + +QPointF PythonQtWrapper_QRectF::bottomLeft(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->bottomLeft()); +} + +QPointF PythonQtWrapper_QRectF::bottomRight(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->bottomRight()); +} + +QPointF PythonQtWrapper_QRectF::center(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->center()); +} + +bool PythonQtWrapper_QRectF::contains(QRectF* theWrappedObject, const QPointF& p) const +{ + return ( theWrappedObject->contains(p)); +} + +bool PythonQtWrapper_QRectF::contains(QRectF* theWrappedObject, const QRectF& r) const +{ + return ( theWrappedObject->contains(r)); +} + +bool PythonQtWrapper_QRectF::contains(QRectF* theWrappedObject, qreal x, qreal y) const +{ + return ( theWrappedObject->contains(x, y)); +} + +qreal PythonQtWrapper_QRectF::height(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->height()); +} + +QRectF PythonQtWrapper_QRectF::intersected(QRectF* theWrappedObject, const QRectF& other) const +{ + return ( theWrappedObject->intersected(other)); +} + +bool PythonQtWrapper_QRectF::intersects(QRectF* theWrappedObject, const QRectF& r) const +{ + return ( theWrappedObject->intersects(r)); +} + +bool PythonQtWrapper_QRectF::isEmpty(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +bool PythonQtWrapper_QRectF::isNull(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QRectF::isValid(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +qreal PythonQtWrapper_QRectF::left(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->left()); +} + +void PythonQtWrapper_QRectF::moveBottom(QRectF* theWrappedObject, qreal pos) +{ + ( theWrappedObject->moveBottom(pos)); +} + +void PythonQtWrapper_QRectF::moveBottomLeft(QRectF* theWrappedObject, const QPointF& p) +{ + ( theWrappedObject->moveBottomLeft(p)); +} + +void PythonQtWrapper_QRectF::moveBottomRight(QRectF* theWrappedObject, const QPointF& p) +{ + ( theWrappedObject->moveBottomRight(p)); +} + +void PythonQtWrapper_QRectF::moveCenter(QRectF* theWrappedObject, const QPointF& p) +{ + ( theWrappedObject->moveCenter(p)); +} + +void PythonQtWrapper_QRectF::moveLeft(QRectF* theWrappedObject, qreal pos) +{ + ( theWrappedObject->moveLeft(pos)); +} + +void PythonQtWrapper_QRectF::moveRight(QRectF* theWrappedObject, qreal pos) +{ + ( theWrappedObject->moveRight(pos)); +} + +void PythonQtWrapper_QRectF::moveTo(QRectF* theWrappedObject, const QPointF& p) +{ + ( theWrappedObject->moveTo(p)); +} + +void PythonQtWrapper_QRectF::moveTo(QRectF* theWrappedObject, qreal x, qreal t) +{ + ( theWrappedObject->moveTo(x, t)); +} + +void PythonQtWrapper_QRectF::moveTop(QRectF* theWrappedObject, qreal pos) +{ + ( theWrappedObject->moveTop(pos)); +} + +void PythonQtWrapper_QRectF::moveTopLeft(QRectF* theWrappedObject, const QPointF& p) +{ + ( theWrappedObject->moveTopLeft(p)); +} + +void PythonQtWrapper_QRectF::moveTopRight(QRectF* theWrappedObject, const QPointF& p) +{ + ( theWrappedObject->moveTopRight(p)); +} + +QRectF PythonQtWrapper_QRectF::normalized(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->normalized()); +} + +bool PythonQtWrapper_QRectF::__eq__(QRectF* theWrappedObject, const QRectF& arg__2) +{ + return ( (*theWrappedObject)== arg__2); +} + +qreal PythonQtWrapper_QRectF::right(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->right()); +} + +void PythonQtWrapper_QRectF::setBottom(QRectF* theWrappedObject, qreal pos) +{ + ( theWrappedObject->setBottom(pos)); +} + +void PythonQtWrapper_QRectF::setBottomLeft(QRectF* theWrappedObject, const QPointF& p) +{ + ( theWrappedObject->setBottomLeft(p)); +} + +void PythonQtWrapper_QRectF::setBottomRight(QRectF* theWrappedObject, const QPointF& p) +{ + ( theWrappedObject->setBottomRight(p)); +} + +void PythonQtWrapper_QRectF::setCoords(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2) +{ + ( theWrappedObject->setCoords(x1, y1, x2, y2)); +} + +void PythonQtWrapper_QRectF::setHeight(QRectF* theWrappedObject, qreal h) +{ + ( theWrappedObject->setHeight(h)); +} + +void PythonQtWrapper_QRectF::setLeft(QRectF* theWrappedObject, qreal pos) +{ + ( theWrappedObject->setLeft(pos)); +} + +void PythonQtWrapper_QRectF::setRect(QRectF* theWrappedObject, qreal x, qreal y, qreal w, qreal h) +{ + ( theWrappedObject->setRect(x, y, w, h)); +} + +void PythonQtWrapper_QRectF::setRight(QRectF* theWrappedObject, qreal pos) +{ + ( theWrappedObject->setRight(pos)); +} + +void PythonQtWrapper_QRectF::setSize(QRectF* theWrappedObject, const QSizeF& s) +{ + ( theWrappedObject->setSize(s)); +} + +void PythonQtWrapper_QRectF::setTop(QRectF* theWrappedObject, qreal pos) +{ + ( theWrappedObject->setTop(pos)); +} + +void PythonQtWrapper_QRectF::setTopLeft(QRectF* theWrappedObject, const QPointF& p) +{ + ( theWrappedObject->setTopLeft(p)); +} + +void PythonQtWrapper_QRectF::setTopRight(QRectF* theWrappedObject, const QPointF& p) +{ + ( theWrappedObject->setTopRight(p)); +} + +void PythonQtWrapper_QRectF::setWidth(QRectF* theWrappedObject, qreal w) +{ + ( theWrappedObject->setWidth(w)); +} + +void PythonQtWrapper_QRectF::setX(QRectF* theWrappedObject, qreal pos) +{ + ( theWrappedObject->setX(pos)); +} + +void PythonQtWrapper_QRectF::setY(QRectF* theWrappedObject, qreal pos) +{ + ( theWrappedObject->setY(pos)); +} + +QSizeF PythonQtWrapper_QRectF::size(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +QRect PythonQtWrapper_QRectF::toAlignedRect(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->toAlignedRect()); +} + +QRect PythonQtWrapper_QRectF::toRect(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->toRect()); +} + +qreal PythonQtWrapper_QRectF::top(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->top()); +} + +QPointF PythonQtWrapper_QRectF::topLeft(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->topLeft()); +} + +QPointF PythonQtWrapper_QRectF::topRight(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->topRight()); +} + +void PythonQtWrapper_QRectF::translate(QRectF* theWrappedObject, const QPointF& p) +{ + ( theWrappedObject->translate(p)); +} + +void PythonQtWrapper_QRectF::translate(QRectF* theWrappedObject, qreal dx, qreal dy) +{ + ( theWrappedObject->translate(dx, dy)); +} + +QRectF PythonQtWrapper_QRectF::translated(QRectF* theWrappedObject, const QPointF& p) const +{ + return ( theWrappedObject->translated(p)); +} + +QRectF PythonQtWrapper_QRectF::translated(QRectF* theWrappedObject, qreal dx, qreal dy) const +{ + return ( theWrappedObject->translated(dx, dy)); +} + +QRectF PythonQtWrapper_QRectF::united(QRectF* theWrappedObject, const QRectF& other) const +{ + return ( theWrappedObject->united(other)); +} + +qreal PythonQtWrapper_QRectF::width(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->width()); +} + +qreal PythonQtWrapper_QRectF::x(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->x()); +} + +qreal PythonQtWrapper_QRectF::y(QRectF* theWrappedObject) const +{ + return ( theWrappedObject->y()); +} + +QString PythonQtWrapper_QRectF::py_toString(QRectF* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QRegExp* PythonQtWrapper_QRegExp::new_QRegExp() +{ +return new QRegExp(); } + +QRegExp* PythonQtWrapper_QRegExp::new_QRegExp(const QRegExp& rx) +{ +return new QRegExp(rx); } + +QRegExp* PythonQtWrapper_QRegExp::new_QRegExp(const QString& pattern, Qt::CaseSensitivity cs, QRegExp::PatternSyntax syntax) +{ +return new QRegExp(pattern, cs, syntax); } + +QString PythonQtWrapper_QRegExp::cap(QRegExp* theWrappedObject, int nth) const +{ + return ( theWrappedObject->cap(nth)); +} + +int PythonQtWrapper_QRegExp::captureCount(QRegExp* theWrappedObject) const +{ + return ( theWrappedObject->captureCount()); +} + +QStringList PythonQtWrapper_QRegExp::capturedTexts(QRegExp* theWrappedObject) const +{ + return ( theWrappedObject->capturedTexts()); +} + +Qt::CaseSensitivity PythonQtWrapper_QRegExp::caseSensitivity(QRegExp* theWrappedObject) const +{ + return ( theWrappedObject->caseSensitivity()); +} + +QString PythonQtWrapper_QRegExp::errorString(QRegExp* theWrappedObject) const +{ + return ( theWrappedObject->errorString()); +} + +QString PythonQtWrapper_QRegExp::static_QRegExp_escape(const QString& str) +{ + return (QRegExp::escape(str)); +} + +bool PythonQtWrapper_QRegExp::exactMatch(QRegExp* theWrappedObject, const QString& str) const +{ + return ( theWrappedObject->exactMatch(str)); +} + +int PythonQtWrapper_QRegExp::indexIn(QRegExp* theWrappedObject, const QString& str, int offset, QRegExp::CaretMode caretMode) const +{ + return ( theWrappedObject->indexIn(str, offset, caretMode)); +} + +bool PythonQtWrapper_QRegExp::isEmpty(QRegExp* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +bool PythonQtWrapper_QRegExp::isMinimal(QRegExp* theWrappedObject) const +{ + return ( theWrappedObject->isMinimal()); +} + +bool PythonQtWrapper_QRegExp::isValid(QRegExp* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +int PythonQtWrapper_QRegExp::lastIndexIn(QRegExp* theWrappedObject, const QString& str, int offset, QRegExp::CaretMode caretMode) const +{ + return ( theWrappedObject->lastIndexIn(str, offset, caretMode)); +} + +int PythonQtWrapper_QRegExp::matchedLength(QRegExp* theWrappedObject) const +{ + return ( theWrappedObject->matchedLength()); +} + +bool PythonQtWrapper_QRegExp::__ne__(QRegExp* theWrappedObject, const QRegExp& rx) const +{ + return ( (*theWrappedObject)!= rx); +} + +bool PythonQtWrapper_QRegExp::__eq__(QRegExp* theWrappedObject, const QRegExp& rx) const +{ + return ( (*theWrappedObject)== rx); +} + +QString PythonQtWrapper_QRegExp::pattern(QRegExp* theWrappedObject) const +{ + return ( theWrappedObject->pattern()); +} + +QRegExp::PatternSyntax PythonQtWrapper_QRegExp::patternSyntax(QRegExp* theWrappedObject) const +{ + return ( theWrappedObject->patternSyntax()); +} + +int PythonQtWrapper_QRegExp::pos(QRegExp* theWrappedObject, int nth) const +{ + return ( theWrappedObject->pos(nth)); +} + +void PythonQtWrapper_QRegExp::setCaseSensitivity(QRegExp* theWrappedObject, Qt::CaseSensitivity cs) +{ + ( theWrappedObject->setCaseSensitivity(cs)); +} + +void PythonQtWrapper_QRegExp::setMinimal(QRegExp* theWrappedObject, bool minimal) +{ + ( theWrappedObject->setMinimal(minimal)); +} + +void PythonQtWrapper_QRegExp::setPattern(QRegExp* theWrappedObject, const QString& pattern) +{ + ( theWrappedObject->setPattern(pattern)); +} + +void PythonQtWrapper_QRegExp::setPatternSyntax(QRegExp* theWrappedObject, QRegExp::PatternSyntax syntax) +{ + ( theWrappedObject->setPatternSyntax(syntax)); +} + +void PythonQtWrapper_QRegExp::swap(QRegExp* theWrappedObject, QRegExp& other) +{ + ( theWrappedObject->swap(other)); +} + +QString PythonQtWrapper_QRegExp::py_toString(QRegExp* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QSize* PythonQtWrapper_QSize::new_QSize() +{ +return new QSize(); } + +QSize* PythonQtWrapper_QSize::new_QSize(int w, int h) +{ +return new QSize(w, h); } + +QSize PythonQtWrapper_QSize::boundedTo(QSize* theWrappedObject, const QSize& arg__1) const +{ + return ( theWrappedObject->boundedTo(arg__1)); +} + +QSize PythonQtWrapper_QSize::expandedTo(QSize* theWrappedObject, const QSize& arg__1) const +{ + return ( theWrappedObject->expandedTo(arg__1)); +} + +int PythonQtWrapper_QSize::height(QSize* theWrappedObject) const +{ + return ( theWrappedObject->height()); +} + +bool PythonQtWrapper_QSize::isEmpty(QSize* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +bool PythonQtWrapper_QSize::isNull(QSize* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QSize::isValid(QSize* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +const QSize PythonQtWrapper_QSize::__mul__(QSize* theWrappedObject, qreal c) +{ + return ( (*theWrappedObject)* c); +} + +QSize* PythonQtWrapper_QSize::__imul__(QSize* theWrappedObject, qreal c) +{ + return &( (*theWrappedObject)*= c); +} + +const QSize PythonQtWrapper_QSize::__add__(QSize* theWrappedObject, const QSize& s2) +{ + return ( (*theWrappedObject)+ s2); +} + +QSize* PythonQtWrapper_QSize::__iadd__(QSize* theWrappedObject, const QSize& arg__1) +{ + return &( (*theWrappedObject)+= arg__1); +} + +const QSize PythonQtWrapper_QSize::__sub__(QSize* theWrappedObject, const QSize& s2) +{ + return ( (*theWrappedObject)- s2); +} + +QSize* PythonQtWrapper_QSize::__isub__(QSize* theWrappedObject, const QSize& arg__1) +{ + return &( (*theWrappedObject)-= arg__1); +} + +const QSize PythonQtWrapper_QSize::__div__(QSize* theWrappedObject, qreal c) +{ + return ( (*theWrappedObject)/ c); +} + +QSize* PythonQtWrapper_QSize::__idiv__(QSize* theWrappedObject, qreal c) +{ + return &( (*theWrappedObject)/= c); +} + +bool PythonQtWrapper_QSize::__eq__(QSize* theWrappedObject, const QSize& s2) +{ + return ( (*theWrappedObject)== s2); +} + +void PythonQtWrapper_QSize::scale(QSize* theWrappedObject, const QSize& s, Qt::AspectRatioMode mode) +{ + ( theWrappedObject->scale(s, mode)); +} + +void PythonQtWrapper_QSize::scale(QSize* theWrappedObject, int w, int h, Qt::AspectRatioMode mode) +{ + ( theWrappedObject->scale(w, h, mode)); +} + +QSize PythonQtWrapper_QSize::scaled(QSize* theWrappedObject, const QSize& s, Qt::AspectRatioMode mode) const +{ + return ( theWrappedObject->scaled(s, mode)); +} + +QSize PythonQtWrapper_QSize::scaled(QSize* theWrappedObject, int w, int h, Qt::AspectRatioMode mode) const +{ + return ( theWrappedObject->scaled(w, h, mode)); +} + +void PythonQtWrapper_QSize::setHeight(QSize* theWrappedObject, int h) +{ + ( theWrappedObject->setHeight(h)); +} + +void PythonQtWrapper_QSize::setWidth(QSize* theWrappedObject, int w) +{ + ( theWrappedObject->setWidth(w)); +} + +void PythonQtWrapper_QSize::transpose(QSize* theWrappedObject) +{ + ( theWrappedObject->transpose()); +} + +QSize PythonQtWrapper_QSize::transposed(QSize* theWrappedObject) const +{ + return ( theWrappedObject->transposed()); +} + +int PythonQtWrapper_QSize::width(QSize* theWrappedObject) const +{ + return ( theWrappedObject->width()); +} + +QString PythonQtWrapper_QSize::py_toString(QSize* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QSizeF* PythonQtWrapper_QSizeF::new_QSizeF() +{ +return new QSizeF(); } + +QSizeF* PythonQtWrapper_QSizeF::new_QSizeF(const QSize& sz) +{ +return new QSizeF(sz); } + +QSizeF* PythonQtWrapper_QSizeF::new_QSizeF(qreal w, qreal h) +{ +return new QSizeF(w, h); } + +QSizeF PythonQtWrapper_QSizeF::boundedTo(QSizeF* theWrappedObject, const QSizeF& arg__1) const +{ + return ( theWrappedObject->boundedTo(arg__1)); +} + +QSizeF PythonQtWrapper_QSizeF::expandedTo(QSizeF* theWrappedObject, const QSizeF& arg__1) const +{ + return ( theWrappedObject->expandedTo(arg__1)); +} + +qreal PythonQtWrapper_QSizeF::height(QSizeF* theWrappedObject) const +{ + return ( theWrappedObject->height()); +} + +bool PythonQtWrapper_QSizeF::isEmpty(QSizeF* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +bool PythonQtWrapper_QSizeF::isNull(QSizeF* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QSizeF::isValid(QSizeF* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +const QSizeF PythonQtWrapper_QSizeF::__mul__(QSizeF* theWrappedObject, qreal c) +{ + return ( (*theWrappedObject)* c); +} + +QSizeF* PythonQtWrapper_QSizeF::__imul__(QSizeF* theWrappedObject, qreal c) +{ + return &( (*theWrappedObject)*= c); +} + +const QSizeF PythonQtWrapper_QSizeF::__add__(QSizeF* theWrappedObject, const QSizeF& s2) +{ + return ( (*theWrappedObject)+ s2); +} + +QSizeF* PythonQtWrapper_QSizeF::__iadd__(QSizeF* theWrappedObject, const QSizeF& arg__1) +{ + return &( (*theWrappedObject)+= arg__1); +} + +const QSizeF PythonQtWrapper_QSizeF::__sub__(QSizeF* theWrappedObject, const QSizeF& s2) +{ + return ( (*theWrappedObject)- s2); +} + +QSizeF* PythonQtWrapper_QSizeF::__isub__(QSizeF* theWrappedObject, const QSizeF& arg__1) +{ + return &( (*theWrappedObject)-= arg__1); +} + +const QSizeF PythonQtWrapper_QSizeF::__div__(QSizeF* theWrappedObject, qreal c) +{ + return ( (*theWrappedObject)/ c); +} + +QSizeF* PythonQtWrapper_QSizeF::__idiv__(QSizeF* theWrappedObject, qreal c) +{ + return &( (*theWrappedObject)/= c); +} + +bool PythonQtWrapper_QSizeF::__eq__(QSizeF* theWrappedObject, const QSizeF& s2) +{ + return ( (*theWrappedObject)== s2); +} + +void PythonQtWrapper_QSizeF::scale(QSizeF* theWrappedObject, const QSizeF& s, Qt::AspectRatioMode mode) +{ + ( theWrappedObject->scale(s, mode)); +} + +void PythonQtWrapper_QSizeF::scale(QSizeF* theWrappedObject, qreal w, qreal h, Qt::AspectRatioMode mode) +{ + ( theWrappedObject->scale(w, h, mode)); +} + +QSizeF PythonQtWrapper_QSizeF::scaled(QSizeF* theWrappedObject, const QSizeF& s, Qt::AspectRatioMode mode) const +{ + return ( theWrappedObject->scaled(s, mode)); +} + +QSizeF PythonQtWrapper_QSizeF::scaled(QSizeF* theWrappedObject, qreal w, qreal h, Qt::AspectRatioMode mode) const +{ + return ( theWrappedObject->scaled(w, h, mode)); +} + +void PythonQtWrapper_QSizeF::setHeight(QSizeF* theWrappedObject, qreal h) +{ + ( theWrappedObject->setHeight(h)); +} + +void PythonQtWrapper_QSizeF::setWidth(QSizeF* theWrappedObject, qreal w) +{ + ( theWrappedObject->setWidth(w)); +} + +QSize PythonQtWrapper_QSizeF::toSize(QSizeF* theWrappedObject) const +{ + return ( theWrappedObject->toSize()); +} + +void PythonQtWrapper_QSizeF::transpose(QSizeF* theWrappedObject) +{ + ( theWrappedObject->transpose()); +} + +QSizeF PythonQtWrapper_QSizeF::transposed(QSizeF* theWrappedObject) const +{ + return ( theWrappedObject->transposed()); +} + +qreal PythonQtWrapper_QSizeF::width(QSizeF* theWrappedObject) const +{ + return ( theWrappedObject->width()); +} + +QString PythonQtWrapper_QSizeF::py_toString(QSizeF* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QTime* PythonQtWrapper_QTime::new_QTime() +{ +return new QTime(); } + +QTime* PythonQtWrapper_QTime::new_QTime(int h, int m, int s, int ms) +{ +return new QTime(h, m, s, ms); } + +QTime PythonQtWrapper_QTime::addMSecs(QTime* theWrappedObject, int ms) const +{ + return ( theWrappedObject->addMSecs(ms)); +} + +QTime PythonQtWrapper_QTime::addSecs(QTime* theWrappedObject, int secs) const +{ + return ( theWrappedObject->addSecs(secs)); +} + +QTime PythonQtWrapper_QTime::static_QTime_currentTime() +{ + return (QTime::currentTime()); +} + +int PythonQtWrapper_QTime::elapsed(QTime* theWrappedObject) const +{ + return ( theWrappedObject->elapsed()); +} + +QTime PythonQtWrapper_QTime::static_QTime_fromString(const QString& s, Qt::DateFormat f) +{ + return (QTime::fromString(s, f)); +} + +QTime PythonQtWrapper_QTime::static_QTime_fromString(const QString& s, const QString& format) +{ + return (QTime::fromString(s, format)); +} + +int PythonQtWrapper_QTime::hour(QTime* theWrappedObject) const +{ + return ( theWrappedObject->hour()); +} + +bool PythonQtWrapper_QTime::isNull(QTime* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QTime::isValid(QTime* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +bool PythonQtWrapper_QTime::static_QTime_isValid(int h, int m, int s, int ms) +{ + return (QTime::isValid(h, m, s, ms)); +} + +int PythonQtWrapper_QTime::minute(QTime* theWrappedObject) const +{ + return ( theWrappedObject->minute()); +} + +int PythonQtWrapper_QTime::msec(QTime* theWrappedObject) const +{ + return ( theWrappedObject->msec()); +} + +int PythonQtWrapper_QTime::msecsTo(QTime* theWrappedObject, const QTime& arg__1) const +{ + return ( theWrappedObject->msecsTo(arg__1)); +} + +bool PythonQtWrapper_QTime::__ne__(QTime* theWrappedObject, const QTime& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QTime::__lt__(QTime* theWrappedObject, const QTime& other) const +{ + return ( (*theWrappedObject)< other); +} + +bool PythonQtWrapper_QTime::__le__(QTime* theWrappedObject, const QTime& other) const +{ + return ( (*theWrappedObject)<= other); +} + +bool PythonQtWrapper_QTime::__eq__(QTime* theWrappedObject, const QTime& other) const +{ + return ( (*theWrappedObject)== other); +} + +bool PythonQtWrapper_QTime::__gt__(QTime* theWrappedObject, const QTime& other) const +{ + return ( (*theWrappedObject)> other); +} + +bool PythonQtWrapper_QTime::__ge__(QTime* theWrappedObject, const QTime& other) const +{ + return ( (*theWrappedObject)>= other); +} + +int PythonQtWrapper_QTime::restart(QTime* theWrappedObject) +{ + return ( theWrappedObject->restart()); +} + +int PythonQtWrapper_QTime::second(QTime* theWrappedObject) const +{ + return ( theWrappedObject->second()); +} + +int PythonQtWrapper_QTime::secsTo(QTime* theWrappedObject, const QTime& arg__1) const +{ + return ( theWrappedObject->secsTo(arg__1)); +} + +bool PythonQtWrapper_QTime::setHMS(QTime* theWrappedObject, int h, int m, int s, int ms) +{ + return ( theWrappedObject->setHMS(h, m, s, ms)); +} + +void PythonQtWrapper_QTime::start(QTime* theWrappedObject) +{ + ( theWrappedObject->start()); +} + +QString PythonQtWrapper_QTime::toString(QTime* theWrappedObject, Qt::DateFormat f) const +{ + return ( theWrappedObject->toString(f)); +} + +QString PythonQtWrapper_QTime::toString(QTime* theWrappedObject, const QString& format) const +{ + return ( theWrappedObject->toString(format)); +} + +QString PythonQtWrapper_QTime::py_toString(QTime* obj) { return obj->toString(); } + + +QUrl* PythonQtWrapper_QUrl::new_QUrl() +{ +return new QUrl(); } + +QUrl* PythonQtWrapper_QUrl::new_QUrl(const QString& url, QUrl::ParsingMode mode) +{ +return new QUrl(url, mode); } + +QUrl* PythonQtWrapper_QUrl::new_QUrl(const QUrl& copy) +{ +return new QUrl(copy); } + +void PythonQtWrapper_QUrl::clear(QUrl* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +QString PythonQtWrapper_QUrl::errorString(QUrl* theWrappedObject) const +{ + return ( theWrappedObject->errorString()); +} + +QString PythonQtWrapper_QUrl::static_QUrl_fromAce(const QByteArray& arg__1) +{ + return (QUrl::fromAce(arg__1)); +} + +QUrl PythonQtWrapper_QUrl::static_QUrl_fromEncoded(const QByteArray& url, QUrl::ParsingMode mode) +{ + return (QUrl::fromEncoded(url, mode)); +} + +QUrl PythonQtWrapper_QUrl::static_QUrl_fromLocalFile(const QString& localfile) +{ + return (QUrl::fromLocalFile(localfile)); +} + +QString PythonQtWrapper_QUrl::static_QUrl_fromPercentEncoding(const QByteArray& arg__1) +{ + return (QUrl::fromPercentEncoding(arg__1)); +} + +QUrl PythonQtWrapper_QUrl::static_QUrl_fromUserInput(const QString& userInput) +{ + return (QUrl::fromUserInput(userInput)); +} + +bool PythonQtWrapper_QUrl::hasFragment(QUrl* theWrappedObject) const +{ + return ( theWrappedObject->hasFragment()); +} + +bool PythonQtWrapper_QUrl::hasQuery(QUrl* theWrappedObject) const +{ + return ( theWrappedObject->hasQuery()); +} + +QStringList PythonQtWrapper_QUrl::static_QUrl_idnWhitelist() +{ + return (QUrl::idnWhitelist()); +} + +bool PythonQtWrapper_QUrl::isEmpty(QUrl* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +bool PythonQtWrapper_QUrl::isLocalFile(QUrl* theWrappedObject) const +{ + return ( theWrappedObject->isLocalFile()); +} + +bool PythonQtWrapper_QUrl::isParentOf(QUrl* theWrappedObject, const QUrl& url) const +{ + return ( theWrappedObject->isParentOf(url)); +} + +bool PythonQtWrapper_QUrl::isRelative(QUrl* theWrappedObject) const +{ + return ( theWrappedObject->isRelative()); +} + +bool PythonQtWrapper_QUrl::isValid(QUrl* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +bool PythonQtWrapper_QUrl::__ne__(QUrl* theWrappedObject, const QUrl& url) const +{ + return ( (*theWrappedObject)!= url); +} + +bool PythonQtWrapper_QUrl::__lt__(QUrl* theWrappedObject, const QUrl& url) const +{ + return ( (*theWrappedObject)< url); +} + +bool PythonQtWrapper_QUrl::__eq__(QUrl* theWrappedObject, const QUrl& url) const +{ + return ( (*theWrappedObject)== url); +} + +int PythonQtWrapper_QUrl::port(QUrl* theWrappedObject, int defaultPort) const +{ + return ( theWrappedObject->port(defaultPort)); +} + +QUrl PythonQtWrapper_QUrl::resolved(QUrl* theWrappedObject, const QUrl& relative) const +{ + return ( theWrappedObject->resolved(relative)); +} + +QString PythonQtWrapper_QUrl::scheme(QUrl* theWrappedObject) const +{ + return ( theWrappedObject->scheme()); +} + +void PythonQtWrapper_QUrl::setAuthority(QUrl* theWrappedObject, const QString& authority, QUrl::ParsingMode mode) +{ + ( theWrappedObject->setAuthority(authority, mode)); +} + +void PythonQtWrapper_QUrl::setFragment(QUrl* theWrappedObject, const QString& fragment, QUrl::ParsingMode mode) +{ + ( theWrappedObject->setFragment(fragment, mode)); +} + +void PythonQtWrapper_QUrl::setHost(QUrl* theWrappedObject, const QString& host, QUrl::ParsingMode mode) +{ + ( theWrappedObject->setHost(host, mode)); +} + +void PythonQtWrapper_QUrl::static_QUrl_setIdnWhitelist(const QStringList& arg__1) +{ + (QUrl::setIdnWhitelist(arg__1)); +} + +void PythonQtWrapper_QUrl::setPassword(QUrl* theWrappedObject, const QString& password, QUrl::ParsingMode mode) +{ + ( theWrappedObject->setPassword(password, mode)); +} + +void PythonQtWrapper_QUrl::setPath(QUrl* theWrappedObject, const QString& path, QUrl::ParsingMode mode) +{ + ( theWrappedObject->setPath(path, mode)); +} + +void PythonQtWrapper_QUrl::setPort(QUrl* theWrappedObject, int port) +{ + ( theWrappedObject->setPort(port)); +} + +void PythonQtWrapper_QUrl::setQuery(QUrl* theWrappedObject, const QString& query, QUrl::ParsingMode mode) +{ + ( theWrappedObject->setQuery(query, mode)); +} + +void PythonQtWrapper_QUrl::setScheme(QUrl* theWrappedObject, const QString& scheme) +{ + ( theWrappedObject->setScheme(scheme)); +} + +void PythonQtWrapper_QUrl::setUrl(QUrl* theWrappedObject, const QString& url, QUrl::ParsingMode mode) +{ + ( theWrappedObject->setUrl(url, mode)); +} + +void PythonQtWrapper_QUrl::setUserInfo(QUrl* theWrappedObject, const QString& userInfo, QUrl::ParsingMode mode) +{ + ( theWrappedObject->setUserInfo(userInfo, mode)); +} + +void PythonQtWrapper_QUrl::setUserName(QUrl* theWrappedObject, const QString& userName, QUrl::ParsingMode mode) +{ + ( theWrappedObject->setUserName(userName, mode)); +} + +void PythonQtWrapper_QUrl::swap(QUrl* theWrappedObject, QUrl& other) +{ + ( theWrappedObject->swap(other)); +} + +QByteArray PythonQtWrapper_QUrl::static_QUrl_toAce(const QString& arg__1) +{ + return (QUrl::toAce(arg__1)); +} + +QString PythonQtWrapper_QUrl::toLocalFile(QUrl* theWrappedObject) const +{ + return ( theWrappedObject->toLocalFile()); +} + +QByteArray PythonQtWrapper_QUrl::static_QUrl_toPercentEncoding(const QString& arg__1, const QByteArray& exclude, const QByteArray& include) +{ + return (QUrl::toPercentEncoding(arg__1, exclude, include)); +} + +QString PythonQtWrapper_QUrl::py_toString(QUrl* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + + diff --git a/generated_cpp_50/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.h b/generated_cpp_50/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.h new file mode 100644 index 00000000..3f123932 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.h @@ -0,0 +1,1067 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Only included if QtGui is wrapped +#if defined(QT_GUI_LIB) + #include + #include + #include +#endif + +class PythonQtWrapper_QBitArray : public QObject +{ Q_OBJECT +public: +public slots: +QBitArray* new_QBitArray(); +QBitArray* new_QBitArray(const QBitArray& other); +QBitArray* new_QBitArray(int size, bool val = false); +void delete_QBitArray(QBitArray* obj) { delete obj; } + bool at(QBitArray* theWrappedObject, int i) const; + void clear(QBitArray* theWrappedObject); + void clearBit(QBitArray* theWrappedObject, int i); + int count(QBitArray* theWrappedObject) const; + int count(QBitArray* theWrappedObject, bool on) const; + void fill(QBitArray* theWrappedObject, bool val, int first, int last); + bool fill(QBitArray* theWrappedObject, bool val, int size = -1); + bool isEmpty(QBitArray* theWrappedObject) const; + bool isNull(QBitArray* theWrappedObject) const; + bool __ne__(QBitArray* theWrappedObject, const QBitArray& other) const; + QBitArray __and__(QBitArray* theWrappedObject, const QBitArray& arg__2); + QBitArray* __iand__(QBitArray* theWrappedObject, const QBitArray& arg__1); + QBitArray* operator_assign(QBitArray* theWrappedObject, const QBitArray& other); + bool __eq__(QBitArray* theWrappedObject, const QBitArray& other) const; + QBitArray __xor__(QBitArray* theWrappedObject, const QBitArray& arg__2); + QBitArray* __ixor__(QBitArray* theWrappedObject, const QBitArray& arg__1); + QBitArray __or__(QBitArray* theWrappedObject, const QBitArray& arg__2); + QBitArray* __ior__(QBitArray* theWrappedObject, const QBitArray& arg__1); + QBitArray __invert__(QBitArray* theWrappedObject) const; + void resize(QBitArray* theWrappedObject, int size); + void setBit(QBitArray* theWrappedObject, int i); + void setBit(QBitArray* theWrappedObject, int i, bool val); + int size(QBitArray* theWrappedObject) const; + void swap(QBitArray* theWrappedObject, QBitArray& other); + bool testBit(QBitArray* theWrappedObject, int i) const; + bool toggleBit(QBitArray* theWrappedObject, int i); + void truncate(QBitArray* theWrappedObject, int pos); + QString py_toString(QBitArray*); + bool __nonzero__(QBitArray* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QByteArray : public QObject +{ Q_OBJECT +public: +public slots: +QByteArray* new_QByteArray(); +QByteArray* new_QByteArray(const QByteArray& arg__1); +QByteArray* new_QByteArray(int size, char c); +void delete_QByteArray(QByteArray* obj) { delete obj; } + QByteArray* append(QByteArray* theWrappedObject, char c); + QByteArray* append(QByteArray* theWrappedObject, const QByteArray& a); + QByteArray* append(QByteArray* theWrappedObject, const QString& s); + QByteArray* append(QByteArray* theWrappedObject, const char* s, int len); + char at(QByteArray* theWrappedObject, int i) const; + int capacity(QByteArray* theWrappedObject) const; + const char* cbegin(QByteArray* theWrappedObject) const; + const char* cend(QByteArray* theWrappedObject) const; + void chop(QByteArray* theWrappedObject, int n); + void clear(QByteArray* theWrappedObject); + int count(QByteArray* theWrappedObject, char c) const; + int count(QByteArray* theWrappedObject, const QByteArray& a) const; + bool endsWith(QByteArray* theWrappedObject, char c) const; + bool endsWith(QByteArray* theWrappedObject, const QByteArray& a) const; + QByteArray* fill(QByteArray* theWrappedObject, char c, int size = -1); + QByteArray static_QByteArray_fromBase64(const QByteArray& base64); + QByteArray static_QByteArray_fromHex(const QByteArray& hexEncoded); + QByteArray static_QByteArray_fromPercentEncoding(const QByteArray& pctEncoded, char percent = '%'); + int indexOf(QByteArray* theWrappedObject, char c, int from = 0) const; + int indexOf(QByteArray* theWrappedObject, const QByteArray& a, int from = 0) const; + int indexOf(QByteArray* theWrappedObject, const QString& s, int from = 0) const; + QByteArray* insert(QByteArray* theWrappedObject, int i, char c); + QByteArray* insert(QByteArray* theWrappedObject, int i, const QByteArray& a); + QByteArray* insert(QByteArray* theWrappedObject, int i, const QString& s); + QByteArray* insert(QByteArray* theWrappedObject, int i, const char* s, int len); + bool isEmpty(QByteArray* theWrappedObject) const; + bool isNull(QByteArray* theWrappedObject) const; + bool isSharedWith(QByteArray* theWrappedObject, const QByteArray& other) const; + int lastIndexOf(QByteArray* theWrappedObject, char c, int from = -1) const; + int lastIndexOf(QByteArray* theWrappedObject, const QByteArray& a, int from = -1) const; + int lastIndexOf(QByteArray* theWrappedObject, const QString& s, int from = -1) const; + QByteArray left(QByteArray* theWrappedObject, int len) const; + QByteArray leftJustified(QByteArray* theWrappedObject, int width, char fill = ' ', bool truncate = false) const; + int length(QByteArray* theWrappedObject) const; + QByteArray mid(QByteArray* theWrappedObject, int index, int len = -1) const; + QByteArray static_QByteArray_number(double arg__1, char f = 'g', int prec = 6); + QByteArray static_QByteArray_number(int arg__1, int base = 10); + QByteArray static_QByteArray_number(qlonglong arg__1, int base = 10); + bool __ne__(QByteArray* theWrappedObject, const QString& s2) const; + const QByteArray __add__(QByteArray* theWrappedObject, char a2); + const QByteArray __add__(QByteArray* theWrappedObject, const QByteArray& a2); + const QString __add__(QByteArray* theWrappedObject, const QString& s); + const QByteArray __add__(QByteArray* theWrappedObject, const char* a2); + bool __lt__(QByteArray* theWrappedObject, const QByteArray& a2); + bool __lt__(QByteArray* theWrappedObject, const QString& s2) const; + bool __le__(QByteArray* theWrappedObject, const QByteArray& a2); + bool __le__(QByteArray* theWrappedObject, const QString& s2) const; + QByteArray* operator_assign(QByteArray* theWrappedObject, const QByteArray& arg__1); + bool __eq__(QByteArray* theWrappedObject, const QByteArray& a2); + bool __eq__(QByteArray* theWrappedObject, const QString& s2) const; + bool __gt__(QByteArray* theWrappedObject, const QByteArray& a2); + bool __gt__(QByteArray* theWrappedObject, const QString& s2) const; + bool __ge__(QByteArray* theWrappedObject, const QByteArray& a2); + bool __ge__(QByteArray* theWrappedObject, const QString& s2) const; + QByteArray* prepend(QByteArray* theWrappedObject, char c); + QByteArray* prepend(QByteArray* theWrappedObject, const QByteArray& a); + QByteArray* prepend(QByteArray* theWrappedObject, const char* s, int len); + QByteArray* remove(QByteArray* theWrappedObject, int index, int len); + QByteArray repeated(QByteArray* theWrappedObject, int times) const; + QByteArray* replace(QByteArray* theWrappedObject, char before, char after); + QByteArray* replace(QByteArray* theWrappedObject, char before, const QByteArray& after); + QByteArray* replace(QByteArray* theWrappedObject, char c, const QString& after); + QByteArray* replace(QByteArray* theWrappedObject, const QByteArray& before, const QByteArray& after); + QByteArray* replace(QByteArray* theWrappedObject, const QString& before, const QByteArray& after); + QByteArray* replace(QByteArray* theWrappedObject, const char* before, int bsize, const char* after, int asize); + QByteArray* replace(QByteArray* theWrappedObject, int index, int len, const QByteArray& s); + QByteArray* replace(QByteArray* theWrappedObject, int index, int len, const char* s, int alen); + void reserve(QByteArray* theWrappedObject, int size); + void resize(QByteArray* theWrappedObject, int size); + QByteArray right(QByteArray* theWrappedObject, int len) const; + QByteArray rightJustified(QByteArray* theWrappedObject, int width, char fill = ' ', bool truncate = false) const; + QByteArray* setNum(QByteArray* theWrappedObject, double arg__1, char f = 'g', int prec = 6); + QByteArray* setNum(QByteArray* theWrappedObject, float arg__1, char f = 'g', int prec = 6); + QByteArray* setNum(QByteArray* theWrappedObject, int arg__1, int base = 10); + QByteArray* setNum(QByteArray* theWrappedObject, qlonglong arg__1, int base = 10); + QByteArray* setNum(QByteArray* theWrappedObject, short arg__1, int base = 10); + QByteArray* setRawData(QByteArray* theWrappedObject, const char* a, uint n); + QByteArray simplified(QByteArray* theWrappedObject) const; + int size(QByteArray* theWrappedObject) const; + QList split(QByteArray* theWrappedObject, char sep) const; + void squeeze(QByteArray* theWrappedObject); + bool startsWith(QByteArray* theWrappedObject, char c) const; + bool startsWith(QByteArray* theWrappedObject, const QByteArray& a) const; + void swap(QByteArray* theWrappedObject, QByteArray& other); + QByteArray toBase64(QByteArray* theWrappedObject) const; + double toDouble(QByteArray* theWrappedObject, bool* ok = 0) const; + float toFloat(QByteArray* theWrappedObject, bool* ok = 0) const; + QByteArray toHex(QByteArray* theWrappedObject) const; + int toInt(QByteArray* theWrappedObject, bool* ok = 0, int base = 10) const; + QByteArray toLower(QByteArray* theWrappedObject) const; + QByteArray toPercentEncoding(QByteArray* theWrappedObject, const QByteArray& exclude = QByteArray(), const QByteArray& include = QByteArray(), char percent = '%') const; + ushort toUShort(QByteArray* theWrappedObject, bool* ok = 0, int base = 10) const; + QByteArray toUpper(QByteArray* theWrappedObject) const; + QByteArray trimmed(QByteArray* theWrappedObject) const; + void truncate(QByteArray* theWrappedObject, int pos); + bool __nonzero__(QByteArray* obj) { return !obj->isNull(); } + + PyObject* data(QByteArray* b) { + if (b->data()) { + return PyString_FromStringAndSize(b->data(), b->size()); + } else { + Py_INCREF(Py_None); + return Py_None; + } + } + +}; + + + + + +class PythonQtWrapper_QDate : public QObject +{ Q_OBJECT +public: +Q_ENUMS(MonthNameType ) +enum MonthNameType{ + DateFormat = QDate::DateFormat, StandaloneFormat = QDate::StandaloneFormat}; +public slots: +QDate* new_QDate(); +QDate* new_QDate(int y, int m, int d); +QDate* new_QDate(const QDate& other) { +QDate* a = new QDate(); +*((QDate*)a) = other; +return a; } +void delete_QDate(QDate* obj) { delete obj; } + QDate addDays(QDate* theWrappedObject, qint64 days) const; + QDate addMonths(QDate* theWrappedObject, int months) const; + QDate addYears(QDate* theWrappedObject, int years) const; + QDate static_QDate_currentDate(); + int day(QDate* theWrappedObject) const; + int dayOfWeek(QDate* theWrappedObject) const; + int dayOfYear(QDate* theWrappedObject) const; + int daysInMonth(QDate* theWrappedObject) const; + int daysInYear(QDate* theWrappedObject) const; + qint64 daysTo(QDate* theWrappedObject, const QDate& arg__1) const; + QDate static_QDate_fromJulianDay(qint64 jd); + QDate static_QDate_fromString(const QString& s, Qt::DateFormat f = Qt::TextDate); + QDate static_QDate_fromString(const QString& s, const QString& format); + void getDate(QDate* theWrappedObject, int* year, int* month, int* day); + bool static_QDate_isLeapYear(int year); + bool isNull(QDate* theWrappedObject) const; + bool isValid(QDate* theWrappedObject) const; + bool static_QDate_isValid(int y, int m, int d); + QString static_QDate_longDayName(int weekday, QDate::MonthNameType type = QDate::DateFormat); + QString static_QDate_longMonthName(int month, QDate::MonthNameType type = QDate::DateFormat); + int month(QDate* theWrappedObject) const; + bool __ne__(QDate* theWrappedObject, const QDate& other) const; + bool __lt__(QDate* theWrappedObject, const QDate& other) const; + bool __le__(QDate* theWrappedObject, const QDate& other) const; + bool __eq__(QDate* theWrappedObject, const QDate& other) const; + bool __gt__(QDate* theWrappedObject, const QDate& other) const; + bool __ge__(QDate* theWrappedObject, const QDate& other) const; + bool setDate(QDate* theWrappedObject, int year, int month, int day); + QString static_QDate_shortDayName(int weekday, QDate::MonthNameType type = QDate::DateFormat); + QString static_QDate_shortMonthName(int month, QDate::MonthNameType type = QDate::DateFormat); + qint64 toJulianDay(QDate* theWrappedObject) const; + QString toString(QDate* theWrappedObject, Qt::DateFormat f = Qt::TextDate) const; + QString toString(QDate* theWrappedObject, const QString& format) const; + int weekNumber(QDate* theWrappedObject, int* yearNum = 0) const; + int year(QDate* theWrappedObject) const; + QString py_toString(QDate*); + bool __nonzero__(QDate* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QDateTime : public QObject +{ Q_OBJECT +public: +public slots: +QDateTime* new_QDateTime(); +QDateTime* new_QDateTime(const QDate& arg__1); +QDateTime* new_QDateTime(const QDate& arg__1, const QTime& arg__2, Qt::TimeSpec spec = Qt::LocalTime); +QDateTime* new_QDateTime(const QDateTime& other); +void delete_QDateTime(QDateTime* obj) { delete obj; } + QDateTime addDays(QDateTime* theWrappedObject, qint64 days) const; + QDateTime addMSecs(QDateTime* theWrappedObject, qint64 msecs) const; + QDateTime addMonths(QDateTime* theWrappedObject, int months) const; + QDateTime addSecs(QDateTime* theWrappedObject, qint64 secs) const; + QDateTime addYears(QDateTime* theWrappedObject, int years) const; + QDateTime static_QDateTime_currentDateTime(); + QDateTime static_QDateTime_currentDateTimeUtc(); + qint64 static_QDateTime_currentMSecsSinceEpoch(); + QDate date(QDateTime* theWrappedObject) const; + qint64 daysTo(QDateTime* theWrappedObject, const QDateTime& arg__1) const; + QDateTime static_QDateTime_fromMSecsSinceEpoch(qint64 msecs); + QDateTime static_QDateTime_fromString(const QString& s, Qt::DateFormat f = Qt::TextDate); + QDateTime static_QDateTime_fromString(const QString& s, const QString& format); + QDateTime static_QDateTime_fromTime_t(uint secsSince1Jan1970UTC); + bool isNull(QDateTime* theWrappedObject) const; + bool isValid(QDateTime* theWrappedObject) const; + qint64 msecsTo(QDateTime* theWrappedObject, const QDateTime& arg__1) const; + bool __ne__(QDateTime* theWrappedObject, const QDateTime& other) const; + bool __lt__(QDateTime* theWrappedObject, const QDateTime& other) const; + bool __le__(QDateTime* theWrappedObject, const QDateTime& other) const; + bool __eq__(QDateTime* theWrappedObject, const QDateTime& other) const; + bool __gt__(QDateTime* theWrappedObject, const QDateTime& other) const; + bool __ge__(QDateTime* theWrappedObject, const QDateTime& other) const; + qint64 secsTo(QDateTime* theWrappedObject, const QDateTime& arg__1) const; + void setDate(QDateTime* theWrappedObject, const QDate& date); + void setMSecsSinceEpoch(QDateTime* theWrappedObject, qint64 msecs); + void setTime(QDateTime* theWrappedObject, const QTime& time); + void setTimeSpec(QDateTime* theWrappedObject, Qt::TimeSpec spec); + void setTime_t(QDateTime* theWrappedObject, uint secsSince1Jan1970UTC); + void setUtcOffset(QDateTime* theWrappedObject, int seconds); + void swap(QDateTime* theWrappedObject, QDateTime& other); + QTime time(QDateTime* theWrappedObject) const; + Qt::TimeSpec timeSpec(QDateTime* theWrappedObject) const; + QDateTime toLocalTime(QDateTime* theWrappedObject) const; + qint64 toMSecsSinceEpoch(QDateTime* theWrappedObject) const; + QString toString(QDateTime* theWrappedObject, Qt::DateFormat f = Qt::TextDate) const; + QString toString(QDateTime* theWrappedObject, const QString& format) const; + QDateTime toTimeSpec(QDateTime* theWrappedObject, Qt::TimeSpec spec) const; + uint toTime_t(QDateTime* theWrappedObject) const; + QDateTime toUTC(QDateTime* theWrappedObject) const; + int utcOffset(QDateTime* theWrappedObject) const; + QString py_toString(QDateTime*); + bool __nonzero__(QDateTime* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QLocale : public QObject +{ Q_OBJECT +public: +Q_ENUMS(FormatType CurrencySymbolFormat QuotationStyle Language Script NumberOption Country MeasurementSystem ) +Q_FLAGS(NumberOptions ) +enum FormatType{ + LongFormat = QLocale::LongFormat, ShortFormat = QLocale::ShortFormat, NarrowFormat = QLocale::NarrowFormat}; +enum CurrencySymbolFormat{ + CurrencyIsoCode = QLocale::CurrencyIsoCode, CurrencySymbol = QLocale::CurrencySymbol, CurrencyDisplayName = QLocale::CurrencyDisplayName}; +enum QuotationStyle{ + StandardQuotation = QLocale::StandardQuotation, AlternateQuotation = QLocale::AlternateQuotation}; +enum Language{ + AnyLanguage = QLocale::AnyLanguage, C = QLocale::C, Abkhazian = QLocale::Abkhazian, Oromo = QLocale::Oromo, Afar = QLocale::Afar, Afrikaans = QLocale::Afrikaans, Albanian = QLocale::Albanian, Amharic = QLocale::Amharic, Arabic = QLocale::Arabic, Armenian = QLocale::Armenian, Assamese = QLocale::Assamese, Aymara = QLocale::Aymara, Azerbaijani = QLocale::Azerbaijani, Bashkir = QLocale::Bashkir, Basque = QLocale::Basque, Bengali = QLocale::Bengali, Dzongkha = QLocale::Dzongkha, Bihari = QLocale::Bihari, Bislama = QLocale::Bislama, Breton = QLocale::Breton, Bulgarian = QLocale::Bulgarian, Burmese = QLocale::Burmese, Belarusian = QLocale::Belarusian, Khmer = QLocale::Khmer, Catalan = QLocale::Catalan, Chinese = QLocale::Chinese, Corsican = QLocale::Corsican, Croatian = QLocale::Croatian, Czech = QLocale::Czech, Danish = QLocale::Danish, Dutch = QLocale::Dutch, English = QLocale::English, Esperanto = QLocale::Esperanto, Estonian = QLocale::Estonian, Faroese = QLocale::Faroese, Fijian = QLocale::Fijian, Finnish = QLocale::Finnish, French = QLocale::French, WesternFrisian = QLocale::WesternFrisian, Gaelic = QLocale::Gaelic, Galician = QLocale::Galician, Georgian = QLocale::Georgian, German = QLocale::German, Greek = QLocale::Greek, Greenlandic = QLocale::Greenlandic, Guarani = QLocale::Guarani, Gujarati = QLocale::Gujarati, Hausa = QLocale::Hausa, Hebrew = QLocale::Hebrew, Hindi = QLocale::Hindi, Hungarian = QLocale::Hungarian, Icelandic = QLocale::Icelandic, Indonesian = QLocale::Indonesian, Interlingua = QLocale::Interlingua, Interlingue = QLocale::Interlingue, Inuktitut = QLocale::Inuktitut, Inupiak = QLocale::Inupiak, Irish = QLocale::Irish, Italian = QLocale::Italian, Japanese = QLocale::Japanese, Javanese = QLocale::Javanese, Kannada = QLocale::Kannada, Kashmiri = QLocale::Kashmiri, Kazakh = QLocale::Kazakh, Kinyarwanda = QLocale::Kinyarwanda, Kirghiz = QLocale::Kirghiz, Korean = QLocale::Korean, Kurdish = QLocale::Kurdish, Rundi = QLocale::Rundi, Lao = QLocale::Lao, Latin = QLocale::Latin, Latvian = QLocale::Latvian, Lingala = QLocale::Lingala, Lithuanian = QLocale::Lithuanian, Macedonian = QLocale::Macedonian, Malagasy = QLocale::Malagasy, Malay = QLocale::Malay, Malayalam = QLocale::Malayalam, Maltese = QLocale::Maltese, Maori = QLocale::Maori, Marathi = QLocale::Marathi, Marshallese = QLocale::Marshallese, Mongolian = QLocale::Mongolian, NauruLanguage = QLocale::NauruLanguage, Nepali = QLocale::Nepali, NorwegianBokmal = QLocale::NorwegianBokmal, Occitan = QLocale::Occitan, Oriya = QLocale::Oriya, Pashto = QLocale::Pashto, Persian = QLocale::Persian, Polish = QLocale::Polish, Portuguese = QLocale::Portuguese, Punjabi = QLocale::Punjabi, Quechua = QLocale::Quechua, Romansh = QLocale::Romansh, Romanian = QLocale::Romanian, Russian = QLocale::Russian, Samoan = QLocale::Samoan, Sango = QLocale::Sango, Sanskrit = QLocale::Sanskrit, Serbian = QLocale::Serbian, Ossetic = QLocale::Ossetic, SouthernSotho = QLocale::SouthernSotho, Tswana = QLocale::Tswana, Shona = QLocale::Shona, Sindhi = QLocale::Sindhi, Sinhala = QLocale::Sinhala, Swati = QLocale::Swati, Slovak = QLocale::Slovak, Slovenian = QLocale::Slovenian, Somali = QLocale::Somali, Spanish = QLocale::Spanish, Sundanese = QLocale::Sundanese, Swahili = QLocale::Swahili, Swedish = QLocale::Swedish, Sardinian = QLocale::Sardinian, Tajik = QLocale::Tajik, Tamil = QLocale::Tamil, Tatar = QLocale::Tatar, Telugu = QLocale::Telugu, Thai = QLocale::Thai, Tibetan = QLocale::Tibetan, Tigrinya = QLocale::Tigrinya, Tongan = QLocale::Tongan, Tsonga = QLocale::Tsonga, Turkish = QLocale::Turkish, Turkmen = QLocale::Turkmen, Tahitian = QLocale::Tahitian, Uigur = QLocale::Uigur, Ukrainian = QLocale::Ukrainian, Urdu = QLocale::Urdu, Uzbek = QLocale::Uzbek, Vietnamese = QLocale::Vietnamese, Volapuk = QLocale::Volapuk, Welsh = QLocale::Welsh, Wolof = QLocale::Wolof, Xhosa = QLocale::Xhosa, Yiddish = QLocale::Yiddish, Yoruba = QLocale::Yoruba, Zhuang = QLocale::Zhuang, Zulu = QLocale::Zulu, NorwegianNynorsk = QLocale::NorwegianNynorsk, Bosnian = QLocale::Bosnian, Divehi = QLocale::Divehi, Manx = QLocale::Manx, Cornish = QLocale::Cornish, Akan = QLocale::Akan, Konkani = QLocale::Konkani, Ga = QLocale::Ga, Igbo = QLocale::Igbo, Kamba = QLocale::Kamba, Syriac = QLocale::Syriac, Blin = QLocale::Blin, Geez = QLocale::Geez, Koro = QLocale::Koro, Sidamo = QLocale::Sidamo, Atsam = QLocale::Atsam, Tigre = QLocale::Tigre, Jju = QLocale::Jju, Friulian = QLocale::Friulian, Venda = QLocale::Venda, Ewe = QLocale::Ewe, Walamo = QLocale::Walamo, Hawaiian = QLocale::Hawaiian, Tyap = QLocale::Tyap, Nyanja = QLocale::Nyanja, Filipino = QLocale::Filipino, SwissGerman = QLocale::SwissGerman, SichuanYi = QLocale::SichuanYi, Kpelle = QLocale::Kpelle, LowGerman = QLocale::LowGerman, SouthNdebele = QLocale::SouthNdebele, NorthernSotho = QLocale::NorthernSotho, NorthernSami = QLocale::NorthernSami, Taroko = QLocale::Taroko, Gusii = QLocale::Gusii, Taita = QLocale::Taita, Fulah = QLocale::Fulah, Kikuyu = QLocale::Kikuyu, Samburu = QLocale::Samburu, Sena = QLocale::Sena, NorthNdebele = QLocale::NorthNdebele, Rombo = QLocale::Rombo, Tachelhit = QLocale::Tachelhit, Kabyle = QLocale::Kabyle, Nyankole = QLocale::Nyankole, Bena = QLocale::Bena, Vunjo = QLocale::Vunjo, Bambara = QLocale::Bambara, Embu = QLocale::Embu, Cherokee = QLocale::Cherokee, Morisyen = QLocale::Morisyen, Makonde = QLocale::Makonde, Langi = QLocale::Langi, Ganda = QLocale::Ganda, Bemba = QLocale::Bemba, Kabuverdianu = QLocale::Kabuverdianu, Meru = QLocale::Meru, Kalenjin = QLocale::Kalenjin, Nama = QLocale::Nama, Machame = QLocale::Machame, Colognian = QLocale::Colognian, Masai = QLocale::Masai, Soga = QLocale::Soga, Luyia = QLocale::Luyia, Asu = QLocale::Asu, Teso = QLocale::Teso, Saho = QLocale::Saho, KoyraChiini = QLocale::KoyraChiini, Rwa = QLocale::Rwa, Luo = QLocale::Luo, Chiga = QLocale::Chiga, CentralMoroccoTamazight = QLocale::CentralMoroccoTamazight, KoyraboroSenni = QLocale::KoyraboroSenni, Shambala = QLocale::Shambala, Bodo = QLocale::Bodo, Avaric = QLocale::Avaric, Chamorro = QLocale::Chamorro, Chechen = QLocale::Chechen, Church = QLocale::Church, Chuvash = QLocale::Chuvash, Cree = QLocale::Cree, Haitian = QLocale::Haitian, Herero = QLocale::Herero, HiriMotu = QLocale::HiriMotu, Kanuri = QLocale::Kanuri, Komi = QLocale::Komi, Kongo = QLocale::Kongo, Kwanyama = QLocale::Kwanyama, Limburgish = QLocale::Limburgish, LubaKatanga = QLocale::LubaKatanga, Luxembourgish = QLocale::Luxembourgish, Navaho = QLocale::Navaho, Ndonga = QLocale::Ndonga, Ojibwa = QLocale::Ojibwa, Pali = QLocale::Pali, Walloon = QLocale::Walloon, Aghem = QLocale::Aghem, Basaa = QLocale::Basaa, Zarma = QLocale::Zarma, Duala = QLocale::Duala, JolaFonyi = QLocale::JolaFonyi, Ewondo = QLocale::Ewondo, Bafia = QLocale::Bafia, MakhuwaMeetto = QLocale::MakhuwaMeetto, Mundang = QLocale::Mundang, Kwasio = QLocale::Kwasio, Nuer = QLocale::Nuer, Sakha = QLocale::Sakha, Sangu = QLocale::Sangu, CongoSwahili = QLocale::CongoSwahili, Tasawaq = QLocale::Tasawaq, Vai = QLocale::Vai, Walser = QLocale::Walser, Yangben = QLocale::Yangben, Avestan = QLocale::Avestan, Asturian = QLocale::Asturian, Ngomba = QLocale::Ngomba, Kako = QLocale::Kako, Meta = QLocale::Meta, Ngiemboon = QLocale::Ngiemboon, Norwegian = QLocale::Norwegian, Moldavian = QLocale::Moldavian, SerboCroatian = QLocale::SerboCroatian, Tagalog = QLocale::Tagalog, Twi = QLocale::Twi, Afan = QLocale::Afan, Byelorussian = QLocale::Byelorussian, Bhutani = QLocale::Bhutani, Cambodian = QLocale::Cambodian, Kurundi = QLocale::Kurundi, RhaetoRomance = QLocale::RhaetoRomance, Chewa = QLocale::Chewa, Frisian = QLocale::Frisian, LastLanguage = QLocale::LastLanguage}; +enum Script{ + AnyScript = QLocale::AnyScript, ArabicScript = QLocale::ArabicScript, CyrillicScript = QLocale::CyrillicScript, DeseretScript = QLocale::DeseretScript, GurmukhiScript = QLocale::GurmukhiScript, SimplifiedHanScript = QLocale::SimplifiedHanScript, TraditionalHanScript = QLocale::TraditionalHanScript, LatinScript = QLocale::LatinScript, MongolianScript = QLocale::MongolianScript, TifinaghScript = QLocale::TifinaghScript, ArmenianScript = QLocale::ArmenianScript, BengaliScript = QLocale::BengaliScript, CherokeeScript = QLocale::CherokeeScript, DevanagariScript = QLocale::DevanagariScript, EthiopicScript = QLocale::EthiopicScript, GeorgianScript = QLocale::GeorgianScript, GreekScript = QLocale::GreekScript, GujaratiScript = QLocale::GujaratiScript, HebrewScript = QLocale::HebrewScript, JapaneseScript = QLocale::JapaneseScript, KhmerScript = QLocale::KhmerScript, KannadaScript = QLocale::KannadaScript, KoreanScript = QLocale::KoreanScript, LaoScript = QLocale::LaoScript, MalayalamScript = QLocale::MalayalamScript, MyanmarScript = QLocale::MyanmarScript, OriyaScript = QLocale::OriyaScript, TamilScript = QLocale::TamilScript, TeluguScript = QLocale::TeluguScript, ThaanaScript = QLocale::ThaanaScript, ThaiScript = QLocale::ThaiScript, TibetanScript = QLocale::TibetanScript, SinhalaScript = QLocale::SinhalaScript, SyriacScript = QLocale::SyriacScript, YiScript = QLocale::YiScript, VaiScript = QLocale::VaiScript, SimplifiedChineseScript = QLocale::SimplifiedChineseScript, TraditionalChineseScript = QLocale::TraditionalChineseScript, LastScript = QLocale::LastScript}; +enum NumberOption{ + OmitGroupSeparator = QLocale::OmitGroupSeparator, RejectGroupSeparator = QLocale::RejectGroupSeparator}; +enum Country{ + AnyCountry = QLocale::AnyCountry, Afghanistan = QLocale::Afghanistan, Albania = QLocale::Albania, Algeria = QLocale::Algeria, AmericanSamoa = QLocale::AmericanSamoa, Andorra = QLocale::Andorra, Angola = QLocale::Angola, Anguilla = QLocale::Anguilla, Antarctica = QLocale::Antarctica, AntiguaAndBarbuda = QLocale::AntiguaAndBarbuda, Argentina = QLocale::Argentina, Armenia = QLocale::Armenia, Aruba = QLocale::Aruba, Australia = QLocale::Australia, Austria = QLocale::Austria, Azerbaijan = QLocale::Azerbaijan, Bahamas = QLocale::Bahamas, Bahrain = QLocale::Bahrain, Bangladesh = QLocale::Bangladesh, Barbados = QLocale::Barbados, Belarus = QLocale::Belarus, Belgium = QLocale::Belgium, Belize = QLocale::Belize, Benin = QLocale::Benin, Bermuda = QLocale::Bermuda, Bhutan = QLocale::Bhutan, Bolivia = QLocale::Bolivia, BosniaAndHerzegowina = QLocale::BosniaAndHerzegowina, Botswana = QLocale::Botswana, BouvetIsland = QLocale::BouvetIsland, Brazil = QLocale::Brazil, BritishIndianOceanTerritory = QLocale::BritishIndianOceanTerritory, Brunei = QLocale::Brunei, Bulgaria = QLocale::Bulgaria, BurkinaFaso = QLocale::BurkinaFaso, Burundi = QLocale::Burundi, Cambodia = QLocale::Cambodia, Cameroon = QLocale::Cameroon, Canada = QLocale::Canada, CapeVerde = QLocale::CapeVerde, CaymanIslands = QLocale::CaymanIslands, CentralAfricanRepublic = QLocale::CentralAfricanRepublic, Chad = QLocale::Chad, Chile = QLocale::Chile, China = QLocale::China, ChristmasIsland = QLocale::ChristmasIsland, CocosIslands = QLocale::CocosIslands, Colombia = QLocale::Colombia, Comoros = QLocale::Comoros, CongoKinshasa = QLocale::CongoKinshasa, CongoBrazzaville = QLocale::CongoBrazzaville, CookIslands = QLocale::CookIslands, CostaRica = QLocale::CostaRica, IvoryCoast = QLocale::IvoryCoast, Croatia = QLocale::Croatia, Cuba = QLocale::Cuba, Cyprus = QLocale::Cyprus, CzechRepublic = QLocale::CzechRepublic, Denmark = QLocale::Denmark, Djibouti = QLocale::Djibouti, Dominica = QLocale::Dominica, DominicanRepublic = QLocale::DominicanRepublic, EastTimor = QLocale::EastTimor, Ecuador = QLocale::Ecuador, Egypt = QLocale::Egypt, ElSalvador = QLocale::ElSalvador, EquatorialGuinea = QLocale::EquatorialGuinea, Eritrea = QLocale::Eritrea, Estonia = QLocale::Estonia, Ethiopia = QLocale::Ethiopia, FalklandIslands = QLocale::FalklandIslands, FaroeIslands = QLocale::FaroeIslands, Fiji = QLocale::Fiji, Finland = QLocale::Finland, France = QLocale::France, Guernsey = QLocale::Guernsey, FrenchGuiana = QLocale::FrenchGuiana, FrenchPolynesia = QLocale::FrenchPolynesia, FrenchSouthernTerritories = QLocale::FrenchSouthernTerritories, Gabon = QLocale::Gabon, Gambia = QLocale::Gambia, Georgia = QLocale::Georgia, Germany = QLocale::Germany, Ghana = QLocale::Ghana, Gibraltar = QLocale::Gibraltar, Greece = QLocale::Greece, Greenland = QLocale::Greenland, Grenada = QLocale::Grenada, Guadeloupe = QLocale::Guadeloupe, Guam = QLocale::Guam, Guatemala = QLocale::Guatemala, Guinea = QLocale::Guinea, GuineaBissau = QLocale::GuineaBissau, Guyana = QLocale::Guyana, Haiti = QLocale::Haiti, HeardAndMcDonaldIslands = QLocale::HeardAndMcDonaldIslands, Honduras = QLocale::Honduras, HongKong = QLocale::HongKong, Hungary = QLocale::Hungary, Iceland = QLocale::Iceland, India = QLocale::India, Indonesia = QLocale::Indonesia, Iran = QLocale::Iran, Iraq = QLocale::Iraq, Ireland = QLocale::Ireland, Israel = QLocale::Israel, Italy = QLocale::Italy, Jamaica = QLocale::Jamaica, Japan = QLocale::Japan, Jordan = QLocale::Jordan, Kazakhstan = QLocale::Kazakhstan, Kenya = QLocale::Kenya, Kiribati = QLocale::Kiribati, NorthKorea = QLocale::NorthKorea, SouthKorea = QLocale::SouthKorea, Kuwait = QLocale::Kuwait, Kyrgyzstan = QLocale::Kyrgyzstan, Laos = QLocale::Laos, Latvia = QLocale::Latvia, Lebanon = QLocale::Lebanon, Lesotho = QLocale::Lesotho, Liberia = QLocale::Liberia, Libya = QLocale::Libya, Liechtenstein = QLocale::Liechtenstein, Lithuania = QLocale::Lithuania, Luxembourg = QLocale::Luxembourg, Macau = QLocale::Macau, Macedonia = QLocale::Macedonia, Madagascar = QLocale::Madagascar, Malawi = QLocale::Malawi, Malaysia = QLocale::Malaysia, Maldives = QLocale::Maldives, Mali = QLocale::Mali, Malta = QLocale::Malta, MarshallIslands = QLocale::MarshallIslands, Martinique = QLocale::Martinique, Mauritania = QLocale::Mauritania, Mauritius = QLocale::Mauritius, Mayotte = QLocale::Mayotte, Mexico = QLocale::Mexico, Micronesia = QLocale::Micronesia, Moldova = QLocale::Moldova, Monaco = QLocale::Monaco, Mongolia = QLocale::Mongolia, Montserrat = QLocale::Montserrat, Morocco = QLocale::Morocco, Mozambique = QLocale::Mozambique, Myanmar = QLocale::Myanmar, Namibia = QLocale::Namibia, NauruCountry = QLocale::NauruCountry, Nepal = QLocale::Nepal, Netherlands = QLocale::Netherlands, CuraSao = QLocale::CuraSao, NewCaledonia = QLocale::NewCaledonia, NewZealand = QLocale::NewZealand, Nicaragua = QLocale::Nicaragua, Niger = QLocale::Niger, Nigeria = QLocale::Nigeria, Niue = QLocale::Niue, NorfolkIsland = QLocale::NorfolkIsland, NorthernMarianaIslands = QLocale::NorthernMarianaIslands, Norway = QLocale::Norway, Oman = QLocale::Oman, Pakistan = QLocale::Pakistan, Palau = QLocale::Palau, PalestinianTerritories = QLocale::PalestinianTerritories, Panama = QLocale::Panama, PapuaNewGuinea = QLocale::PapuaNewGuinea, Paraguay = QLocale::Paraguay, Peru = QLocale::Peru, Philippines = QLocale::Philippines, Pitcairn = QLocale::Pitcairn, Poland = QLocale::Poland, Portugal = QLocale::Portugal, PuertoRico = QLocale::PuertoRico, Qatar = QLocale::Qatar, Reunion = QLocale::Reunion, Romania = QLocale::Romania, Russia = QLocale::Russia, Rwanda = QLocale::Rwanda, SaintKittsAndNevis = QLocale::SaintKittsAndNevis, SaintLucia = QLocale::SaintLucia, SaintVincentAndTheGrenadines = QLocale::SaintVincentAndTheGrenadines, Samoa = QLocale::Samoa, SanMarino = QLocale::SanMarino, SaoTomeAndPrincipe = QLocale::SaoTomeAndPrincipe, SaudiArabia = QLocale::SaudiArabia, Senegal = QLocale::Senegal, Seychelles = QLocale::Seychelles, SierraLeone = QLocale::SierraLeone, Singapore = QLocale::Singapore, Slovakia = QLocale::Slovakia, Slovenia = QLocale::Slovenia, SolomonIslands = QLocale::SolomonIslands, Somalia = QLocale::Somalia, SouthAfrica = QLocale::SouthAfrica, SouthGeorgiaAndTheSouthSandwichIslands = QLocale::SouthGeorgiaAndTheSouthSandwichIslands, Spain = QLocale::Spain, SriLanka = QLocale::SriLanka, SaintHelena = QLocale::SaintHelena, SaintPierreAndMiquelon = QLocale::SaintPierreAndMiquelon, Sudan = QLocale::Sudan, Suriname = QLocale::Suriname, SvalbardAndJanMayenIslands = QLocale::SvalbardAndJanMayenIslands, Swaziland = QLocale::Swaziland, Sweden = QLocale::Sweden, Switzerland = QLocale::Switzerland, Syria = QLocale::Syria, Taiwan = QLocale::Taiwan, Tajikistan = QLocale::Tajikistan, Tanzania = QLocale::Tanzania, Thailand = QLocale::Thailand, Togo = QLocale::Togo, Tokelau = QLocale::Tokelau, Tonga = QLocale::Tonga, TrinidadAndTobago = QLocale::TrinidadAndTobago, Tunisia = QLocale::Tunisia, Turkey = QLocale::Turkey, Turkmenistan = QLocale::Turkmenistan, TurksAndCaicosIslands = QLocale::TurksAndCaicosIslands, Tuvalu = QLocale::Tuvalu, Uganda = QLocale::Uganda, Ukraine = QLocale::Ukraine, UnitedArabEmirates = QLocale::UnitedArabEmirates, UnitedKingdom = QLocale::UnitedKingdom, UnitedStates = QLocale::UnitedStates, UnitedStatesMinorOutlyingIslands = QLocale::UnitedStatesMinorOutlyingIslands, Uruguay = QLocale::Uruguay, Uzbekistan = QLocale::Uzbekistan, Vanuatu = QLocale::Vanuatu, VaticanCityState = QLocale::VaticanCityState, Venezuela = QLocale::Venezuela, Vietnam = QLocale::Vietnam, BritishVirginIslands = QLocale::BritishVirginIslands, UnitedStatesVirginIslands = QLocale::UnitedStatesVirginIslands, WallisAndFutunaIslands = QLocale::WallisAndFutunaIslands, WesternSahara = QLocale::WesternSahara, Yemen = QLocale::Yemen, CanaryIslands = QLocale::CanaryIslands, Zambia = QLocale::Zambia, Zimbabwe = QLocale::Zimbabwe, ClippertonIsland = QLocale::ClippertonIsland, Montenegro = QLocale::Montenegro, Serbia = QLocale::Serbia, SaintBarthelemy = QLocale::SaintBarthelemy, SaintMartin = QLocale::SaintMartin, LatinAmericaAndTheCaribbean = QLocale::LatinAmericaAndTheCaribbean, AscensionIsland = QLocale::AscensionIsland, AlandIslands = QLocale::AlandIslands, DiegoGarcia = QLocale::DiegoGarcia, CeutaAndMelilla = QLocale::CeutaAndMelilla, IsleOfMan = QLocale::IsleOfMan, Jersey = QLocale::Jersey, TristanDaCunha = QLocale::TristanDaCunha, SouthSudan = QLocale::SouthSudan, Bonaire = QLocale::Bonaire, SintMaarten = QLocale::SintMaarten, DemocraticRepublicOfCongo = QLocale::DemocraticRepublicOfCongo, PeoplesRepublicOfCongo = QLocale::PeoplesRepublicOfCongo, DemocraticRepublicOfKorea = QLocale::DemocraticRepublicOfKorea, RepublicOfKorea = QLocale::RepublicOfKorea, RussianFederation = QLocale::RussianFederation, SyrianArabRepublic = QLocale::SyrianArabRepublic, LastCountry = QLocale::LastCountry}; +enum MeasurementSystem{ + MetricSystem = QLocale::MetricSystem, ImperialUSSystem = QLocale::ImperialUSSystem, ImperialUKSystem = QLocale::ImperialUKSystem, ImperialSystem = QLocale::ImperialSystem}; +Q_DECLARE_FLAGS(NumberOptions, NumberOption) +public slots: +QLocale* new_QLocale(); +QLocale* new_QLocale(QLocale::Language language, QLocale::Country country = QLocale::AnyCountry); +QLocale* new_QLocale(QLocale::Language language, QLocale::Script script, QLocale::Country country); +QLocale* new_QLocale(const QLocale& other); +QLocale* new_QLocale(const QString& name); +void delete_QLocale(QLocale* obj) { delete obj; } + QString amText(QLocale* theWrappedObject) const; + QString bcp47Name(QLocale* theWrappedObject) const; + QLocale static_QLocale_c(); + QList static_QLocale_countriesForLanguage(QLocale::Language lang); + QLocale::Country country(QLocale* theWrappedObject) const; + QString static_QLocale_countryToString(QLocale::Country country); + QString createSeparatedList(QLocale* theWrappedObject, const QStringList& strl) const; + QString currencySymbol(QLocale* theWrappedObject, QLocale::CurrencySymbolFormat arg__1 = QLocale::CurrencySymbol) const; + QString dateFormat(QLocale* theWrappedObject, QLocale::FormatType format = QLocale::LongFormat) const; + QString dateTimeFormat(QLocale* theWrappedObject, QLocale::FormatType format = QLocale::LongFormat) const; + QString dayName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format = QLocale::LongFormat) const; + QChar decimalPoint(QLocale* theWrappedObject) const; + QChar exponential(QLocale* theWrappedObject) const; + Qt::DayOfWeek firstDayOfWeek(QLocale* theWrappedObject) const; + QChar groupSeparator(QLocale* theWrappedObject) const; + QLocale::Language language(QLocale* theWrappedObject) const; + QString static_QLocale_languageToString(QLocale::Language language); + QList static_QLocale_matchingLocales(QLocale::Language language, QLocale::Script script, QLocale::Country country); + QLocale::MeasurementSystem measurementSystem(QLocale* theWrappedObject) const; + QString monthName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format = QLocale::LongFormat) const; + QString name(QLocale* theWrappedObject) const; + QString nativeCountryName(QLocale* theWrappedObject) const; + QString nativeLanguageName(QLocale* theWrappedObject) const; + QChar negativeSign(QLocale* theWrappedObject) const; + QLocale::NumberOptions numberOptions(QLocale* theWrappedObject) const; + bool __ne__(QLocale* theWrappedObject, const QLocale& other) const; + bool __eq__(QLocale* theWrappedObject, const QLocale& other) const; + QChar percent(QLocale* theWrappedObject) const; + QString pmText(QLocale* theWrappedObject) const; + QChar positiveSign(QLocale* theWrappedObject) const; + QString quoteString(QLocale* theWrappedObject, const QString& str, QLocale::QuotationStyle style = QLocale::StandardQuotation) const; + QString quoteString(QLocale* theWrappedObject, const QStringRef& str, QLocale::QuotationStyle style = QLocale::StandardQuotation) const; + QLocale::Script script(QLocale* theWrappedObject) const; + QString static_QLocale_scriptToString(QLocale::Script script); + void static_QLocale_setDefault(const QLocale& locale); + void setNumberOptions(QLocale* theWrappedObject, QLocale::NumberOptions options); + QString standaloneDayName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format = QLocale::LongFormat) const; + QString standaloneMonthName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format = QLocale::LongFormat) const; + QLocale static_QLocale_system(); + Qt::LayoutDirection textDirection(QLocale* theWrappedObject) const; + QString timeFormat(QLocale* theWrappedObject, QLocale::FormatType format = QLocale::LongFormat) const; + QString toCurrencyString(QLocale* theWrappedObject, double arg__1, const QString& symbol = QString()) const; + QString toCurrencyString(QLocale* theWrappedObject, float arg__1, const QString& symbol = QString()) const; + QString toCurrencyString(QLocale* theWrappedObject, int arg__1, const QString& symbol = QString()) const; + QString toCurrencyString(QLocale* theWrappedObject, qlonglong arg__1, const QString& symbol = QString()) const; + QString toCurrencyString(QLocale* theWrappedObject, qulonglong arg__1, const QString& symbol = QString()) const; + QString toCurrencyString(QLocale* theWrappedObject, short arg__1, const QString& symbol = QString()) const; + QString toCurrencyString(QLocale* theWrappedObject, uint arg__1, const QString& symbol = QString()) const; + QString toCurrencyString(QLocale* theWrappedObject, ushort arg__1, const QString& symbol = QString()) const; + QDate toDate(QLocale* theWrappedObject, const QString& string, QLocale::FormatType arg__2 = QLocale::LongFormat) const; + QDate toDate(QLocale* theWrappedObject, const QString& string, const QString& format) const; + QDateTime toDateTime(QLocale* theWrappedObject, const QString& string, QLocale::FormatType format = QLocale::LongFormat) const; + QDateTime toDateTime(QLocale* theWrappedObject, const QString& string, const QString& format) const; + double toDouble(QLocale* theWrappedObject, const QString& s, bool* ok = 0) const; + float toFloat(QLocale* theWrappedObject, const QString& s, bool* ok = 0) const; + int toInt(QLocale* theWrappedObject, const QString& s, bool* ok = 0) const; + qlonglong toLongLong(QLocale* theWrappedObject, const QString& s, bool* ok = 0) const; + QString toLower(QLocale* theWrappedObject, const QString& str) const; + short toShort(QLocale* theWrappedObject, const QString& s, bool* ok = 0) const; + QString toString(QLocale* theWrappedObject, const QDate& date, QLocale::FormatType format = QLocale::LongFormat) const; + QString toString(QLocale* theWrappedObject, const QDate& date, const QString& formatStr) const; + QString toString(QLocale* theWrappedObject, const QDateTime& dateTime, QLocale::FormatType format = QLocale::LongFormat) const; + QString toString(QLocale* theWrappedObject, const QDateTime& dateTime, const QString& format) const; + QString toString(QLocale* theWrappedObject, const QTime& time, QLocale::FormatType format = QLocale::LongFormat) const; + QString toString(QLocale* theWrappedObject, const QTime& time, const QString& formatStr) const; + QString toString(QLocale* theWrappedObject, double i, char f = 'g', int prec = 6) const; + QString toString(QLocale* theWrappedObject, float i, char f = 'g', int prec = 6) const; + QString toString(QLocale* theWrappedObject, int i) const; + QString toString(QLocale* theWrappedObject, qulonglong i) const; + QString toString(QLocale* theWrappedObject, short i) const; + QTime toTime(QLocale* theWrappedObject, const QString& string, QLocale::FormatType arg__2 = QLocale::LongFormat) const; + QTime toTime(QLocale* theWrappedObject, const QString& string, const QString& format) const; + uint toUInt(QLocale* theWrappedObject, const QString& s, bool* ok = 0) const; + qulonglong toULongLong(QLocale* theWrappedObject, const QString& s, bool* ok = 0) const; + ushort toUShort(QLocale* theWrappedObject, const QString& s, bool* ok = 0) const; + QString toUpper(QLocale* theWrappedObject, const QString& str) const; + QStringList uiLanguages(QLocale* theWrappedObject) const; + QList weekdays(QLocale* theWrappedObject) const; + QChar zeroDigit(QLocale* theWrappedObject) const; + QString py_toString(QLocale*); +}; + + + + + +class PythonQtWrapper_QPoint : public QObject +{ Q_OBJECT +public: +public slots: +QPoint* new_QPoint(); +QPoint* new_QPoint(int xpos, int ypos); +QPoint* new_QPoint(const QPoint& other) { +QPoint* a = new QPoint(); +*((QPoint*)a) = other; +return a; } +void delete_QPoint(QPoint* obj) { delete obj; } + bool isNull(QPoint* theWrappedObject) const; + int manhattanLength(QPoint* theWrappedObject) const; +#if defined(QT_GUI_LIB) + QPoint __mul__(QPoint* theWrappedObject, const QMatrix& m); + QPoint __mul__(QPoint* theWrappedObject, const QMatrix4x4& matrix); + QPoint __mul__(QPoint* theWrappedObject, const QTransform& m); +#endif + const QPoint __mul__(QPoint* theWrappedObject, double factor); + const QPoint __mul__(QPoint* theWrappedObject, float factor); + const QPoint __mul__(QPoint* theWrappedObject, int factor); + QPoint* __imul__(QPoint* theWrappedObject, double factor); + QPoint* __imul__(QPoint* theWrappedObject, float factor); + QPoint* __imul__(QPoint* theWrappedObject, int factor); + const QPoint __add__(QPoint* theWrappedObject, const QPoint& p2); + QPoint* __iadd__(QPoint* theWrappedObject, const QPoint& p); + const QPoint __sub__(QPoint* theWrappedObject, const QPoint& p2); + QPoint* __isub__(QPoint* theWrappedObject, const QPoint& p); + const QPoint __div__(QPoint* theWrappedObject, qreal c); + QPoint* __idiv__(QPoint* theWrappedObject, qreal divisor); + bool __eq__(QPoint* theWrappedObject, const QPoint& p2); + void setX(QPoint* theWrappedObject, int x); + void setY(QPoint* theWrappedObject, int y); + int x(QPoint* theWrappedObject) const; + int y(QPoint* theWrappedObject) const; + QString py_toString(QPoint*); + bool __nonzero__(QPoint* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QPointF : public QObject +{ Q_OBJECT +public: +public slots: +QPointF* new_QPointF(); +QPointF* new_QPointF(const QPoint& p); +QPointF* new_QPointF(qreal xpos, qreal ypos); +QPointF* new_QPointF(const QPointF& other) { +QPointF* a = new QPointF(); +*((QPointF*)a) = other; +return a; } +void delete_QPointF(QPointF* obj) { delete obj; } + bool isNull(QPointF* theWrappedObject) const; + qreal manhattanLength(QPointF* theWrappedObject) const; +#if defined(QT_GUI_LIB) + QPointF __mul__(QPointF* theWrappedObject, const QMatrix& m); + QPointF __mul__(QPointF* theWrappedObject, const QMatrix4x4& matrix); + QPointF __mul__(QPointF* theWrappedObject, const QTransform& m); +#endif + const QPointF __mul__(QPointF* theWrappedObject, qreal c); + QPointF* __imul__(QPointF* theWrappedObject, qreal c); + const QPointF __add__(QPointF* theWrappedObject, const QPointF& p2); + QPointF* __iadd__(QPointF* theWrappedObject, const QPointF& p); + const QPointF __sub__(QPointF* theWrappedObject, const QPointF& p2); + QPointF* __isub__(QPointF* theWrappedObject, const QPointF& p); + const QPointF __div__(QPointF* theWrappedObject, qreal divisor); + QPointF* __idiv__(QPointF* theWrappedObject, qreal c); + bool __eq__(QPointF* theWrappedObject, const QPointF& p2); + void setX(QPointF* theWrappedObject, qreal x); + void setY(QPointF* theWrappedObject, qreal y); + QPoint toPoint(QPointF* theWrappedObject) const; + qreal x(QPointF* theWrappedObject) const; + qreal y(QPointF* theWrappedObject) const; + QString py_toString(QPointF*); + bool __nonzero__(QPointF* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QRect : public QObject +{ Q_OBJECT +public: +public slots: +QRect* new_QRect(); +QRect* new_QRect(const QPoint& topleft, const QPoint& bottomright); +QRect* new_QRect(const QPoint& topleft, const QSize& size); +QRect* new_QRect(int left, int top, int width, int height); +QRect* new_QRect(const QRect& other) { +QRect* a = new QRect(); +*((QRect*)a) = other; +return a; } +void delete_QRect(QRect* obj) { delete obj; } + void adjust(QRect* theWrappedObject, int x1, int y1, int x2, int y2); + QRect adjusted(QRect* theWrappedObject, int x1, int y1, int x2, int y2) const; + int bottom(QRect* theWrappedObject) const; + QPoint bottomLeft(QRect* theWrappedObject) const; + QPoint bottomRight(QRect* theWrappedObject) const; + QPoint center(QRect* theWrappedObject) const; + bool contains(QRect* theWrappedObject, const QPoint& p, bool proper = false) const; + bool contains(QRect* theWrappedObject, const QRect& r, bool proper = false) const; + bool contains(QRect* theWrappedObject, int x, int y) const; + bool contains(QRect* theWrappedObject, int x, int y, bool proper) const; + int height(QRect* theWrappedObject) const; + QRect intersected(QRect* theWrappedObject, const QRect& other) const; + bool intersects(QRect* theWrappedObject, const QRect& r) const; + bool isEmpty(QRect* theWrappedObject) const; + bool isNull(QRect* theWrappedObject) const; + bool isValid(QRect* theWrappedObject) const; + int left(QRect* theWrappedObject) const; + void moveBottom(QRect* theWrappedObject, int pos); + void moveBottomLeft(QRect* theWrappedObject, const QPoint& p); + void moveBottomRight(QRect* theWrappedObject, const QPoint& p); + void moveCenter(QRect* theWrappedObject, const QPoint& p); + void moveLeft(QRect* theWrappedObject, int pos); + void moveRight(QRect* theWrappedObject, int pos); + void moveTo(QRect* theWrappedObject, const QPoint& p); + void moveTo(QRect* theWrappedObject, int x, int t); + void moveTop(QRect* theWrappedObject, int pos); + void moveTopLeft(QRect* theWrappedObject, const QPoint& p); + void moveTopRight(QRect* theWrappedObject, const QPoint& p); + QRect normalized(QRect* theWrappedObject) const; + bool __eq__(QRect* theWrappedObject, const QRect& arg__2); + int right(QRect* theWrappedObject) const; + void setBottom(QRect* theWrappedObject, int pos); + void setBottomLeft(QRect* theWrappedObject, const QPoint& p); + void setBottomRight(QRect* theWrappedObject, const QPoint& p); + void setCoords(QRect* theWrappedObject, int x1, int y1, int x2, int y2); + void setHeight(QRect* theWrappedObject, int h); + void setLeft(QRect* theWrappedObject, int pos); + void setRect(QRect* theWrappedObject, int x, int y, int w, int h); + void setRight(QRect* theWrappedObject, int pos); + void setSize(QRect* theWrappedObject, const QSize& s); + void setTop(QRect* theWrappedObject, int pos); + void setTopLeft(QRect* theWrappedObject, const QPoint& p); + void setTopRight(QRect* theWrappedObject, const QPoint& p); + void setWidth(QRect* theWrappedObject, int w); + void setX(QRect* theWrappedObject, int x); + void setY(QRect* theWrappedObject, int y); + QSize size(QRect* theWrappedObject) const; + int top(QRect* theWrappedObject) const; + QPoint topLeft(QRect* theWrappedObject) const; + QPoint topRight(QRect* theWrappedObject) const; + void translate(QRect* theWrappedObject, const QPoint& p); + void translate(QRect* theWrappedObject, int dx, int dy); + QRect translated(QRect* theWrappedObject, const QPoint& p) const; + QRect translated(QRect* theWrappedObject, int dx, int dy) const; + QRect united(QRect* theWrappedObject, const QRect& other) const; + int width(QRect* theWrappedObject) const; + int x(QRect* theWrappedObject) const; + int y(QRect* theWrappedObject) const; + QString py_toString(QRect*); + bool __nonzero__(QRect* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QRectF : public QObject +{ Q_OBJECT +public: +public slots: +QRectF* new_QRectF(); +QRectF* new_QRectF(const QPointF& topleft, const QPointF& bottomRight); +QRectF* new_QRectF(const QPointF& topleft, const QSizeF& size); +QRectF* new_QRectF(const QRect& rect); +QRectF* new_QRectF(qreal left, qreal top, qreal width, qreal height); +QRectF* new_QRectF(const QRectF& other) { +QRectF* a = new QRectF(); +*((QRectF*)a) = other; +return a; } +void delete_QRectF(QRectF* obj) { delete obj; } + void adjust(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2); + QRectF adjusted(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2) const; + qreal bottom(QRectF* theWrappedObject) const; + QPointF bottomLeft(QRectF* theWrappedObject) const; + QPointF bottomRight(QRectF* theWrappedObject) const; + QPointF center(QRectF* theWrappedObject) const; + bool contains(QRectF* theWrappedObject, const QPointF& p) const; + bool contains(QRectF* theWrappedObject, const QRectF& r) const; + bool contains(QRectF* theWrappedObject, qreal x, qreal y) const; + qreal height(QRectF* theWrappedObject) const; + QRectF intersected(QRectF* theWrappedObject, const QRectF& other) const; + bool intersects(QRectF* theWrappedObject, const QRectF& r) const; + bool isEmpty(QRectF* theWrappedObject) const; + bool isNull(QRectF* theWrappedObject) const; + bool isValid(QRectF* theWrappedObject) const; + qreal left(QRectF* theWrappedObject) const; + void moveBottom(QRectF* theWrappedObject, qreal pos); + void moveBottomLeft(QRectF* theWrappedObject, const QPointF& p); + void moveBottomRight(QRectF* theWrappedObject, const QPointF& p); + void moveCenter(QRectF* theWrappedObject, const QPointF& p); + void moveLeft(QRectF* theWrappedObject, qreal pos); + void moveRight(QRectF* theWrappedObject, qreal pos); + void moveTo(QRectF* theWrappedObject, const QPointF& p); + void moveTo(QRectF* theWrappedObject, qreal x, qreal t); + void moveTop(QRectF* theWrappedObject, qreal pos); + void moveTopLeft(QRectF* theWrappedObject, const QPointF& p); + void moveTopRight(QRectF* theWrappedObject, const QPointF& p); + QRectF normalized(QRectF* theWrappedObject) const; + bool __eq__(QRectF* theWrappedObject, const QRectF& arg__2); + qreal right(QRectF* theWrappedObject) const; + void setBottom(QRectF* theWrappedObject, qreal pos); + void setBottomLeft(QRectF* theWrappedObject, const QPointF& p); + void setBottomRight(QRectF* theWrappedObject, const QPointF& p); + void setCoords(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2); + void setHeight(QRectF* theWrappedObject, qreal h); + void setLeft(QRectF* theWrappedObject, qreal pos); + void setRect(QRectF* theWrappedObject, qreal x, qreal y, qreal w, qreal h); + void setRight(QRectF* theWrappedObject, qreal pos); + void setSize(QRectF* theWrappedObject, const QSizeF& s); + void setTop(QRectF* theWrappedObject, qreal pos); + void setTopLeft(QRectF* theWrappedObject, const QPointF& p); + void setTopRight(QRectF* theWrappedObject, const QPointF& p); + void setWidth(QRectF* theWrappedObject, qreal w); + void setX(QRectF* theWrappedObject, qreal pos); + void setY(QRectF* theWrappedObject, qreal pos); + QSizeF size(QRectF* theWrappedObject) const; + QRect toAlignedRect(QRectF* theWrappedObject) const; + QRect toRect(QRectF* theWrappedObject) const; + qreal top(QRectF* theWrappedObject) const; + QPointF topLeft(QRectF* theWrappedObject) const; + QPointF topRight(QRectF* theWrappedObject) const; + void translate(QRectF* theWrappedObject, const QPointF& p); + void translate(QRectF* theWrappedObject, qreal dx, qreal dy); + QRectF translated(QRectF* theWrappedObject, const QPointF& p) const; + QRectF translated(QRectF* theWrappedObject, qreal dx, qreal dy) const; + QRectF united(QRectF* theWrappedObject, const QRectF& other) const; + qreal width(QRectF* theWrappedObject) const; + qreal x(QRectF* theWrappedObject) const; + qreal y(QRectF* theWrappedObject) const; + QString py_toString(QRectF*); + bool __nonzero__(QRectF* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QRegExp : public QObject +{ Q_OBJECT +public: +Q_ENUMS(PatternSyntax CaretMode ) +enum PatternSyntax{ + RegExp = QRegExp::RegExp, Wildcard = QRegExp::Wildcard, FixedString = QRegExp::FixedString, RegExp2 = QRegExp::RegExp2, WildcardUnix = QRegExp::WildcardUnix, W3CXmlSchema11 = QRegExp::W3CXmlSchema11}; +enum CaretMode{ + CaretAtZero = QRegExp::CaretAtZero, CaretAtOffset = QRegExp::CaretAtOffset, CaretWontMatch = QRegExp::CaretWontMatch}; +public slots: +QRegExp* new_QRegExp(); +QRegExp* new_QRegExp(const QRegExp& rx); +QRegExp* new_QRegExp(const QString& pattern, Qt::CaseSensitivity cs = Qt::CaseSensitive, QRegExp::PatternSyntax syntax = QRegExp::RegExp); +void delete_QRegExp(QRegExp* obj) { delete obj; } + QString cap(QRegExp* theWrappedObject, int nth = 0) const; + int captureCount(QRegExp* theWrappedObject) const; + QStringList capturedTexts(QRegExp* theWrappedObject) const; + Qt::CaseSensitivity caseSensitivity(QRegExp* theWrappedObject) const; + QString errorString(QRegExp* theWrappedObject) const; + QString static_QRegExp_escape(const QString& str); + bool exactMatch(QRegExp* theWrappedObject, const QString& str) const; + int indexIn(QRegExp* theWrappedObject, const QString& str, int offset = 0, QRegExp::CaretMode caretMode = QRegExp::CaretAtZero) const; + bool isEmpty(QRegExp* theWrappedObject) const; + bool isMinimal(QRegExp* theWrappedObject) const; + bool isValid(QRegExp* theWrappedObject) const; + int lastIndexIn(QRegExp* theWrappedObject, const QString& str, int offset = -1, QRegExp::CaretMode caretMode = QRegExp::CaretAtZero) const; + int matchedLength(QRegExp* theWrappedObject) const; + bool __ne__(QRegExp* theWrappedObject, const QRegExp& rx) const; + bool __eq__(QRegExp* theWrappedObject, const QRegExp& rx) const; + QString pattern(QRegExp* theWrappedObject) const; + QRegExp::PatternSyntax patternSyntax(QRegExp* theWrappedObject) const; + int pos(QRegExp* theWrappedObject, int nth = 0) const; + void setCaseSensitivity(QRegExp* theWrappedObject, Qt::CaseSensitivity cs); + void setMinimal(QRegExp* theWrappedObject, bool minimal); + void setPattern(QRegExp* theWrappedObject, const QString& pattern); + void setPatternSyntax(QRegExp* theWrappedObject, QRegExp::PatternSyntax syntax); + void swap(QRegExp* theWrappedObject, QRegExp& other); + QString py_toString(QRegExp*); +}; + + + + + +class PythonQtWrapper_QSize : public QObject +{ Q_OBJECT +public: +public slots: +QSize* new_QSize(); +QSize* new_QSize(int w, int h); +QSize* new_QSize(const QSize& other) { +QSize* a = new QSize(); +*((QSize*)a) = other; +return a; } +void delete_QSize(QSize* obj) { delete obj; } + QSize boundedTo(QSize* theWrappedObject, const QSize& arg__1) const; + QSize expandedTo(QSize* theWrappedObject, const QSize& arg__1) const; + int height(QSize* theWrappedObject) const; + bool isEmpty(QSize* theWrappedObject) const; + bool isNull(QSize* theWrappedObject) const; + bool isValid(QSize* theWrappedObject) const; + const QSize __mul__(QSize* theWrappedObject, qreal c); + QSize* __imul__(QSize* theWrappedObject, qreal c); + const QSize __add__(QSize* theWrappedObject, const QSize& s2); + QSize* __iadd__(QSize* theWrappedObject, const QSize& arg__1); + const QSize __sub__(QSize* theWrappedObject, const QSize& s2); + QSize* __isub__(QSize* theWrappedObject, const QSize& arg__1); + const QSize __div__(QSize* theWrappedObject, qreal c); + QSize* __idiv__(QSize* theWrappedObject, qreal c); + bool __eq__(QSize* theWrappedObject, const QSize& s2); + void scale(QSize* theWrappedObject, const QSize& s, Qt::AspectRatioMode mode); + void scale(QSize* theWrappedObject, int w, int h, Qt::AspectRatioMode mode); + QSize scaled(QSize* theWrappedObject, const QSize& s, Qt::AspectRatioMode mode) const; + QSize scaled(QSize* theWrappedObject, int w, int h, Qt::AspectRatioMode mode) const; + void setHeight(QSize* theWrappedObject, int h); + void setWidth(QSize* theWrappedObject, int w); + void transpose(QSize* theWrappedObject); + QSize transposed(QSize* theWrappedObject) const; + int width(QSize* theWrappedObject) const; + QString py_toString(QSize*); + bool __nonzero__(QSize* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QSizeF : public QObject +{ Q_OBJECT +public: +public slots: +QSizeF* new_QSizeF(); +QSizeF* new_QSizeF(const QSize& sz); +QSizeF* new_QSizeF(qreal w, qreal h); +QSizeF* new_QSizeF(const QSizeF& other) { +QSizeF* a = new QSizeF(); +*((QSizeF*)a) = other; +return a; } +void delete_QSizeF(QSizeF* obj) { delete obj; } + QSizeF boundedTo(QSizeF* theWrappedObject, const QSizeF& arg__1) const; + QSizeF expandedTo(QSizeF* theWrappedObject, const QSizeF& arg__1) const; + qreal height(QSizeF* theWrappedObject) const; + bool isEmpty(QSizeF* theWrappedObject) const; + bool isNull(QSizeF* theWrappedObject) const; + bool isValid(QSizeF* theWrappedObject) const; + const QSizeF __mul__(QSizeF* theWrappedObject, qreal c); + QSizeF* __imul__(QSizeF* theWrappedObject, qreal c); + const QSizeF __add__(QSizeF* theWrappedObject, const QSizeF& s2); + QSizeF* __iadd__(QSizeF* theWrappedObject, const QSizeF& arg__1); + const QSizeF __sub__(QSizeF* theWrappedObject, const QSizeF& s2); + QSizeF* __isub__(QSizeF* theWrappedObject, const QSizeF& arg__1); + const QSizeF __div__(QSizeF* theWrappedObject, qreal c); + QSizeF* __idiv__(QSizeF* theWrappedObject, qreal c); + bool __eq__(QSizeF* theWrappedObject, const QSizeF& s2); + void scale(QSizeF* theWrappedObject, const QSizeF& s, Qt::AspectRatioMode mode); + void scale(QSizeF* theWrappedObject, qreal w, qreal h, Qt::AspectRatioMode mode); + QSizeF scaled(QSizeF* theWrappedObject, const QSizeF& s, Qt::AspectRatioMode mode) const; + QSizeF scaled(QSizeF* theWrappedObject, qreal w, qreal h, Qt::AspectRatioMode mode) const; + void setHeight(QSizeF* theWrappedObject, qreal h); + void setWidth(QSizeF* theWrappedObject, qreal w); + QSize toSize(QSizeF* theWrappedObject) const; + void transpose(QSizeF* theWrappedObject); + QSizeF transposed(QSizeF* theWrappedObject) const; + qreal width(QSizeF* theWrappedObject) const; + QString py_toString(QSizeF*); + bool __nonzero__(QSizeF* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QTime : public QObject +{ Q_OBJECT +public: +public slots: +QTime* new_QTime(); +QTime* new_QTime(int h, int m, int s = 0, int ms = 0); +QTime* new_QTime(const QTime& other) { +QTime* a = new QTime(); +*((QTime*)a) = other; +return a; } +void delete_QTime(QTime* obj) { delete obj; } + QTime addMSecs(QTime* theWrappedObject, int ms) const; + QTime addSecs(QTime* theWrappedObject, int secs) const; + QTime static_QTime_currentTime(); + int elapsed(QTime* theWrappedObject) const; + QTime static_QTime_fromString(const QString& s, Qt::DateFormat f = Qt::TextDate); + QTime static_QTime_fromString(const QString& s, const QString& format); + int hour(QTime* theWrappedObject) const; + bool isNull(QTime* theWrappedObject) const; + bool isValid(QTime* theWrappedObject) const; + bool static_QTime_isValid(int h, int m, int s, int ms = 0); + int minute(QTime* theWrappedObject) const; + int msec(QTime* theWrappedObject) const; + int msecsTo(QTime* theWrappedObject, const QTime& arg__1) const; + bool __ne__(QTime* theWrappedObject, const QTime& other) const; + bool __lt__(QTime* theWrappedObject, const QTime& other) const; + bool __le__(QTime* theWrappedObject, const QTime& other) const; + bool __eq__(QTime* theWrappedObject, const QTime& other) const; + bool __gt__(QTime* theWrappedObject, const QTime& other) const; + bool __ge__(QTime* theWrappedObject, const QTime& other) const; + int restart(QTime* theWrappedObject); + int second(QTime* theWrappedObject) const; + int secsTo(QTime* theWrappedObject, const QTime& arg__1) const; + bool setHMS(QTime* theWrappedObject, int h, int m, int s, int ms = 0); + void start(QTime* theWrappedObject); + QString toString(QTime* theWrappedObject, Qt::DateFormat f = Qt::TextDate) const; + QString toString(QTime* theWrappedObject, const QString& format) const; + QString py_toString(QTime*); + bool __nonzero__(QTime* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QUrl : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ParsingMode ) +enum ParsingMode{ + TolerantMode = QUrl::TolerantMode, StrictMode = QUrl::StrictMode, DecodedMode = QUrl::DecodedMode}; +public slots: +QUrl* new_QUrl(); +QUrl* new_QUrl(const QString& url, QUrl::ParsingMode mode = QUrl::TolerantMode); +QUrl* new_QUrl(const QUrl& copy); +void delete_QUrl(QUrl* obj) { delete obj; } + void clear(QUrl* theWrappedObject); + QString errorString(QUrl* theWrappedObject) const; + QString static_QUrl_fromAce(const QByteArray& arg__1); + QUrl static_QUrl_fromEncoded(const QByteArray& url, QUrl::ParsingMode mode = QUrl::TolerantMode); + QUrl static_QUrl_fromLocalFile(const QString& localfile); + QString static_QUrl_fromPercentEncoding(const QByteArray& arg__1); + QUrl static_QUrl_fromUserInput(const QString& userInput); + bool hasFragment(QUrl* theWrappedObject) const; + bool hasQuery(QUrl* theWrappedObject) const; + QStringList static_QUrl_idnWhitelist(); + bool isEmpty(QUrl* theWrappedObject) const; + bool isLocalFile(QUrl* theWrappedObject) const; + bool isParentOf(QUrl* theWrappedObject, const QUrl& url) const; + bool isRelative(QUrl* theWrappedObject) const; + bool isValid(QUrl* theWrappedObject) const; + bool __ne__(QUrl* theWrappedObject, const QUrl& url) const; + bool __lt__(QUrl* theWrappedObject, const QUrl& url) const; + bool __eq__(QUrl* theWrappedObject, const QUrl& url) const; + int port(QUrl* theWrappedObject, int defaultPort = -1) const; + QUrl resolved(QUrl* theWrappedObject, const QUrl& relative) const; + QString scheme(QUrl* theWrappedObject) const; + void setAuthority(QUrl* theWrappedObject, const QString& authority, QUrl::ParsingMode mode = QUrl::TolerantMode); + void setFragment(QUrl* theWrappedObject, const QString& fragment, QUrl::ParsingMode mode = QUrl::TolerantMode); + void setHost(QUrl* theWrappedObject, const QString& host, QUrl::ParsingMode mode = QUrl::TolerantMode); + void static_QUrl_setIdnWhitelist(const QStringList& arg__1); + void setPassword(QUrl* theWrappedObject, const QString& password, QUrl::ParsingMode mode = QUrl::TolerantMode); + void setPath(QUrl* theWrappedObject, const QString& path, QUrl::ParsingMode mode = QUrl::TolerantMode); + void setPort(QUrl* theWrappedObject, int port); + void setQuery(QUrl* theWrappedObject, const QString& query, QUrl::ParsingMode mode = QUrl::TolerantMode); + void setScheme(QUrl* theWrappedObject, const QString& scheme); + void setUrl(QUrl* theWrappedObject, const QString& url, QUrl::ParsingMode mode = QUrl::TolerantMode); + void setUserInfo(QUrl* theWrappedObject, const QString& userInfo, QUrl::ParsingMode mode = QUrl::TolerantMode); + void setUserName(QUrl* theWrappedObject, const QString& userName, QUrl::ParsingMode mode = QUrl::TolerantMode); + void swap(QUrl* theWrappedObject, QUrl& other); + QByteArray static_QUrl_toAce(const QString& arg__1); + QString toLocalFile(QUrl* theWrappedObject) const; + QByteArray static_QUrl_toPercentEncoding(const QString& arg__1, const QByteArray& exclude = QByteArray(), const QByteArray& include = QByteArray()); + QString py_toString(QUrl*); +}; + + + + + +class PythonQtWrapper_Qt : public QObject +{ Q_OBJECT +public: +Q_ENUMS(AspectRatioMode BGMode MouseButton SortOrder Orientation WidgetAttribute GestureState GlobalColor PenStyle NavigationMode GestureFlag ToolBarArea WindowFrameSection PenCapStyle SizeHint DayOfWeek WindowModality MatchFlag DockWidgetAreaSizes FindChildOption AnchorPoint CaseSensitivity TextFlag BrushStyle ItemSelectionMode DateFormat ApplicationAttribute ItemFlag ScrollBarPolicy WhiteSpaceMode TimerType DropAction FocusPolicy CursorShape TouchPointState CursorMoveStyle InputMethodHint ArrowType TextFormat HitTestAccuracy ToolButtonStyle FocusReason TextElideMode CoordinateSystem KeyboardModifier UIEffect ScreenOrientation ImageConversionFlag TransformationMode PenJoinStyle EventPriority LayoutDirection TextInteractionFlag Corner TileRule ConnectionType AlignmentFlag Key WindowState CheckState ToolBarAreaSizes SizeMode Axis FillRule GestureType ClipOperation InputMethodQuery TimeSpec ItemDataRole ShortcutContext MaskMode WindowType DockWidgetArea ContextMenuPolicy ) +Q_FLAGS(MouseButtons Orientations GestureFlags ToolBarAreas MatchFlags ItemFlags DropActions TouchPointStates InputMethodHints KeyboardModifiers ImageConversionFlags TextInteractionFlags Alignment WindowStates WindowFlags DockWidgetAreas ) +enum AspectRatioMode{ + IgnoreAspectRatio = Qt::IgnoreAspectRatio, KeepAspectRatio = Qt::KeepAspectRatio, KeepAspectRatioByExpanding = Qt::KeepAspectRatioByExpanding}; +enum BGMode{ + TransparentMode = Qt::TransparentMode, OpaqueMode = Qt::OpaqueMode}; +enum MouseButton{ + NoButton = Qt::NoButton, LeftButton = Qt::LeftButton, RightButton = Qt::RightButton, MidButton = Qt::MidButton, MiddleButton = Qt::MiddleButton, BackButton = Qt::BackButton, XButton1 = Qt::XButton1, ExtraButton1 = Qt::ExtraButton1, ForwardButton = Qt::ForwardButton, XButton2 = Qt::XButton2, ExtraButton2 = Qt::ExtraButton2, TaskButton = Qt::TaskButton, ExtraButton3 = Qt::ExtraButton3, ExtraButton4 = Qt::ExtraButton4, ExtraButton5 = Qt::ExtraButton5, ExtraButton6 = Qt::ExtraButton6, ExtraButton7 = Qt::ExtraButton7, ExtraButton8 = Qt::ExtraButton8, ExtraButton9 = Qt::ExtraButton9, ExtraButton10 = Qt::ExtraButton10, ExtraButton11 = Qt::ExtraButton11, ExtraButton12 = Qt::ExtraButton12, ExtraButton13 = Qt::ExtraButton13, ExtraButton14 = Qt::ExtraButton14, ExtraButton15 = Qt::ExtraButton15, ExtraButton16 = Qt::ExtraButton16, ExtraButton17 = Qt::ExtraButton17, ExtraButton18 = Qt::ExtraButton18, ExtraButton19 = Qt::ExtraButton19, ExtraButton20 = Qt::ExtraButton20, ExtraButton21 = Qt::ExtraButton21, ExtraButton22 = Qt::ExtraButton22, ExtraButton23 = Qt::ExtraButton23, ExtraButton24 = Qt::ExtraButton24, AllButtons = Qt::AllButtons, MaxMouseButton = Qt::MaxMouseButton, MouseButtonMask = Qt::MouseButtonMask}; +enum SortOrder{ + AscendingOrder = Qt::AscendingOrder, DescendingOrder = Qt::DescendingOrder}; +enum Orientation{ + Horizontal = Qt::Horizontal, Vertical = Qt::Vertical}; +enum WidgetAttribute{ + WA_Disabled = Qt::WA_Disabled, WA_UnderMouse = Qt::WA_UnderMouse, WA_MouseTracking = Qt::WA_MouseTracking, WA_ContentsPropagated = Qt::WA_ContentsPropagated, WA_OpaquePaintEvent = Qt::WA_OpaquePaintEvent, WA_NoBackground = Qt::WA_NoBackground, WA_StaticContents = Qt::WA_StaticContents, WA_LaidOut = Qt::WA_LaidOut, WA_PaintOnScreen = Qt::WA_PaintOnScreen, WA_NoSystemBackground = Qt::WA_NoSystemBackground, WA_UpdatesDisabled = Qt::WA_UpdatesDisabled, WA_Mapped = Qt::WA_Mapped, WA_MacNoClickThrough = Qt::WA_MacNoClickThrough, WA_InputMethodEnabled = Qt::WA_InputMethodEnabled, WA_WState_Visible = Qt::WA_WState_Visible, WA_WState_Hidden = Qt::WA_WState_Hidden, WA_ForceDisabled = Qt::WA_ForceDisabled, WA_KeyCompression = Qt::WA_KeyCompression, WA_PendingMoveEvent = Qt::WA_PendingMoveEvent, WA_PendingResizeEvent = Qt::WA_PendingResizeEvent, WA_SetPalette = Qt::WA_SetPalette, WA_SetFont = Qt::WA_SetFont, WA_SetCursor = Qt::WA_SetCursor, WA_NoChildEventsFromChildren = Qt::WA_NoChildEventsFromChildren, WA_WindowModified = Qt::WA_WindowModified, WA_Resized = Qt::WA_Resized, WA_Moved = Qt::WA_Moved, WA_PendingUpdate = Qt::WA_PendingUpdate, WA_InvalidSize = Qt::WA_InvalidSize, WA_MacBrushedMetal = Qt::WA_MacBrushedMetal, WA_MacMetalStyle = Qt::WA_MacMetalStyle, WA_CustomWhatsThis = Qt::WA_CustomWhatsThis, WA_LayoutOnEntireRect = Qt::WA_LayoutOnEntireRect, WA_OutsideWSRange = Qt::WA_OutsideWSRange, WA_GrabbedShortcut = Qt::WA_GrabbedShortcut, WA_TransparentForMouseEvents = Qt::WA_TransparentForMouseEvents, WA_PaintUnclipped = Qt::WA_PaintUnclipped, WA_SetWindowIcon = Qt::WA_SetWindowIcon, WA_NoMouseReplay = Qt::WA_NoMouseReplay, WA_DeleteOnClose = Qt::WA_DeleteOnClose, WA_RightToLeft = Qt::WA_RightToLeft, WA_SetLayoutDirection = Qt::WA_SetLayoutDirection, WA_NoChildEventsForParent = Qt::WA_NoChildEventsForParent, WA_ForceUpdatesDisabled = Qt::WA_ForceUpdatesDisabled, WA_WState_Created = Qt::WA_WState_Created, WA_WState_CompressKeys = Qt::WA_WState_CompressKeys, WA_WState_InPaintEvent = Qt::WA_WState_InPaintEvent, WA_WState_Reparented = Qt::WA_WState_Reparented, WA_WState_ConfigPending = Qt::WA_WState_ConfigPending, WA_WState_Polished = Qt::WA_WState_Polished, WA_WState_DND = Qt::WA_WState_DND, WA_WState_OwnSizePolicy = Qt::WA_WState_OwnSizePolicy, WA_WState_ExplicitShowHide = Qt::WA_WState_ExplicitShowHide, WA_ShowModal = Qt::WA_ShowModal, WA_MouseNoMask = Qt::WA_MouseNoMask, WA_GroupLeader = Qt::WA_GroupLeader, WA_NoMousePropagation = Qt::WA_NoMousePropagation, WA_Hover = Qt::WA_Hover, WA_InputMethodTransparent = Qt::WA_InputMethodTransparent, WA_QuitOnClose = Qt::WA_QuitOnClose, WA_KeyboardFocusChange = Qt::WA_KeyboardFocusChange, WA_AcceptDrops = Qt::WA_AcceptDrops, WA_DropSiteRegistered = Qt::WA_DropSiteRegistered, WA_ForceAcceptDrops = Qt::WA_ForceAcceptDrops, WA_WindowPropagation = Qt::WA_WindowPropagation, WA_NoX11EventCompression = Qt::WA_NoX11EventCompression, WA_TintedBackground = Qt::WA_TintedBackground, WA_X11OpenGLOverlay = Qt::WA_X11OpenGLOverlay, WA_AlwaysShowToolTips = Qt::WA_AlwaysShowToolTips, WA_MacOpaqueSizeGrip = Qt::WA_MacOpaqueSizeGrip, WA_SetStyle = Qt::WA_SetStyle, WA_SetLocale = Qt::WA_SetLocale, WA_MacShowFocusRect = Qt::WA_MacShowFocusRect, WA_MacNormalSize = Qt::WA_MacNormalSize, WA_MacSmallSize = Qt::WA_MacSmallSize, WA_MacMiniSize = Qt::WA_MacMiniSize, WA_LayoutUsesWidgetRect = Qt::WA_LayoutUsesWidgetRect, WA_StyledBackground = Qt::WA_StyledBackground, WA_MSWindowsUseDirect3D = Qt::WA_MSWindowsUseDirect3D, WA_CanHostQMdiSubWindowTitleBar = Qt::WA_CanHostQMdiSubWindowTitleBar, WA_MacAlwaysShowToolWindow = Qt::WA_MacAlwaysShowToolWindow, WA_StyleSheet = Qt::WA_StyleSheet, WA_ShowWithoutActivating = Qt::WA_ShowWithoutActivating, WA_X11BypassTransientForHint = Qt::WA_X11BypassTransientForHint, WA_NativeWindow = Qt::WA_NativeWindow, WA_DontCreateNativeAncestors = Qt::WA_DontCreateNativeAncestors, WA_MacVariableSize = Qt::WA_MacVariableSize, WA_DontShowOnScreen = Qt::WA_DontShowOnScreen, WA_X11NetWmWindowTypeDesktop = Qt::WA_X11NetWmWindowTypeDesktop, WA_X11NetWmWindowTypeDock = Qt::WA_X11NetWmWindowTypeDock, WA_X11NetWmWindowTypeToolBar = Qt::WA_X11NetWmWindowTypeToolBar, WA_X11NetWmWindowTypeMenu = Qt::WA_X11NetWmWindowTypeMenu, WA_X11NetWmWindowTypeUtility = Qt::WA_X11NetWmWindowTypeUtility, WA_X11NetWmWindowTypeSplash = Qt::WA_X11NetWmWindowTypeSplash, WA_X11NetWmWindowTypeDialog = Qt::WA_X11NetWmWindowTypeDialog, WA_X11NetWmWindowTypeDropDownMenu = Qt::WA_X11NetWmWindowTypeDropDownMenu, WA_X11NetWmWindowTypePopupMenu = Qt::WA_X11NetWmWindowTypePopupMenu, WA_X11NetWmWindowTypeToolTip = Qt::WA_X11NetWmWindowTypeToolTip, WA_X11NetWmWindowTypeNotification = Qt::WA_X11NetWmWindowTypeNotification, WA_X11NetWmWindowTypeCombo = Qt::WA_X11NetWmWindowTypeCombo, WA_X11NetWmWindowTypeDND = Qt::WA_X11NetWmWindowTypeDND, WA_MacFrameworkScaled = Qt::WA_MacFrameworkScaled, WA_SetWindowModality = Qt::WA_SetWindowModality, WA_WState_WindowOpacitySet = Qt::WA_WState_WindowOpacitySet, WA_TranslucentBackground = Qt::WA_TranslucentBackground, WA_AcceptTouchEvents = Qt::WA_AcceptTouchEvents, WA_WState_AcceptedTouchBeginEvent = Qt::WA_WState_AcceptedTouchBeginEvent, WA_TouchPadAcceptSingleTouchEvents = Qt::WA_TouchPadAcceptSingleTouchEvents, WA_X11DoNotAcceptFocus = Qt::WA_X11DoNotAcceptFocus, WA_MacNoShadow = Qt::WA_MacNoShadow, WA_AttributeCount = Qt::WA_AttributeCount}; +enum GestureState{ + NoGesture = Qt::NoGesture, GestureStarted = Qt::GestureStarted, GestureUpdated = Qt::GestureUpdated, GestureFinished = Qt::GestureFinished, GestureCanceled = Qt::GestureCanceled}; +enum GlobalColor{ + color0 = Qt::color0, color1 = Qt::color1, black = Qt::black, white = Qt::white, darkGray = Qt::darkGray, gray = Qt::gray, lightGray = Qt::lightGray, red = Qt::red, green = Qt::green, blue = Qt::blue, cyan = Qt::cyan, magenta = Qt::magenta, yellow = Qt::yellow, darkRed = Qt::darkRed, darkGreen = Qt::darkGreen, darkBlue = Qt::darkBlue, darkCyan = Qt::darkCyan, darkMagenta = Qt::darkMagenta, darkYellow = Qt::darkYellow, transparent = Qt::transparent}; +enum PenStyle{ + NoPen = Qt::NoPen, SolidLine = Qt::SolidLine, DashLine = Qt::DashLine, DotLine = Qt::DotLine, DashDotLine = Qt::DashDotLine, DashDotDotLine = Qt::DashDotDotLine, CustomDashLine = Qt::CustomDashLine, MPenStyle = Qt::MPenStyle}; +enum NavigationMode{ + NavigationModeNone = Qt::NavigationModeNone, NavigationModeKeypadTabOrder = Qt::NavigationModeKeypadTabOrder, NavigationModeKeypadDirectional = Qt::NavigationModeKeypadDirectional, NavigationModeCursorAuto = Qt::NavigationModeCursorAuto, NavigationModeCursorForceVisible = Qt::NavigationModeCursorForceVisible}; +enum GestureFlag{ + DontStartGestureOnChildren = Qt::DontStartGestureOnChildren, ReceivePartialGestures = Qt::ReceivePartialGestures, IgnoredGesturesPropagateToParent = Qt::IgnoredGesturesPropagateToParent}; +enum ToolBarArea{ + LeftToolBarArea = Qt::LeftToolBarArea, RightToolBarArea = Qt::RightToolBarArea, TopToolBarArea = Qt::TopToolBarArea, BottomToolBarArea = Qt::BottomToolBarArea, ToolBarArea_Mask = Qt::ToolBarArea_Mask, AllToolBarAreas = Qt::AllToolBarAreas, NoToolBarArea = Qt::NoToolBarArea}; +enum WindowFrameSection{ + NoSection = Qt::NoSection, LeftSection = Qt::LeftSection, TopLeftSection = Qt::TopLeftSection, TopSection = Qt::TopSection, TopRightSection = Qt::TopRightSection, RightSection = Qt::RightSection, BottomRightSection = Qt::BottomRightSection, BottomSection = Qt::BottomSection, BottomLeftSection = Qt::BottomLeftSection, TitleBarArea = Qt::TitleBarArea}; +enum PenCapStyle{ + FlatCap = Qt::FlatCap, SquareCap = Qt::SquareCap, RoundCap = Qt::RoundCap, MPenCapStyle = Qt::MPenCapStyle}; +enum SizeHint{ + MinimumSize = Qt::MinimumSize, PreferredSize = Qt::PreferredSize, MaximumSize = Qt::MaximumSize, MinimumDescent = Qt::MinimumDescent, NSizeHints = Qt::NSizeHints}; +enum DayOfWeek{ + Monday = Qt::Monday, Tuesday = Qt::Tuesday, Wednesday = Qt::Wednesday, Thursday = Qt::Thursday, Friday = Qt::Friday, Saturday = Qt::Saturday, Sunday = Qt::Sunday}; +enum WindowModality{ + NonModal = Qt::NonModal, WindowModal = Qt::WindowModal, ApplicationModal = Qt::ApplicationModal}; +enum MatchFlag{ + MatchExactly = Qt::MatchExactly, MatchContains = Qt::MatchContains, MatchStartsWith = Qt::MatchStartsWith, MatchEndsWith = Qt::MatchEndsWith, MatchRegExp = Qt::MatchRegExp, MatchWildcard = Qt::MatchWildcard, MatchFixedString = Qt::MatchFixedString, MatchCaseSensitive = Qt::MatchCaseSensitive, MatchWrap = Qt::MatchWrap, MatchRecursive = Qt::MatchRecursive}; +enum DockWidgetAreaSizes{ + NDockWidgetAreas = Qt::NDockWidgetAreas}; +enum FindChildOption{ + FindDirectChildrenOnly = Qt::FindDirectChildrenOnly, FindChildrenRecursively = Qt::FindChildrenRecursively}; +enum AnchorPoint{ + AnchorLeft = Qt::AnchorLeft, AnchorHorizontalCenter = Qt::AnchorHorizontalCenter, AnchorRight = Qt::AnchorRight, AnchorTop = Qt::AnchorTop, AnchorVerticalCenter = Qt::AnchorVerticalCenter, AnchorBottom = Qt::AnchorBottom}; +enum CaseSensitivity{ + CaseInsensitive = Qt::CaseInsensitive, CaseSensitive = Qt::CaseSensitive}; +enum TextFlag{ + TextSingleLine = Qt::TextSingleLine, TextDontClip = Qt::TextDontClip, TextExpandTabs = Qt::TextExpandTabs, TextShowMnemonic = Qt::TextShowMnemonic, TextWordWrap = Qt::TextWordWrap, TextWrapAnywhere = Qt::TextWrapAnywhere, TextDontPrint = Qt::TextDontPrint, TextIncludeTrailingSpaces = Qt::TextIncludeTrailingSpaces, TextHideMnemonic = Qt::TextHideMnemonic, TextJustificationForced = Qt::TextJustificationForced, TextForceLeftToRight = Qt::TextForceLeftToRight, TextForceRightToLeft = Qt::TextForceRightToLeft, TextLongestVariant = Qt::TextLongestVariant, TextBypassShaping = Qt::TextBypassShaping}; +enum BrushStyle{ + NoBrush = Qt::NoBrush, SolidPattern = Qt::SolidPattern, Dense1Pattern = Qt::Dense1Pattern, Dense2Pattern = Qt::Dense2Pattern, Dense3Pattern = Qt::Dense3Pattern, Dense4Pattern = Qt::Dense4Pattern, Dense5Pattern = Qt::Dense5Pattern, Dense6Pattern = Qt::Dense6Pattern, Dense7Pattern = Qt::Dense7Pattern, HorPattern = Qt::HorPattern, VerPattern = Qt::VerPattern, CrossPattern = Qt::CrossPattern, BDiagPattern = Qt::BDiagPattern, FDiagPattern = Qt::FDiagPattern, DiagCrossPattern = Qt::DiagCrossPattern, LinearGradientPattern = Qt::LinearGradientPattern, RadialGradientPattern = Qt::RadialGradientPattern, ConicalGradientPattern = Qt::ConicalGradientPattern, TexturePattern = Qt::TexturePattern}; +enum ItemSelectionMode{ + ContainsItemShape = Qt::ContainsItemShape, IntersectsItemShape = Qt::IntersectsItemShape, ContainsItemBoundingRect = Qt::ContainsItemBoundingRect, IntersectsItemBoundingRect = Qt::IntersectsItemBoundingRect}; +enum DateFormat{ + TextDate = Qt::TextDate, ISODate = Qt::ISODate, SystemLocaleDate = Qt::SystemLocaleDate, LocalDate = Qt::LocalDate, LocaleDate = Qt::LocaleDate, SystemLocaleShortDate = Qt::SystemLocaleShortDate, SystemLocaleLongDate = Qt::SystemLocaleLongDate, DefaultLocaleShortDate = Qt::DefaultLocaleShortDate, DefaultLocaleLongDate = Qt::DefaultLocaleLongDate}; +enum ApplicationAttribute{ + AA_ImmediateWidgetCreation = Qt::AA_ImmediateWidgetCreation, AA_MSWindowsUseDirect3DByDefault = Qt::AA_MSWindowsUseDirect3DByDefault, AA_DontShowIconsInMenus = Qt::AA_DontShowIconsInMenus, AA_NativeWindows = Qt::AA_NativeWindows, AA_DontCreateNativeWidgetSiblings = Qt::AA_DontCreateNativeWidgetSiblings, AA_MacPluginApplication = Qt::AA_MacPluginApplication, AA_DontUseNativeMenuBar = Qt::AA_DontUseNativeMenuBar, AA_MacDontSwapCtrlAndMeta = Qt::AA_MacDontSwapCtrlAndMeta, AA_Use96Dpi = Qt::AA_Use96Dpi, AA_X11InitThreads = Qt::AA_X11InitThreads, AA_SynthesizeTouchForUnhandledMouseEvents = Qt::AA_SynthesizeTouchForUnhandledMouseEvents, AA_SynthesizeMouseForUnhandledTouchEvents = Qt::AA_SynthesizeMouseForUnhandledTouchEvents, AA_AttributeCount = Qt::AA_AttributeCount}; +enum ItemFlag{ + NoItemFlags = Qt::NoItemFlags, ItemIsSelectable = Qt::ItemIsSelectable, ItemIsEditable = Qt::ItemIsEditable, ItemIsDragEnabled = Qt::ItemIsDragEnabled, ItemIsDropEnabled = Qt::ItemIsDropEnabled, ItemIsUserCheckable = Qt::ItemIsUserCheckable, ItemIsEnabled = Qt::ItemIsEnabled, ItemIsTristate = Qt::ItemIsTristate}; +enum ScrollBarPolicy{ + ScrollBarAsNeeded = Qt::ScrollBarAsNeeded, ScrollBarAlwaysOff = Qt::ScrollBarAlwaysOff, ScrollBarAlwaysOn = Qt::ScrollBarAlwaysOn}; +enum WhiteSpaceMode{ + WhiteSpaceNormal = Qt::WhiteSpaceNormal, WhiteSpacePre = Qt::WhiteSpacePre, WhiteSpaceNoWrap = Qt::WhiteSpaceNoWrap, WhiteSpaceModeUndefined = Qt::WhiteSpaceModeUndefined}; +enum TimerType{ + PreciseTimer = Qt::PreciseTimer, CoarseTimer = Qt::CoarseTimer, VeryCoarseTimer = Qt::VeryCoarseTimer}; +enum DropAction{ + CopyAction = Qt::CopyAction, MoveAction = Qt::MoveAction, LinkAction = Qt::LinkAction, ActionMask = Qt::ActionMask, TargetMoveAction = Qt::TargetMoveAction, IgnoreAction = Qt::IgnoreAction}; +enum FocusPolicy{ + NoFocus = Qt::NoFocus, TabFocus = Qt::TabFocus, ClickFocus = Qt::ClickFocus, StrongFocus = Qt::StrongFocus, WheelFocus = Qt::WheelFocus}; +enum CursorShape{ + ArrowCursor = Qt::ArrowCursor, UpArrowCursor = Qt::UpArrowCursor, CrossCursor = Qt::CrossCursor, WaitCursor = Qt::WaitCursor, IBeamCursor = Qt::IBeamCursor, SizeVerCursor = Qt::SizeVerCursor, SizeHorCursor = Qt::SizeHorCursor, SizeBDiagCursor = Qt::SizeBDiagCursor, SizeFDiagCursor = Qt::SizeFDiagCursor, SizeAllCursor = Qt::SizeAllCursor, BlankCursor = Qt::BlankCursor, SplitVCursor = Qt::SplitVCursor, SplitHCursor = Qt::SplitHCursor, PointingHandCursor = Qt::PointingHandCursor, ForbiddenCursor = Qt::ForbiddenCursor, WhatsThisCursor = Qt::WhatsThisCursor, BusyCursor = Qt::BusyCursor, OpenHandCursor = Qt::OpenHandCursor, ClosedHandCursor = Qt::ClosedHandCursor, DragCopyCursor = Qt::DragCopyCursor, DragMoveCursor = Qt::DragMoveCursor, DragLinkCursor = Qt::DragLinkCursor, LastCursor = Qt::LastCursor, BitmapCursor = Qt::BitmapCursor, CustomCursor = Qt::CustomCursor}; +enum TouchPointState{ + TouchPointPressed = Qt::TouchPointPressed, TouchPointMoved = Qt::TouchPointMoved, TouchPointStationary = Qt::TouchPointStationary, TouchPointReleased = Qt::TouchPointReleased}; +enum CursorMoveStyle{ + LogicalMoveStyle = Qt::LogicalMoveStyle, VisualMoveStyle = Qt::VisualMoveStyle}; +enum InputMethodHint{ + ImhNone = Qt::ImhNone, ImhHiddenText = Qt::ImhHiddenText, ImhSensitiveData = Qt::ImhSensitiveData, ImhNoAutoUppercase = Qt::ImhNoAutoUppercase, ImhPreferNumbers = Qt::ImhPreferNumbers, ImhPreferUppercase = Qt::ImhPreferUppercase, ImhPreferLowercase = Qt::ImhPreferLowercase, ImhNoPredictiveText = Qt::ImhNoPredictiveText, ImhDate = Qt::ImhDate, ImhTime = Qt::ImhTime, ImhPreferLatin = Qt::ImhPreferLatin, ImhDigitsOnly = Qt::ImhDigitsOnly, ImhFormattedNumbersOnly = Qt::ImhFormattedNumbersOnly, ImhUppercaseOnly = Qt::ImhUppercaseOnly, ImhLowercaseOnly = Qt::ImhLowercaseOnly, ImhDialableCharactersOnly = Qt::ImhDialableCharactersOnly, ImhEmailCharactersOnly = Qt::ImhEmailCharactersOnly, ImhUrlCharactersOnly = Qt::ImhUrlCharactersOnly, ImhLatinOnly = Qt::ImhLatinOnly, ImhExclusiveInputMask = Qt::ImhExclusiveInputMask}; +enum ArrowType{ + NoArrow = Qt::NoArrow, UpArrow = Qt::UpArrow, DownArrow = Qt::DownArrow, LeftArrow = Qt::LeftArrow, RightArrow = Qt::RightArrow}; +enum TextFormat{ + PlainText = Qt::PlainText, RichText = Qt::RichText, AutoText = Qt::AutoText}; +enum HitTestAccuracy{ + ExactHit = Qt::ExactHit, FuzzyHit = Qt::FuzzyHit}; +enum ToolButtonStyle{ + ToolButtonIconOnly = Qt::ToolButtonIconOnly, ToolButtonTextOnly = Qt::ToolButtonTextOnly, ToolButtonTextBesideIcon = Qt::ToolButtonTextBesideIcon, ToolButtonTextUnderIcon = Qt::ToolButtonTextUnderIcon, ToolButtonFollowStyle = Qt::ToolButtonFollowStyle}; +enum FocusReason{ + MouseFocusReason = Qt::MouseFocusReason, TabFocusReason = Qt::TabFocusReason, BacktabFocusReason = Qt::BacktabFocusReason, ActiveWindowFocusReason = Qt::ActiveWindowFocusReason, PopupFocusReason = Qt::PopupFocusReason, ShortcutFocusReason = Qt::ShortcutFocusReason, MenuBarFocusReason = Qt::MenuBarFocusReason, OtherFocusReason = Qt::OtherFocusReason, NoFocusReason = Qt::NoFocusReason}; +enum TextElideMode{ + ElideLeft = Qt::ElideLeft, ElideRight = Qt::ElideRight, ElideMiddle = Qt::ElideMiddle, ElideNone = Qt::ElideNone}; +enum CoordinateSystem{ + DeviceCoordinates = Qt::DeviceCoordinates, LogicalCoordinates = Qt::LogicalCoordinates}; +enum KeyboardModifier{ + NoModifier = Qt::NoModifier, ShiftModifier = Qt::ShiftModifier, ControlModifier = Qt::ControlModifier, AltModifier = Qt::AltModifier, MetaModifier = Qt::MetaModifier, KeypadModifier = Qt::KeypadModifier, GroupSwitchModifier = Qt::GroupSwitchModifier, KeyboardModifierMask = Qt::KeyboardModifierMask}; +enum UIEffect{ + UI_General = Qt::UI_General, UI_AnimateMenu = Qt::UI_AnimateMenu, UI_FadeMenu = Qt::UI_FadeMenu, UI_AnimateCombo = Qt::UI_AnimateCombo, UI_AnimateTooltip = Qt::UI_AnimateTooltip, UI_FadeTooltip = Qt::UI_FadeTooltip, UI_AnimateToolBox = Qt::UI_AnimateToolBox}; +enum ScreenOrientation{ + PrimaryOrientation = Qt::PrimaryOrientation, PortraitOrientation = Qt::PortraitOrientation, LandscapeOrientation = Qt::LandscapeOrientation, InvertedPortraitOrientation = Qt::InvertedPortraitOrientation, InvertedLandscapeOrientation = Qt::InvertedLandscapeOrientation}; +enum ImageConversionFlag{ + ColorMode_Mask = Qt::ColorMode_Mask, AutoColor = Qt::AutoColor, ColorOnly = Qt::ColorOnly, MonoOnly = Qt::MonoOnly, AlphaDither_Mask = Qt::AlphaDither_Mask, ThresholdAlphaDither = Qt::ThresholdAlphaDither, OrderedAlphaDither = Qt::OrderedAlphaDither, DiffuseAlphaDither = Qt::DiffuseAlphaDither, NoAlpha = Qt::NoAlpha, Dither_Mask = Qt::Dither_Mask, DiffuseDither = Qt::DiffuseDither, OrderedDither = Qt::OrderedDither, ThresholdDither = Qt::ThresholdDither, DitherMode_Mask = Qt::DitherMode_Mask, AutoDither = Qt::AutoDither, PreferDither = Qt::PreferDither, AvoidDither = Qt::AvoidDither, NoOpaqueDetection = Qt::NoOpaqueDetection, NoFormatConversion = Qt::NoFormatConversion}; +enum TransformationMode{ + FastTransformation = Qt::FastTransformation, SmoothTransformation = Qt::SmoothTransformation}; +enum PenJoinStyle{ + MiterJoin = Qt::MiterJoin, BevelJoin = Qt::BevelJoin, RoundJoin = Qt::RoundJoin, SvgMiterJoin = Qt::SvgMiterJoin, MPenJoinStyle = Qt::MPenJoinStyle}; +enum EventPriority{ + HighEventPriority = Qt::HighEventPriority, NormalEventPriority = Qt::NormalEventPriority, LowEventPriority = Qt::LowEventPriority}; +enum LayoutDirection{ + LeftToRight = Qt::LeftToRight, RightToLeft = Qt::RightToLeft, LayoutDirectionAuto = Qt::LayoutDirectionAuto}; +enum TextInteractionFlag{ + NoTextInteraction = Qt::NoTextInteraction, TextSelectableByMouse = Qt::TextSelectableByMouse, TextSelectableByKeyboard = Qt::TextSelectableByKeyboard, LinksAccessibleByMouse = Qt::LinksAccessibleByMouse, LinksAccessibleByKeyboard = Qt::LinksAccessibleByKeyboard, TextEditable = Qt::TextEditable, TextEditorInteraction = Qt::TextEditorInteraction, TextBrowserInteraction = Qt::TextBrowserInteraction}; +enum Corner{ + TopLeftCorner = Qt::TopLeftCorner, TopRightCorner = Qt::TopRightCorner, BottomLeftCorner = Qt::BottomLeftCorner, BottomRightCorner = Qt::BottomRightCorner}; +enum TileRule{ + StretchTile = Qt::StretchTile, RepeatTile = Qt::RepeatTile, RoundTile = Qt::RoundTile}; +enum ConnectionType{ + AutoConnection = Qt::AutoConnection, DirectConnection = Qt::DirectConnection, QueuedConnection = Qt::QueuedConnection, BlockingQueuedConnection = Qt::BlockingQueuedConnection, UniqueConnection = Qt::UniqueConnection}; +enum AlignmentFlag{ + AlignLeft = Qt::AlignLeft, AlignLeading = Qt::AlignLeading, AlignRight = Qt::AlignRight, AlignTrailing = Qt::AlignTrailing, AlignHCenter = Qt::AlignHCenter, AlignJustify = Qt::AlignJustify, AlignAbsolute = Qt::AlignAbsolute, AlignHorizontal_Mask = Qt::AlignHorizontal_Mask, AlignTop = Qt::AlignTop, AlignBottom = Qt::AlignBottom, AlignVCenter = Qt::AlignVCenter, AlignVertical_Mask = Qt::AlignVertical_Mask, AlignCenter = Qt::AlignCenter}; +enum Key{ + Key_Escape = Qt::Key_Escape, Key_Tab = Qt::Key_Tab, Key_Backtab = Qt::Key_Backtab, Key_Backspace = Qt::Key_Backspace, Key_Return = Qt::Key_Return, Key_Enter = Qt::Key_Enter, Key_Insert = Qt::Key_Insert, Key_Delete = Qt::Key_Delete, Key_Pause = Qt::Key_Pause, Key_Print = Qt::Key_Print, Key_SysReq = Qt::Key_SysReq, Key_Clear = Qt::Key_Clear, Key_Home = Qt::Key_Home, Key_End = Qt::Key_End, Key_Left = Qt::Key_Left, Key_Up = Qt::Key_Up, Key_Right = Qt::Key_Right, Key_Down = Qt::Key_Down, Key_PageUp = Qt::Key_PageUp, Key_PageDown = Qt::Key_PageDown, Key_Shift = Qt::Key_Shift, Key_Control = Qt::Key_Control, Key_Meta = Qt::Key_Meta, Key_Alt = Qt::Key_Alt, Key_CapsLock = Qt::Key_CapsLock, Key_NumLock = Qt::Key_NumLock, Key_ScrollLock = Qt::Key_ScrollLock, Key_F1 = Qt::Key_F1, Key_F2 = Qt::Key_F2, Key_F3 = Qt::Key_F3, Key_F4 = Qt::Key_F4, Key_F5 = Qt::Key_F5, Key_F6 = Qt::Key_F6, Key_F7 = Qt::Key_F7, Key_F8 = Qt::Key_F8, Key_F9 = Qt::Key_F9, Key_F10 = Qt::Key_F10, Key_F11 = Qt::Key_F11, Key_F12 = Qt::Key_F12, Key_F13 = Qt::Key_F13, Key_F14 = Qt::Key_F14, Key_F15 = Qt::Key_F15, Key_F16 = Qt::Key_F16, Key_F17 = Qt::Key_F17, Key_F18 = Qt::Key_F18, Key_F19 = Qt::Key_F19, Key_F20 = Qt::Key_F20, Key_F21 = Qt::Key_F21, Key_F22 = Qt::Key_F22, Key_F23 = Qt::Key_F23, Key_F24 = Qt::Key_F24, Key_F25 = Qt::Key_F25, Key_F26 = Qt::Key_F26, Key_F27 = Qt::Key_F27, Key_F28 = Qt::Key_F28, Key_F29 = Qt::Key_F29, Key_F30 = Qt::Key_F30, Key_F31 = Qt::Key_F31, Key_F32 = Qt::Key_F32, Key_F33 = Qt::Key_F33, Key_F34 = Qt::Key_F34, Key_F35 = Qt::Key_F35, Key_Super_L = Qt::Key_Super_L, Key_Super_R = Qt::Key_Super_R, Key_Menu = Qt::Key_Menu, Key_Hyper_L = Qt::Key_Hyper_L, Key_Hyper_R = Qt::Key_Hyper_R, Key_Help = Qt::Key_Help, Key_Direction_L = Qt::Key_Direction_L, Key_Direction_R = Qt::Key_Direction_R, Key_Space = Qt::Key_Space, Key_Any = Qt::Key_Any, Key_Exclam = Qt::Key_Exclam, Key_QuoteDbl = Qt::Key_QuoteDbl, Key_NumberSign = Qt::Key_NumberSign, Key_Dollar = Qt::Key_Dollar, Key_Percent = Qt::Key_Percent, Key_Ampersand = Qt::Key_Ampersand, Key_Apostrophe = Qt::Key_Apostrophe, Key_ParenLeft = Qt::Key_ParenLeft, Key_ParenRight = Qt::Key_ParenRight, Key_Asterisk = Qt::Key_Asterisk, Key_Plus = Qt::Key_Plus, Key_Comma = Qt::Key_Comma, Key_Minus = Qt::Key_Minus, Key_Period = Qt::Key_Period, Key_Slash = Qt::Key_Slash, Key_0 = Qt::Key_0, Key_1 = Qt::Key_1, Key_2 = Qt::Key_2, Key_3 = Qt::Key_3, Key_4 = Qt::Key_4, Key_5 = Qt::Key_5, Key_6 = Qt::Key_6, Key_7 = Qt::Key_7, Key_8 = Qt::Key_8, Key_9 = Qt::Key_9, Key_Colon = Qt::Key_Colon, Key_Semicolon = Qt::Key_Semicolon, Key_Less = Qt::Key_Less, Key_Equal = Qt::Key_Equal, Key_Greater = Qt::Key_Greater, Key_Question = Qt::Key_Question, Key_At = Qt::Key_At, Key_A = Qt::Key_A, Key_B = Qt::Key_B, Key_C = Qt::Key_C, Key_D = Qt::Key_D, Key_E = Qt::Key_E, Key_F = Qt::Key_F, Key_G = Qt::Key_G, Key_H = Qt::Key_H, Key_I = Qt::Key_I, Key_J = Qt::Key_J, Key_K = Qt::Key_K, Key_L = Qt::Key_L, Key_M = Qt::Key_M, Key_N = Qt::Key_N, Key_O = Qt::Key_O, Key_P = Qt::Key_P, Key_Q = Qt::Key_Q, Key_R = Qt::Key_R, Key_S = Qt::Key_S, Key_T = Qt::Key_T, Key_U = Qt::Key_U, Key_V = Qt::Key_V, Key_W = Qt::Key_W, Key_X = Qt::Key_X, Key_Y = Qt::Key_Y, Key_Z = Qt::Key_Z, Key_BracketLeft = Qt::Key_BracketLeft, Key_Backslash = Qt::Key_Backslash, Key_BracketRight = Qt::Key_BracketRight, Key_AsciiCircum = Qt::Key_AsciiCircum, Key_Underscore = Qt::Key_Underscore, Key_QuoteLeft = Qt::Key_QuoteLeft, Key_BraceLeft = Qt::Key_BraceLeft, Key_Bar = Qt::Key_Bar, Key_BraceRight = Qt::Key_BraceRight, Key_AsciiTilde = Qt::Key_AsciiTilde, Key_nobreakspace = Qt::Key_nobreakspace, Key_exclamdown = Qt::Key_exclamdown, Key_cent = Qt::Key_cent, Key_sterling = Qt::Key_sterling, Key_currency = Qt::Key_currency, Key_yen = Qt::Key_yen, Key_brokenbar = Qt::Key_brokenbar, Key_section = Qt::Key_section, Key_diaeresis = Qt::Key_diaeresis, Key_copyright = Qt::Key_copyright, Key_ordfeminine = Qt::Key_ordfeminine, Key_guillemotleft = Qt::Key_guillemotleft, Key_notsign = Qt::Key_notsign, Key_hyphen = Qt::Key_hyphen, Key_registered = Qt::Key_registered, Key_macron = Qt::Key_macron, Key_degree = Qt::Key_degree, Key_plusminus = Qt::Key_plusminus, Key_twosuperior = Qt::Key_twosuperior, Key_threesuperior = Qt::Key_threesuperior, Key_acute = Qt::Key_acute, Key_mu = Qt::Key_mu, Key_paragraph = Qt::Key_paragraph, Key_periodcentered = Qt::Key_periodcentered, Key_cedilla = Qt::Key_cedilla, Key_onesuperior = Qt::Key_onesuperior, Key_masculine = Qt::Key_masculine, Key_guillemotright = Qt::Key_guillemotright, Key_onequarter = Qt::Key_onequarter, Key_onehalf = Qt::Key_onehalf, Key_threequarters = Qt::Key_threequarters, Key_questiondown = Qt::Key_questiondown, Key_Agrave = Qt::Key_Agrave, Key_Aacute = Qt::Key_Aacute, Key_Acircumflex = Qt::Key_Acircumflex, Key_Atilde = Qt::Key_Atilde, Key_Adiaeresis = Qt::Key_Adiaeresis, Key_Aring = Qt::Key_Aring, Key_AE = Qt::Key_AE, Key_Ccedilla = Qt::Key_Ccedilla, Key_Egrave = Qt::Key_Egrave, Key_Eacute = Qt::Key_Eacute, Key_Ecircumflex = Qt::Key_Ecircumflex, Key_Ediaeresis = Qt::Key_Ediaeresis, Key_Igrave = Qt::Key_Igrave, Key_Iacute = Qt::Key_Iacute, Key_Icircumflex = Qt::Key_Icircumflex, Key_Idiaeresis = Qt::Key_Idiaeresis, Key_ETH = Qt::Key_ETH, Key_Ntilde = Qt::Key_Ntilde, Key_Ograve = Qt::Key_Ograve, Key_Oacute = Qt::Key_Oacute, Key_Ocircumflex = Qt::Key_Ocircumflex, Key_Otilde = Qt::Key_Otilde, Key_Odiaeresis = Qt::Key_Odiaeresis, Key_multiply = Qt::Key_multiply, Key_Ooblique = Qt::Key_Ooblique, Key_Ugrave = Qt::Key_Ugrave, Key_Uacute = Qt::Key_Uacute, Key_Ucircumflex = Qt::Key_Ucircumflex, Key_Udiaeresis = Qt::Key_Udiaeresis, Key_Yacute = Qt::Key_Yacute, Key_THORN = Qt::Key_THORN, Key_ssharp = Qt::Key_ssharp, Key_division = Qt::Key_division, Key_ydiaeresis = Qt::Key_ydiaeresis, Key_AltGr = Qt::Key_AltGr, Key_Multi_key = Qt::Key_Multi_key, Key_Codeinput = Qt::Key_Codeinput, Key_SingleCandidate = Qt::Key_SingleCandidate, Key_MultipleCandidate = Qt::Key_MultipleCandidate, Key_PreviousCandidate = Qt::Key_PreviousCandidate, Key_Mode_switch = Qt::Key_Mode_switch, Key_Kanji = Qt::Key_Kanji, Key_Muhenkan = Qt::Key_Muhenkan, Key_Henkan = Qt::Key_Henkan, Key_Romaji = Qt::Key_Romaji, Key_Hiragana = Qt::Key_Hiragana, Key_Katakana = Qt::Key_Katakana, Key_Hiragana_Katakana = Qt::Key_Hiragana_Katakana, Key_Zenkaku = Qt::Key_Zenkaku, Key_Hankaku = Qt::Key_Hankaku, Key_Zenkaku_Hankaku = Qt::Key_Zenkaku_Hankaku, Key_Touroku = Qt::Key_Touroku, Key_Massyo = Qt::Key_Massyo, Key_Kana_Lock = Qt::Key_Kana_Lock, Key_Kana_Shift = Qt::Key_Kana_Shift, Key_Eisu_Shift = Qt::Key_Eisu_Shift, Key_Eisu_toggle = Qt::Key_Eisu_toggle, Key_Hangul = Qt::Key_Hangul, Key_Hangul_Start = Qt::Key_Hangul_Start, Key_Hangul_End = Qt::Key_Hangul_End, Key_Hangul_Hanja = Qt::Key_Hangul_Hanja, Key_Hangul_Jamo = Qt::Key_Hangul_Jamo, Key_Hangul_Romaja = Qt::Key_Hangul_Romaja, Key_Hangul_Jeonja = Qt::Key_Hangul_Jeonja, Key_Hangul_Banja = Qt::Key_Hangul_Banja, Key_Hangul_PreHanja = Qt::Key_Hangul_PreHanja, Key_Hangul_PostHanja = Qt::Key_Hangul_PostHanja, Key_Hangul_Special = Qt::Key_Hangul_Special, Key_Dead_Grave = Qt::Key_Dead_Grave, Key_Dead_Acute = Qt::Key_Dead_Acute, Key_Dead_Circumflex = Qt::Key_Dead_Circumflex, Key_Dead_Tilde = Qt::Key_Dead_Tilde, Key_Dead_Macron = Qt::Key_Dead_Macron, Key_Dead_Breve = Qt::Key_Dead_Breve, Key_Dead_Abovedot = Qt::Key_Dead_Abovedot, Key_Dead_Diaeresis = Qt::Key_Dead_Diaeresis, Key_Dead_Abovering = Qt::Key_Dead_Abovering, Key_Dead_Doubleacute = Qt::Key_Dead_Doubleacute, Key_Dead_Caron = Qt::Key_Dead_Caron, Key_Dead_Cedilla = Qt::Key_Dead_Cedilla, Key_Dead_Ogonek = Qt::Key_Dead_Ogonek, Key_Dead_Iota = Qt::Key_Dead_Iota, Key_Dead_Voiced_Sound = Qt::Key_Dead_Voiced_Sound, Key_Dead_Semivoiced_Sound = Qt::Key_Dead_Semivoiced_Sound, Key_Dead_Belowdot = Qt::Key_Dead_Belowdot, Key_Dead_Hook = Qt::Key_Dead_Hook, Key_Dead_Horn = Qt::Key_Dead_Horn, Key_Back = Qt::Key_Back, Key_Forward = Qt::Key_Forward, Key_Stop = Qt::Key_Stop, Key_Refresh = Qt::Key_Refresh, Key_VolumeDown = Qt::Key_VolumeDown, Key_VolumeMute = Qt::Key_VolumeMute, Key_VolumeUp = Qt::Key_VolumeUp, Key_BassBoost = Qt::Key_BassBoost, Key_BassUp = Qt::Key_BassUp, Key_BassDown = Qt::Key_BassDown, Key_TrebleUp = Qt::Key_TrebleUp, Key_TrebleDown = Qt::Key_TrebleDown, Key_MediaPlay = Qt::Key_MediaPlay, Key_MediaStop = Qt::Key_MediaStop, Key_MediaPrevious = Qt::Key_MediaPrevious, Key_MediaNext = Qt::Key_MediaNext, Key_MediaRecord = Qt::Key_MediaRecord, Key_MediaPause = Qt::Key_MediaPause, Key_MediaTogglePlayPause = Qt::Key_MediaTogglePlayPause, Key_HomePage = Qt::Key_HomePage, Key_Favorites = Qt::Key_Favorites, Key_Search = Qt::Key_Search, Key_Standby = Qt::Key_Standby, Key_OpenUrl = Qt::Key_OpenUrl, Key_LaunchMail = Qt::Key_LaunchMail, Key_LaunchMedia = Qt::Key_LaunchMedia, Key_Launch0 = Qt::Key_Launch0, Key_Launch1 = Qt::Key_Launch1, Key_Launch2 = Qt::Key_Launch2, Key_Launch3 = Qt::Key_Launch3, Key_Launch4 = Qt::Key_Launch4, Key_Launch5 = Qt::Key_Launch5, Key_Launch6 = Qt::Key_Launch6, Key_Launch7 = Qt::Key_Launch7, Key_Launch8 = Qt::Key_Launch8, Key_Launch9 = Qt::Key_Launch9, Key_LaunchA = Qt::Key_LaunchA, Key_LaunchB = Qt::Key_LaunchB, Key_LaunchC = Qt::Key_LaunchC, Key_LaunchD = Qt::Key_LaunchD, Key_LaunchE = Qt::Key_LaunchE, Key_LaunchF = Qt::Key_LaunchF, Key_MonBrightnessUp = Qt::Key_MonBrightnessUp, Key_MonBrightnessDown = Qt::Key_MonBrightnessDown, Key_KeyboardLightOnOff = Qt::Key_KeyboardLightOnOff, Key_KeyboardBrightnessUp = Qt::Key_KeyboardBrightnessUp, Key_KeyboardBrightnessDown = Qt::Key_KeyboardBrightnessDown, Key_PowerOff = Qt::Key_PowerOff, Key_WakeUp = Qt::Key_WakeUp, Key_Eject = Qt::Key_Eject, Key_ScreenSaver = Qt::Key_ScreenSaver, Key_WWW = Qt::Key_WWW, Key_Memo = Qt::Key_Memo, Key_LightBulb = Qt::Key_LightBulb, Key_Shop = Qt::Key_Shop, Key_History = Qt::Key_History, Key_AddFavorite = Qt::Key_AddFavorite, Key_HotLinks = Qt::Key_HotLinks, Key_BrightnessAdjust = Qt::Key_BrightnessAdjust, Key_Finance = Qt::Key_Finance, Key_Community = Qt::Key_Community, Key_AudioRewind = Qt::Key_AudioRewind, Key_BackForward = Qt::Key_BackForward, Key_ApplicationLeft = Qt::Key_ApplicationLeft, Key_ApplicationRight = Qt::Key_ApplicationRight, Key_Book = Qt::Key_Book, Key_CD = Qt::Key_CD, Key_Calculator = Qt::Key_Calculator, Key_ToDoList = Qt::Key_ToDoList, Key_ClearGrab = Qt::Key_ClearGrab, Key_Close = Qt::Key_Close, Key_Copy = Qt::Key_Copy, Key_Cut = Qt::Key_Cut, Key_Display = Qt::Key_Display, Key_DOS = Qt::Key_DOS, Key_Documents = Qt::Key_Documents, Key_Excel = Qt::Key_Excel, Key_Explorer = Qt::Key_Explorer, Key_Game = Qt::Key_Game, Key_Go = Qt::Key_Go, Key_iTouch = Qt::Key_iTouch, Key_LogOff = Qt::Key_LogOff, Key_Market = Qt::Key_Market, Key_Meeting = Qt::Key_Meeting, Key_MenuKB = Qt::Key_MenuKB, Key_MenuPB = Qt::Key_MenuPB, Key_MySites = Qt::Key_MySites, Key_News = Qt::Key_News, Key_OfficeHome = Qt::Key_OfficeHome, Key_Option = Qt::Key_Option, Key_Paste = Qt::Key_Paste, Key_Phone = Qt::Key_Phone, Key_Calendar = Qt::Key_Calendar, Key_Reply = Qt::Key_Reply, Key_Reload = Qt::Key_Reload, Key_RotateWindows = Qt::Key_RotateWindows, Key_RotationPB = Qt::Key_RotationPB, Key_RotationKB = Qt::Key_RotationKB, Key_Save = Qt::Key_Save, Key_Send = Qt::Key_Send, Key_Spell = Qt::Key_Spell, Key_SplitScreen = Qt::Key_SplitScreen, Key_Support = Qt::Key_Support, Key_TaskPane = Qt::Key_TaskPane, Key_Terminal = Qt::Key_Terminal, Key_Tools = Qt::Key_Tools, Key_Travel = Qt::Key_Travel, Key_Video = Qt::Key_Video, Key_Word = Qt::Key_Word, Key_Xfer = Qt::Key_Xfer, Key_ZoomIn = Qt::Key_ZoomIn, Key_ZoomOut = Qt::Key_ZoomOut, Key_Away = Qt::Key_Away, Key_Messenger = Qt::Key_Messenger, Key_WebCam = Qt::Key_WebCam, Key_MailForward = Qt::Key_MailForward, Key_Pictures = Qt::Key_Pictures, Key_Music = Qt::Key_Music, Key_Battery = Qt::Key_Battery, Key_Bluetooth = Qt::Key_Bluetooth, Key_WLAN = Qt::Key_WLAN, Key_UWB = Qt::Key_UWB, Key_AudioForward = Qt::Key_AudioForward, Key_AudioRepeat = Qt::Key_AudioRepeat, Key_AudioRandomPlay = Qt::Key_AudioRandomPlay, Key_Subtitle = Qt::Key_Subtitle, Key_AudioCycleTrack = Qt::Key_AudioCycleTrack, Key_Time = Qt::Key_Time, Key_Hibernate = Qt::Key_Hibernate, Key_View = Qt::Key_View, Key_TopMenu = Qt::Key_TopMenu, Key_PowerDown = Qt::Key_PowerDown, Key_Suspend = Qt::Key_Suspend, Key_ContrastAdjust = Qt::Key_ContrastAdjust, Key_LaunchG = Qt::Key_LaunchG, Key_LaunchH = Qt::Key_LaunchH, Key_TouchpadToggle = Qt::Key_TouchpadToggle, Key_TouchpadOn = Qt::Key_TouchpadOn, Key_TouchpadOff = Qt::Key_TouchpadOff, Key_MediaLast = Qt::Key_MediaLast, Key_Select = Qt::Key_Select, Key_Yes = Qt::Key_Yes, Key_No = Qt::Key_No, Key_Cancel = Qt::Key_Cancel, Key_Printer = Qt::Key_Printer, Key_Execute = Qt::Key_Execute, Key_Sleep = Qt::Key_Sleep, Key_Play = Qt::Key_Play, Key_Zoom = Qt::Key_Zoom, Key_Context1 = Qt::Key_Context1, Key_Context2 = Qt::Key_Context2, Key_Context3 = Qt::Key_Context3, Key_Context4 = Qt::Key_Context4, Key_Call = Qt::Key_Call, Key_Hangup = Qt::Key_Hangup, Key_Flip = Qt::Key_Flip, Key_ToggleCallHangup = Qt::Key_ToggleCallHangup, Key_VoiceDial = Qt::Key_VoiceDial, Key_LastNumberRedial = Qt::Key_LastNumberRedial, Key_Camera = Qt::Key_Camera, Key_CameraFocus = Qt::Key_CameraFocus, Key_unknown = Qt::Key_unknown}; +enum WindowState{ + WindowNoState = Qt::WindowNoState, WindowMinimized = Qt::WindowMinimized, WindowMaximized = Qt::WindowMaximized, WindowFullScreen = Qt::WindowFullScreen, WindowActive = Qt::WindowActive}; +enum CheckState{ + Unchecked = Qt::Unchecked, PartiallyChecked = Qt::PartiallyChecked, Checked = Qt::Checked}; +enum ToolBarAreaSizes{ + NToolBarAreas = Qt::NToolBarAreas}; +enum SizeMode{ + AbsoluteSize = Qt::AbsoluteSize, RelativeSize = Qt::RelativeSize}; +enum Axis{ + XAxis = Qt::XAxis, YAxis = Qt::YAxis, ZAxis = Qt::ZAxis}; +enum FillRule{ + OddEvenFill = Qt::OddEvenFill, WindingFill = Qt::WindingFill}; +enum GestureType{ + TapGesture = Qt::TapGesture, TapAndHoldGesture = Qt::TapAndHoldGesture, PanGesture = Qt::PanGesture, PinchGesture = Qt::PinchGesture, SwipeGesture = Qt::SwipeGesture, CustomGesture = Qt::CustomGesture, LastGestureType = Qt::LastGestureType}; +enum ClipOperation{ + NoClip = Qt::NoClip, ReplaceClip = Qt::ReplaceClip, IntersectClip = Qt::IntersectClip}; +enum InputMethodQuery{ + ImEnabled = Qt::ImEnabled, ImCursorRectangle = Qt::ImCursorRectangle, ImMicroFocus = Qt::ImMicroFocus, ImFont = Qt::ImFont, ImCursorPosition = Qt::ImCursorPosition, ImSurroundingText = Qt::ImSurroundingText, ImCurrentSelection = Qt::ImCurrentSelection, ImMaximumTextLength = Qt::ImMaximumTextLength, ImAnchorPosition = Qt::ImAnchorPosition, ImHints = Qt::ImHints, ImPreferredLanguage = Qt::ImPreferredLanguage, ImPlatformData = Qt::ImPlatformData, ImQueryInput = Qt::ImQueryInput, ImQueryAll = Qt::ImQueryAll}; +enum TimeSpec{ + LocalTime = Qt::LocalTime, UTC = Qt::UTC, OffsetFromUTC = Qt::OffsetFromUTC}; +enum ItemDataRole{ + DisplayRole = Qt::DisplayRole, DecorationRole = Qt::DecorationRole, EditRole = Qt::EditRole, ToolTipRole = Qt::ToolTipRole, StatusTipRole = Qt::StatusTipRole, WhatsThisRole = Qt::WhatsThisRole, FontRole = Qt::FontRole, TextAlignmentRole = Qt::TextAlignmentRole, BackgroundColorRole = Qt::BackgroundColorRole, BackgroundRole = Qt::BackgroundRole, TextColorRole = Qt::TextColorRole, ForegroundRole = Qt::ForegroundRole, CheckStateRole = Qt::CheckStateRole, AccessibleTextRole = Qt::AccessibleTextRole, AccessibleDescriptionRole = Qt::AccessibleDescriptionRole, SizeHintRole = Qt::SizeHintRole, InitialSortOrderRole = Qt::InitialSortOrderRole, DisplayPropertyRole = Qt::DisplayPropertyRole, DecorationPropertyRole = Qt::DecorationPropertyRole, ToolTipPropertyRole = Qt::ToolTipPropertyRole, StatusTipPropertyRole = Qt::StatusTipPropertyRole, WhatsThisPropertyRole = Qt::WhatsThisPropertyRole, UserRole = Qt::UserRole}; +enum ShortcutContext{ + WidgetShortcut = Qt::WidgetShortcut, WindowShortcut = Qt::WindowShortcut, ApplicationShortcut = Qt::ApplicationShortcut, WidgetWithChildrenShortcut = Qt::WidgetWithChildrenShortcut}; +enum MaskMode{ + MaskInColor = Qt::MaskInColor, MaskOutColor = Qt::MaskOutColor}; +enum WindowType{ + Widget = Qt::Widget, Window = Qt::Window, Dialog = Qt::Dialog, Sheet = Qt::Sheet, Drawer = Qt::Drawer, Popup = Qt::Popup, Tool = Qt::Tool, ToolTip = Qt::ToolTip, SplashScreen = Qt::SplashScreen, Desktop = Qt::Desktop, SubWindow = Qt::SubWindow, WindowType_Mask = Qt::WindowType_Mask, MSWindowsFixedSizeDialogHint = Qt::MSWindowsFixedSizeDialogHint, MSWindowsOwnDC = Qt::MSWindowsOwnDC, X11BypassWindowManagerHint = Qt::X11BypassWindowManagerHint, FramelessWindowHint = Qt::FramelessWindowHint, WindowTitleHint = Qt::WindowTitleHint, WindowSystemMenuHint = Qt::WindowSystemMenuHint, WindowMinimizeButtonHint = Qt::WindowMinimizeButtonHint, WindowMaximizeButtonHint = Qt::WindowMaximizeButtonHint, WindowMinMaxButtonsHint = Qt::WindowMinMaxButtonsHint, WindowContextHelpButtonHint = Qt::WindowContextHelpButtonHint, WindowShadeButtonHint = Qt::WindowShadeButtonHint, WindowStaysOnTopHint = Qt::WindowStaysOnTopHint, WindowTransparentForInput = Qt::WindowTransparentForInput, WindowOverridesSystemGestures = Qt::WindowOverridesSystemGestures, WindowDoesNotAcceptFocus = Qt::WindowDoesNotAcceptFocus, CustomizeWindowHint = Qt::CustomizeWindowHint, WindowStaysOnBottomHint = Qt::WindowStaysOnBottomHint, WindowCloseButtonHint = Qt::WindowCloseButtonHint, MacWindowToolBarButtonHint = Qt::MacWindowToolBarButtonHint, BypassGraphicsProxyWidget = Qt::BypassGraphicsProxyWidget, WindowOkButtonHint = Qt::WindowOkButtonHint, WindowCancelButtonHint = Qt::WindowCancelButtonHint, NoDropShadowWindowHint = Qt::NoDropShadowWindowHint, WindowFullscreenButtonHint = Qt::WindowFullscreenButtonHint}; +enum DockWidgetArea{ + LeftDockWidgetArea = Qt::LeftDockWidgetArea, RightDockWidgetArea = Qt::RightDockWidgetArea, TopDockWidgetArea = Qt::TopDockWidgetArea, BottomDockWidgetArea = Qt::BottomDockWidgetArea, DockWidgetArea_Mask = Qt::DockWidgetArea_Mask, AllDockWidgetAreas = Qt::AllDockWidgetAreas, NoDockWidgetArea = Qt::NoDockWidgetArea}; +enum ContextMenuPolicy{ + NoContextMenu = Qt::NoContextMenu, DefaultContextMenu = Qt::DefaultContextMenu, ActionsContextMenu = Qt::ActionsContextMenu, CustomContextMenu = Qt::CustomContextMenu, PreventContextMenu = Qt::PreventContextMenu}; +Q_DECLARE_FLAGS(MouseButtons, MouseButton) +Q_DECLARE_FLAGS(Orientations, Orientation) +Q_DECLARE_FLAGS(GestureFlags, GestureFlag) +Q_DECLARE_FLAGS(ToolBarAreas, ToolBarArea) +Q_DECLARE_FLAGS(MatchFlags, MatchFlag) +Q_DECLARE_FLAGS(ItemFlags, ItemFlag) +Q_DECLARE_FLAGS(DropActions, DropAction) +Q_DECLARE_FLAGS(TouchPointStates, TouchPointState) +Q_DECLARE_FLAGS(InputMethodHints, InputMethodHint) +Q_DECLARE_FLAGS(KeyboardModifiers, KeyboardModifier) +Q_DECLARE_FLAGS(ImageConversionFlags, ImageConversionFlag) +Q_DECLARE_FLAGS(TextInteractionFlags, TextInteractionFlag) +Q_DECLARE_FLAGS(Alignment, AlignmentFlag) +Q_DECLARE_FLAGS(WindowStates, WindowState) +Q_DECLARE_FLAGS(WindowFlags, WindowType) +Q_DECLARE_FLAGS(DockWidgetAreas, DockWidgetArea) +public slots: +}; + + diff --git a/generated_cpp_50/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin_init.cpp b/generated_cpp_50/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin_init.cpp new file mode 100644 index 00000000..0b54827d --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin_init.cpp @@ -0,0 +1,21 @@ +#include +#include "com_trolltech_qt_core_builtin0.h" + +void PythonQt_init_QtCoreBuiltin(PyObject* module) { +PythonQt::priv()->registerCPPClass("QBitArray", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_InplaceAnd|PythonQt::Type_InplaceOr|PythonQt::Type_Xor|PythonQt::Type_And|PythonQt::Type_Or|PythonQt::Type_RichCompare|PythonQt::Type_Invert|PythonQt::Type_InplaceXor|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QByteArray", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_Add|PythonQt::Type_RichCompare|PythonQt::Type_InplaceAdd|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QDate", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QDateTime", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QLocale", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QPoint", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_Subtract|PythonQt::Type_Divide|PythonQt::Type_Add|PythonQt::Type_Multiply|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_InplaceDivide|PythonQt::Type_RichCompare|PythonQt::Type_InplaceAdd|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QPointF", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_Subtract|PythonQt::Type_Divide|PythonQt::Type_Add|PythonQt::Type_Multiply|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_InplaceDivide|PythonQt::Type_RichCompare|PythonQt::Type_InplaceAdd|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QRect", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_InplaceAnd|PythonQt::Type_InplaceOr|PythonQt::Type_And|PythonQt::Type_Or|PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QRectF", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_InplaceAnd|PythonQt::Type_InplaceOr|PythonQt::Type_And|PythonQt::Type_Or|PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QRegExp", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QSize", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_Subtract|PythonQt::Type_Divide|PythonQt::Type_Add|PythonQt::Type_Multiply|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_InplaceDivide|PythonQt::Type_RichCompare|PythonQt::Type_InplaceAdd|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QSizeF", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_Subtract|PythonQt::Type_Divide|PythonQt::Type_Add|PythonQt::Type_Multiply|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_InplaceDivide|PythonQt::Type_RichCompare|PythonQt::Type_InplaceAdd|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QTime", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QUrl", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("Qt", "", "QtCore", PythonQtCreateObject, NULL, module, 0); + +} diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui.pri b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui.pri new file mode 100644 index 00000000..980436d1 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui.pri @@ -0,0 +1,24 @@ +HEADERS += \ + $$PWD/com_trolltech_qt_gui0.h \ + $$PWD/com_trolltech_qt_gui1.h \ + $$PWD/com_trolltech_qt_gui2.h \ + $$PWD/com_trolltech_qt_gui3.h \ + $$PWD/com_trolltech_qt_gui4.h \ + $$PWD/com_trolltech_qt_gui5.h \ + $$PWD/com_trolltech_qt_gui6.h \ + $$PWD/com_trolltech_qt_gui7.h \ + $$PWD/com_trolltech_qt_gui8.h \ + $$PWD/com_trolltech_qt_gui9.h \ + +SOURCES += \ + $$PWD/com_trolltech_qt_gui0.cpp \ + $$PWD/com_trolltech_qt_gui1.cpp \ + $$PWD/com_trolltech_qt_gui2.cpp \ + $$PWD/com_trolltech_qt_gui3.cpp \ + $$PWD/com_trolltech_qt_gui4.cpp \ + $$PWD/com_trolltech_qt_gui5.cpp \ + $$PWD/com_trolltech_qt_gui6.cpp \ + $$PWD/com_trolltech_qt_gui7.cpp \ + $$PWD/com_trolltech_qt_gui8.cpp \ + $$PWD/com_trolltech_qt_gui9.cpp \ + $$PWD/com_trolltech_qt_gui_init.cpp diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui0.cpp b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui0.cpp new file mode 100644 index 00000000..24235915 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui0.cpp @@ -0,0 +1,21662 @@ +#include "com_trolltech_qt_gui0.h" +#include +#include +#include + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QAbstractButton::~PythonQtShell_QAbstractButton() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QAbstractButton::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::actionEvent(arg__1); +} +void PythonQtShell_QAbstractButton::changeEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::changeEvent(e); +} +void PythonQtShell_QAbstractButton::checkStateSet() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "checkStateSet"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::checkStateSet(); +} +void PythonQtShell_QAbstractButton::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::childEvent(arg__1); +} +void PythonQtShell_QAbstractButton::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::closeEvent(arg__1); +} +void PythonQtShell_QAbstractButton::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::contextMenuEvent(arg__1); +} +void PythonQtShell_QAbstractButton::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::customEvent(arg__1); +} +int PythonQtShell_QAbstractButton::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractButton::devType(); +} +void PythonQtShell_QAbstractButton::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::dragEnterEvent(arg__1); +} +void PythonQtShell_QAbstractButton::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::dragLeaveEvent(arg__1); +} +void PythonQtShell_QAbstractButton::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::dragMoveEvent(arg__1); +} +void PythonQtShell_QAbstractButton::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::dropEvent(arg__1); +} +void PythonQtShell_QAbstractButton::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::enterEvent(arg__1); +} +bool PythonQtShell_QAbstractButton::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractButton::event(e); +} +bool PythonQtShell_QAbstractButton::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractButton::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QAbstractButton::focusInEvent(QFocusEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::focusInEvent(e); +} +bool PythonQtShell_QAbstractButton::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractButton::focusNextPrevChild(next); +} +void PythonQtShell_QAbstractButton::focusOutEvent(QFocusEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::focusOutEvent(e); +} +bool PythonQtShell_QAbstractButton::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractButton::hasHeightForWidth(); +} +int PythonQtShell_QAbstractButton::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractButton::heightForWidth(arg__1); +} +void PythonQtShell_QAbstractButton::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::hideEvent(arg__1); +} +bool PythonQtShell_QAbstractButton::hitButton(const QPoint& pos) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitButton"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPoint&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hitButton", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractButton::hitButton(pos); +} +void PythonQtShell_QAbstractButton::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::initPainter(painter); +} +void PythonQtShell_QAbstractButton::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QAbstractButton::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractButton::inputMethodQuery(arg__1); +} +void PythonQtShell_QAbstractButton::keyPressEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::keyPressEvent(e); +} +void PythonQtShell_QAbstractButton::keyReleaseEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::keyReleaseEvent(e); +} +void PythonQtShell_QAbstractButton::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::leaveEvent(arg__1); +} +int PythonQtShell_QAbstractButton::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractButton::metric(arg__1); +} +QSize PythonQtShell_QAbstractButton::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractButton::minimumSizeHint(); +} +void PythonQtShell_QAbstractButton::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QAbstractButton::mouseMoveEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::mouseMoveEvent(e); +} +void PythonQtShell_QAbstractButton::mousePressEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::mousePressEvent(e); +} +void PythonQtShell_QAbstractButton::mouseReleaseEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::mouseReleaseEvent(e); +} +void PythonQtShell_QAbstractButton::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::moveEvent(arg__1); +} +bool PythonQtShell_QAbstractButton::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractButton::nativeEvent(eventType, message, result); +} +void PythonQtShell_QAbstractButton::nextCheckState() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextCheckState"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::nextCheckState(); +} +QPaintEngine* PythonQtShell_QAbstractButton::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractButton::paintEngine(); +} +void PythonQtShell_QAbstractButton::paintEvent(QPaintEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +QPaintDevice* PythonQtShell_QAbstractButton::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractButton::redirected(offset); +} +void PythonQtShell_QAbstractButton::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QAbstractButton::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractButton::sharedPainter(); +} +void PythonQtShell_QAbstractButton::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::showEvent(arg__1); +} +QSize PythonQtShell_QAbstractButton::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractButton::sizeHint(); +} +void PythonQtShell_QAbstractButton::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::tabletEvent(arg__1); +} +void PythonQtShell_QAbstractButton::timerEvent(QTimerEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::timerEvent(e); +} +void PythonQtShell_QAbstractButton::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractButton::wheelEvent(arg__1); +} +QAbstractButton* PythonQtWrapper_QAbstractButton::new_QAbstractButton(QWidget* parent) +{ +return new PythonQtShell_QAbstractButton(parent); } + +bool PythonQtWrapper_QAbstractButton::autoExclusive(QAbstractButton* theWrappedObject) const +{ + return ( theWrappedObject->autoExclusive()); +} + +bool PythonQtWrapper_QAbstractButton::autoRepeat(QAbstractButton* theWrappedObject) const +{ + return ( theWrappedObject->autoRepeat()); +} + +int PythonQtWrapper_QAbstractButton::autoRepeatDelay(QAbstractButton* theWrappedObject) const +{ + return ( theWrappedObject->autoRepeatDelay()); +} + +int PythonQtWrapper_QAbstractButton::autoRepeatInterval(QAbstractButton* theWrappedObject) const +{ + return ( theWrappedObject->autoRepeatInterval()); +} + +void PythonQtWrapper_QAbstractButton::changeEvent(QAbstractButton* theWrappedObject, QEvent* e) +{ + ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_changeEvent(e)); +} + +void PythonQtWrapper_QAbstractButton::checkStateSet(QAbstractButton* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_checkStateSet()); +} + +bool PythonQtWrapper_QAbstractButton::event(QAbstractButton* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_event(e)); +} + +void PythonQtWrapper_QAbstractButton::focusInEvent(QAbstractButton* theWrappedObject, QFocusEvent* e) +{ + ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_focusInEvent(e)); +} + +void PythonQtWrapper_QAbstractButton::focusOutEvent(QAbstractButton* theWrappedObject, QFocusEvent* e) +{ + ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_focusOutEvent(e)); +} + +QButtonGroup* PythonQtWrapper_QAbstractButton::group(QAbstractButton* theWrappedObject) const +{ + return ( theWrappedObject->group()); +} + +bool PythonQtWrapper_QAbstractButton::hitButton(QAbstractButton* theWrappedObject, const QPoint& pos) const +{ + return ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_hitButton(pos)); +} + +QIcon PythonQtWrapper_QAbstractButton::icon(QAbstractButton* theWrappedObject) const +{ + return ( theWrappedObject->icon()); +} + +QSize PythonQtWrapper_QAbstractButton::iconSize(QAbstractButton* theWrappedObject) const +{ + return ( theWrappedObject->iconSize()); +} + +bool PythonQtWrapper_QAbstractButton::isCheckable(QAbstractButton* theWrappedObject) const +{ + return ( theWrappedObject->isCheckable()); +} + +bool PythonQtWrapper_QAbstractButton::isChecked(QAbstractButton* theWrappedObject) const +{ + return ( theWrappedObject->isChecked()); +} + +bool PythonQtWrapper_QAbstractButton::isDown(QAbstractButton* theWrappedObject) const +{ + return ( theWrappedObject->isDown()); +} + +void PythonQtWrapper_QAbstractButton::keyPressEvent(QAbstractButton* theWrappedObject, QKeyEvent* e) +{ + ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_keyPressEvent(e)); +} + +void PythonQtWrapper_QAbstractButton::keyReleaseEvent(QAbstractButton* theWrappedObject, QKeyEvent* e) +{ + ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_keyReleaseEvent(e)); +} + +void PythonQtWrapper_QAbstractButton::mouseMoveEvent(QAbstractButton* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_mouseMoveEvent(e)); +} + +void PythonQtWrapper_QAbstractButton::mousePressEvent(QAbstractButton* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_mousePressEvent(e)); +} + +void PythonQtWrapper_QAbstractButton::mouseReleaseEvent(QAbstractButton* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_mouseReleaseEvent(e)); +} + +void PythonQtWrapper_QAbstractButton::nextCheckState(QAbstractButton* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_nextCheckState()); +} + +void PythonQtWrapper_QAbstractButton::setAutoExclusive(QAbstractButton* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setAutoExclusive(arg__1)); +} + +void PythonQtWrapper_QAbstractButton::setAutoRepeat(QAbstractButton* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setAutoRepeat(arg__1)); +} + +void PythonQtWrapper_QAbstractButton::setAutoRepeatDelay(QAbstractButton* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setAutoRepeatDelay(arg__1)); +} + +void PythonQtWrapper_QAbstractButton::setAutoRepeatInterval(QAbstractButton* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setAutoRepeatInterval(arg__1)); +} + +void PythonQtWrapper_QAbstractButton::setCheckable(QAbstractButton* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setCheckable(arg__1)); +} + +void PythonQtWrapper_QAbstractButton::setDown(QAbstractButton* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setDown(arg__1)); +} + +void PythonQtWrapper_QAbstractButton::setIcon(QAbstractButton* theWrappedObject, const QIcon& icon) +{ + ( theWrappedObject->setIcon(icon)); +} + +void PythonQtWrapper_QAbstractButton::setShortcut(QAbstractButton* theWrappedObject, const QKeySequence& key) +{ + ( theWrappedObject->setShortcut(key)); +} + +void PythonQtWrapper_QAbstractButton::setText(QAbstractButton* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setText(text)); +} + +QKeySequence PythonQtWrapper_QAbstractButton::shortcut(QAbstractButton* theWrappedObject) const +{ + return ( theWrappedObject->shortcut()); +} + +QString PythonQtWrapper_QAbstractButton::text(QAbstractButton* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + +void PythonQtWrapper_QAbstractButton::timerEvent(QAbstractButton* theWrappedObject, QTimerEvent* e) +{ + ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_timerEvent(e)); +} + + + +PythonQtShell_QAbstractGraphicsShapeItem::~PythonQtShell_QAbstractGraphicsShapeItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QAbstractGraphicsShapeItem::advance(int phase) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "advance"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&phase}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::advance(phase); +} +QRectF PythonQtShell_QAbstractGraphicsShapeItem::boundingRect() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRectF"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QRectF returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("boundingRect", methodInfo, result); + } else { + returnValue = *((QRectF*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRectF(); +} +bool PythonQtShell_QAbstractGraphicsShapeItem::collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&other, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithItem", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractGraphicsShapeItem::collidesWithItem(other, mode); +} +bool PythonQtShell_QAbstractGraphicsShapeItem::collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithPath"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&path, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithPath", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractGraphicsShapeItem::collidesWithPath(path, mode); +} +bool PythonQtShell_QAbstractGraphicsShapeItem::contains(const QPointF& point) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contains"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPointF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&point}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("contains", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractGraphicsShapeItem::contains(point); +} +void PythonQtShell_QAbstractGraphicsShapeItem::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::contextMenuEvent(event); +} +void PythonQtShell_QAbstractGraphicsShapeItem::dragEnterEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::dragEnterEvent(event); +} +void PythonQtShell_QAbstractGraphicsShapeItem::dragLeaveEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::dragLeaveEvent(event); +} +void PythonQtShell_QAbstractGraphicsShapeItem::dragMoveEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::dragMoveEvent(event); +} +void PythonQtShell_QAbstractGraphicsShapeItem::dropEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::dropEvent(event); +} +QVariant PythonQtShell_QAbstractGraphicsShapeItem::extension(const QVariant& variant) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "extension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&variant}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("extension", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractGraphicsShapeItem::extension(variant); +} +void PythonQtShell_QAbstractGraphicsShapeItem::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::focusInEvent(event); +} +void PythonQtShell_QAbstractGraphicsShapeItem::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::focusOutEvent(event); +} +void PythonQtShell_QAbstractGraphicsShapeItem::hoverEnterEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::hoverEnterEvent(event); +} +void PythonQtShell_QAbstractGraphicsShapeItem::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::hoverLeaveEvent(event); +} +void PythonQtShell_QAbstractGraphicsShapeItem::hoverMoveEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::hoverMoveEvent(event); +} +void PythonQtShell_QAbstractGraphicsShapeItem::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::inputMethodEvent(event); +} +QVariant PythonQtShell_QAbstractGraphicsShapeItem::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractGraphicsShapeItem::inputMethodQuery(query); +} +bool PythonQtShell_QAbstractGraphicsShapeItem::isObscuredBy(const QGraphicsItem* item) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&item}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractGraphicsShapeItem::isObscuredBy(item); +} +QVariant PythonQtShell_QAbstractGraphicsShapeItem::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemChange"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "QGraphicsItem::GraphicsItemChange" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&change, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemChange", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractGraphicsShapeItem::itemChange(change, value); +} +void PythonQtShell_QAbstractGraphicsShapeItem::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::keyPressEvent(event); +} +void PythonQtShell_QAbstractGraphicsShapeItem::keyReleaseEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::keyReleaseEvent(event); +} +void PythonQtShell_QAbstractGraphicsShapeItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::mouseDoubleClickEvent(event); +} +void PythonQtShell_QAbstractGraphicsShapeItem::mouseMoveEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::mouseMoveEvent(event); +} +void PythonQtShell_QAbstractGraphicsShapeItem::mousePressEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::mousePressEvent(event); +} +void PythonQtShell_QAbstractGraphicsShapeItem::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::mouseReleaseEvent(event); +} +QPainterPath PythonQtShell_QAbstractGraphicsShapeItem::opaqueArea() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainterPath"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainterPath returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); + } else { + returnValue = *((QPainterPath*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractGraphicsShapeItem::opaqueArea(); +} +void PythonQtShell_QAbstractGraphicsShapeItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +bool PythonQtShell_QAbstractGraphicsShapeItem::sceneEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sceneEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractGraphicsShapeItem::sceneEvent(event); +} +bool PythonQtShell_QAbstractGraphicsShapeItem::sceneEventFilter(QGraphicsItem* watched, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&watched, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sceneEventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractGraphicsShapeItem::sceneEventFilter(watched, event); +} +void PythonQtShell_QAbstractGraphicsShapeItem::setExtension(QGraphicsItem::Extension extension, const QVariant& variant) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setExtension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsItem::Extension" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&extension, (void*)&variant}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::setExtension(extension, variant); +} +QPainterPath PythonQtShell_QAbstractGraphicsShapeItem::shape() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "shape"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainterPath"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainterPath returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("shape", methodInfo, result); + } else { + returnValue = *((QPainterPath*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractGraphicsShapeItem::shape(); +} +bool PythonQtShell_QAbstractGraphicsShapeItem::supportsExtension(QGraphicsItem::Extension extension) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportsExtension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QGraphicsItem::Extension"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&extension}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportsExtension", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractGraphicsShapeItem::supportsExtension(extension); +} +int PythonQtShell_QAbstractGraphicsShapeItem::type() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractGraphicsShapeItem::type(); +} +void PythonQtShell_QAbstractGraphicsShapeItem::wheelEvent(QGraphicsSceneWheelEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractGraphicsShapeItem::wheelEvent(event); +} +QAbstractGraphicsShapeItem* PythonQtWrapper_QAbstractGraphicsShapeItem::new_QAbstractGraphicsShapeItem(QGraphicsItem* parent) +{ +return new PythonQtShell_QAbstractGraphicsShapeItem(parent); } + +QBrush PythonQtWrapper_QAbstractGraphicsShapeItem::brush(QAbstractGraphicsShapeItem* theWrappedObject) const +{ + return ( theWrappedObject->brush()); +} + +bool PythonQtWrapper_QAbstractGraphicsShapeItem::isObscuredBy(QAbstractGraphicsShapeItem* theWrappedObject, const QGraphicsItem* item) const +{ + return ( ((PythonQtPublicPromoter_QAbstractGraphicsShapeItem*)theWrappedObject)->promoted_isObscuredBy(item)); +} + +QPainterPath PythonQtWrapper_QAbstractGraphicsShapeItem::opaqueArea(QAbstractGraphicsShapeItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QAbstractGraphicsShapeItem*)theWrappedObject)->promoted_opaqueArea()); +} + +QPen PythonQtWrapper_QAbstractGraphicsShapeItem::pen(QAbstractGraphicsShapeItem* theWrappedObject) const +{ + return ( theWrappedObject->pen()); +} + +void PythonQtWrapper_QAbstractGraphicsShapeItem::setBrush(QAbstractGraphicsShapeItem* theWrappedObject, const QBrush& brush) +{ + ( theWrappedObject->setBrush(brush)); +} + +void PythonQtWrapper_QAbstractGraphicsShapeItem::setPen(QAbstractGraphicsShapeItem* theWrappedObject, const QPen& pen) +{ + ( theWrappedObject->setPen(pen)); +} + + + +PythonQtShell_QAbstractItemDelegate::~PythonQtShell_QAbstractItemDelegate() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QAbstractItemDelegate::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemDelegate::childEvent(arg__1); +} +QWidget* PythonQtShell_QAbstractItemDelegate::createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createEditor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QWidget*" , "QWidget*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QWidget* returnValue; + void* args[4] = {NULL, (void*)&parent, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createEditor", methodInfo, result); + } else { + returnValue = *((QWidget**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemDelegate::createEditor(parent, option, index); +} +void PythonQtShell_QAbstractItemDelegate::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemDelegate::customEvent(arg__1); +} +void PythonQtShell_QAbstractItemDelegate::destroyEditor(QWidget* editor, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "destroyEditor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&editor, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemDelegate::destroyEditor(editor, index); +} +bool PythonQtShell_QAbstractItemDelegate::editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*" , "QAbstractItemModel*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)&event, (void*)&model, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("editorEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemDelegate::editorEvent(event, model, option, index); +} +bool PythonQtShell_QAbstractItemDelegate::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemDelegate::event(arg__1); +} +bool PythonQtShell_QAbstractItemDelegate::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemDelegate::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QAbstractItemDelegate::helpEvent(QHelpEvent* event, QAbstractItemView* view, const QStyleOptionViewItem& option, const QModelIndex& index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "helpEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QHelpEvent*" , "QAbstractItemView*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)&event, (void*)&view, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("helpEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemDelegate::helpEvent(event, view, option, index); +} +void PythonQtShell_QAbstractItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +QVector PythonQtShell_QAbstractItemDelegate::paintingRoles() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintingRoles"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVector"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QVector returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintingRoles", methodInfo, result); + } else { + returnValue = *((QVector*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemDelegate::paintingRoles(); +} +void PythonQtShell_QAbstractItemDelegate::setEditorData(QWidget* editor, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setEditorData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&editor, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemDelegate::setEditorData(editor, index); +} +void PythonQtShell_QAbstractItemDelegate::setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModelData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemModel*" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&editor, (void*)&model, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemDelegate::setModelData(editor, model, index); +} +QSize PythonQtShell_QAbstractItemDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QSize returnValue; + void* args[3] = {NULL, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSize(); +} +void PythonQtShell_QAbstractItemDelegate::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemDelegate::timerEvent(arg__1); +} +void PythonQtShell_QAbstractItemDelegate::updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&editor, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemDelegate::updateEditorGeometry(editor, option, index); +} +QAbstractItemDelegate* PythonQtWrapper_QAbstractItemDelegate::new_QAbstractItemDelegate(QObject* parent) +{ +return new PythonQtShell_QAbstractItemDelegate(parent); } + +QWidget* PythonQtWrapper_QAbstractItemDelegate::createEditor(QAbstractItemDelegate* theWrappedObject, QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemDelegate*)theWrappedObject)->promoted_createEditor(parent, option, index)); +} + +void PythonQtWrapper_QAbstractItemDelegate::destroyEditor(QAbstractItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const +{ + ( ((PythonQtPublicPromoter_QAbstractItemDelegate*)theWrappedObject)->promoted_destroyEditor(editor, index)); +} + +bool PythonQtWrapper_QAbstractItemDelegate::editorEvent(QAbstractItemDelegate* theWrappedObject, QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) +{ + return ( ((PythonQtPublicPromoter_QAbstractItemDelegate*)theWrappedObject)->promoted_editorEvent(event, model, option, index)); +} + +bool PythonQtWrapper_QAbstractItemDelegate::helpEvent(QAbstractItemDelegate* theWrappedObject, QHelpEvent* event, QAbstractItemView* view, const QStyleOptionViewItem& option, const QModelIndex& index) +{ + return ( ((PythonQtPublicPromoter_QAbstractItemDelegate*)theWrappedObject)->promoted_helpEvent(event, view, option, index)); +} + +QVector PythonQtWrapper_QAbstractItemDelegate::paintingRoles(QAbstractItemDelegate* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemDelegate*)theWrappedObject)->promoted_paintingRoles()); +} + +void PythonQtWrapper_QAbstractItemDelegate::setEditorData(QAbstractItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const +{ + ( ((PythonQtPublicPromoter_QAbstractItemDelegate*)theWrappedObject)->promoted_setEditorData(editor, index)); +} + +void PythonQtWrapper_QAbstractItemDelegate::setModelData(QAbstractItemDelegate* theWrappedObject, QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const +{ + ( ((PythonQtPublicPromoter_QAbstractItemDelegate*)theWrappedObject)->promoted_setModelData(editor, model, index)); +} + +void PythonQtWrapper_QAbstractItemDelegate::updateEditorGeometry(QAbstractItemDelegate* theWrappedObject, QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ + ( ((PythonQtPublicPromoter_QAbstractItemDelegate*)theWrappedObject)->promoted_updateEditorGeometry(editor, option, index)); +} + + + +PythonQtShell_QAbstractItemView::~PythonQtShell_QAbstractItemView() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QAbstractItemView::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::actionEvent(arg__1); +} +void PythonQtShell_QAbstractItemView::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::changeEvent(arg__1); +} +void PythonQtShell_QAbstractItemView::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::childEvent(arg__1); +} +void PythonQtShell_QAbstractItemView::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&editor, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::closeEditor(editor, hint); +} +void PythonQtShell_QAbstractItemView::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::closeEvent(arg__1); +} +void PythonQtShell_QAbstractItemView::commitData(QWidget* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::commitData(editor); +} +void PythonQtShell_QAbstractItemView::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::contextMenuEvent(arg__1); +} +void PythonQtShell_QAbstractItemView::currentChanged(const QModelIndex& current, const QModelIndex& previous) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)¤t, (void*)&previous}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::currentChanged(current, previous); +} +void PythonQtShell_QAbstractItemView::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::customEvent(arg__1); +} +void PythonQtShell_QAbstractItemView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&" , "const QVector&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&topLeft, (void*)&bottomRight, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::dataChanged(topLeft, bottomRight, roles); +} +int PythonQtShell_QAbstractItemView::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::devType(); +} +void PythonQtShell_QAbstractItemView::doItemsLayout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::doItemsLayout(); +} +void PythonQtShell_QAbstractItemView::dragEnterEvent(QDragEnterEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::dragEnterEvent(event); +} +void PythonQtShell_QAbstractItemView::dragLeaveEvent(QDragLeaveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::dragLeaveEvent(event); +} +void PythonQtShell_QAbstractItemView::dragMoveEvent(QDragMoveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::dragMoveEvent(event); +} +void PythonQtShell_QAbstractItemView::dropEvent(QDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::dropEvent(event); +} +bool PythonQtShell_QAbstractItemView::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::edit(index, trigger, event); +} +void PythonQtShell_QAbstractItemView::editorDestroyed(QObject* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QObject*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::editorDestroyed(editor); +} +void PythonQtShell_QAbstractItemView::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::enterEvent(arg__1); +} +bool PythonQtShell_QAbstractItemView::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::event(event); +} +bool PythonQtShell_QAbstractItemView::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QAbstractItemView::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::focusInEvent(event); +} +bool PythonQtShell_QAbstractItemView::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::focusNextPrevChild(next); +} +void PythonQtShell_QAbstractItemView::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::focusOutEvent(event); +} +bool PythonQtShell_QAbstractItemView::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::hasHeightForWidth(); +} +int PythonQtShell_QAbstractItemView::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::heightForWidth(arg__1); +} +void PythonQtShell_QAbstractItemView::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::hideEvent(arg__1); +} +int PythonQtShell_QAbstractItemView::horizontalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +void PythonQtShell_QAbstractItemView::horizontalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::horizontalScrollbarAction(action); +} +void PythonQtShell_QAbstractItemView::horizontalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::horizontalScrollbarValueChanged(value); +} +QModelIndex PythonQtShell_QAbstractItemView::indexAt(const QPoint& point) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&point}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QModelIndex(); +} +void PythonQtShell_QAbstractItemView::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::initPainter(painter); +} +void PythonQtShell_QAbstractItemView::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::inputMethodEvent(event); +} +QVariant PythonQtShell_QAbstractItemView::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::inputMethodQuery(query); +} +bool PythonQtShell_QAbstractItemView::isIndexHidden(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +void PythonQtShell_QAbstractItemView::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::keyPressEvent(event); +} +void PythonQtShell_QAbstractItemView::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::keyReleaseEvent(arg__1); +} +void PythonQtShell_QAbstractItemView::keyboardSearch(const QString& search) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&search}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::keyboardSearch(search); +} +void PythonQtShell_QAbstractItemView::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::leaveEvent(arg__1); +} +int PythonQtShell_QAbstractItemView::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::metric(arg__1); +} +void PythonQtShell_QAbstractItemView::mouseDoubleClickEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::mouseDoubleClickEvent(event); +} +void PythonQtShell_QAbstractItemView::mouseMoveEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::mouseMoveEvent(event); +} +void PythonQtShell_QAbstractItemView::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::mousePressEvent(event); +} +void PythonQtShell_QAbstractItemView::mouseReleaseEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::mouseReleaseEvent(event); +} +QModelIndex PythonQtShell_QAbstractItemView::moveCursor(QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveCursor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "QAbstractItemView::CursorAction" , "Qt::KeyboardModifiers"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QModelIndex returnValue; + void* args[3] = {NULL, (void*)&cursorAction, (void*)&modifiers}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("moveCursor", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QModelIndex(); +} +void PythonQtShell_QAbstractItemView::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::moveEvent(arg__1); +} +bool PythonQtShell_QAbstractItemView::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QAbstractItemView::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::paintEngine(); +} +void PythonQtShell_QAbstractItemView::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QAbstractItemView::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::redirected(offset); +} +void PythonQtShell_QAbstractItemView::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::reset(); +} +void PythonQtShell_QAbstractItemView::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::resizeEvent(event); +} +void PythonQtShell_QAbstractItemView::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::rowsAboutToBeRemoved(parent, start, end); +} +void PythonQtShell_QAbstractItemView::rowsInserted(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::rowsInserted(parent, start, end); +} +void PythonQtShell_QAbstractItemView::scrollContentsBy(int dx, int dy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&dx, (void*)&dy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::scrollContentsBy(dx, dy); +} +void PythonQtShell_QAbstractItemView::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&index, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractItemView::selectAll() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::selectAll(); +} +QList PythonQtShell_QAbstractItemView::selectedIndexes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::selectedIndexes(); +} +void PythonQtShell_QAbstractItemView::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::selectionChanged(selected, deselected); +} +QItemSelectionModel::SelectionFlags PythonQtShell_QAbstractItemView::selectionCommand(const QModelIndex& index, const QEvent* event) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QItemSelectionModel::SelectionFlags returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); + } else { + returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::selectionCommand(index, event); +} +void PythonQtShell_QAbstractItemView::setModel(QAbstractItemModel* model) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractItemModel*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&model}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::setModel(model); +} +void PythonQtShell_QAbstractItemView::setRootIndex(const QModelIndex& index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::setRootIndex(index); +} +void PythonQtShell_QAbstractItemView::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&rect, (void*)&command}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractItemView::setSelectionModel(QItemSelectionModel* selectionModel) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QItemSelectionModel*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&selectionModel}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::setSelectionModel(selectionModel); +} +void PythonQtShell_QAbstractItemView::setupViewport(QWidget* viewport) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&viewport}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::setupViewport(viewport); +} +QPainter* PythonQtShell_QAbstractItemView::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::sharedPainter(); +} +void PythonQtShell_QAbstractItemView::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::showEvent(arg__1); +} +int PythonQtShell_QAbstractItemView::sizeHintForColumn(int column) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&column}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::sizeHintForColumn(column); +} +int PythonQtShell_QAbstractItemView::sizeHintForRow(int row) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&row}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::sizeHintForRow(row); +} +void PythonQtShell_QAbstractItemView::startDrag(Qt::DropActions supportedActions) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&supportedActions}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::startDrag(supportedActions); +} +void PythonQtShell_QAbstractItemView::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::tabletEvent(arg__1); +} +void PythonQtShell_QAbstractItemView::timerEvent(QTimerEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::timerEvent(event); +} +void PythonQtShell_QAbstractItemView::updateEditorData() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::updateEditorData(); +} +void PythonQtShell_QAbstractItemView::updateEditorGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::updateEditorGeometries(); +} +void PythonQtShell_QAbstractItemView::updateGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::updateGeometries(); +} +int PythonQtShell_QAbstractItemView::verticalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +void PythonQtShell_QAbstractItemView::verticalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::verticalScrollbarAction(action); +} +void PythonQtShell_QAbstractItemView::verticalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::verticalScrollbarValueChanged(value); +} +QStyleOptionViewItem PythonQtShell_QAbstractItemView::viewOptions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStyleOptionViewItem"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStyleOptionViewItem returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); + } else { + returnValue = *((QStyleOptionViewItem*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::viewOptions(); +} +bool PythonQtShell_QAbstractItemView::viewportEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::viewportEvent(event); +} +QSize PythonQtShell_QAbstractItemView::viewportSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractItemView::viewportSizeHint(); +} +QRect PythonQtShell_QAbstractItemView::visualRect(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRect returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRect(); +} +QRegion PythonQtShell_QAbstractItemView::visualRegionForSelection(const QItemSelection& selection) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRegion returnValue; + void* args[2] = {NULL, (void*)&selection}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); + } else { + returnValue = *((QRegion*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRegion(); +} +void PythonQtShell_QAbstractItemView::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractItemView::wheelEvent(arg__1); +} +QAbstractItemView* PythonQtWrapper_QAbstractItemView::new_QAbstractItemView(QWidget* parent) +{ +return new PythonQtShell_QAbstractItemView(parent); } + +bool PythonQtWrapper_QAbstractItemView::alternatingRowColors(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->alternatingRowColors()); +} + +int PythonQtWrapper_QAbstractItemView::autoScrollMargin(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->autoScrollMargin()); +} + +void PythonQtWrapper_QAbstractItemView::closeEditor(QAbstractItemView* theWrappedObject, QWidget* editor, QAbstractItemDelegate::EndEditHint hint) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_closeEditor(editor, hint)); +} + +void PythonQtWrapper_QAbstractItemView::closePersistentEditor(QAbstractItemView* theWrappedObject, const QModelIndex& index) +{ + ( theWrappedObject->closePersistentEditor(index)); +} + +void PythonQtWrapper_QAbstractItemView::commitData(QAbstractItemView* theWrappedObject, QWidget* editor) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_commitData(editor)); +} + +void PythonQtWrapper_QAbstractItemView::currentChanged(QAbstractItemView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_currentChanged(current, previous)); +} + +QModelIndex PythonQtWrapper_QAbstractItemView::currentIndex(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->currentIndex()); +} + +void PythonQtWrapper_QAbstractItemView::dataChanged(QAbstractItemView* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_dataChanged(topLeft, bottomRight, roles)); +} + +Qt::DropAction PythonQtWrapper_QAbstractItemView::defaultDropAction(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->defaultDropAction()); +} + +void PythonQtWrapper_QAbstractItemView::doItemsLayout(QAbstractItemView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_doItemsLayout()); +} + +QAbstractItemView::DragDropMode PythonQtWrapper_QAbstractItemView::dragDropMode(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->dragDropMode()); +} + +bool PythonQtWrapper_QAbstractItemView::dragDropOverwriteMode(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->dragDropOverwriteMode()); +} + +bool PythonQtWrapper_QAbstractItemView::dragEnabled(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->dragEnabled()); +} + +void PythonQtWrapper_QAbstractItemView::dragEnterEvent(QAbstractItemView* theWrappedObject, QDragEnterEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_dragEnterEvent(event)); +} + +void PythonQtWrapper_QAbstractItemView::dragLeaveEvent(QAbstractItemView* theWrappedObject, QDragLeaveEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_dragLeaveEvent(event)); +} + +void PythonQtWrapper_QAbstractItemView::dragMoveEvent(QAbstractItemView* theWrappedObject, QDragMoveEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_dragMoveEvent(event)); +} + +void PythonQtWrapper_QAbstractItemView::dropEvent(QAbstractItemView* theWrappedObject, QDropEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_dropEvent(event)); +} + +bool PythonQtWrapper_QAbstractItemView::edit(QAbstractItemView* theWrappedObject, const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_edit(index, trigger, event)); +} + +QAbstractItemView::EditTriggers PythonQtWrapper_QAbstractItemView::editTriggers(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->editTriggers()); +} + +void PythonQtWrapper_QAbstractItemView::editorDestroyed(QAbstractItemView* theWrappedObject, QObject* editor) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_editorDestroyed(editor)); +} + +bool PythonQtWrapper_QAbstractItemView::event(QAbstractItemView* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_event(event)); +} + +void PythonQtWrapper_QAbstractItemView::focusInEvent(QAbstractItemView* theWrappedObject, QFocusEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_focusInEvent(event)); +} + +bool PythonQtWrapper_QAbstractItemView::focusNextPrevChild(QAbstractItemView* theWrappedObject, bool next) +{ + return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_focusNextPrevChild(next)); +} + +void PythonQtWrapper_QAbstractItemView::focusOutEvent(QAbstractItemView* theWrappedObject, QFocusEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_focusOutEvent(event)); +} + +bool PythonQtWrapper_QAbstractItemView::hasAutoScroll(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->hasAutoScroll()); +} + +QAbstractItemView::ScrollMode PythonQtWrapper_QAbstractItemView::horizontalScrollMode(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->horizontalScrollMode()); +} + +void PythonQtWrapper_QAbstractItemView::horizontalScrollbarAction(QAbstractItemView* theWrappedObject, int action) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_horizontalScrollbarAction(action)); +} + +void PythonQtWrapper_QAbstractItemView::horizontalScrollbarValueChanged(QAbstractItemView* theWrappedObject, int value) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_horizontalScrollbarValueChanged(value)); +} + +QSize PythonQtWrapper_QAbstractItemView::iconSize(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->iconSize()); +} + +QWidget* PythonQtWrapper_QAbstractItemView::indexWidget(QAbstractItemView* theWrappedObject, const QModelIndex& index) const +{ + return ( theWrappedObject->indexWidget(index)); +} + +void PythonQtWrapper_QAbstractItemView::inputMethodEvent(QAbstractItemView* theWrappedObject, QInputMethodEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_inputMethodEvent(event)); +} + +QVariant PythonQtWrapper_QAbstractItemView::inputMethodQuery(QAbstractItemView* theWrappedObject, Qt::InputMethodQuery query) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_inputMethodQuery(query)); +} + +QAbstractItemDelegate* PythonQtWrapper_QAbstractItemView::itemDelegate(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->itemDelegate()); +} + +QAbstractItemDelegate* PythonQtWrapper_QAbstractItemView::itemDelegate(QAbstractItemView* theWrappedObject, const QModelIndex& index) const +{ + return ( theWrappedObject->itemDelegate(index)); +} + +QAbstractItemDelegate* PythonQtWrapper_QAbstractItemView::itemDelegateForColumn(QAbstractItemView* theWrappedObject, int column) const +{ + return ( theWrappedObject->itemDelegateForColumn(column)); +} + +QAbstractItemDelegate* PythonQtWrapper_QAbstractItemView::itemDelegateForRow(QAbstractItemView* theWrappedObject, int row) const +{ + return ( theWrappedObject->itemDelegateForRow(row)); +} + +void PythonQtWrapper_QAbstractItemView::keyPressEvent(QAbstractItemView* theWrappedObject, QKeyEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_keyPressEvent(event)); +} + +void PythonQtWrapper_QAbstractItemView::keyboardSearch(QAbstractItemView* theWrappedObject, const QString& search) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_keyboardSearch(search)); +} + +QAbstractItemModel* PythonQtWrapper_QAbstractItemView::model(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->model()); +} + +void PythonQtWrapper_QAbstractItemView::mouseDoubleClickEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_mouseDoubleClickEvent(event)); +} + +void PythonQtWrapper_QAbstractItemView::mouseMoveEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_mouseMoveEvent(event)); +} + +void PythonQtWrapper_QAbstractItemView::mousePressEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_mousePressEvent(event)); +} + +void PythonQtWrapper_QAbstractItemView::mouseReleaseEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_mouseReleaseEvent(event)); +} + +void PythonQtWrapper_QAbstractItemView::openPersistentEditor(QAbstractItemView* theWrappedObject, const QModelIndex& index) +{ + ( theWrappedObject->openPersistentEditor(index)); +} + +void PythonQtWrapper_QAbstractItemView::reset(QAbstractItemView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_reset()); +} + +void PythonQtWrapper_QAbstractItemView::resizeEvent(QAbstractItemView* theWrappedObject, QResizeEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_resizeEvent(event)); +} + +QModelIndex PythonQtWrapper_QAbstractItemView::rootIndex(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->rootIndex()); +} + +void PythonQtWrapper_QAbstractItemView::rowsAboutToBeRemoved(QAbstractItemView* theWrappedObject, const QModelIndex& parent, int start, int end) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_rowsAboutToBeRemoved(parent, start, end)); +} + +void PythonQtWrapper_QAbstractItemView::rowsInserted(QAbstractItemView* theWrappedObject, const QModelIndex& parent, int start, int end) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_rowsInserted(parent, start, end)); +} + +void PythonQtWrapper_QAbstractItemView::selectAll(QAbstractItemView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_selectAll()); +} + +QList PythonQtWrapper_QAbstractItemView::selectedIndexes(QAbstractItemView* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_selectedIndexes()); +} + +QAbstractItemView::SelectionBehavior PythonQtWrapper_QAbstractItemView::selectionBehavior(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->selectionBehavior()); +} + +void PythonQtWrapper_QAbstractItemView::selectionChanged(QAbstractItemView* theWrappedObject, const QItemSelection& selected, const QItemSelection& deselected) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_selectionChanged(selected, deselected)); +} + +QItemSelectionModel::SelectionFlags PythonQtWrapper_QAbstractItemView::selectionCommand(QAbstractItemView* theWrappedObject, const QModelIndex& index, const QEvent* event) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_selectionCommand(index, event)); +} + +QAbstractItemView::SelectionMode PythonQtWrapper_QAbstractItemView::selectionMode(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->selectionMode()); +} + +QItemSelectionModel* PythonQtWrapper_QAbstractItemView::selectionModel(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->selectionModel()); +} + +void PythonQtWrapper_QAbstractItemView::setAlternatingRowColors(QAbstractItemView* theWrappedObject, bool enable) +{ + ( theWrappedObject->setAlternatingRowColors(enable)); +} + +void PythonQtWrapper_QAbstractItemView::setAutoScroll(QAbstractItemView* theWrappedObject, bool enable) +{ + ( theWrappedObject->setAutoScroll(enable)); +} + +void PythonQtWrapper_QAbstractItemView::setAutoScrollMargin(QAbstractItemView* theWrappedObject, int margin) +{ + ( theWrappedObject->setAutoScrollMargin(margin)); +} + +void PythonQtWrapper_QAbstractItemView::setDefaultDropAction(QAbstractItemView* theWrappedObject, Qt::DropAction dropAction) +{ + ( theWrappedObject->setDefaultDropAction(dropAction)); +} + +void PythonQtWrapper_QAbstractItemView::setDragDropMode(QAbstractItemView* theWrappedObject, QAbstractItemView::DragDropMode behavior) +{ + ( theWrappedObject->setDragDropMode(behavior)); +} + +void PythonQtWrapper_QAbstractItemView::setDragDropOverwriteMode(QAbstractItemView* theWrappedObject, bool overwrite) +{ + ( theWrappedObject->setDragDropOverwriteMode(overwrite)); +} + +void PythonQtWrapper_QAbstractItemView::setDragEnabled(QAbstractItemView* theWrappedObject, bool enable) +{ + ( theWrappedObject->setDragEnabled(enable)); +} + +void PythonQtWrapper_QAbstractItemView::setDropIndicatorShown(QAbstractItemView* theWrappedObject, bool enable) +{ + ( theWrappedObject->setDropIndicatorShown(enable)); +} + +void PythonQtWrapper_QAbstractItemView::setEditTriggers(QAbstractItemView* theWrappedObject, QAbstractItemView::EditTriggers triggers) +{ + ( theWrappedObject->setEditTriggers(triggers)); +} + +void PythonQtWrapper_QAbstractItemView::setHorizontalScrollMode(QAbstractItemView* theWrappedObject, QAbstractItemView::ScrollMode mode) +{ + ( theWrappedObject->setHorizontalScrollMode(mode)); +} + +void PythonQtWrapper_QAbstractItemView::setIconSize(QAbstractItemView* theWrappedObject, const QSize& size) +{ + ( theWrappedObject->setIconSize(size)); +} + +void PythonQtWrapper_QAbstractItemView::setIndexWidget(QAbstractItemView* theWrappedObject, const QModelIndex& index, QWidget* widget) +{ + ( theWrappedObject->setIndexWidget(index, widget)); +} + +void PythonQtWrapper_QAbstractItemView::setItemDelegate(QAbstractItemView* theWrappedObject, QAbstractItemDelegate* delegate) +{ + ( theWrappedObject->setItemDelegate(delegate)); +} + +void PythonQtWrapper_QAbstractItemView::setItemDelegateForColumn(QAbstractItemView* theWrappedObject, int column, QAbstractItemDelegate* delegate) +{ + ( theWrappedObject->setItemDelegateForColumn(column, delegate)); +} + +void PythonQtWrapper_QAbstractItemView::setItemDelegateForRow(QAbstractItemView* theWrappedObject, int row, QAbstractItemDelegate* delegate) +{ + ( theWrappedObject->setItemDelegateForRow(row, delegate)); +} + +void PythonQtWrapper_QAbstractItemView::setModel(QAbstractItemView* theWrappedObject, QAbstractItemModel* model) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_setModel(model)); +} + +void PythonQtWrapper_QAbstractItemView::setRootIndex(QAbstractItemView* theWrappedObject, const QModelIndex& index) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_setRootIndex(index)); +} + +void PythonQtWrapper_QAbstractItemView::setSelectionBehavior(QAbstractItemView* theWrappedObject, QAbstractItemView::SelectionBehavior behavior) +{ + ( theWrappedObject->setSelectionBehavior(behavior)); +} + +void PythonQtWrapper_QAbstractItemView::setSelectionMode(QAbstractItemView* theWrappedObject, QAbstractItemView::SelectionMode mode) +{ + ( theWrappedObject->setSelectionMode(mode)); +} + +void PythonQtWrapper_QAbstractItemView::setSelectionModel(QAbstractItemView* theWrappedObject, QItemSelectionModel* selectionModel) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_setSelectionModel(selectionModel)); +} + +void PythonQtWrapper_QAbstractItemView::setTabKeyNavigation(QAbstractItemView* theWrappedObject, bool enable) +{ + ( theWrappedObject->setTabKeyNavigation(enable)); +} + +void PythonQtWrapper_QAbstractItemView::setTextElideMode(QAbstractItemView* theWrappedObject, Qt::TextElideMode mode) +{ + ( theWrappedObject->setTextElideMode(mode)); +} + +void PythonQtWrapper_QAbstractItemView::setVerticalScrollMode(QAbstractItemView* theWrappedObject, QAbstractItemView::ScrollMode mode) +{ + ( theWrappedObject->setVerticalScrollMode(mode)); +} + +bool PythonQtWrapper_QAbstractItemView::showDropIndicator(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->showDropIndicator()); +} + +int PythonQtWrapper_QAbstractItemView::sizeHintForColumn(QAbstractItemView* theWrappedObject, int column) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_sizeHintForColumn(column)); +} + +QSize PythonQtWrapper_QAbstractItemView::sizeHintForIndex(QAbstractItemView* theWrappedObject, const QModelIndex& index) const +{ + return ( theWrappedObject->sizeHintForIndex(index)); +} + +int PythonQtWrapper_QAbstractItemView::sizeHintForRow(QAbstractItemView* theWrappedObject, int row) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_sizeHintForRow(row)); +} + +void PythonQtWrapper_QAbstractItemView::startDrag(QAbstractItemView* theWrappedObject, Qt::DropActions supportedActions) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_startDrag(supportedActions)); +} + +bool PythonQtWrapper_QAbstractItemView::tabKeyNavigation(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->tabKeyNavigation()); +} + +Qt::TextElideMode PythonQtWrapper_QAbstractItemView::textElideMode(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->textElideMode()); +} + +void PythonQtWrapper_QAbstractItemView::timerEvent(QAbstractItemView* theWrappedObject, QTimerEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_timerEvent(event)); +} + +void PythonQtWrapper_QAbstractItemView::updateEditorData(QAbstractItemView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_updateEditorData()); +} + +void PythonQtWrapper_QAbstractItemView::updateEditorGeometries(QAbstractItemView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_updateEditorGeometries()); +} + +void PythonQtWrapper_QAbstractItemView::updateGeometries(QAbstractItemView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_updateGeometries()); +} + +QAbstractItemView::ScrollMode PythonQtWrapper_QAbstractItemView::verticalScrollMode(QAbstractItemView* theWrappedObject) const +{ + return ( theWrappedObject->verticalScrollMode()); +} + +void PythonQtWrapper_QAbstractItemView::verticalScrollbarAction(QAbstractItemView* theWrappedObject, int action) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_verticalScrollbarAction(action)); +} + +void PythonQtWrapper_QAbstractItemView::verticalScrollbarValueChanged(QAbstractItemView* theWrappedObject, int value) +{ + ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_verticalScrollbarValueChanged(value)); +} + +QStyleOptionViewItem PythonQtWrapper_QAbstractItemView::viewOptions(QAbstractItemView* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_viewOptions()); +} + +bool PythonQtWrapper_QAbstractItemView::viewportEvent(QAbstractItemView* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_viewportEvent(event)); +} + +#endif + +#if defined(QT_PRINTSUPPORT_LIB) + +PythonQtShell_QAbstractPrintDialog::~PythonQtShell_QAbstractPrintDialog() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QAbstractPrintDialog::accept() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::accept(); +} +void PythonQtShell_QAbstractPrintDialog::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::actionEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::changeEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::childEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::closeEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::contextMenuEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::customEvent(arg__1); +} +int PythonQtShell_QAbstractPrintDialog::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractPrintDialog::devType(); +} +void PythonQtShell_QAbstractPrintDialog::done(int arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::done(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::dragEnterEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::dragLeaveEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::dragMoveEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::dropEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::enterEvent(arg__1); +} +bool PythonQtShell_QAbstractPrintDialog::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractPrintDialog::event(arg__1); +} +bool PythonQtShell_QAbstractPrintDialog::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractPrintDialog::eventFilter(arg__1, arg__2); +} +int PythonQtShell_QAbstractPrintDialog::exec() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +void PythonQtShell_QAbstractPrintDialog::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::focusInEvent(arg__1); +} +bool PythonQtShell_QAbstractPrintDialog::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractPrintDialog::focusNextPrevChild(next); +} +void PythonQtShell_QAbstractPrintDialog::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::focusOutEvent(arg__1); +} +bool PythonQtShell_QAbstractPrintDialog::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractPrintDialog::hasHeightForWidth(); +} +int PythonQtShell_QAbstractPrintDialog::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractPrintDialog::heightForWidth(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::hideEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::initPainter(painter); +} +void PythonQtShell_QAbstractPrintDialog::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QAbstractPrintDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractPrintDialog::inputMethodQuery(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::keyPressEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::keyReleaseEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::leaveEvent(arg__1); +} +int PythonQtShell_QAbstractPrintDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractPrintDialog::metric(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::mouseMoveEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::mousePressEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::moveEvent(arg__1); +} +bool PythonQtShell_QAbstractPrintDialog::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractPrintDialog::nativeEvent(eventType, message, result); +} +void PythonQtShell_QAbstractPrintDialog::open() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::open(); +} +QPaintEngine* PythonQtShell_QAbstractPrintDialog::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractPrintDialog::paintEngine(); +} +void PythonQtShell_QAbstractPrintDialog::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QAbstractPrintDialog::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractPrintDialog::redirected(offset); +} +void PythonQtShell_QAbstractPrintDialog::reject() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::reject(); +} +void PythonQtShell_QAbstractPrintDialog::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QAbstractPrintDialog::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractPrintDialog::sharedPainter(); +} +void PythonQtShell_QAbstractPrintDialog::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::showEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::tabletEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::timerEvent(arg__1); +} +void PythonQtShell_QAbstractPrintDialog::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractPrintDialog::wheelEvent(arg__1); +} +QAbstractPrintDialog* PythonQtWrapper_QAbstractPrintDialog::new_QAbstractPrintDialog(QPrinter* printer, QWidget* parent) +{ +return new PythonQtShell_QAbstractPrintDialog(printer, parent); } + +void PythonQtWrapper_QAbstractPrintDialog::addEnabledOption(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option) +{ + ( theWrappedObject->addEnabledOption(option)); +} + +QAbstractPrintDialog::PrintDialogOptions PythonQtWrapper_QAbstractPrintDialog::enabledOptions(QAbstractPrintDialog* theWrappedObject) const +{ + return ( theWrappedObject->enabledOptions()); +} + +int PythonQtWrapper_QAbstractPrintDialog::fromPage(QAbstractPrintDialog* theWrappedObject) const +{ + return ( theWrappedObject->fromPage()); +} + +bool PythonQtWrapper_QAbstractPrintDialog::isOptionEnabled(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option) const +{ + return ( theWrappedObject->isOptionEnabled(option)); +} + +int PythonQtWrapper_QAbstractPrintDialog::maxPage(QAbstractPrintDialog* theWrappedObject) const +{ + return ( theWrappedObject->maxPage()); +} + +int PythonQtWrapper_QAbstractPrintDialog::minPage(QAbstractPrintDialog* theWrappedObject) const +{ + return ( theWrappedObject->minPage()); +} + +QAbstractPrintDialog::PrintRange PythonQtWrapper_QAbstractPrintDialog::printRange(QAbstractPrintDialog* theWrappedObject) const +{ + return ( theWrappedObject->printRange()); +} + +QPrinter* PythonQtWrapper_QAbstractPrintDialog::printer(QAbstractPrintDialog* theWrappedObject) const +{ + return ( theWrappedObject->printer()); +} + +void PythonQtWrapper_QAbstractPrintDialog::setEnabledOptions(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOptions options) +{ + ( theWrappedObject->setEnabledOptions(options)); +} + +void PythonQtWrapper_QAbstractPrintDialog::setFromTo(QAbstractPrintDialog* theWrappedObject, int fromPage, int toPage) +{ + ( theWrappedObject->setFromTo(fromPage, toPage)); +} + +void PythonQtWrapper_QAbstractPrintDialog::setMinMax(QAbstractPrintDialog* theWrappedObject, int min, int max) +{ + ( theWrappedObject->setMinMax(min, max)); +} + +void PythonQtWrapper_QAbstractPrintDialog::setOptionTabs(QAbstractPrintDialog* theWrappedObject, const QList& tabs) +{ + ( theWrappedObject->setOptionTabs(tabs)); +} + +void PythonQtWrapper_QAbstractPrintDialog::setPrintRange(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintRange range) +{ + ( theWrappedObject->setPrintRange(range)); +} + +int PythonQtWrapper_QAbstractPrintDialog::toPage(QAbstractPrintDialog* theWrappedObject) const +{ + return ( theWrappedObject->toPage()); +} + +#endif + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QAbstractScrollArea::~PythonQtShell_QAbstractScrollArea() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QAbstractScrollArea::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::actionEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::changeEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::childEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::closeEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::contextMenuEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::customEvent(arg__1); +} +int PythonQtShell_QAbstractScrollArea::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractScrollArea::devType(); +} +void PythonQtShell_QAbstractScrollArea::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::dragEnterEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::dragLeaveEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::dragMoveEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::dropEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::enterEvent(arg__1); +} +bool PythonQtShell_QAbstractScrollArea::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractScrollArea::event(arg__1); +} +bool PythonQtShell_QAbstractScrollArea::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractScrollArea::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QAbstractScrollArea::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::focusInEvent(arg__1); +} +bool PythonQtShell_QAbstractScrollArea::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractScrollArea::focusNextPrevChild(next); +} +void PythonQtShell_QAbstractScrollArea::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::focusOutEvent(arg__1); +} +bool PythonQtShell_QAbstractScrollArea::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractScrollArea::hasHeightForWidth(); +} +int PythonQtShell_QAbstractScrollArea::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractScrollArea::heightForWidth(arg__1); +} +void PythonQtShell_QAbstractScrollArea::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::hideEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::initPainter(painter); +} +void PythonQtShell_QAbstractScrollArea::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QAbstractScrollArea::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractScrollArea::inputMethodQuery(arg__1); +} +void PythonQtShell_QAbstractScrollArea::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::keyPressEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::keyReleaseEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::leaveEvent(arg__1); +} +int PythonQtShell_QAbstractScrollArea::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractScrollArea::metric(arg__1); +} +void PythonQtShell_QAbstractScrollArea::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::mouseMoveEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::mousePressEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::moveEvent(arg__1); +} +bool PythonQtShell_QAbstractScrollArea::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractScrollArea::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QAbstractScrollArea::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractScrollArea::paintEngine(); +} +void PythonQtShell_QAbstractScrollArea::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QAbstractScrollArea::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractScrollArea::redirected(offset); +} +void PythonQtShell_QAbstractScrollArea::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::resizeEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::scrollContentsBy(int dx, int dy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&dx, (void*)&dy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::scrollContentsBy(dx, dy); +} +void PythonQtShell_QAbstractScrollArea::setupViewport(QWidget* viewport) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&viewport}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::setupViewport(viewport); +} +QPainter* PythonQtShell_QAbstractScrollArea::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractScrollArea::sharedPainter(); +} +void PythonQtShell_QAbstractScrollArea::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::showEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::tabletEvent(arg__1); +} +void PythonQtShell_QAbstractScrollArea::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::timerEvent(arg__1); +} +bool PythonQtShell_QAbstractScrollArea::viewportEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractScrollArea::viewportEvent(arg__1); +} +QSize PythonQtShell_QAbstractScrollArea::viewportSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractScrollArea::viewportSizeHint(); +} +void PythonQtShell_QAbstractScrollArea::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractScrollArea::wheelEvent(arg__1); +} +QAbstractScrollArea* PythonQtWrapper_QAbstractScrollArea::new_QAbstractScrollArea(QWidget* parent) +{ +return new PythonQtShell_QAbstractScrollArea(parent); } + +void PythonQtWrapper_QAbstractScrollArea::addScrollBarWidget(QAbstractScrollArea* theWrappedObject, QWidget* widget, Qt::Alignment alignment) +{ + ( theWrappedObject->addScrollBarWidget(widget, alignment)); +} + +void PythonQtWrapper_QAbstractScrollArea::contextMenuEvent(QAbstractScrollArea* theWrappedObject, QContextMenuEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_contextMenuEvent(arg__1)); +} + +QWidget* PythonQtWrapper_QAbstractScrollArea::cornerWidget(QAbstractScrollArea* theWrappedObject) const +{ + return ( theWrappedObject->cornerWidget()); +} + +void PythonQtWrapper_QAbstractScrollArea::dragEnterEvent(QAbstractScrollArea* theWrappedObject, QDragEnterEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_dragEnterEvent(arg__1)); +} + +void PythonQtWrapper_QAbstractScrollArea::dragLeaveEvent(QAbstractScrollArea* theWrappedObject, QDragLeaveEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_dragLeaveEvent(arg__1)); +} + +void PythonQtWrapper_QAbstractScrollArea::dragMoveEvent(QAbstractScrollArea* theWrappedObject, QDragMoveEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_dragMoveEvent(arg__1)); +} + +void PythonQtWrapper_QAbstractScrollArea::dropEvent(QAbstractScrollArea* theWrappedObject, QDropEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_dropEvent(arg__1)); +} + +bool PythonQtWrapper_QAbstractScrollArea::event(QAbstractScrollArea* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_event(arg__1)); +} + +bool PythonQtWrapper_QAbstractScrollArea::eventFilter(QAbstractScrollArea* theWrappedObject, QObject* arg__1, QEvent* arg__2) +{ + return ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_eventFilter(arg__1, arg__2)); +} + +QScrollBar* PythonQtWrapper_QAbstractScrollArea::horizontalScrollBar(QAbstractScrollArea* theWrappedObject) const +{ + return ( theWrappedObject->horizontalScrollBar()); +} + +Qt::ScrollBarPolicy PythonQtWrapper_QAbstractScrollArea::horizontalScrollBarPolicy(QAbstractScrollArea* theWrappedObject) const +{ + return ( theWrappedObject->horizontalScrollBarPolicy()); +} + +void PythonQtWrapper_QAbstractScrollArea::keyPressEvent(QAbstractScrollArea* theWrappedObject, QKeyEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_keyPressEvent(arg__1)); +} + +QSize PythonQtWrapper_QAbstractScrollArea::maximumViewportSize(QAbstractScrollArea* theWrappedObject) const +{ + return ( theWrappedObject->maximumViewportSize()); +} + +QSize PythonQtWrapper_QAbstractScrollArea::minimumSizeHint(QAbstractScrollArea* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +void PythonQtWrapper_QAbstractScrollArea::mouseDoubleClickEvent(QAbstractScrollArea* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_mouseDoubleClickEvent(arg__1)); +} + +void PythonQtWrapper_QAbstractScrollArea::mouseMoveEvent(QAbstractScrollArea* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); +} + +void PythonQtWrapper_QAbstractScrollArea::mousePressEvent(QAbstractScrollArea* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_mousePressEvent(arg__1)); +} + +void PythonQtWrapper_QAbstractScrollArea::mouseReleaseEvent(QAbstractScrollArea* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); +} + +void PythonQtWrapper_QAbstractScrollArea::paintEvent(QAbstractScrollArea* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +void PythonQtWrapper_QAbstractScrollArea::resizeEvent(QAbstractScrollArea* theWrappedObject, QResizeEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_resizeEvent(arg__1)); +} + +QList PythonQtWrapper_QAbstractScrollArea::scrollBarWidgets(QAbstractScrollArea* theWrappedObject, Qt::Alignment alignment) +{ + return ( theWrappedObject->scrollBarWidgets(alignment)); +} + +void PythonQtWrapper_QAbstractScrollArea::scrollContentsBy(QAbstractScrollArea* theWrappedObject, int dx, int dy) +{ + ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); +} + +void PythonQtWrapper_QAbstractScrollArea::setCornerWidget(QAbstractScrollArea* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->setCornerWidget(widget)); +} + +void PythonQtWrapper_QAbstractScrollArea::setHorizontalScrollBar(QAbstractScrollArea* theWrappedObject, QScrollBar* scrollbar) +{ + ( theWrappedObject->setHorizontalScrollBar(scrollbar)); +} + +void PythonQtWrapper_QAbstractScrollArea::setHorizontalScrollBarPolicy(QAbstractScrollArea* theWrappedObject, Qt::ScrollBarPolicy arg__1) +{ + ( theWrappedObject->setHorizontalScrollBarPolicy(arg__1)); +} + +void PythonQtWrapper_QAbstractScrollArea::setVerticalScrollBar(QAbstractScrollArea* theWrappedObject, QScrollBar* scrollbar) +{ + ( theWrappedObject->setVerticalScrollBar(scrollbar)); +} + +void PythonQtWrapper_QAbstractScrollArea::setVerticalScrollBarPolicy(QAbstractScrollArea* theWrappedObject, Qt::ScrollBarPolicy arg__1) +{ + ( theWrappedObject->setVerticalScrollBarPolicy(arg__1)); +} + +void PythonQtWrapper_QAbstractScrollArea::setViewport(QAbstractScrollArea* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->setViewport(widget)); +} + +void PythonQtWrapper_QAbstractScrollArea::setupViewport(QAbstractScrollArea* theWrappedObject, QWidget* viewport) +{ + ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_setupViewport(viewport)); +} + +QSize PythonQtWrapper_QAbstractScrollArea::sizeHint(QAbstractScrollArea* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +QScrollBar* PythonQtWrapper_QAbstractScrollArea::verticalScrollBar(QAbstractScrollArea* theWrappedObject) const +{ + return ( theWrappedObject->verticalScrollBar()); +} + +Qt::ScrollBarPolicy PythonQtWrapper_QAbstractScrollArea::verticalScrollBarPolicy(QAbstractScrollArea* theWrappedObject) const +{ + return ( theWrappedObject->verticalScrollBarPolicy()); +} + +QWidget* PythonQtWrapper_QAbstractScrollArea::viewport(QAbstractScrollArea* theWrappedObject) const +{ + return ( theWrappedObject->viewport()); +} + +bool PythonQtWrapper_QAbstractScrollArea::viewportEvent(QAbstractScrollArea* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_viewportEvent(arg__1)); +} + +QSize PythonQtWrapper_QAbstractScrollArea::viewportSizeHint(QAbstractScrollArea* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_viewportSizeHint()); +} + +void PythonQtWrapper_QAbstractScrollArea::wheelEvent(QAbstractScrollArea* theWrappedObject, QWheelEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_wheelEvent(arg__1)); +} + + + +PythonQtShell_QAbstractSlider::~PythonQtShell_QAbstractSlider() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QAbstractSlider::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::actionEvent(arg__1); +} +void PythonQtShell_QAbstractSlider::changeEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::changeEvent(e); +} +void PythonQtShell_QAbstractSlider::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::childEvent(arg__1); +} +void PythonQtShell_QAbstractSlider::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::closeEvent(arg__1); +} +void PythonQtShell_QAbstractSlider::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::contextMenuEvent(arg__1); +} +void PythonQtShell_QAbstractSlider::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::customEvent(arg__1); +} +int PythonQtShell_QAbstractSlider::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSlider::devType(); +} +void PythonQtShell_QAbstractSlider::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::dragEnterEvent(arg__1); +} +void PythonQtShell_QAbstractSlider::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::dragLeaveEvent(arg__1); +} +void PythonQtShell_QAbstractSlider::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::dragMoveEvent(arg__1); +} +void PythonQtShell_QAbstractSlider::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::dropEvent(arg__1); +} +void PythonQtShell_QAbstractSlider::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::enterEvent(arg__1); +} +bool PythonQtShell_QAbstractSlider::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSlider::event(e); +} +bool PythonQtShell_QAbstractSlider::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSlider::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QAbstractSlider::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::focusInEvent(arg__1); +} +bool PythonQtShell_QAbstractSlider::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSlider::focusNextPrevChild(next); +} +void PythonQtShell_QAbstractSlider::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::focusOutEvent(arg__1); +} +bool PythonQtShell_QAbstractSlider::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSlider::hasHeightForWidth(); +} +int PythonQtShell_QAbstractSlider::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSlider::heightForWidth(arg__1); +} +void PythonQtShell_QAbstractSlider::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::hideEvent(arg__1); +} +void PythonQtShell_QAbstractSlider::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::initPainter(painter); +} +void PythonQtShell_QAbstractSlider::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QAbstractSlider::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSlider::inputMethodQuery(arg__1); +} +void PythonQtShell_QAbstractSlider::keyPressEvent(QKeyEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::keyPressEvent(ev); +} +void PythonQtShell_QAbstractSlider::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::keyReleaseEvent(arg__1); +} +void PythonQtShell_QAbstractSlider::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::leaveEvent(arg__1); +} +int PythonQtShell_QAbstractSlider::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSlider::metric(arg__1); +} +QSize PythonQtShell_QAbstractSlider::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSlider::minimumSizeHint(); +} +void PythonQtShell_QAbstractSlider::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QAbstractSlider::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::mouseMoveEvent(arg__1); +} +void PythonQtShell_QAbstractSlider::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::mousePressEvent(arg__1); +} +void PythonQtShell_QAbstractSlider::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QAbstractSlider::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::moveEvent(arg__1); +} +bool PythonQtShell_QAbstractSlider::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSlider::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QAbstractSlider::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSlider::paintEngine(); +} +void PythonQtShell_QAbstractSlider::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QAbstractSlider::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSlider::redirected(offset); +} +void PythonQtShell_QAbstractSlider::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QAbstractSlider::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSlider::sharedPainter(); +} +void PythonQtShell_QAbstractSlider::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::showEvent(arg__1); +} +QSize PythonQtShell_QAbstractSlider::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSlider::sizeHint(); +} +void PythonQtShell_QAbstractSlider::sliderChange(QAbstractSlider::SliderChange change) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sliderChange"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractSlider::SliderChange"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&change}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::sliderChange(change); +} +void PythonQtShell_QAbstractSlider::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::tabletEvent(arg__1); +} +void PythonQtShell_QAbstractSlider::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::timerEvent(arg__1); +} +void PythonQtShell_QAbstractSlider::wheelEvent(QWheelEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSlider::wheelEvent(e); +} +QAbstractSlider* PythonQtWrapper_QAbstractSlider::new_QAbstractSlider(QWidget* parent) +{ +return new PythonQtShell_QAbstractSlider(parent); } + +void PythonQtWrapper_QAbstractSlider::changeEvent(QAbstractSlider* theWrappedObject, QEvent* e) +{ + ( ((PythonQtPublicPromoter_QAbstractSlider*)theWrappedObject)->promoted_changeEvent(e)); +} + +bool PythonQtWrapper_QAbstractSlider::event(QAbstractSlider* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QAbstractSlider*)theWrappedObject)->promoted_event(e)); +} + +bool PythonQtWrapper_QAbstractSlider::hasTracking(QAbstractSlider* theWrappedObject) const +{ + return ( theWrappedObject->hasTracking()); +} + +bool PythonQtWrapper_QAbstractSlider::invertedAppearance(QAbstractSlider* theWrappedObject) const +{ + return ( theWrappedObject->invertedAppearance()); +} + +bool PythonQtWrapper_QAbstractSlider::invertedControls(QAbstractSlider* theWrappedObject) const +{ + return ( theWrappedObject->invertedControls()); +} + +bool PythonQtWrapper_QAbstractSlider::isSliderDown(QAbstractSlider* theWrappedObject) const +{ + return ( theWrappedObject->isSliderDown()); +} + +void PythonQtWrapper_QAbstractSlider::keyPressEvent(QAbstractSlider* theWrappedObject, QKeyEvent* ev) +{ + ( ((PythonQtPublicPromoter_QAbstractSlider*)theWrappedObject)->promoted_keyPressEvent(ev)); +} + +int PythonQtWrapper_QAbstractSlider::maximum(QAbstractSlider* theWrappedObject) const +{ + return ( theWrappedObject->maximum()); +} + +int PythonQtWrapper_QAbstractSlider::minimum(QAbstractSlider* theWrappedObject) const +{ + return ( theWrappedObject->minimum()); +} + +Qt::Orientation PythonQtWrapper_QAbstractSlider::orientation(QAbstractSlider* theWrappedObject) const +{ + return ( theWrappedObject->orientation()); +} + +int PythonQtWrapper_QAbstractSlider::pageStep(QAbstractSlider* theWrappedObject) const +{ + return ( theWrappedObject->pageStep()); +} + +void PythonQtWrapper_QAbstractSlider::setInvertedAppearance(QAbstractSlider* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setInvertedAppearance(arg__1)); +} + +void PythonQtWrapper_QAbstractSlider::setInvertedControls(QAbstractSlider* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setInvertedControls(arg__1)); +} + +void PythonQtWrapper_QAbstractSlider::setMaximum(QAbstractSlider* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setMaximum(arg__1)); +} + +void PythonQtWrapper_QAbstractSlider::setMinimum(QAbstractSlider* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setMinimum(arg__1)); +} + +void PythonQtWrapper_QAbstractSlider::setPageStep(QAbstractSlider* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setPageStep(arg__1)); +} + +void PythonQtWrapper_QAbstractSlider::setSingleStep(QAbstractSlider* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setSingleStep(arg__1)); +} + +void PythonQtWrapper_QAbstractSlider::setSliderDown(QAbstractSlider* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setSliderDown(arg__1)); +} + +void PythonQtWrapper_QAbstractSlider::setSliderPosition(QAbstractSlider* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setSliderPosition(arg__1)); +} + +void PythonQtWrapper_QAbstractSlider::setTracking(QAbstractSlider* theWrappedObject, bool enable) +{ + ( theWrappedObject->setTracking(enable)); +} + +int PythonQtWrapper_QAbstractSlider::singleStep(QAbstractSlider* theWrappedObject) const +{ + return ( theWrappedObject->singleStep()); +} + +int PythonQtWrapper_QAbstractSlider::sliderPosition(QAbstractSlider* theWrappedObject) const +{ + return ( theWrappedObject->sliderPosition()); +} + +void PythonQtWrapper_QAbstractSlider::timerEvent(QAbstractSlider* theWrappedObject, QTimerEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QAbstractSlider*)theWrappedObject)->promoted_timerEvent(arg__1)); +} + +void PythonQtWrapper_QAbstractSlider::triggerAction(QAbstractSlider* theWrappedObject, QAbstractSlider::SliderAction action) +{ + ( theWrappedObject->triggerAction(action)); +} + +int PythonQtWrapper_QAbstractSlider::value(QAbstractSlider* theWrappedObject) const +{ + return ( theWrappedObject->value()); +} + +void PythonQtWrapper_QAbstractSlider::wheelEvent(QAbstractSlider* theWrappedObject, QWheelEvent* e) +{ + ( ((PythonQtPublicPromoter_QAbstractSlider*)theWrappedObject)->promoted_wheelEvent(e)); +} + + + +PythonQtShell_QAbstractSpinBox::~PythonQtShell_QAbstractSpinBox() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QAbstractSpinBox::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::actionEvent(arg__1); +} +void PythonQtShell_QAbstractSpinBox::changeEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::changeEvent(event); +} +void PythonQtShell_QAbstractSpinBox::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::childEvent(arg__1); +} +void PythonQtShell_QAbstractSpinBox::clear() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::clear(); +} +void PythonQtShell_QAbstractSpinBox::closeEvent(QCloseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::closeEvent(event); +} +void PythonQtShell_QAbstractSpinBox::contextMenuEvent(QContextMenuEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::contextMenuEvent(event); +} +void PythonQtShell_QAbstractSpinBox::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::customEvent(arg__1); +} +int PythonQtShell_QAbstractSpinBox::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSpinBox::devType(); +} +void PythonQtShell_QAbstractSpinBox::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::dragEnterEvent(arg__1); +} +void PythonQtShell_QAbstractSpinBox::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::dragLeaveEvent(arg__1); +} +void PythonQtShell_QAbstractSpinBox::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::dragMoveEvent(arg__1); +} +void PythonQtShell_QAbstractSpinBox::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::dropEvent(arg__1); +} +void PythonQtShell_QAbstractSpinBox::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::enterEvent(arg__1); +} +bool PythonQtShell_QAbstractSpinBox::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSpinBox::event(event); +} +bool PythonQtShell_QAbstractSpinBox::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSpinBox::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QAbstractSpinBox::fixup(QString& input) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&input}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::fixup(input); +} +void PythonQtShell_QAbstractSpinBox::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::focusInEvent(event); +} +bool PythonQtShell_QAbstractSpinBox::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSpinBox::focusNextPrevChild(next); +} +void PythonQtShell_QAbstractSpinBox::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::focusOutEvent(event); +} +bool PythonQtShell_QAbstractSpinBox::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSpinBox::hasHeightForWidth(); +} +int PythonQtShell_QAbstractSpinBox::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSpinBox::heightForWidth(arg__1); +} +void PythonQtShell_QAbstractSpinBox::hideEvent(QHideEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::hideEvent(event); +} +void PythonQtShell_QAbstractSpinBox::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::initPainter(painter); +} +void PythonQtShell_QAbstractSpinBox::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QAbstractSpinBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSpinBox::inputMethodQuery(arg__1); +} +void PythonQtShell_QAbstractSpinBox::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::keyPressEvent(event); +} +void PythonQtShell_QAbstractSpinBox::keyReleaseEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::keyReleaseEvent(event); +} +void PythonQtShell_QAbstractSpinBox::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::leaveEvent(arg__1); +} +int PythonQtShell_QAbstractSpinBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSpinBox::metric(arg__1); +} +void PythonQtShell_QAbstractSpinBox::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QAbstractSpinBox::mouseMoveEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::mouseMoveEvent(event); +} +void PythonQtShell_QAbstractSpinBox::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::mousePressEvent(event); +} +void PythonQtShell_QAbstractSpinBox::mouseReleaseEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::mouseReleaseEvent(event); +} +void PythonQtShell_QAbstractSpinBox::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::moveEvent(arg__1); +} +bool PythonQtShell_QAbstractSpinBox::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSpinBox::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QAbstractSpinBox::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSpinBox::paintEngine(); +} +void PythonQtShell_QAbstractSpinBox::paintEvent(QPaintEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::paintEvent(event); +} +QPaintDevice* PythonQtShell_QAbstractSpinBox::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSpinBox::redirected(offset); +} +void PythonQtShell_QAbstractSpinBox::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::resizeEvent(event); +} +QPainter* PythonQtShell_QAbstractSpinBox::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSpinBox::sharedPainter(); +} +void PythonQtShell_QAbstractSpinBox::showEvent(QShowEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::showEvent(event); +} +void PythonQtShell_QAbstractSpinBox::stepBy(int steps) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&steps}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::stepBy(steps); +} +QAbstractSpinBox::StepEnabled PythonQtShell_QAbstractSpinBox::stepEnabled() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepEnabled"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QAbstractSpinBox::StepEnabled returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("stepEnabled", methodInfo, result); + } else { + returnValue = *((QAbstractSpinBox::StepEnabled*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSpinBox::stepEnabled(); +} +void PythonQtShell_QAbstractSpinBox::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::tabletEvent(arg__1); +} +void PythonQtShell_QAbstractSpinBox::timerEvent(QTimerEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::timerEvent(event); +} +QValidator::State PythonQtShell_QAbstractSpinBox::validate(QString& input, int& pos) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QValidator::State" , "QString&" , "int&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QValidator::State returnValue; + void* args[3] = {NULL, (void*)&input, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); + } else { + returnValue = *((QValidator::State*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSpinBox::validate(input, pos); +} +void PythonQtShell_QAbstractSpinBox::wheelEvent(QWheelEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSpinBox::wheelEvent(event); +} +QAbstractSpinBox* PythonQtWrapper_QAbstractSpinBox::new_QAbstractSpinBox(QWidget* parent) +{ +return new PythonQtShell_QAbstractSpinBox(parent); } + +Qt::Alignment PythonQtWrapper_QAbstractSpinBox::alignment(QAbstractSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->alignment()); +} + +QAbstractSpinBox::ButtonSymbols PythonQtWrapper_QAbstractSpinBox::buttonSymbols(QAbstractSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->buttonSymbols()); +} + +void PythonQtWrapper_QAbstractSpinBox::changeEvent(QAbstractSpinBox* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_changeEvent(event)); +} + +void PythonQtWrapper_QAbstractSpinBox::clear(QAbstractSpinBox* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_clear()); +} + +void PythonQtWrapper_QAbstractSpinBox::closeEvent(QAbstractSpinBox* theWrappedObject, QCloseEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_closeEvent(event)); +} + +void PythonQtWrapper_QAbstractSpinBox::contextMenuEvent(QAbstractSpinBox* theWrappedObject, QContextMenuEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_contextMenuEvent(event)); +} + +QAbstractSpinBox::CorrectionMode PythonQtWrapper_QAbstractSpinBox::correctionMode(QAbstractSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->correctionMode()); +} + +bool PythonQtWrapper_QAbstractSpinBox::event(QAbstractSpinBox* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_event(event)); +} + +void PythonQtWrapper_QAbstractSpinBox::fixup(QAbstractSpinBox* theWrappedObject, QString& input) const +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_fixup(input)); +} + +void PythonQtWrapper_QAbstractSpinBox::focusInEvent(QAbstractSpinBox* theWrappedObject, QFocusEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_focusInEvent(event)); +} + +void PythonQtWrapper_QAbstractSpinBox::focusOutEvent(QAbstractSpinBox* theWrappedObject, QFocusEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_focusOutEvent(event)); +} + +bool PythonQtWrapper_QAbstractSpinBox::hasAcceptableInput(QAbstractSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->hasAcceptableInput()); +} + +bool PythonQtWrapper_QAbstractSpinBox::hasFrame(QAbstractSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->hasFrame()); +} + +void PythonQtWrapper_QAbstractSpinBox::hideEvent(QAbstractSpinBox* theWrappedObject, QHideEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_hideEvent(event)); +} + +QVariant PythonQtWrapper_QAbstractSpinBox::inputMethodQuery(QAbstractSpinBox* theWrappedObject, Qt::InputMethodQuery arg__1) const +{ + return ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_inputMethodQuery(arg__1)); +} + +void PythonQtWrapper_QAbstractSpinBox::interpretText(QAbstractSpinBox* theWrappedObject) +{ + ( theWrappedObject->interpretText()); +} + +bool PythonQtWrapper_QAbstractSpinBox::isAccelerated(QAbstractSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->isAccelerated()); +} + +bool PythonQtWrapper_QAbstractSpinBox::isReadOnly(QAbstractSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->isReadOnly()); +} + +void PythonQtWrapper_QAbstractSpinBox::keyPressEvent(QAbstractSpinBox* theWrappedObject, QKeyEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_keyPressEvent(event)); +} + +void PythonQtWrapper_QAbstractSpinBox::keyReleaseEvent(QAbstractSpinBox* theWrappedObject, QKeyEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_keyReleaseEvent(event)); +} + +bool PythonQtWrapper_QAbstractSpinBox::keyboardTracking(QAbstractSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->keyboardTracking()); +} + +QSize PythonQtWrapper_QAbstractSpinBox::minimumSizeHint(QAbstractSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +void PythonQtWrapper_QAbstractSpinBox::mouseMoveEvent(QAbstractSpinBox* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_mouseMoveEvent(event)); +} + +void PythonQtWrapper_QAbstractSpinBox::mousePressEvent(QAbstractSpinBox* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_mousePressEvent(event)); +} + +void PythonQtWrapper_QAbstractSpinBox::mouseReleaseEvent(QAbstractSpinBox* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_mouseReleaseEvent(event)); +} + +void PythonQtWrapper_QAbstractSpinBox::paintEvent(QAbstractSpinBox* theWrappedObject, QPaintEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_paintEvent(event)); +} + +void PythonQtWrapper_QAbstractSpinBox::resizeEvent(QAbstractSpinBox* theWrappedObject, QResizeEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_resizeEvent(event)); +} + +void PythonQtWrapper_QAbstractSpinBox::setAccelerated(QAbstractSpinBox* theWrappedObject, bool on) +{ + ( theWrappedObject->setAccelerated(on)); +} + +void PythonQtWrapper_QAbstractSpinBox::setAlignment(QAbstractSpinBox* theWrappedObject, Qt::Alignment flag) +{ + ( theWrappedObject->setAlignment(flag)); +} + +void PythonQtWrapper_QAbstractSpinBox::setButtonSymbols(QAbstractSpinBox* theWrappedObject, QAbstractSpinBox::ButtonSymbols bs) +{ + ( theWrappedObject->setButtonSymbols(bs)); +} + +void PythonQtWrapper_QAbstractSpinBox::setCorrectionMode(QAbstractSpinBox* theWrappedObject, QAbstractSpinBox::CorrectionMode cm) +{ + ( theWrappedObject->setCorrectionMode(cm)); +} + +void PythonQtWrapper_QAbstractSpinBox::setFrame(QAbstractSpinBox* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setFrame(arg__1)); +} + +void PythonQtWrapper_QAbstractSpinBox::setKeyboardTracking(QAbstractSpinBox* theWrappedObject, bool kt) +{ + ( theWrappedObject->setKeyboardTracking(kt)); +} + +void PythonQtWrapper_QAbstractSpinBox::setReadOnly(QAbstractSpinBox* theWrappedObject, bool r) +{ + ( theWrappedObject->setReadOnly(r)); +} + +void PythonQtWrapper_QAbstractSpinBox::setSpecialValueText(QAbstractSpinBox* theWrappedObject, const QString& txt) +{ + ( theWrappedObject->setSpecialValueText(txt)); +} + +void PythonQtWrapper_QAbstractSpinBox::setWrapping(QAbstractSpinBox* theWrappedObject, bool w) +{ + ( theWrappedObject->setWrapping(w)); +} + +void PythonQtWrapper_QAbstractSpinBox::showEvent(QAbstractSpinBox* theWrappedObject, QShowEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_showEvent(event)); +} + +QSize PythonQtWrapper_QAbstractSpinBox::sizeHint(QAbstractSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +QString PythonQtWrapper_QAbstractSpinBox::specialValueText(QAbstractSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->specialValueText()); +} + +void PythonQtWrapper_QAbstractSpinBox::stepBy(QAbstractSpinBox* theWrappedObject, int steps) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_stepBy(steps)); +} + +QAbstractSpinBox::StepEnabled PythonQtWrapper_QAbstractSpinBox::stepEnabled(QAbstractSpinBox* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_stepEnabled()); +} + +QString PythonQtWrapper_QAbstractSpinBox::text(QAbstractSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + +void PythonQtWrapper_QAbstractSpinBox::timerEvent(QAbstractSpinBox* theWrappedObject, QTimerEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_timerEvent(event)); +} + +QValidator::State PythonQtWrapper_QAbstractSpinBox::validate(QAbstractSpinBox* theWrappedObject, QString& input, int& pos) const +{ + return ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_validate(input, pos)); +} + +void PythonQtWrapper_QAbstractSpinBox::wheelEvent(QAbstractSpinBox* theWrappedObject, QWheelEvent* event) +{ + ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_wheelEvent(event)); +} + +bool PythonQtWrapper_QAbstractSpinBox::wrapping(QAbstractSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->wrapping()); +} + + + +PythonQtShell_QAction::~PythonQtShell_QAction() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QAction::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAction::childEvent(arg__1); +} +void PythonQtShell_QAction::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAction::customEvent(arg__1); +} +bool PythonQtShell_QAction::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAction::event(arg__1); +} +bool PythonQtShell_QAction::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAction::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QAction::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAction::timerEvent(arg__1); +} +QAction* PythonQtWrapper_QAction::new_QAction(QObject* parent) +{ +return new PythonQtShell_QAction(parent); } + +QAction* PythonQtWrapper_QAction::new_QAction(const QIcon& icon, const QString& text, QObject* parent) +{ +return new PythonQtShell_QAction(icon, text, parent); } + +QAction* PythonQtWrapper_QAction::new_QAction(const QString& text, QObject* parent) +{ +return new PythonQtShell_QAction(text, parent); } + +QActionGroup* PythonQtWrapper_QAction::actionGroup(QAction* theWrappedObject) const +{ + return ( theWrappedObject->actionGroup()); +} + +void PythonQtWrapper_QAction::activate(QAction* theWrappedObject, QAction::ActionEvent event) +{ + ( theWrappedObject->activate(event)); +} + +QList PythonQtWrapper_QAction::associatedGraphicsWidgets(QAction* theWrappedObject) const +{ + return ( theWrappedObject->associatedGraphicsWidgets()); +} + +QList PythonQtWrapper_QAction::associatedWidgets(QAction* theWrappedObject) const +{ + return ( theWrappedObject->associatedWidgets()); +} + +bool PythonQtWrapper_QAction::autoRepeat(QAction* theWrappedObject) const +{ + return ( theWrappedObject->autoRepeat()); +} + +QVariant PythonQtWrapper_QAction::data(QAction* theWrappedObject) const +{ + return ( theWrappedObject->data()); +} + +bool PythonQtWrapper_QAction::event(QAction* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QAction*)theWrappedObject)->promoted_event(arg__1)); +} + +QFont PythonQtWrapper_QAction::font(QAction* theWrappedObject) const +{ + return ( theWrappedObject->font()); +} + +QIcon PythonQtWrapper_QAction::icon(QAction* theWrappedObject) const +{ + return ( theWrappedObject->icon()); +} + +QString PythonQtWrapper_QAction::iconText(QAction* theWrappedObject) const +{ + return ( theWrappedObject->iconText()); +} + +bool PythonQtWrapper_QAction::isCheckable(QAction* theWrappedObject) const +{ + return ( theWrappedObject->isCheckable()); +} + +bool PythonQtWrapper_QAction::isChecked(QAction* theWrappedObject) const +{ + return ( theWrappedObject->isChecked()); +} + +bool PythonQtWrapper_QAction::isEnabled(QAction* theWrappedObject) const +{ + return ( theWrappedObject->isEnabled()); +} + +bool PythonQtWrapper_QAction::isIconVisibleInMenu(QAction* theWrappedObject) const +{ + return ( theWrappedObject->isIconVisibleInMenu()); +} + +bool PythonQtWrapper_QAction::isSeparator(QAction* theWrappedObject) const +{ + return ( theWrappedObject->isSeparator()); +} + +bool PythonQtWrapper_QAction::isVisible(QAction* theWrappedObject) const +{ + return ( theWrappedObject->isVisible()); +} + +QMenu* PythonQtWrapper_QAction::menu(QAction* theWrappedObject) const +{ + return ( theWrappedObject->menu()); +} + +QAction::MenuRole PythonQtWrapper_QAction::menuRole(QAction* theWrappedObject) const +{ + return ( theWrappedObject->menuRole()); +} + +QWidget* PythonQtWrapper_QAction::parentWidget(QAction* theWrappedObject) const +{ + return ( theWrappedObject->parentWidget()); +} + +QAction::Priority PythonQtWrapper_QAction::priority(QAction* theWrappedObject) const +{ + return ( theWrappedObject->priority()); +} + +void PythonQtWrapper_QAction::setActionGroup(QAction* theWrappedObject, QActionGroup* group) +{ + ( theWrappedObject->setActionGroup(group)); +} + +void PythonQtWrapper_QAction::setAutoRepeat(QAction* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setAutoRepeat(arg__1)); +} + +void PythonQtWrapper_QAction::setCheckable(QAction* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setCheckable(arg__1)); +} + +void PythonQtWrapper_QAction::setData(QAction* theWrappedObject, const QVariant& var) +{ + ( theWrappedObject->setData(var)); +} + +void PythonQtWrapper_QAction::setFont(QAction* theWrappedObject, const QFont& font) +{ + ( theWrappedObject->setFont(font)); +} + +void PythonQtWrapper_QAction::setIcon(QAction* theWrappedObject, const QIcon& icon) +{ + ( theWrappedObject->setIcon(icon)); +} + +void PythonQtWrapper_QAction::setIconText(QAction* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setIconText(text)); +} + +void PythonQtWrapper_QAction::setIconVisibleInMenu(QAction* theWrappedObject, bool visible) +{ + ( theWrappedObject->setIconVisibleInMenu(visible)); +} + +void PythonQtWrapper_QAction::setMenu(QAction* theWrappedObject, QMenu* menu) +{ + ( theWrappedObject->setMenu(menu)); +} + +void PythonQtWrapper_QAction::setMenuRole(QAction* theWrappedObject, QAction::MenuRole menuRole) +{ + ( theWrappedObject->setMenuRole(menuRole)); +} + +void PythonQtWrapper_QAction::setPriority(QAction* theWrappedObject, QAction::Priority priority) +{ + ( theWrappedObject->setPriority(priority)); +} + +void PythonQtWrapper_QAction::setSeparator(QAction* theWrappedObject, bool b) +{ + ( theWrappedObject->setSeparator(b)); +} + +void PythonQtWrapper_QAction::setShortcut(QAction* theWrappedObject, const QKeySequence& shortcut) +{ + ( theWrappedObject->setShortcut(shortcut)); +} + +void PythonQtWrapper_QAction::setShortcutContext(QAction* theWrappedObject, Qt::ShortcutContext context) +{ + ( theWrappedObject->setShortcutContext(context)); +} + +void PythonQtWrapper_QAction::setShortcuts(QAction* theWrappedObject, QKeySequence::StandardKey arg__1) +{ + ( theWrappedObject->setShortcuts(arg__1)); +} + +void PythonQtWrapper_QAction::setShortcuts(QAction* theWrappedObject, const QList& shortcuts) +{ + ( theWrappedObject->setShortcuts(shortcuts)); +} + +void PythonQtWrapper_QAction::setStatusTip(QAction* theWrappedObject, const QString& statusTip) +{ + ( theWrappedObject->setStatusTip(statusTip)); +} + +void PythonQtWrapper_QAction::setText(QAction* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setText(text)); +} + +void PythonQtWrapper_QAction::setToolTip(QAction* theWrappedObject, const QString& tip) +{ + ( theWrappedObject->setToolTip(tip)); +} + +void PythonQtWrapper_QAction::setWhatsThis(QAction* theWrappedObject, const QString& what) +{ + ( theWrappedObject->setWhatsThis(what)); +} + +QKeySequence PythonQtWrapper_QAction::shortcut(QAction* theWrappedObject) const +{ + return ( theWrappedObject->shortcut()); +} + +Qt::ShortcutContext PythonQtWrapper_QAction::shortcutContext(QAction* theWrappedObject) const +{ + return ( theWrappedObject->shortcutContext()); +} + +QList PythonQtWrapper_QAction::shortcuts(QAction* theWrappedObject) const +{ + return ( theWrappedObject->shortcuts()); +} + +bool PythonQtWrapper_QAction::showStatusText(QAction* theWrappedObject, QWidget* widget) +{ + return ( theWrappedObject->showStatusText(widget)); +} + +QString PythonQtWrapper_QAction::statusTip(QAction* theWrappedObject) const +{ + return ( theWrappedObject->statusTip()); +} + +QString PythonQtWrapper_QAction::text(QAction* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + +QString PythonQtWrapper_QAction::toolTip(QAction* theWrappedObject) const +{ + return ( theWrappedObject->toolTip()); +} + +QString PythonQtWrapper_QAction::whatsThis(QAction* theWrappedObject) const +{ + return ( theWrappedObject->whatsThis()); +} + +#endif + +QActionEvent* PythonQtWrapper_QActionEvent::new_QActionEvent(int type, QAction* action, QAction* before) +{ +return new QActionEvent(type, action, before); } + +QAction* PythonQtWrapper_QActionEvent::action(QActionEvent* theWrappedObject) const +{ + return ( theWrappedObject->action()); +} + +QAction* PythonQtWrapper_QActionEvent::before(QActionEvent* theWrappedObject) const +{ + return ( theWrappedObject->before()); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QActionGroup::~PythonQtShell_QActionGroup() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QActionGroup::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QActionGroup::childEvent(arg__1); +} +void PythonQtShell_QActionGroup::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QActionGroup::customEvent(arg__1); +} +bool PythonQtShell_QActionGroup::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QActionGroup::event(arg__1); +} +bool PythonQtShell_QActionGroup::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QActionGroup::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QActionGroup::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QActionGroup::timerEvent(arg__1); +} +QActionGroup* PythonQtWrapper_QActionGroup::new_QActionGroup(QObject* parent) +{ +return new PythonQtShell_QActionGroup(parent); } + +QList PythonQtWrapper_QActionGroup::actions(QActionGroup* theWrappedObject) const +{ + return ( theWrappedObject->actions()); +} + +QAction* PythonQtWrapper_QActionGroup::addAction(QActionGroup* theWrappedObject, QAction* a) +{ + return ( theWrappedObject->addAction(a)); +} + +QAction* PythonQtWrapper_QActionGroup::addAction(QActionGroup* theWrappedObject, const QIcon& icon, const QString& text) +{ + return ( theWrappedObject->addAction(icon, text)); +} + +QAction* PythonQtWrapper_QActionGroup::addAction(QActionGroup* theWrappedObject, const QString& text) +{ + return ( theWrappedObject->addAction(text)); +} + +QAction* PythonQtWrapper_QActionGroup::checkedAction(QActionGroup* theWrappedObject) const +{ + return ( theWrappedObject->checkedAction()); +} + +bool PythonQtWrapper_QActionGroup::isEnabled(QActionGroup* theWrappedObject) const +{ + return ( theWrappedObject->isEnabled()); +} + +bool PythonQtWrapper_QActionGroup::isExclusive(QActionGroup* theWrappedObject) const +{ + return ( theWrappedObject->isExclusive()); +} + +bool PythonQtWrapper_QActionGroup::isVisible(QActionGroup* theWrappedObject) const +{ + return ( theWrappedObject->isVisible()); +} + +void PythonQtWrapper_QActionGroup::removeAction(QActionGroup* theWrappedObject, QAction* a) +{ + ( theWrappedObject->removeAction(a)); +} + + + +PythonQtShell_QApplication::~PythonQtShell_QApplication() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QApplication::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QApplication::childEvent(arg__1); +} +void PythonQtShell_QApplication::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QApplication::customEvent(arg__1); +} +bool PythonQtShell_QApplication::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QApplication::event(arg__1); +} +bool PythonQtShell_QApplication::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QApplication::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QApplication::notify(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "notify"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("notify", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QApplication::notify(arg__1, arg__2); +} +void PythonQtShell_QApplication::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QApplication::timerEvent(arg__1); +} +QWidget* PythonQtWrapper_QApplication::static_QApplication_activeModalWidget() +{ + return (QApplication::activeModalWidget()); +} + +QWidget* PythonQtWrapper_QApplication::static_QApplication_activePopupWidget() +{ + return (QApplication::activePopupWidget()); +} + +QWidget* PythonQtWrapper_QApplication::static_QApplication_activeWindow() +{ + return (QApplication::activeWindow()); +} + +void PythonQtWrapper_QApplication::static_QApplication_alert(QWidget* widget, int duration) +{ + (QApplication::alert(widget, duration)); +} + +QList PythonQtWrapper_QApplication::static_QApplication_allWidgets() +{ + return (QApplication::allWidgets()); +} + +void PythonQtWrapper_QApplication::static_QApplication_beep() +{ + (QApplication::beep()); +} + +int PythonQtWrapper_QApplication::static_QApplication_colorSpec() +{ + return (QApplication::colorSpec()); +} + +int PythonQtWrapper_QApplication::static_QApplication_cursorFlashTime() +{ + return (QApplication::cursorFlashTime()); +} + +QDesktopWidget* PythonQtWrapper_QApplication::static_QApplication_desktop() +{ + return (QApplication::desktop()); +} + +int PythonQtWrapper_QApplication::static_QApplication_doubleClickInterval() +{ + return (QApplication::doubleClickInterval()); +} + +bool PythonQtWrapper_QApplication::event(QApplication* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QApplication*)theWrappedObject)->promoted_event(arg__1)); +} + +int PythonQtWrapper_QApplication::static_QApplication_exec() +{ + return (QApplication::exec()); +} + +QWidget* PythonQtWrapper_QApplication::static_QApplication_focusWidget() +{ + return (QApplication::focusWidget()); +} + +QFont PythonQtWrapper_QApplication::static_QApplication_font() +{ + return (QApplication::font()); +} + +QFont PythonQtWrapper_QApplication::static_QApplication_font(const QWidget* arg__1) +{ + return (QApplication::font(arg__1)); +} + +QSize PythonQtWrapper_QApplication::static_QApplication_globalStrut() +{ + return (QApplication::globalStrut()); +} + +bool PythonQtWrapper_QApplication::static_QApplication_isEffectEnabled(Qt::UIEffect arg__1) +{ + return (QApplication::isEffectEnabled(arg__1)); +} + +int PythonQtWrapper_QApplication::static_QApplication_keyboardInputInterval() +{ + return (QApplication::keyboardInputInterval()); +} + +bool PythonQtWrapper_QApplication::notify(QApplication* theWrappedObject, QObject* arg__1, QEvent* arg__2) +{ + return ( ((PythonQtPublicPromoter_QApplication*)theWrappedObject)->promoted_notify(arg__1, arg__2)); +} + +QPalette PythonQtWrapper_QApplication::static_QApplication_palette() +{ + return (QApplication::palette()); +} + +QPalette PythonQtWrapper_QApplication::static_QApplication_palette(const QWidget* arg__1) +{ + return (QApplication::palette(arg__1)); +} + +void PythonQtWrapper_QApplication::static_QApplication_setActiveWindow(QWidget* act) +{ + (QApplication::setActiveWindow(act)); +} + +void PythonQtWrapper_QApplication::static_QApplication_setColorSpec(int arg__1) +{ + (QApplication::setColorSpec(arg__1)); +} + +void PythonQtWrapper_QApplication::static_QApplication_setCursorFlashTime(int arg__1) +{ + (QApplication::setCursorFlashTime(arg__1)); +} + +void PythonQtWrapper_QApplication::static_QApplication_setDoubleClickInterval(int arg__1) +{ + (QApplication::setDoubleClickInterval(arg__1)); +} + +void PythonQtWrapper_QApplication::static_QApplication_setEffectEnabled(Qt::UIEffect arg__1, bool enable) +{ + (QApplication::setEffectEnabled(arg__1, enable)); +} + +void PythonQtWrapper_QApplication::static_QApplication_setFont(const QFont& arg__1, const char* className) +{ + (QApplication::setFont(arg__1, className)); +} + +void PythonQtWrapper_QApplication::static_QApplication_setGlobalStrut(const QSize& arg__1) +{ + (QApplication::setGlobalStrut(arg__1)); +} + +void PythonQtWrapper_QApplication::static_QApplication_setKeyboardInputInterval(int arg__1) +{ + (QApplication::setKeyboardInputInterval(arg__1)); +} + +void PythonQtWrapper_QApplication::static_QApplication_setPalette(const QPalette& arg__1, const char* className) +{ + (QApplication::setPalette(arg__1, className)); +} + +void PythonQtWrapper_QApplication::static_QApplication_setStartDragDistance(int l) +{ + (QApplication::setStartDragDistance(l)); +} + +void PythonQtWrapper_QApplication::static_QApplication_setStartDragTime(int ms) +{ + (QApplication::setStartDragTime(ms)); +} + +void PythonQtWrapper_QApplication::static_QApplication_setStyle(QStyle* arg__1) +{ + (QApplication::setStyle(arg__1)); +} + +QStyle* PythonQtWrapper_QApplication::static_QApplication_setStyle(const QString& arg__1) +{ + return (QApplication::setStyle(arg__1)); +} + +void PythonQtWrapper_QApplication::static_QApplication_setWheelScrollLines(int arg__1) +{ + (QApplication::setWheelScrollLines(arg__1)); +} + +void PythonQtWrapper_QApplication::static_QApplication_setWindowIcon(const QIcon& icon) +{ + (QApplication::setWindowIcon(icon)); +} + +int PythonQtWrapper_QApplication::static_QApplication_startDragDistance() +{ + return (QApplication::startDragDistance()); +} + +int PythonQtWrapper_QApplication::static_QApplication_startDragTime() +{ + return (QApplication::startDragTime()); +} + +QStyle* PythonQtWrapper_QApplication::static_QApplication_style() +{ + return (QApplication::style()); +} + +QString PythonQtWrapper_QApplication::styleSheet(QApplication* theWrappedObject) const +{ + return ( theWrappedObject->styleSheet()); +} + +QWidget* PythonQtWrapper_QApplication::static_QApplication_topLevelAt(const QPoint& p) +{ + return (QApplication::topLevelAt(p)); +} + +QWidget* PythonQtWrapper_QApplication::static_QApplication_topLevelAt(int x, int y) +{ + return (QApplication::topLevelAt(x, y)); +} + +QList PythonQtWrapper_QApplication::static_QApplication_topLevelWidgets() +{ + return (QApplication::topLevelWidgets()); +} + +int PythonQtWrapper_QApplication::static_QApplication_wheelScrollLines() +{ + return (QApplication::wheelScrollLines()); +} + +QWidget* PythonQtWrapper_QApplication::static_QApplication_widgetAt(const QPoint& p) +{ + return (QApplication::widgetAt(p)); +} + +QWidget* PythonQtWrapper_QApplication::static_QApplication_widgetAt(int x, int y) +{ + return (QApplication::widgetAt(x, y)); +} + +QIcon PythonQtWrapper_QApplication::static_QApplication_windowIcon() +{ + return (QApplication::windowIcon()); +} + + + +PythonQtShell_QBoxLayout::~PythonQtShell_QBoxLayout() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QBoxLayout::addItem(QLayoutItem* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "addItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QLayoutItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QBoxLayout::addItem(arg__1); +} +void PythonQtShell_QBoxLayout::childEvent(QChildEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QBoxLayout::childEvent(e); +} +QSizePolicy::ControlTypes PythonQtShell_QBoxLayout::controlTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "controlTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSizePolicy::ControlTypes"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSizePolicy::ControlTypes returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("controlTypes", methodInfo, result); + } else { + returnValue = *((QSizePolicy::ControlTypes*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBoxLayout::controlTypes(); +} +int PythonQtShell_QBoxLayout::count() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBoxLayout::count(); +} +void PythonQtShell_QBoxLayout::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QBoxLayout::customEvent(arg__1); +} +bool PythonQtShell_QBoxLayout::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBoxLayout::event(arg__1); +} +bool PythonQtShell_QBoxLayout::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBoxLayout::eventFilter(arg__1, arg__2); +} +Qt::Orientations PythonQtShell_QBoxLayout::expandingDirections() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::Orientations"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::Orientations returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); + } else { + returnValue = *((Qt::Orientations*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBoxLayout::expandingDirections(); +} +QRect PythonQtShell_QBoxLayout::geometry() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QRect returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBoxLayout::geometry(); +} +int PythonQtShell_QBoxLayout::indexOf(QWidget* arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOf"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexOf", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBoxLayout::indexOf(arg__1); +} +void PythonQtShell_QBoxLayout::invalidate() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QBoxLayout::invalidate(); +} +bool PythonQtShell_QBoxLayout::isEmpty() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBoxLayout::isEmpty(); +} +QLayoutItem* PythonQtShell_QBoxLayout::itemAt(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); + } else { + returnValue = *((QLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBoxLayout::itemAt(arg__1); +} +QLayout* PythonQtShell_QBoxLayout::layout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayout*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QLayout* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); + } else { + returnValue = *((QLayout**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBoxLayout::layout(); +} +QSize PythonQtShell_QBoxLayout::maximumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBoxLayout::maximumSize(); +} +QSize PythonQtShell_QBoxLayout::minimumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBoxLayout::minimumSize(); +} +void PythonQtShell_QBoxLayout::setGeometry(const QRect& arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QBoxLayout::setGeometry(arg__1); +} +QLayoutItem* PythonQtShell_QBoxLayout::takeAt(int arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "takeAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("takeAt", methodInfo, result); + } else { + returnValue = *((QLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBoxLayout::takeAt(arg__1); +} +void PythonQtShell_QBoxLayout::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QBoxLayout::timerEvent(arg__1); +} +QBoxLayout* PythonQtWrapper_QBoxLayout::new_QBoxLayout(QBoxLayout::Direction arg__1, QWidget* parent) +{ +return new PythonQtShell_QBoxLayout(arg__1, parent); } + +void PythonQtWrapper_QBoxLayout::addItem(QBoxLayout* theWrappedObject, QLayoutItem* arg__1) +{ + ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_addItem(arg__1)); +} + +void PythonQtWrapper_QBoxLayout::addLayout(QBoxLayout* theWrappedObject, QLayout* layout, int stretch) +{ + ( theWrappedObject->addLayout(layout, stretch)); +} + +void PythonQtWrapper_QBoxLayout::addSpacerItem(QBoxLayout* theWrappedObject, QSpacerItem* spacerItem) +{ + ( theWrappedObject->addSpacerItem(spacerItem)); +} + +void PythonQtWrapper_QBoxLayout::addSpacing(QBoxLayout* theWrappedObject, int size) +{ + ( theWrappedObject->addSpacing(size)); +} + +void PythonQtWrapper_QBoxLayout::addStretch(QBoxLayout* theWrappedObject, int stretch) +{ + ( theWrappedObject->addStretch(stretch)); +} + +void PythonQtWrapper_QBoxLayout::addStrut(QBoxLayout* theWrappedObject, int arg__1) +{ + ( theWrappedObject->addStrut(arg__1)); +} + +void PythonQtWrapper_QBoxLayout::addWidget(QBoxLayout* theWrappedObject, QWidget* arg__1, int stretch, Qt::Alignment alignment) +{ + ( theWrappedObject->addWidget(arg__1, stretch, alignment)); +} + +int PythonQtWrapper_QBoxLayout::count(QBoxLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_count()); +} + +QBoxLayout::Direction PythonQtWrapper_QBoxLayout::direction(QBoxLayout* theWrappedObject) const +{ + return ( theWrappedObject->direction()); +} + +Qt::Orientations PythonQtWrapper_QBoxLayout::expandingDirections(QBoxLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_expandingDirections()); +} + +bool PythonQtWrapper_QBoxLayout::hasHeightForWidth(QBoxLayout* theWrappedObject) const +{ + return ( theWrappedObject->hasHeightForWidth()); +} + +int PythonQtWrapper_QBoxLayout::heightForWidth(QBoxLayout* theWrappedObject, int arg__1) const +{ + return ( theWrappedObject->heightForWidth(arg__1)); +} + +void PythonQtWrapper_QBoxLayout::insertItem(QBoxLayout* theWrappedObject, int index, QLayoutItem* arg__2) +{ + ( theWrappedObject->insertItem(index, arg__2)); +} + +void PythonQtWrapper_QBoxLayout::insertLayout(QBoxLayout* theWrappedObject, int index, QLayout* layout, int stretch) +{ + ( theWrappedObject->insertLayout(index, layout, stretch)); +} + +void PythonQtWrapper_QBoxLayout::insertSpacerItem(QBoxLayout* theWrappedObject, int index, QSpacerItem* spacerItem) +{ + ( theWrappedObject->insertSpacerItem(index, spacerItem)); +} + +void PythonQtWrapper_QBoxLayout::insertSpacing(QBoxLayout* theWrappedObject, int index, int size) +{ + ( theWrappedObject->insertSpacing(index, size)); +} + +void PythonQtWrapper_QBoxLayout::insertStretch(QBoxLayout* theWrappedObject, int index, int stretch) +{ + ( theWrappedObject->insertStretch(index, stretch)); +} + +void PythonQtWrapper_QBoxLayout::insertWidget(QBoxLayout* theWrappedObject, int index, QWidget* widget, int stretch, Qt::Alignment alignment) +{ + ( theWrappedObject->insertWidget(index, widget, stretch, alignment)); +} + +void PythonQtWrapper_QBoxLayout::invalidate(QBoxLayout* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_invalidate()); +} + +QLayoutItem* PythonQtWrapper_QBoxLayout::itemAt(QBoxLayout* theWrappedObject, int arg__1) const +{ + return ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_itemAt(arg__1)); +} + +QSize PythonQtWrapper_QBoxLayout::maximumSize(QBoxLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_maximumSize()); +} + +int PythonQtWrapper_QBoxLayout::minimumHeightForWidth(QBoxLayout* theWrappedObject, int arg__1) const +{ + return ( theWrappedObject->minimumHeightForWidth(arg__1)); +} + +QSize PythonQtWrapper_QBoxLayout::minimumSize(QBoxLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_minimumSize()); +} + +void PythonQtWrapper_QBoxLayout::setDirection(QBoxLayout* theWrappedObject, QBoxLayout::Direction arg__1) +{ + ( theWrappedObject->setDirection(arg__1)); +} + +void PythonQtWrapper_QBoxLayout::setGeometry(QBoxLayout* theWrappedObject, const QRect& arg__1) +{ + ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_setGeometry(arg__1)); +} + +void PythonQtWrapper_QBoxLayout::setSpacing(QBoxLayout* theWrappedObject, int spacing) +{ + ( theWrappedObject->setSpacing(spacing)); +} + +void PythonQtWrapper_QBoxLayout::setStretch(QBoxLayout* theWrappedObject, int index, int stretch) +{ + ( theWrappedObject->setStretch(index, stretch)); +} + +bool PythonQtWrapper_QBoxLayout::setStretchFactor(QBoxLayout* theWrappedObject, QLayout* l, int stretch) +{ + return ( theWrappedObject->setStretchFactor(l, stretch)); +} + +bool PythonQtWrapper_QBoxLayout::setStretchFactor(QBoxLayout* theWrappedObject, QWidget* w, int stretch) +{ + return ( theWrappedObject->setStretchFactor(w, stretch)); +} + +QSize PythonQtWrapper_QBoxLayout::sizeHint(QBoxLayout* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +int PythonQtWrapper_QBoxLayout::spacing(QBoxLayout* theWrappedObject) const +{ + return ( theWrappedObject->spacing()); +} + +int PythonQtWrapper_QBoxLayout::stretch(QBoxLayout* theWrappedObject, int index) const +{ + return ( theWrappedObject->stretch(index)); +} + +QLayoutItem* PythonQtWrapper_QBoxLayout::takeAt(QBoxLayout* theWrappedObject, int arg__1) +{ + return ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_takeAt(arg__1)); +} + + + +PythonQtShell_QButtonGroup::~PythonQtShell_QButtonGroup() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QButtonGroup::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QButtonGroup::childEvent(arg__1); +} +void PythonQtShell_QButtonGroup::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QButtonGroup::customEvent(arg__1); +} +bool PythonQtShell_QButtonGroup::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QButtonGroup::event(arg__1); +} +bool PythonQtShell_QButtonGroup::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QButtonGroup::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QButtonGroup::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QButtonGroup::timerEvent(arg__1); +} +QButtonGroup* PythonQtWrapper_QButtonGroup::new_QButtonGroup(QObject* parent) +{ +return new PythonQtShell_QButtonGroup(parent); } + +void PythonQtWrapper_QButtonGroup::addButton(QButtonGroup* theWrappedObject, QAbstractButton* arg__1, int id) +{ + ( theWrappedObject->addButton(arg__1, id)); +} + +QAbstractButton* PythonQtWrapper_QButtonGroup::button(QButtonGroup* theWrappedObject, int id) const +{ + return ( theWrappedObject->button(id)); +} + +QList PythonQtWrapper_QButtonGroup::buttons(QButtonGroup* theWrappedObject) const +{ + return ( theWrappedObject->buttons()); +} + +QAbstractButton* PythonQtWrapper_QButtonGroup::checkedButton(QButtonGroup* theWrappedObject) const +{ + return ( theWrappedObject->checkedButton()); +} + +int PythonQtWrapper_QButtonGroup::checkedId(QButtonGroup* theWrappedObject) const +{ + return ( theWrappedObject->checkedId()); +} + +bool PythonQtWrapper_QButtonGroup::exclusive(QButtonGroup* theWrappedObject) const +{ + return ( theWrappedObject->exclusive()); +} + +int PythonQtWrapper_QButtonGroup::id(QButtonGroup* theWrappedObject, QAbstractButton* button) const +{ + return ( theWrappedObject->id(button)); +} + +void PythonQtWrapper_QButtonGroup::removeButton(QButtonGroup* theWrappedObject, QAbstractButton* arg__1) +{ + ( theWrappedObject->removeButton(arg__1)); +} + +void PythonQtWrapper_QButtonGroup::setExclusive(QButtonGroup* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setExclusive(arg__1)); +} + +void PythonQtWrapper_QButtonGroup::setId(QButtonGroup* theWrappedObject, QAbstractButton* button, int id) +{ + ( theWrappedObject->setId(button, id)); +} + + + +PythonQtShell_QCalendarWidget::~PythonQtShell_QCalendarWidget() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QCalendarWidget::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::actionEvent(arg__1); +} +void PythonQtShell_QCalendarWidget::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::changeEvent(arg__1); +} +void PythonQtShell_QCalendarWidget::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::childEvent(arg__1); +} +void PythonQtShell_QCalendarWidget::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::closeEvent(arg__1); +} +void PythonQtShell_QCalendarWidget::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::contextMenuEvent(arg__1); +} +void PythonQtShell_QCalendarWidget::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::customEvent(arg__1); +} +int PythonQtShell_QCalendarWidget::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCalendarWidget::devType(); +} +void PythonQtShell_QCalendarWidget::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::dragEnterEvent(arg__1); +} +void PythonQtShell_QCalendarWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::dragLeaveEvent(arg__1); +} +void PythonQtShell_QCalendarWidget::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::dragMoveEvent(arg__1); +} +void PythonQtShell_QCalendarWidget::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::dropEvent(arg__1); +} +void PythonQtShell_QCalendarWidget::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::enterEvent(arg__1); +} +bool PythonQtShell_QCalendarWidget::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCalendarWidget::event(event); +} +bool PythonQtShell_QCalendarWidget::eventFilter(QObject* watched, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&watched, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCalendarWidget::eventFilter(watched, event); +} +void PythonQtShell_QCalendarWidget::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::focusInEvent(arg__1); +} +bool PythonQtShell_QCalendarWidget::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCalendarWidget::focusNextPrevChild(next); +} +void PythonQtShell_QCalendarWidget::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::focusOutEvent(arg__1); +} +bool PythonQtShell_QCalendarWidget::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCalendarWidget::hasHeightForWidth(); +} +int PythonQtShell_QCalendarWidget::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCalendarWidget::heightForWidth(arg__1); +} +void PythonQtShell_QCalendarWidget::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::hideEvent(arg__1); +} +void PythonQtShell_QCalendarWidget::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::initPainter(painter); +} +void PythonQtShell_QCalendarWidget::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QCalendarWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCalendarWidget::inputMethodQuery(arg__1); +} +void PythonQtShell_QCalendarWidget::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::keyPressEvent(event); +} +void PythonQtShell_QCalendarWidget::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::keyReleaseEvent(arg__1); +} +void PythonQtShell_QCalendarWidget::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::leaveEvent(arg__1); +} +int PythonQtShell_QCalendarWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCalendarWidget::metric(arg__1); +} +QSize PythonQtShell_QCalendarWidget::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCalendarWidget::minimumSizeHint(); +} +void PythonQtShell_QCalendarWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QCalendarWidget::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::mouseMoveEvent(arg__1); +} +void PythonQtShell_QCalendarWidget::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::mousePressEvent(event); +} +void PythonQtShell_QCalendarWidget::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QCalendarWidget::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::moveEvent(arg__1); +} +bool PythonQtShell_QCalendarWidget::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCalendarWidget::nativeEvent(eventType, message, result); +} +void PythonQtShell_QCalendarWidget::paintCell(QPainter* painter, const QRect& rect, const QDate& date) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintCell"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "const QDate&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&rect, (void*)&date}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::paintCell(painter, rect, date); +} +QPaintEngine* PythonQtShell_QCalendarWidget::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCalendarWidget::paintEngine(); +} +void PythonQtShell_QCalendarWidget::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QCalendarWidget::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCalendarWidget::redirected(offset); +} +void PythonQtShell_QCalendarWidget::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::resizeEvent(event); +} +QPainter* PythonQtShell_QCalendarWidget::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCalendarWidget::sharedPainter(); +} +void PythonQtShell_QCalendarWidget::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::showEvent(arg__1); +} +QSize PythonQtShell_QCalendarWidget::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCalendarWidget::sizeHint(); +} +void PythonQtShell_QCalendarWidget::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::tabletEvent(arg__1); +} +void PythonQtShell_QCalendarWidget::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::timerEvent(arg__1); +} +void PythonQtShell_QCalendarWidget::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCalendarWidget::wheelEvent(arg__1); +} +QCalendarWidget* PythonQtWrapper_QCalendarWidget::new_QCalendarWidget(QWidget* parent) +{ +return new PythonQtShell_QCalendarWidget(parent); } + +int PythonQtWrapper_QCalendarWidget::dateEditAcceptDelay(QCalendarWidget* theWrappedObject) const +{ + return ( theWrappedObject->dateEditAcceptDelay()); +} + +QMap PythonQtWrapper_QCalendarWidget::dateTextFormat(QCalendarWidget* theWrappedObject) const +{ + return ( theWrappedObject->dateTextFormat()); +} + +QTextCharFormat PythonQtWrapper_QCalendarWidget::dateTextFormat(QCalendarWidget* theWrappedObject, const QDate& date) const +{ + return ( theWrappedObject->dateTextFormat(date)); +} + +bool PythonQtWrapper_QCalendarWidget::event(QCalendarWidget* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QCalendarWidget*)theWrappedObject)->promoted_event(event)); +} + +bool PythonQtWrapper_QCalendarWidget::eventFilter(QCalendarWidget* theWrappedObject, QObject* watched, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QCalendarWidget*)theWrappedObject)->promoted_eventFilter(watched, event)); +} + +Qt::DayOfWeek PythonQtWrapper_QCalendarWidget::firstDayOfWeek(QCalendarWidget* theWrappedObject) const +{ + return ( theWrappedObject->firstDayOfWeek()); +} + +QTextCharFormat PythonQtWrapper_QCalendarWidget::headerTextFormat(QCalendarWidget* theWrappedObject) const +{ + return ( theWrappedObject->headerTextFormat()); +} + +QCalendarWidget::HorizontalHeaderFormat PythonQtWrapper_QCalendarWidget::horizontalHeaderFormat(QCalendarWidget* theWrappedObject) const +{ + return ( theWrappedObject->horizontalHeaderFormat()); +} + +bool PythonQtWrapper_QCalendarWidget::isDateEditEnabled(QCalendarWidget* theWrappedObject) const +{ + return ( theWrappedObject->isDateEditEnabled()); +} + +bool PythonQtWrapper_QCalendarWidget::isGridVisible(QCalendarWidget* theWrappedObject) const +{ + return ( theWrappedObject->isGridVisible()); +} + +bool PythonQtWrapper_QCalendarWidget::isNavigationBarVisible(QCalendarWidget* theWrappedObject) const +{ + return ( theWrappedObject->isNavigationBarVisible()); +} + +void PythonQtWrapper_QCalendarWidget::keyPressEvent(QCalendarWidget* theWrappedObject, QKeyEvent* event) +{ + ( ((PythonQtPublicPromoter_QCalendarWidget*)theWrappedObject)->promoted_keyPressEvent(event)); +} + +QDate PythonQtWrapper_QCalendarWidget::maximumDate(QCalendarWidget* theWrappedObject) const +{ + return ( theWrappedObject->maximumDate()); +} + +QDate PythonQtWrapper_QCalendarWidget::minimumDate(QCalendarWidget* theWrappedObject) const +{ + return ( theWrappedObject->minimumDate()); +} + +QSize PythonQtWrapper_QCalendarWidget::minimumSizeHint(QCalendarWidget* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QCalendarWidget*)theWrappedObject)->promoted_minimumSizeHint()); +} + +int PythonQtWrapper_QCalendarWidget::monthShown(QCalendarWidget* theWrappedObject) const +{ + return ( theWrappedObject->monthShown()); +} + +void PythonQtWrapper_QCalendarWidget::mousePressEvent(QCalendarWidget* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QCalendarWidget*)theWrappedObject)->promoted_mousePressEvent(event)); +} + +void PythonQtWrapper_QCalendarWidget::paintCell(QCalendarWidget* theWrappedObject, QPainter* painter, const QRect& rect, const QDate& date) const +{ + ( ((PythonQtPublicPromoter_QCalendarWidget*)theWrappedObject)->promoted_paintCell(painter, rect, date)); +} + +void PythonQtWrapper_QCalendarWidget::resizeEvent(QCalendarWidget* theWrappedObject, QResizeEvent* event) +{ + ( ((PythonQtPublicPromoter_QCalendarWidget*)theWrappedObject)->promoted_resizeEvent(event)); +} + +QDate PythonQtWrapper_QCalendarWidget::selectedDate(QCalendarWidget* theWrappedObject) const +{ + return ( theWrappedObject->selectedDate()); +} + +QCalendarWidget::SelectionMode PythonQtWrapper_QCalendarWidget::selectionMode(QCalendarWidget* theWrappedObject) const +{ + return ( theWrappedObject->selectionMode()); +} + +void PythonQtWrapper_QCalendarWidget::setDateEditAcceptDelay(QCalendarWidget* theWrappedObject, int delay) +{ + ( theWrappedObject->setDateEditAcceptDelay(delay)); +} + +void PythonQtWrapper_QCalendarWidget::setDateEditEnabled(QCalendarWidget* theWrappedObject, bool enable) +{ + ( theWrappedObject->setDateEditEnabled(enable)); +} + +void PythonQtWrapper_QCalendarWidget::setDateTextFormat(QCalendarWidget* theWrappedObject, const QDate& date, const QTextCharFormat& format) +{ + ( theWrappedObject->setDateTextFormat(date, format)); +} + +void PythonQtWrapper_QCalendarWidget::setFirstDayOfWeek(QCalendarWidget* theWrappedObject, Qt::DayOfWeek dayOfWeek) +{ + ( theWrappedObject->setFirstDayOfWeek(dayOfWeek)); +} + +void PythonQtWrapper_QCalendarWidget::setHeaderTextFormat(QCalendarWidget* theWrappedObject, const QTextCharFormat& format) +{ + ( theWrappedObject->setHeaderTextFormat(format)); +} + +void PythonQtWrapper_QCalendarWidget::setHorizontalHeaderFormat(QCalendarWidget* theWrappedObject, QCalendarWidget::HorizontalHeaderFormat format) +{ + ( theWrappedObject->setHorizontalHeaderFormat(format)); +} + +void PythonQtWrapper_QCalendarWidget::setMaximumDate(QCalendarWidget* theWrappedObject, const QDate& date) +{ + ( theWrappedObject->setMaximumDate(date)); +} + +void PythonQtWrapper_QCalendarWidget::setMinimumDate(QCalendarWidget* theWrappedObject, const QDate& date) +{ + ( theWrappedObject->setMinimumDate(date)); +} + +void PythonQtWrapper_QCalendarWidget::setSelectionMode(QCalendarWidget* theWrappedObject, QCalendarWidget::SelectionMode mode) +{ + ( theWrappedObject->setSelectionMode(mode)); +} + +void PythonQtWrapper_QCalendarWidget::setVerticalHeaderFormat(QCalendarWidget* theWrappedObject, QCalendarWidget::VerticalHeaderFormat format) +{ + ( theWrappedObject->setVerticalHeaderFormat(format)); +} + +void PythonQtWrapper_QCalendarWidget::setWeekdayTextFormat(QCalendarWidget* theWrappedObject, Qt::DayOfWeek dayOfWeek, const QTextCharFormat& format) +{ + ( theWrappedObject->setWeekdayTextFormat(dayOfWeek, format)); +} + +QSize PythonQtWrapper_QCalendarWidget::sizeHint(QCalendarWidget* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QCalendarWidget*)theWrappedObject)->promoted_sizeHint()); +} + +QCalendarWidget::VerticalHeaderFormat PythonQtWrapper_QCalendarWidget::verticalHeaderFormat(QCalendarWidget* theWrappedObject) const +{ + return ( theWrappedObject->verticalHeaderFormat()); +} + +QTextCharFormat PythonQtWrapper_QCalendarWidget::weekdayTextFormat(QCalendarWidget* theWrappedObject, Qt::DayOfWeek dayOfWeek) const +{ + return ( theWrappedObject->weekdayTextFormat(dayOfWeek)); +} + +int PythonQtWrapper_QCalendarWidget::yearShown(QCalendarWidget* theWrappedObject) const +{ + return ( theWrappedObject->yearShown()); +} + + + +PythonQtShell_QCheckBox::~PythonQtShell_QCheckBox() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QCheckBox::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::actionEvent(arg__1); +} +void PythonQtShell_QCheckBox::changeEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::changeEvent(e); +} +void PythonQtShell_QCheckBox::checkStateSet() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "checkStateSet"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::checkStateSet(); +} +void PythonQtShell_QCheckBox::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::childEvent(arg__1); +} +void PythonQtShell_QCheckBox::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::closeEvent(arg__1); +} +void PythonQtShell_QCheckBox::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::contextMenuEvent(arg__1); +} +void PythonQtShell_QCheckBox::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::customEvent(arg__1); +} +int PythonQtShell_QCheckBox::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCheckBox::devType(); +} +void PythonQtShell_QCheckBox::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::dragEnterEvent(arg__1); +} +void PythonQtShell_QCheckBox::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::dragLeaveEvent(arg__1); +} +void PythonQtShell_QCheckBox::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::dragMoveEvent(arg__1); +} +void PythonQtShell_QCheckBox::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::dropEvent(arg__1); +} +void PythonQtShell_QCheckBox::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::enterEvent(arg__1); +} +bool PythonQtShell_QCheckBox::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCheckBox::event(e); +} +bool PythonQtShell_QCheckBox::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCheckBox::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QCheckBox::focusInEvent(QFocusEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::focusInEvent(e); +} +bool PythonQtShell_QCheckBox::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCheckBox::focusNextPrevChild(next); +} +void PythonQtShell_QCheckBox::focusOutEvent(QFocusEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::focusOutEvent(e); +} +bool PythonQtShell_QCheckBox::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCheckBox::hasHeightForWidth(); +} +int PythonQtShell_QCheckBox::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCheckBox::heightForWidth(arg__1); +} +void PythonQtShell_QCheckBox::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::hideEvent(arg__1); +} +bool PythonQtShell_QCheckBox::hitButton(const QPoint& pos) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitButton"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPoint&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hitButton", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCheckBox::hitButton(pos); +} +void PythonQtShell_QCheckBox::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::initPainter(painter); +} +void PythonQtShell_QCheckBox::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QCheckBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCheckBox::inputMethodQuery(arg__1); +} +void PythonQtShell_QCheckBox::keyPressEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::keyPressEvent(e); +} +void PythonQtShell_QCheckBox::keyReleaseEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::keyReleaseEvent(e); +} +void PythonQtShell_QCheckBox::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::leaveEvent(arg__1); +} +int PythonQtShell_QCheckBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCheckBox::metric(arg__1); +} +void PythonQtShell_QCheckBox::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QCheckBox::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::mouseMoveEvent(arg__1); +} +void PythonQtShell_QCheckBox::mousePressEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::mousePressEvent(e); +} +void PythonQtShell_QCheckBox::mouseReleaseEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::mouseReleaseEvent(e); +} +void PythonQtShell_QCheckBox::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::moveEvent(arg__1); +} +bool PythonQtShell_QCheckBox::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCheckBox::nativeEvent(eventType, message, result); +} +void PythonQtShell_QCheckBox::nextCheckState() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextCheckState"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::nextCheckState(); +} +QPaintEngine* PythonQtShell_QCheckBox::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCheckBox::paintEngine(); +} +void PythonQtShell_QCheckBox::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QCheckBox::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCheckBox::redirected(offset); +} +void PythonQtShell_QCheckBox::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QCheckBox::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCheckBox::sharedPainter(); +} +void PythonQtShell_QCheckBox::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::showEvent(arg__1); +} +void PythonQtShell_QCheckBox::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::tabletEvent(arg__1); +} +void PythonQtShell_QCheckBox::timerEvent(QTimerEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::timerEvent(e); +} +void PythonQtShell_QCheckBox::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCheckBox::wheelEvent(arg__1); +} +QCheckBox* PythonQtWrapper_QCheckBox::new_QCheckBox(QWidget* parent) +{ +return new PythonQtShell_QCheckBox(parent); } + +QCheckBox* PythonQtWrapper_QCheckBox::new_QCheckBox(const QString& text, QWidget* parent) +{ +return new PythonQtShell_QCheckBox(text, parent); } + +Qt::CheckState PythonQtWrapper_QCheckBox::checkState(QCheckBox* theWrappedObject) const +{ + return ( theWrappedObject->checkState()); +} + +void PythonQtWrapper_QCheckBox::checkStateSet(QCheckBox* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QCheckBox*)theWrappedObject)->promoted_checkStateSet()); +} + +bool PythonQtWrapper_QCheckBox::event(QCheckBox* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QCheckBox*)theWrappedObject)->promoted_event(e)); +} + +bool PythonQtWrapper_QCheckBox::hitButton(QCheckBox* theWrappedObject, const QPoint& pos) const +{ + return ( ((PythonQtPublicPromoter_QCheckBox*)theWrappedObject)->promoted_hitButton(pos)); +} + +bool PythonQtWrapper_QCheckBox::isTristate(QCheckBox* theWrappedObject) const +{ + return ( theWrappedObject->isTristate()); +} + +QSize PythonQtWrapper_QCheckBox::minimumSizeHint(QCheckBox* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +void PythonQtWrapper_QCheckBox::mouseMoveEvent(QCheckBox* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QCheckBox*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); +} + +void PythonQtWrapper_QCheckBox::nextCheckState(QCheckBox* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QCheckBox*)theWrappedObject)->promoted_nextCheckState()); +} + +void PythonQtWrapper_QCheckBox::paintEvent(QCheckBox* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QCheckBox*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +void PythonQtWrapper_QCheckBox::setCheckState(QCheckBox* theWrappedObject, Qt::CheckState state) +{ + ( theWrappedObject->setCheckState(state)); +} + +void PythonQtWrapper_QCheckBox::setTristate(QCheckBox* theWrappedObject, bool y) +{ + ( theWrappedObject->setTristate(y)); +} + +QSize PythonQtWrapper_QCheckBox::sizeHint(QCheckBox* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +#endif + +void PythonQtWrapper_QClipboard::clear(QClipboard* theWrappedObject, QClipboard::Mode mode) +{ + ( theWrappedObject->clear(mode)); +} + +QImage PythonQtWrapper_QClipboard::image(QClipboard* theWrappedObject, QClipboard::Mode mode) const +{ + return ( theWrappedObject->image(mode)); +} + +const QMimeData* PythonQtWrapper_QClipboard::mimeData(QClipboard* theWrappedObject, QClipboard::Mode mode) const +{ + return ( theWrappedObject->mimeData(mode)); +} + +bool PythonQtWrapper_QClipboard::ownsClipboard(QClipboard* theWrappedObject) const +{ + return ( theWrappedObject->ownsClipboard()); +} + +bool PythonQtWrapper_QClipboard::ownsFindBuffer(QClipboard* theWrappedObject) const +{ + return ( theWrappedObject->ownsFindBuffer()); +} + +bool PythonQtWrapper_QClipboard::ownsSelection(QClipboard* theWrappedObject) const +{ + return ( theWrappedObject->ownsSelection()); +} + +QPixmap PythonQtWrapper_QClipboard::pixmap(QClipboard* theWrappedObject, QClipboard::Mode mode) const +{ + return ( theWrappedObject->pixmap(mode)); +} + +void PythonQtWrapper_QClipboard::setImage(QClipboard* theWrappedObject, const QImage& arg__1, QClipboard::Mode mode) +{ + ( theWrappedObject->setImage(arg__1, mode)); +} + +void PythonQtWrapper_QClipboard::setMimeData(QClipboard* theWrappedObject, QMimeData* data, QClipboard::Mode mode) +{ + ( theWrappedObject->setMimeData(data, mode)); +} + +void PythonQtWrapper_QClipboard::setPixmap(QClipboard* theWrappedObject, const QPixmap& arg__1, QClipboard::Mode mode) +{ + ( theWrappedObject->setPixmap(arg__1, mode)); +} + +void PythonQtWrapper_QClipboard::setText(QClipboard* theWrappedObject, const QString& arg__1, QClipboard::Mode mode) +{ + ( theWrappedObject->setText(arg__1, mode)); +} + +bool PythonQtWrapper_QClipboard::supportsFindBuffer(QClipboard* theWrappedObject) const +{ + return ( theWrappedObject->supportsFindBuffer()); +} + +bool PythonQtWrapper_QClipboard::supportsSelection(QClipboard* theWrappedObject) const +{ + return ( theWrappedObject->supportsSelection()); +} + +QString PythonQtWrapper_QClipboard::text(QClipboard* theWrappedObject, QClipboard::Mode mode) const +{ + return ( theWrappedObject->text(mode)); +} + +QString PythonQtWrapper_QClipboard::text(QClipboard* theWrappedObject, QString& subtype, QClipboard::Mode mode) const +{ + return ( theWrappedObject->text(subtype, mode)); +} + + + +QCloseEvent* PythonQtWrapper_QCloseEvent::new_QCloseEvent() +{ +return new QCloseEvent(); } + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QColorDialog::~PythonQtShell_QColorDialog() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QColorDialog::accept() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::accept(); +} +void PythonQtShell_QColorDialog::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::actionEvent(arg__1); +} +void PythonQtShell_QColorDialog::changeEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::changeEvent(event); +} +void PythonQtShell_QColorDialog::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::childEvent(arg__1); +} +void PythonQtShell_QColorDialog::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::closeEvent(arg__1); +} +void PythonQtShell_QColorDialog::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::contextMenuEvent(arg__1); +} +void PythonQtShell_QColorDialog::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::customEvent(arg__1); +} +int PythonQtShell_QColorDialog::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColorDialog::devType(); +} +void PythonQtShell_QColorDialog::done(int result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::done(result); +} +void PythonQtShell_QColorDialog::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::dragEnterEvent(arg__1); +} +void PythonQtShell_QColorDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::dragLeaveEvent(arg__1); +} +void PythonQtShell_QColorDialog::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::dragMoveEvent(arg__1); +} +void PythonQtShell_QColorDialog::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::dropEvent(arg__1); +} +void PythonQtShell_QColorDialog::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::enterEvent(arg__1); +} +bool PythonQtShell_QColorDialog::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColorDialog::event(arg__1); +} +bool PythonQtShell_QColorDialog::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColorDialog::eventFilter(arg__1, arg__2); +} +int PythonQtShell_QColorDialog::exec() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColorDialog::exec(); +} +void PythonQtShell_QColorDialog::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::focusInEvent(arg__1); +} +bool PythonQtShell_QColorDialog::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColorDialog::focusNextPrevChild(next); +} +void PythonQtShell_QColorDialog::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::focusOutEvent(arg__1); +} +bool PythonQtShell_QColorDialog::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColorDialog::hasHeightForWidth(); +} +int PythonQtShell_QColorDialog::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColorDialog::heightForWidth(arg__1); +} +void PythonQtShell_QColorDialog::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::hideEvent(arg__1); +} +void PythonQtShell_QColorDialog::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::initPainter(painter); +} +void PythonQtShell_QColorDialog::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QColorDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColorDialog::inputMethodQuery(arg__1); +} +void PythonQtShell_QColorDialog::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::keyPressEvent(arg__1); +} +void PythonQtShell_QColorDialog::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::keyReleaseEvent(arg__1); +} +void PythonQtShell_QColorDialog::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::leaveEvent(arg__1); +} +int PythonQtShell_QColorDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColorDialog::metric(arg__1); +} +void PythonQtShell_QColorDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QColorDialog::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::mouseMoveEvent(arg__1); +} +void PythonQtShell_QColorDialog::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::mousePressEvent(arg__1); +} +void PythonQtShell_QColorDialog::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QColorDialog::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::moveEvent(arg__1); +} +bool PythonQtShell_QColorDialog::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColorDialog::nativeEvent(eventType, message, result); +} +void PythonQtShell_QColorDialog::open() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::open(); +} +QPaintEngine* PythonQtShell_QColorDialog::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColorDialog::paintEngine(); +} +void PythonQtShell_QColorDialog::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QColorDialog::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColorDialog::redirected(offset); +} +void PythonQtShell_QColorDialog::reject() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::reject(); +} +void PythonQtShell_QColorDialog::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QColorDialog::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColorDialog::sharedPainter(); +} +void PythonQtShell_QColorDialog::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::showEvent(arg__1); +} +void PythonQtShell_QColorDialog::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::tabletEvent(arg__1); +} +void PythonQtShell_QColorDialog::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::timerEvent(arg__1); +} +void PythonQtShell_QColorDialog::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColorDialog::wheelEvent(arg__1); +} +QColorDialog* PythonQtWrapper_QColorDialog::new_QColorDialog(QWidget* parent) +{ +return new PythonQtShell_QColorDialog(parent); } + +QColorDialog* PythonQtWrapper_QColorDialog::new_QColorDialog(const QColor& initial, QWidget* parent) +{ +return new PythonQtShell_QColorDialog(initial, parent); } + +void PythonQtWrapper_QColorDialog::changeEvent(QColorDialog* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QColorDialog*)theWrappedObject)->promoted_changeEvent(event)); +} + +QColor PythonQtWrapper_QColorDialog::currentColor(QColorDialog* theWrappedObject) const +{ + return ( theWrappedObject->currentColor()); +} + +QColor PythonQtWrapper_QColorDialog::static_QColorDialog_customColor(int index) +{ + return (QColorDialog::customColor(index)); +} + +int PythonQtWrapper_QColorDialog::static_QColorDialog_customCount() +{ + return (QColorDialog::customCount()); +} + +void PythonQtWrapper_QColorDialog::done(QColorDialog* theWrappedObject, int result) +{ + ( ((PythonQtPublicPromoter_QColorDialog*)theWrappedObject)->promoted_done(result)); +} + +QColor PythonQtWrapper_QColorDialog::static_QColorDialog_getColor(const QColor& initial, QWidget* parent, const QString& title, QColorDialog::ColorDialogOptions options) +{ + return (QColorDialog::getColor(initial, parent, title, options)); +} + +void PythonQtWrapper_QColorDialog::open(QColorDialog* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QColorDialog*)theWrappedObject)->promoted_open()); +} + +void PythonQtWrapper_QColorDialog::open(QColorDialog* theWrappedObject, QObject* receiver, const char* member) +{ + ( theWrappedObject->open(receiver, member)); +} + +QColorDialog::ColorDialogOptions PythonQtWrapper_QColorDialog::options(QColorDialog* theWrappedObject) const +{ + return ( theWrappedObject->options()); +} + +QColor PythonQtWrapper_QColorDialog::selectedColor(QColorDialog* theWrappedObject) const +{ + return ( theWrappedObject->selectedColor()); +} + +void PythonQtWrapper_QColorDialog::setCurrentColor(QColorDialog* theWrappedObject, const QColor& color) +{ + ( theWrappedObject->setCurrentColor(color)); +} + +void PythonQtWrapper_QColorDialog::static_QColorDialog_setCustomColor(int index, QColor color) +{ + (QColorDialog::setCustomColor(index, color)); +} + +void PythonQtWrapper_QColorDialog::setOption(QColorDialog* theWrappedObject, QColorDialog::ColorDialogOption option, bool on) +{ + ( theWrappedObject->setOption(option, on)); +} + +void PythonQtWrapper_QColorDialog::setOptions(QColorDialog* theWrappedObject, QColorDialog::ColorDialogOptions options) +{ + ( theWrappedObject->setOptions(options)); +} + +void PythonQtWrapper_QColorDialog::static_QColorDialog_setStandardColor(int index, QColor color) +{ + (QColorDialog::setStandardColor(index, color)); +} + +void PythonQtWrapper_QColorDialog::setVisible(QColorDialog* theWrappedObject, bool visible) +{ + ( theWrappedObject->setVisible(visible)); +} + +QColor PythonQtWrapper_QColorDialog::static_QColorDialog_standardColor(int index) +{ + return (QColorDialog::standardColor(index)); +} + +bool PythonQtWrapper_QColorDialog::testOption(QColorDialog* theWrappedObject, QColorDialog::ColorDialogOption option) const +{ + return ( theWrappedObject->testOption(option)); +} + + + +PythonQtShell_QColumnView::~PythonQtShell_QColumnView() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QColumnView::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::actionEvent(arg__1); +} +void PythonQtShell_QColumnView::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::changeEvent(arg__1); +} +void PythonQtShell_QColumnView::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::childEvent(arg__1); +} +void PythonQtShell_QColumnView::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&editor, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::closeEditor(editor, hint); +} +void PythonQtShell_QColumnView::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::closeEvent(arg__1); +} +void PythonQtShell_QColumnView::commitData(QWidget* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::commitData(editor); +} +void PythonQtShell_QColumnView::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::contextMenuEvent(arg__1); +} +QAbstractItemView* PythonQtShell_QColumnView::createColumn(const QModelIndex& rootIndex) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createColumn"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QAbstractItemView*" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QAbstractItemView* returnValue; + void* args[2] = {NULL, (void*)&rootIndex}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createColumn", methodInfo, result); + } else { + returnValue = *((QAbstractItemView**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::createColumn(rootIndex); +} +void PythonQtShell_QColumnView::currentChanged(const QModelIndex& current, const QModelIndex& previous) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)¤t, (void*)&previous}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::currentChanged(current, previous); +} +void PythonQtShell_QColumnView::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::customEvent(arg__1); +} +void PythonQtShell_QColumnView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&" , "const QVector&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&topLeft, (void*)&bottomRight, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::dataChanged(topLeft, bottomRight, roles); +} +int PythonQtShell_QColumnView::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::devType(); +} +void PythonQtShell_QColumnView::doItemsLayout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::doItemsLayout(); +} +void PythonQtShell_QColumnView::dragEnterEvent(QDragEnterEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::dragEnterEvent(event); +} +void PythonQtShell_QColumnView::dragLeaveEvent(QDragLeaveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::dragLeaveEvent(event); +} +void PythonQtShell_QColumnView::dragMoveEvent(QDragMoveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::dragMoveEvent(event); +} +void PythonQtShell_QColumnView::dropEvent(QDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::dropEvent(event); +} +bool PythonQtShell_QColumnView::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::edit(index, trigger, event); +} +void PythonQtShell_QColumnView::editorDestroyed(QObject* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QObject*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::editorDestroyed(editor); +} +void PythonQtShell_QColumnView::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::enterEvent(arg__1); +} +bool PythonQtShell_QColumnView::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::event(event); +} +bool PythonQtShell_QColumnView::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QColumnView::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::focusInEvent(event); +} +bool PythonQtShell_QColumnView::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::focusNextPrevChild(next); +} +void PythonQtShell_QColumnView::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::focusOutEvent(event); +} +bool PythonQtShell_QColumnView::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::hasHeightForWidth(); +} +int PythonQtShell_QColumnView::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::heightForWidth(arg__1); +} +void PythonQtShell_QColumnView::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::hideEvent(arg__1); +} +int PythonQtShell_QColumnView::horizontalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::horizontalOffset(); +} +void PythonQtShell_QColumnView::horizontalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::horizontalScrollbarAction(action); +} +void PythonQtShell_QColumnView::horizontalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::horizontalScrollbarValueChanged(value); +} +QModelIndex PythonQtShell_QColumnView::indexAt(const QPoint& point) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&point}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::indexAt(point); +} +void PythonQtShell_QColumnView::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::initPainter(painter); +} +void PythonQtShell_QColumnView::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::inputMethodEvent(event); +} +QVariant PythonQtShell_QColumnView::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::inputMethodQuery(query); +} +bool PythonQtShell_QColumnView::isIndexHidden(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::isIndexHidden(index); +} +void PythonQtShell_QColumnView::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::keyPressEvent(event); +} +void PythonQtShell_QColumnView::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::keyReleaseEvent(arg__1); +} +void PythonQtShell_QColumnView::keyboardSearch(const QString& search) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&search}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::keyboardSearch(search); +} +void PythonQtShell_QColumnView::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::leaveEvent(arg__1); +} +int PythonQtShell_QColumnView::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::metric(arg__1); +} +void PythonQtShell_QColumnView::mouseDoubleClickEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::mouseDoubleClickEvent(event); +} +void PythonQtShell_QColumnView::mouseMoveEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::mouseMoveEvent(event); +} +void PythonQtShell_QColumnView::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::mousePressEvent(event); +} +void PythonQtShell_QColumnView::mouseReleaseEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::mouseReleaseEvent(event); +} +void PythonQtShell_QColumnView::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::moveEvent(arg__1); +} +bool PythonQtShell_QColumnView::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QColumnView::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::paintEngine(); +} +void PythonQtShell_QColumnView::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QColumnView::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::redirected(offset); +} +void PythonQtShell_QColumnView::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::reset(); +} +void PythonQtShell_QColumnView::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::resizeEvent(event); +} +void PythonQtShell_QColumnView::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::rowsAboutToBeRemoved(parent, start, end); +} +void PythonQtShell_QColumnView::rowsInserted(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::rowsInserted(parent, start, end); +} +void PythonQtShell_QColumnView::scrollContentsBy(int dx, int dy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&dx, (void*)&dy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::scrollContentsBy(dx, dy); +} +void PythonQtShell_QColumnView::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&index, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::scrollTo(index, hint); +} +void PythonQtShell_QColumnView::selectAll() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::selectAll(); +} +QList PythonQtShell_QColumnView::selectedIndexes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::selectedIndexes(); +} +void PythonQtShell_QColumnView::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::selectionChanged(selected, deselected); +} +QItemSelectionModel::SelectionFlags PythonQtShell_QColumnView::selectionCommand(const QModelIndex& index, const QEvent* event) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QItemSelectionModel::SelectionFlags returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); + } else { + returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::selectionCommand(index, event); +} +void PythonQtShell_QColumnView::setModel(QAbstractItemModel* model) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractItemModel*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&model}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::setModel(model); +} +void PythonQtShell_QColumnView::setRootIndex(const QModelIndex& index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::setRootIndex(index); +} +void PythonQtShell_QColumnView::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&rect, (void*)&command}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::setSelection(rect, command); +} +void PythonQtShell_QColumnView::setSelectionModel(QItemSelectionModel* selectionModel) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QItemSelectionModel*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&selectionModel}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::setSelectionModel(selectionModel); +} +void PythonQtShell_QColumnView::setupViewport(QWidget* viewport) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&viewport}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::setupViewport(viewport); +} +QPainter* PythonQtShell_QColumnView::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::sharedPainter(); +} +void PythonQtShell_QColumnView::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::showEvent(arg__1); +} +int PythonQtShell_QColumnView::sizeHintForColumn(int column) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&column}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::sizeHintForColumn(column); +} +int PythonQtShell_QColumnView::sizeHintForRow(int row) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&row}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::sizeHintForRow(row); +} +void PythonQtShell_QColumnView::startDrag(Qt::DropActions supportedActions) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&supportedActions}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::startDrag(supportedActions); +} +void PythonQtShell_QColumnView::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::tabletEvent(arg__1); +} +void PythonQtShell_QColumnView::timerEvent(QTimerEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::timerEvent(event); +} +void PythonQtShell_QColumnView::updateEditorData() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::updateEditorData(); +} +void PythonQtShell_QColumnView::updateEditorGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::updateEditorGeometries(); +} +void PythonQtShell_QColumnView::updateGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::updateGeometries(); +} +int PythonQtShell_QColumnView::verticalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::verticalOffset(); +} +void PythonQtShell_QColumnView::verticalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::verticalScrollbarAction(action); +} +void PythonQtShell_QColumnView::verticalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::verticalScrollbarValueChanged(value); +} +QStyleOptionViewItem PythonQtShell_QColumnView::viewOptions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStyleOptionViewItem"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStyleOptionViewItem returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); + } else { + returnValue = *((QStyleOptionViewItem*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::viewOptions(); +} +bool PythonQtShell_QColumnView::viewportEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::viewportEvent(event); +} +QSize PythonQtShell_QColumnView::viewportSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::viewportSizeHint(); +} +QRect PythonQtShell_QColumnView::visualRect(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRect returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::visualRect(index); +} +QRegion PythonQtShell_QColumnView::visualRegionForSelection(const QItemSelection& selection) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRegion returnValue; + void* args[2] = {NULL, (void*)&selection}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); + } else { + returnValue = *((QRegion*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QColumnView::visualRegionForSelection(selection); +} +void PythonQtShell_QColumnView::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QColumnView::wheelEvent(arg__1); +} +QColumnView* PythonQtWrapper_QColumnView::new_QColumnView(QWidget* parent) +{ +return new PythonQtShell_QColumnView(parent); } + +QList PythonQtWrapper_QColumnView::columnWidths(QColumnView* theWrappedObject) const +{ + return ( theWrappedObject->columnWidths()); +} + +QAbstractItemView* PythonQtWrapper_QColumnView::createColumn(QColumnView* theWrappedObject, const QModelIndex& rootIndex) +{ + return ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_createColumn(rootIndex)); +} + +void PythonQtWrapper_QColumnView::currentChanged(QColumnView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous) +{ + ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_currentChanged(current, previous)); +} + +int PythonQtWrapper_QColumnView::horizontalOffset(QColumnView* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_horizontalOffset()); +} + +QModelIndex PythonQtWrapper_QColumnView::indexAt(QColumnView* theWrappedObject, const QPoint& point) const +{ + return ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_indexAt(point)); +} + +bool PythonQtWrapper_QColumnView::isIndexHidden(QColumnView* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_isIndexHidden(index)); +} + +QWidget* PythonQtWrapper_QColumnView::previewWidget(QColumnView* theWrappedObject) const +{ + return ( theWrappedObject->previewWidget()); +} + +void PythonQtWrapper_QColumnView::resizeEvent(QColumnView* theWrappedObject, QResizeEvent* event) +{ + ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_resizeEvent(event)); +} + +bool PythonQtWrapper_QColumnView::resizeGripsVisible(QColumnView* theWrappedObject) const +{ + return ( theWrappedObject->resizeGripsVisible()); +} + +void PythonQtWrapper_QColumnView::rowsInserted(QColumnView* theWrappedObject, const QModelIndex& parent, int start, int end) +{ + ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_rowsInserted(parent, start, end)); +} + +void PythonQtWrapper_QColumnView::scrollContentsBy(QColumnView* theWrappedObject, int dx, int dy) +{ + ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); +} + +void PythonQtWrapper_QColumnView::scrollTo(QColumnView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint) +{ + ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_scrollTo(index, hint)); +} + +void PythonQtWrapper_QColumnView::selectAll(QColumnView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_selectAll()); +} + +void PythonQtWrapper_QColumnView::setColumnWidths(QColumnView* theWrappedObject, const QList& list) +{ + ( theWrappedObject->setColumnWidths(list)); +} + +void PythonQtWrapper_QColumnView::setModel(QColumnView* theWrappedObject, QAbstractItemModel* model) +{ + ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_setModel(model)); +} + +void PythonQtWrapper_QColumnView::setPreviewWidget(QColumnView* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->setPreviewWidget(widget)); +} + +void PythonQtWrapper_QColumnView::setResizeGripsVisible(QColumnView* theWrappedObject, bool visible) +{ + ( theWrappedObject->setResizeGripsVisible(visible)); +} + +void PythonQtWrapper_QColumnView::setRootIndex(QColumnView* theWrappedObject, const QModelIndex& index) +{ + ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_setRootIndex(index)); +} + +void PythonQtWrapper_QColumnView::setSelection(QColumnView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command) +{ + ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_setSelection(rect, command)); +} + +void PythonQtWrapper_QColumnView::setSelectionModel(QColumnView* theWrappedObject, QItemSelectionModel* selectionModel) +{ + ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_setSelectionModel(selectionModel)); +} + +QSize PythonQtWrapper_QColumnView::sizeHint(QColumnView* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +int PythonQtWrapper_QColumnView::verticalOffset(QColumnView* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_verticalOffset()); +} + +QRect PythonQtWrapper_QColumnView::visualRect(QColumnView* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_visualRect(index)); +} + +QRegion PythonQtWrapper_QColumnView::visualRegionForSelection(QColumnView* theWrappedObject, const QItemSelection& selection) const +{ + return ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_visualRegionForSelection(selection)); +} + + + +PythonQtShell_QComboBox::~PythonQtShell_QComboBox() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QComboBox::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::actionEvent(arg__1); +} +void PythonQtShell_QComboBox::changeEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::changeEvent(e); +} +void PythonQtShell_QComboBox::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::childEvent(arg__1); +} +void PythonQtShell_QComboBox::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::closeEvent(arg__1); +} +void PythonQtShell_QComboBox::contextMenuEvent(QContextMenuEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::contextMenuEvent(e); +} +void PythonQtShell_QComboBox::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::customEvent(arg__1); +} +int PythonQtShell_QComboBox::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QComboBox::devType(); +} +void PythonQtShell_QComboBox::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::dragEnterEvent(arg__1); +} +void PythonQtShell_QComboBox::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::dragLeaveEvent(arg__1); +} +void PythonQtShell_QComboBox::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::dragMoveEvent(arg__1); +} +void PythonQtShell_QComboBox::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::dropEvent(arg__1); +} +void PythonQtShell_QComboBox::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::enterEvent(arg__1); +} +bool PythonQtShell_QComboBox::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QComboBox::event(event); +} +bool PythonQtShell_QComboBox::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QComboBox::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QComboBox::focusInEvent(QFocusEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::focusInEvent(e); +} +bool PythonQtShell_QComboBox::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QComboBox::focusNextPrevChild(next); +} +void PythonQtShell_QComboBox::focusOutEvent(QFocusEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::focusOutEvent(e); +} +bool PythonQtShell_QComboBox::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QComboBox::hasHeightForWidth(); +} +int PythonQtShell_QComboBox::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QComboBox::heightForWidth(arg__1); +} +void PythonQtShell_QComboBox::hideEvent(QHideEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::hideEvent(e); +} +void PythonQtShell_QComboBox::hidePopup() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hidePopup"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::hidePopup(); +} +void PythonQtShell_QComboBox::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::initPainter(painter); +} +void PythonQtShell_QComboBox::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QComboBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QComboBox::inputMethodQuery(arg__1); +} +void PythonQtShell_QComboBox::keyPressEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::keyPressEvent(e); +} +void PythonQtShell_QComboBox::keyReleaseEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::keyReleaseEvent(e); +} +void PythonQtShell_QComboBox::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::leaveEvent(arg__1); +} +int PythonQtShell_QComboBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QComboBox::metric(arg__1); +} +void PythonQtShell_QComboBox::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QComboBox::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::mouseMoveEvent(arg__1); +} +void PythonQtShell_QComboBox::mousePressEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::mousePressEvent(e); +} +void PythonQtShell_QComboBox::mouseReleaseEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::mouseReleaseEvent(e); +} +void PythonQtShell_QComboBox::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::moveEvent(arg__1); +} +bool PythonQtShell_QComboBox::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QComboBox::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QComboBox::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QComboBox::paintEngine(); +} +void PythonQtShell_QComboBox::paintEvent(QPaintEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::paintEvent(e); +} +QPaintDevice* PythonQtShell_QComboBox::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QComboBox::redirected(offset); +} +void PythonQtShell_QComboBox::resizeEvent(QResizeEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::resizeEvent(e); +} +QPainter* PythonQtShell_QComboBox::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QComboBox::sharedPainter(); +} +void PythonQtShell_QComboBox::showEvent(QShowEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::showEvent(e); +} +void PythonQtShell_QComboBox::showPopup() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showPopup"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::showPopup(); +} +void PythonQtShell_QComboBox::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::tabletEvent(arg__1); +} +void PythonQtShell_QComboBox::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::timerEvent(arg__1); +} +void PythonQtShell_QComboBox::wheelEvent(QWheelEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QComboBox::wheelEvent(e); +} +QComboBox* PythonQtWrapper_QComboBox::new_QComboBox(QWidget* parent) +{ +return new PythonQtShell_QComboBox(parent); } + +void PythonQtWrapper_QComboBox::addItem(QComboBox* theWrappedObject, const QIcon& icon, const QString& text, const QVariant& userData) +{ + ( theWrappedObject->addItem(icon, text, userData)); +} + +void PythonQtWrapper_QComboBox::addItem(QComboBox* theWrappedObject, const QString& text, const QVariant& userData) +{ + ( theWrappedObject->addItem(text, userData)); +} + +void PythonQtWrapper_QComboBox::addItems(QComboBox* theWrappedObject, const QStringList& texts) +{ + ( theWrappedObject->addItems(texts)); +} + +void PythonQtWrapper_QComboBox::changeEvent(QComboBox* theWrappedObject, QEvent* e) +{ + ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_changeEvent(e)); +} + +QCompleter* PythonQtWrapper_QComboBox::completer(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->completer()); +} + +void PythonQtWrapper_QComboBox::contextMenuEvent(QComboBox* theWrappedObject, QContextMenuEvent* e) +{ + ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_contextMenuEvent(e)); +} + +int PythonQtWrapper_QComboBox::count(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +int PythonQtWrapper_QComboBox::currentIndex(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->currentIndex()); +} + +QString PythonQtWrapper_QComboBox::currentText(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->currentText()); +} + +bool PythonQtWrapper_QComboBox::duplicatesEnabled(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->duplicatesEnabled()); +} + +bool PythonQtWrapper_QComboBox::event(QComboBox* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_event(event)); +} + +int PythonQtWrapper_QComboBox::findData(QComboBox* theWrappedObject, const QVariant& data, int role, Qt::MatchFlags flags) const +{ + return ( theWrappedObject->findData(data, role, flags)); +} + +int PythonQtWrapper_QComboBox::findText(QComboBox* theWrappedObject, const QString& text, Qt::MatchFlags flags) const +{ + return ( theWrappedObject->findText(text, flags)); +} + +void PythonQtWrapper_QComboBox::focusInEvent(QComboBox* theWrappedObject, QFocusEvent* e) +{ + ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_focusInEvent(e)); +} + +void PythonQtWrapper_QComboBox::focusOutEvent(QComboBox* theWrappedObject, QFocusEvent* e) +{ + ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_focusOutEvent(e)); +} + +bool PythonQtWrapper_QComboBox::hasFrame(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->hasFrame()); +} + +void PythonQtWrapper_QComboBox::hideEvent(QComboBox* theWrappedObject, QHideEvent* e) +{ + ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_hideEvent(e)); +} + +void PythonQtWrapper_QComboBox::hidePopup(QComboBox* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_hidePopup()); +} + +QSize PythonQtWrapper_QComboBox::iconSize(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->iconSize()); +} + +void PythonQtWrapper_QComboBox::inputMethodEvent(QComboBox* theWrappedObject, QInputMethodEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_inputMethodEvent(arg__1)); +} + +QVariant PythonQtWrapper_QComboBox::inputMethodQuery(QComboBox* theWrappedObject, Qt::InputMethodQuery arg__1) const +{ + return ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_inputMethodQuery(arg__1)); +} + +void PythonQtWrapper_QComboBox::insertItem(QComboBox* theWrappedObject, int index, const QIcon& icon, const QString& text, const QVariant& userData) +{ + ( theWrappedObject->insertItem(index, icon, text, userData)); +} + +void PythonQtWrapper_QComboBox::insertItem(QComboBox* theWrappedObject, int index, const QString& text, const QVariant& userData) +{ + ( theWrappedObject->insertItem(index, text, userData)); +} + +void PythonQtWrapper_QComboBox::insertItems(QComboBox* theWrappedObject, int index, const QStringList& texts) +{ + ( theWrappedObject->insertItems(index, texts)); +} + +QComboBox::InsertPolicy PythonQtWrapper_QComboBox::insertPolicy(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->insertPolicy()); +} + +void PythonQtWrapper_QComboBox::insertSeparator(QComboBox* theWrappedObject, int index) +{ + ( theWrappedObject->insertSeparator(index)); +} + +bool PythonQtWrapper_QComboBox::isEditable(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->isEditable()); +} + +QVariant PythonQtWrapper_QComboBox::itemData(QComboBox* theWrappedObject, int index, int role) const +{ + return ( theWrappedObject->itemData(index, role)); +} + +QAbstractItemDelegate* PythonQtWrapper_QComboBox::itemDelegate(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->itemDelegate()); +} + +QIcon PythonQtWrapper_QComboBox::itemIcon(QComboBox* theWrappedObject, int index) const +{ + return ( theWrappedObject->itemIcon(index)); +} + +QString PythonQtWrapper_QComboBox::itemText(QComboBox* theWrappedObject, int index) const +{ + return ( theWrappedObject->itemText(index)); +} + +void PythonQtWrapper_QComboBox::keyPressEvent(QComboBox* theWrappedObject, QKeyEvent* e) +{ + ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_keyPressEvent(e)); +} + +void PythonQtWrapper_QComboBox::keyReleaseEvent(QComboBox* theWrappedObject, QKeyEvent* e) +{ + ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_keyReleaseEvent(e)); +} + +QLineEdit* PythonQtWrapper_QComboBox::lineEdit(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->lineEdit()); +} + +int PythonQtWrapper_QComboBox::maxCount(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->maxCount()); +} + +int PythonQtWrapper_QComboBox::maxVisibleItems(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->maxVisibleItems()); +} + +int PythonQtWrapper_QComboBox::minimumContentsLength(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->minimumContentsLength()); +} + +QSize PythonQtWrapper_QComboBox::minimumSizeHint(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +QAbstractItemModel* PythonQtWrapper_QComboBox::model(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->model()); +} + +int PythonQtWrapper_QComboBox::modelColumn(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->modelColumn()); +} + +void PythonQtWrapper_QComboBox::mousePressEvent(QComboBox* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_mousePressEvent(e)); +} + +void PythonQtWrapper_QComboBox::mouseReleaseEvent(QComboBox* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_mouseReleaseEvent(e)); +} + +void PythonQtWrapper_QComboBox::paintEvent(QComboBox* theWrappedObject, QPaintEvent* e) +{ + ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_paintEvent(e)); +} + +void PythonQtWrapper_QComboBox::removeItem(QComboBox* theWrappedObject, int index) +{ + ( theWrappedObject->removeItem(index)); +} + +void PythonQtWrapper_QComboBox::resizeEvent(QComboBox* theWrappedObject, QResizeEvent* e) +{ + ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_resizeEvent(e)); +} + +QModelIndex PythonQtWrapper_QComboBox::rootModelIndex(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->rootModelIndex()); +} + +void PythonQtWrapper_QComboBox::setCompleter(QComboBox* theWrappedObject, QCompleter* c) +{ + ( theWrappedObject->setCompleter(c)); +} + +void PythonQtWrapper_QComboBox::setDuplicatesEnabled(QComboBox* theWrappedObject, bool enable) +{ + ( theWrappedObject->setDuplicatesEnabled(enable)); +} + +void PythonQtWrapper_QComboBox::setEditable(QComboBox* theWrappedObject, bool editable) +{ + ( theWrappedObject->setEditable(editable)); +} + +void PythonQtWrapper_QComboBox::setFrame(QComboBox* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setFrame(arg__1)); +} + +void PythonQtWrapper_QComboBox::setIconSize(QComboBox* theWrappedObject, const QSize& size) +{ + ( theWrappedObject->setIconSize(size)); +} + +void PythonQtWrapper_QComboBox::setInsertPolicy(QComboBox* theWrappedObject, QComboBox::InsertPolicy policy) +{ + ( theWrappedObject->setInsertPolicy(policy)); +} + +void PythonQtWrapper_QComboBox::setItemData(QComboBox* theWrappedObject, int index, const QVariant& value, int role) +{ + ( theWrappedObject->setItemData(index, value, role)); +} + +void PythonQtWrapper_QComboBox::setItemDelegate(QComboBox* theWrappedObject, QAbstractItemDelegate* delegate) +{ + ( theWrappedObject->setItemDelegate(delegate)); +} + +void PythonQtWrapper_QComboBox::setItemIcon(QComboBox* theWrappedObject, int index, const QIcon& icon) +{ + ( theWrappedObject->setItemIcon(index, icon)); +} + +void PythonQtWrapper_QComboBox::setItemText(QComboBox* theWrappedObject, int index, const QString& text) +{ + ( theWrappedObject->setItemText(index, text)); +} + +void PythonQtWrapper_QComboBox::setLineEdit(QComboBox* theWrappedObject, QLineEdit* edit) +{ + ( theWrappedObject->setLineEdit(edit)); +} + +void PythonQtWrapper_QComboBox::setMaxCount(QComboBox* theWrappedObject, int max) +{ + ( theWrappedObject->setMaxCount(max)); +} + +void PythonQtWrapper_QComboBox::setMaxVisibleItems(QComboBox* theWrappedObject, int maxItems) +{ + ( theWrappedObject->setMaxVisibleItems(maxItems)); +} + +void PythonQtWrapper_QComboBox::setMinimumContentsLength(QComboBox* theWrappedObject, int characters) +{ + ( theWrappedObject->setMinimumContentsLength(characters)); +} + +void PythonQtWrapper_QComboBox::setModel(QComboBox* theWrappedObject, QAbstractItemModel* model) +{ + ( theWrappedObject->setModel(model)); +} + +void PythonQtWrapper_QComboBox::setModelColumn(QComboBox* theWrappedObject, int visibleColumn) +{ + ( theWrappedObject->setModelColumn(visibleColumn)); +} + +void PythonQtWrapper_QComboBox::setRootModelIndex(QComboBox* theWrappedObject, const QModelIndex& index) +{ + ( theWrappedObject->setRootModelIndex(index)); +} + +void PythonQtWrapper_QComboBox::setSizeAdjustPolicy(QComboBox* theWrappedObject, QComboBox::SizeAdjustPolicy policy) +{ + ( theWrappedObject->setSizeAdjustPolicy(policy)); +} + +void PythonQtWrapper_QComboBox::setValidator(QComboBox* theWrappedObject, const QValidator* v) +{ + ( theWrappedObject->setValidator(v)); +} + +void PythonQtWrapper_QComboBox::setView(QComboBox* theWrappedObject, QAbstractItemView* itemView) +{ + ( theWrappedObject->setView(itemView)); +} + +void PythonQtWrapper_QComboBox::showEvent(QComboBox* theWrappedObject, QShowEvent* e) +{ + ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_showEvent(e)); +} + +void PythonQtWrapper_QComboBox::showPopup(QComboBox* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_showPopup()); +} + +QComboBox::SizeAdjustPolicy PythonQtWrapper_QComboBox::sizeAdjustPolicy(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->sizeAdjustPolicy()); +} + +QSize PythonQtWrapper_QComboBox::sizeHint(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +const QValidator* PythonQtWrapper_QComboBox::validator(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->validator()); +} + +QAbstractItemView* PythonQtWrapper_QComboBox::view(QComboBox* theWrappedObject) const +{ + return ( theWrappedObject->view()); +} + +void PythonQtWrapper_QComboBox::wheelEvent(QComboBox* theWrappedObject, QWheelEvent* e) +{ + ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_wheelEvent(e)); +} + + + +PythonQtShell_QCommandLinkButton::~PythonQtShell_QCommandLinkButton() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QCommandLinkButton::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::actionEvent(arg__1); +} +void PythonQtShell_QCommandLinkButton::changeEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::changeEvent(e); +} +void PythonQtShell_QCommandLinkButton::checkStateSet() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "checkStateSet"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::checkStateSet(); +} +void PythonQtShell_QCommandLinkButton::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::childEvent(arg__1); +} +void PythonQtShell_QCommandLinkButton::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::closeEvent(arg__1); +} +void PythonQtShell_QCommandLinkButton::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::contextMenuEvent(arg__1); +} +void PythonQtShell_QCommandLinkButton::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::customEvent(arg__1); +} +int PythonQtShell_QCommandLinkButton::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommandLinkButton::devType(); +} +void PythonQtShell_QCommandLinkButton::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::dragEnterEvent(arg__1); +} +void PythonQtShell_QCommandLinkButton::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::dragLeaveEvent(arg__1); +} +void PythonQtShell_QCommandLinkButton::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::dragMoveEvent(arg__1); +} +void PythonQtShell_QCommandLinkButton::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::dropEvent(arg__1); +} +void PythonQtShell_QCommandLinkButton::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::enterEvent(arg__1); +} +bool PythonQtShell_QCommandLinkButton::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommandLinkButton::event(e); +} +bool PythonQtShell_QCommandLinkButton::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommandLinkButton::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QCommandLinkButton::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::focusInEvent(arg__1); +} +bool PythonQtShell_QCommandLinkButton::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommandLinkButton::focusNextPrevChild(next); +} +void PythonQtShell_QCommandLinkButton::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::focusOutEvent(arg__1); +} +bool PythonQtShell_QCommandLinkButton::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommandLinkButton::hasHeightForWidth(); +} +int PythonQtShell_QCommandLinkButton::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommandLinkButton::heightForWidth(arg__1); +} +void PythonQtShell_QCommandLinkButton::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::hideEvent(arg__1); +} +bool PythonQtShell_QCommandLinkButton::hitButton(const QPoint& pos) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitButton"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPoint&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hitButton", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommandLinkButton::hitButton(pos); +} +void PythonQtShell_QCommandLinkButton::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::initPainter(painter); +} +void PythonQtShell_QCommandLinkButton::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QCommandLinkButton::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommandLinkButton::inputMethodQuery(arg__1); +} +void PythonQtShell_QCommandLinkButton::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::keyPressEvent(arg__1); +} +void PythonQtShell_QCommandLinkButton::keyReleaseEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::keyReleaseEvent(e); +} +void PythonQtShell_QCommandLinkButton::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::leaveEvent(arg__1); +} +int PythonQtShell_QCommandLinkButton::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommandLinkButton::metric(arg__1); +} +void PythonQtShell_QCommandLinkButton::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QCommandLinkButton::mouseMoveEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::mouseMoveEvent(e); +} +void PythonQtShell_QCommandLinkButton::mousePressEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::mousePressEvent(e); +} +void PythonQtShell_QCommandLinkButton::mouseReleaseEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::mouseReleaseEvent(e); +} +void PythonQtShell_QCommandLinkButton::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::moveEvent(arg__1); +} +bool PythonQtShell_QCommandLinkButton::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommandLinkButton::nativeEvent(eventType, message, result); +} +void PythonQtShell_QCommandLinkButton::nextCheckState() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextCheckState"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::nextCheckState(); +} +QPaintEngine* PythonQtShell_QCommandLinkButton::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommandLinkButton::paintEngine(); +} +void PythonQtShell_QCommandLinkButton::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QCommandLinkButton::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommandLinkButton::redirected(offset); +} +void PythonQtShell_QCommandLinkButton::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QCommandLinkButton::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommandLinkButton::sharedPainter(); +} +void PythonQtShell_QCommandLinkButton::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::showEvent(arg__1); +} +void PythonQtShell_QCommandLinkButton::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::tabletEvent(arg__1); +} +void PythonQtShell_QCommandLinkButton::timerEvent(QTimerEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::timerEvent(e); +} +void PythonQtShell_QCommandLinkButton::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommandLinkButton::wheelEvent(arg__1); +} +QCommandLinkButton* PythonQtWrapper_QCommandLinkButton::new_QCommandLinkButton(QWidget* parent) +{ +return new PythonQtShell_QCommandLinkButton(parent); } + +QCommandLinkButton* PythonQtWrapper_QCommandLinkButton::new_QCommandLinkButton(const QString& text, QWidget* parent) +{ +return new PythonQtShell_QCommandLinkButton(text, parent); } + +QCommandLinkButton* PythonQtWrapper_QCommandLinkButton::new_QCommandLinkButton(const QString& text, const QString& description, QWidget* parent) +{ +return new PythonQtShell_QCommandLinkButton(text, description, parent); } + +QString PythonQtWrapper_QCommandLinkButton::description(QCommandLinkButton* theWrappedObject) const +{ + return ( theWrappedObject->description()); +} + +bool PythonQtWrapper_QCommandLinkButton::event(QCommandLinkButton* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QCommandLinkButton*)theWrappedObject)->promoted_event(e)); +} + +int PythonQtWrapper_QCommandLinkButton::heightForWidth(QCommandLinkButton* theWrappedObject, int arg__1) const +{ + return ( ((PythonQtPublicPromoter_QCommandLinkButton*)theWrappedObject)->promoted_heightForWidth(arg__1)); +} + +void PythonQtWrapper_QCommandLinkButton::paintEvent(QCommandLinkButton* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QCommandLinkButton*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +void PythonQtWrapper_QCommandLinkButton::setDescription(QCommandLinkButton* theWrappedObject, const QString& description) +{ + ( theWrappedObject->setDescription(description)); +} + + + +PythonQtShell_QCommonStyle::~PythonQtShell_QCommonStyle() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QCommonStyle::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommonStyle::childEvent(arg__1); +} +void PythonQtShell_QCommonStyle::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommonStyle::customEvent(arg__1); +} +void PythonQtShell_QCommonStyle::drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawComplexControl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QPainter*" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&p, (void*)&w}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommonStyle::drawComplexControl(cc, opt, p, w); +} +void PythonQtShell_QCommonStyle::drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawControl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QStyle::ControlElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&element, (void*)&opt, (void*)&p, (void*)&w}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommonStyle::drawControl(element, opt, p, w); +} +void PythonQtShell_QCommonStyle::drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemPixmap"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPixmap&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&painter, (void*)&rect, (void*)&alignment, (void*)&pixmap}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommonStyle::drawItemPixmap(painter, rect, alignment, pixmap); +} +void PythonQtShell_QCommonStyle::drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemText"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPalette&" , "bool" , "const QString&" , "QPalette::ColorRole"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(8, argumentList); + void* args[8] = {NULL, (void*)&painter, (void*)&rect, (void*)&flags, (void*)&pal, (void*)&enabled, (void*)&text, (void*)&textRole}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommonStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); +} +void PythonQtShell_QCommonStyle::drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPrimitive"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QStyle::PrimitiveElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&pe, (void*)&opt, (void*)&p, (void*)&w}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommonStyle::drawPrimitive(pe, opt, p, w); +} +bool PythonQtShell_QCommonStyle::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommonStyle::event(arg__1); +} +bool PythonQtShell_QCommonStyle::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommonStyle::eventFilter(arg__1, arg__2); +} +QPixmap PythonQtShell_QCommonStyle::generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "generatedIconPixmap"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPixmap" , "QIcon::Mode" , "const QPixmap&" , "const QStyleOption*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QPixmap returnValue; + void* args[4] = {NULL, (void*)&iconMode, (void*)&pixmap, (void*)&opt}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("generatedIconPixmap", methodInfo, result); + } else { + returnValue = *((QPixmap*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommonStyle::generatedIconPixmap(iconMode, pixmap, opt); +} +QStyle::SubControl PythonQtShell_QCommonStyle::hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitTestComplexControl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStyle::SubControl" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "const QPoint&" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + QStyle::SubControl returnValue; + void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&pt, (void*)&w}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hitTestComplexControl", methodInfo, result); + } else { + returnValue = *((QStyle::SubControl*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommonStyle::hitTestComplexControl(cc, opt, pt, w); +} +QRect PythonQtShell_QCommonStyle::itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemPixmapRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect" , "const QRect&" , "int" , "const QPixmap&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QRect returnValue; + void* args[4] = {NULL, (void*)&r, (void*)&flags, (void*)&pixmap}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemPixmapRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommonStyle::itemPixmapRect(r, flags, pixmap); +} +int PythonQtShell_QCommonStyle::layoutSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption* option, const QWidget* widget) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layoutSpacing"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QSizePolicy::ControlType" , "QSizePolicy::ControlType" , "Qt::Orientation" , "const QStyleOption*" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + int returnValue; + void* args[6] = {NULL, (void*)&control1, (void*)&control2, (void*)&orientation, (void*)&option, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("layoutSpacing", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommonStyle::layoutSpacing(control1, control2, orientation, option, widget); +} +int PythonQtShell_QCommonStyle::pixelMetric(QStyle::PixelMetric m, const QStyleOption* opt, const QWidget* widget) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pixelMetric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + int returnValue; + void* args[4] = {NULL, (void*)&m, (void*)&opt, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("pixelMetric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommonStyle::pixelMetric(m, opt, widget); +} +void PythonQtShell_QCommonStyle::polish(QApplication* app) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QApplication*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&app}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommonStyle::polish(app); +} +void PythonQtShell_QCommonStyle::polish(QPalette& arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPalette&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommonStyle::polish(arg__1); +} +void PythonQtShell_QCommonStyle::polish(QWidget* widget) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommonStyle::polish(widget); +} +QSize PythonQtShell_QCommonStyle::sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeFromContents"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize" , "QStyle::ContentsType" , "const QStyleOption*" , "const QSize&" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + QSize returnValue; + void* args[5] = {NULL, (void*)&ct, (void*)&opt, (void*)&contentsSize, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeFromContents", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommonStyle::sizeFromContents(ct, opt, contentsSize, widget); +} +QIcon PythonQtShell_QCommonStyle::standardIcon(QStyle::StandardPixmap standardIcon, const QStyleOption* opt, const QWidget* widget) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardIcon"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QIcon" , "QStyle::StandardPixmap" , "const QStyleOption*" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QIcon returnValue; + void* args[4] = {NULL, (void*)&standardIcon, (void*)&opt, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("standardIcon", methodInfo, result); + } else { + returnValue = *((QIcon*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommonStyle::standardIcon(standardIcon, opt, widget); +} +QPalette PythonQtShell_QCommonStyle::standardPalette() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPalette"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPalette"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPalette returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("standardPalette", methodInfo, result); + } else { + returnValue = *((QPalette*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommonStyle::standardPalette(); +} +QPixmap PythonQtShell_QCommonStyle::standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPixmap"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPixmap" , "QStyle::StandardPixmap" , "const QStyleOption*" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QPixmap returnValue; + void* args[4] = {NULL, (void*)&standardPixmap, (void*)&opt, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("standardPixmap", methodInfo, result); + } else { + returnValue = *((QPixmap*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPixmap(); +} +int PythonQtShell_QCommonStyle::styleHint(QStyle::StyleHint sh, const QStyleOption* opt, const QWidget* w, QStyleHintReturn* shret) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "styleHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + int returnValue; + void* args[5] = {NULL, (void*)&sh, (void*)&opt, (void*)&w, (void*)&shret}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("styleHint", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommonStyle::styleHint(sh, opt, w, shret); +} +QRect PythonQtShell_QCommonStyle::subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* w) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subControlRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QStyle::SubControl" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + QRect returnValue; + void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&sc, (void*)&w}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("subControlRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommonStyle::subControlRect(cc, opt, sc, w); +} +QRect PythonQtShell_QCommonStyle::subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subElementRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect" , "QStyle::SubElement" , "const QStyleOption*" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QRect returnValue; + void* args[4] = {NULL, (void*)&r, (void*)&opt, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("subElementRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCommonStyle::subElementRect(r, opt, widget); +} +void PythonQtShell_QCommonStyle::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommonStyle::timerEvent(arg__1); +} +void PythonQtShell_QCommonStyle::unpolish(QApplication* application) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QApplication*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&application}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommonStyle::unpolish(application); +} +void PythonQtShell_QCommonStyle::unpolish(QWidget* widget) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCommonStyle::unpolish(widget); +} +QCommonStyle* PythonQtWrapper_QCommonStyle::new_QCommonStyle() +{ +return new PythonQtShell_QCommonStyle(); } + +void PythonQtWrapper_QCommonStyle::drawComplexControl(QCommonStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w) const +{ + ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_drawComplexControl(cc, opt, p, w)); +} + +void PythonQtWrapper_QCommonStyle::drawControl(QCommonStyle* theWrappedObject, QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w) const +{ + ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_drawControl(element, opt, p, w)); +} + +void PythonQtWrapper_QCommonStyle::drawPrimitive(QCommonStyle* theWrappedObject, QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w) const +{ + ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_drawPrimitive(pe, opt, p, w)); +} + +QPixmap PythonQtWrapper_QCommonStyle::generatedIconPixmap(QCommonStyle* theWrappedObject, QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const +{ + return ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_generatedIconPixmap(iconMode, pixmap, opt)); +} + +QStyle::SubControl PythonQtWrapper_QCommonStyle::hitTestComplexControl(QCommonStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w) const +{ + return ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_hitTestComplexControl(cc, opt, pt, w)); +} + +int PythonQtWrapper_QCommonStyle::layoutSpacing(QCommonStyle* theWrappedObject, QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption* option, const QWidget* widget) const +{ + return ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_layoutSpacing(control1, control2, orientation, option, widget)); +} + +int PythonQtWrapper_QCommonStyle::pixelMetric(QCommonStyle* theWrappedObject, QStyle::PixelMetric m, const QStyleOption* opt, const QWidget* widget) const +{ + return ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_pixelMetric(m, opt, widget)); +} + +void PythonQtWrapper_QCommonStyle::polish(QCommonStyle* theWrappedObject, QApplication* app) +{ + ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_polish(app)); +} + +void PythonQtWrapper_QCommonStyle::polish(QCommonStyle* theWrappedObject, QPalette& arg__1) +{ + ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_polish(arg__1)); +} + +void PythonQtWrapper_QCommonStyle::polish(QCommonStyle* theWrappedObject, QWidget* widget) +{ + ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_polish(widget)); +} + +QSize PythonQtWrapper_QCommonStyle::sizeFromContents(QCommonStyle* theWrappedObject, QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget) const +{ + return ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_sizeFromContents(ct, opt, contentsSize, widget)); +} + +QIcon PythonQtWrapper_QCommonStyle::standardIcon(QCommonStyle* theWrappedObject, QStyle::StandardPixmap standardIcon, const QStyleOption* opt, const QWidget* widget) const +{ + return ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_standardIcon(standardIcon, opt, widget)); +} + +int PythonQtWrapper_QCommonStyle::styleHint(QCommonStyle* theWrappedObject, QStyle::StyleHint sh, const QStyleOption* opt, const QWidget* w, QStyleHintReturn* shret) const +{ + return ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_styleHint(sh, opt, w, shret)); +} + +QRect PythonQtWrapper_QCommonStyle::subControlRect(QCommonStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* w) const +{ + return ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_subControlRect(cc, opt, sc, w)); +} + +QRect PythonQtWrapper_QCommonStyle::subElementRect(QCommonStyle* theWrappedObject, QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget) const +{ + return ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_subElementRect(r, opt, widget)); +} + +void PythonQtWrapper_QCommonStyle::unpolish(QCommonStyle* theWrappedObject, QApplication* application) +{ + ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_unpolish(application)); +} + +void PythonQtWrapper_QCommonStyle::unpolish(QCommonStyle* theWrappedObject, QWidget* widget) +{ + ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_unpolish(widget)); +} + + + +PythonQtShell_QCompleter::~PythonQtShell_QCompleter() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QCompleter::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCompleter::childEvent(arg__1); +} +void PythonQtShell_QCompleter::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCompleter::customEvent(arg__1); +} +bool PythonQtShell_QCompleter::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCompleter::event(arg__1); +} +bool PythonQtShell_QCompleter::eventFilter(QObject* o, QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&o, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCompleter::eventFilter(o, e); +} +QString PythonQtShell_QCompleter::pathFromIndex(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pathFromIndex"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QString returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("pathFromIndex", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCompleter::pathFromIndex(index); +} +QStringList PythonQtShell_QCompleter::splitPath(const QString& path) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "splitPath"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStringList" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QStringList returnValue; + void* args[2] = {NULL, (void*)&path}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("splitPath", methodInfo, result); + } else { + returnValue = *((QStringList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QCompleter::splitPath(path); +} +void PythonQtShell_QCompleter::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QCompleter::timerEvent(arg__1); +} +QCompleter* PythonQtWrapper_QCompleter::new_QCompleter(QAbstractItemModel* model, QObject* parent) +{ +return new PythonQtShell_QCompleter(model, parent); } + +QCompleter* PythonQtWrapper_QCompleter::new_QCompleter(QObject* parent) +{ +return new PythonQtShell_QCompleter(parent); } + +QCompleter* PythonQtWrapper_QCompleter::new_QCompleter(const QStringList& completions, QObject* parent) +{ +return new PythonQtShell_QCompleter(completions, parent); } + +Qt::CaseSensitivity PythonQtWrapper_QCompleter::caseSensitivity(QCompleter* theWrappedObject) const +{ + return ( theWrappedObject->caseSensitivity()); +} + +int PythonQtWrapper_QCompleter::completionColumn(QCompleter* theWrappedObject) const +{ + return ( theWrappedObject->completionColumn()); +} + +int PythonQtWrapper_QCompleter::completionCount(QCompleter* theWrappedObject) const +{ + return ( theWrappedObject->completionCount()); +} + +QCompleter::CompletionMode PythonQtWrapper_QCompleter::completionMode(QCompleter* theWrappedObject) const +{ + return ( theWrappedObject->completionMode()); +} + +QAbstractItemModel* PythonQtWrapper_QCompleter::completionModel(QCompleter* theWrappedObject) const +{ + return ( theWrappedObject->completionModel()); +} + +QString PythonQtWrapper_QCompleter::completionPrefix(QCompleter* theWrappedObject) const +{ + return ( theWrappedObject->completionPrefix()); +} + +int PythonQtWrapper_QCompleter::completionRole(QCompleter* theWrappedObject) const +{ + return ( theWrappedObject->completionRole()); +} + +QString PythonQtWrapper_QCompleter::currentCompletion(QCompleter* theWrappedObject) const +{ + return ( theWrappedObject->currentCompletion()); +} + +QModelIndex PythonQtWrapper_QCompleter::currentIndex(QCompleter* theWrappedObject) const +{ + return ( theWrappedObject->currentIndex()); +} + +int PythonQtWrapper_QCompleter::currentRow(QCompleter* theWrappedObject) const +{ + return ( theWrappedObject->currentRow()); +} + +bool PythonQtWrapper_QCompleter::event(QCompleter* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QCompleter*)theWrappedObject)->promoted_event(arg__1)); +} + +bool PythonQtWrapper_QCompleter::eventFilter(QCompleter* theWrappedObject, QObject* o, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QCompleter*)theWrappedObject)->promoted_eventFilter(o, e)); +} + +int PythonQtWrapper_QCompleter::maxVisibleItems(QCompleter* theWrappedObject) const +{ + return ( theWrappedObject->maxVisibleItems()); +} + +QAbstractItemModel* PythonQtWrapper_QCompleter::model(QCompleter* theWrappedObject) const +{ + return ( theWrappedObject->model()); +} + +QCompleter::ModelSorting PythonQtWrapper_QCompleter::modelSorting(QCompleter* theWrappedObject) const +{ + return ( theWrappedObject->modelSorting()); +} + +QString PythonQtWrapper_QCompleter::pathFromIndex(QCompleter* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QCompleter*)theWrappedObject)->promoted_pathFromIndex(index)); +} + +QAbstractItemView* PythonQtWrapper_QCompleter::popup(QCompleter* theWrappedObject) const +{ + return ( theWrappedObject->popup()); +} + +void PythonQtWrapper_QCompleter::setCaseSensitivity(QCompleter* theWrappedObject, Qt::CaseSensitivity caseSensitivity) +{ + ( theWrappedObject->setCaseSensitivity(caseSensitivity)); +} + +void PythonQtWrapper_QCompleter::setCompletionColumn(QCompleter* theWrappedObject, int column) +{ + ( theWrappedObject->setCompletionColumn(column)); +} + +void PythonQtWrapper_QCompleter::setCompletionMode(QCompleter* theWrappedObject, QCompleter::CompletionMode mode) +{ + ( theWrappedObject->setCompletionMode(mode)); +} + +void PythonQtWrapper_QCompleter::setCompletionRole(QCompleter* theWrappedObject, int role) +{ + ( theWrappedObject->setCompletionRole(role)); +} + +bool PythonQtWrapper_QCompleter::setCurrentRow(QCompleter* theWrappedObject, int row) +{ + return ( theWrappedObject->setCurrentRow(row)); +} + +void PythonQtWrapper_QCompleter::setMaxVisibleItems(QCompleter* theWrappedObject, int maxItems) +{ + ( theWrappedObject->setMaxVisibleItems(maxItems)); +} + +void PythonQtWrapper_QCompleter::setModel(QCompleter* theWrappedObject, QAbstractItemModel* c) +{ + ( theWrappedObject->setModel(c)); +} + +void PythonQtWrapper_QCompleter::setModelSorting(QCompleter* theWrappedObject, QCompleter::ModelSorting sorting) +{ + ( theWrappedObject->setModelSorting(sorting)); +} + +void PythonQtWrapper_QCompleter::setPopup(QCompleter* theWrappedObject, QAbstractItemView* popup) +{ + ( theWrappedObject->setPopup(popup)); +} + +void PythonQtWrapper_QCompleter::setWidget(QCompleter* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->setWidget(widget)); +} + +QStringList PythonQtWrapper_QCompleter::splitPath(QCompleter* theWrappedObject, const QString& path) const +{ + return ( ((PythonQtPublicPromoter_QCompleter*)theWrappedObject)->promoted_splitPath(path)); +} + +QWidget* PythonQtWrapper_QCompleter::widget(QCompleter* theWrappedObject) const +{ + return ( theWrappedObject->widget()); +} + +bool PythonQtWrapper_QCompleter::wrapAround(QCompleter* theWrappedObject) const +{ + return ( theWrappedObject->wrapAround()); +} + +#endif + +QConicalGradient* PythonQtWrapper_QConicalGradient::new_QConicalGradient() +{ +return new QConicalGradient(); } + +QConicalGradient* PythonQtWrapper_QConicalGradient::new_QConicalGradient(const QPointF& center, qreal startAngle) +{ +return new QConicalGradient(center, startAngle); } + +QConicalGradient* PythonQtWrapper_QConicalGradient::new_QConicalGradient(qreal cx, qreal cy, qreal startAngle) +{ +return new QConicalGradient(cx, cy, startAngle); } + +qreal PythonQtWrapper_QConicalGradient::angle(QConicalGradient* theWrappedObject) const +{ + return ( theWrappedObject->angle()); +} + +QPointF PythonQtWrapper_QConicalGradient::center(QConicalGradient* theWrappedObject) const +{ + return ( theWrappedObject->center()); +} + +void PythonQtWrapper_QConicalGradient::setAngle(QConicalGradient* theWrappedObject, qreal angle) +{ + ( theWrappedObject->setAngle(angle)); +} + +void PythonQtWrapper_QConicalGradient::setCenter(QConicalGradient* theWrappedObject, const QPointF& center) +{ + ( theWrappedObject->setCenter(center)); +} + +void PythonQtWrapper_QConicalGradient::setCenter(QConicalGradient* theWrappedObject, qreal x, qreal y) +{ + ( theWrappedObject->setCenter(x, y)); +} + + + +PythonQtShell_QContextMenuEvent::~PythonQtShell_QContextMenuEvent() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QContextMenuEvent* PythonQtWrapper_QContextMenuEvent::new_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos) +{ +return new PythonQtShell_QContextMenuEvent(reason, pos); } + +QContextMenuEvent* PythonQtWrapper_QContextMenuEvent::new_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos) +{ +return new PythonQtShell_QContextMenuEvent(reason, pos, globalPos); } + +QContextMenuEvent* PythonQtWrapper_QContextMenuEvent::new_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos, Qt::KeyboardModifiers modifiers) +{ +return new PythonQtShell_QContextMenuEvent(reason, pos, globalPos, modifiers); } + +const QPoint* PythonQtWrapper_QContextMenuEvent::globalPos(QContextMenuEvent* theWrappedObject) const +{ + return &( theWrappedObject->globalPos()); +} + +int PythonQtWrapper_QContextMenuEvent::globalX(QContextMenuEvent* theWrappedObject) const +{ + return ( theWrappedObject->globalX()); +} + +int PythonQtWrapper_QContextMenuEvent::globalY(QContextMenuEvent* theWrappedObject) const +{ + return ( theWrappedObject->globalY()); +} + +const QPoint* PythonQtWrapper_QContextMenuEvent::pos(QContextMenuEvent* theWrappedObject) const +{ + return &( theWrappedObject->pos()); +} + +QContextMenuEvent::Reason PythonQtWrapper_QContextMenuEvent::reason(QContextMenuEvent* theWrappedObject) const +{ + return ( theWrappedObject->reason()); +} + +int PythonQtWrapper_QContextMenuEvent::x(QContextMenuEvent* theWrappedObject) const +{ + return ( theWrappedObject->x()); +} + +int PythonQtWrapper_QContextMenuEvent::y(QContextMenuEvent* theWrappedObject) const +{ + return ( theWrappedObject->y()); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QDataWidgetMapper::~PythonQtShell_QDataWidgetMapper() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QDataWidgetMapper::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDataWidgetMapper::childEvent(arg__1); +} +void PythonQtShell_QDataWidgetMapper::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDataWidgetMapper::customEvent(arg__1); +} +bool PythonQtShell_QDataWidgetMapper::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDataWidgetMapper::event(arg__1); +} +bool PythonQtShell_QDataWidgetMapper::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDataWidgetMapper::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QDataWidgetMapper::setCurrentIndex(int index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setCurrentIndex"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDataWidgetMapper::setCurrentIndex(index); +} +void PythonQtShell_QDataWidgetMapper::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDataWidgetMapper::timerEvent(arg__1); +} +QDataWidgetMapper* PythonQtWrapper_QDataWidgetMapper::new_QDataWidgetMapper(QObject* parent) +{ +return new PythonQtShell_QDataWidgetMapper(parent); } + +void PythonQtWrapper_QDataWidgetMapper::addMapping(QDataWidgetMapper* theWrappedObject, QWidget* widget, int section) +{ + ( theWrappedObject->addMapping(widget, section)); +} + +void PythonQtWrapper_QDataWidgetMapper::addMapping(QDataWidgetMapper* theWrappedObject, QWidget* widget, int section, const QByteArray& propertyName) +{ + ( theWrappedObject->addMapping(widget, section, propertyName)); +} + +void PythonQtWrapper_QDataWidgetMapper::clearMapping(QDataWidgetMapper* theWrappedObject) +{ + ( theWrappedObject->clearMapping()); +} + +int PythonQtWrapper_QDataWidgetMapper::currentIndex(QDataWidgetMapper* theWrappedObject) const +{ + return ( theWrappedObject->currentIndex()); +} + +QAbstractItemDelegate* PythonQtWrapper_QDataWidgetMapper::itemDelegate(QDataWidgetMapper* theWrappedObject) const +{ + return ( theWrappedObject->itemDelegate()); +} + +QByteArray PythonQtWrapper_QDataWidgetMapper::mappedPropertyName(QDataWidgetMapper* theWrappedObject, QWidget* widget) const +{ + return ( theWrappedObject->mappedPropertyName(widget)); +} + +int PythonQtWrapper_QDataWidgetMapper::mappedSection(QDataWidgetMapper* theWrappedObject, QWidget* widget) const +{ + return ( theWrappedObject->mappedSection(widget)); +} + +QWidget* PythonQtWrapper_QDataWidgetMapper::mappedWidgetAt(QDataWidgetMapper* theWrappedObject, int section) const +{ + return ( theWrappedObject->mappedWidgetAt(section)); +} + +QAbstractItemModel* PythonQtWrapper_QDataWidgetMapper::model(QDataWidgetMapper* theWrappedObject) const +{ + return ( theWrappedObject->model()); +} + +Qt::Orientation PythonQtWrapper_QDataWidgetMapper::orientation(QDataWidgetMapper* theWrappedObject) const +{ + return ( theWrappedObject->orientation()); +} + +void PythonQtWrapper_QDataWidgetMapper::removeMapping(QDataWidgetMapper* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->removeMapping(widget)); +} + +QModelIndex PythonQtWrapper_QDataWidgetMapper::rootIndex(QDataWidgetMapper* theWrappedObject) const +{ + return ( theWrappedObject->rootIndex()); +} + +void PythonQtWrapper_QDataWidgetMapper::setCurrentIndex(QDataWidgetMapper* theWrappedObject, int index) +{ + ( ((PythonQtPublicPromoter_QDataWidgetMapper*)theWrappedObject)->promoted_setCurrentIndex(index)); +} + +void PythonQtWrapper_QDataWidgetMapper::setItemDelegate(QDataWidgetMapper* theWrappedObject, QAbstractItemDelegate* delegate) +{ + ( theWrappedObject->setItemDelegate(delegate)); +} + +void PythonQtWrapper_QDataWidgetMapper::setModel(QDataWidgetMapper* theWrappedObject, QAbstractItemModel* model) +{ + ( theWrappedObject->setModel(model)); +} + +void PythonQtWrapper_QDataWidgetMapper::setOrientation(QDataWidgetMapper* theWrappedObject, Qt::Orientation aOrientation) +{ + ( theWrappedObject->setOrientation(aOrientation)); +} + +void PythonQtWrapper_QDataWidgetMapper::setRootIndex(QDataWidgetMapper* theWrappedObject, const QModelIndex& index) +{ + ( theWrappedObject->setRootIndex(index)); +} + +void PythonQtWrapper_QDataWidgetMapper::setSubmitPolicy(QDataWidgetMapper* theWrappedObject, QDataWidgetMapper::SubmitPolicy policy) +{ + ( theWrappedObject->setSubmitPolicy(policy)); +} + +QDataWidgetMapper::SubmitPolicy PythonQtWrapper_QDataWidgetMapper::submitPolicy(QDataWidgetMapper* theWrappedObject) const +{ + return ( theWrappedObject->submitPolicy()); +} + + + +PythonQtShell_QDateEdit::~PythonQtShell_QDateEdit() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QDateEdit::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::actionEvent(arg__1); +} +void PythonQtShell_QDateEdit::changeEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::changeEvent(event); +} +void PythonQtShell_QDateEdit::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::childEvent(arg__1); +} +void PythonQtShell_QDateEdit::clear() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::clear(); +} +void PythonQtShell_QDateEdit::closeEvent(QCloseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::closeEvent(event); +} +void PythonQtShell_QDateEdit::contextMenuEvent(QContextMenuEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::contextMenuEvent(event); +} +void PythonQtShell_QDateEdit::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::customEvent(arg__1); +} +QDateTime PythonQtShell_QDateEdit::dateTimeFromText(const QString& text) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dateTimeFromText"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QDateTime" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QDateTime returnValue; + void* args[2] = {NULL, (void*)&text}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("dateTimeFromText", methodInfo, result); + } else { + returnValue = *((QDateTime*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateEdit::dateTimeFromText(text); +} +int PythonQtShell_QDateEdit::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateEdit::devType(); +} +void PythonQtShell_QDateEdit::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::dragEnterEvent(arg__1); +} +void PythonQtShell_QDateEdit::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::dragLeaveEvent(arg__1); +} +void PythonQtShell_QDateEdit::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::dragMoveEvent(arg__1); +} +void PythonQtShell_QDateEdit::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::dropEvent(arg__1); +} +void PythonQtShell_QDateEdit::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::enterEvent(arg__1); +} +bool PythonQtShell_QDateEdit::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateEdit::event(event); +} +bool PythonQtShell_QDateEdit::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateEdit::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QDateEdit::fixup(QString& input) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&input}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::fixup(input); +} +void PythonQtShell_QDateEdit::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::focusInEvent(event); +} +bool PythonQtShell_QDateEdit::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateEdit::focusNextPrevChild(next); +} +void PythonQtShell_QDateEdit::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::focusOutEvent(event); +} +bool PythonQtShell_QDateEdit::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateEdit::hasHeightForWidth(); +} +int PythonQtShell_QDateEdit::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateEdit::heightForWidth(arg__1); +} +void PythonQtShell_QDateEdit::hideEvent(QHideEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::hideEvent(event); +} +void PythonQtShell_QDateEdit::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::initPainter(painter); +} +void PythonQtShell_QDateEdit::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QDateEdit::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateEdit::inputMethodQuery(arg__1); +} +void PythonQtShell_QDateEdit::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::keyPressEvent(event); +} +void PythonQtShell_QDateEdit::keyReleaseEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::keyReleaseEvent(event); +} +void PythonQtShell_QDateEdit::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::leaveEvent(arg__1); +} +int PythonQtShell_QDateEdit::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateEdit::metric(arg__1); +} +void PythonQtShell_QDateEdit::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QDateEdit::mouseMoveEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::mouseMoveEvent(event); +} +void PythonQtShell_QDateEdit::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::mousePressEvent(event); +} +void PythonQtShell_QDateEdit::mouseReleaseEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::mouseReleaseEvent(event); +} +void PythonQtShell_QDateEdit::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::moveEvent(arg__1); +} +bool PythonQtShell_QDateEdit::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateEdit::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QDateEdit::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateEdit::paintEngine(); +} +void PythonQtShell_QDateEdit::paintEvent(QPaintEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::paintEvent(event); +} +QPaintDevice* PythonQtShell_QDateEdit::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateEdit::redirected(offset); +} +void PythonQtShell_QDateEdit::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::resizeEvent(event); +} +QPainter* PythonQtShell_QDateEdit::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateEdit::sharedPainter(); +} +void PythonQtShell_QDateEdit::showEvent(QShowEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::showEvent(event); +} +void PythonQtShell_QDateEdit::stepBy(int steps) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&steps}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::stepBy(steps); +} +QAbstractSpinBox::StepEnabled PythonQtShell_QDateEdit::stepEnabled() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepEnabled"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QAbstractSpinBox::StepEnabled returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("stepEnabled", methodInfo, result); + } else { + returnValue = *((QAbstractSpinBox::StepEnabled*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateEdit::stepEnabled(); +} +void PythonQtShell_QDateEdit::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::tabletEvent(arg__1); +} +QString PythonQtShell_QDateEdit::textFromDateTime(const QDateTime& dt) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "textFromDateTime"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "const QDateTime&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QString returnValue; + void* args[2] = {NULL, (void*)&dt}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("textFromDateTime", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateEdit::textFromDateTime(dt); +} +void PythonQtShell_QDateEdit::timerEvent(QTimerEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::timerEvent(event); +} +QValidator::State PythonQtShell_QDateEdit::validate(QString& input, int& pos) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QValidator::State" , "QString&" , "int&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QValidator::State returnValue; + void* args[3] = {NULL, (void*)&input, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); + } else { + returnValue = *((QValidator::State*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateEdit::validate(input, pos); +} +void PythonQtShell_QDateEdit::wheelEvent(QWheelEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateEdit::wheelEvent(event); +} +QDateEdit* PythonQtWrapper_QDateEdit::new_QDateEdit(QWidget* parent) +{ +return new PythonQtShell_QDateEdit(parent); } + +QDateEdit* PythonQtWrapper_QDateEdit::new_QDateEdit(const QDate& date, QWidget* parent) +{ +return new PythonQtShell_QDateEdit(date, parent); } + + + +PythonQtShell_QDateTimeEdit::~PythonQtShell_QDateTimeEdit() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QDateTimeEdit::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::actionEvent(arg__1); +} +void PythonQtShell_QDateTimeEdit::changeEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::changeEvent(event); +} +void PythonQtShell_QDateTimeEdit::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::childEvent(arg__1); +} +void PythonQtShell_QDateTimeEdit::clear() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::clear(); +} +void PythonQtShell_QDateTimeEdit::closeEvent(QCloseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::closeEvent(event); +} +void PythonQtShell_QDateTimeEdit::contextMenuEvent(QContextMenuEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::contextMenuEvent(event); +} +void PythonQtShell_QDateTimeEdit::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::customEvent(arg__1); +} +QDateTime PythonQtShell_QDateTimeEdit::dateTimeFromText(const QString& text) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dateTimeFromText"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QDateTime" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QDateTime returnValue; + void* args[2] = {NULL, (void*)&text}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("dateTimeFromText", methodInfo, result); + } else { + returnValue = *((QDateTime*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateTimeEdit::dateTimeFromText(text); +} +int PythonQtShell_QDateTimeEdit::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateTimeEdit::devType(); +} +void PythonQtShell_QDateTimeEdit::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::dragEnterEvent(arg__1); +} +void PythonQtShell_QDateTimeEdit::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::dragLeaveEvent(arg__1); +} +void PythonQtShell_QDateTimeEdit::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::dragMoveEvent(arg__1); +} +void PythonQtShell_QDateTimeEdit::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::dropEvent(arg__1); +} +void PythonQtShell_QDateTimeEdit::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::enterEvent(arg__1); +} +bool PythonQtShell_QDateTimeEdit::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateTimeEdit::event(event); +} +bool PythonQtShell_QDateTimeEdit::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateTimeEdit::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QDateTimeEdit::fixup(QString& input) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&input}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::fixup(input); +} +void PythonQtShell_QDateTimeEdit::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::focusInEvent(event); +} +bool PythonQtShell_QDateTimeEdit::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateTimeEdit::focusNextPrevChild(next); +} +void PythonQtShell_QDateTimeEdit::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::focusOutEvent(event); +} +bool PythonQtShell_QDateTimeEdit::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateTimeEdit::hasHeightForWidth(); +} +int PythonQtShell_QDateTimeEdit::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateTimeEdit::heightForWidth(arg__1); +} +void PythonQtShell_QDateTimeEdit::hideEvent(QHideEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::hideEvent(event); +} +void PythonQtShell_QDateTimeEdit::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::initPainter(painter); +} +void PythonQtShell_QDateTimeEdit::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QDateTimeEdit::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateTimeEdit::inputMethodQuery(arg__1); +} +void PythonQtShell_QDateTimeEdit::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::keyPressEvent(event); +} +void PythonQtShell_QDateTimeEdit::keyReleaseEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::keyReleaseEvent(event); +} +void PythonQtShell_QDateTimeEdit::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::leaveEvent(arg__1); +} +int PythonQtShell_QDateTimeEdit::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateTimeEdit::metric(arg__1); +} +void PythonQtShell_QDateTimeEdit::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QDateTimeEdit::mouseMoveEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::mouseMoveEvent(event); +} +void PythonQtShell_QDateTimeEdit::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::mousePressEvent(event); +} +void PythonQtShell_QDateTimeEdit::mouseReleaseEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::mouseReleaseEvent(event); +} +void PythonQtShell_QDateTimeEdit::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::moveEvent(arg__1); +} +bool PythonQtShell_QDateTimeEdit::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateTimeEdit::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QDateTimeEdit::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateTimeEdit::paintEngine(); +} +void PythonQtShell_QDateTimeEdit::paintEvent(QPaintEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::paintEvent(event); +} +QPaintDevice* PythonQtShell_QDateTimeEdit::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateTimeEdit::redirected(offset); +} +void PythonQtShell_QDateTimeEdit::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::resizeEvent(event); +} +QPainter* PythonQtShell_QDateTimeEdit::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateTimeEdit::sharedPainter(); +} +void PythonQtShell_QDateTimeEdit::showEvent(QShowEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::showEvent(event); +} +void PythonQtShell_QDateTimeEdit::stepBy(int steps) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&steps}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::stepBy(steps); +} +QAbstractSpinBox::StepEnabled PythonQtShell_QDateTimeEdit::stepEnabled() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepEnabled"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QAbstractSpinBox::StepEnabled returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("stepEnabled", methodInfo, result); + } else { + returnValue = *((QAbstractSpinBox::StepEnabled*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateTimeEdit::stepEnabled(); +} +void PythonQtShell_QDateTimeEdit::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::tabletEvent(arg__1); +} +QString PythonQtShell_QDateTimeEdit::textFromDateTime(const QDateTime& dt) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "textFromDateTime"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "const QDateTime&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QString returnValue; + void* args[2] = {NULL, (void*)&dt}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("textFromDateTime", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateTimeEdit::textFromDateTime(dt); +} +void PythonQtShell_QDateTimeEdit::timerEvent(QTimerEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::timerEvent(event); +} +QValidator::State PythonQtShell_QDateTimeEdit::validate(QString& input, int& pos) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QValidator::State" , "QString&" , "int&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QValidator::State returnValue; + void* args[3] = {NULL, (void*)&input, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); + } else { + returnValue = *((QValidator::State*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDateTimeEdit::validate(input, pos); +} +void PythonQtShell_QDateTimeEdit::wheelEvent(QWheelEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDateTimeEdit::wheelEvent(event); +} +QDateTimeEdit* PythonQtWrapper_QDateTimeEdit::new_QDateTimeEdit(QWidget* parent) +{ +return new PythonQtShell_QDateTimeEdit(parent); } + +QDateTimeEdit* PythonQtWrapper_QDateTimeEdit::new_QDateTimeEdit(const QDate& d, QWidget* parent) +{ +return new PythonQtShell_QDateTimeEdit(d, parent); } + +QDateTimeEdit* PythonQtWrapper_QDateTimeEdit::new_QDateTimeEdit(const QDateTime& dt, QWidget* parent) +{ +return new PythonQtShell_QDateTimeEdit(dt, parent); } + +QDateTimeEdit* PythonQtWrapper_QDateTimeEdit::new_QDateTimeEdit(const QTime& t, QWidget* parent) +{ +return new PythonQtShell_QDateTimeEdit(t, parent); } + +bool PythonQtWrapper_QDateTimeEdit::calendarPopup(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->calendarPopup()); +} + +QCalendarWidget* PythonQtWrapper_QDateTimeEdit::calendarWidget(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->calendarWidget()); +} + +void PythonQtWrapper_QDateTimeEdit::clear(QDateTimeEdit* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_clear()); +} + +void PythonQtWrapper_QDateTimeEdit::clearMaximumDate(QDateTimeEdit* theWrappedObject) +{ + ( theWrappedObject->clearMaximumDate()); +} + +void PythonQtWrapper_QDateTimeEdit::clearMaximumDateTime(QDateTimeEdit* theWrappedObject) +{ + ( theWrappedObject->clearMaximumDateTime()); +} + +void PythonQtWrapper_QDateTimeEdit::clearMaximumTime(QDateTimeEdit* theWrappedObject) +{ + ( theWrappedObject->clearMaximumTime()); +} + +void PythonQtWrapper_QDateTimeEdit::clearMinimumDate(QDateTimeEdit* theWrappedObject) +{ + ( theWrappedObject->clearMinimumDate()); +} + +void PythonQtWrapper_QDateTimeEdit::clearMinimumDateTime(QDateTimeEdit* theWrappedObject) +{ + ( theWrappedObject->clearMinimumDateTime()); +} + +void PythonQtWrapper_QDateTimeEdit::clearMinimumTime(QDateTimeEdit* theWrappedObject) +{ + ( theWrappedObject->clearMinimumTime()); +} + +QDateTimeEdit::Section PythonQtWrapper_QDateTimeEdit::currentSection(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->currentSection()); +} + +int PythonQtWrapper_QDateTimeEdit::currentSectionIndex(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->currentSectionIndex()); +} + +QDate PythonQtWrapper_QDateTimeEdit::date(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->date()); +} + +QDateTime PythonQtWrapper_QDateTimeEdit::dateTime(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->dateTime()); +} + +QDateTime PythonQtWrapper_QDateTimeEdit::dateTimeFromText(QDateTimeEdit* theWrappedObject, const QString& text) const +{ + return ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_dateTimeFromText(text)); +} + +QString PythonQtWrapper_QDateTimeEdit::displayFormat(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->displayFormat()); +} + +QDateTimeEdit::Sections PythonQtWrapper_QDateTimeEdit::displayedSections(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->displayedSections()); +} + +bool PythonQtWrapper_QDateTimeEdit::event(QDateTimeEdit* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_event(event)); +} + +void PythonQtWrapper_QDateTimeEdit::fixup(QDateTimeEdit* theWrappedObject, QString& input) const +{ + ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_fixup(input)); +} + +void PythonQtWrapper_QDateTimeEdit::focusInEvent(QDateTimeEdit* theWrappedObject, QFocusEvent* event) +{ + ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_focusInEvent(event)); +} + +bool PythonQtWrapper_QDateTimeEdit::focusNextPrevChild(QDateTimeEdit* theWrappedObject, bool next) +{ + return ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_focusNextPrevChild(next)); +} + +void PythonQtWrapper_QDateTimeEdit::keyPressEvent(QDateTimeEdit* theWrappedObject, QKeyEvent* event) +{ + ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_keyPressEvent(event)); +} + +QDate PythonQtWrapper_QDateTimeEdit::maximumDate(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->maximumDate()); +} + +QDateTime PythonQtWrapper_QDateTimeEdit::maximumDateTime(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->maximumDateTime()); +} + +QTime PythonQtWrapper_QDateTimeEdit::maximumTime(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->maximumTime()); +} + +QDate PythonQtWrapper_QDateTimeEdit::minimumDate(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->minimumDate()); +} + +QDateTime PythonQtWrapper_QDateTimeEdit::minimumDateTime(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->minimumDateTime()); +} + +QTime PythonQtWrapper_QDateTimeEdit::minimumTime(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->minimumTime()); +} + +void PythonQtWrapper_QDateTimeEdit::mousePressEvent(QDateTimeEdit* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_mousePressEvent(event)); +} + +void PythonQtWrapper_QDateTimeEdit::paintEvent(QDateTimeEdit* theWrappedObject, QPaintEvent* event) +{ + ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_paintEvent(event)); +} + +QDateTimeEdit::Section PythonQtWrapper_QDateTimeEdit::sectionAt(QDateTimeEdit* theWrappedObject, int index) const +{ + return ( theWrappedObject->sectionAt(index)); +} + +int PythonQtWrapper_QDateTimeEdit::sectionCount(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->sectionCount()); +} + +QString PythonQtWrapper_QDateTimeEdit::sectionText(QDateTimeEdit* theWrappedObject, QDateTimeEdit::Section section) const +{ + return ( theWrappedObject->sectionText(section)); +} + +void PythonQtWrapper_QDateTimeEdit::setCalendarPopup(QDateTimeEdit* theWrappedObject, bool enable) +{ + ( theWrappedObject->setCalendarPopup(enable)); +} + +void PythonQtWrapper_QDateTimeEdit::setCalendarWidget(QDateTimeEdit* theWrappedObject, QCalendarWidget* calendarWidget) +{ + ( theWrappedObject->setCalendarWidget(calendarWidget)); +} + +void PythonQtWrapper_QDateTimeEdit::setCurrentSection(QDateTimeEdit* theWrappedObject, QDateTimeEdit::Section section) +{ + ( theWrappedObject->setCurrentSection(section)); +} + +void PythonQtWrapper_QDateTimeEdit::setCurrentSectionIndex(QDateTimeEdit* theWrappedObject, int index) +{ + ( theWrappedObject->setCurrentSectionIndex(index)); +} + +void PythonQtWrapper_QDateTimeEdit::setDateRange(QDateTimeEdit* theWrappedObject, const QDate& min, const QDate& max) +{ + ( theWrappedObject->setDateRange(min, max)); +} + +void PythonQtWrapper_QDateTimeEdit::setDateTimeRange(QDateTimeEdit* theWrappedObject, const QDateTime& min, const QDateTime& max) +{ + ( theWrappedObject->setDateTimeRange(min, max)); +} + +void PythonQtWrapper_QDateTimeEdit::setDisplayFormat(QDateTimeEdit* theWrappedObject, const QString& format) +{ + ( theWrappedObject->setDisplayFormat(format)); +} + +void PythonQtWrapper_QDateTimeEdit::setMaximumDate(QDateTimeEdit* theWrappedObject, const QDate& max) +{ + ( theWrappedObject->setMaximumDate(max)); +} + +void PythonQtWrapper_QDateTimeEdit::setMaximumDateTime(QDateTimeEdit* theWrappedObject, const QDateTime& dt) +{ + ( theWrappedObject->setMaximumDateTime(dt)); +} + +void PythonQtWrapper_QDateTimeEdit::setMaximumTime(QDateTimeEdit* theWrappedObject, const QTime& max) +{ + ( theWrappedObject->setMaximumTime(max)); +} + +void PythonQtWrapper_QDateTimeEdit::setMinimumDate(QDateTimeEdit* theWrappedObject, const QDate& min) +{ + ( theWrappedObject->setMinimumDate(min)); +} + +void PythonQtWrapper_QDateTimeEdit::setMinimumDateTime(QDateTimeEdit* theWrappedObject, const QDateTime& dt) +{ + ( theWrappedObject->setMinimumDateTime(dt)); +} + +void PythonQtWrapper_QDateTimeEdit::setMinimumTime(QDateTimeEdit* theWrappedObject, const QTime& min) +{ + ( theWrappedObject->setMinimumTime(min)); +} + +void PythonQtWrapper_QDateTimeEdit::setSelectedSection(QDateTimeEdit* theWrappedObject, QDateTimeEdit::Section section) +{ + ( theWrappedObject->setSelectedSection(section)); +} + +void PythonQtWrapper_QDateTimeEdit::setTimeRange(QDateTimeEdit* theWrappedObject, const QTime& min, const QTime& max) +{ + ( theWrappedObject->setTimeRange(min, max)); +} + +void PythonQtWrapper_QDateTimeEdit::setTimeSpec(QDateTimeEdit* theWrappedObject, Qt::TimeSpec spec) +{ + ( theWrappedObject->setTimeSpec(spec)); +} + +QSize PythonQtWrapper_QDateTimeEdit::sizeHint(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +void PythonQtWrapper_QDateTimeEdit::stepBy(QDateTimeEdit* theWrappedObject, int steps) +{ + ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_stepBy(steps)); +} + +QAbstractSpinBox::StepEnabled PythonQtWrapper_QDateTimeEdit::stepEnabled(QDateTimeEdit* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_stepEnabled()); +} + +QString PythonQtWrapper_QDateTimeEdit::textFromDateTime(QDateTimeEdit* theWrappedObject, const QDateTime& dt) const +{ + return ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_textFromDateTime(dt)); +} + +QTime PythonQtWrapper_QDateTimeEdit::time(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->time()); +} + +Qt::TimeSpec PythonQtWrapper_QDateTimeEdit::timeSpec(QDateTimeEdit* theWrappedObject) const +{ + return ( theWrappedObject->timeSpec()); +} + +QValidator::State PythonQtWrapper_QDateTimeEdit::validate(QDateTimeEdit* theWrappedObject, QString& input, int& pos) const +{ + return ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_validate(input, pos)); +} + +void PythonQtWrapper_QDateTimeEdit::wheelEvent(QDateTimeEdit* theWrappedObject, QWheelEvent* event) +{ + ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_wheelEvent(event)); +} + +#endif + +PythonQtShell_QDesktopServices::~PythonQtShell_QDesktopServices() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QDesktopServices* PythonQtWrapper_QDesktopServices::new_QDesktopServices() +{ +return new PythonQtShell_QDesktopServices(); } + +bool PythonQtWrapper_QDesktopServices::static_QDesktopServices_openUrl(const QUrl& url) +{ + return (QDesktopServices::openUrl(url)); +} + +void PythonQtWrapper_QDesktopServices::static_QDesktopServices_setUrlHandler(const QString& scheme, QObject* receiver, const char* method) +{ + (QDesktopServices::setUrlHandler(scheme, receiver, method)); +} + +void PythonQtWrapper_QDesktopServices::static_QDesktopServices_unsetUrlHandler(const QString& scheme) +{ + (QDesktopServices::unsetUrlHandler(scheme)); +} + + diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui0.h b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui0.h new file mode 100644 index 00000000..f26f2012 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui0.h @@ -0,0 +1,2711 @@ +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined(QT_WIDGETS_LIB) +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif + +#if defined(QT_PRINTSUPPORT_LIB) +#include +#include +#endif + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QAbstractButton : public QAbstractButton +{ +public: + PythonQtShell_QAbstractButton(QWidget* parent = 0):QAbstractButton(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractButton(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* e); +virtual void checkStateSet(); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* e); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* e); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual bool hitButton(const QPoint& pos) const; +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* e); +virtual void keyReleaseEvent(QKeyEvent* e); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* e); +virtual void mousePressEvent(QMouseEvent* e); +virtual void mouseReleaseEvent(QMouseEvent* e); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void nextCheckState(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* e); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual QSize sizeHint() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* e); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QAbstractButton : public QAbstractButton +{ public: +inline void promoted_changeEvent(QEvent* e) { QAbstractButton::changeEvent(e); } +inline void promoted_checkStateSet() { QAbstractButton::checkStateSet(); } +inline bool promoted_event(QEvent* e) { return QAbstractButton::event(e); } +inline void promoted_focusInEvent(QFocusEvent* e) { QAbstractButton::focusInEvent(e); } +inline void promoted_focusOutEvent(QFocusEvent* e) { QAbstractButton::focusOutEvent(e); } +inline bool promoted_hitButton(const QPoint& pos) const { return QAbstractButton::hitButton(pos); } +inline void promoted_keyPressEvent(QKeyEvent* e) { QAbstractButton::keyPressEvent(e); } +inline void promoted_keyReleaseEvent(QKeyEvent* e) { QAbstractButton::keyReleaseEvent(e); } +inline void promoted_mouseMoveEvent(QMouseEvent* e) { QAbstractButton::mouseMoveEvent(e); } +inline void promoted_mousePressEvent(QMouseEvent* e) { QAbstractButton::mousePressEvent(e); } +inline void promoted_mouseReleaseEvent(QMouseEvent* e) { QAbstractButton::mouseReleaseEvent(e); } +inline void promoted_nextCheckState() { QAbstractButton::nextCheckState(); } +inline void promoted_timerEvent(QTimerEvent* e) { QAbstractButton::timerEvent(e); } +}; + +class PythonQtWrapper_QAbstractButton : public QObject +{ Q_OBJECT +public: +public slots: +QAbstractButton* new_QAbstractButton(QWidget* parent = 0); +void delete_QAbstractButton(QAbstractButton* obj) { delete obj; } + bool autoExclusive(QAbstractButton* theWrappedObject) const; + bool autoRepeat(QAbstractButton* theWrappedObject) const; + int autoRepeatDelay(QAbstractButton* theWrappedObject) const; + int autoRepeatInterval(QAbstractButton* theWrappedObject) const; + void changeEvent(QAbstractButton* theWrappedObject, QEvent* e); + void checkStateSet(QAbstractButton* theWrappedObject); + bool event(QAbstractButton* theWrappedObject, QEvent* e); + void focusInEvent(QAbstractButton* theWrappedObject, QFocusEvent* e); + void focusOutEvent(QAbstractButton* theWrappedObject, QFocusEvent* e); + QButtonGroup* group(QAbstractButton* theWrappedObject) const; + bool hitButton(QAbstractButton* theWrappedObject, const QPoint& pos) const; + QIcon icon(QAbstractButton* theWrappedObject) const; + QSize iconSize(QAbstractButton* theWrappedObject) const; + bool isCheckable(QAbstractButton* theWrappedObject) const; + bool isChecked(QAbstractButton* theWrappedObject) const; + bool isDown(QAbstractButton* theWrappedObject) const; + void keyPressEvent(QAbstractButton* theWrappedObject, QKeyEvent* e); + void keyReleaseEvent(QAbstractButton* theWrappedObject, QKeyEvent* e); + void mouseMoveEvent(QAbstractButton* theWrappedObject, QMouseEvent* e); + void mousePressEvent(QAbstractButton* theWrappedObject, QMouseEvent* e); + void mouseReleaseEvent(QAbstractButton* theWrappedObject, QMouseEvent* e); + void nextCheckState(QAbstractButton* theWrappedObject); + void setAutoExclusive(QAbstractButton* theWrappedObject, bool arg__1); + void setAutoRepeat(QAbstractButton* theWrappedObject, bool arg__1); + void setAutoRepeatDelay(QAbstractButton* theWrappedObject, int arg__1); + void setAutoRepeatInterval(QAbstractButton* theWrappedObject, int arg__1); + void setCheckable(QAbstractButton* theWrappedObject, bool arg__1); + void setDown(QAbstractButton* theWrappedObject, bool arg__1); + void setIcon(QAbstractButton* theWrappedObject, const QIcon& icon); + void setShortcut(QAbstractButton* theWrappedObject, const QKeySequence& key); + void setText(QAbstractButton* theWrappedObject, const QString& text); + QKeySequence shortcut(QAbstractButton* theWrappedObject) const; + QString text(QAbstractButton* theWrappedObject) const; + void timerEvent(QAbstractButton* theWrappedObject, QTimerEvent* e); +}; + + + + + +class PythonQtShell_QAbstractGraphicsShapeItem : public QAbstractGraphicsShapeItem +{ +public: + PythonQtShell_QAbstractGraphicsShapeItem(QGraphicsItem* parent = 0):QAbstractGraphicsShapeItem(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractGraphicsShapeItem(); + +virtual void advance(int phase); +virtual QRectF boundingRect() const; +virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const; +virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const; +virtual bool contains(const QPointF& point) const; +virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); +virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event); +virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event); +virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event); +virtual void dropEvent(QGraphicsSceneDragDropEvent* event); +virtual QVariant extension(const QVariant& variant) const; +virtual void focusInEvent(QFocusEvent* event); +virtual void focusOutEvent(QFocusEvent* event); +virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event); +virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); +virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual bool isObscuredBy(const QGraphicsItem* item) const; +virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value); +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* event); +virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event); +virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event); +virtual void mousePressEvent(QGraphicsSceneMouseEvent* event); +virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); +virtual QPainterPath opaqueArea() const; +virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); +virtual bool sceneEvent(QEvent* event); +virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); +virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant); +virtual QPainterPath shape() const; +virtual bool supportsExtension(QGraphicsItem::Extension extension) const; +virtual int type() const; +virtual void wheelEvent(QGraphicsSceneWheelEvent* event); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QAbstractGraphicsShapeItem : public QAbstractGraphicsShapeItem +{ public: +inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QAbstractGraphicsShapeItem::isObscuredBy(item); } +inline QPainterPath promoted_opaqueArea() const { return QAbstractGraphicsShapeItem::opaqueArea(); } +}; + +class PythonQtWrapper_QAbstractGraphicsShapeItem : public QObject +{ Q_OBJECT +public: +public slots: +QAbstractGraphicsShapeItem* new_QAbstractGraphicsShapeItem(QGraphicsItem* parent = 0); +void delete_QAbstractGraphicsShapeItem(QAbstractGraphicsShapeItem* obj) { delete obj; } + QBrush brush(QAbstractGraphicsShapeItem* theWrappedObject) const; + bool isObscuredBy(QAbstractGraphicsShapeItem* theWrappedObject, const QGraphicsItem* item) const; + QPainterPath opaqueArea(QAbstractGraphicsShapeItem* theWrappedObject) const; + QPen pen(QAbstractGraphicsShapeItem* theWrappedObject) const; + void setBrush(QAbstractGraphicsShapeItem* theWrappedObject, const QBrush& brush); + void setPen(QAbstractGraphicsShapeItem* theWrappedObject, const QPen& pen); +}; + + + + + +class PythonQtShell_QAbstractItemDelegate : public QAbstractItemDelegate +{ +public: + PythonQtShell_QAbstractItemDelegate(QObject* parent = 0):QAbstractItemDelegate(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractItemDelegate(); + +virtual void childEvent(QChildEvent* arg__1); +virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; +virtual void customEvent(QEvent* arg__1); +virtual void destroyEditor(QWidget* editor, const QModelIndex& index) const; +virtual bool editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool helpEvent(QHelpEvent* event, QAbstractItemView* view, const QStyleOptionViewItem& option, const QModelIndex& index); +virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; +virtual QVector paintingRoles() const; +virtual void setEditorData(QWidget* editor, const QModelIndex& index) const; +virtual void setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const; +virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual void updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QAbstractItemDelegate : public QAbstractItemDelegate +{ public: +inline QWidget* promoted_createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const { return QAbstractItemDelegate::createEditor(parent, option, index); } +inline void promoted_destroyEditor(QWidget* editor, const QModelIndex& index) const { QAbstractItemDelegate::destroyEditor(editor, index); } +inline bool promoted_editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) { return QAbstractItemDelegate::editorEvent(event, model, option, index); } +inline bool promoted_helpEvent(QHelpEvent* event, QAbstractItemView* view, const QStyleOptionViewItem& option, const QModelIndex& index) { return QAbstractItemDelegate::helpEvent(event, view, option, index); } +inline QVector promoted_paintingRoles() const { return QAbstractItemDelegate::paintingRoles(); } +inline void promoted_setEditorData(QWidget* editor, const QModelIndex& index) const { QAbstractItemDelegate::setEditorData(editor, index); } +inline void promoted_setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const { QAbstractItemDelegate::setModelData(editor, model, index); } +inline void promoted_updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const { QAbstractItemDelegate::updateEditorGeometry(editor, option, index); } +}; + +class PythonQtWrapper_QAbstractItemDelegate : public QObject +{ Q_OBJECT +public: +Q_ENUMS(EndEditHint ) +enum EndEditHint{ + NoHint = QAbstractItemDelegate::NoHint, EditNextItem = QAbstractItemDelegate::EditNextItem, EditPreviousItem = QAbstractItemDelegate::EditPreviousItem, SubmitModelCache = QAbstractItemDelegate::SubmitModelCache, RevertModelCache = QAbstractItemDelegate::RevertModelCache}; +public slots: +QAbstractItemDelegate* new_QAbstractItemDelegate(QObject* parent = 0); +void delete_QAbstractItemDelegate(QAbstractItemDelegate* obj) { delete obj; } + QWidget* createEditor(QAbstractItemDelegate* theWrappedObject, QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; + void destroyEditor(QAbstractItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const; + bool editorEvent(QAbstractItemDelegate* theWrappedObject, QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index); + bool helpEvent(QAbstractItemDelegate* theWrappedObject, QHelpEvent* event, QAbstractItemView* view, const QStyleOptionViewItem& option, const QModelIndex& index); + QVector paintingRoles(QAbstractItemDelegate* theWrappedObject) const; + void setEditorData(QAbstractItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const; + void setModelData(QAbstractItemDelegate* theWrappedObject, QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const; + void updateEditorGeometry(QAbstractItemDelegate* theWrappedObject, QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const; +}; + + + + + +class PythonQtShell_QAbstractItemView : public QAbstractItemView +{ +public: + PythonQtShell_QAbstractItemView(QWidget* parent = 0):QAbstractItemView(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractItemView(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void commitData(QWidget* editor); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); +virtual void customEvent(QEvent* arg__1); +virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles = QVector()); +virtual int devType() const; +virtual void doItemsLayout(); +virtual void dragEnterEvent(QDragEnterEvent* event); +virtual void dragLeaveEvent(QDragLeaveEvent* event); +virtual void dragMoveEvent(QDragMoveEvent* event); +virtual void dropEvent(QDropEvent* event); +virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); +virtual void editorDestroyed(QObject* editor); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* event); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual int horizontalOffset() const; +virtual void horizontalScrollbarAction(int action); +virtual void horizontalScrollbarValueChanged(int value); +virtual QModelIndex indexAt(const QPoint& point) const; +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual bool isIndexHidden(const QModelIndex& index) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void keyboardSearch(const QString& search); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* event); +virtual void mouseMoveEvent(QMouseEvent* event); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* event); +virtual QModelIndex moveCursor(QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reset(); +virtual void resizeEvent(QResizeEvent* 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 void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); +virtual void selectAll(); +virtual QList selectedIndexes() const; +virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); +virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event = 0) const; +virtual void setModel(QAbstractItemModel* model); +virtual void setRootIndex(const QModelIndex& index); +virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); +virtual void setSelectionModel(QItemSelectionModel* selectionModel); +virtual void setupViewport(QWidget* viewport); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual int sizeHintForColumn(int column) const; +virtual int sizeHintForRow(int row) const; +virtual void startDrag(Qt::DropActions supportedActions); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* event); +virtual void updateEditorData(); +virtual void updateEditorGeometries(); +virtual void updateGeometries(); +virtual int verticalOffset() const; +virtual void verticalScrollbarAction(int action); +virtual void verticalScrollbarValueChanged(int value); +virtual QStyleOptionViewItem viewOptions() const; +virtual bool viewportEvent(QEvent* event); +virtual QSize viewportSizeHint() const; +virtual QRect visualRect(const QModelIndex& index) const; +virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QAbstractItemView : public QAbstractItemView +{ public: +inline void promoted_closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) { QAbstractItemView::closeEditor(editor, hint); } +inline void promoted_commitData(QWidget* editor) { QAbstractItemView::commitData(editor); } +inline void promoted_currentChanged(const QModelIndex& current, const QModelIndex& previous) { QAbstractItemView::currentChanged(current, previous); } +inline void promoted_dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles = QVector()) { QAbstractItemView::dataChanged(topLeft, bottomRight, roles); } +inline void promoted_doItemsLayout() { QAbstractItemView::doItemsLayout(); } +inline void promoted_dragEnterEvent(QDragEnterEvent* event) { QAbstractItemView::dragEnterEvent(event); } +inline void promoted_dragLeaveEvent(QDragLeaveEvent* event) { QAbstractItemView::dragLeaveEvent(event); } +inline void promoted_dragMoveEvent(QDragMoveEvent* event) { QAbstractItemView::dragMoveEvent(event); } +inline void promoted_dropEvent(QDropEvent* event) { QAbstractItemView::dropEvent(event); } +inline bool promoted_edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) { return QAbstractItemView::edit(index, trigger, event); } +inline void promoted_editorDestroyed(QObject* editor) { QAbstractItemView::editorDestroyed(editor); } +inline bool promoted_event(QEvent* event) { return QAbstractItemView::event(event); } +inline void promoted_focusInEvent(QFocusEvent* event) { QAbstractItemView::focusInEvent(event); } +inline bool promoted_focusNextPrevChild(bool next) { return QAbstractItemView::focusNextPrevChild(next); } +inline void promoted_focusOutEvent(QFocusEvent* event) { QAbstractItemView::focusOutEvent(event); } +inline void promoted_horizontalScrollbarAction(int action) { QAbstractItemView::horizontalScrollbarAction(action); } +inline void promoted_horizontalScrollbarValueChanged(int value) { QAbstractItemView::horizontalScrollbarValueChanged(value); } +inline void promoted_inputMethodEvent(QInputMethodEvent* event) { QAbstractItemView::inputMethodEvent(event); } +inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery query) const { return QAbstractItemView::inputMethodQuery(query); } +inline void promoted_keyPressEvent(QKeyEvent* event) { QAbstractItemView::keyPressEvent(event); } +inline void promoted_keyboardSearch(const QString& search) { QAbstractItemView::keyboardSearch(search); } +inline void promoted_mouseDoubleClickEvent(QMouseEvent* event) { QAbstractItemView::mouseDoubleClickEvent(event); } +inline void promoted_mouseMoveEvent(QMouseEvent* event) { QAbstractItemView::mouseMoveEvent(event); } +inline void promoted_mousePressEvent(QMouseEvent* event) { QAbstractItemView::mousePressEvent(event); } +inline void promoted_mouseReleaseEvent(QMouseEvent* event) { QAbstractItemView::mouseReleaseEvent(event); } +inline void promoted_reset() { QAbstractItemView::reset(); } +inline void promoted_resizeEvent(QResizeEvent* event) { QAbstractItemView::resizeEvent(event); } +inline void promoted_rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) { QAbstractItemView::rowsAboutToBeRemoved(parent, start, end); } +inline void promoted_rowsInserted(const QModelIndex& parent, int start, int end) { QAbstractItemView::rowsInserted(parent, start, end); } +inline void promoted_selectAll() { QAbstractItemView::selectAll(); } +inline QList promoted_selectedIndexes() const { return QAbstractItemView::selectedIndexes(); } +inline void promoted_selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) { QAbstractItemView::selectionChanged(selected, deselected); } +inline QItemSelectionModel::SelectionFlags promoted_selectionCommand(const QModelIndex& index, const QEvent* event = 0) const { return QAbstractItemView::selectionCommand(index, event); } +inline void promoted_setModel(QAbstractItemModel* model) { QAbstractItemView::setModel(model); } +inline void promoted_setRootIndex(const QModelIndex& index) { QAbstractItemView::setRootIndex(index); } +inline void promoted_setSelectionModel(QItemSelectionModel* selectionModel) { QAbstractItemView::setSelectionModel(selectionModel); } +inline int promoted_sizeHintForColumn(int column) const { return QAbstractItemView::sizeHintForColumn(column); } +inline int promoted_sizeHintForRow(int row) const { return QAbstractItemView::sizeHintForRow(row); } +inline void promoted_startDrag(Qt::DropActions supportedActions) { QAbstractItemView::startDrag(supportedActions); } +inline void promoted_timerEvent(QTimerEvent* event) { QAbstractItemView::timerEvent(event); } +inline void promoted_updateEditorData() { QAbstractItemView::updateEditorData(); } +inline void promoted_updateEditorGeometries() { QAbstractItemView::updateEditorGeometries(); } +inline void promoted_updateGeometries() { QAbstractItemView::updateGeometries(); } +inline void promoted_verticalScrollbarAction(int action) { QAbstractItemView::verticalScrollbarAction(action); } +inline void promoted_verticalScrollbarValueChanged(int value) { QAbstractItemView::verticalScrollbarValueChanged(value); } +inline QStyleOptionViewItem promoted_viewOptions() const { return QAbstractItemView::viewOptions(); } +inline bool promoted_viewportEvent(QEvent* event) { return QAbstractItemView::viewportEvent(event); } +}; + +class PythonQtWrapper_QAbstractItemView : public QObject +{ Q_OBJECT +public: +Q_ENUMS(EditTrigger ) +Q_FLAGS(EditTriggers ) +enum EditTrigger{ + NoEditTriggers = QAbstractItemView::NoEditTriggers, CurrentChanged = QAbstractItemView::CurrentChanged, DoubleClicked = QAbstractItemView::DoubleClicked, SelectedClicked = QAbstractItemView::SelectedClicked, EditKeyPressed = QAbstractItemView::EditKeyPressed, AnyKeyPressed = QAbstractItemView::AnyKeyPressed, AllEditTriggers = QAbstractItemView::AllEditTriggers}; +Q_DECLARE_FLAGS(EditTriggers, EditTrigger) +public slots: +QAbstractItemView* new_QAbstractItemView(QWidget* parent = 0); +void delete_QAbstractItemView(QAbstractItemView* obj) { delete obj; } + bool alternatingRowColors(QAbstractItemView* theWrappedObject) const; + int autoScrollMargin(QAbstractItemView* theWrappedObject) const; + void closeEditor(QAbstractItemView* theWrappedObject, QWidget* editor, QAbstractItemDelegate::EndEditHint hint); + void closePersistentEditor(QAbstractItemView* theWrappedObject, const QModelIndex& index); + void commitData(QAbstractItemView* theWrappedObject, QWidget* editor); + void currentChanged(QAbstractItemView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous); + QModelIndex currentIndex(QAbstractItemView* theWrappedObject) const; + void dataChanged(QAbstractItemView* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles = QVector()); + Qt::DropAction defaultDropAction(QAbstractItemView* theWrappedObject) const; + void doItemsLayout(QAbstractItemView* theWrappedObject); + QAbstractItemView::DragDropMode dragDropMode(QAbstractItemView* theWrappedObject) const; + bool dragDropOverwriteMode(QAbstractItemView* theWrappedObject) const; + bool dragEnabled(QAbstractItemView* theWrappedObject) const; + void dragEnterEvent(QAbstractItemView* theWrappedObject, QDragEnterEvent* event); + void dragLeaveEvent(QAbstractItemView* theWrappedObject, QDragLeaveEvent* event); + void dragMoveEvent(QAbstractItemView* theWrappedObject, QDragMoveEvent* event); + void dropEvent(QAbstractItemView* theWrappedObject, QDropEvent* event); + bool edit(QAbstractItemView* theWrappedObject, const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); + QAbstractItemView::EditTriggers editTriggers(QAbstractItemView* theWrappedObject) const; + void editorDestroyed(QAbstractItemView* theWrappedObject, QObject* editor); + bool event(QAbstractItemView* theWrappedObject, QEvent* event); + void focusInEvent(QAbstractItemView* theWrappedObject, QFocusEvent* event); + bool focusNextPrevChild(QAbstractItemView* theWrappedObject, bool next); + void focusOutEvent(QAbstractItemView* theWrappedObject, QFocusEvent* event); + bool hasAutoScroll(QAbstractItemView* theWrappedObject) const; + QAbstractItemView::ScrollMode horizontalScrollMode(QAbstractItemView* theWrappedObject) const; + void horizontalScrollbarAction(QAbstractItemView* theWrappedObject, int action); + void horizontalScrollbarValueChanged(QAbstractItemView* theWrappedObject, int value); + QSize iconSize(QAbstractItemView* theWrappedObject) const; + QWidget* indexWidget(QAbstractItemView* theWrappedObject, const QModelIndex& index) const; + void inputMethodEvent(QAbstractItemView* theWrappedObject, QInputMethodEvent* event); + QVariant inputMethodQuery(QAbstractItemView* theWrappedObject, Qt::InputMethodQuery query) const; + QAbstractItemDelegate* itemDelegate(QAbstractItemView* theWrappedObject) const; + QAbstractItemDelegate* itemDelegate(QAbstractItemView* theWrappedObject, const QModelIndex& index) const; + QAbstractItemDelegate* itemDelegateForColumn(QAbstractItemView* theWrappedObject, int column) const; + QAbstractItemDelegate* itemDelegateForRow(QAbstractItemView* theWrappedObject, int row) const; + void keyPressEvent(QAbstractItemView* theWrappedObject, QKeyEvent* event); + void keyboardSearch(QAbstractItemView* theWrappedObject, const QString& search); + QAbstractItemModel* model(QAbstractItemView* theWrappedObject) const; + void mouseDoubleClickEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event); + void mouseMoveEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event); + void mousePressEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event); + void mouseReleaseEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event); + void openPersistentEditor(QAbstractItemView* theWrappedObject, const QModelIndex& index); + void reset(QAbstractItemView* theWrappedObject); + void resizeEvent(QAbstractItemView* theWrappedObject, QResizeEvent* event); + QModelIndex rootIndex(QAbstractItemView* theWrappedObject) const; + void rowsAboutToBeRemoved(QAbstractItemView* theWrappedObject, const QModelIndex& parent, int start, int end); + void rowsInserted(QAbstractItemView* theWrappedObject, const QModelIndex& parent, int start, int end); + void selectAll(QAbstractItemView* theWrappedObject); + QList selectedIndexes(QAbstractItemView* theWrappedObject) const; + QAbstractItemView::SelectionBehavior selectionBehavior(QAbstractItemView* theWrappedObject) const; + void selectionChanged(QAbstractItemView* theWrappedObject, const QItemSelection& selected, const QItemSelection& deselected); + QItemSelectionModel::SelectionFlags selectionCommand(QAbstractItemView* theWrappedObject, const QModelIndex& index, const QEvent* event = 0) const; + QAbstractItemView::SelectionMode selectionMode(QAbstractItemView* theWrappedObject) const; + QItemSelectionModel* selectionModel(QAbstractItemView* theWrappedObject) const; + void setAlternatingRowColors(QAbstractItemView* theWrappedObject, bool enable); + void setAutoScroll(QAbstractItemView* theWrappedObject, bool enable); + void setAutoScrollMargin(QAbstractItemView* theWrappedObject, int margin); + void setDefaultDropAction(QAbstractItemView* theWrappedObject, Qt::DropAction dropAction); + void setDragDropMode(QAbstractItemView* theWrappedObject, QAbstractItemView::DragDropMode behavior); + void setDragDropOverwriteMode(QAbstractItemView* theWrappedObject, bool overwrite); + void setDragEnabled(QAbstractItemView* theWrappedObject, bool enable); + void setDropIndicatorShown(QAbstractItemView* theWrappedObject, bool enable); + void setEditTriggers(QAbstractItemView* theWrappedObject, QAbstractItemView::EditTriggers triggers); + void setHorizontalScrollMode(QAbstractItemView* theWrappedObject, QAbstractItemView::ScrollMode mode); + void setIconSize(QAbstractItemView* theWrappedObject, const QSize& size); + void setIndexWidget(QAbstractItemView* theWrappedObject, const QModelIndex& index, QWidget* widget); + void setItemDelegate(QAbstractItemView* theWrappedObject, QAbstractItemDelegate* delegate); + void setItemDelegateForColumn(QAbstractItemView* theWrappedObject, int column, QAbstractItemDelegate* delegate); + void setItemDelegateForRow(QAbstractItemView* theWrappedObject, int row, QAbstractItemDelegate* delegate); + void setModel(QAbstractItemView* theWrappedObject, QAbstractItemModel* model); + void setRootIndex(QAbstractItemView* theWrappedObject, const QModelIndex& index); + void setSelectionBehavior(QAbstractItemView* theWrappedObject, QAbstractItemView::SelectionBehavior behavior); + void setSelectionMode(QAbstractItemView* theWrappedObject, QAbstractItemView::SelectionMode mode); + void setSelectionModel(QAbstractItemView* theWrappedObject, QItemSelectionModel* selectionModel); + void setTabKeyNavigation(QAbstractItemView* theWrappedObject, bool enable); + void setTextElideMode(QAbstractItemView* theWrappedObject, Qt::TextElideMode mode); + void setVerticalScrollMode(QAbstractItemView* theWrappedObject, QAbstractItemView::ScrollMode mode); + bool showDropIndicator(QAbstractItemView* theWrappedObject) const; + int sizeHintForColumn(QAbstractItemView* theWrappedObject, int column) const; + QSize sizeHintForIndex(QAbstractItemView* theWrappedObject, const QModelIndex& index) const; + int sizeHintForRow(QAbstractItemView* theWrappedObject, int row) const; + void startDrag(QAbstractItemView* theWrappedObject, Qt::DropActions supportedActions); + bool tabKeyNavigation(QAbstractItemView* theWrappedObject) const; + Qt::TextElideMode textElideMode(QAbstractItemView* theWrappedObject) const; + void timerEvent(QAbstractItemView* theWrappedObject, QTimerEvent* event); + void updateEditorData(QAbstractItemView* theWrappedObject); + void updateEditorGeometries(QAbstractItemView* theWrappedObject); + void updateGeometries(QAbstractItemView* theWrappedObject); + QAbstractItemView::ScrollMode verticalScrollMode(QAbstractItemView* theWrappedObject) const; + void verticalScrollbarAction(QAbstractItemView* theWrappedObject, int action); + void verticalScrollbarValueChanged(QAbstractItemView* theWrappedObject, int value); + QStyleOptionViewItem viewOptions(QAbstractItemView* theWrappedObject) const; + bool viewportEvent(QAbstractItemView* theWrappedObject, QEvent* event); +}; + +#endif + +#if defined(QT_PRINTSUPPORT_LIB) + +class PythonQtShell_QAbstractPrintDialog : public QAbstractPrintDialog +{ +public: + PythonQtShell_QAbstractPrintDialog(QPrinter* printer, QWidget* parent = 0):QAbstractPrintDialog(printer, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractPrintDialog(); + +virtual void accept(); +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void done(int arg__1); +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual int exec(); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void open(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reject(); +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QAbstractPrintDialog : public QObject +{ Q_OBJECT +public: +Q_ENUMS(PrintRange PrintDialogOption ) +Q_FLAGS(PrintDialogOptions ) +enum PrintRange{ + AllPages = QAbstractPrintDialog::AllPages, Selection = QAbstractPrintDialog::Selection, PageRange = QAbstractPrintDialog::PageRange, CurrentPage = QAbstractPrintDialog::CurrentPage}; +enum PrintDialogOption{ + None = QAbstractPrintDialog::None, PrintToFile = QAbstractPrintDialog::PrintToFile, PrintSelection = QAbstractPrintDialog::PrintSelection, PrintPageRange = QAbstractPrintDialog::PrintPageRange, PrintShowPageSize = QAbstractPrintDialog::PrintShowPageSize, PrintCollateCopies = QAbstractPrintDialog::PrintCollateCopies, DontUseSheet = QAbstractPrintDialog::DontUseSheet, PrintCurrentPage = QAbstractPrintDialog::PrintCurrentPage}; +Q_DECLARE_FLAGS(PrintDialogOptions, PrintDialogOption) +public slots: +QAbstractPrintDialog* new_QAbstractPrintDialog(QPrinter* printer, QWidget* parent = 0); +void delete_QAbstractPrintDialog(QAbstractPrintDialog* obj) { delete obj; } + void addEnabledOption(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option); + QAbstractPrintDialog::PrintDialogOptions enabledOptions(QAbstractPrintDialog* theWrappedObject) const; + int fromPage(QAbstractPrintDialog* theWrappedObject) const; + bool isOptionEnabled(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option) const; + int maxPage(QAbstractPrintDialog* theWrappedObject) const; + int minPage(QAbstractPrintDialog* theWrappedObject) const; + QAbstractPrintDialog::PrintRange printRange(QAbstractPrintDialog* theWrappedObject) const; + QPrinter* printer(QAbstractPrintDialog* theWrappedObject) const; + void setEnabledOptions(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOptions options); + void setFromTo(QAbstractPrintDialog* theWrappedObject, int fromPage, int toPage); + void setMinMax(QAbstractPrintDialog* theWrappedObject, int min, int max); + void setOptionTabs(QAbstractPrintDialog* theWrappedObject, const QList& tabs); + void setPrintRange(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintRange range); + int toPage(QAbstractPrintDialog* theWrappedObject) const; +}; + +#endif + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QAbstractScrollArea : public QAbstractScrollArea +{ +public: + PythonQtShell_QAbstractScrollArea(QWidget* parent = 0):QAbstractScrollArea(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractScrollArea(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual void scrollContentsBy(int dx, int dy); +virtual void setupViewport(QWidget* viewport); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool viewportEvent(QEvent* arg__1); +virtual QSize viewportSizeHint() const; +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QAbstractScrollArea : public QAbstractScrollArea +{ public: +inline void promoted_contextMenuEvent(QContextMenuEvent* arg__1) { QAbstractScrollArea::contextMenuEvent(arg__1); } +inline void promoted_dragEnterEvent(QDragEnterEvent* arg__1) { QAbstractScrollArea::dragEnterEvent(arg__1); } +inline void promoted_dragLeaveEvent(QDragLeaveEvent* arg__1) { QAbstractScrollArea::dragLeaveEvent(arg__1); } +inline void promoted_dragMoveEvent(QDragMoveEvent* arg__1) { QAbstractScrollArea::dragMoveEvent(arg__1); } +inline void promoted_dropEvent(QDropEvent* arg__1) { QAbstractScrollArea::dropEvent(arg__1); } +inline bool promoted_event(QEvent* arg__1) { return QAbstractScrollArea::event(arg__1); } +inline bool promoted_eventFilter(QObject* arg__1, QEvent* arg__2) { return QAbstractScrollArea::eventFilter(arg__1, arg__2); } +inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QAbstractScrollArea::keyPressEvent(arg__1); } +inline void promoted_mouseDoubleClickEvent(QMouseEvent* arg__1) { QAbstractScrollArea::mouseDoubleClickEvent(arg__1); } +inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QAbstractScrollArea::mouseMoveEvent(arg__1); } +inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QAbstractScrollArea::mousePressEvent(arg__1); } +inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QAbstractScrollArea::mouseReleaseEvent(arg__1); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QAbstractScrollArea::paintEvent(arg__1); } +inline void promoted_resizeEvent(QResizeEvent* arg__1) { QAbstractScrollArea::resizeEvent(arg__1); } +inline void promoted_scrollContentsBy(int dx, int dy) { QAbstractScrollArea::scrollContentsBy(dx, dy); } +inline void promoted_setupViewport(QWidget* viewport) { QAbstractScrollArea::setupViewport(viewport); } +inline bool promoted_viewportEvent(QEvent* arg__1) { return QAbstractScrollArea::viewportEvent(arg__1); } +inline QSize promoted_viewportSizeHint() const { return QAbstractScrollArea::viewportSizeHint(); } +inline void promoted_wheelEvent(QWheelEvent* arg__1) { QAbstractScrollArea::wheelEvent(arg__1); } +}; + +class PythonQtWrapper_QAbstractScrollArea : public QObject +{ Q_OBJECT +public: +public slots: +QAbstractScrollArea* new_QAbstractScrollArea(QWidget* parent = 0); +void delete_QAbstractScrollArea(QAbstractScrollArea* obj) { delete obj; } + void addScrollBarWidget(QAbstractScrollArea* theWrappedObject, QWidget* widget, Qt::Alignment alignment); + void contextMenuEvent(QAbstractScrollArea* theWrappedObject, QContextMenuEvent* arg__1); + QWidget* cornerWidget(QAbstractScrollArea* theWrappedObject) const; + void dragEnterEvent(QAbstractScrollArea* theWrappedObject, QDragEnterEvent* arg__1); + void dragLeaveEvent(QAbstractScrollArea* theWrappedObject, QDragLeaveEvent* arg__1); + void dragMoveEvent(QAbstractScrollArea* theWrappedObject, QDragMoveEvent* arg__1); + void dropEvent(QAbstractScrollArea* theWrappedObject, QDropEvent* arg__1); + bool event(QAbstractScrollArea* theWrappedObject, QEvent* arg__1); + bool eventFilter(QAbstractScrollArea* theWrappedObject, QObject* arg__1, QEvent* arg__2); + QScrollBar* horizontalScrollBar(QAbstractScrollArea* theWrappedObject) const; + Qt::ScrollBarPolicy horizontalScrollBarPolicy(QAbstractScrollArea* theWrappedObject) const; + void keyPressEvent(QAbstractScrollArea* theWrappedObject, QKeyEvent* arg__1); + QSize maximumViewportSize(QAbstractScrollArea* theWrappedObject) const; + QSize minimumSizeHint(QAbstractScrollArea* theWrappedObject) const; + void mouseDoubleClickEvent(QAbstractScrollArea* theWrappedObject, QMouseEvent* arg__1); + void mouseMoveEvent(QAbstractScrollArea* theWrappedObject, QMouseEvent* arg__1); + void mousePressEvent(QAbstractScrollArea* theWrappedObject, QMouseEvent* arg__1); + void mouseReleaseEvent(QAbstractScrollArea* theWrappedObject, QMouseEvent* arg__1); + void paintEvent(QAbstractScrollArea* theWrappedObject, QPaintEvent* arg__1); + void resizeEvent(QAbstractScrollArea* theWrappedObject, QResizeEvent* arg__1); + QList scrollBarWidgets(QAbstractScrollArea* theWrappedObject, Qt::Alignment alignment); + void scrollContentsBy(QAbstractScrollArea* theWrappedObject, int dx, int dy); + void setCornerWidget(QAbstractScrollArea* theWrappedObject, QWidget* widget); + void setHorizontalScrollBar(QAbstractScrollArea* theWrappedObject, QScrollBar* scrollbar); + void setHorizontalScrollBarPolicy(QAbstractScrollArea* theWrappedObject, Qt::ScrollBarPolicy arg__1); + void setVerticalScrollBar(QAbstractScrollArea* theWrappedObject, QScrollBar* scrollbar); + void setVerticalScrollBarPolicy(QAbstractScrollArea* theWrappedObject, Qt::ScrollBarPolicy arg__1); + void setViewport(QAbstractScrollArea* theWrappedObject, QWidget* widget); + void setupViewport(QAbstractScrollArea* theWrappedObject, QWidget* viewport); + QSize sizeHint(QAbstractScrollArea* theWrappedObject) const; + QScrollBar* verticalScrollBar(QAbstractScrollArea* theWrappedObject) const; + Qt::ScrollBarPolicy verticalScrollBarPolicy(QAbstractScrollArea* theWrappedObject) const; + QWidget* viewport(QAbstractScrollArea* theWrappedObject) const; + bool viewportEvent(QAbstractScrollArea* theWrappedObject, QEvent* arg__1); + QSize viewportSizeHint(QAbstractScrollArea* theWrappedObject) const; + void wheelEvent(QAbstractScrollArea* theWrappedObject, QWheelEvent* arg__1); +}; + + + + + +class PythonQtShell_QAbstractSlider : public QAbstractSlider +{ +public: + PythonQtShell_QAbstractSlider(QWidget* parent = 0):QAbstractSlider(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractSlider(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* e); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* ev); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual QSize sizeHint() const; +virtual void sliderChange(QAbstractSlider::SliderChange change); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* e); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QAbstractSlider : public QAbstractSlider +{ public: +inline void promoted_changeEvent(QEvent* e) { QAbstractSlider::changeEvent(e); } +inline bool promoted_event(QEvent* e) { return QAbstractSlider::event(e); } +inline void promoted_keyPressEvent(QKeyEvent* ev) { QAbstractSlider::keyPressEvent(ev); } +inline void promoted_timerEvent(QTimerEvent* arg__1) { QAbstractSlider::timerEvent(arg__1); } +inline void promoted_wheelEvent(QWheelEvent* e) { QAbstractSlider::wheelEvent(e); } +}; + +class PythonQtWrapper_QAbstractSlider : public QObject +{ Q_OBJECT +public: +Q_ENUMS(SliderAction ) +enum SliderAction{ + SliderNoAction = QAbstractSlider::SliderNoAction, SliderSingleStepAdd = QAbstractSlider::SliderSingleStepAdd, SliderSingleStepSub = QAbstractSlider::SliderSingleStepSub, SliderPageStepAdd = QAbstractSlider::SliderPageStepAdd, SliderPageStepSub = QAbstractSlider::SliderPageStepSub, SliderToMinimum = QAbstractSlider::SliderToMinimum, SliderToMaximum = QAbstractSlider::SliderToMaximum, SliderMove = QAbstractSlider::SliderMove}; +public slots: +QAbstractSlider* new_QAbstractSlider(QWidget* parent = 0); +void delete_QAbstractSlider(QAbstractSlider* obj) { delete obj; } + void changeEvent(QAbstractSlider* theWrappedObject, QEvent* e); + bool event(QAbstractSlider* theWrappedObject, QEvent* e); + bool hasTracking(QAbstractSlider* theWrappedObject) const; + bool invertedAppearance(QAbstractSlider* theWrappedObject) const; + bool invertedControls(QAbstractSlider* theWrappedObject) const; + bool isSliderDown(QAbstractSlider* theWrappedObject) const; + void keyPressEvent(QAbstractSlider* theWrappedObject, QKeyEvent* ev); + int maximum(QAbstractSlider* theWrappedObject) const; + int minimum(QAbstractSlider* theWrappedObject) const; + Qt::Orientation orientation(QAbstractSlider* theWrappedObject) const; + int pageStep(QAbstractSlider* theWrappedObject) const; + void setInvertedAppearance(QAbstractSlider* theWrappedObject, bool arg__1); + void setInvertedControls(QAbstractSlider* theWrappedObject, bool arg__1); + void setMaximum(QAbstractSlider* theWrappedObject, int arg__1); + void setMinimum(QAbstractSlider* theWrappedObject, int arg__1); + void setPageStep(QAbstractSlider* theWrappedObject, int arg__1); + void setSingleStep(QAbstractSlider* theWrappedObject, int arg__1); + void setSliderDown(QAbstractSlider* theWrappedObject, bool arg__1); + void setSliderPosition(QAbstractSlider* theWrappedObject, int arg__1); + void setTracking(QAbstractSlider* theWrappedObject, bool enable); + int singleStep(QAbstractSlider* theWrappedObject) const; + int sliderPosition(QAbstractSlider* theWrappedObject) const; + void timerEvent(QAbstractSlider* theWrappedObject, QTimerEvent* arg__1); + void triggerAction(QAbstractSlider* theWrappedObject, QAbstractSlider::SliderAction action); + int value(QAbstractSlider* theWrappedObject) const; + void wheelEvent(QAbstractSlider* theWrappedObject, QWheelEvent* e); +}; + + + + + +class PythonQtShell_QAbstractSpinBox : public QAbstractSpinBox +{ +public: + PythonQtShell_QAbstractSpinBox(QWidget* parent = 0):QAbstractSpinBox(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractSpinBox(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* event); +virtual void childEvent(QChildEvent* arg__1); +virtual void clear(); +virtual void closeEvent(QCloseEvent* event); +virtual void contextMenuEvent(QContextMenuEvent* event); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fixup(QString& input) const; +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* event); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* event); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* event); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* event); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* event); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* event); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* event); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* event); +virtual void stepBy(int steps); +virtual QAbstractSpinBox::StepEnabled stepEnabled() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* event); +virtual QValidator::State validate(QString& input, int& pos) const; +virtual void wheelEvent(QWheelEvent* event); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QAbstractSpinBox : public QAbstractSpinBox +{ public: +inline void promoted_changeEvent(QEvent* event) { QAbstractSpinBox::changeEvent(event); } +inline void promoted_clear() { QAbstractSpinBox::clear(); } +inline void promoted_closeEvent(QCloseEvent* event) { QAbstractSpinBox::closeEvent(event); } +inline void promoted_contextMenuEvent(QContextMenuEvent* event) { QAbstractSpinBox::contextMenuEvent(event); } +inline bool promoted_event(QEvent* event) { return QAbstractSpinBox::event(event); } +inline void promoted_fixup(QString& input) const { QAbstractSpinBox::fixup(input); } +inline void promoted_focusInEvent(QFocusEvent* event) { QAbstractSpinBox::focusInEvent(event); } +inline void promoted_focusOutEvent(QFocusEvent* event) { QAbstractSpinBox::focusOutEvent(event); } +inline void promoted_hideEvent(QHideEvent* event) { QAbstractSpinBox::hideEvent(event); } +inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery arg__1) const { return QAbstractSpinBox::inputMethodQuery(arg__1); } +inline void promoted_keyPressEvent(QKeyEvent* event) { QAbstractSpinBox::keyPressEvent(event); } +inline void promoted_keyReleaseEvent(QKeyEvent* event) { QAbstractSpinBox::keyReleaseEvent(event); } +inline void promoted_mouseMoveEvent(QMouseEvent* event) { QAbstractSpinBox::mouseMoveEvent(event); } +inline void promoted_mousePressEvent(QMouseEvent* event) { QAbstractSpinBox::mousePressEvent(event); } +inline void promoted_mouseReleaseEvent(QMouseEvent* event) { QAbstractSpinBox::mouseReleaseEvent(event); } +inline void promoted_paintEvent(QPaintEvent* event) { QAbstractSpinBox::paintEvent(event); } +inline void promoted_resizeEvent(QResizeEvent* event) { QAbstractSpinBox::resizeEvent(event); } +inline void promoted_showEvent(QShowEvent* event) { QAbstractSpinBox::showEvent(event); } +inline void promoted_stepBy(int steps) { QAbstractSpinBox::stepBy(steps); } +inline QAbstractSpinBox::StepEnabled promoted_stepEnabled() const { return QAbstractSpinBox::stepEnabled(); } +inline void promoted_timerEvent(QTimerEvent* event) { QAbstractSpinBox::timerEvent(event); } +inline QValidator::State promoted_validate(QString& input, int& pos) const { return QAbstractSpinBox::validate(input, pos); } +inline void promoted_wheelEvent(QWheelEvent* event) { QAbstractSpinBox::wheelEvent(event); } +}; + +class PythonQtWrapper_QAbstractSpinBox : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StepEnabledFlag ) +Q_FLAGS(StepEnabled ) +enum StepEnabledFlag{ + StepNone = QAbstractSpinBox::StepNone, StepUpEnabled = QAbstractSpinBox::StepUpEnabled, StepDownEnabled = QAbstractSpinBox::StepDownEnabled}; +Q_DECLARE_FLAGS(StepEnabled, StepEnabledFlag) +public slots: +QAbstractSpinBox* new_QAbstractSpinBox(QWidget* parent = 0); +void delete_QAbstractSpinBox(QAbstractSpinBox* obj) { delete obj; } + Qt::Alignment alignment(QAbstractSpinBox* theWrappedObject) const; + QAbstractSpinBox::ButtonSymbols buttonSymbols(QAbstractSpinBox* theWrappedObject) const; + void changeEvent(QAbstractSpinBox* theWrappedObject, QEvent* event); + void clear(QAbstractSpinBox* theWrappedObject); + void closeEvent(QAbstractSpinBox* theWrappedObject, QCloseEvent* event); + void contextMenuEvent(QAbstractSpinBox* theWrappedObject, QContextMenuEvent* event); + QAbstractSpinBox::CorrectionMode correctionMode(QAbstractSpinBox* theWrappedObject) const; + bool event(QAbstractSpinBox* theWrappedObject, QEvent* event); + void fixup(QAbstractSpinBox* theWrappedObject, QString& input) const; + void focusInEvent(QAbstractSpinBox* theWrappedObject, QFocusEvent* event); + void focusOutEvent(QAbstractSpinBox* theWrappedObject, QFocusEvent* event); + bool hasAcceptableInput(QAbstractSpinBox* theWrappedObject) const; + bool hasFrame(QAbstractSpinBox* theWrappedObject) const; + void hideEvent(QAbstractSpinBox* theWrappedObject, QHideEvent* event); + QVariant inputMethodQuery(QAbstractSpinBox* theWrappedObject, Qt::InputMethodQuery arg__1) const; + void interpretText(QAbstractSpinBox* theWrappedObject); + bool isAccelerated(QAbstractSpinBox* theWrappedObject) const; + bool isReadOnly(QAbstractSpinBox* theWrappedObject) const; + void keyPressEvent(QAbstractSpinBox* theWrappedObject, QKeyEvent* event); + void keyReleaseEvent(QAbstractSpinBox* theWrappedObject, QKeyEvent* event); + bool keyboardTracking(QAbstractSpinBox* theWrappedObject) const; + QSize minimumSizeHint(QAbstractSpinBox* theWrappedObject) const; + void mouseMoveEvent(QAbstractSpinBox* theWrappedObject, QMouseEvent* event); + void mousePressEvent(QAbstractSpinBox* theWrappedObject, QMouseEvent* event); + void mouseReleaseEvent(QAbstractSpinBox* theWrappedObject, QMouseEvent* event); + void paintEvent(QAbstractSpinBox* theWrappedObject, QPaintEvent* event); + void resizeEvent(QAbstractSpinBox* theWrappedObject, QResizeEvent* event); + void setAccelerated(QAbstractSpinBox* theWrappedObject, bool on); + void setAlignment(QAbstractSpinBox* theWrappedObject, Qt::Alignment flag); + void setButtonSymbols(QAbstractSpinBox* theWrappedObject, QAbstractSpinBox::ButtonSymbols bs); + void setCorrectionMode(QAbstractSpinBox* theWrappedObject, QAbstractSpinBox::CorrectionMode cm); + void setFrame(QAbstractSpinBox* theWrappedObject, bool arg__1); + void setKeyboardTracking(QAbstractSpinBox* theWrappedObject, bool kt); + void setReadOnly(QAbstractSpinBox* theWrappedObject, bool r); + void setSpecialValueText(QAbstractSpinBox* theWrappedObject, const QString& txt); + void setWrapping(QAbstractSpinBox* theWrappedObject, bool w); + void showEvent(QAbstractSpinBox* theWrappedObject, QShowEvent* event); + QSize sizeHint(QAbstractSpinBox* theWrappedObject) const; + QString specialValueText(QAbstractSpinBox* theWrappedObject) const; + void stepBy(QAbstractSpinBox* theWrappedObject, int steps); + QAbstractSpinBox::StepEnabled stepEnabled(QAbstractSpinBox* theWrappedObject) const; + QString text(QAbstractSpinBox* theWrappedObject) const; + void timerEvent(QAbstractSpinBox* theWrappedObject, QTimerEvent* event); + QValidator::State validate(QAbstractSpinBox* theWrappedObject, QString& input, int& pos) const; + void wheelEvent(QAbstractSpinBox* theWrappedObject, QWheelEvent* event); + bool wrapping(QAbstractSpinBox* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QAction : public QAction +{ +public: + PythonQtShell_QAction(QObject* parent):QAction(parent),_wrapper(NULL) {}; + PythonQtShell_QAction(const QIcon& icon, const QString& text, QObject* parent):QAction(icon, text, parent),_wrapper(NULL) {}; + PythonQtShell_QAction(const QString& text, QObject* parent):QAction(text, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAction(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QAction : public QAction +{ public: +inline bool promoted_event(QEvent* arg__1) { return QAction::event(arg__1); } +}; + +class PythonQtWrapper_QAction : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ActionEvent ) +enum ActionEvent{ + Trigger = QAction::Trigger, Hover = QAction::Hover}; +public slots: +QAction* new_QAction(QObject* parent); +QAction* new_QAction(const QIcon& icon, const QString& text, QObject* parent); +QAction* new_QAction(const QString& text, QObject* parent); +void delete_QAction(QAction* obj) { delete obj; } + QActionGroup* actionGroup(QAction* theWrappedObject) const; + void activate(QAction* theWrappedObject, QAction::ActionEvent event); + QList associatedGraphicsWidgets(QAction* theWrappedObject) const; + QList associatedWidgets(QAction* theWrappedObject) const; + bool autoRepeat(QAction* theWrappedObject) const; + QVariant data(QAction* theWrappedObject) const; + bool event(QAction* theWrappedObject, QEvent* arg__1); + QFont font(QAction* theWrappedObject) const; + QIcon icon(QAction* theWrappedObject) const; + QString iconText(QAction* theWrappedObject) const; + bool isCheckable(QAction* theWrappedObject) const; + bool isChecked(QAction* theWrappedObject) const; + bool isEnabled(QAction* theWrappedObject) const; + bool isIconVisibleInMenu(QAction* theWrappedObject) const; + bool isSeparator(QAction* theWrappedObject) const; + bool isVisible(QAction* theWrappedObject) const; + QMenu* menu(QAction* theWrappedObject) const; + QAction::MenuRole menuRole(QAction* theWrappedObject) const; + QWidget* parentWidget(QAction* theWrappedObject) const; + QAction::Priority priority(QAction* theWrappedObject) const; + void setActionGroup(QAction* theWrappedObject, QActionGroup* group); + void setAutoRepeat(QAction* theWrappedObject, bool arg__1); + void setCheckable(QAction* theWrappedObject, bool arg__1); + void setData(QAction* theWrappedObject, const QVariant& var); + void setFont(QAction* theWrappedObject, const QFont& font); + void setIcon(QAction* theWrappedObject, const QIcon& icon); + void setIconText(QAction* theWrappedObject, const QString& text); + void setIconVisibleInMenu(QAction* theWrappedObject, bool visible); + void setMenu(QAction* theWrappedObject, QMenu* menu); + void setMenuRole(QAction* theWrappedObject, QAction::MenuRole menuRole); + void setPriority(QAction* theWrappedObject, QAction::Priority priority); + void setSeparator(QAction* theWrappedObject, bool b); + void setShortcut(QAction* theWrappedObject, const QKeySequence& shortcut); + void setShortcutContext(QAction* theWrappedObject, Qt::ShortcutContext context); + void setShortcuts(QAction* theWrappedObject, QKeySequence::StandardKey arg__1); + void setShortcuts(QAction* theWrappedObject, const QList& shortcuts); + void setStatusTip(QAction* theWrappedObject, const QString& statusTip); + void setText(QAction* theWrappedObject, const QString& text); + void setToolTip(QAction* theWrappedObject, const QString& tip); + void setWhatsThis(QAction* theWrappedObject, const QString& what); + QKeySequence shortcut(QAction* theWrappedObject) const; + Qt::ShortcutContext shortcutContext(QAction* theWrappedObject) const; + QList shortcuts(QAction* theWrappedObject) const; + bool showStatusText(QAction* theWrappedObject, QWidget* widget = 0); + QString statusTip(QAction* theWrappedObject) const; + QString text(QAction* theWrappedObject) const; + QString toolTip(QAction* theWrappedObject) const; + QString whatsThis(QAction* theWrappedObject) const; +}; + +#endif + + + +class PythonQtWrapper_QActionEvent : public QObject +{ Q_OBJECT +public: +public slots: +QActionEvent* new_QActionEvent(int type, QAction* action, QAction* before = 0); +void delete_QActionEvent(QActionEvent* obj) { delete obj; } + QAction* action(QActionEvent* theWrappedObject) const; + QAction* before(QActionEvent* theWrappedObject) const; +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QActionGroup : public QActionGroup +{ +public: + PythonQtShell_QActionGroup(QObject* parent):QActionGroup(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QActionGroup(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QActionGroup : public QObject +{ Q_OBJECT +public: +public slots: +QActionGroup* new_QActionGroup(QObject* parent); +void delete_QActionGroup(QActionGroup* obj) { delete obj; } + QList actions(QActionGroup* theWrappedObject) const; + QAction* addAction(QActionGroup* theWrappedObject, QAction* a); + QAction* addAction(QActionGroup* theWrappedObject, const QIcon& icon, const QString& text); + QAction* addAction(QActionGroup* theWrappedObject, const QString& text); + QAction* checkedAction(QActionGroup* theWrappedObject) const; + bool isEnabled(QActionGroup* theWrappedObject) const; + bool isExclusive(QActionGroup* theWrappedObject) const; + bool isVisible(QActionGroup* theWrappedObject) const; + void removeAction(QActionGroup* theWrappedObject, QAction* a); +}; + + + + + +class PythonQtShell_QApplication : public QApplication +{ +public: + + ~PythonQtShell_QApplication(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool notify(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QApplication : public QApplication +{ public: +inline bool promoted_event(QEvent* arg__1) { return QApplication::event(arg__1); } +inline bool promoted_notify(QObject* arg__1, QEvent* arg__2) { return QApplication::notify(arg__1, arg__2); } +}; + +class PythonQtWrapper_QApplication : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ColorSpec ) +enum ColorSpec{ + NormalColor = QApplication::NormalColor, CustomColor = QApplication::CustomColor, ManyColor = QApplication::ManyColor}; +public slots: +void delete_QApplication(QApplication* obj) { delete obj; } + QWidget* static_QApplication_activeModalWidget(); + QWidget* static_QApplication_activePopupWidget(); + QWidget* static_QApplication_activeWindow(); + void static_QApplication_alert(QWidget* widget, int duration = 0); + QList static_QApplication_allWidgets(); + void static_QApplication_beep(); + int static_QApplication_colorSpec(); + int static_QApplication_cursorFlashTime(); + QDesktopWidget* static_QApplication_desktop(); + int static_QApplication_doubleClickInterval(); + bool event(QApplication* theWrappedObject, QEvent* arg__1); + int static_QApplication_exec(); + QWidget* static_QApplication_focusWidget(); + QFont static_QApplication_font(); + QFont static_QApplication_font(const QWidget* arg__1); + QSize static_QApplication_globalStrut(); + bool static_QApplication_isEffectEnabled(Qt::UIEffect arg__1); + int static_QApplication_keyboardInputInterval(); + bool notify(QApplication* theWrappedObject, QObject* arg__1, QEvent* arg__2); + QPalette static_QApplication_palette(); + QPalette static_QApplication_palette(const QWidget* arg__1); + void static_QApplication_setActiveWindow(QWidget* act); + void static_QApplication_setColorSpec(int arg__1); + void static_QApplication_setCursorFlashTime(int arg__1); + void static_QApplication_setDoubleClickInterval(int arg__1); + void static_QApplication_setEffectEnabled(Qt::UIEffect arg__1, bool enable = true); + void static_QApplication_setFont(const QFont& arg__1, const char* className = 0); + void static_QApplication_setGlobalStrut(const QSize& arg__1); + void static_QApplication_setKeyboardInputInterval(int arg__1); + void static_QApplication_setPalette(const QPalette& arg__1, const char* className = 0); + void static_QApplication_setStartDragDistance(int l); + void static_QApplication_setStartDragTime(int ms); + void static_QApplication_setStyle(QStyle* arg__1); + QStyle* static_QApplication_setStyle(const QString& arg__1); + void static_QApplication_setWheelScrollLines(int arg__1); + void static_QApplication_setWindowIcon(const QIcon& icon); + int static_QApplication_startDragDistance(); + int static_QApplication_startDragTime(); + QStyle* static_QApplication_style(); + QString styleSheet(QApplication* theWrappedObject) const; + QWidget* static_QApplication_topLevelAt(const QPoint& p); + QWidget* static_QApplication_topLevelAt(int x, int y); + QList static_QApplication_topLevelWidgets(); + int static_QApplication_wheelScrollLines(); + QWidget* static_QApplication_widgetAt(const QPoint& p); + QWidget* static_QApplication_widgetAt(int x, int y); + QIcon static_QApplication_windowIcon(); +}; + + + + + +class PythonQtShell_QBoxLayout : public QBoxLayout +{ +public: + PythonQtShell_QBoxLayout(QBoxLayout::Direction arg__1, QWidget* parent = 0):QBoxLayout(arg__1, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QBoxLayout(); + +virtual void addItem(QLayoutItem* arg__1); +virtual void childEvent(QChildEvent* e); +virtual QSizePolicy::ControlTypes controlTypes() const; +virtual int count() const; +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual Qt::Orientations expandingDirections() const; +virtual QRect geometry() const; +virtual int indexOf(QWidget* arg__1) const; +virtual void invalidate(); +virtual bool isEmpty() const; +virtual QLayoutItem* itemAt(int arg__1) const; +virtual QLayout* layout(); +virtual QSize maximumSize() const; +virtual QSize minimumSize() const; +virtual void setGeometry(const QRect& arg__1); +virtual QLayoutItem* takeAt(int arg__1); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QBoxLayout : public QBoxLayout +{ public: +inline void promoted_addItem(QLayoutItem* arg__1) { QBoxLayout::addItem(arg__1); } +inline int promoted_count() const { return QBoxLayout::count(); } +inline Qt::Orientations promoted_expandingDirections() const { return QBoxLayout::expandingDirections(); } +inline void promoted_invalidate() { QBoxLayout::invalidate(); } +inline QLayoutItem* promoted_itemAt(int arg__1) const { return QBoxLayout::itemAt(arg__1); } +inline QSize promoted_maximumSize() const { return QBoxLayout::maximumSize(); } +inline QSize promoted_minimumSize() const { return QBoxLayout::minimumSize(); } +inline void promoted_setGeometry(const QRect& arg__1) { QBoxLayout::setGeometry(arg__1); } +inline QLayoutItem* promoted_takeAt(int arg__1) { return QBoxLayout::takeAt(arg__1); } +}; + +class PythonQtWrapper_QBoxLayout : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Direction ) +enum Direction{ + LeftToRight = QBoxLayout::LeftToRight, RightToLeft = QBoxLayout::RightToLeft, TopToBottom = QBoxLayout::TopToBottom, BottomToTop = QBoxLayout::BottomToTop, Down = QBoxLayout::Down, Up = QBoxLayout::Up}; +public slots: +QBoxLayout* new_QBoxLayout(QBoxLayout::Direction arg__1, QWidget* parent = 0); +void delete_QBoxLayout(QBoxLayout* obj) { delete obj; } + void addItem(QBoxLayout* theWrappedObject, QLayoutItem* arg__1); + void addLayout(QBoxLayout* theWrappedObject, QLayout* layout, int stretch = 0); + void addSpacerItem(QBoxLayout* theWrappedObject, QSpacerItem* spacerItem); + void addSpacing(QBoxLayout* theWrappedObject, int size); + void addStretch(QBoxLayout* theWrappedObject, int stretch = 0); + void addStrut(QBoxLayout* theWrappedObject, int arg__1); + void addWidget(QBoxLayout* theWrappedObject, QWidget* arg__1, int stretch = 0, Qt::Alignment alignment = 0); + int count(QBoxLayout* theWrappedObject) const; + QBoxLayout::Direction direction(QBoxLayout* theWrappedObject) const; + Qt::Orientations expandingDirections(QBoxLayout* theWrappedObject) const; + bool hasHeightForWidth(QBoxLayout* theWrappedObject) const; + int heightForWidth(QBoxLayout* theWrappedObject, int arg__1) const; + void insertItem(QBoxLayout* theWrappedObject, int index, QLayoutItem* arg__2); + void insertLayout(QBoxLayout* theWrappedObject, int index, QLayout* layout, int stretch = 0); + void insertSpacerItem(QBoxLayout* theWrappedObject, int index, QSpacerItem* spacerItem); + void insertSpacing(QBoxLayout* theWrappedObject, int index, int size); + void insertStretch(QBoxLayout* theWrappedObject, int index, int stretch = 0); + void insertWidget(QBoxLayout* theWrappedObject, int index, QWidget* widget, int stretch = 0, Qt::Alignment alignment = 0); + void invalidate(QBoxLayout* theWrappedObject); + QLayoutItem* itemAt(QBoxLayout* theWrappedObject, int arg__1) const; + QSize maximumSize(QBoxLayout* theWrappedObject) const; + int minimumHeightForWidth(QBoxLayout* theWrappedObject, int arg__1) const; + QSize minimumSize(QBoxLayout* theWrappedObject) const; + void setDirection(QBoxLayout* theWrappedObject, QBoxLayout::Direction arg__1); + void setGeometry(QBoxLayout* theWrappedObject, const QRect& arg__1); + void setSpacing(QBoxLayout* theWrappedObject, int spacing); + void setStretch(QBoxLayout* theWrappedObject, int index, int stretch); + bool setStretchFactor(QBoxLayout* theWrappedObject, QLayout* l, int stretch); + bool setStretchFactor(QBoxLayout* theWrappedObject, QWidget* w, int stretch); + QSize sizeHint(QBoxLayout* theWrappedObject) const; + int spacing(QBoxLayout* theWrappedObject) const; + int stretch(QBoxLayout* theWrappedObject, int index) const; + QLayoutItem* takeAt(QBoxLayout* theWrappedObject, int arg__1); +}; + + + + + +class PythonQtShell_QButtonGroup : public QButtonGroup +{ +public: + PythonQtShell_QButtonGroup(QObject* parent = 0):QButtonGroup(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QButtonGroup(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QButtonGroup : public QObject +{ Q_OBJECT +public: +public slots: +QButtonGroup* new_QButtonGroup(QObject* parent = 0); +void delete_QButtonGroup(QButtonGroup* obj) { delete obj; } + void addButton(QButtonGroup* theWrappedObject, QAbstractButton* arg__1, int id = -1); + QAbstractButton* button(QButtonGroup* theWrappedObject, int id) const; + QList buttons(QButtonGroup* theWrappedObject) const; + QAbstractButton* checkedButton(QButtonGroup* theWrappedObject) const; + int checkedId(QButtonGroup* theWrappedObject) const; + bool exclusive(QButtonGroup* theWrappedObject) const; + int id(QButtonGroup* theWrappedObject, QAbstractButton* button) const; + void removeButton(QButtonGroup* theWrappedObject, QAbstractButton* arg__1); + void setExclusive(QButtonGroup* theWrappedObject, bool arg__1); + void setId(QButtonGroup* theWrappedObject, QAbstractButton* button, int id); +}; + + + + + +class PythonQtShell_QCalendarWidget : public QCalendarWidget +{ +public: + PythonQtShell_QCalendarWidget(QWidget* parent = 0):QCalendarWidget(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QCalendarWidget(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* watched, QEvent* event); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void paintCell(QPainter* painter, const QRect& rect, const QDate& date) const; +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* event); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual QSize sizeHint() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QCalendarWidget : public QCalendarWidget +{ public: +inline bool promoted_event(QEvent* event) { return QCalendarWidget::event(event); } +inline bool promoted_eventFilter(QObject* watched, QEvent* event) { return QCalendarWidget::eventFilter(watched, event); } +inline void promoted_keyPressEvent(QKeyEvent* event) { QCalendarWidget::keyPressEvent(event); } +inline QSize promoted_minimumSizeHint() const { return QCalendarWidget::minimumSizeHint(); } +inline void promoted_mousePressEvent(QMouseEvent* event) { QCalendarWidget::mousePressEvent(event); } +inline void promoted_paintCell(QPainter* painter, const QRect& rect, const QDate& date) const { QCalendarWidget::paintCell(painter, rect, date); } +inline void promoted_resizeEvent(QResizeEvent* event) { QCalendarWidget::resizeEvent(event); } +inline QSize promoted_sizeHint() const { return QCalendarWidget::sizeHint(); } +}; + +class PythonQtWrapper_QCalendarWidget : public QObject +{ Q_OBJECT +public: +public slots: +QCalendarWidget* new_QCalendarWidget(QWidget* parent = 0); +void delete_QCalendarWidget(QCalendarWidget* obj) { delete obj; } + int dateEditAcceptDelay(QCalendarWidget* theWrappedObject) const; + QMap dateTextFormat(QCalendarWidget* theWrappedObject) const; + QTextCharFormat dateTextFormat(QCalendarWidget* theWrappedObject, const QDate& date) const; + bool event(QCalendarWidget* theWrappedObject, QEvent* event); + bool eventFilter(QCalendarWidget* theWrappedObject, QObject* watched, QEvent* event); + Qt::DayOfWeek firstDayOfWeek(QCalendarWidget* theWrappedObject) const; + QTextCharFormat headerTextFormat(QCalendarWidget* theWrappedObject) const; + QCalendarWidget::HorizontalHeaderFormat horizontalHeaderFormat(QCalendarWidget* theWrappedObject) const; + bool isDateEditEnabled(QCalendarWidget* theWrappedObject) const; + bool isGridVisible(QCalendarWidget* theWrappedObject) const; + bool isNavigationBarVisible(QCalendarWidget* theWrappedObject) const; + void keyPressEvent(QCalendarWidget* theWrappedObject, QKeyEvent* event); + QDate maximumDate(QCalendarWidget* theWrappedObject) const; + QDate minimumDate(QCalendarWidget* theWrappedObject) const; + QSize minimumSizeHint(QCalendarWidget* theWrappedObject) const; + int monthShown(QCalendarWidget* theWrappedObject) const; + void mousePressEvent(QCalendarWidget* theWrappedObject, QMouseEvent* event); + void paintCell(QCalendarWidget* theWrappedObject, QPainter* painter, const QRect& rect, const QDate& date) const; + void resizeEvent(QCalendarWidget* theWrappedObject, QResizeEvent* event); + QDate selectedDate(QCalendarWidget* theWrappedObject) const; + QCalendarWidget::SelectionMode selectionMode(QCalendarWidget* theWrappedObject) const; + void setDateEditAcceptDelay(QCalendarWidget* theWrappedObject, int delay); + void setDateEditEnabled(QCalendarWidget* theWrappedObject, bool enable); + void setDateTextFormat(QCalendarWidget* theWrappedObject, const QDate& date, const QTextCharFormat& format); + void setFirstDayOfWeek(QCalendarWidget* theWrappedObject, Qt::DayOfWeek dayOfWeek); + void setHeaderTextFormat(QCalendarWidget* theWrappedObject, const QTextCharFormat& format); + void setHorizontalHeaderFormat(QCalendarWidget* theWrappedObject, QCalendarWidget::HorizontalHeaderFormat format); + void setMaximumDate(QCalendarWidget* theWrappedObject, const QDate& date); + void setMinimumDate(QCalendarWidget* theWrappedObject, const QDate& date); + void setSelectionMode(QCalendarWidget* theWrappedObject, QCalendarWidget::SelectionMode mode); + void setVerticalHeaderFormat(QCalendarWidget* theWrappedObject, QCalendarWidget::VerticalHeaderFormat format); + void setWeekdayTextFormat(QCalendarWidget* theWrappedObject, Qt::DayOfWeek dayOfWeek, const QTextCharFormat& format); + QSize sizeHint(QCalendarWidget* theWrappedObject) const; + QCalendarWidget::VerticalHeaderFormat verticalHeaderFormat(QCalendarWidget* theWrappedObject) const; + QTextCharFormat weekdayTextFormat(QCalendarWidget* theWrappedObject, Qt::DayOfWeek dayOfWeek) const; + int yearShown(QCalendarWidget* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QCheckBox : public QCheckBox +{ +public: + PythonQtShell_QCheckBox(QWidget* parent = 0):QCheckBox(parent),_wrapper(NULL) {}; + PythonQtShell_QCheckBox(const QString& text, QWidget* parent = 0):QCheckBox(text, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QCheckBox(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* e); +virtual void checkStateSet(); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* e); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* e); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual bool hitButton(const QPoint& pos) const; +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* e); +virtual void keyReleaseEvent(QKeyEvent* e); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* e); +virtual void mouseReleaseEvent(QMouseEvent* e); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void nextCheckState(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* e); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QCheckBox : public QCheckBox +{ public: +inline void promoted_checkStateSet() { QCheckBox::checkStateSet(); } +inline bool promoted_event(QEvent* e) { return QCheckBox::event(e); } +inline bool promoted_hitButton(const QPoint& pos) const { return QCheckBox::hitButton(pos); } +inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QCheckBox::mouseMoveEvent(arg__1); } +inline void promoted_nextCheckState() { QCheckBox::nextCheckState(); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QCheckBox::paintEvent(arg__1); } +}; + +class PythonQtWrapper_QCheckBox : public QObject +{ Q_OBJECT +public: +public slots: +QCheckBox* new_QCheckBox(QWidget* parent = 0); +QCheckBox* new_QCheckBox(const QString& text, QWidget* parent = 0); +void delete_QCheckBox(QCheckBox* obj) { delete obj; } + Qt::CheckState checkState(QCheckBox* theWrappedObject) const; + void checkStateSet(QCheckBox* theWrappedObject); + bool event(QCheckBox* theWrappedObject, QEvent* e); + bool hitButton(QCheckBox* theWrappedObject, const QPoint& pos) const; + bool isTristate(QCheckBox* theWrappedObject) const; + QSize minimumSizeHint(QCheckBox* theWrappedObject) const; + void mouseMoveEvent(QCheckBox* theWrappedObject, QMouseEvent* arg__1); + void nextCheckState(QCheckBox* theWrappedObject); + void paintEvent(QCheckBox* theWrappedObject, QPaintEvent* arg__1); + void setCheckState(QCheckBox* theWrappedObject, Qt::CheckState state); + void setTristate(QCheckBox* theWrappedObject, bool y = true); + QSize sizeHint(QCheckBox* theWrappedObject) const; +}; + +#endif + + + +class PythonQtWrapper_QClipboard : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Mode ) +enum Mode{ + Clipboard = QClipboard::Clipboard, Selection = QClipboard::Selection, FindBuffer = QClipboard::FindBuffer, LastMode = QClipboard::LastMode}; +public slots: + void clear(QClipboard* theWrappedObject, QClipboard::Mode mode = QClipboard::Clipboard); + QImage image(QClipboard* theWrappedObject, QClipboard::Mode mode = QClipboard::Clipboard) const; + const QMimeData* mimeData(QClipboard* theWrappedObject, QClipboard::Mode mode = QClipboard::Clipboard) const; + bool ownsClipboard(QClipboard* theWrappedObject) const; + bool ownsFindBuffer(QClipboard* theWrappedObject) const; + bool ownsSelection(QClipboard* theWrappedObject) const; + QPixmap pixmap(QClipboard* theWrappedObject, QClipboard::Mode mode = QClipboard::Clipboard) const; + void setImage(QClipboard* theWrappedObject, const QImage& arg__1, QClipboard::Mode mode = QClipboard::Clipboard); + void setMimeData(QClipboard* theWrappedObject, QMimeData* data, QClipboard::Mode mode = QClipboard::Clipboard); + void setPixmap(QClipboard* theWrappedObject, const QPixmap& arg__1, QClipboard::Mode mode = QClipboard::Clipboard); + void setText(QClipboard* theWrappedObject, const QString& arg__1, QClipboard::Mode mode = QClipboard::Clipboard); + bool supportsFindBuffer(QClipboard* theWrappedObject) const; + bool supportsSelection(QClipboard* theWrappedObject) const; + QString text(QClipboard* theWrappedObject, QClipboard::Mode mode = QClipboard::Clipboard) const; + QString text(QClipboard* theWrappedObject, QString& subtype, QClipboard::Mode mode = QClipboard::Clipboard) const; +}; + + + + + +class PythonQtWrapper_QCloseEvent : public QObject +{ Q_OBJECT +public: +public slots: +QCloseEvent* new_QCloseEvent(); +void delete_QCloseEvent(QCloseEvent* obj) { delete obj; } +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QColorDialog : public QColorDialog +{ +public: + PythonQtShell_QColorDialog(QWidget* parent = 0):QColorDialog(parent),_wrapper(NULL) {}; + PythonQtShell_QColorDialog(const QColor& initial, QWidget* parent = 0):QColorDialog(initial, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QColorDialog(); + +virtual void accept(); +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* event); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void done(int result); +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual int exec(); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void open(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reject(); +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QColorDialog : public QColorDialog +{ public: +inline void promoted_changeEvent(QEvent* event) { QColorDialog::changeEvent(event); } +inline void promoted_done(int result) { QColorDialog::done(result); } +inline void promoted_open() { QColorDialog::open(); } +}; + +class PythonQtWrapper_QColorDialog : public QObject +{ Q_OBJECT +public: +public slots: +QColorDialog* new_QColorDialog(QWidget* parent = 0); +QColorDialog* new_QColorDialog(const QColor& initial, QWidget* parent = 0); +void delete_QColorDialog(QColorDialog* obj) { delete obj; } + void changeEvent(QColorDialog* theWrappedObject, QEvent* event); + QColor currentColor(QColorDialog* theWrappedObject) const; + QColor static_QColorDialog_customColor(int index); + int static_QColorDialog_customCount(); + void done(QColorDialog* theWrappedObject, int result); + QColor static_QColorDialog_getColor(const QColor& initial = Qt::white, QWidget* parent = 0, const QString& title = QString(), QColorDialog::ColorDialogOptions options = 0); + void open(QColorDialog* theWrappedObject); + void open(QColorDialog* theWrappedObject, QObject* receiver, const char* member); + QColorDialog::ColorDialogOptions options(QColorDialog* theWrappedObject) const; + QColor selectedColor(QColorDialog* theWrappedObject) const; + void setCurrentColor(QColorDialog* theWrappedObject, const QColor& color); + void static_QColorDialog_setCustomColor(int index, QColor color); + void setOption(QColorDialog* theWrappedObject, QColorDialog::ColorDialogOption option, bool on = true); + void setOptions(QColorDialog* theWrappedObject, QColorDialog::ColorDialogOptions options); + void static_QColorDialog_setStandardColor(int index, QColor color); + void setVisible(QColorDialog* theWrappedObject, bool visible); + QColor static_QColorDialog_standardColor(int index); + bool testOption(QColorDialog* theWrappedObject, QColorDialog::ColorDialogOption option) const; +}; + + + + + +class PythonQtShell_QColumnView : public QColumnView +{ +public: + PythonQtShell_QColumnView(QWidget* parent = 0):QColumnView(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QColumnView(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void commitData(QWidget* editor); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual QAbstractItemView* createColumn(const QModelIndex& rootIndex); +virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); +virtual void customEvent(QEvent* arg__1); +virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles); +virtual int devType() const; +virtual void doItemsLayout(); +virtual void dragEnterEvent(QDragEnterEvent* event); +virtual void dragLeaveEvent(QDragLeaveEvent* event); +virtual void dragMoveEvent(QDragMoveEvent* event); +virtual void dropEvent(QDropEvent* event); +virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); +virtual void editorDestroyed(QObject* editor); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* event); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual int horizontalOffset() const; +virtual void horizontalScrollbarAction(int action); +virtual void horizontalScrollbarValueChanged(int value); +virtual QModelIndex indexAt(const QPoint& point) const; +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual bool isIndexHidden(const QModelIndex& index) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void keyboardSearch(const QString& search); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* event); +virtual void mouseMoveEvent(QMouseEvent* event); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* event); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reset(); +virtual void resizeEvent(QResizeEvent* 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 void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); +virtual void selectAll(); +virtual QList selectedIndexes() const; +virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); +virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; +virtual void setModel(QAbstractItemModel* model); +virtual void setRootIndex(const QModelIndex& index); +virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); +virtual void setSelectionModel(QItemSelectionModel* selectionModel); +virtual void setupViewport(QWidget* viewport); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual int sizeHintForColumn(int column) const; +virtual int sizeHintForRow(int row) const; +virtual void startDrag(Qt::DropActions supportedActions); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* event); +virtual void updateEditorData(); +virtual void updateEditorGeometries(); +virtual void updateGeometries(); +virtual int verticalOffset() const; +virtual void verticalScrollbarAction(int action); +virtual void verticalScrollbarValueChanged(int value); +virtual QStyleOptionViewItem viewOptions() const; +virtual bool viewportEvent(QEvent* event); +virtual QSize viewportSizeHint() const; +virtual QRect visualRect(const QModelIndex& index) const; +virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QColumnView : public QColumnView +{ public: +inline QAbstractItemView* promoted_createColumn(const QModelIndex& rootIndex) { return QColumnView::createColumn(rootIndex); } +inline void promoted_currentChanged(const QModelIndex& current, const QModelIndex& previous) { QColumnView::currentChanged(current, previous); } +inline int promoted_horizontalOffset() const { return QColumnView::horizontalOffset(); } +inline QModelIndex promoted_indexAt(const QPoint& point) const { return QColumnView::indexAt(point); } +inline bool promoted_isIndexHidden(const QModelIndex& index) const { return QColumnView::isIndexHidden(index); } +inline void promoted_resizeEvent(QResizeEvent* event) { QColumnView::resizeEvent(event); } +inline void promoted_rowsInserted(const QModelIndex& parent, int start, int end) { QColumnView::rowsInserted(parent, start, end); } +inline void promoted_scrollContentsBy(int dx, int dy) { QColumnView::scrollContentsBy(dx, dy); } +inline void promoted_scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible) { QColumnView::scrollTo(index, hint); } +inline void promoted_selectAll() { QColumnView::selectAll(); } +inline void promoted_setModel(QAbstractItemModel* model) { QColumnView::setModel(model); } +inline void promoted_setRootIndex(const QModelIndex& index) { QColumnView::setRootIndex(index); } +inline void promoted_setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) { QColumnView::setSelection(rect, command); } +inline void promoted_setSelectionModel(QItemSelectionModel* selectionModel) { QColumnView::setSelectionModel(selectionModel); } +inline int promoted_verticalOffset() const { return QColumnView::verticalOffset(); } +inline QRect promoted_visualRect(const QModelIndex& index) const { return QColumnView::visualRect(index); } +inline QRegion promoted_visualRegionForSelection(const QItemSelection& selection) const { return QColumnView::visualRegionForSelection(selection); } +}; + +class PythonQtWrapper_QColumnView : public QObject +{ Q_OBJECT +public: +public slots: +QColumnView* new_QColumnView(QWidget* parent = 0); +void delete_QColumnView(QColumnView* obj) { delete obj; } + QList columnWidths(QColumnView* theWrappedObject) const; + QAbstractItemView* createColumn(QColumnView* theWrappedObject, const QModelIndex& rootIndex); + void currentChanged(QColumnView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous); + int horizontalOffset(QColumnView* theWrappedObject) const; + QModelIndex indexAt(QColumnView* theWrappedObject, const QPoint& point) const; + bool isIndexHidden(QColumnView* theWrappedObject, const QModelIndex& index) const; + QWidget* previewWidget(QColumnView* theWrappedObject) const; + void resizeEvent(QColumnView* theWrappedObject, QResizeEvent* event); + bool resizeGripsVisible(QColumnView* theWrappedObject) const; + void rowsInserted(QColumnView* theWrappedObject, const QModelIndex& parent, int start, int end); + void scrollContentsBy(QColumnView* theWrappedObject, int dx, int dy); + void scrollTo(QColumnView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); + void selectAll(QColumnView* theWrappedObject); + void setColumnWidths(QColumnView* theWrappedObject, const QList& list); + void setModel(QColumnView* theWrappedObject, QAbstractItemModel* model); + void setPreviewWidget(QColumnView* theWrappedObject, QWidget* widget); + void setResizeGripsVisible(QColumnView* theWrappedObject, bool visible); + void setRootIndex(QColumnView* theWrappedObject, const QModelIndex& index); + void setSelection(QColumnView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command); + void setSelectionModel(QColumnView* theWrappedObject, QItemSelectionModel* selectionModel); + QSize sizeHint(QColumnView* theWrappedObject) const; + int verticalOffset(QColumnView* theWrappedObject) const; + QRect visualRect(QColumnView* theWrappedObject, const QModelIndex& index) const; + QRegion visualRegionForSelection(QColumnView* theWrappedObject, const QItemSelection& selection) const; +}; + + + + + +class PythonQtShell_QComboBox : public QComboBox +{ +public: + PythonQtShell_QComboBox(QWidget* parent = 0):QComboBox(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QComboBox(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* e); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* e); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* e); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* e); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* e); +virtual void hidePopup(); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* e); +virtual void keyReleaseEvent(QKeyEvent* e); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* e); +virtual void mouseReleaseEvent(QMouseEvent* e); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* e); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* e); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* e); +virtual void showPopup(); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* e); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QComboBox : public QComboBox +{ public: +inline void promoted_changeEvent(QEvent* e) { QComboBox::changeEvent(e); } +inline void promoted_contextMenuEvent(QContextMenuEvent* e) { QComboBox::contextMenuEvent(e); } +inline bool promoted_event(QEvent* event) { return QComboBox::event(event); } +inline void promoted_focusInEvent(QFocusEvent* e) { QComboBox::focusInEvent(e); } +inline void promoted_focusOutEvent(QFocusEvent* e) { QComboBox::focusOutEvent(e); } +inline void promoted_hideEvent(QHideEvent* e) { QComboBox::hideEvent(e); } +inline void promoted_hidePopup() { QComboBox::hidePopup(); } +inline void promoted_inputMethodEvent(QInputMethodEvent* arg__1) { QComboBox::inputMethodEvent(arg__1); } +inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery arg__1) const { return QComboBox::inputMethodQuery(arg__1); } +inline void promoted_keyPressEvent(QKeyEvent* e) { QComboBox::keyPressEvent(e); } +inline void promoted_keyReleaseEvent(QKeyEvent* e) { QComboBox::keyReleaseEvent(e); } +inline void promoted_mousePressEvent(QMouseEvent* e) { QComboBox::mousePressEvent(e); } +inline void promoted_mouseReleaseEvent(QMouseEvent* e) { QComboBox::mouseReleaseEvent(e); } +inline void promoted_paintEvent(QPaintEvent* e) { QComboBox::paintEvent(e); } +inline void promoted_resizeEvent(QResizeEvent* e) { QComboBox::resizeEvent(e); } +inline void promoted_showEvent(QShowEvent* e) { QComboBox::showEvent(e); } +inline void promoted_showPopup() { QComboBox::showPopup(); } +inline void promoted_wheelEvent(QWheelEvent* e) { QComboBox::wheelEvent(e); } +}; + +class PythonQtWrapper_QComboBox : public QObject +{ Q_OBJECT +public: +public slots: +QComboBox* new_QComboBox(QWidget* parent = 0); +void delete_QComboBox(QComboBox* obj) { delete obj; } + void addItem(QComboBox* theWrappedObject, const QIcon& icon, const QString& text, const QVariant& userData = QVariant()); + void addItem(QComboBox* theWrappedObject, const QString& text, const QVariant& userData = QVariant()); + void addItems(QComboBox* theWrappedObject, const QStringList& texts); + void changeEvent(QComboBox* theWrappedObject, QEvent* e); + QCompleter* completer(QComboBox* theWrappedObject) const; + void contextMenuEvent(QComboBox* theWrappedObject, QContextMenuEvent* e); + int count(QComboBox* theWrappedObject) const; + int currentIndex(QComboBox* theWrappedObject) const; + QString currentText(QComboBox* theWrappedObject) const; + bool duplicatesEnabled(QComboBox* theWrappedObject) const; + bool event(QComboBox* theWrappedObject, QEvent* event); + int findData(QComboBox* theWrappedObject, const QVariant& data, int role = Qt::UserRole, Qt::MatchFlags flags = static_cast(Qt::MatchExactly|Qt::MatchCaseSensitive)) const; + int findText(QComboBox* theWrappedObject, const QString& text, Qt::MatchFlags flags = static_cast(Qt::MatchExactly|Qt::MatchCaseSensitive)) const; + void focusInEvent(QComboBox* theWrappedObject, QFocusEvent* e); + void focusOutEvent(QComboBox* theWrappedObject, QFocusEvent* e); + bool hasFrame(QComboBox* theWrappedObject) const; + void hideEvent(QComboBox* theWrappedObject, QHideEvent* e); + void hidePopup(QComboBox* theWrappedObject); + QSize iconSize(QComboBox* theWrappedObject) const; + void inputMethodEvent(QComboBox* theWrappedObject, QInputMethodEvent* arg__1); + QVariant inputMethodQuery(QComboBox* theWrappedObject, Qt::InputMethodQuery arg__1) const; + void insertItem(QComboBox* theWrappedObject, int index, const QIcon& icon, const QString& text, const QVariant& userData = QVariant()); + void insertItem(QComboBox* theWrappedObject, int index, const QString& text, const QVariant& userData = QVariant()); + void insertItems(QComboBox* theWrappedObject, int index, const QStringList& texts); + QComboBox::InsertPolicy insertPolicy(QComboBox* theWrappedObject) const; + void insertSeparator(QComboBox* theWrappedObject, int index); + bool isEditable(QComboBox* theWrappedObject) const; + QVariant itemData(QComboBox* theWrappedObject, int index, int role = Qt::UserRole) const; + QAbstractItemDelegate* itemDelegate(QComboBox* theWrappedObject) const; + QIcon itemIcon(QComboBox* theWrappedObject, int index) const; + QString itemText(QComboBox* theWrappedObject, int index) const; + void keyPressEvent(QComboBox* theWrappedObject, QKeyEvent* e); + void keyReleaseEvent(QComboBox* theWrappedObject, QKeyEvent* e); + QLineEdit* lineEdit(QComboBox* theWrappedObject) const; + int maxCount(QComboBox* theWrappedObject) const; + int maxVisibleItems(QComboBox* theWrappedObject) const; + int minimumContentsLength(QComboBox* theWrappedObject) const; + QSize minimumSizeHint(QComboBox* theWrappedObject) const; + QAbstractItemModel* model(QComboBox* theWrappedObject) const; + int modelColumn(QComboBox* theWrappedObject) const; + void mousePressEvent(QComboBox* theWrappedObject, QMouseEvent* e); + void mouseReleaseEvent(QComboBox* theWrappedObject, QMouseEvent* e); + void paintEvent(QComboBox* theWrappedObject, QPaintEvent* e); + void removeItem(QComboBox* theWrappedObject, int index); + void resizeEvent(QComboBox* theWrappedObject, QResizeEvent* e); + QModelIndex rootModelIndex(QComboBox* theWrappedObject) const; + void setCompleter(QComboBox* theWrappedObject, QCompleter* c); + void setDuplicatesEnabled(QComboBox* theWrappedObject, bool enable); + void setEditable(QComboBox* theWrappedObject, bool editable); + void setFrame(QComboBox* theWrappedObject, bool arg__1); + void setIconSize(QComboBox* theWrappedObject, const QSize& size); + void setInsertPolicy(QComboBox* theWrappedObject, QComboBox::InsertPolicy policy); + void setItemData(QComboBox* theWrappedObject, int index, const QVariant& value, int role = Qt::UserRole); + void setItemDelegate(QComboBox* theWrappedObject, QAbstractItemDelegate* delegate); + void setItemIcon(QComboBox* theWrappedObject, int index, const QIcon& icon); + void setItemText(QComboBox* theWrappedObject, int index, const QString& text); + void setLineEdit(QComboBox* theWrappedObject, QLineEdit* edit); + void setMaxCount(QComboBox* theWrappedObject, int max); + void setMaxVisibleItems(QComboBox* theWrappedObject, int maxItems); + void setMinimumContentsLength(QComboBox* theWrappedObject, int characters); + void setModel(QComboBox* theWrappedObject, QAbstractItemModel* model); + void setModelColumn(QComboBox* theWrappedObject, int visibleColumn); + void setRootModelIndex(QComboBox* theWrappedObject, const QModelIndex& index); + void setSizeAdjustPolicy(QComboBox* theWrappedObject, QComboBox::SizeAdjustPolicy policy); + void setValidator(QComboBox* theWrappedObject, const QValidator* v); + void setView(QComboBox* theWrappedObject, QAbstractItemView* itemView); + void showEvent(QComboBox* theWrappedObject, QShowEvent* e); + void showPopup(QComboBox* theWrappedObject); + QComboBox::SizeAdjustPolicy sizeAdjustPolicy(QComboBox* theWrappedObject) const; + QSize sizeHint(QComboBox* theWrappedObject) const; + const QValidator* validator(QComboBox* theWrappedObject) const; + QAbstractItemView* view(QComboBox* theWrappedObject) const; + void wheelEvent(QComboBox* theWrappedObject, QWheelEvent* e); +}; + + + + + +class PythonQtShell_QCommandLinkButton : public QCommandLinkButton +{ +public: + PythonQtShell_QCommandLinkButton(QWidget* parent = 0):QCommandLinkButton(parent),_wrapper(NULL) {}; + PythonQtShell_QCommandLinkButton(const QString& text, QWidget* parent = 0):QCommandLinkButton(text, parent),_wrapper(NULL) {}; + PythonQtShell_QCommandLinkButton(const QString& text, const QString& description, QWidget* parent = 0):QCommandLinkButton(text, description, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QCommandLinkButton(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* e); +virtual void checkStateSet(); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual bool hitButton(const QPoint& pos) const; +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* e); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* e); +virtual void mousePressEvent(QMouseEvent* e); +virtual void mouseReleaseEvent(QMouseEvent* e); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void nextCheckState(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* e); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QCommandLinkButton : public QCommandLinkButton +{ public: +inline bool promoted_event(QEvent* e) { return QCommandLinkButton::event(e); } +inline int promoted_heightForWidth(int arg__1) const { return QCommandLinkButton::heightForWidth(arg__1); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QCommandLinkButton::paintEvent(arg__1); } +}; + +class PythonQtWrapper_QCommandLinkButton : public QObject +{ Q_OBJECT +public: +public slots: +QCommandLinkButton* new_QCommandLinkButton(QWidget* parent = 0); +QCommandLinkButton* new_QCommandLinkButton(const QString& text, QWidget* parent = 0); +QCommandLinkButton* new_QCommandLinkButton(const QString& text, const QString& description, QWidget* parent = 0); +void delete_QCommandLinkButton(QCommandLinkButton* obj) { delete obj; } + QString description(QCommandLinkButton* theWrappedObject) const; + bool event(QCommandLinkButton* theWrappedObject, QEvent* e); + int heightForWidth(QCommandLinkButton* theWrappedObject, int arg__1) const; + void paintEvent(QCommandLinkButton* theWrappedObject, QPaintEvent* arg__1); + void setDescription(QCommandLinkButton* theWrappedObject, const QString& description); +}; + + + + + +class PythonQtShell_QCommonStyle : public QCommonStyle +{ +public: + PythonQtShell_QCommonStyle():QCommonStyle(),_wrapper(NULL) {}; + + ~PythonQtShell_QCommonStyle(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual void drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w = 0) const; +virtual void drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; +virtual void drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const; +virtual void drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const; +virtual void drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const; +virtual QStyle::SubControl hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w = 0) const; +virtual QRect itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const; +virtual int layoutSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption* option = 0, const QWidget* widget = 0) const; +virtual int pixelMetric(QStyle::PixelMetric m, const QStyleOption* opt = 0, const QWidget* widget = 0) const; +virtual void polish(QApplication* app); +virtual void polish(QPalette& arg__1); +virtual void polish(QWidget* widget); +virtual QSize sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget = 0) const; +virtual QIcon standardIcon(QStyle::StandardPixmap standardIcon, const QStyleOption* opt = 0, const QWidget* widget = 0) const; +virtual QPalette standardPalette() const; +virtual QPixmap standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const; +virtual int styleHint(QStyle::StyleHint sh, const QStyleOption* opt = 0, const QWidget* w = 0, QStyleHintReturn* shret = 0) const; +virtual QRect subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* w = 0) const; +virtual QRect subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget = 0) const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual void unpolish(QApplication* application); +virtual void unpolish(QWidget* widget); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QCommonStyle : public QCommonStyle +{ public: +inline void promoted_drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w = 0) const { QCommonStyle::drawComplexControl(cc, opt, p, w); } +inline void promoted_drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const { QCommonStyle::drawControl(element, opt, p, w); } +inline void promoted_drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const { QCommonStyle::drawPrimitive(pe, opt, p, w); } +inline QPixmap promoted_generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const { return QCommonStyle::generatedIconPixmap(iconMode, pixmap, opt); } +inline QStyle::SubControl promoted_hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w = 0) const { return QCommonStyle::hitTestComplexControl(cc, opt, pt, w); } +inline int promoted_layoutSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption* option = 0, const QWidget* widget = 0) const { return QCommonStyle::layoutSpacing(control1, control2, orientation, option, widget); } +inline int promoted_pixelMetric(QStyle::PixelMetric m, const QStyleOption* opt = 0, const QWidget* widget = 0) const { return QCommonStyle::pixelMetric(m, opt, widget); } +inline void promoted_polish(QApplication* app) { QCommonStyle::polish(app); } +inline void promoted_polish(QPalette& arg__1) { QCommonStyle::polish(arg__1); } +inline void promoted_polish(QWidget* widget) { QCommonStyle::polish(widget); } +inline QSize promoted_sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget = 0) const { return QCommonStyle::sizeFromContents(ct, opt, contentsSize, widget); } +inline QIcon promoted_standardIcon(QStyle::StandardPixmap standardIcon, const QStyleOption* opt = 0, const QWidget* widget = 0) const { return QCommonStyle::standardIcon(standardIcon, opt, widget); } +inline int promoted_styleHint(QStyle::StyleHint sh, const QStyleOption* opt = 0, const QWidget* w = 0, QStyleHintReturn* shret = 0) const { return QCommonStyle::styleHint(sh, opt, w, shret); } +inline QRect promoted_subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* w = 0) const { return QCommonStyle::subControlRect(cc, opt, sc, w); } +inline QRect promoted_subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget = 0) const { return QCommonStyle::subElementRect(r, opt, widget); } +inline void promoted_unpolish(QApplication* application) { QCommonStyle::unpolish(application); } +inline void promoted_unpolish(QWidget* widget) { QCommonStyle::unpolish(widget); } +}; + +class PythonQtWrapper_QCommonStyle : public QObject +{ Q_OBJECT +public: +public slots: +QCommonStyle* new_QCommonStyle(); +void delete_QCommonStyle(QCommonStyle* obj) { delete obj; } + void drawComplexControl(QCommonStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w = 0) const; + void drawControl(QCommonStyle* theWrappedObject, QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; + void drawPrimitive(QCommonStyle* theWrappedObject, QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; + QPixmap generatedIconPixmap(QCommonStyle* theWrappedObject, QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const; + QStyle::SubControl hitTestComplexControl(QCommonStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w = 0) const; + int layoutSpacing(QCommonStyle* theWrappedObject, QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption* option = 0, const QWidget* widget = 0) const; + int pixelMetric(QCommonStyle* theWrappedObject, QStyle::PixelMetric m, const QStyleOption* opt = 0, const QWidget* widget = 0) const; + void polish(QCommonStyle* theWrappedObject, QApplication* app); + void polish(QCommonStyle* theWrappedObject, QPalette& arg__1); + void polish(QCommonStyle* theWrappedObject, QWidget* widget); + QSize sizeFromContents(QCommonStyle* theWrappedObject, QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget = 0) const; + QIcon standardIcon(QCommonStyle* theWrappedObject, QStyle::StandardPixmap standardIcon, const QStyleOption* opt = 0, const QWidget* widget = 0) const; + int styleHint(QCommonStyle* theWrappedObject, QStyle::StyleHint sh, const QStyleOption* opt = 0, const QWidget* w = 0, QStyleHintReturn* shret = 0) const; + QRect subControlRect(QCommonStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* w = 0) const; + QRect subElementRect(QCommonStyle* theWrappedObject, QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget = 0) const; + void unpolish(QCommonStyle* theWrappedObject, QApplication* application); + void unpolish(QCommonStyle* theWrappedObject, QWidget* widget); +}; + + + + + +class PythonQtShell_QCompleter : public QCompleter +{ +public: + PythonQtShell_QCompleter(QAbstractItemModel* model, QObject* parent = 0):QCompleter(model, parent),_wrapper(NULL) {}; + PythonQtShell_QCompleter(QObject* parent = 0):QCompleter(parent),_wrapper(NULL) {}; + PythonQtShell_QCompleter(const QStringList& completions, QObject* parent = 0):QCompleter(completions, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QCompleter(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* o, QEvent* e); +virtual QString pathFromIndex(const QModelIndex& index) const; +virtual QStringList splitPath(const QString& path) const; +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QCompleter : public QCompleter +{ public: +inline bool promoted_event(QEvent* arg__1) { return QCompleter::event(arg__1); } +inline bool promoted_eventFilter(QObject* o, QEvent* e) { return QCompleter::eventFilter(o, e); } +inline QString promoted_pathFromIndex(const QModelIndex& index) const { return QCompleter::pathFromIndex(index); } +inline QStringList promoted_splitPath(const QString& path) const { return QCompleter::splitPath(path); } +}; + +class PythonQtWrapper_QCompleter : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ModelSorting CompletionMode ) +enum ModelSorting{ + UnsortedModel = QCompleter::UnsortedModel, CaseSensitivelySortedModel = QCompleter::CaseSensitivelySortedModel, CaseInsensitivelySortedModel = QCompleter::CaseInsensitivelySortedModel}; +enum CompletionMode{ + PopupCompletion = QCompleter::PopupCompletion, UnfilteredPopupCompletion = QCompleter::UnfilteredPopupCompletion, InlineCompletion = QCompleter::InlineCompletion}; +public slots: +QCompleter* new_QCompleter(QAbstractItemModel* model, QObject* parent = 0); +QCompleter* new_QCompleter(QObject* parent = 0); +QCompleter* new_QCompleter(const QStringList& completions, QObject* parent = 0); +void delete_QCompleter(QCompleter* obj) { delete obj; } + Qt::CaseSensitivity caseSensitivity(QCompleter* theWrappedObject) const; + int completionColumn(QCompleter* theWrappedObject) const; + int completionCount(QCompleter* theWrappedObject) const; + QCompleter::CompletionMode completionMode(QCompleter* theWrappedObject) const; + QAbstractItemModel* completionModel(QCompleter* theWrappedObject) const; + QString completionPrefix(QCompleter* theWrappedObject) const; + int completionRole(QCompleter* theWrappedObject) const; + QString currentCompletion(QCompleter* theWrappedObject) const; + QModelIndex currentIndex(QCompleter* theWrappedObject) const; + int currentRow(QCompleter* theWrappedObject) const; + bool event(QCompleter* theWrappedObject, QEvent* arg__1); + bool eventFilter(QCompleter* theWrappedObject, QObject* o, QEvent* e); + int maxVisibleItems(QCompleter* theWrappedObject) const; + QAbstractItemModel* model(QCompleter* theWrappedObject) const; + QCompleter::ModelSorting modelSorting(QCompleter* theWrappedObject) const; + QString pathFromIndex(QCompleter* theWrappedObject, const QModelIndex& index) const; + QAbstractItemView* popup(QCompleter* theWrappedObject) const; + void setCaseSensitivity(QCompleter* theWrappedObject, Qt::CaseSensitivity caseSensitivity); + void setCompletionColumn(QCompleter* theWrappedObject, int column); + void setCompletionMode(QCompleter* theWrappedObject, QCompleter::CompletionMode mode); + void setCompletionRole(QCompleter* theWrappedObject, int role); + bool setCurrentRow(QCompleter* theWrappedObject, int row); + void setMaxVisibleItems(QCompleter* theWrappedObject, int maxItems); + void setModel(QCompleter* theWrappedObject, QAbstractItemModel* c); + void setModelSorting(QCompleter* theWrappedObject, QCompleter::ModelSorting sorting); + void setPopup(QCompleter* theWrappedObject, QAbstractItemView* popup); + void setWidget(QCompleter* theWrappedObject, QWidget* widget); + QStringList splitPath(QCompleter* theWrappedObject, const QString& path) const; + QWidget* widget(QCompleter* theWrappedObject) const; + bool wrapAround(QCompleter* theWrappedObject) const; +}; + +#endif + + + +class PythonQtWrapper_QConicalGradient : public QObject +{ Q_OBJECT +public: +public slots: +QConicalGradient* new_QConicalGradient(); +QConicalGradient* new_QConicalGradient(const QPointF& center, qreal startAngle); +QConicalGradient* new_QConicalGradient(qreal cx, qreal cy, qreal startAngle); +QConicalGradient* new_QConicalGradient(const QConicalGradient& other) { +QConicalGradient* a = new QConicalGradient(); +*((QConicalGradient*)a) = other; +return a; } +void delete_QConicalGradient(QConicalGradient* obj) { delete obj; } + qreal angle(QConicalGradient* theWrappedObject) const; + QPointF center(QConicalGradient* theWrappedObject) const; + void setAngle(QConicalGradient* theWrappedObject, qreal angle); + void setCenter(QConicalGradient* theWrappedObject, const QPointF& center); + void setCenter(QConicalGradient* theWrappedObject, qreal x, qreal y); +}; + + + + + +class PythonQtShell_QContextMenuEvent : public QContextMenuEvent +{ +public: + PythonQtShell_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos):QContextMenuEvent(reason, pos),_wrapper(NULL) {}; + PythonQtShell_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos):QContextMenuEvent(reason, pos, globalPos),_wrapper(NULL) {}; + PythonQtShell_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos, Qt::KeyboardModifiers modifiers):QContextMenuEvent(reason, pos, globalPos, modifiers),_wrapper(NULL) {}; + + ~PythonQtShell_QContextMenuEvent(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QContextMenuEvent : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Reason ) +enum Reason{ + Mouse = QContextMenuEvent::Mouse, Keyboard = QContextMenuEvent::Keyboard, Other = QContextMenuEvent::Other}; +public slots: +QContextMenuEvent* new_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos); +QContextMenuEvent* new_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos); +QContextMenuEvent* new_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos, Qt::KeyboardModifiers modifiers); +void delete_QContextMenuEvent(QContextMenuEvent* obj) { delete obj; } + const QPoint* globalPos(QContextMenuEvent* theWrappedObject) const; + int globalX(QContextMenuEvent* theWrappedObject) const; + int globalY(QContextMenuEvent* theWrappedObject) const; + const QPoint* pos(QContextMenuEvent* theWrappedObject) const; + QContextMenuEvent::Reason reason(QContextMenuEvent* theWrappedObject) const; + int x(QContextMenuEvent* theWrappedObject) const; + int y(QContextMenuEvent* theWrappedObject) const; +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QDataWidgetMapper : public QDataWidgetMapper +{ +public: + PythonQtShell_QDataWidgetMapper(QObject* parent = 0):QDataWidgetMapper(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QDataWidgetMapper(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void setCurrentIndex(int index); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QDataWidgetMapper : public QDataWidgetMapper +{ public: +inline void promoted_setCurrentIndex(int index) { QDataWidgetMapper::setCurrentIndex(index); } +}; + +class PythonQtWrapper_QDataWidgetMapper : public QObject +{ Q_OBJECT +public: +public slots: +QDataWidgetMapper* new_QDataWidgetMapper(QObject* parent = 0); +void delete_QDataWidgetMapper(QDataWidgetMapper* obj) { delete obj; } + void addMapping(QDataWidgetMapper* theWrappedObject, QWidget* widget, int section); + void addMapping(QDataWidgetMapper* theWrappedObject, QWidget* widget, int section, const QByteArray& propertyName); + void clearMapping(QDataWidgetMapper* theWrappedObject); + int currentIndex(QDataWidgetMapper* theWrappedObject) const; + QAbstractItemDelegate* itemDelegate(QDataWidgetMapper* theWrappedObject) const; + QByteArray mappedPropertyName(QDataWidgetMapper* theWrappedObject, QWidget* widget) const; + int mappedSection(QDataWidgetMapper* theWrappedObject, QWidget* widget) const; + QWidget* mappedWidgetAt(QDataWidgetMapper* theWrappedObject, int section) const; + QAbstractItemModel* model(QDataWidgetMapper* theWrappedObject) const; + Qt::Orientation orientation(QDataWidgetMapper* theWrappedObject) const; + void removeMapping(QDataWidgetMapper* theWrappedObject, QWidget* widget); + QModelIndex rootIndex(QDataWidgetMapper* theWrappedObject) const; + void setCurrentIndex(QDataWidgetMapper* theWrappedObject, int index); + void setItemDelegate(QDataWidgetMapper* theWrappedObject, QAbstractItemDelegate* delegate); + void setModel(QDataWidgetMapper* theWrappedObject, QAbstractItemModel* model); + void setOrientation(QDataWidgetMapper* theWrappedObject, Qt::Orientation aOrientation); + void setRootIndex(QDataWidgetMapper* theWrappedObject, const QModelIndex& index); + void setSubmitPolicy(QDataWidgetMapper* theWrappedObject, QDataWidgetMapper::SubmitPolicy policy); + QDataWidgetMapper::SubmitPolicy submitPolicy(QDataWidgetMapper* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QDateEdit : public QDateEdit +{ +public: + PythonQtShell_QDateEdit(QWidget* parent = 0):QDateEdit(parent),_wrapper(NULL) {}; + PythonQtShell_QDateEdit(const QDate& date, QWidget* parent = 0):QDateEdit(date, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QDateEdit(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* event); +virtual void childEvent(QChildEvent* arg__1); +virtual void clear(); +virtual void closeEvent(QCloseEvent* event); +virtual void contextMenuEvent(QContextMenuEvent* event); +virtual void customEvent(QEvent* arg__1); +virtual QDateTime dateTimeFromText(const QString& text) const; +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fixup(QString& input) const; +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* event); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* event); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* event); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* event); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* event); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* event); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* event); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* event); +virtual void stepBy(int steps); +virtual QAbstractSpinBox::StepEnabled stepEnabled() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual QString textFromDateTime(const QDateTime& dt) const; +virtual void timerEvent(QTimerEvent* event); +virtual QValidator::State validate(QString& input, int& pos) const; +virtual void wheelEvent(QWheelEvent* event); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QDateEdit : public QObject +{ Q_OBJECT +public: +public slots: +QDateEdit* new_QDateEdit(QWidget* parent = 0); +QDateEdit* new_QDateEdit(const QDate& date, QWidget* parent = 0); +void delete_QDateEdit(QDateEdit* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QDateTimeEdit : public QDateTimeEdit +{ +public: + PythonQtShell_QDateTimeEdit(QWidget* parent = 0):QDateTimeEdit(parent),_wrapper(NULL) {}; + PythonQtShell_QDateTimeEdit(const QDate& d, QWidget* parent = 0):QDateTimeEdit(d, parent),_wrapper(NULL) {}; + PythonQtShell_QDateTimeEdit(const QDateTime& dt, QWidget* parent = 0):QDateTimeEdit(dt, parent),_wrapper(NULL) {}; + PythonQtShell_QDateTimeEdit(const QTime& t, QWidget* parent = 0):QDateTimeEdit(t, parent),_wrapper(NULL) {}; + PythonQtShell_QDateTimeEdit(const QVariant& val, QVariant::Type parserType, QWidget* parent = 0):QDateTimeEdit(val, parserType, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QDateTimeEdit(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* event); +virtual void childEvent(QChildEvent* arg__1); +virtual void clear(); +virtual void closeEvent(QCloseEvent* event); +virtual void contextMenuEvent(QContextMenuEvent* event); +virtual void customEvent(QEvent* arg__1); +virtual QDateTime dateTimeFromText(const QString& text) const; +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fixup(QString& input) const; +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* event); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* event); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* event); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* event); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* event); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* event); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* event); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* event); +virtual void stepBy(int steps); +virtual QAbstractSpinBox::StepEnabled stepEnabled() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual QString textFromDateTime(const QDateTime& dt) const; +virtual void timerEvent(QTimerEvent* event); +virtual QValidator::State validate(QString& input, int& pos) const; +virtual void wheelEvent(QWheelEvent* event); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QDateTimeEdit : public QDateTimeEdit +{ public: +inline void promoted_clear() { QDateTimeEdit::clear(); } +inline QDateTime promoted_dateTimeFromText(const QString& text) const { return QDateTimeEdit::dateTimeFromText(text); } +inline bool promoted_event(QEvent* event) { return QDateTimeEdit::event(event); } +inline void promoted_fixup(QString& input) const { QDateTimeEdit::fixup(input); } +inline void promoted_focusInEvent(QFocusEvent* event) { QDateTimeEdit::focusInEvent(event); } +inline bool promoted_focusNextPrevChild(bool next) { return QDateTimeEdit::focusNextPrevChild(next); } +inline void promoted_keyPressEvent(QKeyEvent* event) { QDateTimeEdit::keyPressEvent(event); } +inline void promoted_mousePressEvent(QMouseEvent* event) { QDateTimeEdit::mousePressEvent(event); } +inline void promoted_paintEvent(QPaintEvent* event) { QDateTimeEdit::paintEvent(event); } +inline void promoted_stepBy(int steps) { QDateTimeEdit::stepBy(steps); } +inline QAbstractSpinBox::StepEnabled promoted_stepEnabled() const { return QDateTimeEdit::stepEnabled(); } +inline QString promoted_textFromDateTime(const QDateTime& dt) const { return QDateTimeEdit::textFromDateTime(dt); } +inline QValidator::State promoted_validate(QString& input, int& pos) const { return QDateTimeEdit::validate(input, pos); } +inline void promoted_wheelEvent(QWheelEvent* event) { QDateTimeEdit::wheelEvent(event); } +}; + +class PythonQtWrapper_QDateTimeEdit : public QObject +{ Q_OBJECT +public: +public slots: +QDateTimeEdit* new_QDateTimeEdit(QWidget* parent = 0); +QDateTimeEdit* new_QDateTimeEdit(const QDate& d, QWidget* parent = 0); +QDateTimeEdit* new_QDateTimeEdit(const QDateTime& dt, QWidget* parent = 0); +QDateTimeEdit* new_QDateTimeEdit(const QTime& t, QWidget* parent = 0); +void delete_QDateTimeEdit(QDateTimeEdit* obj) { delete obj; } + bool calendarPopup(QDateTimeEdit* theWrappedObject) const; + QCalendarWidget* calendarWidget(QDateTimeEdit* theWrappedObject) const; + void clear(QDateTimeEdit* theWrappedObject); + void clearMaximumDate(QDateTimeEdit* theWrappedObject); + void clearMaximumDateTime(QDateTimeEdit* theWrappedObject); + void clearMaximumTime(QDateTimeEdit* theWrappedObject); + void clearMinimumDate(QDateTimeEdit* theWrappedObject); + void clearMinimumDateTime(QDateTimeEdit* theWrappedObject); + void clearMinimumTime(QDateTimeEdit* theWrappedObject); + QDateTimeEdit::Section currentSection(QDateTimeEdit* theWrappedObject) const; + int currentSectionIndex(QDateTimeEdit* theWrappedObject) const; + QDate date(QDateTimeEdit* theWrappedObject) const; + QDateTime dateTime(QDateTimeEdit* theWrappedObject) const; + QDateTime dateTimeFromText(QDateTimeEdit* theWrappedObject, const QString& text) const; + QString displayFormat(QDateTimeEdit* theWrappedObject) const; + QDateTimeEdit::Sections displayedSections(QDateTimeEdit* theWrappedObject) const; + bool event(QDateTimeEdit* theWrappedObject, QEvent* event); + void fixup(QDateTimeEdit* theWrappedObject, QString& input) const; + void focusInEvent(QDateTimeEdit* theWrappedObject, QFocusEvent* event); + bool focusNextPrevChild(QDateTimeEdit* theWrappedObject, bool next); + void keyPressEvent(QDateTimeEdit* theWrappedObject, QKeyEvent* event); + QDate maximumDate(QDateTimeEdit* theWrappedObject) const; + QDateTime maximumDateTime(QDateTimeEdit* theWrappedObject) const; + QTime maximumTime(QDateTimeEdit* theWrappedObject) const; + QDate minimumDate(QDateTimeEdit* theWrappedObject) const; + QDateTime minimumDateTime(QDateTimeEdit* theWrappedObject) const; + QTime minimumTime(QDateTimeEdit* theWrappedObject) const; + void mousePressEvent(QDateTimeEdit* theWrappedObject, QMouseEvent* event); + void paintEvent(QDateTimeEdit* theWrappedObject, QPaintEvent* event); + QDateTimeEdit::Section sectionAt(QDateTimeEdit* theWrappedObject, int index) const; + int sectionCount(QDateTimeEdit* theWrappedObject) const; + QString sectionText(QDateTimeEdit* theWrappedObject, QDateTimeEdit::Section section) const; + void setCalendarPopup(QDateTimeEdit* theWrappedObject, bool enable); + void setCalendarWidget(QDateTimeEdit* theWrappedObject, QCalendarWidget* calendarWidget); + void setCurrentSection(QDateTimeEdit* theWrappedObject, QDateTimeEdit::Section section); + void setCurrentSectionIndex(QDateTimeEdit* theWrappedObject, int index); + void setDateRange(QDateTimeEdit* theWrappedObject, const QDate& min, const QDate& max); + void setDateTimeRange(QDateTimeEdit* theWrappedObject, const QDateTime& min, const QDateTime& max); + void setDisplayFormat(QDateTimeEdit* theWrappedObject, const QString& format); + void setMaximumDate(QDateTimeEdit* theWrappedObject, const QDate& max); + void setMaximumDateTime(QDateTimeEdit* theWrappedObject, const QDateTime& dt); + void setMaximumTime(QDateTimeEdit* theWrappedObject, const QTime& max); + void setMinimumDate(QDateTimeEdit* theWrappedObject, const QDate& min); + void setMinimumDateTime(QDateTimeEdit* theWrappedObject, const QDateTime& dt); + void setMinimumTime(QDateTimeEdit* theWrappedObject, const QTime& min); + void setSelectedSection(QDateTimeEdit* theWrappedObject, QDateTimeEdit::Section section); + void setTimeRange(QDateTimeEdit* theWrappedObject, const QTime& min, const QTime& max); + void setTimeSpec(QDateTimeEdit* theWrappedObject, Qt::TimeSpec spec); + QSize sizeHint(QDateTimeEdit* theWrappedObject) const; + void stepBy(QDateTimeEdit* theWrappedObject, int steps); + QAbstractSpinBox::StepEnabled stepEnabled(QDateTimeEdit* theWrappedObject) const; + QString textFromDateTime(QDateTimeEdit* theWrappedObject, const QDateTime& dt) const; + QTime time(QDateTimeEdit* theWrappedObject) const; + Qt::TimeSpec timeSpec(QDateTimeEdit* theWrappedObject) const; + QValidator::State validate(QDateTimeEdit* theWrappedObject, QString& input, int& pos) const; + void wheelEvent(QDateTimeEdit* theWrappedObject, QWheelEvent* event); +}; + +#endif + + + +class PythonQtShell_QDesktopServices : public QDesktopServices +{ +public: + PythonQtShell_QDesktopServices():QDesktopServices(),_wrapper(NULL) {}; + + ~PythonQtShell_QDesktopServices(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QDesktopServices : public QObject +{ Q_OBJECT +public: +public slots: +QDesktopServices* new_QDesktopServices(); +void delete_QDesktopServices(QDesktopServices* obj) { delete obj; } + bool static_QDesktopServices_openUrl(const QUrl& url); + void static_QDesktopServices_setUrlHandler(const QString& scheme, QObject* receiver, const char* method); + void static_QDesktopServices_unsetUrlHandler(const QString& scheme); +}; + + diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui1.cpp b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui1.cpp new file mode 100644 index 00000000..2b3053db --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui1.cpp @@ -0,0 +1,14574 @@ +#include "com_trolltech_qt_gui1.h" +#include +#include +#include + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QDesktopWidget::~PythonQtShell_QDesktopWidget() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QDesktopWidget::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::actionEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::changeEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::childEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::closeEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::contextMenuEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::customEvent(arg__1); +} +int PythonQtShell_QDesktopWidget::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDesktopWidget::devType(); +} +void PythonQtShell_QDesktopWidget::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::dragEnterEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::dragLeaveEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::dragMoveEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::dropEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::enterEvent(arg__1); +} +bool PythonQtShell_QDesktopWidget::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDesktopWidget::event(arg__1); +} +bool PythonQtShell_QDesktopWidget::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDesktopWidget::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QDesktopWidget::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::focusInEvent(arg__1); +} +bool PythonQtShell_QDesktopWidget::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDesktopWidget::focusNextPrevChild(next); +} +void PythonQtShell_QDesktopWidget::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::focusOutEvent(arg__1); +} +bool PythonQtShell_QDesktopWidget::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDesktopWidget::hasHeightForWidth(); +} +int PythonQtShell_QDesktopWidget::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDesktopWidget::heightForWidth(arg__1); +} +void PythonQtShell_QDesktopWidget::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::hideEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::initPainter(painter); +} +void PythonQtShell_QDesktopWidget::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QDesktopWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDesktopWidget::inputMethodQuery(arg__1); +} +void PythonQtShell_QDesktopWidget::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::keyPressEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::keyReleaseEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::leaveEvent(arg__1); +} +int PythonQtShell_QDesktopWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDesktopWidget::metric(arg__1); +} +QSize PythonQtShell_QDesktopWidget::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDesktopWidget::minimumSizeHint(); +} +void PythonQtShell_QDesktopWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::mouseMoveEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::mousePressEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::moveEvent(arg__1); +} +bool PythonQtShell_QDesktopWidget::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDesktopWidget::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QDesktopWidget::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDesktopWidget::paintEngine(); +} +void PythonQtShell_QDesktopWidget::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QDesktopWidget::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDesktopWidget::redirected(offset); +} +void PythonQtShell_QDesktopWidget::resizeEvent(QResizeEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::resizeEvent(e); +} +QPainter* PythonQtShell_QDesktopWidget::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDesktopWidget::sharedPainter(); +} +void PythonQtShell_QDesktopWidget::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::showEvent(arg__1); +} +QSize PythonQtShell_QDesktopWidget::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDesktopWidget::sizeHint(); +} +void PythonQtShell_QDesktopWidget::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::tabletEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::timerEvent(arg__1); +} +void PythonQtShell_QDesktopWidget::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDesktopWidget::wheelEvent(arg__1); +} +QDesktopWidget* PythonQtWrapper_QDesktopWidget::new_QDesktopWidget() +{ +return new PythonQtShell_QDesktopWidget(); } + +const QRect PythonQtWrapper_QDesktopWidget::availableGeometry(QDesktopWidget* theWrappedObject, const QPoint& point) const +{ + return ( theWrappedObject->availableGeometry(point)); +} + +const QRect PythonQtWrapper_QDesktopWidget::availableGeometry(QDesktopWidget* theWrappedObject, const QWidget* widget) const +{ + return ( theWrappedObject->availableGeometry(widget)); +} + +const QRect PythonQtWrapper_QDesktopWidget::availableGeometry(QDesktopWidget* theWrappedObject, int screen) const +{ + return ( theWrappedObject->availableGeometry(screen)); +} + +bool PythonQtWrapper_QDesktopWidget::isVirtualDesktop(QDesktopWidget* theWrappedObject) const +{ + return ( theWrappedObject->isVirtualDesktop()); +} + +int PythonQtWrapper_QDesktopWidget::numScreens(QDesktopWidget* theWrappedObject) const +{ + return ( theWrappedObject->numScreens()); +} + +int PythonQtWrapper_QDesktopWidget::primaryScreen(QDesktopWidget* theWrappedObject) const +{ + return ( theWrappedObject->primaryScreen()); +} + +void PythonQtWrapper_QDesktopWidget::resizeEvent(QDesktopWidget* theWrappedObject, QResizeEvent* e) +{ + ( ((PythonQtPublicPromoter_QDesktopWidget*)theWrappedObject)->promoted_resizeEvent(e)); +} + +QWidget* PythonQtWrapper_QDesktopWidget::screen(QDesktopWidget* theWrappedObject, int screen) +{ + return ( theWrappedObject->screen(screen)); +} + +int PythonQtWrapper_QDesktopWidget::screenCount(QDesktopWidget* theWrappedObject) const +{ + return ( theWrappedObject->screenCount()); +} + +const QRect PythonQtWrapper_QDesktopWidget::screenGeometry(QDesktopWidget* theWrappedObject, const QPoint& point) const +{ + return ( theWrappedObject->screenGeometry(point)); +} + +const QRect PythonQtWrapper_QDesktopWidget::screenGeometry(QDesktopWidget* theWrappedObject, const QWidget* widget) const +{ + return ( theWrappedObject->screenGeometry(widget)); +} + +const QRect PythonQtWrapper_QDesktopWidget::screenGeometry(QDesktopWidget* theWrappedObject, int screen) const +{ + return ( theWrappedObject->screenGeometry(screen)); +} + +int PythonQtWrapper_QDesktopWidget::screenNumber(QDesktopWidget* theWrappedObject, const QPoint& arg__1) const +{ + return ( theWrappedObject->screenNumber(arg__1)); +} + +int PythonQtWrapper_QDesktopWidget::screenNumber(QDesktopWidget* theWrappedObject, const QWidget* widget) const +{ + return ( theWrappedObject->screenNumber(widget)); +} + + + +PythonQtShell_QDial::~PythonQtShell_QDial() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QDial::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::actionEvent(arg__1); +} +void PythonQtShell_QDial::changeEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::changeEvent(e); +} +void PythonQtShell_QDial::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::childEvent(arg__1); +} +void PythonQtShell_QDial::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::closeEvent(arg__1); +} +void PythonQtShell_QDial::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::contextMenuEvent(arg__1); +} +void PythonQtShell_QDial::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::customEvent(arg__1); +} +int PythonQtShell_QDial::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDial::devType(); +} +void PythonQtShell_QDial::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::dragEnterEvent(arg__1); +} +void PythonQtShell_QDial::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::dragLeaveEvent(arg__1); +} +void PythonQtShell_QDial::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::dragMoveEvent(arg__1); +} +void PythonQtShell_QDial::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::dropEvent(arg__1); +} +void PythonQtShell_QDial::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::enterEvent(arg__1); +} +bool PythonQtShell_QDial::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDial::event(e); +} +bool PythonQtShell_QDial::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDial::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QDial::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::focusInEvent(arg__1); +} +bool PythonQtShell_QDial::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDial::focusNextPrevChild(next); +} +void PythonQtShell_QDial::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::focusOutEvent(arg__1); +} +bool PythonQtShell_QDial::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDial::hasHeightForWidth(); +} +int PythonQtShell_QDial::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDial::heightForWidth(arg__1); +} +void PythonQtShell_QDial::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::hideEvent(arg__1); +} +void PythonQtShell_QDial::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::initPainter(painter); +} +void PythonQtShell_QDial::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QDial::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDial::inputMethodQuery(arg__1); +} +void PythonQtShell_QDial::keyPressEvent(QKeyEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::keyPressEvent(ev); +} +void PythonQtShell_QDial::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::keyReleaseEvent(arg__1); +} +void PythonQtShell_QDial::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::leaveEvent(arg__1); +} +int PythonQtShell_QDial::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDial::metric(arg__1); +} +void PythonQtShell_QDial::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QDial::mouseMoveEvent(QMouseEvent* me) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&me}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::mouseMoveEvent(me); +} +void PythonQtShell_QDial::mousePressEvent(QMouseEvent* me) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&me}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::mousePressEvent(me); +} +void PythonQtShell_QDial::mouseReleaseEvent(QMouseEvent* me) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&me}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::mouseReleaseEvent(me); +} +void PythonQtShell_QDial::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::moveEvent(arg__1); +} +bool PythonQtShell_QDial::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDial::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QDial::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDial::paintEngine(); +} +void PythonQtShell_QDial::paintEvent(QPaintEvent* pe) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&pe}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::paintEvent(pe); +} +QPaintDevice* PythonQtShell_QDial::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDial::redirected(offset); +} +void PythonQtShell_QDial::resizeEvent(QResizeEvent* re) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&re}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::resizeEvent(re); +} +QPainter* PythonQtShell_QDial::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDial::sharedPainter(); +} +void PythonQtShell_QDial::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::showEvent(arg__1); +} +void PythonQtShell_QDial::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::tabletEvent(arg__1); +} +void PythonQtShell_QDial::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::timerEvent(arg__1); +} +void PythonQtShell_QDial::wheelEvent(QWheelEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDial::wheelEvent(e); +} +QDial* PythonQtWrapper_QDial::new_QDial(QWidget* parent) +{ +return new PythonQtShell_QDial(parent); } + +bool PythonQtWrapper_QDial::event(QDial* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QDial*)theWrappedObject)->promoted_event(e)); +} + +QSize PythonQtWrapper_QDial::minimumSizeHint(QDial* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +void PythonQtWrapper_QDial::mouseMoveEvent(QDial* theWrappedObject, QMouseEvent* me) +{ + ( ((PythonQtPublicPromoter_QDial*)theWrappedObject)->promoted_mouseMoveEvent(me)); +} + +void PythonQtWrapper_QDial::mousePressEvent(QDial* theWrappedObject, QMouseEvent* me) +{ + ( ((PythonQtPublicPromoter_QDial*)theWrappedObject)->promoted_mousePressEvent(me)); +} + +void PythonQtWrapper_QDial::mouseReleaseEvent(QDial* theWrappedObject, QMouseEvent* me) +{ + ( ((PythonQtPublicPromoter_QDial*)theWrappedObject)->promoted_mouseReleaseEvent(me)); +} + +int PythonQtWrapper_QDial::notchSize(QDial* theWrappedObject) const +{ + return ( theWrappedObject->notchSize()); +} + +qreal PythonQtWrapper_QDial::notchTarget(QDial* theWrappedObject) const +{ + return ( theWrappedObject->notchTarget()); +} + +bool PythonQtWrapper_QDial::notchesVisible(QDial* theWrappedObject) const +{ + return ( theWrappedObject->notchesVisible()); +} + +void PythonQtWrapper_QDial::paintEvent(QDial* theWrappedObject, QPaintEvent* pe) +{ + ( ((PythonQtPublicPromoter_QDial*)theWrappedObject)->promoted_paintEvent(pe)); +} + +void PythonQtWrapper_QDial::resizeEvent(QDial* theWrappedObject, QResizeEvent* re) +{ + ( ((PythonQtPublicPromoter_QDial*)theWrappedObject)->promoted_resizeEvent(re)); +} + +void PythonQtWrapper_QDial::setNotchTarget(QDial* theWrappedObject, double target) +{ + ( theWrappedObject->setNotchTarget(target)); +} + +QSize PythonQtWrapper_QDial::sizeHint(QDial* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +bool PythonQtWrapper_QDial::wrapping(QDial* theWrappedObject) const +{ + return ( theWrappedObject->wrapping()); +} + + + +PythonQtShell_QDialog::~PythonQtShell_QDialog() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QDialog::accept() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::accept(); +} +void PythonQtShell_QDialog::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::actionEvent(arg__1); +} +void PythonQtShell_QDialog::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::changeEvent(arg__1); +} +void PythonQtShell_QDialog::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::childEvent(arg__1); +} +void PythonQtShell_QDialog::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::closeEvent(arg__1); +} +void PythonQtShell_QDialog::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::contextMenuEvent(arg__1); +} +void PythonQtShell_QDialog::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::customEvent(arg__1); +} +int PythonQtShell_QDialog::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialog::devType(); +} +void PythonQtShell_QDialog::done(int arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::done(arg__1); +} +void PythonQtShell_QDialog::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::dragEnterEvent(arg__1); +} +void PythonQtShell_QDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::dragLeaveEvent(arg__1); +} +void PythonQtShell_QDialog::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::dragMoveEvent(arg__1); +} +void PythonQtShell_QDialog::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::dropEvent(arg__1); +} +void PythonQtShell_QDialog::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::enterEvent(arg__1); +} +bool PythonQtShell_QDialog::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialog::event(arg__1); +} +bool PythonQtShell_QDialog::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialog::eventFilter(arg__1, arg__2); +} +int PythonQtShell_QDialog::exec() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialog::exec(); +} +void PythonQtShell_QDialog::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::focusInEvent(arg__1); +} +bool PythonQtShell_QDialog::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialog::focusNextPrevChild(next); +} +void PythonQtShell_QDialog::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::focusOutEvent(arg__1); +} +bool PythonQtShell_QDialog::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialog::hasHeightForWidth(); +} +int PythonQtShell_QDialog::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialog::heightForWidth(arg__1); +} +void PythonQtShell_QDialog::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::hideEvent(arg__1); +} +void PythonQtShell_QDialog::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::initPainter(painter); +} +void PythonQtShell_QDialog::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialog::inputMethodQuery(arg__1); +} +void PythonQtShell_QDialog::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::keyPressEvent(arg__1); +} +void PythonQtShell_QDialog::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::keyReleaseEvent(arg__1); +} +void PythonQtShell_QDialog::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::leaveEvent(arg__1); +} +int PythonQtShell_QDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialog::metric(arg__1); +} +void PythonQtShell_QDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QDialog::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::mouseMoveEvent(arg__1); +} +void PythonQtShell_QDialog::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::mousePressEvent(arg__1); +} +void PythonQtShell_QDialog::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QDialog::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::moveEvent(arg__1); +} +bool PythonQtShell_QDialog::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialog::nativeEvent(eventType, message, result); +} +void PythonQtShell_QDialog::open() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::open(); +} +QPaintEngine* PythonQtShell_QDialog::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialog::paintEngine(); +} +void PythonQtShell_QDialog::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QDialog::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialog::redirected(offset); +} +void PythonQtShell_QDialog::reject() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::reject(); +} +void PythonQtShell_QDialog::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QDialog::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialog::sharedPainter(); +} +void PythonQtShell_QDialog::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::showEvent(arg__1); +} +void PythonQtShell_QDialog::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::tabletEvent(arg__1); +} +void PythonQtShell_QDialog::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::timerEvent(arg__1); +} +void PythonQtShell_QDialog::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialog::wheelEvent(arg__1); +} +QDialog* PythonQtWrapper_QDialog::new_QDialog(QWidget* parent, Qt::WindowFlags f) +{ +return new PythonQtShell_QDialog(parent, f); } + +void PythonQtWrapper_QDialog::accept(QDialog* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QDialog*)theWrappedObject)->promoted_accept()); +} + +void PythonQtWrapper_QDialog::closeEvent(QDialog* theWrappedObject, QCloseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QDialog*)theWrappedObject)->promoted_closeEvent(arg__1)); +} + +void PythonQtWrapper_QDialog::contextMenuEvent(QDialog* theWrappedObject, QContextMenuEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QDialog*)theWrappedObject)->promoted_contextMenuEvent(arg__1)); +} + +void PythonQtWrapper_QDialog::done(QDialog* theWrappedObject, int arg__1) +{ + ( ((PythonQtPublicPromoter_QDialog*)theWrappedObject)->promoted_done(arg__1)); +} + +bool PythonQtWrapper_QDialog::eventFilter(QDialog* theWrappedObject, QObject* arg__1, QEvent* arg__2) +{ + return ( ((PythonQtPublicPromoter_QDialog*)theWrappedObject)->promoted_eventFilter(arg__1, arg__2)); +} + +int PythonQtWrapper_QDialog::exec(QDialog* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QDialog*)theWrappedObject)->promoted_exec()); +} + +bool PythonQtWrapper_QDialog::isSizeGripEnabled(QDialog* theWrappedObject) const +{ + return ( theWrappedObject->isSizeGripEnabled()); +} + +void PythonQtWrapper_QDialog::keyPressEvent(QDialog* theWrappedObject, QKeyEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QDialog*)theWrappedObject)->promoted_keyPressEvent(arg__1)); +} + +QSize PythonQtWrapper_QDialog::minimumSizeHint(QDialog* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +void PythonQtWrapper_QDialog::open(QDialog* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QDialog*)theWrappedObject)->promoted_open()); +} + +void PythonQtWrapper_QDialog::reject(QDialog* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QDialog*)theWrappedObject)->promoted_reject()); +} + +void PythonQtWrapper_QDialog::resizeEvent(QDialog* theWrappedObject, QResizeEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QDialog*)theWrappedObject)->promoted_resizeEvent(arg__1)); +} + +int PythonQtWrapper_QDialog::result(QDialog* theWrappedObject) const +{ + return ( theWrappedObject->result()); +} + +void PythonQtWrapper_QDialog::setModal(QDialog* theWrappedObject, bool modal) +{ + ( theWrappedObject->setModal(modal)); +} + +void PythonQtWrapper_QDialog::setResult(QDialog* theWrappedObject, int r) +{ + ( theWrappedObject->setResult(r)); +} + +void PythonQtWrapper_QDialog::setSizeGripEnabled(QDialog* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setSizeGripEnabled(arg__1)); +} + +void PythonQtWrapper_QDialog::setVisible(QDialog* theWrappedObject, bool visible) +{ + ( theWrappedObject->setVisible(visible)); +} + +void PythonQtWrapper_QDialog::showEvent(QDialog* theWrappedObject, QShowEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QDialog*)theWrappedObject)->promoted_showEvent(arg__1)); +} + +QSize PythonQtWrapper_QDialog::sizeHint(QDialog* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + + + +PythonQtShell_QDialogButtonBox::~PythonQtShell_QDialogButtonBox() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QDialogButtonBox::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::actionEvent(arg__1); +} +void PythonQtShell_QDialogButtonBox::changeEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::changeEvent(event); +} +void PythonQtShell_QDialogButtonBox::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::childEvent(arg__1); +} +void PythonQtShell_QDialogButtonBox::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::closeEvent(arg__1); +} +void PythonQtShell_QDialogButtonBox::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::contextMenuEvent(arg__1); +} +void PythonQtShell_QDialogButtonBox::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::customEvent(arg__1); +} +int PythonQtShell_QDialogButtonBox::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialogButtonBox::devType(); +} +void PythonQtShell_QDialogButtonBox::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::dragEnterEvent(arg__1); +} +void PythonQtShell_QDialogButtonBox::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::dragLeaveEvent(arg__1); +} +void PythonQtShell_QDialogButtonBox::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::dragMoveEvent(arg__1); +} +void PythonQtShell_QDialogButtonBox::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::dropEvent(arg__1); +} +void PythonQtShell_QDialogButtonBox::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::enterEvent(arg__1); +} +bool PythonQtShell_QDialogButtonBox::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialogButtonBox::event(event); +} +bool PythonQtShell_QDialogButtonBox::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialogButtonBox::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QDialogButtonBox::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::focusInEvent(arg__1); +} +bool PythonQtShell_QDialogButtonBox::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialogButtonBox::focusNextPrevChild(next); +} +void PythonQtShell_QDialogButtonBox::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::focusOutEvent(arg__1); +} +bool PythonQtShell_QDialogButtonBox::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialogButtonBox::hasHeightForWidth(); +} +int PythonQtShell_QDialogButtonBox::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialogButtonBox::heightForWidth(arg__1); +} +void PythonQtShell_QDialogButtonBox::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::hideEvent(arg__1); +} +void PythonQtShell_QDialogButtonBox::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::initPainter(painter); +} +void PythonQtShell_QDialogButtonBox::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QDialogButtonBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialogButtonBox::inputMethodQuery(arg__1); +} +void PythonQtShell_QDialogButtonBox::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::keyPressEvent(arg__1); +} +void PythonQtShell_QDialogButtonBox::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::keyReleaseEvent(arg__1); +} +void PythonQtShell_QDialogButtonBox::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::leaveEvent(arg__1); +} +int PythonQtShell_QDialogButtonBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialogButtonBox::metric(arg__1); +} +QSize PythonQtShell_QDialogButtonBox::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialogButtonBox::minimumSizeHint(); +} +void PythonQtShell_QDialogButtonBox::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QDialogButtonBox::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::mouseMoveEvent(arg__1); +} +void PythonQtShell_QDialogButtonBox::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::mousePressEvent(arg__1); +} +void PythonQtShell_QDialogButtonBox::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QDialogButtonBox::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::moveEvent(arg__1); +} +bool PythonQtShell_QDialogButtonBox::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialogButtonBox::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QDialogButtonBox::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialogButtonBox::paintEngine(); +} +void PythonQtShell_QDialogButtonBox::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QDialogButtonBox::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialogButtonBox::redirected(offset); +} +void PythonQtShell_QDialogButtonBox::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QDialogButtonBox::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialogButtonBox::sharedPainter(); +} +void PythonQtShell_QDialogButtonBox::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::showEvent(arg__1); +} +QSize PythonQtShell_QDialogButtonBox::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDialogButtonBox::sizeHint(); +} +void PythonQtShell_QDialogButtonBox::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::tabletEvent(arg__1); +} +void PythonQtShell_QDialogButtonBox::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::timerEvent(arg__1); +} +void PythonQtShell_QDialogButtonBox::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDialogButtonBox::wheelEvent(arg__1); +} +QDialogButtonBox* PythonQtWrapper_QDialogButtonBox::new_QDialogButtonBox(QDialogButtonBox::StandardButtons buttons, Qt::Orientation orientation, QWidget* parent) +{ +return new PythonQtShell_QDialogButtonBox(buttons, orientation, parent); } + +QDialogButtonBox* PythonQtWrapper_QDialogButtonBox::new_QDialogButtonBox(QWidget* parent) +{ +return new PythonQtShell_QDialogButtonBox(parent); } + +QDialogButtonBox* PythonQtWrapper_QDialogButtonBox::new_QDialogButtonBox(Qt::Orientation orientation, QWidget* parent) +{ +return new PythonQtShell_QDialogButtonBox(orientation, parent); } + +void PythonQtWrapper_QDialogButtonBox::addButton(QDialogButtonBox* theWrappedObject, QAbstractButton* button, QDialogButtonBox::ButtonRole role) +{ + ( theWrappedObject->addButton(button, role)); +} + +QPushButton* PythonQtWrapper_QDialogButtonBox::addButton(QDialogButtonBox* theWrappedObject, QDialogButtonBox::StandardButton button) +{ + return ( theWrappedObject->addButton(button)); +} + +QPushButton* PythonQtWrapper_QDialogButtonBox::addButton(QDialogButtonBox* theWrappedObject, const QString& text, QDialogButtonBox::ButtonRole role) +{ + return ( theWrappedObject->addButton(text, role)); +} + +QPushButton* PythonQtWrapper_QDialogButtonBox::button(QDialogButtonBox* theWrappedObject, QDialogButtonBox::StandardButton which) const +{ + return ( theWrappedObject->button(which)); +} + +QDialogButtonBox::ButtonRole PythonQtWrapper_QDialogButtonBox::buttonRole(QDialogButtonBox* theWrappedObject, QAbstractButton* button) const +{ + return ( theWrappedObject->buttonRole(button)); +} + +QList PythonQtWrapper_QDialogButtonBox::buttons(QDialogButtonBox* theWrappedObject) const +{ + return ( theWrappedObject->buttons()); +} + +bool PythonQtWrapper_QDialogButtonBox::centerButtons(QDialogButtonBox* theWrappedObject) const +{ + return ( theWrappedObject->centerButtons()); +} + +void PythonQtWrapper_QDialogButtonBox::changeEvent(QDialogButtonBox* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QDialogButtonBox*)theWrappedObject)->promoted_changeEvent(event)); +} + +void PythonQtWrapper_QDialogButtonBox::clear(QDialogButtonBox* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +bool PythonQtWrapper_QDialogButtonBox::event(QDialogButtonBox* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QDialogButtonBox*)theWrappedObject)->promoted_event(event)); +} + +Qt::Orientation PythonQtWrapper_QDialogButtonBox::orientation(QDialogButtonBox* theWrappedObject) const +{ + return ( theWrappedObject->orientation()); +} + +void PythonQtWrapper_QDialogButtonBox::removeButton(QDialogButtonBox* theWrappedObject, QAbstractButton* button) +{ + ( theWrappedObject->removeButton(button)); +} + +void PythonQtWrapper_QDialogButtonBox::setCenterButtons(QDialogButtonBox* theWrappedObject, bool center) +{ + ( theWrappedObject->setCenterButtons(center)); +} + +void PythonQtWrapper_QDialogButtonBox::setOrientation(QDialogButtonBox* theWrappedObject, Qt::Orientation orientation) +{ + ( theWrappedObject->setOrientation(orientation)); +} + +void PythonQtWrapper_QDialogButtonBox::setStandardButtons(QDialogButtonBox* theWrappedObject, QDialogButtonBox::StandardButtons buttons) +{ + ( theWrappedObject->setStandardButtons(buttons)); +} + +QDialogButtonBox::StandardButton PythonQtWrapper_QDialogButtonBox::standardButton(QDialogButtonBox* theWrappedObject, QAbstractButton* button) const +{ + return ( theWrappedObject->standardButton(button)); +} + +QDialogButtonBox::StandardButtons PythonQtWrapper_QDialogButtonBox::standardButtons(QDialogButtonBox* theWrappedObject) const +{ + return ( theWrappedObject->standardButtons()); +} + + + +PythonQtShell_QDockWidget::~PythonQtShell_QDockWidget() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QDockWidget::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::actionEvent(arg__1); +} +void PythonQtShell_QDockWidget::changeEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::changeEvent(event); +} +void PythonQtShell_QDockWidget::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::childEvent(arg__1); +} +void PythonQtShell_QDockWidget::closeEvent(QCloseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::closeEvent(event); +} +void PythonQtShell_QDockWidget::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::contextMenuEvent(arg__1); +} +void PythonQtShell_QDockWidget::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::customEvent(arg__1); +} +int PythonQtShell_QDockWidget::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDockWidget::devType(); +} +void PythonQtShell_QDockWidget::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::dragEnterEvent(arg__1); +} +void PythonQtShell_QDockWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::dragLeaveEvent(arg__1); +} +void PythonQtShell_QDockWidget::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::dragMoveEvent(arg__1); +} +void PythonQtShell_QDockWidget::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::dropEvent(arg__1); +} +void PythonQtShell_QDockWidget::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::enterEvent(arg__1); +} +bool PythonQtShell_QDockWidget::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDockWidget::event(event); +} +bool PythonQtShell_QDockWidget::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDockWidget::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QDockWidget::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::focusInEvent(arg__1); +} +bool PythonQtShell_QDockWidget::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDockWidget::focusNextPrevChild(next); +} +void PythonQtShell_QDockWidget::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::focusOutEvent(arg__1); +} +bool PythonQtShell_QDockWidget::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDockWidget::hasHeightForWidth(); +} +int PythonQtShell_QDockWidget::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDockWidget::heightForWidth(arg__1); +} +void PythonQtShell_QDockWidget::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::hideEvent(arg__1); +} +void PythonQtShell_QDockWidget::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::initPainter(painter); +} +void PythonQtShell_QDockWidget::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QDockWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDockWidget::inputMethodQuery(arg__1); +} +void PythonQtShell_QDockWidget::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::keyPressEvent(arg__1); +} +void PythonQtShell_QDockWidget::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::keyReleaseEvent(arg__1); +} +void PythonQtShell_QDockWidget::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::leaveEvent(arg__1); +} +int PythonQtShell_QDockWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDockWidget::metric(arg__1); +} +QSize PythonQtShell_QDockWidget::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDockWidget::minimumSizeHint(); +} +void PythonQtShell_QDockWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QDockWidget::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::mouseMoveEvent(arg__1); +} +void PythonQtShell_QDockWidget::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::mousePressEvent(arg__1); +} +void PythonQtShell_QDockWidget::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QDockWidget::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::moveEvent(arg__1); +} +bool PythonQtShell_QDockWidget::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDockWidget::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QDockWidget::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDockWidget::paintEngine(); +} +void PythonQtShell_QDockWidget::paintEvent(QPaintEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::paintEvent(event); +} +QPaintDevice* PythonQtShell_QDockWidget::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDockWidget::redirected(offset); +} +void PythonQtShell_QDockWidget::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QDockWidget::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDockWidget::sharedPainter(); +} +void PythonQtShell_QDockWidget::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::showEvent(arg__1); +} +QSize PythonQtShell_QDockWidget::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDockWidget::sizeHint(); +} +void PythonQtShell_QDockWidget::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::tabletEvent(arg__1); +} +void PythonQtShell_QDockWidget::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::timerEvent(arg__1); +} +void PythonQtShell_QDockWidget::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDockWidget::wheelEvent(arg__1); +} +QDockWidget* PythonQtWrapper_QDockWidget::new_QDockWidget(QWidget* parent, Qt::WindowFlags flags) +{ +return new PythonQtShell_QDockWidget(parent, flags); } + +QDockWidget* PythonQtWrapper_QDockWidget::new_QDockWidget(const QString& title, QWidget* parent, Qt::WindowFlags flags) +{ +return new PythonQtShell_QDockWidget(title, parent, flags); } + +Qt::DockWidgetAreas PythonQtWrapper_QDockWidget::allowedAreas(QDockWidget* theWrappedObject) const +{ + return ( theWrappedObject->allowedAreas()); +} + +void PythonQtWrapper_QDockWidget::changeEvent(QDockWidget* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QDockWidget*)theWrappedObject)->promoted_changeEvent(event)); +} + +void PythonQtWrapper_QDockWidget::closeEvent(QDockWidget* theWrappedObject, QCloseEvent* event) +{ + ( ((PythonQtPublicPromoter_QDockWidget*)theWrappedObject)->promoted_closeEvent(event)); +} + +bool PythonQtWrapper_QDockWidget::event(QDockWidget* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QDockWidget*)theWrappedObject)->promoted_event(event)); +} + +QDockWidget::DockWidgetFeatures PythonQtWrapper_QDockWidget::features(QDockWidget* theWrappedObject) const +{ + return ( theWrappedObject->features()); +} + +bool PythonQtWrapper_QDockWidget::isAreaAllowed(QDockWidget* theWrappedObject, Qt::DockWidgetArea area) const +{ + return ( theWrappedObject->isAreaAllowed(area)); +} + +bool PythonQtWrapper_QDockWidget::isFloating(QDockWidget* theWrappedObject) const +{ + return ( theWrappedObject->isFloating()); +} + +void PythonQtWrapper_QDockWidget::paintEvent(QDockWidget* theWrappedObject, QPaintEvent* event) +{ + ( ((PythonQtPublicPromoter_QDockWidget*)theWrappedObject)->promoted_paintEvent(event)); +} + +void PythonQtWrapper_QDockWidget::setAllowedAreas(QDockWidget* theWrappedObject, Qt::DockWidgetAreas areas) +{ + ( theWrappedObject->setAllowedAreas(areas)); +} + +void PythonQtWrapper_QDockWidget::setFeatures(QDockWidget* theWrappedObject, QDockWidget::DockWidgetFeatures features) +{ + ( theWrappedObject->setFeatures(features)); +} + +void PythonQtWrapper_QDockWidget::setFloating(QDockWidget* theWrappedObject, bool floating) +{ + ( theWrappedObject->setFloating(floating)); +} + +void PythonQtWrapper_QDockWidget::setTitleBarWidget(QDockWidget* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->setTitleBarWidget(widget)); +} + +void PythonQtWrapper_QDockWidget::setWidget(QDockWidget* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->setWidget(widget)); +} + +QWidget* PythonQtWrapper_QDockWidget::titleBarWidget(QDockWidget* theWrappedObject) const +{ + return ( theWrappedObject->titleBarWidget()); +} + +QAction* PythonQtWrapper_QDockWidget::toggleViewAction(QDockWidget* theWrappedObject) const +{ + return ( theWrappedObject->toggleViewAction()); +} + +QWidget* PythonQtWrapper_QDockWidget::widget(QDockWidget* theWrappedObject) const +{ + return ( theWrappedObject->widget()); +} + + + +PythonQtShell_QDoubleSpinBox::~PythonQtShell_QDoubleSpinBox() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QDoubleSpinBox::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::actionEvent(arg__1); +} +void PythonQtShell_QDoubleSpinBox::changeEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::changeEvent(event); +} +void PythonQtShell_QDoubleSpinBox::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::childEvent(arg__1); +} +void PythonQtShell_QDoubleSpinBox::clear() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::clear(); +} +void PythonQtShell_QDoubleSpinBox::closeEvent(QCloseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::closeEvent(event); +} +void PythonQtShell_QDoubleSpinBox::contextMenuEvent(QContextMenuEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::contextMenuEvent(event); +} +void PythonQtShell_QDoubleSpinBox::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::customEvent(arg__1); +} +int PythonQtShell_QDoubleSpinBox::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleSpinBox::devType(); +} +void PythonQtShell_QDoubleSpinBox::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::dragEnterEvent(arg__1); +} +void PythonQtShell_QDoubleSpinBox::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::dragLeaveEvent(arg__1); +} +void PythonQtShell_QDoubleSpinBox::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::dragMoveEvent(arg__1); +} +void PythonQtShell_QDoubleSpinBox::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::dropEvent(arg__1); +} +void PythonQtShell_QDoubleSpinBox::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::enterEvent(arg__1); +} +bool PythonQtShell_QDoubleSpinBox::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleSpinBox::event(event); +} +bool PythonQtShell_QDoubleSpinBox::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleSpinBox::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QDoubleSpinBox::fixup(QString& str) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&str}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::fixup(str); +} +void PythonQtShell_QDoubleSpinBox::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::focusInEvent(event); +} +bool PythonQtShell_QDoubleSpinBox::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleSpinBox::focusNextPrevChild(next); +} +void PythonQtShell_QDoubleSpinBox::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::focusOutEvent(event); +} +bool PythonQtShell_QDoubleSpinBox::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleSpinBox::hasHeightForWidth(); +} +int PythonQtShell_QDoubleSpinBox::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleSpinBox::heightForWidth(arg__1); +} +void PythonQtShell_QDoubleSpinBox::hideEvent(QHideEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::hideEvent(event); +} +void PythonQtShell_QDoubleSpinBox::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::initPainter(painter); +} +void PythonQtShell_QDoubleSpinBox::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QDoubleSpinBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleSpinBox::inputMethodQuery(arg__1); +} +void PythonQtShell_QDoubleSpinBox::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::keyPressEvent(event); +} +void PythonQtShell_QDoubleSpinBox::keyReleaseEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::keyReleaseEvent(event); +} +void PythonQtShell_QDoubleSpinBox::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::leaveEvent(arg__1); +} +int PythonQtShell_QDoubleSpinBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleSpinBox::metric(arg__1); +} +void PythonQtShell_QDoubleSpinBox::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QDoubleSpinBox::mouseMoveEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::mouseMoveEvent(event); +} +void PythonQtShell_QDoubleSpinBox::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::mousePressEvent(event); +} +void PythonQtShell_QDoubleSpinBox::mouseReleaseEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::mouseReleaseEvent(event); +} +void PythonQtShell_QDoubleSpinBox::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::moveEvent(arg__1); +} +bool PythonQtShell_QDoubleSpinBox::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleSpinBox::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QDoubleSpinBox::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleSpinBox::paintEngine(); +} +void PythonQtShell_QDoubleSpinBox::paintEvent(QPaintEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::paintEvent(event); +} +QPaintDevice* PythonQtShell_QDoubleSpinBox::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleSpinBox::redirected(offset); +} +void PythonQtShell_QDoubleSpinBox::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::resizeEvent(event); +} +QPainter* PythonQtShell_QDoubleSpinBox::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleSpinBox::sharedPainter(); +} +void PythonQtShell_QDoubleSpinBox::showEvent(QShowEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::showEvent(event); +} +void PythonQtShell_QDoubleSpinBox::stepBy(int steps) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&steps}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::stepBy(steps); +} +QAbstractSpinBox::StepEnabled PythonQtShell_QDoubleSpinBox::stepEnabled() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepEnabled"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QAbstractSpinBox::StepEnabled returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("stepEnabled", methodInfo, result); + } else { + returnValue = *((QAbstractSpinBox::StepEnabled*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleSpinBox::stepEnabled(); +} +void PythonQtShell_QDoubleSpinBox::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::tabletEvent(arg__1); +} +QString PythonQtShell_QDoubleSpinBox::textFromValue(double val) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "textFromValue"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "double"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QString returnValue; + void* args[2] = {NULL, (void*)&val}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("textFromValue", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleSpinBox::textFromValue(val); +} +void PythonQtShell_QDoubleSpinBox::timerEvent(QTimerEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::timerEvent(event); +} +QValidator::State PythonQtShell_QDoubleSpinBox::validate(QString& input, int& pos) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QValidator::State" , "QString&" , "int&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QValidator::State returnValue; + void* args[3] = {NULL, (void*)&input, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); + } else { + returnValue = *((QValidator::State*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleSpinBox::validate(input, pos); +} +double PythonQtShell_QDoubleSpinBox::valueFromText(const QString& text) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "valueFromText"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"double" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + double returnValue; + void* args[2] = {NULL, (void*)&text}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("valueFromText", methodInfo, result); + } else { + returnValue = *((double*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleSpinBox::valueFromText(text); +} +void PythonQtShell_QDoubleSpinBox::wheelEvent(QWheelEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleSpinBox::wheelEvent(event); +} +QDoubleSpinBox* PythonQtWrapper_QDoubleSpinBox::new_QDoubleSpinBox(QWidget* parent) +{ +return new PythonQtShell_QDoubleSpinBox(parent); } + +QString PythonQtWrapper_QDoubleSpinBox::cleanText(QDoubleSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->cleanText()); +} + +int PythonQtWrapper_QDoubleSpinBox::decimals(QDoubleSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->decimals()); +} + +void PythonQtWrapper_QDoubleSpinBox::fixup(QDoubleSpinBox* theWrappedObject, QString& str) const +{ + ( ((PythonQtPublicPromoter_QDoubleSpinBox*)theWrappedObject)->promoted_fixup(str)); +} + +double PythonQtWrapper_QDoubleSpinBox::maximum(QDoubleSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->maximum()); +} + +double PythonQtWrapper_QDoubleSpinBox::minimum(QDoubleSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->minimum()); +} + +QString PythonQtWrapper_QDoubleSpinBox::prefix(QDoubleSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->prefix()); +} + +void PythonQtWrapper_QDoubleSpinBox::setDecimals(QDoubleSpinBox* theWrappedObject, int prec) +{ + ( theWrappedObject->setDecimals(prec)); +} + +void PythonQtWrapper_QDoubleSpinBox::setMaximum(QDoubleSpinBox* theWrappedObject, double max) +{ + ( theWrappedObject->setMaximum(max)); +} + +void PythonQtWrapper_QDoubleSpinBox::setMinimum(QDoubleSpinBox* theWrappedObject, double min) +{ + ( theWrappedObject->setMinimum(min)); +} + +void PythonQtWrapper_QDoubleSpinBox::setPrefix(QDoubleSpinBox* theWrappedObject, const QString& prefix) +{ + ( theWrappedObject->setPrefix(prefix)); +} + +void PythonQtWrapper_QDoubleSpinBox::setRange(QDoubleSpinBox* theWrappedObject, double min, double max) +{ + ( theWrappedObject->setRange(min, max)); +} + +void PythonQtWrapper_QDoubleSpinBox::setSingleStep(QDoubleSpinBox* theWrappedObject, double val) +{ + ( theWrappedObject->setSingleStep(val)); +} + +void PythonQtWrapper_QDoubleSpinBox::setSuffix(QDoubleSpinBox* theWrappedObject, const QString& suffix) +{ + ( theWrappedObject->setSuffix(suffix)); +} + +double PythonQtWrapper_QDoubleSpinBox::singleStep(QDoubleSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->singleStep()); +} + +QString PythonQtWrapper_QDoubleSpinBox::suffix(QDoubleSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->suffix()); +} + +QString PythonQtWrapper_QDoubleSpinBox::textFromValue(QDoubleSpinBox* theWrappedObject, double val) const +{ + return ( ((PythonQtPublicPromoter_QDoubleSpinBox*)theWrappedObject)->promoted_textFromValue(val)); +} + +QValidator::State PythonQtWrapper_QDoubleSpinBox::validate(QDoubleSpinBox* theWrappedObject, QString& input, int& pos) const +{ + return ( ((PythonQtPublicPromoter_QDoubleSpinBox*)theWrappedObject)->promoted_validate(input, pos)); +} + +double PythonQtWrapper_QDoubleSpinBox::value(QDoubleSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->value()); +} + +double PythonQtWrapper_QDoubleSpinBox::valueFromText(QDoubleSpinBox* theWrappedObject, const QString& text) const +{ + return ( ((PythonQtPublicPromoter_QDoubleSpinBox*)theWrappedObject)->promoted_valueFromText(text)); +} + +#endif + +PythonQtShell_QDoubleValidator::~PythonQtShell_QDoubleValidator() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QDoubleValidator::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleValidator::childEvent(arg__1); +} +void PythonQtShell_QDoubleValidator::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleValidator::customEvent(arg__1); +} +bool PythonQtShell_QDoubleValidator::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleValidator::event(arg__1); +} +bool PythonQtShell_QDoubleValidator::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleValidator::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QDoubleValidator::fixup(QString& arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleValidator::fixup(arg__1); +} +void PythonQtShell_QDoubleValidator::setRange(double bottom, double top, int decimals) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRange"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "double" , "double" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&bottom, (void*)&top, (void*)&decimals}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleValidator::setRange(bottom, top, decimals); +} +void PythonQtShell_QDoubleValidator::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDoubleValidator::timerEvent(arg__1); +} +QValidator::State PythonQtShell_QDoubleValidator::validate(QString& arg__1, int& arg__2) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QValidator::State" , "QString&" , "int&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QValidator::State returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); + } else { + returnValue = *((QValidator::State*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDoubleValidator::validate(arg__1, arg__2); +} +QDoubleValidator* PythonQtWrapper_QDoubleValidator::new_QDoubleValidator(QObject* parent) +{ +return new PythonQtShell_QDoubleValidator(parent); } + +QDoubleValidator* PythonQtWrapper_QDoubleValidator::new_QDoubleValidator(double bottom, double top, int decimals, QObject* parent) +{ +return new PythonQtShell_QDoubleValidator(bottom, top, decimals, parent); } + +double PythonQtWrapper_QDoubleValidator::bottom(QDoubleValidator* theWrappedObject) const +{ + return ( theWrappedObject->bottom()); +} + +int PythonQtWrapper_QDoubleValidator::decimals(QDoubleValidator* theWrappedObject) const +{ + return ( theWrappedObject->decimals()); +} + +QDoubleValidator::Notation PythonQtWrapper_QDoubleValidator::notation(QDoubleValidator* theWrappedObject) const +{ + return ( theWrappedObject->notation()); +} + +void PythonQtWrapper_QDoubleValidator::setBottom(QDoubleValidator* theWrappedObject, double arg__1) +{ + ( theWrappedObject->setBottom(arg__1)); +} + +void PythonQtWrapper_QDoubleValidator::setDecimals(QDoubleValidator* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setDecimals(arg__1)); +} + +void PythonQtWrapper_QDoubleValidator::setNotation(QDoubleValidator* theWrappedObject, QDoubleValidator::Notation arg__1) +{ + ( theWrappedObject->setNotation(arg__1)); +} + +void PythonQtWrapper_QDoubleValidator::setRange(QDoubleValidator* theWrappedObject, double bottom, double top, int decimals) +{ + ( ((PythonQtPublicPromoter_QDoubleValidator*)theWrappedObject)->promoted_setRange(bottom, top, decimals)); +} + +void PythonQtWrapper_QDoubleValidator::setTop(QDoubleValidator* theWrappedObject, double arg__1) +{ + ( theWrappedObject->setTop(arg__1)); +} + +double PythonQtWrapper_QDoubleValidator::top(QDoubleValidator* theWrappedObject) const +{ + return ( theWrappedObject->top()); +} + +QValidator::State PythonQtWrapper_QDoubleValidator::validate(QDoubleValidator* theWrappedObject, QString& arg__1, int& arg__2) const +{ + return ( ((PythonQtPublicPromoter_QDoubleValidator*)theWrappedObject)->promoted_validate(arg__1, arg__2)); +} + + + +PythonQtShell_QDrag::~PythonQtShell_QDrag() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QDrag::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDrag::childEvent(arg__1); +} +void PythonQtShell_QDrag::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDrag::customEvent(arg__1); +} +bool PythonQtShell_QDrag::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDrag::event(arg__1); +} +bool PythonQtShell_QDrag::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QDrag::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QDrag::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QDrag::timerEvent(arg__1); +} +QDrag* PythonQtWrapper_QDrag::new_QDrag(QObject* dragSource) +{ +return new PythonQtShell_QDrag(dragSource); } + +Qt::DropAction PythonQtWrapper_QDrag::defaultAction(QDrag* theWrappedObject) const +{ + return ( theWrappedObject->defaultAction()); +} + +QPixmap PythonQtWrapper_QDrag::dragCursor(QDrag* theWrappedObject, Qt::DropAction action) const +{ + return ( theWrappedObject->dragCursor(action)); +} + +Qt::DropAction PythonQtWrapper_QDrag::exec(QDrag* theWrappedObject, Qt::DropActions supportedActions) +{ + return ( theWrappedObject->exec(supportedActions)); +} + +Qt::DropAction PythonQtWrapper_QDrag::exec(QDrag* theWrappedObject, Qt::DropActions supportedActions, Qt::DropAction defaultAction) +{ + return ( theWrappedObject->exec(supportedActions, defaultAction)); +} + +QPoint PythonQtWrapper_QDrag::hotSpot(QDrag* theWrappedObject) const +{ + return ( theWrappedObject->hotSpot()); +} + +QMimeData* PythonQtWrapper_QDrag::mimeData(QDrag* theWrappedObject) const +{ + return ( theWrappedObject->mimeData()); +} + +QPixmap PythonQtWrapper_QDrag::pixmap(QDrag* theWrappedObject) const +{ + return ( theWrappedObject->pixmap()); +} + +void PythonQtWrapper_QDrag::setDragCursor(QDrag* theWrappedObject, const QPixmap& cursor, Qt::DropAction action) +{ + ( theWrappedObject->setDragCursor(cursor, action)); +} + +void PythonQtWrapper_QDrag::setHotSpot(QDrag* theWrappedObject, const QPoint& hotspot) +{ + ( theWrappedObject->setHotSpot(hotspot)); +} + +void PythonQtWrapper_QDrag::setMimeData(QDrag* theWrappedObject, QMimeData* data) +{ + ( theWrappedObject->setMimeData(data)); +} + +void PythonQtWrapper_QDrag::setPixmap(QDrag* theWrappedObject, const QPixmap& arg__1) +{ + ( theWrappedObject->setPixmap(arg__1)); +} + +QObject* PythonQtWrapper_QDrag::source(QDrag* theWrappedObject) const +{ + return ( theWrappedObject->source()); +} + +Qt::DropActions PythonQtWrapper_QDrag::supportedActions(QDrag* theWrappedObject) const +{ + return ( theWrappedObject->supportedActions()); +} + +QObject* PythonQtWrapper_QDrag::target(QDrag* theWrappedObject) const +{ + return ( theWrappedObject->target()); +} + + + +QDragEnterEvent* PythonQtWrapper_QDragEnterEvent::new_QDragEnterEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) +{ +return new QDragEnterEvent(pos, actions, data, buttons, modifiers); } + + + +QDragLeaveEvent* PythonQtWrapper_QDragLeaveEvent::new_QDragLeaveEvent() +{ +return new QDragLeaveEvent(); } + + + +PythonQtShell_QDragMoveEvent::~PythonQtShell_QDragMoveEvent() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QDragMoveEvent* PythonQtWrapper_QDragMoveEvent::new_QDragMoveEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type type) +{ +return new PythonQtShell_QDragMoveEvent(pos, actions, data, buttons, modifiers, type); } + +void PythonQtWrapper_QDragMoveEvent::accept(QDragMoveEvent* theWrappedObject, const QRect& r) +{ + ( theWrappedObject->accept(r)); +} + +QRect PythonQtWrapper_QDragMoveEvent::answerRect(QDragMoveEvent* theWrappedObject) const +{ + return ( theWrappedObject->answerRect()); +} + +void PythonQtWrapper_QDragMoveEvent::ignore(QDragMoveEvent* theWrappedObject, const QRect& r) +{ + ( theWrappedObject->ignore(r)); +} + + + +PythonQtShell_QDropEvent::~PythonQtShell_QDropEvent() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QDropEvent* PythonQtWrapper_QDropEvent::new_QDropEvent(const QPointF& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type type) +{ +return new PythonQtShell_QDropEvent(pos, actions, data, buttons, modifiers, type); } + +void PythonQtWrapper_QDropEvent::acceptProposedAction(QDropEvent* theWrappedObject) +{ + ( theWrappedObject->acceptProposedAction()); +} + +Qt::DropAction PythonQtWrapper_QDropEvent::dropAction(QDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->dropAction()); +} + +Qt::KeyboardModifiers PythonQtWrapper_QDropEvent::keyboardModifiers(QDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->keyboardModifiers()); +} + +const QMimeData* PythonQtWrapper_QDropEvent::mimeData(QDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->mimeData()); +} + +Qt::MouseButtons PythonQtWrapper_QDropEvent::mouseButtons(QDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->mouseButtons()); +} + +QPoint PythonQtWrapper_QDropEvent::pos(QDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->pos()); +} + +const QPointF* PythonQtWrapper_QDropEvent::posF(QDropEvent* theWrappedObject) const +{ + return &( theWrappedObject->posF()); +} + +Qt::DropActions PythonQtWrapper_QDropEvent::possibleActions(QDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->possibleActions()); +} + +Qt::DropAction PythonQtWrapper_QDropEvent::proposedAction(QDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->proposedAction()); +} + +void PythonQtWrapper_QDropEvent::setDropAction(QDropEvent* theWrappedObject, Qt::DropAction action) +{ + ( theWrappedObject->setDropAction(action)); +} + +QObject* PythonQtWrapper_QDropEvent::source(QDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->source()); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QErrorMessage::~PythonQtShell_QErrorMessage() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QErrorMessage::accept() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::accept(); +} +void PythonQtShell_QErrorMessage::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::actionEvent(arg__1); +} +void PythonQtShell_QErrorMessage::changeEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::changeEvent(e); +} +void PythonQtShell_QErrorMessage::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::childEvent(arg__1); +} +void PythonQtShell_QErrorMessage::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::closeEvent(arg__1); +} +void PythonQtShell_QErrorMessage::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::contextMenuEvent(arg__1); +} +void PythonQtShell_QErrorMessage::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::customEvent(arg__1); +} +int PythonQtShell_QErrorMessage::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QErrorMessage::devType(); +} +void PythonQtShell_QErrorMessage::done(int arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::done(arg__1); +} +void PythonQtShell_QErrorMessage::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::dragEnterEvent(arg__1); +} +void PythonQtShell_QErrorMessage::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::dragLeaveEvent(arg__1); +} +void PythonQtShell_QErrorMessage::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::dragMoveEvent(arg__1); +} +void PythonQtShell_QErrorMessage::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::dropEvent(arg__1); +} +void PythonQtShell_QErrorMessage::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::enterEvent(arg__1); +} +bool PythonQtShell_QErrorMessage::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QErrorMessage::event(arg__1); +} +bool PythonQtShell_QErrorMessage::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QErrorMessage::eventFilter(arg__1, arg__2); +} +int PythonQtShell_QErrorMessage::exec() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QErrorMessage::exec(); +} +void PythonQtShell_QErrorMessage::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::focusInEvent(arg__1); +} +bool PythonQtShell_QErrorMessage::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QErrorMessage::focusNextPrevChild(next); +} +void PythonQtShell_QErrorMessage::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::focusOutEvent(arg__1); +} +bool PythonQtShell_QErrorMessage::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QErrorMessage::hasHeightForWidth(); +} +int PythonQtShell_QErrorMessage::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QErrorMessage::heightForWidth(arg__1); +} +void PythonQtShell_QErrorMessage::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::hideEvent(arg__1); +} +void PythonQtShell_QErrorMessage::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::initPainter(painter); +} +void PythonQtShell_QErrorMessage::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QErrorMessage::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QErrorMessage::inputMethodQuery(arg__1); +} +void PythonQtShell_QErrorMessage::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::keyPressEvent(arg__1); +} +void PythonQtShell_QErrorMessage::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::keyReleaseEvent(arg__1); +} +void PythonQtShell_QErrorMessage::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::leaveEvent(arg__1); +} +int PythonQtShell_QErrorMessage::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QErrorMessage::metric(arg__1); +} +void PythonQtShell_QErrorMessage::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QErrorMessage::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::mouseMoveEvent(arg__1); +} +void PythonQtShell_QErrorMessage::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::mousePressEvent(arg__1); +} +void PythonQtShell_QErrorMessage::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QErrorMessage::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::moveEvent(arg__1); +} +bool PythonQtShell_QErrorMessage::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QErrorMessage::nativeEvent(eventType, message, result); +} +void PythonQtShell_QErrorMessage::open() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::open(); +} +QPaintEngine* PythonQtShell_QErrorMessage::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QErrorMessage::paintEngine(); +} +void PythonQtShell_QErrorMessage::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QErrorMessage::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QErrorMessage::redirected(offset); +} +void PythonQtShell_QErrorMessage::reject() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::reject(); +} +void PythonQtShell_QErrorMessage::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QErrorMessage::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QErrorMessage::sharedPainter(); +} +void PythonQtShell_QErrorMessage::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::showEvent(arg__1); +} +void PythonQtShell_QErrorMessage::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::tabletEvent(arg__1); +} +void PythonQtShell_QErrorMessage::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::timerEvent(arg__1); +} +void PythonQtShell_QErrorMessage::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QErrorMessage::wheelEvent(arg__1); +} +QErrorMessage* PythonQtWrapper_QErrorMessage::new_QErrorMessage(QWidget* parent) +{ +return new PythonQtShell_QErrorMessage(parent); } + +void PythonQtWrapper_QErrorMessage::changeEvent(QErrorMessage* theWrappedObject, QEvent* e) +{ + ( ((PythonQtPublicPromoter_QErrorMessage*)theWrappedObject)->promoted_changeEvent(e)); +} + +void PythonQtWrapper_QErrorMessage::done(QErrorMessage* theWrappedObject, int arg__1) +{ + ( ((PythonQtPublicPromoter_QErrorMessage*)theWrappedObject)->promoted_done(arg__1)); +} + +QErrorMessage* PythonQtWrapper_QErrorMessage::static_QErrorMessage_qtHandler() +{ + return (QErrorMessage::qtHandler()); +} + + + +PythonQtShell_QFileDialog::~PythonQtShell_QFileDialog() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QFileDialog::accept() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::accept(); +} +void PythonQtShell_QFileDialog::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::actionEvent(arg__1); +} +void PythonQtShell_QFileDialog::changeEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::changeEvent(e); +} +void PythonQtShell_QFileDialog::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::childEvent(arg__1); +} +void PythonQtShell_QFileDialog::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::closeEvent(arg__1); +} +void PythonQtShell_QFileDialog::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::contextMenuEvent(arg__1); +} +void PythonQtShell_QFileDialog::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::customEvent(arg__1); +} +int PythonQtShell_QFileDialog::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileDialog::devType(); +} +void PythonQtShell_QFileDialog::done(int result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::done(result); +} +void PythonQtShell_QFileDialog::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::dragEnterEvent(arg__1); +} +void PythonQtShell_QFileDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::dragLeaveEvent(arg__1); +} +void PythonQtShell_QFileDialog::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::dragMoveEvent(arg__1); +} +void PythonQtShell_QFileDialog::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::dropEvent(arg__1); +} +void PythonQtShell_QFileDialog::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::enterEvent(arg__1); +} +bool PythonQtShell_QFileDialog::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileDialog::event(arg__1); +} +bool PythonQtShell_QFileDialog::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileDialog::eventFilter(arg__1, arg__2); +} +int PythonQtShell_QFileDialog::exec() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileDialog::exec(); +} +void PythonQtShell_QFileDialog::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::focusInEvent(arg__1); +} +bool PythonQtShell_QFileDialog::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileDialog::focusNextPrevChild(next); +} +void PythonQtShell_QFileDialog::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::focusOutEvent(arg__1); +} +bool PythonQtShell_QFileDialog::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileDialog::hasHeightForWidth(); +} +int PythonQtShell_QFileDialog::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileDialog::heightForWidth(arg__1); +} +void PythonQtShell_QFileDialog::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::hideEvent(arg__1); +} +void PythonQtShell_QFileDialog::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::initPainter(painter); +} +void PythonQtShell_QFileDialog::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QFileDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileDialog::inputMethodQuery(arg__1); +} +void PythonQtShell_QFileDialog::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::keyPressEvent(arg__1); +} +void PythonQtShell_QFileDialog::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::keyReleaseEvent(arg__1); +} +void PythonQtShell_QFileDialog::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::leaveEvent(arg__1); +} +int PythonQtShell_QFileDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileDialog::metric(arg__1); +} +void PythonQtShell_QFileDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QFileDialog::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::mouseMoveEvent(arg__1); +} +void PythonQtShell_QFileDialog::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::mousePressEvent(arg__1); +} +void PythonQtShell_QFileDialog::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QFileDialog::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::moveEvent(arg__1); +} +bool PythonQtShell_QFileDialog::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileDialog::nativeEvent(eventType, message, result); +} +void PythonQtShell_QFileDialog::open() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::open(); +} +QPaintEngine* PythonQtShell_QFileDialog::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileDialog::paintEngine(); +} +void PythonQtShell_QFileDialog::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QFileDialog::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileDialog::redirected(offset); +} +void PythonQtShell_QFileDialog::reject() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::reject(); +} +void PythonQtShell_QFileDialog::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QFileDialog::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileDialog::sharedPainter(); +} +void PythonQtShell_QFileDialog::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::showEvent(arg__1); +} +void PythonQtShell_QFileDialog::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::tabletEvent(arg__1); +} +void PythonQtShell_QFileDialog::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::timerEvent(arg__1); +} +void PythonQtShell_QFileDialog::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFileDialog::wheelEvent(arg__1); +} +QFileDialog* PythonQtWrapper_QFileDialog::new_QFileDialog(QWidget* parent, Qt::WindowFlags f) +{ +return new PythonQtShell_QFileDialog(parent, f); } + +QFileDialog* PythonQtWrapper_QFileDialog::new_QFileDialog(QWidget* parent, const QString& caption, const QString& directory, const QString& filter) +{ +return new PythonQtShell_QFileDialog(parent, caption, directory, filter); } + +void PythonQtWrapper_QFileDialog::accept(QFileDialog* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QFileDialog*)theWrappedObject)->promoted_accept()); +} + +QFileDialog::AcceptMode PythonQtWrapper_QFileDialog::acceptMode(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->acceptMode()); +} + +void PythonQtWrapper_QFileDialog::changeEvent(QFileDialog* theWrappedObject, QEvent* e) +{ + ( ((PythonQtPublicPromoter_QFileDialog*)theWrappedObject)->promoted_changeEvent(e)); +} + +bool PythonQtWrapper_QFileDialog::confirmOverwrite(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->confirmOverwrite()); +} + +QString PythonQtWrapper_QFileDialog::defaultSuffix(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->defaultSuffix()); +} + +QDir PythonQtWrapper_QFileDialog::directory(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->directory()); +} + +void PythonQtWrapper_QFileDialog::done(QFileDialog* theWrappedObject, int result) +{ + ( ((PythonQtPublicPromoter_QFileDialog*)theWrappedObject)->promoted_done(result)); +} + +QFileDialog::FileMode PythonQtWrapper_QFileDialog::fileMode(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->fileMode()); +} + +QDir::Filters PythonQtWrapper_QFileDialog::filter(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->filter()); +} + +QString PythonQtWrapper_QFileDialog::static_QFileDialog_getExistingDirectory(QWidget* parent, const QString& caption, const QString& dir, QFileDialog::Options options) +{ + return (QFileDialog::getExistingDirectory(parent, caption, dir, options)); +} + +QString PythonQtWrapper_QFileDialog::static_QFileDialog_getOpenFileName(QWidget* parent, const QString& caption, const QString& dir, const QString& filter, QString* selectedFilter, QFileDialog::Options options) +{ + return (QFileDialog::getOpenFileName(parent, caption, dir, filter, selectedFilter, options)); +} + +QStringList PythonQtWrapper_QFileDialog::static_QFileDialog_getOpenFileNames(QWidget* parent, const QString& caption, const QString& dir, const QString& filter, QString* selectedFilter, QFileDialog::Options options) +{ + return (QFileDialog::getOpenFileNames(parent, caption, dir, filter, selectedFilter, options)); +} + +QString PythonQtWrapper_QFileDialog::static_QFileDialog_getSaveFileName(QWidget* parent, const QString& caption, const QString& dir, const QString& filter, QString* selectedFilter, QFileDialog::Options options) +{ + return (QFileDialog::getSaveFileName(parent, caption, dir, filter, selectedFilter, options)); +} + +QStringList PythonQtWrapper_QFileDialog::history(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->history()); +} + +QFileIconProvider* PythonQtWrapper_QFileDialog::iconProvider(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->iconProvider()); +} + +bool PythonQtWrapper_QFileDialog::isNameFilterDetailsVisible(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->isNameFilterDetailsVisible()); +} + +bool PythonQtWrapper_QFileDialog::isReadOnly(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->isReadOnly()); +} + +QAbstractItemDelegate* PythonQtWrapper_QFileDialog::itemDelegate(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->itemDelegate()); +} + +QString PythonQtWrapper_QFileDialog::labelText(QFileDialog* theWrappedObject, QFileDialog::DialogLabel label) const +{ + return ( theWrappedObject->labelText(label)); +} + +QStringList PythonQtWrapper_QFileDialog::nameFilters(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->nameFilters()); +} + +void PythonQtWrapper_QFileDialog::open(QFileDialog* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QFileDialog*)theWrappedObject)->promoted_open()); +} + +void PythonQtWrapper_QFileDialog::open(QFileDialog* theWrappedObject, QObject* receiver, const char* member) +{ + ( theWrappedObject->open(receiver, member)); +} + +QFileDialog::Options PythonQtWrapper_QFileDialog::options(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->options()); +} + +QAbstractProxyModel* PythonQtWrapper_QFileDialog::proxyModel(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->proxyModel()); +} + +bool PythonQtWrapper_QFileDialog::resolveSymlinks(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->resolveSymlinks()); +} + +bool PythonQtWrapper_QFileDialog::restoreState(QFileDialog* theWrappedObject, const QByteArray& state) +{ + return ( theWrappedObject->restoreState(state)); +} + +QByteArray PythonQtWrapper_QFileDialog::saveState(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->saveState()); +} + +void PythonQtWrapper_QFileDialog::selectFile(QFileDialog* theWrappedObject, const QString& filename) +{ + ( theWrappedObject->selectFile(filename)); +} + +void PythonQtWrapper_QFileDialog::selectNameFilter(QFileDialog* theWrappedObject, const QString& filter) +{ + ( theWrappedObject->selectNameFilter(filter)); +} + +QStringList PythonQtWrapper_QFileDialog::selectedFiles(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->selectedFiles()); +} + +QString PythonQtWrapper_QFileDialog::selectedNameFilter(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->selectedNameFilter()); +} + +void PythonQtWrapper_QFileDialog::setAcceptMode(QFileDialog* theWrappedObject, QFileDialog::AcceptMode mode) +{ + ( theWrappedObject->setAcceptMode(mode)); +} + +void PythonQtWrapper_QFileDialog::setConfirmOverwrite(QFileDialog* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setConfirmOverwrite(enabled)); +} + +void PythonQtWrapper_QFileDialog::setDefaultSuffix(QFileDialog* theWrappedObject, const QString& suffix) +{ + ( theWrappedObject->setDefaultSuffix(suffix)); +} + +void PythonQtWrapper_QFileDialog::setDirectory(QFileDialog* theWrappedObject, const QDir& directory) +{ + ( theWrappedObject->setDirectory(directory)); +} + +void PythonQtWrapper_QFileDialog::setDirectory(QFileDialog* theWrappedObject, const QString& directory) +{ + ( theWrappedObject->setDirectory(directory)); +} + +void PythonQtWrapper_QFileDialog::setFileMode(QFileDialog* theWrappedObject, QFileDialog::FileMode mode) +{ + ( theWrappedObject->setFileMode(mode)); +} + +void PythonQtWrapper_QFileDialog::setFilter(QFileDialog* theWrappedObject, QDir::Filters filters) +{ + ( theWrappedObject->setFilter(filters)); +} + +void PythonQtWrapper_QFileDialog::setHistory(QFileDialog* theWrappedObject, const QStringList& paths) +{ + ( theWrappedObject->setHistory(paths)); +} + +void PythonQtWrapper_QFileDialog::setIconProvider(QFileDialog* theWrappedObject, QFileIconProvider* provider) +{ + ( theWrappedObject->setIconProvider(provider)); +} + +void PythonQtWrapper_QFileDialog::setItemDelegate(QFileDialog* theWrappedObject, QAbstractItemDelegate* delegate) +{ + ( theWrappedObject->setItemDelegate(delegate)); +} + +void PythonQtWrapper_QFileDialog::setLabelText(QFileDialog* theWrappedObject, QFileDialog::DialogLabel label, const QString& text) +{ + ( theWrappedObject->setLabelText(label, text)); +} + +void PythonQtWrapper_QFileDialog::setNameFilter(QFileDialog* theWrappedObject, const QString& filter) +{ + ( theWrappedObject->setNameFilter(filter)); +} + +void PythonQtWrapper_QFileDialog::setNameFilterDetailsVisible(QFileDialog* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setNameFilterDetailsVisible(enabled)); +} + +void PythonQtWrapper_QFileDialog::setNameFilters(QFileDialog* theWrappedObject, const QStringList& filters) +{ + ( theWrappedObject->setNameFilters(filters)); +} + +void PythonQtWrapper_QFileDialog::setOption(QFileDialog* theWrappedObject, QFileDialog::Option option, bool on) +{ + ( theWrappedObject->setOption(option, on)); +} + +void PythonQtWrapper_QFileDialog::setOptions(QFileDialog* theWrappedObject, QFileDialog::Options options) +{ + ( theWrappedObject->setOptions(options)); +} + +void PythonQtWrapper_QFileDialog::setProxyModel(QFileDialog* theWrappedObject, QAbstractProxyModel* model) +{ + ( theWrappedObject->setProxyModel(model)); +} + +void PythonQtWrapper_QFileDialog::setReadOnly(QFileDialog* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setReadOnly(enabled)); +} + +void PythonQtWrapper_QFileDialog::setResolveSymlinks(QFileDialog* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setResolveSymlinks(enabled)); +} + +void PythonQtWrapper_QFileDialog::setSidebarUrls(QFileDialog* theWrappedObject, const QList& urls) +{ + ( theWrappedObject->setSidebarUrls(urls)); +} + +void PythonQtWrapper_QFileDialog::setViewMode(QFileDialog* theWrappedObject, QFileDialog::ViewMode mode) +{ + ( theWrappedObject->setViewMode(mode)); +} + +void PythonQtWrapper_QFileDialog::setVisible(QFileDialog* theWrappedObject, bool visible) +{ + ( theWrappedObject->setVisible(visible)); +} + +QList PythonQtWrapper_QFileDialog::sidebarUrls(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->sidebarUrls()); +} + +bool PythonQtWrapper_QFileDialog::testOption(QFileDialog* theWrappedObject, QFileDialog::Option option) const +{ + return ( theWrappedObject->testOption(option)); +} + +QFileDialog::ViewMode PythonQtWrapper_QFileDialog::viewMode(QFileDialog* theWrappedObject) const +{ + return ( theWrappedObject->viewMode()); +} + + + +PythonQtShell_QFileIconProvider::~PythonQtShell_QFileIconProvider() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QIcon PythonQtShell_QFileIconProvider::icon(QFileIconProvider::IconType type) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "icon"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QIcon" , "QFileIconProvider::IconType"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QIcon returnValue; + void* args[2] = {NULL, (void*)&type}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("icon", methodInfo, result); + } else { + returnValue = *((QIcon*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileIconProvider::icon(type); +} +QIcon PythonQtShell_QFileIconProvider::icon(const QFileInfo& info) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "icon"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QIcon" , "const QFileInfo&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QIcon returnValue; + void* args[2] = {NULL, (void*)&info}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("icon", methodInfo, result); + } else { + returnValue = *((QIcon*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileIconProvider::icon(info); +} +QString PythonQtShell_QFileIconProvider::type(const QFileInfo& info) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "const QFileInfo&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QString returnValue; + void* args[2] = {NULL, (void*)&info}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFileIconProvider::type(info); +} +QFileIconProvider* PythonQtWrapper_QFileIconProvider::new_QFileIconProvider() +{ +return new PythonQtShell_QFileIconProvider(); } + +QIcon PythonQtWrapper_QFileIconProvider::icon(QFileIconProvider* theWrappedObject, QFileIconProvider::IconType type) const +{ + return ( ((PythonQtPublicPromoter_QFileIconProvider*)theWrappedObject)->promoted_icon(type)); +} + +QIcon PythonQtWrapper_QFileIconProvider::icon(QFileIconProvider* theWrappedObject, const QFileInfo& info) const +{ + return ( ((PythonQtPublicPromoter_QFileIconProvider*)theWrappedObject)->promoted_icon(info)); +} + +QString PythonQtWrapper_QFileIconProvider::type(QFileIconProvider* theWrappedObject, const QFileInfo& info) const +{ + return ( ((PythonQtPublicPromoter_QFileIconProvider*)theWrappedObject)->promoted_type(info)); +} + +#endif + +QFileOpenEvent* PythonQtWrapper_QFileOpenEvent::new_QFileOpenEvent(const QString& file) +{ +return new QFileOpenEvent(file); } + +QFileOpenEvent* PythonQtWrapper_QFileOpenEvent::new_QFileOpenEvent(const QUrl& url) +{ +return new QFileOpenEvent(url); } + +QString PythonQtWrapper_QFileOpenEvent::file(QFileOpenEvent* theWrappedObject) const +{ + return ( theWrappedObject->file()); +} + +QUrl PythonQtWrapper_QFileOpenEvent::url(QFileOpenEvent* theWrappedObject) const +{ + return ( theWrappedObject->url()); +} + + + +QFocusEvent* PythonQtWrapper_QFocusEvent::new_QFocusEvent(QEvent::Type type, Qt::FocusReason reason) +{ +return new QFocusEvent(type, reason); } + +bool PythonQtWrapper_QFocusEvent::gotFocus(QFocusEvent* theWrappedObject) const +{ + return ( theWrappedObject->gotFocus()); +} + +bool PythonQtWrapper_QFocusEvent::lostFocus(QFocusEvent* theWrappedObject) const +{ + return ( theWrappedObject->lostFocus()); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QFocusFrame::~PythonQtShell_QFocusFrame() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QFocusFrame::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::actionEvent(arg__1); +} +void PythonQtShell_QFocusFrame::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::changeEvent(arg__1); +} +void PythonQtShell_QFocusFrame::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::childEvent(arg__1); +} +void PythonQtShell_QFocusFrame::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::closeEvent(arg__1); +} +void PythonQtShell_QFocusFrame::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::contextMenuEvent(arg__1); +} +void PythonQtShell_QFocusFrame::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::customEvent(arg__1); +} +int PythonQtShell_QFocusFrame::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFocusFrame::devType(); +} +void PythonQtShell_QFocusFrame::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::dragEnterEvent(arg__1); +} +void PythonQtShell_QFocusFrame::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::dragLeaveEvent(arg__1); +} +void PythonQtShell_QFocusFrame::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::dragMoveEvent(arg__1); +} +void PythonQtShell_QFocusFrame::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::dropEvent(arg__1); +} +void PythonQtShell_QFocusFrame::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::enterEvent(arg__1); +} +bool PythonQtShell_QFocusFrame::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFocusFrame::event(e); +} +bool PythonQtShell_QFocusFrame::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFocusFrame::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QFocusFrame::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::focusInEvent(arg__1); +} +bool PythonQtShell_QFocusFrame::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFocusFrame::focusNextPrevChild(next); +} +void PythonQtShell_QFocusFrame::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::focusOutEvent(arg__1); +} +bool PythonQtShell_QFocusFrame::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFocusFrame::hasHeightForWidth(); +} +int PythonQtShell_QFocusFrame::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFocusFrame::heightForWidth(arg__1); +} +void PythonQtShell_QFocusFrame::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::hideEvent(arg__1); +} +void PythonQtShell_QFocusFrame::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::initPainter(painter); +} +void PythonQtShell_QFocusFrame::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QFocusFrame::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFocusFrame::inputMethodQuery(arg__1); +} +void PythonQtShell_QFocusFrame::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::keyPressEvent(arg__1); +} +void PythonQtShell_QFocusFrame::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::keyReleaseEvent(arg__1); +} +void PythonQtShell_QFocusFrame::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::leaveEvent(arg__1); +} +int PythonQtShell_QFocusFrame::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFocusFrame::metric(arg__1); +} +QSize PythonQtShell_QFocusFrame::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFocusFrame::minimumSizeHint(); +} +void PythonQtShell_QFocusFrame::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QFocusFrame::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::mouseMoveEvent(arg__1); +} +void PythonQtShell_QFocusFrame::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::mousePressEvent(arg__1); +} +void PythonQtShell_QFocusFrame::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QFocusFrame::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::moveEvent(arg__1); +} +bool PythonQtShell_QFocusFrame::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFocusFrame::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QFocusFrame::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFocusFrame::paintEngine(); +} +void PythonQtShell_QFocusFrame::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QFocusFrame::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFocusFrame::redirected(offset); +} +void PythonQtShell_QFocusFrame::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QFocusFrame::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFocusFrame::sharedPainter(); +} +void PythonQtShell_QFocusFrame::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::showEvent(arg__1); +} +QSize PythonQtShell_QFocusFrame::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFocusFrame::sizeHint(); +} +void PythonQtShell_QFocusFrame::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::tabletEvent(arg__1); +} +void PythonQtShell_QFocusFrame::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::timerEvent(arg__1); +} +void PythonQtShell_QFocusFrame::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFocusFrame::wheelEvent(arg__1); +} +QFocusFrame* PythonQtWrapper_QFocusFrame::new_QFocusFrame(QWidget* parent) +{ +return new PythonQtShell_QFocusFrame(parent); } + +bool PythonQtWrapper_QFocusFrame::event(QFocusFrame* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QFocusFrame*)theWrappedObject)->promoted_event(e)); +} + +bool PythonQtWrapper_QFocusFrame::eventFilter(QFocusFrame* theWrappedObject, QObject* arg__1, QEvent* arg__2) +{ + return ( ((PythonQtPublicPromoter_QFocusFrame*)theWrappedObject)->promoted_eventFilter(arg__1, arg__2)); +} + +void PythonQtWrapper_QFocusFrame::paintEvent(QFocusFrame* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QFocusFrame*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +void PythonQtWrapper_QFocusFrame::setWidget(QFocusFrame* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->setWidget(widget)); +} + +QWidget* PythonQtWrapper_QFocusFrame::widget(QFocusFrame* theWrappedObject) const +{ + return ( theWrappedObject->widget()); +} + + + +PythonQtShell_QFontComboBox::~PythonQtShell_QFontComboBox() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QFontComboBox::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::actionEvent(arg__1); +} +void PythonQtShell_QFontComboBox::changeEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::changeEvent(e); +} +void PythonQtShell_QFontComboBox::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::childEvent(arg__1); +} +void PythonQtShell_QFontComboBox::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::closeEvent(arg__1); +} +void PythonQtShell_QFontComboBox::contextMenuEvent(QContextMenuEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::contextMenuEvent(e); +} +void PythonQtShell_QFontComboBox::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::customEvent(arg__1); +} +int PythonQtShell_QFontComboBox::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontComboBox::devType(); +} +void PythonQtShell_QFontComboBox::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::dragEnterEvent(arg__1); +} +void PythonQtShell_QFontComboBox::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::dragLeaveEvent(arg__1); +} +void PythonQtShell_QFontComboBox::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::dragMoveEvent(arg__1); +} +void PythonQtShell_QFontComboBox::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::dropEvent(arg__1); +} +void PythonQtShell_QFontComboBox::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::enterEvent(arg__1); +} +bool PythonQtShell_QFontComboBox::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontComboBox::event(e); +} +bool PythonQtShell_QFontComboBox::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontComboBox::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QFontComboBox::focusInEvent(QFocusEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::focusInEvent(e); +} +bool PythonQtShell_QFontComboBox::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontComboBox::focusNextPrevChild(next); +} +void PythonQtShell_QFontComboBox::focusOutEvent(QFocusEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::focusOutEvent(e); +} +bool PythonQtShell_QFontComboBox::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontComboBox::hasHeightForWidth(); +} +int PythonQtShell_QFontComboBox::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontComboBox::heightForWidth(arg__1); +} +void PythonQtShell_QFontComboBox::hideEvent(QHideEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::hideEvent(e); +} +void PythonQtShell_QFontComboBox::hidePopup() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hidePopup"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::hidePopup(); +} +void PythonQtShell_QFontComboBox::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::initPainter(painter); +} +void PythonQtShell_QFontComboBox::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QFontComboBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontComboBox::inputMethodQuery(arg__1); +} +void PythonQtShell_QFontComboBox::keyPressEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::keyPressEvent(e); +} +void PythonQtShell_QFontComboBox::keyReleaseEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::keyReleaseEvent(e); +} +void PythonQtShell_QFontComboBox::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::leaveEvent(arg__1); +} +int PythonQtShell_QFontComboBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontComboBox::metric(arg__1); +} +void PythonQtShell_QFontComboBox::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QFontComboBox::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::mouseMoveEvent(arg__1); +} +void PythonQtShell_QFontComboBox::mousePressEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::mousePressEvent(e); +} +void PythonQtShell_QFontComboBox::mouseReleaseEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::mouseReleaseEvent(e); +} +void PythonQtShell_QFontComboBox::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::moveEvent(arg__1); +} +bool PythonQtShell_QFontComboBox::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontComboBox::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QFontComboBox::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontComboBox::paintEngine(); +} +void PythonQtShell_QFontComboBox::paintEvent(QPaintEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::paintEvent(e); +} +QPaintDevice* PythonQtShell_QFontComboBox::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontComboBox::redirected(offset); +} +void PythonQtShell_QFontComboBox::resizeEvent(QResizeEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::resizeEvent(e); +} +QPainter* PythonQtShell_QFontComboBox::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontComboBox::sharedPainter(); +} +void PythonQtShell_QFontComboBox::showEvent(QShowEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::showEvent(e); +} +void PythonQtShell_QFontComboBox::showPopup() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showPopup"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::showPopup(); +} +void PythonQtShell_QFontComboBox::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::tabletEvent(arg__1); +} +void PythonQtShell_QFontComboBox::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::timerEvent(arg__1); +} +void PythonQtShell_QFontComboBox::wheelEvent(QWheelEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontComboBox::wheelEvent(e); +} +QFontComboBox* PythonQtWrapper_QFontComboBox::new_QFontComboBox(QWidget* parent) +{ +return new PythonQtShell_QFontComboBox(parent); } + +QFont PythonQtWrapper_QFontComboBox::currentFont(QFontComboBox* theWrappedObject) const +{ + return ( theWrappedObject->currentFont()); +} + +bool PythonQtWrapper_QFontComboBox::event(QFontComboBox* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QFontComboBox*)theWrappedObject)->promoted_event(e)); +} + +QFontComboBox::FontFilters PythonQtWrapper_QFontComboBox::fontFilters(QFontComboBox* theWrappedObject) const +{ + return ( theWrappedObject->fontFilters()); +} + +void PythonQtWrapper_QFontComboBox::setFontFilters(QFontComboBox* theWrappedObject, QFontComboBox::FontFilters filters) +{ + ( theWrappedObject->setFontFilters(filters)); +} + +void PythonQtWrapper_QFontComboBox::setWritingSystem(QFontComboBox* theWrappedObject, QFontDatabase::WritingSystem arg__1) +{ + ( theWrappedObject->setWritingSystem(arg__1)); +} + +QSize PythonQtWrapper_QFontComboBox::sizeHint(QFontComboBox* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +QFontDatabase::WritingSystem PythonQtWrapper_QFontComboBox::writingSystem(QFontComboBox* theWrappedObject) const +{ + return ( theWrappedObject->writingSystem()); +} + + + +PythonQtShell_QFontDialog::~PythonQtShell_QFontDialog() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QFontDialog::accept() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::accept(); +} +void PythonQtShell_QFontDialog::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::actionEvent(arg__1); +} +void PythonQtShell_QFontDialog::changeEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::changeEvent(event); +} +void PythonQtShell_QFontDialog::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::childEvent(arg__1); +} +void PythonQtShell_QFontDialog::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::closeEvent(arg__1); +} +void PythonQtShell_QFontDialog::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::contextMenuEvent(arg__1); +} +void PythonQtShell_QFontDialog::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::customEvent(arg__1); +} +int PythonQtShell_QFontDialog::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontDialog::devType(); +} +void PythonQtShell_QFontDialog::done(int result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::done(result); +} +void PythonQtShell_QFontDialog::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::dragEnterEvent(arg__1); +} +void PythonQtShell_QFontDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::dragLeaveEvent(arg__1); +} +void PythonQtShell_QFontDialog::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::dragMoveEvent(arg__1); +} +void PythonQtShell_QFontDialog::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::dropEvent(arg__1); +} +void PythonQtShell_QFontDialog::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::enterEvent(arg__1); +} +bool PythonQtShell_QFontDialog::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontDialog::event(arg__1); +} +bool PythonQtShell_QFontDialog::eventFilter(QObject* object, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&object, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontDialog::eventFilter(object, event); +} +int PythonQtShell_QFontDialog::exec() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontDialog::exec(); +} +void PythonQtShell_QFontDialog::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::focusInEvent(arg__1); +} +bool PythonQtShell_QFontDialog::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontDialog::focusNextPrevChild(next); +} +void PythonQtShell_QFontDialog::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::focusOutEvent(arg__1); +} +bool PythonQtShell_QFontDialog::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontDialog::hasHeightForWidth(); +} +int PythonQtShell_QFontDialog::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontDialog::heightForWidth(arg__1); +} +void PythonQtShell_QFontDialog::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::hideEvent(arg__1); +} +void PythonQtShell_QFontDialog::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::initPainter(painter); +} +void PythonQtShell_QFontDialog::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QFontDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontDialog::inputMethodQuery(arg__1); +} +void PythonQtShell_QFontDialog::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::keyPressEvent(arg__1); +} +void PythonQtShell_QFontDialog::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::keyReleaseEvent(arg__1); +} +void PythonQtShell_QFontDialog::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::leaveEvent(arg__1); +} +int PythonQtShell_QFontDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontDialog::metric(arg__1); +} +void PythonQtShell_QFontDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QFontDialog::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::mouseMoveEvent(arg__1); +} +void PythonQtShell_QFontDialog::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::mousePressEvent(arg__1); +} +void PythonQtShell_QFontDialog::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QFontDialog::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::moveEvent(arg__1); +} +bool PythonQtShell_QFontDialog::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontDialog::nativeEvent(eventType, message, result); +} +void PythonQtShell_QFontDialog::open() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::open(); +} +QPaintEngine* PythonQtShell_QFontDialog::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontDialog::paintEngine(); +} +void PythonQtShell_QFontDialog::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QFontDialog::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontDialog::redirected(offset); +} +void PythonQtShell_QFontDialog::reject() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::reject(); +} +void PythonQtShell_QFontDialog::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QFontDialog::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFontDialog::sharedPainter(); +} +void PythonQtShell_QFontDialog::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::showEvent(arg__1); +} +void PythonQtShell_QFontDialog::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::tabletEvent(arg__1); +} +void PythonQtShell_QFontDialog::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::timerEvent(arg__1); +} +void PythonQtShell_QFontDialog::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFontDialog::wheelEvent(arg__1); +} +QFontDialog* PythonQtWrapper_QFontDialog::new_QFontDialog(QWidget* parent) +{ +return new PythonQtShell_QFontDialog(parent); } + +QFontDialog* PythonQtWrapper_QFontDialog::new_QFontDialog(const QFont& initial, QWidget* parent) +{ +return new PythonQtShell_QFontDialog(initial, parent); } + +void PythonQtWrapper_QFontDialog::changeEvent(QFontDialog* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QFontDialog*)theWrappedObject)->promoted_changeEvent(event)); +} + +QFont PythonQtWrapper_QFontDialog::currentFont(QFontDialog* theWrappedObject) const +{ + return ( theWrappedObject->currentFont()); +} + +void PythonQtWrapper_QFontDialog::done(QFontDialog* theWrappedObject, int result) +{ + ( ((PythonQtPublicPromoter_QFontDialog*)theWrappedObject)->promoted_done(result)); +} + +bool PythonQtWrapper_QFontDialog::eventFilter(QFontDialog* theWrappedObject, QObject* object, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QFontDialog*)theWrappedObject)->promoted_eventFilter(object, event)); +} + +QFont PythonQtWrapper_QFontDialog::static_QFontDialog_getFont(bool* ok, QWidget* parent) +{ + return (QFontDialog::getFont(ok, parent)); +} + +QFont PythonQtWrapper_QFontDialog::static_QFontDialog_getFont(bool* ok, const QFont& initial, QWidget* parent, const QString& title, QFontDialog::FontDialogOptions options) +{ + return (QFontDialog::getFont(ok, initial, parent, title, options)); +} + +void PythonQtWrapper_QFontDialog::open(QFontDialog* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QFontDialog*)theWrappedObject)->promoted_open()); +} + +void PythonQtWrapper_QFontDialog::open(QFontDialog* theWrappedObject, QObject* receiver, const char* member) +{ + ( theWrappedObject->open(receiver, member)); +} + +QFontDialog::FontDialogOptions PythonQtWrapper_QFontDialog::options(QFontDialog* theWrappedObject) const +{ + return ( theWrappedObject->options()); +} + +QFont PythonQtWrapper_QFontDialog::selectedFont(QFontDialog* theWrappedObject) const +{ + return ( theWrappedObject->selectedFont()); +} + +void PythonQtWrapper_QFontDialog::setCurrentFont(QFontDialog* theWrappedObject, const QFont& font) +{ + ( theWrappedObject->setCurrentFont(font)); +} + +void PythonQtWrapper_QFontDialog::setOption(QFontDialog* theWrappedObject, QFontDialog::FontDialogOption option, bool on) +{ + ( theWrappedObject->setOption(option, on)); +} + +void PythonQtWrapper_QFontDialog::setOptions(QFontDialog* theWrappedObject, QFontDialog::FontDialogOptions options) +{ + ( theWrappedObject->setOptions(options)); +} + +void PythonQtWrapper_QFontDialog::setVisible(QFontDialog* theWrappedObject, bool visible) +{ + ( theWrappedObject->setVisible(visible)); +} + +bool PythonQtWrapper_QFontDialog::testOption(QFontDialog* theWrappedObject, QFontDialog::FontDialogOption option) const +{ + return ( theWrappedObject->testOption(option)); +} + +#endif + +QFontInfo* PythonQtWrapper_QFontInfo::new_QFontInfo(const QFont& arg__1) +{ +return new QFontInfo(arg__1); } + +QFontInfo* PythonQtWrapper_QFontInfo::new_QFontInfo(const QFontInfo& arg__1) +{ +return new QFontInfo(arg__1); } + +bool PythonQtWrapper_QFontInfo::bold(QFontInfo* theWrappedObject) const +{ + return ( theWrappedObject->bold()); +} + +bool PythonQtWrapper_QFontInfo::exactMatch(QFontInfo* theWrappedObject) const +{ + return ( theWrappedObject->exactMatch()); +} + +QString PythonQtWrapper_QFontInfo::family(QFontInfo* theWrappedObject) const +{ + return ( theWrappedObject->family()); +} + +bool PythonQtWrapper_QFontInfo::fixedPitch(QFontInfo* theWrappedObject) const +{ + return ( theWrappedObject->fixedPitch()); +} + +bool PythonQtWrapper_QFontInfo::italic(QFontInfo* theWrappedObject) const +{ + return ( theWrappedObject->italic()); +} + +bool PythonQtWrapper_QFontInfo::overline(QFontInfo* theWrappedObject) const +{ + return ( theWrappedObject->overline()); +} + +int PythonQtWrapper_QFontInfo::pixelSize(QFontInfo* theWrappedObject) const +{ + return ( theWrappedObject->pixelSize()); +} + +int PythonQtWrapper_QFontInfo::pointSize(QFontInfo* theWrappedObject) const +{ + return ( theWrappedObject->pointSize()); +} + +qreal PythonQtWrapper_QFontInfo::pointSizeF(QFontInfo* theWrappedObject) const +{ + return ( theWrappedObject->pointSizeF()); +} + +bool PythonQtWrapper_QFontInfo::rawMode(QFontInfo* theWrappedObject) const +{ + return ( theWrappedObject->rawMode()); +} + +bool PythonQtWrapper_QFontInfo::strikeOut(QFontInfo* theWrappedObject) const +{ + return ( theWrappedObject->strikeOut()); +} + +QFont::Style PythonQtWrapper_QFontInfo::style(QFontInfo* theWrappedObject) const +{ + return ( theWrappedObject->style()); +} + +QFont::StyleHint PythonQtWrapper_QFontInfo::styleHint(QFontInfo* theWrappedObject) const +{ + return ( theWrappedObject->styleHint()); +} + +QString PythonQtWrapper_QFontInfo::styleName(QFontInfo* theWrappedObject) const +{ + return ( theWrappedObject->styleName()); +} + +void PythonQtWrapper_QFontInfo::swap(QFontInfo* theWrappedObject, QFontInfo& other) +{ + ( theWrappedObject->swap(other)); +} + +bool PythonQtWrapper_QFontInfo::underline(QFontInfo* theWrappedObject) const +{ + return ( theWrappedObject->underline()); +} + +int PythonQtWrapper_QFontInfo::weight(QFontInfo* theWrappedObject) const +{ + return ( theWrappedObject->weight()); +} + + + +QFontMetrics* PythonQtWrapper_QFontMetrics::new_QFontMetrics(const QFont& arg__1) +{ +return new QFontMetrics(arg__1); } + +QFontMetrics* PythonQtWrapper_QFontMetrics::new_QFontMetrics(const QFont& arg__1, QPaintDevice* pd) +{ +return new QFontMetrics(arg__1, pd); } + +int PythonQtWrapper_QFontMetrics::ascent(QFontMetrics* theWrappedObject) const +{ + return ( theWrappedObject->ascent()); +} + +int PythonQtWrapper_QFontMetrics::averageCharWidth(QFontMetrics* theWrappedObject) const +{ + return ( theWrappedObject->averageCharWidth()); +} + +QRect PythonQtWrapper_QFontMetrics::boundingRect(QFontMetrics* theWrappedObject, QChar arg__1) const +{ + return ( theWrappedObject->boundingRect(arg__1)); +} + +QRect PythonQtWrapper_QFontMetrics::boundingRect(QFontMetrics* theWrappedObject, const QRect& r, int flags, const QString& text, int tabstops, int* tabarray) const +{ + return ( theWrappedObject->boundingRect(r, flags, text, tabstops, tabarray)); +} + +QRect PythonQtWrapper_QFontMetrics::boundingRect(QFontMetrics* theWrappedObject, const QString& text) const +{ + return ( theWrappedObject->boundingRect(text)); +} + +QRect PythonQtWrapper_QFontMetrics::boundingRect(QFontMetrics* theWrappedObject, int x, int y, int w, int h, int flags, const QString& text, int tabstops, int* tabarray) const +{ + return ( theWrappedObject->boundingRect(x, y, w, h, flags, text, tabstops, tabarray)); +} + +int PythonQtWrapper_QFontMetrics::charWidth(QFontMetrics* theWrappedObject, const QString& str, int pos) const +{ + return ( theWrappedObject->charWidth(str, pos)); +} + +int PythonQtWrapper_QFontMetrics::descent(QFontMetrics* theWrappedObject) const +{ + return ( theWrappedObject->descent()); +} + +QString PythonQtWrapper_QFontMetrics::elidedText(QFontMetrics* theWrappedObject, const QString& text, Qt::TextElideMode mode, int width, int flags) const +{ + return ( theWrappedObject->elidedText(text, mode, width, flags)); +} + +int PythonQtWrapper_QFontMetrics::height(QFontMetrics* theWrappedObject) const +{ + return ( theWrappedObject->height()); +} + +bool PythonQtWrapper_QFontMetrics::inFont(QFontMetrics* theWrappedObject, QChar arg__1) const +{ + return ( theWrappedObject->inFont(arg__1)); +} + +bool PythonQtWrapper_QFontMetrics::inFontUcs4(QFontMetrics* theWrappedObject, uint ucs4) const +{ + return ( theWrappedObject->inFontUcs4(ucs4)); +} + +int PythonQtWrapper_QFontMetrics::leading(QFontMetrics* theWrappedObject) const +{ + return ( theWrappedObject->leading()); +} + +int PythonQtWrapper_QFontMetrics::leftBearing(QFontMetrics* theWrappedObject, QChar arg__1) const +{ + return ( theWrappedObject->leftBearing(arg__1)); +} + +int PythonQtWrapper_QFontMetrics::lineSpacing(QFontMetrics* theWrappedObject) const +{ + return ( theWrappedObject->lineSpacing()); +} + +int PythonQtWrapper_QFontMetrics::lineWidth(QFontMetrics* theWrappedObject) const +{ + return ( theWrappedObject->lineWidth()); +} + +int PythonQtWrapper_QFontMetrics::maxWidth(QFontMetrics* theWrappedObject) const +{ + return ( theWrappedObject->maxWidth()); +} + +int PythonQtWrapper_QFontMetrics::minLeftBearing(QFontMetrics* theWrappedObject) const +{ + return ( theWrappedObject->minLeftBearing()); +} + +int PythonQtWrapper_QFontMetrics::minRightBearing(QFontMetrics* theWrappedObject) const +{ + return ( theWrappedObject->minRightBearing()); +} + +int PythonQtWrapper_QFontMetrics::overlinePos(QFontMetrics* theWrappedObject) const +{ + return ( theWrappedObject->overlinePos()); +} + +int PythonQtWrapper_QFontMetrics::rightBearing(QFontMetrics* theWrappedObject, QChar arg__1) const +{ + return ( theWrappedObject->rightBearing(arg__1)); +} + +QSize PythonQtWrapper_QFontMetrics::size(QFontMetrics* theWrappedObject, int flags, const QString& str, int tabstops, int* tabarray) const +{ + return ( theWrappedObject->size(flags, str, tabstops, tabarray)); +} + +int PythonQtWrapper_QFontMetrics::strikeOutPos(QFontMetrics* theWrappedObject) const +{ + return ( theWrappedObject->strikeOutPos()); +} + +void PythonQtWrapper_QFontMetrics::swap(QFontMetrics* theWrappedObject, QFontMetrics& other) +{ + ( theWrappedObject->swap(other)); +} + +QRect PythonQtWrapper_QFontMetrics::tightBoundingRect(QFontMetrics* theWrappedObject, const QString& text) const +{ + return ( theWrappedObject->tightBoundingRect(text)); +} + +int PythonQtWrapper_QFontMetrics::underlinePos(QFontMetrics* theWrappedObject) const +{ + return ( theWrappedObject->underlinePos()); +} + +int PythonQtWrapper_QFontMetrics::width(QFontMetrics* theWrappedObject, QChar arg__1) const +{ + return ( theWrappedObject->width(arg__1)); +} + +int PythonQtWrapper_QFontMetrics::width(QFontMetrics* theWrappedObject, const QString& arg__1, int len) const +{ + return ( theWrappedObject->width(arg__1, len)); +} + +int PythonQtWrapper_QFontMetrics::width(QFontMetrics* theWrappedObject, const QString& arg__1, int len, int flags) const +{ + return ( theWrappedObject->width(arg__1, len, flags)); +} + +int PythonQtWrapper_QFontMetrics::xHeight(QFontMetrics* theWrappedObject) const +{ + return ( theWrappedObject->xHeight()); +} + + + +QFontMetricsF* PythonQtWrapper_QFontMetricsF::new_QFontMetricsF(const QFont& arg__1) +{ +return new QFontMetricsF(arg__1); } + +QFontMetricsF* PythonQtWrapper_QFontMetricsF::new_QFontMetricsF(const QFont& arg__1, QPaintDevice* pd) +{ +return new QFontMetricsF(arg__1, pd); } + +qreal PythonQtWrapper_QFontMetricsF::ascent(QFontMetricsF* theWrappedObject) const +{ + return ( theWrappedObject->ascent()); +} + +qreal PythonQtWrapper_QFontMetricsF::averageCharWidth(QFontMetricsF* theWrappedObject) const +{ + return ( theWrappedObject->averageCharWidth()); +} + +QRectF PythonQtWrapper_QFontMetricsF::boundingRect(QFontMetricsF* theWrappedObject, QChar arg__1) const +{ + return ( theWrappedObject->boundingRect(arg__1)); +} + +QRectF PythonQtWrapper_QFontMetricsF::boundingRect(QFontMetricsF* theWrappedObject, const QRectF& r, int flags, const QString& string, int tabstops, int* tabarray) const +{ + return ( theWrappedObject->boundingRect(r, flags, string, tabstops, tabarray)); +} + +QRectF PythonQtWrapper_QFontMetricsF::boundingRect(QFontMetricsF* theWrappedObject, const QString& string) const +{ + return ( theWrappedObject->boundingRect(string)); +} + +qreal PythonQtWrapper_QFontMetricsF::descent(QFontMetricsF* theWrappedObject) const +{ + return ( theWrappedObject->descent()); +} + +QString PythonQtWrapper_QFontMetricsF::elidedText(QFontMetricsF* theWrappedObject, const QString& text, Qt::TextElideMode mode, qreal width, int flags) const +{ + return ( theWrappedObject->elidedText(text, mode, width, flags)); +} + +qreal PythonQtWrapper_QFontMetricsF::height(QFontMetricsF* theWrappedObject) const +{ + return ( theWrappedObject->height()); +} + +bool PythonQtWrapper_QFontMetricsF::inFont(QFontMetricsF* theWrappedObject, QChar arg__1) const +{ + return ( theWrappedObject->inFont(arg__1)); +} + +bool PythonQtWrapper_QFontMetricsF::inFontUcs4(QFontMetricsF* theWrappedObject, uint ucs4) const +{ + return ( theWrappedObject->inFontUcs4(ucs4)); +} + +qreal PythonQtWrapper_QFontMetricsF::leading(QFontMetricsF* theWrappedObject) const +{ + return ( theWrappedObject->leading()); +} + +qreal PythonQtWrapper_QFontMetricsF::leftBearing(QFontMetricsF* theWrappedObject, QChar arg__1) const +{ + return ( theWrappedObject->leftBearing(arg__1)); +} + +qreal PythonQtWrapper_QFontMetricsF::lineSpacing(QFontMetricsF* theWrappedObject) const +{ + return ( theWrappedObject->lineSpacing()); +} + +qreal PythonQtWrapper_QFontMetricsF::lineWidth(QFontMetricsF* theWrappedObject) const +{ + return ( theWrappedObject->lineWidth()); +} + +qreal PythonQtWrapper_QFontMetricsF::maxWidth(QFontMetricsF* theWrappedObject) const +{ + return ( theWrappedObject->maxWidth()); +} + +qreal PythonQtWrapper_QFontMetricsF::minLeftBearing(QFontMetricsF* theWrappedObject) const +{ + return ( theWrappedObject->minLeftBearing()); +} + +qreal PythonQtWrapper_QFontMetricsF::minRightBearing(QFontMetricsF* theWrappedObject) const +{ + return ( theWrappedObject->minRightBearing()); +} + +qreal PythonQtWrapper_QFontMetricsF::overlinePos(QFontMetricsF* theWrappedObject) const +{ + return ( theWrappedObject->overlinePos()); +} + +qreal PythonQtWrapper_QFontMetricsF::rightBearing(QFontMetricsF* theWrappedObject, QChar arg__1) const +{ + return ( theWrappedObject->rightBearing(arg__1)); +} + +QSizeF PythonQtWrapper_QFontMetricsF::size(QFontMetricsF* theWrappedObject, int flags, const QString& str, int tabstops, int* tabarray) const +{ + return ( theWrappedObject->size(flags, str, tabstops, tabarray)); +} + +qreal PythonQtWrapper_QFontMetricsF::strikeOutPos(QFontMetricsF* theWrappedObject) const +{ + return ( theWrappedObject->strikeOutPos()); +} + +void PythonQtWrapper_QFontMetricsF::swap(QFontMetricsF* theWrappedObject, QFontMetricsF& other) +{ + ( theWrappedObject->swap(other)); +} + +QRectF PythonQtWrapper_QFontMetricsF::tightBoundingRect(QFontMetricsF* theWrappedObject, const QString& text) const +{ + return ( theWrappedObject->tightBoundingRect(text)); +} + +qreal PythonQtWrapper_QFontMetricsF::underlinePos(QFontMetricsF* theWrappedObject) const +{ + return ( theWrappedObject->underlinePos()); +} + +qreal PythonQtWrapper_QFontMetricsF::width(QFontMetricsF* theWrappedObject, QChar arg__1) const +{ + return ( theWrappedObject->width(arg__1)); +} + +qreal PythonQtWrapper_QFontMetricsF::width(QFontMetricsF* theWrappedObject, const QString& string) const +{ + return ( theWrappedObject->width(string)); +} + +qreal PythonQtWrapper_QFontMetricsF::xHeight(QFontMetricsF* theWrappedObject) const +{ + return ( theWrappedObject->xHeight()); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QFormLayout::~PythonQtShell_QFormLayout() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QFormLayout::addItem(QLayoutItem* item) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "addItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QLayoutItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&item}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFormLayout::addItem(item); +} +void PythonQtShell_QFormLayout::childEvent(QChildEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFormLayout::childEvent(e); +} +QSizePolicy::ControlTypes PythonQtShell_QFormLayout::controlTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "controlTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSizePolicy::ControlTypes"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSizePolicy::ControlTypes returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("controlTypes", methodInfo, result); + } else { + returnValue = *((QSizePolicy::ControlTypes*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFormLayout::controlTypes(); +} +int PythonQtShell_QFormLayout::count() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFormLayout::count(); +} +void PythonQtShell_QFormLayout::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFormLayout::customEvent(arg__1); +} +bool PythonQtShell_QFormLayout::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFormLayout::event(arg__1); +} +bool PythonQtShell_QFormLayout::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFormLayout::eventFilter(arg__1, arg__2); +} +Qt::Orientations PythonQtShell_QFormLayout::expandingDirections() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::Orientations"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::Orientations returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); + } else { + returnValue = *((Qt::Orientations*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFormLayout::expandingDirections(); +} +QRect PythonQtShell_QFormLayout::geometry() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QRect returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFormLayout::geometry(); +} +int PythonQtShell_QFormLayout::indexOf(QWidget* arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOf"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexOf", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFormLayout::indexOf(arg__1); +} +void PythonQtShell_QFormLayout::invalidate() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFormLayout::invalidate(); +} +bool PythonQtShell_QFormLayout::isEmpty() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFormLayout::isEmpty(); +} +QLayoutItem* PythonQtShell_QFormLayout::itemAt(int index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); + } else { + returnValue = *((QLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFormLayout::itemAt(index); +} +QLayout* PythonQtShell_QFormLayout::layout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayout*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QLayout* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); + } else { + returnValue = *((QLayout**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFormLayout::layout(); +} +QSize PythonQtShell_QFormLayout::maximumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFormLayout::maximumSize(); +} +QSize PythonQtShell_QFormLayout::minimumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFormLayout::minimumSize(); +} +void PythonQtShell_QFormLayout::setGeometry(const QRect& rect) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&rect}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFormLayout::setGeometry(rect); +} +QLayoutItem* PythonQtShell_QFormLayout::takeAt(int index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "takeAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("takeAt", methodInfo, result); + } else { + returnValue = *((QLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFormLayout::takeAt(index); +} +void PythonQtShell_QFormLayout::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFormLayout::timerEvent(arg__1); +} +QFormLayout* PythonQtWrapper_QFormLayout::new_QFormLayout(QWidget* parent) +{ +return new PythonQtShell_QFormLayout(parent); } + +void PythonQtWrapper_QFormLayout::addItem(QFormLayout* theWrappedObject, QLayoutItem* item) +{ + ( ((PythonQtPublicPromoter_QFormLayout*)theWrappedObject)->promoted_addItem(item)); +} + +void PythonQtWrapper_QFormLayout::addRow(QFormLayout* theWrappedObject, QLayout* layout) +{ + ( theWrappedObject->addRow(layout)); +} + +void PythonQtWrapper_QFormLayout::addRow(QFormLayout* theWrappedObject, QWidget* label, QLayout* field) +{ + ( theWrappedObject->addRow(label, field)); +} + +void PythonQtWrapper_QFormLayout::addRow(QFormLayout* theWrappedObject, QWidget* label, QWidget* field) +{ + ( theWrappedObject->addRow(label, field)); +} + +void PythonQtWrapper_QFormLayout::addRow(QFormLayout* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->addRow(widget)); +} + +void PythonQtWrapper_QFormLayout::addRow(QFormLayout* theWrappedObject, const QString& labelText, QLayout* field) +{ + ( theWrappedObject->addRow(labelText, field)); +} + +void PythonQtWrapper_QFormLayout::addRow(QFormLayout* theWrappedObject, const QString& labelText, QWidget* field) +{ + ( theWrappedObject->addRow(labelText, field)); +} + +int PythonQtWrapper_QFormLayout::count(QFormLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QFormLayout*)theWrappedObject)->promoted_count()); +} + +Qt::Orientations PythonQtWrapper_QFormLayout::expandingDirections(QFormLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QFormLayout*)theWrappedObject)->promoted_expandingDirections()); +} + +QFormLayout::FieldGrowthPolicy PythonQtWrapper_QFormLayout::fieldGrowthPolicy(QFormLayout* theWrappedObject) const +{ + return ( theWrappedObject->fieldGrowthPolicy()); +} + +Qt::Alignment PythonQtWrapper_QFormLayout::formAlignment(QFormLayout* theWrappedObject) const +{ + return ( theWrappedObject->formAlignment()); +} + +void PythonQtWrapper_QFormLayout::getItemPosition(QFormLayout* theWrappedObject, int index, int* rowPtr, QFormLayout::ItemRole* rolePtr) const +{ + ( theWrappedObject->getItemPosition(index, rowPtr, rolePtr)); +} + +void PythonQtWrapper_QFormLayout::getLayoutPosition(QFormLayout* theWrappedObject, QLayout* layout, int* rowPtr, QFormLayout::ItemRole* rolePtr) const +{ + ( theWrappedObject->getLayoutPosition(layout, rowPtr, rolePtr)); +} + +void PythonQtWrapper_QFormLayout::getWidgetPosition(QFormLayout* theWrappedObject, QWidget* widget, int* rowPtr, QFormLayout::ItemRole* rolePtr) const +{ + ( theWrappedObject->getWidgetPosition(widget, rowPtr, rolePtr)); +} + +bool PythonQtWrapper_QFormLayout::hasHeightForWidth(QFormLayout* theWrappedObject) const +{ + return ( theWrappedObject->hasHeightForWidth()); +} + +int PythonQtWrapper_QFormLayout::heightForWidth(QFormLayout* theWrappedObject, int width) const +{ + return ( theWrappedObject->heightForWidth(width)); +} + +int PythonQtWrapper_QFormLayout::horizontalSpacing(QFormLayout* theWrappedObject) const +{ + return ( theWrappedObject->horizontalSpacing()); +} + +void PythonQtWrapper_QFormLayout::insertRow(QFormLayout* theWrappedObject, int row, QLayout* layout) +{ + ( theWrappedObject->insertRow(row, layout)); +} + +void PythonQtWrapper_QFormLayout::insertRow(QFormLayout* theWrappedObject, int row, QWidget* label, QLayout* field) +{ + ( theWrappedObject->insertRow(row, label, field)); +} + +void PythonQtWrapper_QFormLayout::insertRow(QFormLayout* theWrappedObject, int row, QWidget* label, QWidget* field) +{ + ( theWrappedObject->insertRow(row, label, field)); +} + +void PythonQtWrapper_QFormLayout::insertRow(QFormLayout* theWrappedObject, int row, QWidget* widget) +{ + ( theWrappedObject->insertRow(row, widget)); +} + +void PythonQtWrapper_QFormLayout::insertRow(QFormLayout* theWrappedObject, int row, const QString& labelText, QLayout* field) +{ + ( theWrappedObject->insertRow(row, labelText, field)); +} + +void PythonQtWrapper_QFormLayout::insertRow(QFormLayout* theWrappedObject, int row, const QString& labelText, QWidget* field) +{ + ( theWrappedObject->insertRow(row, labelText, field)); +} + +void PythonQtWrapper_QFormLayout::invalidate(QFormLayout* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QFormLayout*)theWrappedObject)->promoted_invalidate()); +} + +QLayoutItem* PythonQtWrapper_QFormLayout::itemAt(QFormLayout* theWrappedObject, int index) const +{ + return ( ((PythonQtPublicPromoter_QFormLayout*)theWrappedObject)->promoted_itemAt(index)); +} + +QLayoutItem* PythonQtWrapper_QFormLayout::itemAt(QFormLayout* theWrappedObject, int row, QFormLayout::ItemRole role) const +{ + return ( theWrappedObject->itemAt(row, role)); +} + +Qt::Alignment PythonQtWrapper_QFormLayout::labelAlignment(QFormLayout* theWrappedObject) const +{ + return ( theWrappedObject->labelAlignment()); +} + +QWidget* PythonQtWrapper_QFormLayout::labelForField(QFormLayout* theWrappedObject, QLayout* field) const +{ + return ( theWrappedObject->labelForField(field)); +} + +QWidget* PythonQtWrapper_QFormLayout::labelForField(QFormLayout* theWrappedObject, QWidget* field) const +{ + return ( theWrappedObject->labelForField(field)); +} + +QSize PythonQtWrapper_QFormLayout::minimumSize(QFormLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QFormLayout*)theWrappedObject)->promoted_minimumSize()); +} + +int PythonQtWrapper_QFormLayout::rowCount(QFormLayout* theWrappedObject) const +{ + return ( theWrappedObject->rowCount()); +} + +QFormLayout::RowWrapPolicy PythonQtWrapper_QFormLayout::rowWrapPolicy(QFormLayout* theWrappedObject) const +{ + return ( theWrappedObject->rowWrapPolicy()); +} + +void PythonQtWrapper_QFormLayout::setFieldGrowthPolicy(QFormLayout* theWrappedObject, QFormLayout::FieldGrowthPolicy policy) +{ + ( theWrappedObject->setFieldGrowthPolicy(policy)); +} + +void PythonQtWrapper_QFormLayout::setFormAlignment(QFormLayout* theWrappedObject, Qt::Alignment alignment) +{ + ( theWrappedObject->setFormAlignment(alignment)); +} + +void PythonQtWrapper_QFormLayout::setGeometry(QFormLayout* theWrappedObject, const QRect& rect) +{ + ( ((PythonQtPublicPromoter_QFormLayout*)theWrappedObject)->promoted_setGeometry(rect)); +} + +void PythonQtWrapper_QFormLayout::setHorizontalSpacing(QFormLayout* theWrappedObject, int spacing) +{ + ( theWrappedObject->setHorizontalSpacing(spacing)); +} + +void PythonQtWrapper_QFormLayout::setItem(QFormLayout* theWrappedObject, int row, QFormLayout::ItemRole role, QLayoutItem* item) +{ + ( theWrappedObject->setItem(row, role, item)); +} + +void PythonQtWrapper_QFormLayout::setLabelAlignment(QFormLayout* theWrappedObject, Qt::Alignment alignment) +{ + ( theWrappedObject->setLabelAlignment(alignment)); +} + +void PythonQtWrapper_QFormLayout::setLayout(QFormLayout* theWrappedObject, int row, QFormLayout::ItemRole role, QLayout* layout) +{ + ( theWrappedObject->setLayout(row, role, layout)); +} + +void PythonQtWrapper_QFormLayout::setRowWrapPolicy(QFormLayout* theWrappedObject, QFormLayout::RowWrapPolicy policy) +{ + ( theWrappedObject->setRowWrapPolicy(policy)); +} + +void PythonQtWrapper_QFormLayout::setSpacing(QFormLayout* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setSpacing(arg__1)); +} + +void PythonQtWrapper_QFormLayout::setVerticalSpacing(QFormLayout* theWrappedObject, int spacing) +{ + ( theWrappedObject->setVerticalSpacing(spacing)); +} + +void PythonQtWrapper_QFormLayout::setWidget(QFormLayout* theWrappedObject, int row, QFormLayout::ItemRole role, QWidget* widget) +{ + ( theWrappedObject->setWidget(row, role, widget)); +} + +QSize PythonQtWrapper_QFormLayout::sizeHint(QFormLayout* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +int PythonQtWrapper_QFormLayout::spacing(QFormLayout* theWrappedObject) const +{ + return ( theWrappedObject->spacing()); +} + +QLayoutItem* PythonQtWrapper_QFormLayout::takeAt(QFormLayout* theWrappedObject, int index) +{ + return ( ((PythonQtPublicPromoter_QFormLayout*)theWrappedObject)->promoted_takeAt(index)); +} + +int PythonQtWrapper_QFormLayout::verticalSpacing(QFormLayout* theWrappedObject) const +{ + return ( theWrappedObject->verticalSpacing()); +} + + + +PythonQtShell_QFrame::~PythonQtShell_QFrame() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QFrame::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::actionEvent(arg__1); +} +void PythonQtShell_QFrame::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::changeEvent(arg__1); +} +void PythonQtShell_QFrame::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::childEvent(arg__1); +} +void PythonQtShell_QFrame::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::closeEvent(arg__1); +} +void PythonQtShell_QFrame::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::contextMenuEvent(arg__1); +} +void PythonQtShell_QFrame::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::customEvent(arg__1); +} +int PythonQtShell_QFrame::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFrame::devType(); +} +void PythonQtShell_QFrame::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::dragEnterEvent(arg__1); +} +void PythonQtShell_QFrame::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::dragLeaveEvent(arg__1); +} +void PythonQtShell_QFrame::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::dragMoveEvent(arg__1); +} +void PythonQtShell_QFrame::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::dropEvent(arg__1); +} +void PythonQtShell_QFrame::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::enterEvent(arg__1); +} +bool PythonQtShell_QFrame::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFrame::event(e); +} +bool PythonQtShell_QFrame::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFrame::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QFrame::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::focusInEvent(arg__1); +} +bool PythonQtShell_QFrame::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFrame::focusNextPrevChild(next); +} +void PythonQtShell_QFrame::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::focusOutEvent(arg__1); +} +bool PythonQtShell_QFrame::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFrame::hasHeightForWidth(); +} +int PythonQtShell_QFrame::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFrame::heightForWidth(arg__1); +} +void PythonQtShell_QFrame::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::hideEvent(arg__1); +} +void PythonQtShell_QFrame::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::initPainter(painter); +} +void PythonQtShell_QFrame::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QFrame::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFrame::inputMethodQuery(arg__1); +} +void PythonQtShell_QFrame::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::keyPressEvent(arg__1); +} +void PythonQtShell_QFrame::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::keyReleaseEvent(arg__1); +} +void PythonQtShell_QFrame::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::leaveEvent(arg__1); +} +int PythonQtShell_QFrame::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFrame::metric(arg__1); +} +QSize PythonQtShell_QFrame::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFrame::minimumSizeHint(); +} +void PythonQtShell_QFrame::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QFrame::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::mouseMoveEvent(arg__1); +} +void PythonQtShell_QFrame::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::mousePressEvent(arg__1); +} +void PythonQtShell_QFrame::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QFrame::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::moveEvent(arg__1); +} +bool PythonQtShell_QFrame::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFrame::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QFrame::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFrame::paintEngine(); +} +void PythonQtShell_QFrame::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QFrame::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFrame::redirected(offset); +} +void PythonQtShell_QFrame::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QFrame::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QFrame::sharedPainter(); +} +void PythonQtShell_QFrame::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::showEvent(arg__1); +} +void PythonQtShell_QFrame::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::tabletEvent(arg__1); +} +void PythonQtShell_QFrame::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::timerEvent(arg__1); +} +void PythonQtShell_QFrame::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QFrame::wheelEvent(arg__1); +} +QFrame* PythonQtWrapper_QFrame::new_QFrame(QWidget* parent, Qt::WindowFlags f) +{ +return new PythonQtShell_QFrame(parent, f); } + +void PythonQtWrapper_QFrame::changeEvent(QFrame* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QFrame*)theWrappedObject)->promoted_changeEvent(arg__1)); +} + +bool PythonQtWrapper_QFrame::event(QFrame* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QFrame*)theWrappedObject)->promoted_event(e)); +} + +QRect PythonQtWrapper_QFrame::frameRect(QFrame* theWrappedObject) const +{ + return ( theWrappedObject->frameRect()); +} + +QFrame::Shadow PythonQtWrapper_QFrame::frameShadow(QFrame* theWrappedObject) const +{ + return ( theWrappedObject->frameShadow()); +} + +QFrame::Shape PythonQtWrapper_QFrame::frameShape(QFrame* theWrappedObject) const +{ + return ( theWrappedObject->frameShape()); +} + +int PythonQtWrapper_QFrame::frameStyle(QFrame* theWrappedObject) const +{ + return ( theWrappedObject->frameStyle()); +} + +int PythonQtWrapper_QFrame::frameWidth(QFrame* theWrappedObject) const +{ + return ( theWrappedObject->frameWidth()); +} + +int PythonQtWrapper_QFrame::lineWidth(QFrame* theWrappedObject) const +{ + return ( theWrappedObject->lineWidth()); +} + +int PythonQtWrapper_QFrame::midLineWidth(QFrame* theWrappedObject) const +{ + return ( theWrappedObject->midLineWidth()); +} + +void PythonQtWrapper_QFrame::paintEvent(QFrame* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QFrame*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +void PythonQtWrapper_QFrame::setFrameRect(QFrame* theWrappedObject, const QRect& arg__1) +{ + ( theWrappedObject->setFrameRect(arg__1)); +} + +void PythonQtWrapper_QFrame::setFrameShadow(QFrame* theWrappedObject, QFrame::Shadow arg__1) +{ + ( theWrappedObject->setFrameShadow(arg__1)); +} + +void PythonQtWrapper_QFrame::setFrameShape(QFrame* theWrappedObject, QFrame::Shape arg__1) +{ + ( theWrappedObject->setFrameShape(arg__1)); +} + +void PythonQtWrapper_QFrame::setFrameStyle(QFrame* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setFrameStyle(arg__1)); +} + +void PythonQtWrapper_QFrame::setLineWidth(QFrame* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setLineWidth(arg__1)); +} + +void PythonQtWrapper_QFrame::setMidLineWidth(QFrame* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setMidLineWidth(arg__1)); +} + +QSize PythonQtWrapper_QFrame::sizeHint(QFrame* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + + + +PythonQtShell_QGesture::~PythonQtShell_QGesture() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGesture::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGesture::childEvent(arg__1); +} +void PythonQtShell_QGesture::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGesture::customEvent(arg__1); +} +bool PythonQtShell_QGesture::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGesture::event(arg__1); +} +bool PythonQtShell_QGesture::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGesture::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QGesture::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGesture::timerEvent(arg__1); +} +QGesture* PythonQtWrapper_QGesture::new_QGesture(QObject* parent) +{ +return new PythonQtShell_QGesture(parent); } + +QGesture::GestureCancelPolicy PythonQtWrapper_QGesture::gestureCancelPolicy(QGesture* theWrappedObject) const +{ + return ( theWrappedObject->gestureCancelPolicy()); +} + +Qt::GestureType PythonQtWrapper_QGesture::gestureType(QGesture* theWrappedObject) const +{ + return ( theWrappedObject->gestureType()); +} + +bool PythonQtWrapper_QGesture::hasHotSpot(QGesture* theWrappedObject) const +{ + return ( theWrappedObject->hasHotSpot()); +} + +QPointF PythonQtWrapper_QGesture::hotSpot(QGesture* theWrappedObject) const +{ + return ( theWrappedObject->hotSpot()); +} + +void PythonQtWrapper_QGesture::setGestureCancelPolicy(QGesture* theWrappedObject, QGesture::GestureCancelPolicy policy) +{ + ( theWrappedObject->setGestureCancelPolicy(policy)); +} + +void PythonQtWrapper_QGesture::setHotSpot(QGesture* theWrappedObject, const QPointF& value) +{ + ( theWrappedObject->setHotSpot(value)); +} + +Qt::GestureState PythonQtWrapper_QGesture::state(QGesture* theWrappedObject) const +{ + return ( theWrappedObject->state()); +} + +void PythonQtWrapper_QGesture::unsetHotSpot(QGesture* theWrappedObject) +{ + ( theWrappedObject->unsetHotSpot()); +} + +#endif + +QGradient* PythonQtWrapper_QGradient::new_QGradient() +{ +return new QGradient(); } + +QGradient::CoordinateMode PythonQtWrapper_QGradient::coordinateMode(QGradient* theWrappedObject) const +{ + return ( theWrappedObject->coordinateMode()); +} + +bool PythonQtWrapper_QGradient::__ne__(QGradient* theWrappedObject, const QGradient& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QGradient::__eq__(QGradient* theWrappedObject, const QGradient& gradient) const +{ + return ( (*theWrappedObject)== gradient); +} + +void PythonQtWrapper_QGradient::setColorAt(QGradient* theWrappedObject, qreal pos, const QColor& color) +{ + ( theWrappedObject->setColorAt(pos, color)); +} + +void PythonQtWrapper_QGradient::setCoordinateMode(QGradient* theWrappedObject, QGradient::CoordinateMode mode) +{ + ( theWrappedObject->setCoordinateMode(mode)); +} + +void PythonQtWrapper_QGradient::setSpread(QGradient* theWrappedObject, QGradient::Spread spread) +{ + ( theWrappedObject->setSpread(spread)); +} + +void PythonQtWrapper_QGradient::setStops(QGradient* theWrappedObject, const QVector >& stops) +{ + ( theWrappedObject->setStops(stops)); +} + +QGradient::Spread PythonQtWrapper_QGradient::spread(QGradient* theWrappedObject) const +{ + return ( theWrappedObject->spread()); +} + +QVector > PythonQtWrapper_QGradient::stops(QGradient* theWrappedObject) const +{ + return ( theWrappedObject->stops()); +} + +QGradient::Type PythonQtWrapper_QGradient::type(QGradient* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + +#if defined(QT_WIDGETS_LIB) + +void PythonQtWrapper_QGraphicsAnchor::setSizePolicy(QGraphicsAnchor* theWrappedObject, QSizePolicy::Policy policy) +{ + ( theWrappedObject->setSizePolicy(policy)); +} + +void PythonQtWrapper_QGraphicsAnchor::setSpacing(QGraphicsAnchor* theWrappedObject, qreal spacing) +{ + ( theWrappedObject->setSpacing(spacing)); +} + +QSizePolicy::Policy PythonQtWrapper_QGraphicsAnchor::sizePolicy(QGraphicsAnchor* theWrappedObject) const +{ + return ( theWrappedObject->sizePolicy()); +} + +qreal PythonQtWrapper_QGraphicsAnchor::spacing(QGraphicsAnchor* theWrappedObject) const +{ + return ( theWrappedObject->spacing()); +} + +void PythonQtWrapper_QGraphicsAnchor::unsetSpacing(QGraphicsAnchor* theWrappedObject) +{ + ( theWrappedObject->unsetSpacing()); +} + + + +PythonQtShell_QGraphicsAnchorLayout::~PythonQtShell_QGraphicsAnchorLayout() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +int PythonQtShell_QGraphicsAnchorLayout::count() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsAnchorLayout::count(); +} +void PythonQtShell_QGraphicsAnchorLayout::getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getContentsMargins"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "qreal*" , "qreal*" , "qreal*" , "qreal*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&left, (void*)&top, (void*)&right, (void*)&bottom}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsAnchorLayout::getContentsMargins(left, top, right, bottom); +} +void PythonQtShell_QGraphicsAnchorLayout::invalidate() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsAnchorLayout::invalidate(); +} +QGraphicsLayoutItem* PythonQtShell_QGraphicsAnchorLayout::itemAt(int index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QGraphicsLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QGraphicsLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); + } else { + returnValue = *((QGraphicsLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsAnchorLayout::itemAt(index); +} +void PythonQtShell_QGraphicsAnchorLayout::removeAt(int index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsAnchorLayout::removeAt(index); +} +void PythonQtShell_QGraphicsAnchorLayout::updateGeometry() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsAnchorLayout::updateGeometry(); +} +void PythonQtShell_QGraphicsAnchorLayout::widgetEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widgetEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsAnchorLayout::widgetEvent(e); +} +QGraphicsAnchorLayout* PythonQtWrapper_QGraphicsAnchorLayout::new_QGraphicsAnchorLayout(QGraphicsLayoutItem* parent) +{ +return new PythonQtShell_QGraphicsAnchorLayout(parent); } + +QGraphicsAnchor* PythonQtWrapper_QGraphicsAnchorLayout::addAnchor(QGraphicsAnchorLayout* theWrappedObject, QGraphicsLayoutItem* firstItem, Qt::AnchorPoint firstEdge, QGraphicsLayoutItem* secondItem, Qt::AnchorPoint secondEdge) +{ + return ( theWrappedObject->addAnchor(firstItem, firstEdge, secondItem, secondEdge)); +} + +void PythonQtWrapper_QGraphicsAnchorLayout::addAnchors(QGraphicsAnchorLayout* theWrappedObject, QGraphicsLayoutItem* firstItem, QGraphicsLayoutItem* secondItem, Qt::Orientations orientations) +{ + ( theWrappedObject->addAnchors(firstItem, secondItem, orientations)); +} + +void PythonQtWrapper_QGraphicsAnchorLayout::addCornerAnchors(QGraphicsAnchorLayout* theWrappedObject, QGraphicsLayoutItem* firstItem, Qt::Corner firstCorner, QGraphicsLayoutItem* secondItem, Qt::Corner secondCorner) +{ + ( theWrappedObject->addCornerAnchors(firstItem, firstCorner, secondItem, secondCorner)); +} + +QGraphicsAnchor* PythonQtWrapper_QGraphicsAnchorLayout::anchor(QGraphicsAnchorLayout* theWrappedObject, QGraphicsLayoutItem* firstItem, Qt::AnchorPoint firstEdge, QGraphicsLayoutItem* secondItem, Qt::AnchorPoint secondEdge) +{ + return ( theWrappedObject->anchor(firstItem, firstEdge, secondItem, secondEdge)); +} + +int PythonQtWrapper_QGraphicsAnchorLayout::count(QGraphicsAnchorLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsAnchorLayout*)theWrappedObject)->promoted_count()); +} + +qreal PythonQtWrapper_QGraphicsAnchorLayout::horizontalSpacing(QGraphicsAnchorLayout* theWrappedObject) const +{ + return ( theWrappedObject->horizontalSpacing()); +} + +void PythonQtWrapper_QGraphicsAnchorLayout::invalidate(QGraphicsAnchorLayout* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGraphicsAnchorLayout*)theWrappedObject)->promoted_invalidate()); +} + +QGraphicsLayoutItem* PythonQtWrapper_QGraphicsAnchorLayout::itemAt(QGraphicsAnchorLayout* theWrappedObject, int index) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsAnchorLayout*)theWrappedObject)->promoted_itemAt(index)); +} + +void PythonQtWrapper_QGraphicsAnchorLayout::removeAt(QGraphicsAnchorLayout* theWrappedObject, int index) +{ + ( ((PythonQtPublicPromoter_QGraphicsAnchorLayout*)theWrappedObject)->promoted_removeAt(index)); +} + +void PythonQtWrapper_QGraphicsAnchorLayout::setGeometry(QGraphicsAnchorLayout* theWrappedObject, const QRectF& rect) +{ + ( theWrappedObject->setGeometry(rect)); +} + +void PythonQtWrapper_QGraphicsAnchorLayout::setHorizontalSpacing(QGraphicsAnchorLayout* theWrappedObject, qreal spacing) +{ + ( theWrappedObject->setHorizontalSpacing(spacing)); +} + +void PythonQtWrapper_QGraphicsAnchorLayout::setSpacing(QGraphicsAnchorLayout* theWrappedObject, qreal spacing) +{ + ( theWrappedObject->setSpacing(spacing)); +} + +void PythonQtWrapper_QGraphicsAnchorLayout::setVerticalSpacing(QGraphicsAnchorLayout* theWrappedObject, qreal spacing) +{ + ( theWrappedObject->setVerticalSpacing(spacing)); +} + +qreal PythonQtWrapper_QGraphicsAnchorLayout::verticalSpacing(QGraphicsAnchorLayout* theWrappedObject) const +{ + return ( theWrappedObject->verticalSpacing()); +} + + + +PythonQtShell_QGraphicsBlurEffect::~PythonQtShell_QGraphicsBlurEffect() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QRectF PythonQtShell_QGraphicsBlurEffect::boundingRectFor(const QRectF& rect) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRectFor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRectF" , "const QRectF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRectF returnValue; + void* args[2] = {NULL, (void*)&rect}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("boundingRectFor", methodInfo, result); + } else { + returnValue = *((QRectF*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsBlurEffect::boundingRectFor(rect); +} +void PythonQtShell_QGraphicsBlurEffect::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsBlurEffect::childEvent(arg__1); +} +void PythonQtShell_QGraphicsBlurEffect::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsBlurEffect::customEvent(arg__1); +} +void PythonQtShell_QGraphicsBlurEffect::draw(QPainter* painter) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "draw"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsBlurEffect::draw(painter); +} +bool PythonQtShell_QGraphicsBlurEffect::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsBlurEffect::event(arg__1); +} +bool PythonQtShell_QGraphicsBlurEffect::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsBlurEffect::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QGraphicsBlurEffect::sourceChanged(QGraphicsEffect::ChangeFlags flags) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sourceChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsEffect::ChangeFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&flags}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsBlurEffect::sourceChanged(flags); +} +void PythonQtShell_QGraphicsBlurEffect::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsBlurEffect::timerEvent(arg__1); +} +QGraphicsBlurEffect* PythonQtWrapper_QGraphicsBlurEffect::new_QGraphicsBlurEffect(QObject* parent) +{ +return new PythonQtShell_QGraphicsBlurEffect(parent); } + +QGraphicsBlurEffect::BlurHints PythonQtWrapper_QGraphicsBlurEffect::blurHints(QGraphicsBlurEffect* theWrappedObject) const +{ + return ( theWrappedObject->blurHints()); +} + +qreal PythonQtWrapper_QGraphicsBlurEffect::blurRadius(QGraphicsBlurEffect* theWrappedObject) const +{ + return ( theWrappedObject->blurRadius()); +} + +QRectF PythonQtWrapper_QGraphicsBlurEffect::boundingRectFor(QGraphicsBlurEffect* theWrappedObject, const QRectF& rect) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsBlurEffect*)theWrappedObject)->promoted_boundingRectFor(rect)); +} + +void PythonQtWrapper_QGraphicsBlurEffect::draw(QGraphicsBlurEffect* theWrappedObject, QPainter* painter) +{ + ( ((PythonQtPublicPromoter_QGraphicsBlurEffect*)theWrappedObject)->promoted_draw(painter)); +} + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui1.h b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui1.h new file mode 100644 index 00000000..a9650c1a --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui1.h @@ -0,0 +1,1871 @@ +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined(QT_WIDGETS_LIB) +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QDesktopWidget : public QDesktopWidget +{ +public: + PythonQtShell_QDesktopWidget():QDesktopWidget(),_wrapper(NULL) {}; + + ~PythonQtShell_QDesktopWidget(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* e); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual QSize sizeHint() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QDesktopWidget : public QDesktopWidget +{ public: +inline void promoted_resizeEvent(QResizeEvent* e) { QDesktopWidget::resizeEvent(e); } +}; + +class PythonQtWrapper_QDesktopWidget : public QObject +{ Q_OBJECT +public: +public slots: +QDesktopWidget* new_QDesktopWidget(); +void delete_QDesktopWidget(QDesktopWidget* obj) { delete obj; } + const QRect availableGeometry(QDesktopWidget* theWrappedObject, const QPoint& point) const; + const QRect availableGeometry(QDesktopWidget* theWrappedObject, const QWidget* widget) const; + const QRect availableGeometry(QDesktopWidget* theWrappedObject, int screen = -1) const; + bool isVirtualDesktop(QDesktopWidget* theWrappedObject) const; + int numScreens(QDesktopWidget* theWrappedObject) const; + int primaryScreen(QDesktopWidget* theWrappedObject) const; + void resizeEvent(QDesktopWidget* theWrappedObject, QResizeEvent* e); + QWidget* screen(QDesktopWidget* theWrappedObject, int screen = -1); + int screenCount(QDesktopWidget* theWrappedObject) const; + const QRect screenGeometry(QDesktopWidget* theWrappedObject, const QPoint& point) const; + const QRect screenGeometry(QDesktopWidget* theWrappedObject, const QWidget* widget) const; + const QRect screenGeometry(QDesktopWidget* theWrappedObject, int screen = -1) const; + int screenNumber(QDesktopWidget* theWrappedObject, const QPoint& arg__1) const; + int screenNumber(QDesktopWidget* theWrappedObject, const QWidget* widget = 0) const; +}; + + + + + +class PythonQtShell_QDial : public QDial +{ +public: + PythonQtShell_QDial(QWidget* parent = 0):QDial(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QDial(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* e); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* ev); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* me); +virtual void mousePressEvent(QMouseEvent* me); +virtual void mouseReleaseEvent(QMouseEvent* me); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* pe); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* re); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* e); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QDial : public QDial +{ public: +inline bool promoted_event(QEvent* e) { return QDial::event(e); } +inline void promoted_mouseMoveEvent(QMouseEvent* me) { QDial::mouseMoveEvent(me); } +inline void promoted_mousePressEvent(QMouseEvent* me) { QDial::mousePressEvent(me); } +inline void promoted_mouseReleaseEvent(QMouseEvent* me) { QDial::mouseReleaseEvent(me); } +inline void promoted_paintEvent(QPaintEvent* pe) { QDial::paintEvent(pe); } +inline void promoted_resizeEvent(QResizeEvent* re) { QDial::resizeEvent(re); } +}; + +class PythonQtWrapper_QDial : public QObject +{ Q_OBJECT +public: +public slots: +QDial* new_QDial(QWidget* parent = 0); +void delete_QDial(QDial* obj) { delete obj; } + bool event(QDial* theWrappedObject, QEvent* e); + QSize minimumSizeHint(QDial* theWrappedObject) const; + void mouseMoveEvent(QDial* theWrappedObject, QMouseEvent* me); + void mousePressEvent(QDial* theWrappedObject, QMouseEvent* me); + void mouseReleaseEvent(QDial* theWrappedObject, QMouseEvent* me); + int notchSize(QDial* theWrappedObject) const; + qreal notchTarget(QDial* theWrappedObject) const; + bool notchesVisible(QDial* theWrappedObject) const; + void paintEvent(QDial* theWrappedObject, QPaintEvent* pe); + void resizeEvent(QDial* theWrappedObject, QResizeEvent* re); + void setNotchTarget(QDial* theWrappedObject, double target); + QSize sizeHint(QDial* theWrappedObject) const; + bool wrapping(QDial* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QDialog : public QDialog +{ +public: + PythonQtShell_QDialog(QWidget* parent = 0, Qt::WindowFlags f = 0):QDialog(parent, f),_wrapper(NULL) {}; + + ~PythonQtShell_QDialog(); + +virtual void accept(); +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void done(int arg__1); +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual int exec(); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void open(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reject(); +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QDialog : public QDialog +{ public: +inline void promoted_accept() { QDialog::accept(); } +inline void promoted_closeEvent(QCloseEvent* arg__1) { QDialog::closeEvent(arg__1); } +inline void promoted_contextMenuEvent(QContextMenuEvent* arg__1) { QDialog::contextMenuEvent(arg__1); } +inline void promoted_done(int arg__1) { QDialog::done(arg__1); } +inline bool promoted_eventFilter(QObject* arg__1, QEvent* arg__2) { return QDialog::eventFilter(arg__1, arg__2); } +inline int promoted_exec() { return QDialog::exec(); } +inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QDialog::keyPressEvent(arg__1); } +inline void promoted_open() { QDialog::open(); } +inline void promoted_reject() { QDialog::reject(); } +inline void promoted_resizeEvent(QResizeEvent* arg__1) { QDialog::resizeEvent(arg__1); } +inline void promoted_showEvent(QShowEvent* arg__1) { QDialog::showEvent(arg__1); } +}; + +class PythonQtWrapper_QDialog : public QObject +{ Q_OBJECT +public: +Q_ENUMS(DialogCode ) +enum DialogCode{ + Rejected = QDialog::Rejected, Accepted = QDialog::Accepted}; +public slots: +QDialog* new_QDialog(QWidget* parent = 0, Qt::WindowFlags f = 0); +void delete_QDialog(QDialog* obj) { delete obj; } + void accept(QDialog* theWrappedObject); + void closeEvent(QDialog* theWrappedObject, QCloseEvent* arg__1); + void contextMenuEvent(QDialog* theWrappedObject, QContextMenuEvent* arg__1); + void done(QDialog* theWrappedObject, int arg__1); + bool eventFilter(QDialog* theWrappedObject, QObject* arg__1, QEvent* arg__2); + int exec(QDialog* theWrappedObject); + bool isSizeGripEnabled(QDialog* theWrappedObject) const; + void keyPressEvent(QDialog* theWrappedObject, QKeyEvent* arg__1); + QSize minimumSizeHint(QDialog* theWrappedObject) const; + void open(QDialog* theWrappedObject); + void reject(QDialog* theWrappedObject); + void resizeEvent(QDialog* theWrappedObject, QResizeEvent* arg__1); + int result(QDialog* theWrappedObject) const; + void setModal(QDialog* theWrappedObject, bool modal); + void setResult(QDialog* theWrappedObject, int r); + void setSizeGripEnabled(QDialog* theWrappedObject, bool arg__1); + void setVisible(QDialog* theWrappedObject, bool visible); + void showEvent(QDialog* theWrappedObject, QShowEvent* arg__1); + QSize sizeHint(QDialog* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QDialogButtonBox : public QDialogButtonBox +{ +public: + PythonQtShell_QDialogButtonBox(QDialogButtonBox::StandardButtons buttons, Qt::Orientation orientation = Qt::Horizontal, QWidget* parent = 0):QDialogButtonBox(buttons, orientation, parent),_wrapper(NULL) {}; + PythonQtShell_QDialogButtonBox(QWidget* parent = 0):QDialogButtonBox(parent),_wrapper(NULL) {}; + PythonQtShell_QDialogButtonBox(Qt::Orientation orientation, QWidget* parent = 0):QDialogButtonBox(orientation, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QDialogButtonBox(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* event); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual QSize sizeHint() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QDialogButtonBox : public QDialogButtonBox +{ public: +inline void promoted_changeEvent(QEvent* event) { QDialogButtonBox::changeEvent(event); } +inline bool promoted_event(QEvent* event) { return QDialogButtonBox::event(event); } +}; + +class PythonQtWrapper_QDialogButtonBox : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StandardButton ButtonRole ButtonLayout ) +Q_FLAGS(StandardButtons ) +enum StandardButton{ + NoButton = QDialogButtonBox::NoButton, Ok = QDialogButtonBox::Ok, Save = QDialogButtonBox::Save, SaveAll = QDialogButtonBox::SaveAll, Open = QDialogButtonBox::Open, Yes = QDialogButtonBox::Yes, YesToAll = QDialogButtonBox::YesToAll, No = QDialogButtonBox::No, NoToAll = QDialogButtonBox::NoToAll, Abort = QDialogButtonBox::Abort, Retry = QDialogButtonBox::Retry, Ignore = QDialogButtonBox::Ignore, Close = QDialogButtonBox::Close, Cancel = QDialogButtonBox::Cancel, Discard = QDialogButtonBox::Discard, Help = QDialogButtonBox::Help, Apply = QDialogButtonBox::Apply, Reset = QDialogButtonBox::Reset, RestoreDefaults = QDialogButtonBox::RestoreDefaults, FirstButton = QDialogButtonBox::FirstButton, LastButton = QDialogButtonBox::LastButton}; +enum ButtonRole{ + InvalidRole = QDialogButtonBox::InvalidRole, AcceptRole = QDialogButtonBox::AcceptRole, RejectRole = QDialogButtonBox::RejectRole, DestructiveRole = QDialogButtonBox::DestructiveRole, ActionRole = QDialogButtonBox::ActionRole, HelpRole = QDialogButtonBox::HelpRole, YesRole = QDialogButtonBox::YesRole, NoRole = QDialogButtonBox::NoRole, ResetRole = QDialogButtonBox::ResetRole, ApplyRole = QDialogButtonBox::ApplyRole, NRoles = QDialogButtonBox::NRoles}; +enum ButtonLayout{ + WinLayout = QDialogButtonBox::WinLayout, MacLayout = QDialogButtonBox::MacLayout, KdeLayout = QDialogButtonBox::KdeLayout, GnomeLayout = QDialogButtonBox::GnomeLayout}; +Q_DECLARE_FLAGS(StandardButtons, StandardButton) +public slots: +QDialogButtonBox* new_QDialogButtonBox(QDialogButtonBox::StandardButtons buttons, Qt::Orientation orientation = Qt::Horizontal, QWidget* parent = 0); +QDialogButtonBox* new_QDialogButtonBox(QWidget* parent = 0); +QDialogButtonBox* new_QDialogButtonBox(Qt::Orientation orientation, QWidget* parent = 0); +void delete_QDialogButtonBox(QDialogButtonBox* obj) { delete obj; } + void addButton(QDialogButtonBox* theWrappedObject, QAbstractButton* button, QDialogButtonBox::ButtonRole role); + QPushButton* addButton(QDialogButtonBox* theWrappedObject, QDialogButtonBox::StandardButton button); + QPushButton* addButton(QDialogButtonBox* theWrappedObject, const QString& text, QDialogButtonBox::ButtonRole role); + QPushButton* button(QDialogButtonBox* theWrappedObject, QDialogButtonBox::StandardButton which) const; + QDialogButtonBox::ButtonRole buttonRole(QDialogButtonBox* theWrappedObject, QAbstractButton* button) const; + QList buttons(QDialogButtonBox* theWrappedObject) const; + bool centerButtons(QDialogButtonBox* theWrappedObject) const; + void changeEvent(QDialogButtonBox* theWrappedObject, QEvent* event); + void clear(QDialogButtonBox* theWrappedObject); + bool event(QDialogButtonBox* theWrappedObject, QEvent* event); + Qt::Orientation orientation(QDialogButtonBox* theWrappedObject) const; + void removeButton(QDialogButtonBox* theWrappedObject, QAbstractButton* button); + void setCenterButtons(QDialogButtonBox* theWrappedObject, bool center); + void setOrientation(QDialogButtonBox* theWrappedObject, Qt::Orientation orientation); + void setStandardButtons(QDialogButtonBox* theWrappedObject, QDialogButtonBox::StandardButtons buttons); + QDialogButtonBox::StandardButton standardButton(QDialogButtonBox* theWrappedObject, QAbstractButton* button) const; + QDialogButtonBox::StandardButtons standardButtons(QDialogButtonBox* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QDockWidget : public QDockWidget +{ +public: + PythonQtShell_QDockWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0):QDockWidget(parent, flags),_wrapper(NULL) {}; + PythonQtShell_QDockWidget(const QString& title, QWidget* parent = 0, Qt::WindowFlags flags = 0):QDockWidget(title, parent, flags),_wrapper(NULL) {}; + + ~PythonQtShell_QDockWidget(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* event); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* event); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* event); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual QSize sizeHint() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QDockWidget : public QDockWidget +{ public: +inline void promoted_changeEvent(QEvent* event) { QDockWidget::changeEvent(event); } +inline void promoted_closeEvent(QCloseEvent* event) { QDockWidget::closeEvent(event); } +inline bool promoted_event(QEvent* event) { return QDockWidget::event(event); } +inline void promoted_paintEvent(QPaintEvent* event) { QDockWidget::paintEvent(event); } +}; + +class PythonQtWrapper_QDockWidget : public QObject +{ Q_OBJECT +public: +Q_ENUMS(DockWidgetFeature ) +Q_FLAGS(DockWidgetFeatures ) +enum DockWidgetFeature{ + DockWidgetClosable = QDockWidget::DockWidgetClosable, DockWidgetMovable = QDockWidget::DockWidgetMovable, DockWidgetFloatable = QDockWidget::DockWidgetFloatable, DockWidgetVerticalTitleBar = QDockWidget::DockWidgetVerticalTitleBar, DockWidgetFeatureMask = QDockWidget::DockWidgetFeatureMask, AllDockWidgetFeatures = QDockWidget::AllDockWidgetFeatures, NoDockWidgetFeatures = QDockWidget::NoDockWidgetFeatures, Reserved = QDockWidget::Reserved}; +Q_DECLARE_FLAGS(DockWidgetFeatures, DockWidgetFeature) +public slots: +QDockWidget* new_QDockWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0); +QDockWidget* new_QDockWidget(const QString& title, QWidget* parent = 0, Qt::WindowFlags flags = 0); +void delete_QDockWidget(QDockWidget* obj) { delete obj; } + Qt::DockWidgetAreas allowedAreas(QDockWidget* theWrappedObject) const; + void changeEvent(QDockWidget* theWrappedObject, QEvent* event); + void closeEvent(QDockWidget* theWrappedObject, QCloseEvent* event); + bool event(QDockWidget* theWrappedObject, QEvent* event); + QDockWidget::DockWidgetFeatures features(QDockWidget* theWrappedObject) const; + bool isAreaAllowed(QDockWidget* theWrappedObject, Qt::DockWidgetArea area) const; + bool isFloating(QDockWidget* theWrappedObject) const; + void paintEvent(QDockWidget* theWrappedObject, QPaintEvent* event); + void setAllowedAreas(QDockWidget* theWrappedObject, Qt::DockWidgetAreas areas); + void setFeatures(QDockWidget* theWrappedObject, QDockWidget::DockWidgetFeatures features); + void setFloating(QDockWidget* theWrappedObject, bool floating); + void setTitleBarWidget(QDockWidget* theWrappedObject, QWidget* widget); + void setWidget(QDockWidget* theWrappedObject, QWidget* widget); + QWidget* titleBarWidget(QDockWidget* theWrappedObject) const; + QAction* toggleViewAction(QDockWidget* theWrappedObject) const; + QWidget* widget(QDockWidget* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QDoubleSpinBox : public QDoubleSpinBox +{ +public: + PythonQtShell_QDoubleSpinBox(QWidget* parent = 0):QDoubleSpinBox(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QDoubleSpinBox(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* event); +virtual void childEvent(QChildEvent* arg__1); +virtual void clear(); +virtual void closeEvent(QCloseEvent* event); +virtual void contextMenuEvent(QContextMenuEvent* event); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fixup(QString& str) const; +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* event); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* event); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* event); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* event); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* event); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* event); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* event); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* event); +virtual void stepBy(int steps); +virtual QAbstractSpinBox::StepEnabled stepEnabled() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual QString textFromValue(double val) const; +virtual void timerEvent(QTimerEvent* event); +virtual QValidator::State validate(QString& input, int& pos) const; +virtual double valueFromText(const QString& text) const; +virtual void wheelEvent(QWheelEvent* event); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QDoubleSpinBox : public QDoubleSpinBox +{ public: +inline void promoted_fixup(QString& str) const { QDoubleSpinBox::fixup(str); } +inline QString promoted_textFromValue(double val) const { return QDoubleSpinBox::textFromValue(val); } +inline QValidator::State promoted_validate(QString& input, int& pos) const { return QDoubleSpinBox::validate(input, pos); } +inline double promoted_valueFromText(const QString& text) const { return QDoubleSpinBox::valueFromText(text); } +}; + +class PythonQtWrapper_QDoubleSpinBox : public QObject +{ Q_OBJECT +public: +public slots: +QDoubleSpinBox* new_QDoubleSpinBox(QWidget* parent = 0); +void delete_QDoubleSpinBox(QDoubleSpinBox* obj) { delete obj; } + QString cleanText(QDoubleSpinBox* theWrappedObject) const; + int decimals(QDoubleSpinBox* theWrappedObject) const; + void fixup(QDoubleSpinBox* theWrappedObject, QString& str) const; + double maximum(QDoubleSpinBox* theWrappedObject) const; + double minimum(QDoubleSpinBox* theWrappedObject) const; + QString prefix(QDoubleSpinBox* theWrappedObject) const; + void setDecimals(QDoubleSpinBox* theWrappedObject, int prec); + void setMaximum(QDoubleSpinBox* theWrappedObject, double max); + void setMinimum(QDoubleSpinBox* theWrappedObject, double min); + void setPrefix(QDoubleSpinBox* theWrappedObject, const QString& prefix); + void setRange(QDoubleSpinBox* theWrappedObject, double min, double max); + void setSingleStep(QDoubleSpinBox* theWrappedObject, double val); + void setSuffix(QDoubleSpinBox* theWrappedObject, const QString& suffix); + double singleStep(QDoubleSpinBox* theWrappedObject) const; + QString suffix(QDoubleSpinBox* theWrappedObject) const; + QString textFromValue(QDoubleSpinBox* theWrappedObject, double val) const; + QValidator::State validate(QDoubleSpinBox* theWrappedObject, QString& input, int& pos) const; + double value(QDoubleSpinBox* theWrappedObject) const; + double valueFromText(QDoubleSpinBox* theWrappedObject, const QString& text) const; +}; + +#endif + + + +class PythonQtShell_QDoubleValidator : public QDoubleValidator +{ +public: + PythonQtShell_QDoubleValidator(QObject* parent = 0):QDoubleValidator(parent),_wrapper(NULL) {}; + PythonQtShell_QDoubleValidator(double bottom, double top, int decimals, QObject* parent = 0):QDoubleValidator(bottom, top, decimals, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QDoubleValidator(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fixup(QString& arg__1) const; +virtual void setRange(double bottom, double top, int decimals = 0); +virtual void timerEvent(QTimerEvent* arg__1); +virtual QValidator::State validate(QString& arg__1, int& arg__2) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QDoubleValidator : public QDoubleValidator +{ public: +inline void promoted_setRange(double bottom, double top, int decimals = 0) { QDoubleValidator::setRange(bottom, top, decimals); } +inline QValidator::State promoted_validate(QString& arg__1, int& arg__2) const { return QDoubleValidator::validate(arg__1, arg__2); } +}; + +class PythonQtWrapper_QDoubleValidator : public QObject +{ Q_OBJECT +public: +public slots: +QDoubleValidator* new_QDoubleValidator(QObject* parent = 0); +QDoubleValidator* new_QDoubleValidator(double bottom, double top, int decimals, QObject* parent = 0); +void delete_QDoubleValidator(QDoubleValidator* obj) { delete obj; } + double bottom(QDoubleValidator* theWrappedObject) const; + int decimals(QDoubleValidator* theWrappedObject) const; + QDoubleValidator::Notation notation(QDoubleValidator* theWrappedObject) const; + void setBottom(QDoubleValidator* theWrappedObject, double arg__1); + void setDecimals(QDoubleValidator* theWrappedObject, int arg__1); + void setNotation(QDoubleValidator* theWrappedObject, QDoubleValidator::Notation arg__1); + void setRange(QDoubleValidator* theWrappedObject, double bottom, double top, int decimals = 0); + void setTop(QDoubleValidator* theWrappedObject, double arg__1); + double top(QDoubleValidator* theWrappedObject) const; + QValidator::State validate(QDoubleValidator* theWrappedObject, QString& arg__1, int& arg__2) const; +}; + + + + + +class PythonQtShell_QDrag : public QDrag +{ +public: + PythonQtShell_QDrag(QObject* dragSource):QDrag(dragSource),_wrapper(NULL) {}; + + ~PythonQtShell_QDrag(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QDrag : public QObject +{ Q_OBJECT +public: +public slots: +QDrag* new_QDrag(QObject* dragSource); +void delete_QDrag(QDrag* obj) { delete obj; } + Qt::DropAction defaultAction(QDrag* theWrappedObject) const; + QPixmap dragCursor(QDrag* theWrappedObject, Qt::DropAction action) const; + Qt::DropAction exec(QDrag* theWrappedObject, Qt::DropActions supportedActions = Qt::MoveAction); + Qt::DropAction exec(QDrag* theWrappedObject, Qt::DropActions supportedActions, Qt::DropAction defaultAction); + QPoint hotSpot(QDrag* theWrappedObject) const; + QMimeData* mimeData(QDrag* theWrappedObject) const; + QPixmap pixmap(QDrag* theWrappedObject) const; + void setDragCursor(QDrag* theWrappedObject, const QPixmap& cursor, Qt::DropAction action); + void setHotSpot(QDrag* theWrappedObject, const QPoint& hotspot); + void setMimeData(QDrag* theWrappedObject, QMimeData* data); + void setPixmap(QDrag* theWrappedObject, const QPixmap& arg__1); + QObject* source(QDrag* theWrappedObject) const; + Qt::DropActions supportedActions(QDrag* theWrappedObject) const; + QObject* target(QDrag* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QDragEnterEvent : public QObject +{ Q_OBJECT +public: +public slots: +QDragEnterEvent* new_QDragEnterEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); +void delete_QDragEnterEvent(QDragEnterEvent* obj) { delete obj; } +}; + + + + + +class PythonQtWrapper_QDragLeaveEvent : public QObject +{ Q_OBJECT +public: +public slots: +QDragLeaveEvent* new_QDragLeaveEvent(); +void delete_QDragLeaveEvent(QDragLeaveEvent* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QDragMoveEvent : public QDragMoveEvent +{ +public: + PythonQtShell_QDragMoveEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type type = QEvent::DragMove):QDragMoveEvent(pos, actions, data, buttons, modifiers, type),_wrapper(NULL) {}; + + ~PythonQtShell_QDragMoveEvent(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QDragMoveEvent : public QObject +{ Q_OBJECT +public: +public slots: +QDragMoveEvent* new_QDragMoveEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type type = QEvent::DragMove); +void delete_QDragMoveEvent(QDragMoveEvent* obj) { delete obj; } + void accept(QDragMoveEvent* theWrappedObject, const QRect& r); + QRect answerRect(QDragMoveEvent* theWrappedObject) const; + void ignore(QDragMoveEvent* theWrappedObject, const QRect& r); +}; + + + + + +class PythonQtShell_QDropEvent : public QDropEvent +{ +public: + PythonQtShell_QDropEvent(const QPointF& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type type = QEvent::Drop):QDropEvent(pos, actions, data, buttons, modifiers, type),_wrapper(NULL) {}; + + ~PythonQtShell_QDropEvent(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QDropEvent : public QObject +{ Q_OBJECT +public: +public slots: +QDropEvent* new_QDropEvent(const QPointF& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type type = QEvent::Drop); +void delete_QDropEvent(QDropEvent* obj) { delete obj; } + void acceptProposedAction(QDropEvent* theWrappedObject); + Qt::DropAction dropAction(QDropEvent* theWrappedObject) const; + Qt::KeyboardModifiers keyboardModifiers(QDropEvent* theWrappedObject) const; + const QMimeData* mimeData(QDropEvent* theWrappedObject) const; + Qt::MouseButtons mouseButtons(QDropEvent* theWrappedObject) const; + QPoint pos(QDropEvent* theWrappedObject) const; + const QPointF* posF(QDropEvent* theWrappedObject) const; + Qt::DropActions possibleActions(QDropEvent* theWrappedObject) const; + Qt::DropAction proposedAction(QDropEvent* theWrappedObject) const; + void setDropAction(QDropEvent* theWrappedObject, Qt::DropAction action); + QObject* source(QDropEvent* theWrappedObject) const; +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QErrorMessage : public QErrorMessage +{ +public: + PythonQtShell_QErrorMessage(QWidget* parent = 0):QErrorMessage(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QErrorMessage(); + +virtual void accept(); +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* e); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void done(int arg__1); +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual int exec(); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void open(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reject(); +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QErrorMessage : public QErrorMessage +{ public: +inline void promoted_changeEvent(QEvent* e) { QErrorMessage::changeEvent(e); } +inline void promoted_done(int arg__1) { QErrorMessage::done(arg__1); } +}; + +class PythonQtWrapper_QErrorMessage : public QObject +{ Q_OBJECT +public: +public slots: +QErrorMessage* new_QErrorMessage(QWidget* parent = 0); +void delete_QErrorMessage(QErrorMessage* obj) { delete obj; } + void changeEvent(QErrorMessage* theWrappedObject, QEvent* e); + void done(QErrorMessage* theWrappedObject, int arg__1); + QErrorMessage* static_QErrorMessage_qtHandler(); +}; + + + + + +class PythonQtShell_QFileDialog : public QFileDialog +{ +public: + PythonQtShell_QFileDialog(QWidget* parent, Qt::WindowFlags f):QFileDialog(parent, f),_wrapper(NULL) {}; + PythonQtShell_QFileDialog(QWidget* parent = 0, const QString& caption = QString(), const QString& directory = QString(), const QString& filter = QString()):QFileDialog(parent, caption, directory, filter),_wrapper(NULL) {}; + + ~PythonQtShell_QFileDialog(); + +virtual void accept(); +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* e); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void done(int result); +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual int exec(); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void open(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reject(); +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QFileDialog : public QFileDialog +{ public: +inline void promoted_accept() { QFileDialog::accept(); } +inline void promoted_changeEvent(QEvent* e) { QFileDialog::changeEvent(e); } +inline void promoted_done(int result) { QFileDialog::done(result); } +inline void promoted_open() { QFileDialog::open(); } +}; + +class PythonQtWrapper_QFileDialog : public QObject +{ Q_OBJECT +public: +Q_ENUMS(DialogLabel ) +enum DialogLabel{ + LookIn = QFileDialog::LookIn, FileName = QFileDialog::FileName, FileType = QFileDialog::FileType, Accept = QFileDialog::Accept, Reject = QFileDialog::Reject}; +public slots: +QFileDialog* new_QFileDialog(QWidget* parent, Qt::WindowFlags f); +QFileDialog* new_QFileDialog(QWidget* parent = 0, const QString& caption = QString(), const QString& directory = QString(), const QString& filter = QString()); +void delete_QFileDialog(QFileDialog* obj) { delete obj; } + void accept(QFileDialog* theWrappedObject); + QFileDialog::AcceptMode acceptMode(QFileDialog* theWrappedObject) const; + void changeEvent(QFileDialog* theWrappedObject, QEvent* e); + bool confirmOverwrite(QFileDialog* theWrappedObject) const; + QString defaultSuffix(QFileDialog* theWrappedObject) const; + QDir directory(QFileDialog* theWrappedObject) const; + void done(QFileDialog* theWrappedObject, int result); + QFileDialog::FileMode fileMode(QFileDialog* theWrappedObject) const; + QDir::Filters filter(QFileDialog* theWrappedObject) const; + QString static_QFileDialog_getExistingDirectory(QWidget* parent = 0, const QString& caption = QString(), const QString& dir = QString(), QFileDialog::Options options = QFileDialog::ShowDirsOnly); + QString static_QFileDialog_getOpenFileName(QWidget* parent = 0, const QString& caption = QString(), const QString& dir = QString(), const QString& filter = QString(), QString* selectedFilter = 0, QFileDialog::Options options = 0); + QStringList static_QFileDialog_getOpenFileNames(QWidget* parent = 0, const QString& caption = QString(), const QString& dir = QString(), const QString& filter = QString(), QString* selectedFilter = 0, QFileDialog::Options options = 0); + QString static_QFileDialog_getSaveFileName(QWidget* parent = 0, const QString& caption = QString(), const QString& dir = QString(), const QString& filter = QString(), QString* selectedFilter = 0, QFileDialog::Options options = 0); + QStringList history(QFileDialog* theWrappedObject) const; + QFileIconProvider* iconProvider(QFileDialog* theWrappedObject) const; + bool isNameFilterDetailsVisible(QFileDialog* theWrappedObject) const; + bool isReadOnly(QFileDialog* theWrappedObject) const; + QAbstractItemDelegate* itemDelegate(QFileDialog* theWrappedObject) const; + QString labelText(QFileDialog* theWrappedObject, QFileDialog::DialogLabel label) const; + QStringList nameFilters(QFileDialog* theWrappedObject) const; + void open(QFileDialog* theWrappedObject); + void open(QFileDialog* theWrappedObject, QObject* receiver, const char* member); + QFileDialog::Options options(QFileDialog* theWrappedObject) const; + QAbstractProxyModel* proxyModel(QFileDialog* theWrappedObject) const; + bool resolveSymlinks(QFileDialog* theWrappedObject) const; + bool restoreState(QFileDialog* theWrappedObject, const QByteArray& state); + QByteArray saveState(QFileDialog* theWrappedObject) const; + void selectFile(QFileDialog* theWrappedObject, const QString& filename); + void selectNameFilter(QFileDialog* theWrappedObject, const QString& filter); + QStringList selectedFiles(QFileDialog* theWrappedObject) const; + QString selectedNameFilter(QFileDialog* theWrappedObject) const; + void setAcceptMode(QFileDialog* theWrappedObject, QFileDialog::AcceptMode mode); + void setConfirmOverwrite(QFileDialog* theWrappedObject, bool enabled); + void setDefaultSuffix(QFileDialog* theWrappedObject, const QString& suffix); + void setDirectory(QFileDialog* theWrappedObject, const QDir& directory); + void setDirectory(QFileDialog* theWrappedObject, const QString& directory); + void setFileMode(QFileDialog* theWrappedObject, QFileDialog::FileMode mode); + void setFilter(QFileDialog* theWrappedObject, QDir::Filters filters); + void setHistory(QFileDialog* theWrappedObject, const QStringList& paths); + void setIconProvider(QFileDialog* theWrappedObject, QFileIconProvider* provider); + void setItemDelegate(QFileDialog* theWrappedObject, QAbstractItemDelegate* delegate); + void setLabelText(QFileDialog* theWrappedObject, QFileDialog::DialogLabel label, const QString& text); + void setNameFilter(QFileDialog* theWrappedObject, const QString& filter); + void setNameFilterDetailsVisible(QFileDialog* theWrappedObject, bool enabled); + void setNameFilters(QFileDialog* theWrappedObject, const QStringList& filters); + void setOption(QFileDialog* theWrappedObject, QFileDialog::Option option, bool on = true); + void setOptions(QFileDialog* theWrappedObject, QFileDialog::Options options); + void setProxyModel(QFileDialog* theWrappedObject, QAbstractProxyModel* model); + void setReadOnly(QFileDialog* theWrappedObject, bool enabled); + void setResolveSymlinks(QFileDialog* theWrappedObject, bool enabled); + void setSidebarUrls(QFileDialog* theWrappedObject, const QList& urls); + void setViewMode(QFileDialog* theWrappedObject, QFileDialog::ViewMode mode); + void setVisible(QFileDialog* theWrappedObject, bool visible); + QList sidebarUrls(QFileDialog* theWrappedObject) const; + bool testOption(QFileDialog* theWrappedObject, QFileDialog::Option option) const; + QFileDialog::ViewMode viewMode(QFileDialog* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QFileIconProvider : public QFileIconProvider +{ +public: + PythonQtShell_QFileIconProvider():QFileIconProvider(),_wrapper(NULL) {}; + + ~PythonQtShell_QFileIconProvider(); + +virtual QIcon icon(QFileIconProvider::IconType type) const; +virtual QIcon icon(const QFileInfo& info) const; +virtual QString type(const QFileInfo& info) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QFileIconProvider : public QFileIconProvider +{ public: +inline QIcon promoted_icon(QFileIconProvider::IconType type) const { return QFileIconProvider::icon(type); } +inline QIcon promoted_icon(const QFileInfo& info) const { return QFileIconProvider::icon(info); } +inline QString promoted_type(const QFileInfo& info) const { return QFileIconProvider::type(info); } +}; + +class PythonQtWrapper_QFileIconProvider : public QObject +{ Q_OBJECT +public: +Q_ENUMS(IconType ) +enum IconType{ + Computer = QFileIconProvider::Computer, Desktop = QFileIconProvider::Desktop, Trashcan = QFileIconProvider::Trashcan, Network = QFileIconProvider::Network, Drive = QFileIconProvider::Drive, Folder = QFileIconProvider::Folder, File = QFileIconProvider::File}; +public slots: +QFileIconProvider* new_QFileIconProvider(); +void delete_QFileIconProvider(QFileIconProvider* obj) { delete obj; } + QIcon icon(QFileIconProvider* theWrappedObject, QFileIconProvider::IconType type) const; + QIcon icon(QFileIconProvider* theWrappedObject, const QFileInfo& info) const; + QString type(QFileIconProvider* theWrappedObject, const QFileInfo& info) const; +}; + +#endif + + + +class PythonQtWrapper_QFileOpenEvent : public QObject +{ Q_OBJECT +public: +public slots: +QFileOpenEvent* new_QFileOpenEvent(const QString& file); +QFileOpenEvent* new_QFileOpenEvent(const QUrl& url); +void delete_QFileOpenEvent(QFileOpenEvent* obj) { delete obj; } + QString file(QFileOpenEvent* theWrappedObject) const; + QUrl url(QFileOpenEvent* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QFocusEvent : public QObject +{ Q_OBJECT +public: +public slots: +QFocusEvent* new_QFocusEvent(QEvent::Type type, Qt::FocusReason reason = Qt::OtherFocusReason); +void delete_QFocusEvent(QFocusEvent* obj) { delete obj; } + bool gotFocus(QFocusEvent* theWrappedObject) const; + bool lostFocus(QFocusEvent* theWrappedObject) const; +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QFocusFrame : public QFocusFrame +{ +public: + PythonQtShell_QFocusFrame(QWidget* parent = 0):QFocusFrame(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QFocusFrame(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual QSize sizeHint() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QFocusFrame : public QFocusFrame +{ public: +inline bool promoted_event(QEvent* e) { return QFocusFrame::event(e); } +inline bool promoted_eventFilter(QObject* arg__1, QEvent* arg__2) { return QFocusFrame::eventFilter(arg__1, arg__2); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QFocusFrame::paintEvent(arg__1); } +}; + +class PythonQtWrapper_QFocusFrame : public QObject +{ Q_OBJECT +public: +public slots: +QFocusFrame* new_QFocusFrame(QWidget* parent = 0); +void delete_QFocusFrame(QFocusFrame* obj) { delete obj; } + bool event(QFocusFrame* theWrappedObject, QEvent* e); + bool eventFilter(QFocusFrame* theWrappedObject, QObject* arg__1, QEvent* arg__2); + void paintEvent(QFocusFrame* theWrappedObject, QPaintEvent* arg__1); + void setWidget(QFocusFrame* theWrappedObject, QWidget* widget); + QWidget* widget(QFocusFrame* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QFontComboBox : public QFontComboBox +{ +public: + PythonQtShell_QFontComboBox(QWidget* parent = 0):QFontComboBox(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QFontComboBox(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* e); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* e); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* e); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* e); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* e); +virtual void hidePopup(); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* e); +virtual void keyReleaseEvent(QKeyEvent* e); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* e); +virtual void mouseReleaseEvent(QMouseEvent* e); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* e); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* e); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* e); +virtual void showPopup(); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* e); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QFontComboBox : public QFontComboBox +{ public: +inline bool promoted_event(QEvent* e) { return QFontComboBox::event(e); } +}; + +class PythonQtWrapper_QFontComboBox : public QObject +{ Q_OBJECT +public: +Q_ENUMS(FontFilter ) +Q_FLAGS(FontFilters ) +enum FontFilter{ + AllFonts = QFontComboBox::AllFonts, ScalableFonts = QFontComboBox::ScalableFonts, NonScalableFonts = QFontComboBox::NonScalableFonts, MonospacedFonts = QFontComboBox::MonospacedFonts, ProportionalFonts = QFontComboBox::ProportionalFonts}; +Q_DECLARE_FLAGS(FontFilters, FontFilter) +public slots: +QFontComboBox* new_QFontComboBox(QWidget* parent = 0); +void delete_QFontComboBox(QFontComboBox* obj) { delete obj; } + QFont currentFont(QFontComboBox* theWrappedObject) const; + bool event(QFontComboBox* theWrappedObject, QEvent* e); + QFontComboBox::FontFilters fontFilters(QFontComboBox* theWrappedObject) const; + void setFontFilters(QFontComboBox* theWrappedObject, QFontComboBox::FontFilters filters); + void setWritingSystem(QFontComboBox* theWrappedObject, QFontDatabase::WritingSystem arg__1); + QSize sizeHint(QFontComboBox* theWrappedObject) const; + QFontDatabase::WritingSystem writingSystem(QFontComboBox* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QFontDialog : public QFontDialog +{ +public: + PythonQtShell_QFontDialog(QWidget* parent = 0):QFontDialog(parent),_wrapper(NULL) {}; + PythonQtShell_QFontDialog(const QFont& initial, QWidget* parent = 0):QFontDialog(initial, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QFontDialog(); + +virtual void accept(); +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* event); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void done(int result); +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* object, QEvent* event); +virtual int exec(); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void open(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reject(); +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QFontDialog : public QFontDialog +{ public: +inline void promoted_changeEvent(QEvent* event) { QFontDialog::changeEvent(event); } +inline void promoted_done(int result) { QFontDialog::done(result); } +inline bool promoted_eventFilter(QObject* object, QEvent* event) { return QFontDialog::eventFilter(object, event); } +inline void promoted_open() { QFontDialog::open(); } +}; + +class PythonQtWrapper_QFontDialog : public QObject +{ Q_OBJECT +public: +public slots: +QFontDialog* new_QFontDialog(QWidget* parent = 0); +QFontDialog* new_QFontDialog(const QFont& initial, QWidget* parent = 0); +void delete_QFontDialog(QFontDialog* obj) { delete obj; } + void changeEvent(QFontDialog* theWrappedObject, QEvent* event); + QFont currentFont(QFontDialog* theWrappedObject) const; + void done(QFontDialog* theWrappedObject, int result); + bool eventFilter(QFontDialog* theWrappedObject, QObject* object, QEvent* event); + QFont static_QFontDialog_getFont(bool* ok, QWidget* parent = 0); + QFont static_QFontDialog_getFont(bool* ok, const QFont& initial, QWidget* parent = 0, const QString& title = QString(), QFontDialog::FontDialogOptions options = 0); + void open(QFontDialog* theWrappedObject); + void open(QFontDialog* theWrappedObject, QObject* receiver, const char* member); + QFontDialog::FontDialogOptions options(QFontDialog* theWrappedObject) const; + QFont selectedFont(QFontDialog* theWrappedObject) const; + void setCurrentFont(QFontDialog* theWrappedObject, const QFont& font); + void setOption(QFontDialog* theWrappedObject, QFontDialog::FontDialogOption option, bool on = true); + void setOptions(QFontDialog* theWrappedObject, QFontDialog::FontDialogOptions options); + void setVisible(QFontDialog* theWrappedObject, bool visible); + bool testOption(QFontDialog* theWrappedObject, QFontDialog::FontDialogOption option) const; +}; + +#endif + + + +class PythonQtWrapper_QFontInfo : public QObject +{ Q_OBJECT +public: +public slots: +QFontInfo* new_QFontInfo(const QFont& arg__1); +QFontInfo* new_QFontInfo(const QFontInfo& arg__1); +void delete_QFontInfo(QFontInfo* obj) { delete obj; } + bool bold(QFontInfo* theWrappedObject) const; + bool exactMatch(QFontInfo* theWrappedObject) const; + QString family(QFontInfo* theWrappedObject) const; + bool fixedPitch(QFontInfo* theWrappedObject) const; + bool italic(QFontInfo* theWrappedObject) const; + bool overline(QFontInfo* theWrappedObject) const; + int pixelSize(QFontInfo* theWrappedObject) const; + int pointSize(QFontInfo* theWrappedObject) const; + qreal pointSizeF(QFontInfo* theWrappedObject) const; + bool rawMode(QFontInfo* theWrappedObject) const; + bool strikeOut(QFontInfo* theWrappedObject) const; + QFont::Style style(QFontInfo* theWrappedObject) const; + QFont::StyleHint styleHint(QFontInfo* theWrappedObject) const; + QString styleName(QFontInfo* theWrappedObject) const; + void swap(QFontInfo* theWrappedObject, QFontInfo& other); + bool underline(QFontInfo* theWrappedObject) const; + int weight(QFontInfo* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QFontMetrics : public QObject +{ Q_OBJECT +public: +public slots: +QFontMetrics* new_QFontMetrics(const QFont& arg__1); +QFontMetrics* new_QFontMetrics(const QFont& arg__1, QPaintDevice* pd); +void delete_QFontMetrics(QFontMetrics* obj) { delete obj; } + int ascent(QFontMetrics* theWrappedObject) const; + int averageCharWidth(QFontMetrics* theWrappedObject) const; + QRect boundingRect(QFontMetrics* theWrappedObject, QChar arg__1) const; + QRect boundingRect(QFontMetrics* theWrappedObject, const QRect& r, int flags, const QString& text, int tabstops = 0, int* tabarray = 0) const; + QRect boundingRect(QFontMetrics* theWrappedObject, const QString& text) const; + QRect boundingRect(QFontMetrics* theWrappedObject, int x, int y, int w, int h, int flags, const QString& text, int tabstops = 0, int* tabarray = 0) const; + int charWidth(QFontMetrics* theWrappedObject, const QString& str, int pos) const; + int descent(QFontMetrics* theWrappedObject) const; + QString elidedText(QFontMetrics* theWrappedObject, const QString& text, Qt::TextElideMode mode, int width, int flags = 0) const; + int height(QFontMetrics* theWrappedObject) const; + bool inFont(QFontMetrics* theWrappedObject, QChar arg__1) const; + bool inFontUcs4(QFontMetrics* theWrappedObject, uint ucs4) const; + int leading(QFontMetrics* theWrappedObject) const; + int leftBearing(QFontMetrics* theWrappedObject, QChar arg__1) const; + int lineSpacing(QFontMetrics* theWrappedObject) const; + int lineWidth(QFontMetrics* theWrappedObject) const; + int maxWidth(QFontMetrics* theWrappedObject) const; + int minLeftBearing(QFontMetrics* theWrappedObject) const; + int minRightBearing(QFontMetrics* theWrappedObject) const; + int overlinePos(QFontMetrics* theWrappedObject) const; + int rightBearing(QFontMetrics* theWrappedObject, QChar arg__1) const; + QSize size(QFontMetrics* theWrappedObject, int flags, const QString& str, int tabstops = 0, int* tabarray = 0) const; + int strikeOutPos(QFontMetrics* theWrappedObject) const; + void swap(QFontMetrics* theWrappedObject, QFontMetrics& other); + QRect tightBoundingRect(QFontMetrics* theWrappedObject, const QString& text) const; + int underlinePos(QFontMetrics* theWrappedObject) const; + int width(QFontMetrics* theWrappedObject, QChar arg__1) const; + int width(QFontMetrics* theWrappedObject, const QString& arg__1, int len = -1) const; + int width(QFontMetrics* theWrappedObject, const QString& arg__1, int len, int flags) const; + int xHeight(QFontMetrics* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QFontMetricsF : public QObject +{ Q_OBJECT +public: +public slots: +QFontMetricsF* new_QFontMetricsF(const QFont& arg__1); +QFontMetricsF* new_QFontMetricsF(const QFont& arg__1, QPaintDevice* pd); +void delete_QFontMetricsF(QFontMetricsF* obj) { delete obj; } + qreal ascent(QFontMetricsF* theWrappedObject) const; + qreal averageCharWidth(QFontMetricsF* theWrappedObject) const; + QRectF boundingRect(QFontMetricsF* theWrappedObject, QChar arg__1) const; + QRectF boundingRect(QFontMetricsF* theWrappedObject, const QRectF& r, int flags, const QString& string, int tabstops = 0, int* tabarray = 0) const; + QRectF boundingRect(QFontMetricsF* theWrappedObject, const QString& string) const; + qreal descent(QFontMetricsF* theWrappedObject) const; + QString elidedText(QFontMetricsF* theWrappedObject, const QString& text, Qt::TextElideMode mode, qreal width, int flags = 0) const; + qreal height(QFontMetricsF* theWrappedObject) const; + bool inFont(QFontMetricsF* theWrappedObject, QChar arg__1) const; + bool inFontUcs4(QFontMetricsF* theWrappedObject, uint ucs4) const; + qreal leading(QFontMetricsF* theWrappedObject) const; + qreal leftBearing(QFontMetricsF* theWrappedObject, QChar arg__1) const; + qreal lineSpacing(QFontMetricsF* theWrappedObject) const; + qreal lineWidth(QFontMetricsF* theWrappedObject) const; + qreal maxWidth(QFontMetricsF* theWrappedObject) const; + qreal minLeftBearing(QFontMetricsF* theWrappedObject) const; + qreal minRightBearing(QFontMetricsF* theWrappedObject) const; + qreal overlinePos(QFontMetricsF* theWrappedObject) const; + qreal rightBearing(QFontMetricsF* theWrappedObject, QChar arg__1) const; + QSizeF size(QFontMetricsF* theWrappedObject, int flags, const QString& str, int tabstops = 0, int* tabarray = 0) const; + qreal strikeOutPos(QFontMetricsF* theWrappedObject) const; + void swap(QFontMetricsF* theWrappedObject, QFontMetricsF& other); + QRectF tightBoundingRect(QFontMetricsF* theWrappedObject, const QString& text) const; + qreal underlinePos(QFontMetricsF* theWrappedObject) const; + qreal width(QFontMetricsF* theWrappedObject, QChar arg__1) const; + qreal width(QFontMetricsF* theWrappedObject, const QString& string) const; + qreal xHeight(QFontMetricsF* theWrappedObject) const; +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QFormLayout : public QFormLayout +{ +public: + PythonQtShell_QFormLayout(QWidget* parent = 0):QFormLayout(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QFormLayout(); + +virtual void addItem(QLayoutItem* item); +virtual void childEvent(QChildEvent* e); +virtual QSizePolicy::ControlTypes controlTypes() const; +virtual int count() const; +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual Qt::Orientations expandingDirections() const; +virtual QRect geometry() const; +virtual int indexOf(QWidget* arg__1) const; +virtual void invalidate(); +virtual bool isEmpty() const; +virtual QLayoutItem* itemAt(int index) const; +virtual QLayout* layout(); +virtual QSize maximumSize() const; +virtual QSize minimumSize() const; +virtual void setGeometry(const QRect& rect); +virtual QLayoutItem* takeAt(int index); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QFormLayout : public QFormLayout +{ public: +inline void promoted_addItem(QLayoutItem* item) { QFormLayout::addItem(item); } +inline int promoted_count() const { return QFormLayout::count(); } +inline Qt::Orientations promoted_expandingDirections() const { return QFormLayout::expandingDirections(); } +inline void promoted_invalidate() { QFormLayout::invalidate(); } +inline QLayoutItem* promoted_itemAt(int index) const { return QFormLayout::itemAt(index); } +inline QSize promoted_minimumSize() const { return QFormLayout::minimumSize(); } +inline void promoted_setGeometry(const QRect& rect) { QFormLayout::setGeometry(rect); } +inline QLayoutItem* promoted_takeAt(int index) { return QFormLayout::takeAt(index); } +}; + +class PythonQtWrapper_QFormLayout : public QObject +{ Q_OBJECT +public: +public slots: +QFormLayout* new_QFormLayout(QWidget* parent = 0); +void delete_QFormLayout(QFormLayout* obj) { delete obj; } + void addItem(QFormLayout* theWrappedObject, QLayoutItem* item); + void addRow(QFormLayout* theWrappedObject, QLayout* layout); + void addRow(QFormLayout* theWrappedObject, QWidget* label, QLayout* field); + void addRow(QFormLayout* theWrappedObject, QWidget* label, QWidget* field); + void addRow(QFormLayout* theWrappedObject, QWidget* widget); + void addRow(QFormLayout* theWrappedObject, const QString& labelText, QLayout* field); + void addRow(QFormLayout* theWrappedObject, const QString& labelText, QWidget* field); + int count(QFormLayout* theWrappedObject) const; + Qt::Orientations expandingDirections(QFormLayout* theWrappedObject) const; + QFormLayout::FieldGrowthPolicy fieldGrowthPolicy(QFormLayout* theWrappedObject) const; + Qt::Alignment formAlignment(QFormLayout* theWrappedObject) const; + void getItemPosition(QFormLayout* theWrappedObject, int index, int* rowPtr, QFormLayout::ItemRole* rolePtr) const; + void getLayoutPosition(QFormLayout* theWrappedObject, QLayout* layout, int* rowPtr, QFormLayout::ItemRole* rolePtr) const; + void getWidgetPosition(QFormLayout* theWrappedObject, QWidget* widget, int* rowPtr, QFormLayout::ItemRole* rolePtr) const; + bool hasHeightForWidth(QFormLayout* theWrappedObject) const; + int heightForWidth(QFormLayout* theWrappedObject, int width) const; + int horizontalSpacing(QFormLayout* theWrappedObject) const; + void insertRow(QFormLayout* theWrappedObject, int row, QLayout* layout); + void insertRow(QFormLayout* theWrappedObject, int row, QWidget* label, QLayout* field); + void insertRow(QFormLayout* theWrappedObject, int row, QWidget* label, QWidget* field); + void insertRow(QFormLayout* theWrappedObject, int row, QWidget* widget); + void insertRow(QFormLayout* theWrappedObject, int row, const QString& labelText, QLayout* field); + void insertRow(QFormLayout* theWrappedObject, int row, const QString& labelText, QWidget* field); + void invalidate(QFormLayout* theWrappedObject); + QLayoutItem* itemAt(QFormLayout* theWrappedObject, int index) const; + QLayoutItem* itemAt(QFormLayout* theWrappedObject, int row, QFormLayout::ItemRole role) const; + Qt::Alignment labelAlignment(QFormLayout* theWrappedObject) const; + QWidget* labelForField(QFormLayout* theWrappedObject, QLayout* field) const; + QWidget* labelForField(QFormLayout* theWrappedObject, QWidget* field) const; + QSize minimumSize(QFormLayout* theWrappedObject) const; + int rowCount(QFormLayout* theWrappedObject) const; + QFormLayout::RowWrapPolicy rowWrapPolicy(QFormLayout* theWrappedObject) const; + void setFieldGrowthPolicy(QFormLayout* theWrappedObject, QFormLayout::FieldGrowthPolicy policy); + void setFormAlignment(QFormLayout* theWrappedObject, Qt::Alignment alignment); + void setGeometry(QFormLayout* theWrappedObject, const QRect& rect); + void setHorizontalSpacing(QFormLayout* theWrappedObject, int spacing); + void setItem(QFormLayout* theWrappedObject, int row, QFormLayout::ItemRole role, QLayoutItem* item); + void setLabelAlignment(QFormLayout* theWrappedObject, Qt::Alignment alignment); + void setLayout(QFormLayout* theWrappedObject, int row, QFormLayout::ItemRole role, QLayout* layout); + void setRowWrapPolicy(QFormLayout* theWrappedObject, QFormLayout::RowWrapPolicy policy); + void setSpacing(QFormLayout* theWrappedObject, int arg__1); + void setVerticalSpacing(QFormLayout* theWrappedObject, int spacing); + void setWidget(QFormLayout* theWrappedObject, int row, QFormLayout::ItemRole role, QWidget* widget); + QSize sizeHint(QFormLayout* theWrappedObject) const; + int spacing(QFormLayout* theWrappedObject) const; + QLayoutItem* takeAt(QFormLayout* theWrappedObject, int index); + int verticalSpacing(QFormLayout* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QFrame : public QFrame +{ +public: + PythonQtShell_QFrame(QWidget* parent = 0, Qt::WindowFlags f = 0):QFrame(parent, f),_wrapper(NULL) {}; + + ~PythonQtShell_QFrame(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QFrame : public QFrame +{ public: +inline void promoted_changeEvent(QEvent* arg__1) { QFrame::changeEvent(arg__1); } +inline bool promoted_event(QEvent* e) { return QFrame::event(e); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QFrame::paintEvent(arg__1); } +}; + +class PythonQtWrapper_QFrame : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleMask ) +enum StyleMask{ + Shadow_Mask = QFrame::Shadow_Mask, Shape_Mask = QFrame::Shape_Mask}; +public slots: +QFrame* new_QFrame(QWidget* parent = 0, Qt::WindowFlags f = 0); +void delete_QFrame(QFrame* obj) { delete obj; } + void changeEvent(QFrame* theWrappedObject, QEvent* arg__1); + bool event(QFrame* theWrappedObject, QEvent* e); + QRect frameRect(QFrame* theWrappedObject) const; + QFrame::Shadow frameShadow(QFrame* theWrappedObject) const; + QFrame::Shape frameShape(QFrame* theWrappedObject) const; + int frameStyle(QFrame* theWrappedObject) const; + int frameWidth(QFrame* theWrappedObject) const; + int lineWidth(QFrame* theWrappedObject) const; + int midLineWidth(QFrame* theWrappedObject) const; + void paintEvent(QFrame* theWrappedObject, QPaintEvent* arg__1); + void setFrameRect(QFrame* theWrappedObject, const QRect& arg__1); + void setFrameShadow(QFrame* theWrappedObject, QFrame::Shadow arg__1); + void setFrameShape(QFrame* theWrappedObject, QFrame::Shape arg__1); + void setFrameStyle(QFrame* theWrappedObject, int arg__1); + void setLineWidth(QFrame* theWrappedObject, int arg__1); + void setMidLineWidth(QFrame* theWrappedObject, int arg__1); + QSize sizeHint(QFrame* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGesture : public QGesture +{ +public: + PythonQtShell_QGesture(QObject* parent = 0):QGesture(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGesture(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QGesture : public QObject +{ Q_OBJECT +public: +Q_ENUMS(GestureCancelPolicy ) +enum GestureCancelPolicy{ + CancelNone = QGesture::CancelNone, CancelAllInContext = QGesture::CancelAllInContext}; +public slots: +QGesture* new_QGesture(QObject* parent = 0); +void delete_QGesture(QGesture* obj) { delete obj; } + QGesture::GestureCancelPolicy gestureCancelPolicy(QGesture* theWrappedObject) const; + Qt::GestureType gestureType(QGesture* theWrappedObject) const; + bool hasHotSpot(QGesture* theWrappedObject) const; + QPointF hotSpot(QGesture* theWrappedObject) const; + void setGestureCancelPolicy(QGesture* theWrappedObject, QGesture::GestureCancelPolicy policy); + void setHotSpot(QGesture* theWrappedObject, const QPointF& value); + Qt::GestureState state(QGesture* theWrappedObject) const; + void unsetHotSpot(QGesture* theWrappedObject); +}; + +#endif + + + +class PythonQtWrapper_QGradient : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Spread Type CoordinateMode ) +enum Spread{ + PadSpread = QGradient::PadSpread, ReflectSpread = QGradient::ReflectSpread, RepeatSpread = QGradient::RepeatSpread}; +enum Type{ + LinearGradient = QGradient::LinearGradient, RadialGradient = QGradient::RadialGradient, ConicalGradient = QGradient::ConicalGradient, NoGradient = QGradient::NoGradient}; +enum CoordinateMode{ + LogicalMode = QGradient::LogicalMode, StretchToDeviceMode = QGradient::StretchToDeviceMode, ObjectBoundingMode = QGradient::ObjectBoundingMode}; +public slots: +QGradient* new_QGradient(); +QGradient* new_QGradient(const QGradient& other) { +QGradient* a = new QGradient(); +*((QGradient*)a) = other; +return a; } +void delete_QGradient(QGradient* obj) { delete obj; } + QGradient::CoordinateMode coordinateMode(QGradient* theWrappedObject) const; + bool __ne__(QGradient* theWrappedObject, const QGradient& other) const; + bool __eq__(QGradient* theWrappedObject, const QGradient& gradient) const; + void setColorAt(QGradient* theWrappedObject, qreal pos, const QColor& color); + void setCoordinateMode(QGradient* theWrappedObject, QGradient::CoordinateMode mode); + void setSpread(QGradient* theWrappedObject, QGradient::Spread spread); + void setStops(QGradient* theWrappedObject, const QVector >& stops); + QGradient::Spread spread(QGradient* theWrappedObject) const; + QVector > stops(QGradient* theWrappedObject) const; + QGradient::Type type(QGradient* theWrappedObject) const; +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtWrapper_QGraphicsAnchor : public QObject +{ Q_OBJECT +public: +public slots: +void delete_QGraphicsAnchor(QGraphicsAnchor* obj) { delete obj; } + void setSizePolicy(QGraphicsAnchor* theWrappedObject, QSizePolicy::Policy policy); + void setSpacing(QGraphicsAnchor* theWrappedObject, qreal spacing); + QSizePolicy::Policy sizePolicy(QGraphicsAnchor* theWrappedObject) const; + qreal spacing(QGraphicsAnchor* theWrappedObject) const; + void unsetSpacing(QGraphicsAnchor* theWrappedObject); +}; + + + + + +class PythonQtShell_QGraphicsAnchorLayout : public QGraphicsAnchorLayout +{ +public: + PythonQtShell_QGraphicsAnchorLayout(QGraphicsLayoutItem* parent = 0):QGraphicsAnchorLayout(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsAnchorLayout(); + +virtual int count() const; +virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; +virtual void invalidate(); +virtual QGraphicsLayoutItem* itemAt(int index) const; +virtual void removeAt(int index); +virtual void updateGeometry(); +virtual void widgetEvent(QEvent* e); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsAnchorLayout : public QGraphicsAnchorLayout +{ public: +inline int promoted_count() const { return QGraphicsAnchorLayout::count(); } +inline void promoted_invalidate() { QGraphicsAnchorLayout::invalidate(); } +inline QGraphicsLayoutItem* promoted_itemAt(int index) const { return QGraphicsAnchorLayout::itemAt(index); } +inline void promoted_removeAt(int index) { QGraphicsAnchorLayout::removeAt(index); } +}; + +class PythonQtWrapper_QGraphicsAnchorLayout : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsAnchorLayout* new_QGraphicsAnchorLayout(QGraphicsLayoutItem* parent = 0); +void delete_QGraphicsAnchorLayout(QGraphicsAnchorLayout* obj) { delete obj; } + QGraphicsAnchor* addAnchor(QGraphicsAnchorLayout* theWrappedObject, QGraphicsLayoutItem* firstItem, Qt::AnchorPoint firstEdge, QGraphicsLayoutItem* secondItem, Qt::AnchorPoint secondEdge); + void addAnchors(QGraphicsAnchorLayout* theWrappedObject, QGraphicsLayoutItem* firstItem, QGraphicsLayoutItem* secondItem, Qt::Orientations orientations = Qt::Horizontal | Qt::Vertical); + void addCornerAnchors(QGraphicsAnchorLayout* theWrappedObject, QGraphicsLayoutItem* firstItem, Qt::Corner firstCorner, QGraphicsLayoutItem* secondItem, Qt::Corner secondCorner); + QGraphicsAnchor* anchor(QGraphicsAnchorLayout* theWrappedObject, QGraphicsLayoutItem* firstItem, Qt::AnchorPoint firstEdge, QGraphicsLayoutItem* secondItem, Qt::AnchorPoint secondEdge); + int count(QGraphicsAnchorLayout* theWrappedObject) const; + qreal horizontalSpacing(QGraphicsAnchorLayout* theWrappedObject) const; + void invalidate(QGraphicsAnchorLayout* theWrappedObject); + QGraphicsLayoutItem* itemAt(QGraphicsAnchorLayout* theWrappedObject, int index) const; + void removeAt(QGraphicsAnchorLayout* theWrappedObject, int index); + void setGeometry(QGraphicsAnchorLayout* theWrappedObject, const QRectF& rect); + void setHorizontalSpacing(QGraphicsAnchorLayout* theWrappedObject, qreal spacing); + void setSpacing(QGraphicsAnchorLayout* theWrappedObject, qreal spacing); + void setVerticalSpacing(QGraphicsAnchorLayout* theWrappedObject, qreal spacing); + qreal verticalSpacing(QGraphicsAnchorLayout* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGraphicsBlurEffect : public QGraphicsBlurEffect +{ +public: + PythonQtShell_QGraphicsBlurEffect(QObject* parent = 0):QGraphicsBlurEffect(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsBlurEffect(); + +virtual QRectF boundingRectFor(const QRectF& rect) const; +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual void draw(QPainter* painter); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void sourceChanged(QGraphicsEffect::ChangeFlags flags); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsBlurEffect : public QGraphicsBlurEffect +{ public: +inline QRectF promoted_boundingRectFor(const QRectF& rect) const { return QGraphicsBlurEffect::boundingRectFor(rect); } +inline void promoted_draw(QPainter* painter) { QGraphicsBlurEffect::draw(painter); } +}; + +class PythonQtWrapper_QGraphicsBlurEffect : public QObject +{ Q_OBJECT +public: +Q_ENUMS(BlurHint ) +Q_FLAGS(BlurHints ) +enum BlurHint{ + PerformanceHint = QGraphicsBlurEffect::PerformanceHint, QualityHint = QGraphicsBlurEffect::QualityHint, AnimationHint = QGraphicsBlurEffect::AnimationHint}; +Q_DECLARE_FLAGS(BlurHints, BlurHint) +public slots: +QGraphicsBlurEffect* new_QGraphicsBlurEffect(QObject* parent = 0); +void delete_QGraphicsBlurEffect(QGraphicsBlurEffect* obj) { delete obj; } + QGraphicsBlurEffect::BlurHints blurHints(QGraphicsBlurEffect* theWrappedObject) const; + qreal blurRadius(QGraphicsBlurEffect* theWrappedObject) const; + QRectF boundingRectFor(QGraphicsBlurEffect* theWrappedObject, const QRectF& rect) const; + void draw(QGraphicsBlurEffect* theWrappedObject, QPainter* painter); +}; + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp new file mode 100644 index 00000000..1a7a3cf6 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp @@ -0,0 +1,10161 @@ +#include "com_trolltech_qt_gui2.h" + +#include +#include +#include + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QGraphicsColorizeEffect::~PythonQtShell_QGraphicsColorizeEffect() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QRectF PythonQtShell_QGraphicsColorizeEffect::boundingRectFor(const QRectF& sourceRect) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRectFor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRectF" , "const QRectF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRectF returnValue; + void* args[2] = {NULL, (void*)&sourceRect}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("boundingRectFor", methodInfo, result); + } else { + returnValue = *((QRectF*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsColorizeEffect::boundingRectFor(sourceRect); +} +void PythonQtShell_QGraphicsColorizeEffect::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsColorizeEffect::childEvent(arg__1); +} +void PythonQtShell_QGraphicsColorizeEffect::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsColorizeEffect::customEvent(arg__1); +} +void PythonQtShell_QGraphicsColorizeEffect::draw(QPainter* painter) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "draw"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsColorizeEffect::draw(painter); +} +bool PythonQtShell_QGraphicsColorizeEffect::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsColorizeEffect::event(arg__1); +} +bool PythonQtShell_QGraphicsColorizeEffect::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsColorizeEffect::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QGraphicsColorizeEffect::sourceChanged(QGraphicsEffect::ChangeFlags flags) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sourceChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsEffect::ChangeFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&flags}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsColorizeEffect::sourceChanged(flags); +} +void PythonQtShell_QGraphicsColorizeEffect::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsColorizeEffect::timerEvent(arg__1); +} +QGraphicsColorizeEffect* PythonQtWrapper_QGraphicsColorizeEffect::new_QGraphicsColorizeEffect(QObject* parent) +{ +return new PythonQtShell_QGraphicsColorizeEffect(parent); } + +QColor PythonQtWrapper_QGraphicsColorizeEffect::color(QGraphicsColorizeEffect* theWrappedObject) const +{ + return ( theWrappedObject->color()); +} + +void PythonQtWrapper_QGraphicsColorizeEffect::draw(QGraphicsColorizeEffect* theWrappedObject, QPainter* painter) +{ + ( ((PythonQtPublicPromoter_QGraphicsColorizeEffect*)theWrappedObject)->promoted_draw(painter)); +} + +qreal PythonQtWrapper_QGraphicsColorizeEffect::strength(QGraphicsColorizeEffect* theWrappedObject) const +{ + return ( theWrappedObject->strength()); +} + + + +PythonQtShell_QGraphicsDropShadowEffect::~PythonQtShell_QGraphicsDropShadowEffect() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QRectF PythonQtShell_QGraphicsDropShadowEffect::boundingRectFor(const QRectF& rect) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRectFor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRectF" , "const QRectF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRectF returnValue; + void* args[2] = {NULL, (void*)&rect}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("boundingRectFor", methodInfo, result); + } else { + returnValue = *((QRectF*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsDropShadowEffect::boundingRectFor(rect); +} +void PythonQtShell_QGraphicsDropShadowEffect::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsDropShadowEffect::childEvent(arg__1); +} +void PythonQtShell_QGraphicsDropShadowEffect::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsDropShadowEffect::customEvent(arg__1); +} +void PythonQtShell_QGraphicsDropShadowEffect::draw(QPainter* painter) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "draw"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsDropShadowEffect::draw(painter); +} +bool PythonQtShell_QGraphicsDropShadowEffect::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsDropShadowEffect::event(arg__1); +} +bool PythonQtShell_QGraphicsDropShadowEffect::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsDropShadowEffect::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QGraphicsDropShadowEffect::sourceChanged(QGraphicsEffect::ChangeFlags flags) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sourceChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsEffect::ChangeFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&flags}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsDropShadowEffect::sourceChanged(flags); +} +void PythonQtShell_QGraphicsDropShadowEffect::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsDropShadowEffect::timerEvent(arg__1); +} +QGraphicsDropShadowEffect* PythonQtWrapper_QGraphicsDropShadowEffect::new_QGraphicsDropShadowEffect(QObject* parent) +{ +return new PythonQtShell_QGraphicsDropShadowEffect(parent); } + +qreal PythonQtWrapper_QGraphicsDropShadowEffect::blurRadius(QGraphicsDropShadowEffect* theWrappedObject) const +{ + return ( theWrappedObject->blurRadius()); +} + +QRectF PythonQtWrapper_QGraphicsDropShadowEffect::boundingRectFor(QGraphicsDropShadowEffect* theWrappedObject, const QRectF& rect) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsDropShadowEffect*)theWrappedObject)->promoted_boundingRectFor(rect)); +} + +QColor PythonQtWrapper_QGraphicsDropShadowEffect::color(QGraphicsDropShadowEffect* theWrappedObject) const +{ + return ( theWrappedObject->color()); +} + +void PythonQtWrapper_QGraphicsDropShadowEffect::draw(QGraphicsDropShadowEffect* theWrappedObject, QPainter* painter) +{ + ( ((PythonQtPublicPromoter_QGraphicsDropShadowEffect*)theWrappedObject)->promoted_draw(painter)); +} + +QPointF PythonQtWrapper_QGraphicsDropShadowEffect::offset(QGraphicsDropShadowEffect* theWrappedObject) const +{ + return ( theWrappedObject->offset()); +} + +qreal PythonQtWrapper_QGraphicsDropShadowEffect::xOffset(QGraphicsDropShadowEffect* theWrappedObject) const +{ + return ( theWrappedObject->xOffset()); +} + +qreal PythonQtWrapper_QGraphicsDropShadowEffect::yOffset(QGraphicsDropShadowEffect* theWrappedObject) const +{ + return ( theWrappedObject->yOffset()); +} + + + +PythonQtShell_QGraphicsEffect::~PythonQtShell_QGraphicsEffect() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QRectF PythonQtShell_QGraphicsEffect::boundingRectFor(const QRectF& sourceRect) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRectFor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRectF" , "const QRectF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRectF returnValue; + void* args[2] = {NULL, (void*)&sourceRect}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("boundingRectFor", methodInfo, result); + } else { + returnValue = *((QRectF*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsEffect::boundingRectFor(sourceRect); +} +void PythonQtShell_QGraphicsEffect::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsEffect::childEvent(arg__1); +} +void PythonQtShell_QGraphicsEffect::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsEffect::customEvent(arg__1); +} +void PythonQtShell_QGraphicsEffect::draw(QPainter* painter) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "draw"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +bool PythonQtShell_QGraphicsEffect::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsEffect::event(arg__1); +} +bool PythonQtShell_QGraphicsEffect::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsEffect::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QGraphicsEffect::sourceChanged(QGraphicsEffect::ChangeFlags flags) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sourceChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsEffect::ChangeFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&flags}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsEffect::sourceChanged(flags); +} +void PythonQtShell_QGraphicsEffect::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsEffect::timerEvent(arg__1); +} +QGraphicsEffect* PythonQtWrapper_QGraphicsEffect::new_QGraphicsEffect(QObject* parent) +{ +return new PythonQtShell_QGraphicsEffect(parent); } + +QRectF PythonQtWrapper_QGraphicsEffect::boundingRect(QGraphicsEffect* theWrappedObject) const +{ + return ( theWrappedObject->boundingRect()); +} + +QRectF PythonQtWrapper_QGraphicsEffect::boundingRectFor(QGraphicsEffect* theWrappedObject, const QRectF& sourceRect) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsEffect*)theWrappedObject)->promoted_boundingRectFor(sourceRect)); +} + +bool PythonQtWrapper_QGraphicsEffect::isEnabled(QGraphicsEffect* theWrappedObject) const +{ + return ( theWrappedObject->isEnabled()); +} + +void PythonQtWrapper_QGraphicsEffect::sourceChanged(QGraphicsEffect* theWrappedObject, QGraphicsEffect::ChangeFlags flags) +{ + ( ((PythonQtPublicPromoter_QGraphicsEffect*)theWrappedObject)->promoted_sourceChanged(flags)); +} + + + +PythonQtShell_QGraphicsEllipseItem::~PythonQtShell_QGraphicsEllipseItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QGraphicsEllipseItem::isObscuredBy(const QGraphicsItem* item) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&item}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsEllipseItem::isObscuredBy(item); +} +QPainterPath PythonQtShell_QGraphicsEllipseItem::opaqueArea() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainterPath"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainterPath returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); + } else { + returnValue = *((QPainterPath*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsEllipseItem::opaqueArea(); +} +QGraphicsEllipseItem* PythonQtWrapper_QGraphicsEllipseItem::new_QGraphicsEllipseItem(QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsEllipseItem(parent); } + +QGraphicsEllipseItem* PythonQtWrapper_QGraphicsEllipseItem::new_QGraphicsEllipseItem(const QRectF& rect, QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsEllipseItem(rect, parent); } + +QGraphicsEllipseItem* PythonQtWrapper_QGraphicsEllipseItem::new_QGraphicsEllipseItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsEllipseItem(x, y, w, h, parent); } + +QRectF PythonQtWrapper_QGraphicsEllipseItem::boundingRect(QGraphicsEllipseItem* theWrappedObject) const +{ + return ( theWrappedObject->boundingRect()); +} + +bool PythonQtWrapper_QGraphicsEllipseItem::contains(QGraphicsEllipseItem* theWrappedObject, const QPointF& point) const +{ + return ( theWrappedObject->contains(point)); +} + +bool PythonQtWrapper_QGraphicsEllipseItem::isObscuredBy(QGraphicsEllipseItem* theWrappedObject, const QGraphicsItem* item) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsEllipseItem*)theWrappedObject)->promoted_isObscuredBy(item)); +} + +QPainterPath PythonQtWrapper_QGraphicsEllipseItem::opaqueArea(QGraphicsEllipseItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsEllipseItem*)theWrappedObject)->promoted_opaqueArea()); +} + +void PythonQtWrapper_QGraphicsEllipseItem::paint(QGraphicsEllipseItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ + ( theWrappedObject->paint(painter, option, widget)); +} + +QRectF PythonQtWrapper_QGraphicsEllipseItem::rect(QGraphicsEllipseItem* theWrappedObject) const +{ + return ( theWrappedObject->rect()); +} + +void PythonQtWrapper_QGraphicsEllipseItem::setRect(QGraphicsEllipseItem* theWrappedObject, const QRectF& rect) +{ + ( theWrappedObject->setRect(rect)); +} + +void PythonQtWrapper_QGraphicsEllipseItem::setRect(QGraphicsEllipseItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) +{ + ( theWrappedObject->setRect(x, y, w, h)); +} + +void PythonQtWrapper_QGraphicsEllipseItem::setSpanAngle(QGraphicsEllipseItem* theWrappedObject, int angle) +{ + ( theWrappedObject->setSpanAngle(angle)); +} + +void PythonQtWrapper_QGraphicsEllipseItem::setStartAngle(QGraphicsEllipseItem* theWrappedObject, int angle) +{ + ( theWrappedObject->setStartAngle(angle)); +} + +QPainterPath PythonQtWrapper_QGraphicsEllipseItem::shape(QGraphicsEllipseItem* theWrappedObject) const +{ + return ( theWrappedObject->shape()); +} + +int PythonQtWrapper_QGraphicsEllipseItem::spanAngle(QGraphicsEllipseItem* theWrappedObject) const +{ + return ( theWrappedObject->spanAngle()); +} + +int PythonQtWrapper_QGraphicsEllipseItem::startAngle(QGraphicsEllipseItem* theWrappedObject) const +{ + return ( theWrappedObject->startAngle()); +} + +int PythonQtWrapper_QGraphicsEllipseItem::type(QGraphicsEllipseItem* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + + + +PythonQtShell_QGraphicsGridLayout::~PythonQtShell_QGraphicsGridLayout() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +int PythonQtShell_QGraphicsGridLayout::count() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsGridLayout::count(); +} +void PythonQtShell_QGraphicsGridLayout::getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getContentsMargins"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "qreal*" , "qreal*" , "qreal*" , "qreal*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&left, (void*)&top, (void*)&right, (void*)&bottom}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsGridLayout::getContentsMargins(left, top, right, bottom); +} +void PythonQtShell_QGraphicsGridLayout::invalidate() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsGridLayout::invalidate(); +} +QGraphicsLayoutItem* PythonQtShell_QGraphicsGridLayout::itemAt(int index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QGraphicsLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QGraphicsLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); + } else { + returnValue = *((QGraphicsLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsGridLayout::itemAt(index); +} +void PythonQtShell_QGraphicsGridLayout::removeAt(int index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsGridLayout::removeAt(index); +} +void PythonQtShell_QGraphicsGridLayout::updateGeometry() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsGridLayout::updateGeometry(); +} +void PythonQtShell_QGraphicsGridLayout::widgetEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widgetEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsGridLayout::widgetEvent(e); +} +QGraphicsGridLayout* PythonQtWrapper_QGraphicsGridLayout::new_QGraphicsGridLayout(QGraphicsLayoutItem* parent) +{ +return new PythonQtShell_QGraphicsGridLayout(parent); } + +void PythonQtWrapper_QGraphicsGridLayout::addItem(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, int row, int column, Qt::Alignment alignment) +{ + ( theWrappedObject->addItem(item, row, column, alignment)); +} + +void PythonQtWrapper_QGraphicsGridLayout::addItem(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment) +{ + ( theWrappedObject->addItem(item, row, column, rowSpan, columnSpan, alignment)); +} + +Qt::Alignment PythonQtWrapper_QGraphicsGridLayout::alignment(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item) const +{ + return ( theWrappedObject->alignment(item)); +} + +Qt::Alignment PythonQtWrapper_QGraphicsGridLayout::columnAlignment(QGraphicsGridLayout* theWrappedObject, int column) const +{ + return ( theWrappedObject->columnAlignment(column)); +} + +int PythonQtWrapper_QGraphicsGridLayout::columnCount(QGraphicsGridLayout* theWrappedObject) const +{ + return ( theWrappedObject->columnCount()); +} + +qreal PythonQtWrapper_QGraphicsGridLayout::columnMaximumWidth(QGraphicsGridLayout* theWrappedObject, int column) const +{ + return ( theWrappedObject->columnMaximumWidth(column)); +} + +qreal PythonQtWrapper_QGraphicsGridLayout::columnMinimumWidth(QGraphicsGridLayout* theWrappedObject, int column) const +{ + return ( theWrappedObject->columnMinimumWidth(column)); +} + +qreal PythonQtWrapper_QGraphicsGridLayout::columnPreferredWidth(QGraphicsGridLayout* theWrappedObject, int column) const +{ + return ( theWrappedObject->columnPreferredWidth(column)); +} + +qreal PythonQtWrapper_QGraphicsGridLayout::columnSpacing(QGraphicsGridLayout* theWrappedObject, int column) const +{ + return ( theWrappedObject->columnSpacing(column)); +} + +int PythonQtWrapper_QGraphicsGridLayout::columnStretchFactor(QGraphicsGridLayout* theWrappedObject, int column) const +{ + return ( theWrappedObject->columnStretchFactor(column)); +} + +int PythonQtWrapper_QGraphicsGridLayout::count(QGraphicsGridLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsGridLayout*)theWrappedObject)->promoted_count()); +} + +qreal PythonQtWrapper_QGraphicsGridLayout::horizontalSpacing(QGraphicsGridLayout* theWrappedObject) const +{ + return ( theWrappedObject->horizontalSpacing()); +} + +void PythonQtWrapper_QGraphicsGridLayout::invalidate(QGraphicsGridLayout* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGraphicsGridLayout*)theWrappedObject)->promoted_invalidate()); +} + +QGraphicsLayoutItem* PythonQtWrapper_QGraphicsGridLayout::itemAt(QGraphicsGridLayout* theWrappedObject, int index) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsGridLayout*)theWrappedObject)->promoted_itemAt(index)); +} + +QGraphicsLayoutItem* PythonQtWrapper_QGraphicsGridLayout::itemAt(QGraphicsGridLayout* theWrappedObject, int row, int column) const +{ + return ( theWrappedObject->itemAt(row, column)); +} + +void PythonQtWrapper_QGraphicsGridLayout::removeAt(QGraphicsGridLayout* theWrappedObject, int index) +{ + ( ((PythonQtPublicPromoter_QGraphicsGridLayout*)theWrappedObject)->promoted_removeAt(index)); +} + +void PythonQtWrapper_QGraphicsGridLayout::removeItem(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item) +{ + ( theWrappedObject->removeItem(item)); +} + +Qt::Alignment PythonQtWrapper_QGraphicsGridLayout::rowAlignment(QGraphicsGridLayout* theWrappedObject, int row) const +{ + return ( theWrappedObject->rowAlignment(row)); +} + +int PythonQtWrapper_QGraphicsGridLayout::rowCount(QGraphicsGridLayout* theWrappedObject) const +{ + return ( theWrappedObject->rowCount()); +} + +qreal PythonQtWrapper_QGraphicsGridLayout::rowMaximumHeight(QGraphicsGridLayout* theWrappedObject, int row) const +{ + return ( theWrappedObject->rowMaximumHeight(row)); +} + +qreal PythonQtWrapper_QGraphicsGridLayout::rowMinimumHeight(QGraphicsGridLayout* theWrappedObject, int row) const +{ + return ( theWrappedObject->rowMinimumHeight(row)); +} + +qreal PythonQtWrapper_QGraphicsGridLayout::rowPreferredHeight(QGraphicsGridLayout* theWrappedObject, int row) const +{ + return ( theWrappedObject->rowPreferredHeight(row)); +} + +qreal PythonQtWrapper_QGraphicsGridLayout::rowSpacing(QGraphicsGridLayout* theWrappedObject, int row) const +{ + return ( theWrappedObject->rowSpacing(row)); +} + +int PythonQtWrapper_QGraphicsGridLayout::rowStretchFactor(QGraphicsGridLayout* theWrappedObject, int row) const +{ + return ( theWrappedObject->rowStretchFactor(row)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setAlignment(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, Qt::Alignment alignment) +{ + ( theWrappedObject->setAlignment(item, alignment)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setColumnAlignment(QGraphicsGridLayout* theWrappedObject, int column, Qt::Alignment alignment) +{ + ( theWrappedObject->setColumnAlignment(column, alignment)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setColumnFixedWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width) +{ + ( theWrappedObject->setColumnFixedWidth(column, width)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setColumnMaximumWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width) +{ + ( theWrappedObject->setColumnMaximumWidth(column, width)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setColumnMinimumWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width) +{ + ( theWrappedObject->setColumnMinimumWidth(column, width)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setColumnPreferredWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width) +{ + ( theWrappedObject->setColumnPreferredWidth(column, width)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setColumnSpacing(QGraphicsGridLayout* theWrappedObject, int column, qreal spacing) +{ + ( theWrappedObject->setColumnSpacing(column, spacing)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setColumnStretchFactor(QGraphicsGridLayout* theWrappedObject, int column, int stretch) +{ + ( theWrappedObject->setColumnStretchFactor(column, stretch)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setGeometry(QGraphicsGridLayout* theWrappedObject, const QRectF& rect) +{ + ( theWrappedObject->setGeometry(rect)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setHorizontalSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing) +{ + ( theWrappedObject->setHorizontalSpacing(spacing)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setRowAlignment(QGraphicsGridLayout* theWrappedObject, int row, Qt::Alignment alignment) +{ + ( theWrappedObject->setRowAlignment(row, alignment)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setRowFixedHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height) +{ + ( theWrappedObject->setRowFixedHeight(row, height)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setRowMaximumHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height) +{ + ( theWrappedObject->setRowMaximumHeight(row, height)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setRowMinimumHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height) +{ + ( theWrappedObject->setRowMinimumHeight(row, height)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setRowPreferredHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height) +{ + ( theWrappedObject->setRowPreferredHeight(row, height)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setRowSpacing(QGraphicsGridLayout* theWrappedObject, int row, qreal spacing) +{ + ( theWrappedObject->setRowSpacing(row, spacing)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setRowStretchFactor(QGraphicsGridLayout* theWrappedObject, int row, int stretch) +{ + ( theWrappedObject->setRowStretchFactor(row, stretch)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing) +{ + ( theWrappedObject->setSpacing(spacing)); +} + +void PythonQtWrapper_QGraphicsGridLayout::setVerticalSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing) +{ + ( theWrappedObject->setVerticalSpacing(spacing)); +} + +QSizeF PythonQtWrapper_QGraphicsGridLayout::sizeHint(QGraphicsGridLayout* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint) const +{ + return ( theWrappedObject->sizeHint(which, constraint)); +} + +qreal PythonQtWrapper_QGraphicsGridLayout::verticalSpacing(QGraphicsGridLayout* theWrappedObject) const +{ + return ( theWrappedObject->verticalSpacing()); +} + + + +PythonQtShell_QGraphicsItem::~PythonQtShell_QGraphicsItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGraphicsItem::advance(int phase) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "advance"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&phase}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::advance(phase); +} +QRectF PythonQtShell_QGraphicsItem::boundingRect() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRectF"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QRectF returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("boundingRect", methodInfo, result); + } else { + returnValue = *((QRectF*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRectF(); +} +bool PythonQtShell_QGraphicsItem::collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&other, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithItem", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItem::collidesWithItem(other, mode); +} +bool PythonQtShell_QGraphicsItem::collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithPath"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&path, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithPath", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItem::collidesWithPath(path, mode); +} +bool PythonQtShell_QGraphicsItem::contains(const QPointF& point) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contains"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPointF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&point}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("contains", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItem::contains(point); +} +void PythonQtShell_QGraphicsItem::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::contextMenuEvent(event); +} +void PythonQtShell_QGraphicsItem::dragEnterEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::dragEnterEvent(event); +} +void PythonQtShell_QGraphicsItem::dragLeaveEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::dragLeaveEvent(event); +} +void PythonQtShell_QGraphicsItem::dragMoveEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::dragMoveEvent(event); +} +void PythonQtShell_QGraphicsItem::dropEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::dropEvent(event); +} +QVariant PythonQtShell_QGraphicsItem::extension(const QVariant& variant) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "extension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&variant}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("extension", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItem::extension(variant); +} +void PythonQtShell_QGraphicsItem::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::focusInEvent(event); +} +void PythonQtShell_QGraphicsItem::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::focusOutEvent(event); +} +void PythonQtShell_QGraphicsItem::hoverEnterEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::hoverEnterEvent(event); +} +void PythonQtShell_QGraphicsItem::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::hoverLeaveEvent(event); +} +void PythonQtShell_QGraphicsItem::hoverMoveEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::hoverMoveEvent(event); +} +void PythonQtShell_QGraphicsItem::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::inputMethodEvent(event); +} +QVariant PythonQtShell_QGraphicsItem::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItem::inputMethodQuery(query); +} +bool PythonQtShell_QGraphicsItem::isObscuredBy(const QGraphicsItem* item) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&item}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItem::isObscuredBy(item); +} +QVariant PythonQtShell_QGraphicsItem::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemChange"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "QGraphicsItem::GraphicsItemChange" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&change, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemChange", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItem::itemChange(change, value); +} +void PythonQtShell_QGraphicsItem::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::keyPressEvent(event); +} +void PythonQtShell_QGraphicsItem::keyReleaseEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::keyReleaseEvent(event); +} +void PythonQtShell_QGraphicsItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::mouseDoubleClickEvent(event); +} +void PythonQtShell_QGraphicsItem::mouseMoveEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::mouseMoveEvent(event); +} +void PythonQtShell_QGraphicsItem::mousePressEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::mousePressEvent(event); +} +void PythonQtShell_QGraphicsItem::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::mouseReleaseEvent(event); +} +QPainterPath PythonQtShell_QGraphicsItem::opaqueArea() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainterPath"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainterPath returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); + } else { + returnValue = *((QPainterPath*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItem::opaqueArea(); +} +void PythonQtShell_QGraphicsItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +bool PythonQtShell_QGraphicsItem::sceneEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sceneEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItem::sceneEvent(event); +} +bool PythonQtShell_QGraphicsItem::sceneEventFilter(QGraphicsItem* watched, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&watched, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sceneEventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItem::sceneEventFilter(watched, event); +} +void PythonQtShell_QGraphicsItem::setExtension(QGraphicsItem::Extension extension, const QVariant& variant) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setExtension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsItem::Extension" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&extension, (void*)&variant}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::setExtension(extension, variant); +} +QPainterPath PythonQtShell_QGraphicsItem::shape() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "shape"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainterPath"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainterPath returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("shape", methodInfo, result); + } else { + returnValue = *((QPainterPath*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItem::shape(); +} +bool PythonQtShell_QGraphicsItem::supportsExtension(QGraphicsItem::Extension extension) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportsExtension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QGraphicsItem::Extension"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&extension}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportsExtension", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItem::supportsExtension(extension); +} +int PythonQtShell_QGraphicsItem::type() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItem::type(); +} +void PythonQtShell_QGraphicsItem::wheelEvent(QGraphicsSceneWheelEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItem::wheelEvent(event); +} +QGraphicsItem* PythonQtWrapper_QGraphicsItem::new_QGraphicsItem(QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsItem(parent); } + +bool PythonQtWrapper_QGraphicsItem::acceptDrops(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->acceptDrops()); +} + +bool PythonQtWrapper_QGraphicsItem::acceptHoverEvents(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->acceptHoverEvents()); +} + +bool PythonQtWrapper_QGraphicsItem::acceptTouchEvents(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->acceptTouchEvents()); +} + +Qt::MouseButtons PythonQtWrapper_QGraphicsItem::acceptedMouseButtons(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->acceptedMouseButtons()); +} + +void PythonQtWrapper_QGraphicsItem::advance(QGraphicsItem* theWrappedObject, int phase) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_advance(phase)); +} + +QRegion PythonQtWrapper_QGraphicsItem::boundingRegion(QGraphicsItem* theWrappedObject, const QTransform& itemToDeviceTransform) const +{ + return ( theWrappedObject->boundingRegion(itemToDeviceTransform)); +} + +qreal PythonQtWrapper_QGraphicsItem::boundingRegionGranularity(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->boundingRegionGranularity()); +} + +QGraphicsItem::CacheMode PythonQtWrapper_QGraphicsItem::cacheMode(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->cacheMode()); +} + +QList PythonQtWrapper_QGraphicsItem::childItems(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->childItems()); +} + +QRectF PythonQtWrapper_QGraphicsItem::childrenBoundingRect(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->childrenBoundingRect()); +} + +void PythonQtWrapper_QGraphicsItem::clearFocus(QGraphicsItem* theWrappedObject) +{ + ( theWrappedObject->clearFocus()); +} + +QPainterPath PythonQtWrapper_QGraphicsItem::clipPath(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->clipPath()); +} + +bool PythonQtWrapper_QGraphicsItem::collidesWithItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* other, Qt::ItemSelectionMode mode) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_collidesWithItem(other, mode)); +} + +bool PythonQtWrapper_QGraphicsItem::collidesWithPath(QGraphicsItem* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_collidesWithPath(path, mode)); +} + +QList PythonQtWrapper_QGraphicsItem::collidingItems(QGraphicsItem* theWrappedObject, Qt::ItemSelectionMode mode) const +{ + return ( theWrappedObject->collidingItems(mode)); +} + +QGraphicsItem* PythonQtWrapper_QGraphicsItem::commonAncestorItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* other) const +{ + return ( theWrappedObject->commonAncestorItem(other)); +} + +bool PythonQtWrapper_QGraphicsItem::contains(QGraphicsItem* theWrappedObject, const QPointF& point) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_contains(point)); +} + +void PythonQtWrapper_QGraphicsItem::contextMenuEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneContextMenuEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_contextMenuEvent(event)); +} + +QCursor PythonQtWrapper_QGraphicsItem::cursor(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->cursor()); +} + +QVariant PythonQtWrapper_QGraphicsItem::data(QGraphicsItem* theWrappedObject, int key) const +{ + return ( theWrappedObject->data(key)); +} + +QTransform PythonQtWrapper_QGraphicsItem::deviceTransform(QGraphicsItem* theWrappedObject, const QTransform& viewportTransform) const +{ + return ( theWrappedObject->deviceTransform(viewportTransform)); +} + +void PythonQtWrapper_QGraphicsItem::dragEnterEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_dragEnterEvent(event)); +} + +void PythonQtWrapper_QGraphicsItem::dragLeaveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_dragLeaveEvent(event)); +} + +void PythonQtWrapper_QGraphicsItem::dragMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_dragMoveEvent(event)); +} + +void PythonQtWrapper_QGraphicsItem::dropEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_dropEvent(event)); +} + +qreal PythonQtWrapper_QGraphicsItem::effectiveOpacity(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->effectiveOpacity()); +} + +void PythonQtWrapper_QGraphicsItem::ensureVisible(QGraphicsItem* theWrappedObject, const QRectF& rect, int xmargin, int ymargin) +{ + ( theWrappedObject->ensureVisible(rect, xmargin, ymargin)); +} + +void PythonQtWrapper_QGraphicsItem::ensureVisible(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int xmargin, int ymargin) +{ + ( theWrappedObject->ensureVisible(x, y, w, h, xmargin, ymargin)); +} + +QVariant PythonQtWrapper_QGraphicsItem::extension(QGraphicsItem* theWrappedObject, const QVariant& variant) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_extension(variant)); +} + +bool PythonQtWrapper_QGraphicsItem::filtersChildEvents(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->filtersChildEvents()); +} + +QGraphicsItem::GraphicsItemFlags PythonQtWrapper_QGraphicsItem::flags(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->flags()); +} + +void PythonQtWrapper_QGraphicsItem::focusInEvent(QGraphicsItem* theWrappedObject, QFocusEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_focusInEvent(event)); +} + +QGraphicsItem* PythonQtWrapper_QGraphicsItem::focusItem(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->focusItem()); +} + +void PythonQtWrapper_QGraphicsItem::focusOutEvent(QGraphicsItem* theWrappedObject, QFocusEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_focusOutEvent(event)); +} + +QGraphicsItem* PythonQtWrapper_QGraphicsItem::focusProxy(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->focusProxy()); +} + +QGraphicsItem* PythonQtWrapper_QGraphicsItem::focusScopeItem(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->focusScopeItem()); +} + +void PythonQtWrapper_QGraphicsItem::grabKeyboard(QGraphicsItem* theWrappedObject) +{ + ( theWrappedObject->grabKeyboard()); +} + +void PythonQtWrapper_QGraphicsItem::grabMouse(QGraphicsItem* theWrappedObject) +{ + ( theWrappedObject->grabMouse()); +} + +QGraphicsEffect* PythonQtWrapper_QGraphicsItem::graphicsEffect(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->graphicsEffect()); +} + +QGraphicsItemGroup* PythonQtWrapper_QGraphicsItem::group(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->group()); +} + +bool PythonQtWrapper_QGraphicsItem::handlesChildEvents(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->handlesChildEvents()); +} + +bool PythonQtWrapper_QGraphicsItem::hasCursor(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->hasCursor()); +} + +bool PythonQtWrapper_QGraphicsItem::hasFocus(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->hasFocus()); +} + +void PythonQtWrapper_QGraphicsItem::hide(QGraphicsItem* theWrappedObject) +{ + ( theWrappedObject->hide()); +} + +void PythonQtWrapper_QGraphicsItem::hoverEnterEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_hoverEnterEvent(event)); +} + +void PythonQtWrapper_QGraphicsItem::hoverLeaveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_hoverLeaveEvent(event)); +} + +void PythonQtWrapper_QGraphicsItem::hoverMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_hoverMoveEvent(event)); +} + +void PythonQtWrapper_QGraphicsItem::inputMethodEvent(QGraphicsItem* theWrappedObject, QInputMethodEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_inputMethodEvent(event)); +} + +Qt::InputMethodHints PythonQtWrapper_QGraphicsItem::inputMethodHints(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->inputMethodHints()); +} + +QVariant PythonQtWrapper_QGraphicsItem::inputMethodQuery(QGraphicsItem* theWrappedObject, Qt::InputMethodQuery query) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_inputMethodQuery(query)); +} + +void PythonQtWrapper_QGraphicsItem::installSceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* filterItem) +{ + ( theWrappedObject->installSceneEventFilter(filterItem)); +} + +bool PythonQtWrapper_QGraphicsItem::isActive(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->isActive()); +} + +bool PythonQtWrapper_QGraphicsItem::isAncestorOf(QGraphicsItem* theWrappedObject, const QGraphicsItem* child) const +{ + return ( theWrappedObject->isAncestorOf(child)); +} + +bool PythonQtWrapper_QGraphicsItem::isBlockedByModalPanel(QGraphicsItem* theWrappedObject, QGraphicsItem** blockingPanel) const +{ + return ( theWrappedObject->isBlockedByModalPanel(blockingPanel)); +} + +bool PythonQtWrapper_QGraphicsItem::isClipped(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->isClipped()); +} + +bool PythonQtWrapper_QGraphicsItem::isEnabled(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->isEnabled()); +} + +bool PythonQtWrapper_QGraphicsItem::isObscured(QGraphicsItem* theWrappedObject, const QRectF& rect) const +{ + return ( theWrappedObject->isObscured(rect)); +} + +bool PythonQtWrapper_QGraphicsItem::isObscured(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const +{ + return ( theWrappedObject->isObscured(x, y, w, h)); +} + +bool PythonQtWrapper_QGraphicsItem::isObscuredBy(QGraphicsItem* theWrappedObject, const QGraphicsItem* item) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_isObscuredBy(item)); +} + +bool PythonQtWrapper_QGraphicsItem::isPanel(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->isPanel()); +} + +bool PythonQtWrapper_QGraphicsItem::isSelected(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->isSelected()); +} + +bool PythonQtWrapper_QGraphicsItem::isUnderMouse(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->isUnderMouse()); +} + +bool PythonQtWrapper_QGraphicsItem::isVisible(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->isVisible()); +} + +bool PythonQtWrapper_QGraphicsItem::isVisibleTo(QGraphicsItem* theWrappedObject, const QGraphicsItem* parent) const +{ + return ( theWrappedObject->isVisibleTo(parent)); +} + +bool PythonQtWrapper_QGraphicsItem::isWidget(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->isWidget()); +} + +bool PythonQtWrapper_QGraphicsItem::isWindow(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->isWindow()); +} + +QVariant PythonQtWrapper_QGraphicsItem::itemChange(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemChange change, const QVariant& value) +{ + return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_itemChange(change, value)); +} + +QTransform PythonQtWrapper_QGraphicsItem::itemTransform(QGraphicsItem* theWrappedObject, const QGraphicsItem* other, bool* ok) const +{ + return ( theWrappedObject->itemTransform(other, ok)); +} + +void PythonQtWrapper_QGraphicsItem::keyPressEvent(QGraphicsItem* theWrappedObject, QKeyEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_keyPressEvent(event)); +} + +void PythonQtWrapper_QGraphicsItem::keyReleaseEvent(QGraphicsItem* theWrappedObject, QKeyEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_keyReleaseEvent(event)); +} + +QPainterPath PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPainterPath& path) const +{ + return ( theWrappedObject->mapFromItem(item, path)); +} + +QPointF PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPointF& point) const +{ + return ( theWrappedObject->mapFromItem(item, point)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPolygonF& polygon) const +{ + return ( theWrappedObject->mapFromItem(item, polygon)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const +{ + return ( theWrappedObject->mapFromItem(item, rect)); +} + +QPointF PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y) const +{ + return ( theWrappedObject->mapFromItem(item, x, y)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const +{ + return ( theWrappedObject->mapFromItem(item, x, y, w, h)); +} + +QPainterPath PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, const QPainterPath& path) const +{ + return ( theWrappedObject->mapFromParent(path)); +} + +QPointF PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, const QPointF& point) const +{ + return ( theWrappedObject->mapFromParent(point)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const +{ + return ( theWrappedObject->mapFromParent(polygon)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const +{ + return ( theWrappedObject->mapFromParent(rect)); +} + +QPointF PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, qreal x, qreal y) const +{ + return ( theWrappedObject->mapFromParent(x, y)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const +{ + return ( theWrappedObject->mapFromParent(x, y, w, h)); +} + +QPainterPath PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, const QPainterPath& path) const +{ + return ( theWrappedObject->mapFromScene(path)); +} + +QPointF PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, const QPointF& point) const +{ + return ( theWrappedObject->mapFromScene(point)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const +{ + return ( theWrappedObject->mapFromScene(polygon)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const +{ + return ( theWrappedObject->mapFromScene(rect)); +} + +QPointF PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, qreal x, qreal y) const +{ + return ( theWrappedObject->mapFromScene(x, y)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const +{ + return ( theWrappedObject->mapFromScene(x, y, w, h)); +} + +QRectF PythonQtWrapper_QGraphicsItem::mapRectFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const +{ + return ( theWrappedObject->mapRectFromItem(item, rect)); +} + +QRectF PythonQtWrapper_QGraphicsItem::mapRectFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const +{ + return ( theWrappedObject->mapRectFromItem(item, x, y, w, h)); +} + +QRectF PythonQtWrapper_QGraphicsItem::mapRectFromParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const +{ + return ( theWrappedObject->mapRectFromParent(rect)); +} + +QRectF PythonQtWrapper_QGraphicsItem::mapRectFromParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const +{ + return ( theWrappedObject->mapRectFromParent(x, y, w, h)); +} + +QRectF PythonQtWrapper_QGraphicsItem::mapRectFromScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const +{ + return ( theWrappedObject->mapRectFromScene(rect)); +} + +QRectF PythonQtWrapper_QGraphicsItem::mapRectFromScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const +{ + return ( theWrappedObject->mapRectFromScene(x, y, w, h)); +} + +QRectF PythonQtWrapper_QGraphicsItem::mapRectToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const +{ + return ( theWrappedObject->mapRectToItem(item, rect)); +} + +QRectF PythonQtWrapper_QGraphicsItem::mapRectToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const +{ + return ( theWrappedObject->mapRectToItem(item, x, y, w, h)); +} + +QRectF PythonQtWrapper_QGraphicsItem::mapRectToParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const +{ + return ( theWrappedObject->mapRectToParent(rect)); +} + +QRectF PythonQtWrapper_QGraphicsItem::mapRectToParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const +{ + return ( theWrappedObject->mapRectToParent(x, y, w, h)); +} + +QRectF PythonQtWrapper_QGraphicsItem::mapRectToScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const +{ + return ( theWrappedObject->mapRectToScene(rect)); +} + +QRectF PythonQtWrapper_QGraphicsItem::mapRectToScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const +{ + return ( theWrappedObject->mapRectToScene(x, y, w, h)); +} + +QPainterPath PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPainterPath& path) const +{ + return ( theWrappedObject->mapToItem(item, path)); +} + +QPointF PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPointF& point) const +{ + return ( theWrappedObject->mapToItem(item, point)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPolygonF& polygon) const +{ + return ( theWrappedObject->mapToItem(item, polygon)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const +{ + return ( theWrappedObject->mapToItem(item, rect)); +} + +QPointF PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y) const +{ + return ( theWrappedObject->mapToItem(item, x, y)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const +{ + return ( theWrappedObject->mapToItem(item, x, y, w, h)); +} + +QPainterPath PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, const QPainterPath& path) const +{ + return ( theWrappedObject->mapToParent(path)); +} + +QPointF PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, const QPointF& point) const +{ + return ( theWrappedObject->mapToParent(point)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const +{ + return ( theWrappedObject->mapToParent(polygon)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const +{ + return ( theWrappedObject->mapToParent(rect)); +} + +QPointF PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, qreal x, qreal y) const +{ + return ( theWrappedObject->mapToParent(x, y)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const +{ + return ( theWrappedObject->mapToParent(x, y, w, h)); +} + +QPainterPath PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, const QPainterPath& path) const +{ + return ( theWrappedObject->mapToScene(path)); +} + +QPointF PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, const QPointF& point) const +{ + return ( theWrappedObject->mapToScene(point)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const +{ + return ( theWrappedObject->mapToScene(polygon)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const +{ + return ( theWrappedObject->mapToScene(rect)); +} + +QPointF PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, qreal x, qreal y) const +{ + return ( theWrappedObject->mapToScene(x, y)); +} + +QPolygonF PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const +{ + return ( theWrappedObject->mapToScene(x, y, w, h)); +} + +void PythonQtWrapper_QGraphicsItem::mouseDoubleClickEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_mouseDoubleClickEvent(event)); +} + +void PythonQtWrapper_QGraphicsItem::mouseMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_mouseMoveEvent(event)); +} + +void PythonQtWrapper_QGraphicsItem::mousePressEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_mousePressEvent(event)); +} + +void PythonQtWrapper_QGraphicsItem::mouseReleaseEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_mouseReleaseEvent(event)); +} + +void PythonQtWrapper_QGraphicsItem::moveBy(QGraphicsItem* theWrappedObject, qreal dx, qreal dy) +{ + ( theWrappedObject->moveBy(dx, dy)); +} + +qreal PythonQtWrapper_QGraphicsItem::opacity(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->opacity()); +} + +QPainterPath PythonQtWrapper_QGraphicsItem::opaqueArea(QGraphicsItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_opaqueArea()); +} + +QGraphicsItem* PythonQtWrapper_QGraphicsItem::panel(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->panel()); +} + +QGraphicsItem::PanelModality PythonQtWrapper_QGraphicsItem::panelModality(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->panelModality()); +} + +QGraphicsItem* PythonQtWrapper_QGraphicsItem::parentItem(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->parentItem()); +} + +QGraphicsObject* PythonQtWrapper_QGraphicsItem::parentObject(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->parentObject()); +} + +QGraphicsWidget* PythonQtWrapper_QGraphicsItem::parentWidget(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->parentWidget()); +} + +QPointF PythonQtWrapper_QGraphicsItem::pos(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->pos()); +} + +void PythonQtWrapper_QGraphicsItem::removeSceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* filterItem) +{ + ( theWrappedObject->removeSceneEventFilter(filterItem)); +} + +void PythonQtWrapper_QGraphicsItem::resetTransform(QGraphicsItem* theWrappedObject) +{ + ( theWrappedObject->resetTransform()); +} + +qreal PythonQtWrapper_QGraphicsItem::rotation(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->rotation()); +} + +qreal PythonQtWrapper_QGraphicsItem::scale(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->scale()); +} + +QGraphicsScene* PythonQtWrapper_QGraphicsItem::scene(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->scene()); +} + +QRectF PythonQtWrapper_QGraphicsItem::sceneBoundingRect(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->sceneBoundingRect()); +} + +bool PythonQtWrapper_QGraphicsItem::sceneEvent(QGraphicsItem* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_sceneEvent(event)); +} + +bool PythonQtWrapper_QGraphicsItem::sceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* watched, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_sceneEventFilter(watched, event)); +} + +QPointF PythonQtWrapper_QGraphicsItem::scenePos(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->scenePos()); +} + +QTransform PythonQtWrapper_QGraphicsItem::sceneTransform(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->sceneTransform()); +} + +void PythonQtWrapper_QGraphicsItem::scroll(QGraphicsItem* theWrappedObject, qreal dx, qreal dy, const QRectF& rect) +{ + ( theWrappedObject->scroll(dx, dy, rect)); +} + +void PythonQtWrapper_QGraphicsItem::setAcceptDrops(QGraphicsItem* theWrappedObject, bool on) +{ + ( theWrappedObject->setAcceptDrops(on)); +} + +void PythonQtWrapper_QGraphicsItem::setAcceptHoverEvents(QGraphicsItem* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setAcceptHoverEvents(enabled)); +} + +void PythonQtWrapper_QGraphicsItem::setAcceptTouchEvents(QGraphicsItem* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setAcceptTouchEvents(enabled)); +} + +void PythonQtWrapper_QGraphicsItem::setAcceptedMouseButtons(QGraphicsItem* theWrappedObject, Qt::MouseButtons buttons) +{ + ( theWrappedObject->setAcceptedMouseButtons(buttons)); +} + +void PythonQtWrapper_QGraphicsItem::setActive(QGraphicsItem* theWrappedObject, bool active) +{ + ( theWrappedObject->setActive(active)); +} + +void PythonQtWrapper_QGraphicsItem::setBoundingRegionGranularity(QGraphicsItem* theWrappedObject, qreal granularity) +{ + ( theWrappedObject->setBoundingRegionGranularity(granularity)); +} + +void PythonQtWrapper_QGraphicsItem::setCacheMode(QGraphicsItem* theWrappedObject, QGraphicsItem::CacheMode mode, const QSize& cacheSize) +{ + ( theWrappedObject->setCacheMode(mode, cacheSize)); +} + +void PythonQtWrapper_QGraphicsItem::setCursor(QGraphicsItem* theWrappedObject, const QCursor& cursor) +{ + ( theWrappedObject->setCursor(cursor)); +} + +void PythonQtWrapper_QGraphicsItem::setData(QGraphicsItem* theWrappedObject, int key, const QVariant& value) +{ + ( theWrappedObject->setData(key, value)); +} + +void PythonQtWrapper_QGraphicsItem::setEnabled(QGraphicsItem* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setEnabled(enabled)); +} + +void PythonQtWrapper_QGraphicsItem::setFiltersChildEvents(QGraphicsItem* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setFiltersChildEvents(enabled)); +} + +void PythonQtWrapper_QGraphicsItem::setFlag(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemFlag flag, bool enabled) +{ + ( theWrappedObject->setFlag(flag, enabled)); +} + +void PythonQtWrapper_QGraphicsItem::setFlags(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemFlags flags) +{ + ( theWrappedObject->setFlags(flags)); +} + +void PythonQtWrapper_QGraphicsItem::setFocus(QGraphicsItem* theWrappedObject, Qt::FocusReason focusReason) +{ + ( theWrappedObject->setFocus(focusReason)); +} + +void PythonQtWrapper_QGraphicsItem::setFocusProxy(QGraphicsItem* theWrappedObject, QGraphicsItem* item) +{ + ( theWrappedObject->setFocusProxy(item)); +} + +void PythonQtWrapper_QGraphicsItem::setGraphicsEffect(QGraphicsItem* theWrappedObject, QGraphicsEffect* effect) +{ + ( theWrappedObject->setGraphicsEffect(effect)); +} + +void PythonQtWrapper_QGraphicsItem::setGroup(QGraphicsItem* theWrappedObject, QGraphicsItemGroup* group) +{ + ( theWrappedObject->setGroup(group)); +} + +void PythonQtWrapper_QGraphicsItem::setHandlesChildEvents(QGraphicsItem* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setHandlesChildEvents(enabled)); +} + +void PythonQtWrapper_QGraphicsItem::setInputMethodHints(QGraphicsItem* theWrappedObject, Qt::InputMethodHints hints) +{ + ( theWrappedObject->setInputMethodHints(hints)); +} + +void PythonQtWrapper_QGraphicsItem::setOpacity(QGraphicsItem* theWrappedObject, qreal opacity) +{ + ( theWrappedObject->setOpacity(opacity)); +} + +void PythonQtWrapper_QGraphicsItem::setPanelModality(QGraphicsItem* theWrappedObject, QGraphicsItem::PanelModality panelModality) +{ + ( theWrappedObject->setPanelModality(panelModality)); +} + +void PythonQtWrapper_QGraphicsItem::setParentItem(QGraphicsItem* theWrappedObject, QGraphicsItem* parent) +{ + ( theWrappedObject->setParentItem(parent)); +} + +void PythonQtWrapper_QGraphicsItem::setPos(QGraphicsItem* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setPos(pos)); +} + +void PythonQtWrapper_QGraphicsItem::setPos(QGraphicsItem* theWrappedObject, qreal x, qreal y) +{ + ( theWrappedObject->setPos(x, y)); +} + +void PythonQtWrapper_QGraphicsItem::setRotation(QGraphicsItem* theWrappedObject, qreal angle) +{ + ( theWrappedObject->setRotation(angle)); +} + +void PythonQtWrapper_QGraphicsItem::setScale(QGraphicsItem* theWrappedObject, qreal scale) +{ + ( theWrappedObject->setScale(scale)); +} + +void PythonQtWrapper_QGraphicsItem::setSelected(QGraphicsItem* theWrappedObject, bool selected) +{ + ( theWrappedObject->setSelected(selected)); +} + +void PythonQtWrapper_QGraphicsItem::setToolTip(QGraphicsItem* theWrappedObject, const QString& toolTip) +{ + ( theWrappedObject->setToolTip(toolTip)); +} + +void PythonQtWrapper_QGraphicsItem::setTransform(QGraphicsItem* theWrappedObject, const QTransform& matrix, bool combine) +{ + ( theWrappedObject->setTransform(matrix, combine)); +} + +void PythonQtWrapper_QGraphicsItem::setTransformOriginPoint(QGraphicsItem* theWrappedObject, const QPointF& origin) +{ + ( theWrappedObject->setTransformOriginPoint(origin)); +} + +void PythonQtWrapper_QGraphicsItem::setTransformOriginPoint(QGraphicsItem* theWrappedObject, qreal ax, qreal ay) +{ + ( theWrappedObject->setTransformOriginPoint(ax, ay)); +} + +void PythonQtWrapper_QGraphicsItem::setTransformations(QGraphicsItem* theWrappedObject, const QList& transformations) +{ + ( theWrappedObject->setTransformations(transformations)); +} + +void PythonQtWrapper_QGraphicsItem::setVisible(QGraphicsItem* theWrappedObject, bool visible) +{ + ( theWrappedObject->setVisible(visible)); +} + +void PythonQtWrapper_QGraphicsItem::setX(QGraphicsItem* theWrappedObject, qreal x) +{ + ( theWrappedObject->setX(x)); +} + +void PythonQtWrapper_QGraphicsItem::setY(QGraphicsItem* theWrappedObject, qreal y) +{ + ( theWrappedObject->setY(y)); +} + +void PythonQtWrapper_QGraphicsItem::setZValue(QGraphicsItem* theWrappedObject, qreal z) +{ + ( theWrappedObject->setZValue(z)); +} + +QPainterPath PythonQtWrapper_QGraphicsItem::shape(QGraphicsItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_shape()); +} + +void PythonQtWrapper_QGraphicsItem::show(QGraphicsItem* theWrappedObject) +{ + ( theWrappedObject->show()); +} + +void PythonQtWrapper_QGraphicsItem::stackBefore(QGraphicsItem* theWrappedObject, const QGraphicsItem* sibling) +{ + ( theWrappedObject->stackBefore(sibling)); +} + +QGraphicsObject* PythonQtWrapper_QGraphicsItem::toGraphicsObject(QGraphicsItem* theWrappedObject) +{ + return ( theWrappedObject->toGraphicsObject()); +} + +QString PythonQtWrapper_QGraphicsItem::toolTip(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->toolTip()); +} + +QGraphicsItem* PythonQtWrapper_QGraphicsItem::topLevelItem(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->topLevelItem()); +} + +QGraphicsWidget* PythonQtWrapper_QGraphicsItem::topLevelWidget(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->topLevelWidget()); +} + +QTransform PythonQtWrapper_QGraphicsItem::transform(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->transform()); +} + +QPointF PythonQtWrapper_QGraphicsItem::transformOriginPoint(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->transformOriginPoint()); +} + +QList PythonQtWrapper_QGraphicsItem::transformations(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->transformations()); +} + +int PythonQtWrapper_QGraphicsItem::type(QGraphicsItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_type()); +} + +void PythonQtWrapper_QGraphicsItem::ungrabKeyboard(QGraphicsItem* theWrappedObject) +{ + ( theWrappedObject->ungrabKeyboard()); +} + +void PythonQtWrapper_QGraphicsItem::ungrabMouse(QGraphicsItem* theWrappedObject) +{ + ( theWrappedObject->ungrabMouse()); +} + +void PythonQtWrapper_QGraphicsItem::unsetCursor(QGraphicsItem* theWrappedObject) +{ + ( theWrappedObject->unsetCursor()); +} + +void PythonQtWrapper_QGraphicsItem::update(QGraphicsItem* theWrappedObject, const QRectF& rect) +{ + ( theWrappedObject->update(rect)); +} + +void PythonQtWrapper_QGraphicsItem::update(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal width, qreal height) +{ + ( theWrappedObject->update(x, y, width, height)); +} + +void PythonQtWrapper_QGraphicsItem::wheelEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneWheelEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_wheelEvent(event)); +} + +QGraphicsWidget* PythonQtWrapper_QGraphicsItem::window(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->window()); +} + +qreal PythonQtWrapper_QGraphicsItem::x(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->x()); +} + +qreal PythonQtWrapper_QGraphicsItem::y(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->y()); +} + +qreal PythonQtWrapper_QGraphicsItem::zValue(QGraphicsItem* theWrappedObject) const +{ + return ( theWrappedObject->zValue()); +} + +QString PythonQtWrapper_QGraphicsItem::py_toString(QGraphicsItem* obj) { + QString result; + QDebug d(&result); + d << obj; + return result; +} + + + +PythonQtShell_QGraphicsItemAnimation::~PythonQtShell_QGraphicsItemAnimation() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGraphicsItemAnimation::afterAnimationStep(qreal step) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "afterAnimationStep"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "qreal"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&step}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemAnimation::afterAnimationStep(step); +} +void PythonQtShell_QGraphicsItemAnimation::beforeAnimationStep(qreal step) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "beforeAnimationStep"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "qreal"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&step}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemAnimation::beforeAnimationStep(step); +} +void PythonQtShell_QGraphicsItemAnimation::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemAnimation::childEvent(arg__1); +} +void PythonQtShell_QGraphicsItemAnimation::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemAnimation::customEvent(arg__1); +} +bool PythonQtShell_QGraphicsItemAnimation::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItemAnimation::event(arg__1); +} +bool PythonQtShell_QGraphicsItemAnimation::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItemAnimation::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QGraphicsItemAnimation::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemAnimation::timerEvent(arg__1); +} +QGraphicsItemAnimation* PythonQtWrapper_QGraphicsItemAnimation::new_QGraphicsItemAnimation(QObject* parent) +{ +return new PythonQtShell_QGraphicsItemAnimation(parent); } + +void PythonQtWrapper_QGraphicsItemAnimation::afterAnimationStep(QGraphicsItemAnimation* theWrappedObject, qreal step) +{ + ( ((PythonQtPublicPromoter_QGraphicsItemAnimation*)theWrappedObject)->promoted_afterAnimationStep(step)); +} + +void PythonQtWrapper_QGraphicsItemAnimation::beforeAnimationStep(QGraphicsItemAnimation* theWrappedObject, qreal step) +{ + ( ((PythonQtPublicPromoter_QGraphicsItemAnimation*)theWrappedObject)->promoted_beforeAnimationStep(step)); +} + +void PythonQtWrapper_QGraphicsItemAnimation::clear(QGraphicsItemAnimation* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +qreal PythonQtWrapper_QGraphicsItemAnimation::horizontalScaleAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const +{ + return ( theWrappedObject->horizontalScaleAt(step)); +} + +qreal PythonQtWrapper_QGraphicsItemAnimation::horizontalShearAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const +{ + return ( theWrappedObject->horizontalShearAt(step)); +} + +QGraphicsItem* PythonQtWrapper_QGraphicsItemAnimation::item(QGraphicsItemAnimation* theWrappedObject) const +{ + return ( theWrappedObject->item()); +} + +QMatrix PythonQtWrapper_QGraphicsItemAnimation::matrixAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const +{ + return ( theWrappedObject->matrixAt(step)); +} + +QPointF PythonQtWrapper_QGraphicsItemAnimation::posAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const +{ + return ( theWrappedObject->posAt(step)); +} + +QList > PythonQtWrapper_QGraphicsItemAnimation::posList(QGraphicsItemAnimation* theWrappedObject) const +{ + return ( theWrappedObject->posList()); +} + +qreal PythonQtWrapper_QGraphicsItemAnimation::rotationAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const +{ + return ( theWrappedObject->rotationAt(step)); +} + +QList > PythonQtWrapper_QGraphicsItemAnimation::rotationList(QGraphicsItemAnimation* theWrappedObject) const +{ + return ( theWrappedObject->rotationList()); +} + +QList > PythonQtWrapper_QGraphicsItemAnimation::scaleList(QGraphicsItemAnimation* theWrappedObject) const +{ + return ( theWrappedObject->scaleList()); +} + +void PythonQtWrapper_QGraphicsItemAnimation::setItem(QGraphicsItemAnimation* theWrappedObject, QGraphicsItem* item) +{ + ( theWrappedObject->setItem(item)); +} + +void PythonQtWrapper_QGraphicsItemAnimation::setPosAt(QGraphicsItemAnimation* theWrappedObject, qreal step, const QPointF& pos) +{ + ( theWrappedObject->setPosAt(step, pos)); +} + +void PythonQtWrapper_QGraphicsItemAnimation::setRotationAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal angle) +{ + ( theWrappedObject->setRotationAt(step, angle)); +} + +void PythonQtWrapper_QGraphicsItemAnimation::setScaleAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal sx, qreal sy) +{ + ( theWrappedObject->setScaleAt(step, sx, sy)); +} + +void PythonQtWrapper_QGraphicsItemAnimation::setShearAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal sh, qreal sv) +{ + ( theWrappedObject->setShearAt(step, sh, sv)); +} + +void PythonQtWrapper_QGraphicsItemAnimation::setTimeLine(QGraphicsItemAnimation* theWrappedObject, QTimeLine* timeLine) +{ + ( theWrappedObject->setTimeLine(timeLine)); +} + +void PythonQtWrapper_QGraphicsItemAnimation::setTranslationAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal dx, qreal dy) +{ + ( theWrappedObject->setTranslationAt(step, dx, dy)); +} + +QList > PythonQtWrapper_QGraphicsItemAnimation::shearList(QGraphicsItemAnimation* theWrappedObject) const +{ + return ( theWrappedObject->shearList()); +} + +QTimeLine* PythonQtWrapper_QGraphicsItemAnimation::timeLine(QGraphicsItemAnimation* theWrappedObject) const +{ + return ( theWrappedObject->timeLine()); +} + +QList > PythonQtWrapper_QGraphicsItemAnimation::translationList(QGraphicsItemAnimation* theWrappedObject) const +{ + return ( theWrappedObject->translationList()); +} + +qreal PythonQtWrapper_QGraphicsItemAnimation::verticalScaleAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const +{ + return ( theWrappedObject->verticalScaleAt(step)); +} + +qreal PythonQtWrapper_QGraphicsItemAnimation::verticalShearAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const +{ + return ( theWrappedObject->verticalShearAt(step)); +} + +qreal PythonQtWrapper_QGraphicsItemAnimation::xTranslationAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const +{ + return ( theWrappedObject->xTranslationAt(step)); +} + +qreal PythonQtWrapper_QGraphicsItemAnimation::yTranslationAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const +{ + return ( theWrappedObject->yTranslationAt(step)); +} + + + +PythonQtShell_QGraphicsItemGroup::~PythonQtShell_QGraphicsItemGroup() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGraphicsItemGroup::advance(int phase) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "advance"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&phase}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::advance(phase); +} +QRectF PythonQtShell_QGraphicsItemGroup::boundingRect() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRectF"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QRectF returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("boundingRect", methodInfo, result); + } else { + returnValue = *((QRectF*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItemGroup::boundingRect(); +} +bool PythonQtShell_QGraphicsItemGroup::collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&other, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithItem", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItemGroup::collidesWithItem(other, mode); +} +bool PythonQtShell_QGraphicsItemGroup::collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithPath"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&path, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithPath", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItemGroup::collidesWithPath(path, mode); +} +bool PythonQtShell_QGraphicsItemGroup::contains(const QPointF& point) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contains"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPointF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&point}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("contains", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItemGroup::contains(point); +} +void PythonQtShell_QGraphicsItemGroup::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::contextMenuEvent(event); +} +void PythonQtShell_QGraphicsItemGroup::dragEnterEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::dragEnterEvent(event); +} +void PythonQtShell_QGraphicsItemGroup::dragLeaveEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::dragLeaveEvent(event); +} +void PythonQtShell_QGraphicsItemGroup::dragMoveEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::dragMoveEvent(event); +} +void PythonQtShell_QGraphicsItemGroup::dropEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::dropEvent(event); +} +QVariant PythonQtShell_QGraphicsItemGroup::extension(const QVariant& variant) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "extension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&variant}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("extension", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItemGroup::extension(variant); +} +void PythonQtShell_QGraphicsItemGroup::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::focusInEvent(event); +} +void PythonQtShell_QGraphicsItemGroup::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::focusOutEvent(event); +} +void PythonQtShell_QGraphicsItemGroup::hoverEnterEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::hoverEnterEvent(event); +} +void PythonQtShell_QGraphicsItemGroup::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::hoverLeaveEvent(event); +} +void PythonQtShell_QGraphicsItemGroup::hoverMoveEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::hoverMoveEvent(event); +} +void PythonQtShell_QGraphicsItemGroup::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::inputMethodEvent(event); +} +QVariant PythonQtShell_QGraphicsItemGroup::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItemGroup::inputMethodQuery(query); +} +bool PythonQtShell_QGraphicsItemGroup::isObscuredBy(const QGraphicsItem* item) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&item}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItemGroup::isObscuredBy(item); +} +QVariant PythonQtShell_QGraphicsItemGroup::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemChange"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "QGraphicsItem::GraphicsItemChange" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&change, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemChange", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItemGroup::itemChange(change, value); +} +void PythonQtShell_QGraphicsItemGroup::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::keyPressEvent(event); +} +void PythonQtShell_QGraphicsItemGroup::keyReleaseEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::keyReleaseEvent(event); +} +void PythonQtShell_QGraphicsItemGroup::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::mouseDoubleClickEvent(event); +} +void PythonQtShell_QGraphicsItemGroup::mouseMoveEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::mouseMoveEvent(event); +} +void PythonQtShell_QGraphicsItemGroup::mousePressEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::mousePressEvent(event); +} +void PythonQtShell_QGraphicsItemGroup::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::mouseReleaseEvent(event); +} +QPainterPath PythonQtShell_QGraphicsItemGroup::opaqueArea() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainterPath"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainterPath returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); + } else { + returnValue = *((QPainterPath*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItemGroup::opaqueArea(); +} +void PythonQtShell_QGraphicsItemGroup::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::paint(painter, option, widget); +} +bool PythonQtShell_QGraphicsItemGroup::sceneEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sceneEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItemGroup::sceneEvent(event); +} +bool PythonQtShell_QGraphicsItemGroup::sceneEventFilter(QGraphicsItem* watched, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&watched, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sceneEventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItemGroup::sceneEventFilter(watched, event); +} +void PythonQtShell_QGraphicsItemGroup::setExtension(QGraphicsItem::Extension extension, const QVariant& variant) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setExtension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsItem::Extension" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&extension, (void*)&variant}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::setExtension(extension, variant); +} +QPainterPath PythonQtShell_QGraphicsItemGroup::shape() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "shape"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainterPath"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainterPath returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("shape", methodInfo, result); + } else { + returnValue = *((QPainterPath*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItemGroup::shape(); +} +bool PythonQtShell_QGraphicsItemGroup::supportsExtension(QGraphicsItem::Extension extension) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportsExtension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QGraphicsItem::Extension"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&extension}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportsExtension", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItemGroup::supportsExtension(extension); +} +int PythonQtShell_QGraphicsItemGroup::type() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsItemGroup::type(); +} +void PythonQtShell_QGraphicsItemGroup::wheelEvent(QGraphicsSceneWheelEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsItemGroup::wheelEvent(event); +} +QGraphicsItemGroup* PythonQtWrapper_QGraphicsItemGroup::new_QGraphicsItemGroup(QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsItemGroup(parent); } + +void PythonQtWrapper_QGraphicsItemGroup::addToGroup(QGraphicsItemGroup* theWrappedObject, QGraphicsItem* item) +{ + ( theWrappedObject->addToGroup(item)); +} + +QRectF PythonQtWrapper_QGraphicsItemGroup::boundingRect(QGraphicsItemGroup* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsItemGroup*)theWrappedObject)->promoted_boundingRect()); +} + +bool PythonQtWrapper_QGraphicsItemGroup::isObscuredBy(QGraphicsItemGroup* theWrappedObject, const QGraphicsItem* item) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsItemGroup*)theWrappedObject)->promoted_isObscuredBy(item)); +} + +QPainterPath PythonQtWrapper_QGraphicsItemGroup::opaqueArea(QGraphicsItemGroup* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsItemGroup*)theWrappedObject)->promoted_opaqueArea()); +} + +void PythonQtWrapper_QGraphicsItemGroup::paint(QGraphicsItemGroup* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ + ( ((PythonQtPublicPromoter_QGraphicsItemGroup*)theWrappedObject)->promoted_paint(painter, option, widget)); +} + +void PythonQtWrapper_QGraphicsItemGroup::removeFromGroup(QGraphicsItemGroup* theWrappedObject, QGraphicsItem* item) +{ + ( theWrappedObject->removeFromGroup(item)); +} + +int PythonQtWrapper_QGraphicsItemGroup::type(QGraphicsItemGroup* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsItemGroup*)theWrappedObject)->promoted_type()); +} + + + +PythonQtShell_QGraphicsLayout::~PythonQtShell_QGraphicsLayout() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +int PythonQtShell_QGraphicsLayout::count() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +void PythonQtShell_QGraphicsLayout::getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getContentsMargins"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "qreal*" , "qreal*" , "qreal*" , "qreal*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&left, (void*)&top, (void*)&right, (void*)&bottom}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLayout::getContentsMargins(left, top, right, bottom); +} +void PythonQtShell_QGraphicsLayout::invalidate() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLayout::invalidate(); +} +QGraphicsLayoutItem* PythonQtShell_QGraphicsLayout::itemAt(int i) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QGraphicsLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QGraphicsLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&i}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); + } else { + returnValue = *((QGraphicsLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +void PythonQtShell_QGraphicsLayout::removeAt(int index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QGraphicsLayout::setGeometry(const QRectF& rect) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRectF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&rect}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLayout::setGeometry(rect); +} +QSizeF PythonQtShell_QGraphicsLayout::sizeHint(Qt::SizeHint which, const QSizeF& constraint) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSizeF" , "Qt::SizeHint" , "const QSizeF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QSizeF returnValue; + void* args[3] = {NULL, (void*)&which, (void*)&constraint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); + } else { + returnValue = *((QSizeF*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSizeF(); +} +void PythonQtShell_QGraphicsLayout::updateGeometry() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLayout::updateGeometry(); +} +void PythonQtShell_QGraphicsLayout::widgetEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widgetEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLayout::widgetEvent(e); +} +QGraphicsLayout* PythonQtWrapper_QGraphicsLayout::new_QGraphicsLayout(QGraphicsLayoutItem* parent) +{ +return new PythonQtShell_QGraphicsLayout(parent); } + +void PythonQtWrapper_QGraphicsLayout::activate(QGraphicsLayout* theWrappedObject) +{ + ( theWrappedObject->activate()); +} + +void PythonQtWrapper_QGraphicsLayout::getContentsMargins(QGraphicsLayout* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const +{ + ( ((PythonQtPublicPromoter_QGraphicsLayout*)theWrappedObject)->promoted_getContentsMargins(left, top, right, bottom)); +} + +bool PythonQtWrapper_QGraphicsLayout::static_QGraphicsLayout_instantInvalidatePropagation() +{ + return (QGraphicsLayout::instantInvalidatePropagation()); +} + +void PythonQtWrapper_QGraphicsLayout::invalidate(QGraphicsLayout* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGraphicsLayout*)theWrappedObject)->promoted_invalidate()); +} + +bool PythonQtWrapper_QGraphicsLayout::isActivated(QGraphicsLayout* theWrappedObject) const +{ + return ( theWrappedObject->isActivated()); +} + +void PythonQtWrapper_QGraphicsLayout::setContentsMargins(QGraphicsLayout* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom) +{ + ( theWrappedObject->setContentsMargins(left, top, right, bottom)); +} + +void PythonQtWrapper_QGraphicsLayout::static_QGraphicsLayout_setInstantInvalidatePropagation(bool enable) +{ + (QGraphicsLayout::setInstantInvalidatePropagation(enable)); +} + +void PythonQtWrapper_QGraphicsLayout::updateGeometry(QGraphicsLayout* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGraphicsLayout*)theWrappedObject)->promoted_updateGeometry()); +} + +void PythonQtWrapper_QGraphicsLayout::widgetEvent(QGraphicsLayout* theWrappedObject, QEvent* e) +{ + ( ((PythonQtPublicPromoter_QGraphicsLayout*)theWrappedObject)->promoted_widgetEvent(e)); +} + + + +PythonQtShell_QGraphicsLayoutItem::~PythonQtShell_QGraphicsLayoutItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGraphicsLayoutItem::getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getContentsMargins"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "qreal*" , "qreal*" , "qreal*" , "qreal*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&left, (void*)&top, (void*)&right, (void*)&bottom}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLayoutItem::getContentsMargins(left, top, right, bottom); +} +void PythonQtShell_QGraphicsLayoutItem::setGeometry(const QRectF& rect) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRectF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&rect}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLayoutItem::setGeometry(rect); +} +QSizeF PythonQtShell_QGraphicsLayoutItem::sizeHint(Qt::SizeHint which, const QSizeF& constraint) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSizeF" , "Qt::SizeHint" , "const QSizeF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QSizeF returnValue; + void* args[3] = {NULL, (void*)&which, (void*)&constraint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); + } else { + returnValue = *((QSizeF*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSizeF(); +} +void PythonQtShell_QGraphicsLayoutItem::updateGeometry() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLayoutItem::updateGeometry(); +} +QGraphicsLayoutItem* PythonQtWrapper_QGraphicsLayoutItem::new_QGraphicsLayoutItem(QGraphicsLayoutItem* parent, bool isLayout) +{ +return new PythonQtShell_QGraphicsLayoutItem(parent, isLayout); } + +QRectF PythonQtWrapper_QGraphicsLayoutItem::contentsRect(QGraphicsLayoutItem* theWrappedObject) const +{ + return ( theWrappedObject->contentsRect()); +} + +QSizeF PythonQtWrapper_QGraphicsLayoutItem::effectiveSizeHint(QGraphicsLayoutItem* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint) const +{ + return ( theWrappedObject->effectiveSizeHint(which, constraint)); +} + +QRectF PythonQtWrapper_QGraphicsLayoutItem::geometry(QGraphicsLayoutItem* theWrappedObject) const +{ + return ( theWrappedObject->geometry()); +} + +void PythonQtWrapper_QGraphicsLayoutItem::getContentsMargins(QGraphicsLayoutItem* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const +{ + ( ((PythonQtPublicPromoter_QGraphicsLayoutItem*)theWrappedObject)->promoted_getContentsMargins(left, top, right, bottom)); +} + +QGraphicsItem* PythonQtWrapper_QGraphicsLayoutItem::graphicsItem(QGraphicsLayoutItem* theWrappedObject) const +{ + return ( theWrappedObject->graphicsItem()); +} + +bool PythonQtWrapper_QGraphicsLayoutItem::isLayout(QGraphicsLayoutItem* theWrappedObject) const +{ + return ( theWrappedObject->isLayout()); +} + +qreal PythonQtWrapper_QGraphicsLayoutItem::maximumHeight(QGraphicsLayoutItem* theWrappedObject) const +{ + return ( theWrappedObject->maximumHeight()); +} + +QSizeF PythonQtWrapper_QGraphicsLayoutItem::maximumSize(QGraphicsLayoutItem* theWrappedObject) const +{ + return ( theWrappedObject->maximumSize()); +} + +qreal PythonQtWrapper_QGraphicsLayoutItem::maximumWidth(QGraphicsLayoutItem* theWrappedObject) const +{ + return ( theWrappedObject->maximumWidth()); +} + +qreal PythonQtWrapper_QGraphicsLayoutItem::minimumHeight(QGraphicsLayoutItem* theWrappedObject) const +{ + return ( theWrappedObject->minimumHeight()); +} + +QSizeF PythonQtWrapper_QGraphicsLayoutItem::minimumSize(QGraphicsLayoutItem* theWrappedObject) const +{ + return ( theWrappedObject->minimumSize()); +} + +qreal PythonQtWrapper_QGraphicsLayoutItem::minimumWidth(QGraphicsLayoutItem* theWrappedObject) const +{ + return ( theWrappedObject->minimumWidth()); +} + +bool PythonQtWrapper_QGraphicsLayoutItem::ownedByLayout(QGraphicsLayoutItem* theWrappedObject) const +{ + return ( theWrappedObject->ownedByLayout()); +} + +QGraphicsLayoutItem* PythonQtWrapper_QGraphicsLayoutItem::parentLayoutItem(QGraphicsLayoutItem* theWrappedObject) const +{ + return ( theWrappedObject->parentLayoutItem()); +} + +qreal PythonQtWrapper_QGraphicsLayoutItem::preferredHeight(QGraphicsLayoutItem* theWrappedObject) const +{ + return ( theWrappedObject->preferredHeight()); +} + +QSizeF PythonQtWrapper_QGraphicsLayoutItem::preferredSize(QGraphicsLayoutItem* theWrappedObject) const +{ + return ( theWrappedObject->preferredSize()); +} + +qreal PythonQtWrapper_QGraphicsLayoutItem::preferredWidth(QGraphicsLayoutItem* theWrappedObject) const +{ + return ( theWrappedObject->preferredWidth()); +} + +void PythonQtWrapper_QGraphicsLayoutItem::setGeometry(QGraphicsLayoutItem* theWrappedObject, const QRectF& rect) +{ + ( ((PythonQtPublicPromoter_QGraphicsLayoutItem*)theWrappedObject)->promoted_setGeometry(rect)); +} + +void PythonQtWrapper_QGraphicsLayoutItem::setMaximumHeight(QGraphicsLayoutItem* theWrappedObject, qreal height) +{ + ( theWrappedObject->setMaximumHeight(height)); +} + +void PythonQtWrapper_QGraphicsLayoutItem::setMaximumSize(QGraphicsLayoutItem* theWrappedObject, const QSizeF& size) +{ + ( theWrappedObject->setMaximumSize(size)); +} + +void PythonQtWrapper_QGraphicsLayoutItem::setMaximumSize(QGraphicsLayoutItem* theWrappedObject, qreal w, qreal h) +{ + ( theWrappedObject->setMaximumSize(w, h)); +} + +void PythonQtWrapper_QGraphicsLayoutItem::setMaximumWidth(QGraphicsLayoutItem* theWrappedObject, qreal width) +{ + ( theWrappedObject->setMaximumWidth(width)); +} + +void PythonQtWrapper_QGraphicsLayoutItem::setMinimumHeight(QGraphicsLayoutItem* theWrappedObject, qreal height) +{ + ( theWrappedObject->setMinimumHeight(height)); +} + +void PythonQtWrapper_QGraphicsLayoutItem::setMinimumSize(QGraphicsLayoutItem* theWrappedObject, const QSizeF& size) +{ + ( theWrappedObject->setMinimumSize(size)); +} + +void PythonQtWrapper_QGraphicsLayoutItem::setMinimumSize(QGraphicsLayoutItem* theWrappedObject, qreal w, qreal h) +{ + ( theWrappedObject->setMinimumSize(w, h)); +} + +void PythonQtWrapper_QGraphicsLayoutItem::setMinimumWidth(QGraphicsLayoutItem* theWrappedObject, qreal width) +{ + ( theWrappedObject->setMinimumWidth(width)); +} + +void PythonQtWrapper_QGraphicsLayoutItem::setParentLayoutItem(QGraphicsLayoutItem* theWrappedObject, QGraphicsLayoutItem* parent) +{ + ( theWrappedObject->setParentLayoutItem(parent)); +} + +void PythonQtWrapper_QGraphicsLayoutItem::setPreferredHeight(QGraphicsLayoutItem* theWrappedObject, qreal height) +{ + ( theWrappedObject->setPreferredHeight(height)); +} + +void PythonQtWrapper_QGraphicsLayoutItem::setPreferredSize(QGraphicsLayoutItem* theWrappedObject, const QSizeF& size) +{ + ( theWrappedObject->setPreferredSize(size)); +} + +void PythonQtWrapper_QGraphicsLayoutItem::setPreferredSize(QGraphicsLayoutItem* theWrappedObject, qreal w, qreal h) +{ + ( theWrappedObject->setPreferredSize(w, h)); +} + +void PythonQtWrapper_QGraphicsLayoutItem::setPreferredWidth(QGraphicsLayoutItem* theWrappedObject, qreal width) +{ + ( theWrappedObject->setPreferredWidth(width)); +} + +void PythonQtWrapper_QGraphicsLayoutItem::setSizePolicy(QGraphicsLayoutItem* theWrappedObject, QSizePolicy::Policy hPolicy, QSizePolicy::Policy vPolicy, QSizePolicy::ControlType controlType) +{ + ( theWrappedObject->setSizePolicy(hPolicy, vPolicy, controlType)); +} + +void PythonQtWrapper_QGraphicsLayoutItem::setSizePolicy(QGraphicsLayoutItem* theWrappedObject, const QSizePolicy& policy) +{ + ( theWrappedObject->setSizePolicy(policy)); +} + +QSizePolicy PythonQtWrapper_QGraphicsLayoutItem::sizePolicy(QGraphicsLayoutItem* theWrappedObject) const +{ + return ( theWrappedObject->sizePolicy()); +} + +void PythonQtWrapper_QGraphicsLayoutItem::updateGeometry(QGraphicsLayoutItem* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGraphicsLayoutItem*)theWrappedObject)->promoted_updateGeometry()); +} + + + +PythonQtShell_QGraphicsLineItem::~PythonQtShell_QGraphicsLineItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGraphicsLineItem::advance(int phase) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "advance"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&phase}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::advance(phase); +} +QRectF PythonQtShell_QGraphicsLineItem::boundingRect() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRectF"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QRectF returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("boundingRect", methodInfo, result); + } else { + returnValue = *((QRectF*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsLineItem::boundingRect(); +} +bool PythonQtShell_QGraphicsLineItem::collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&other, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithItem", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsLineItem::collidesWithItem(other, mode); +} +bool PythonQtShell_QGraphicsLineItem::collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithPath"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&path, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithPath", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsLineItem::collidesWithPath(path, mode); +} +bool PythonQtShell_QGraphicsLineItem::contains(const QPointF& point) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contains"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPointF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&point}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("contains", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsLineItem::contains(point); +} +void PythonQtShell_QGraphicsLineItem::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::contextMenuEvent(event); +} +void PythonQtShell_QGraphicsLineItem::dragEnterEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::dragEnterEvent(event); +} +void PythonQtShell_QGraphicsLineItem::dragLeaveEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::dragLeaveEvent(event); +} +void PythonQtShell_QGraphicsLineItem::dragMoveEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::dragMoveEvent(event); +} +void PythonQtShell_QGraphicsLineItem::dropEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::dropEvent(event); +} +QVariant PythonQtShell_QGraphicsLineItem::extension(const QVariant& variant) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "extension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&variant}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("extension", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsLineItem::extension(variant); +} +void PythonQtShell_QGraphicsLineItem::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::focusInEvent(event); +} +void PythonQtShell_QGraphicsLineItem::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::focusOutEvent(event); +} +void PythonQtShell_QGraphicsLineItem::hoverEnterEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::hoverEnterEvent(event); +} +void PythonQtShell_QGraphicsLineItem::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::hoverLeaveEvent(event); +} +void PythonQtShell_QGraphicsLineItem::hoverMoveEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::hoverMoveEvent(event); +} +void PythonQtShell_QGraphicsLineItem::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::inputMethodEvent(event); +} +QVariant PythonQtShell_QGraphicsLineItem::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsLineItem::inputMethodQuery(query); +} +bool PythonQtShell_QGraphicsLineItem::isObscuredBy(const QGraphicsItem* item) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&item}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsLineItem::isObscuredBy(item); +} +QVariant PythonQtShell_QGraphicsLineItem::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemChange"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "QGraphicsItem::GraphicsItemChange" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&change, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemChange", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsLineItem::itemChange(change, value); +} +void PythonQtShell_QGraphicsLineItem::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::keyPressEvent(event); +} +void PythonQtShell_QGraphicsLineItem::keyReleaseEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::keyReleaseEvent(event); +} +void PythonQtShell_QGraphicsLineItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::mouseDoubleClickEvent(event); +} +void PythonQtShell_QGraphicsLineItem::mouseMoveEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::mouseMoveEvent(event); +} +void PythonQtShell_QGraphicsLineItem::mousePressEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::mousePressEvent(event); +} +void PythonQtShell_QGraphicsLineItem::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::mouseReleaseEvent(event); +} +QPainterPath PythonQtShell_QGraphicsLineItem::opaqueArea() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainterPath"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainterPath returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); + } else { + returnValue = *((QPainterPath*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsLineItem::opaqueArea(); +} +void PythonQtShell_QGraphicsLineItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::paint(painter, option, widget); +} +bool PythonQtShell_QGraphicsLineItem::sceneEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sceneEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsLineItem::sceneEvent(event); +} +bool PythonQtShell_QGraphicsLineItem::sceneEventFilter(QGraphicsItem* watched, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&watched, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sceneEventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsLineItem::sceneEventFilter(watched, event); +} +QPainterPath PythonQtShell_QGraphicsLineItem::shape() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "shape"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainterPath"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainterPath returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("shape", methodInfo, result); + } else { + returnValue = *((QPainterPath*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsLineItem::shape(); +} +int PythonQtShell_QGraphicsLineItem::type() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsLineItem::type(); +} +void PythonQtShell_QGraphicsLineItem::wheelEvent(QGraphicsSceneWheelEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLineItem::wheelEvent(event); +} +QGraphicsLineItem* PythonQtWrapper_QGraphicsLineItem::new_QGraphicsLineItem(QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsLineItem(parent); } + +QGraphicsLineItem* PythonQtWrapper_QGraphicsLineItem::new_QGraphicsLineItem(const QLineF& line, QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsLineItem(line, parent); } + +QGraphicsLineItem* PythonQtWrapper_QGraphicsLineItem::new_QGraphicsLineItem(qreal x1, qreal y1, qreal x2, qreal y2, QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsLineItem(x1, y1, x2, y2, parent); } + +QRectF PythonQtWrapper_QGraphicsLineItem::boundingRect(QGraphicsLineItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsLineItem*)theWrappedObject)->promoted_boundingRect()); +} + +bool PythonQtWrapper_QGraphicsLineItem::contains(QGraphicsLineItem* theWrappedObject, const QPointF& point) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsLineItem*)theWrappedObject)->promoted_contains(point)); +} + +QVariant PythonQtWrapper_QGraphicsLineItem::extension(QGraphicsLineItem* theWrappedObject, const QVariant& variant) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsLineItem*)theWrappedObject)->promoted_extension(variant)); +} + +bool PythonQtWrapper_QGraphicsLineItem::isObscuredBy(QGraphicsLineItem* theWrappedObject, const QGraphicsItem* item) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsLineItem*)theWrappedObject)->promoted_isObscuredBy(item)); +} + +QLineF PythonQtWrapper_QGraphicsLineItem::line(QGraphicsLineItem* theWrappedObject) const +{ + return ( theWrappedObject->line()); +} + +QPainterPath PythonQtWrapper_QGraphicsLineItem::opaqueArea(QGraphicsLineItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsLineItem*)theWrappedObject)->promoted_opaqueArea()); +} + +void PythonQtWrapper_QGraphicsLineItem::paint(QGraphicsLineItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ + ( ((PythonQtPublicPromoter_QGraphicsLineItem*)theWrappedObject)->promoted_paint(painter, option, widget)); +} + +QPen PythonQtWrapper_QGraphicsLineItem::pen(QGraphicsLineItem* theWrappedObject) const +{ + return ( theWrappedObject->pen()); +} + +void PythonQtWrapper_QGraphicsLineItem::setLine(QGraphicsLineItem* theWrappedObject, const QLineF& line) +{ + ( theWrappedObject->setLine(line)); +} + +void PythonQtWrapper_QGraphicsLineItem::setLine(QGraphicsLineItem* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2) +{ + ( theWrappedObject->setLine(x1, y1, x2, y2)); +} + +void PythonQtWrapper_QGraphicsLineItem::setPen(QGraphicsLineItem* theWrappedObject, const QPen& pen) +{ + ( theWrappedObject->setPen(pen)); +} + +QPainterPath PythonQtWrapper_QGraphicsLineItem::shape(QGraphicsLineItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsLineItem*)theWrappedObject)->promoted_shape()); +} + +int PythonQtWrapper_QGraphicsLineItem::type(QGraphicsLineItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsLineItem*)theWrappedObject)->promoted_type()); +} + + + +PythonQtShell_QGraphicsLinearLayout::~PythonQtShell_QGraphicsLinearLayout() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +int PythonQtShell_QGraphicsLinearLayout::count() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsLinearLayout::count(); +} +void PythonQtShell_QGraphicsLinearLayout::getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getContentsMargins"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "qreal*" , "qreal*" , "qreal*" , "qreal*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&left, (void*)&top, (void*)&right, (void*)&bottom}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLinearLayout::getContentsMargins(left, top, right, bottom); +} +void PythonQtShell_QGraphicsLinearLayout::invalidate() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLinearLayout::invalidate(); +} +QGraphicsLayoutItem* PythonQtShell_QGraphicsLinearLayout::itemAt(int index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QGraphicsLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QGraphicsLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); + } else { + returnValue = *((QGraphicsLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsLinearLayout::itemAt(index); +} +void PythonQtShell_QGraphicsLinearLayout::removeAt(int index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLinearLayout::removeAt(index); +} +void PythonQtShell_QGraphicsLinearLayout::updateGeometry() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLinearLayout::updateGeometry(); +} +void PythonQtShell_QGraphicsLinearLayout::widgetEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widgetEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsLinearLayout::widgetEvent(e); +} +QGraphicsLinearLayout* PythonQtWrapper_QGraphicsLinearLayout::new_QGraphicsLinearLayout(QGraphicsLayoutItem* parent) +{ +return new PythonQtShell_QGraphicsLinearLayout(parent); } + +QGraphicsLinearLayout* PythonQtWrapper_QGraphicsLinearLayout::new_QGraphicsLinearLayout(Qt::Orientation orientation, QGraphicsLayoutItem* parent) +{ +return new PythonQtShell_QGraphicsLinearLayout(orientation, parent); } + +void PythonQtWrapper_QGraphicsLinearLayout::addItem(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) +{ + ( theWrappedObject->addItem(item)); +} + +void PythonQtWrapper_QGraphicsLinearLayout::addStretch(QGraphicsLinearLayout* theWrappedObject, int stretch) +{ + ( theWrappedObject->addStretch(stretch)); +} + +Qt::Alignment PythonQtWrapper_QGraphicsLinearLayout::alignment(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) const +{ + return ( theWrappedObject->alignment(item)); +} + +int PythonQtWrapper_QGraphicsLinearLayout::count(QGraphicsLinearLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsLinearLayout*)theWrappedObject)->promoted_count()); +} + +void PythonQtWrapper_QGraphicsLinearLayout::dump(QGraphicsLinearLayout* theWrappedObject, int indent) const +{ + ( theWrappedObject->dump(indent)); +} + +void PythonQtWrapper_QGraphicsLinearLayout::insertItem(QGraphicsLinearLayout* theWrappedObject, int index, QGraphicsLayoutItem* item) +{ + ( theWrappedObject->insertItem(index, item)); +} + +void PythonQtWrapper_QGraphicsLinearLayout::insertStretch(QGraphicsLinearLayout* theWrappedObject, int index, int stretch) +{ + ( theWrappedObject->insertStretch(index, stretch)); +} + +void PythonQtWrapper_QGraphicsLinearLayout::invalidate(QGraphicsLinearLayout* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGraphicsLinearLayout*)theWrappedObject)->promoted_invalidate()); +} + +QGraphicsLayoutItem* PythonQtWrapper_QGraphicsLinearLayout::itemAt(QGraphicsLinearLayout* theWrappedObject, int index) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsLinearLayout*)theWrappedObject)->promoted_itemAt(index)); +} + +qreal PythonQtWrapper_QGraphicsLinearLayout::itemSpacing(QGraphicsLinearLayout* theWrappedObject, int index) const +{ + return ( theWrappedObject->itemSpacing(index)); +} + +Qt::Orientation PythonQtWrapper_QGraphicsLinearLayout::orientation(QGraphicsLinearLayout* theWrappedObject) const +{ + return ( theWrappedObject->orientation()); +} + +void PythonQtWrapper_QGraphicsLinearLayout::removeAt(QGraphicsLinearLayout* theWrappedObject, int index) +{ + ( ((PythonQtPublicPromoter_QGraphicsLinearLayout*)theWrappedObject)->promoted_removeAt(index)); +} + +void PythonQtWrapper_QGraphicsLinearLayout::removeItem(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) +{ + ( theWrappedObject->removeItem(item)); +} + +void PythonQtWrapper_QGraphicsLinearLayout::setAlignment(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item, Qt::Alignment alignment) +{ + ( theWrappedObject->setAlignment(item, alignment)); +} + +void PythonQtWrapper_QGraphicsLinearLayout::setGeometry(QGraphicsLinearLayout* theWrappedObject, const QRectF& rect) +{ + ( theWrappedObject->setGeometry(rect)); +} + +void PythonQtWrapper_QGraphicsLinearLayout::setItemSpacing(QGraphicsLinearLayout* theWrappedObject, int index, qreal spacing) +{ + ( theWrappedObject->setItemSpacing(index, spacing)); +} + +void PythonQtWrapper_QGraphicsLinearLayout::setOrientation(QGraphicsLinearLayout* theWrappedObject, Qt::Orientation orientation) +{ + ( theWrappedObject->setOrientation(orientation)); +} + +void PythonQtWrapper_QGraphicsLinearLayout::setSpacing(QGraphicsLinearLayout* theWrappedObject, qreal spacing) +{ + ( theWrappedObject->setSpacing(spacing)); +} + +void PythonQtWrapper_QGraphicsLinearLayout::setStretchFactor(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item, int stretch) +{ + ( theWrappedObject->setStretchFactor(item, stretch)); +} + +QSizeF PythonQtWrapper_QGraphicsLinearLayout::sizeHint(QGraphicsLinearLayout* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint) const +{ + return ( theWrappedObject->sizeHint(which, constraint)); +} + +qreal PythonQtWrapper_QGraphicsLinearLayout::spacing(QGraphicsLinearLayout* theWrappedObject) const +{ + return ( theWrappedObject->spacing()); +} + +int PythonQtWrapper_QGraphicsLinearLayout::stretchFactor(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) const +{ + return ( theWrappedObject->stretchFactor(item)); +} + + + +PythonQtShell_QGraphicsObject::~PythonQtShell_QGraphicsObject() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGraphicsObject::advance(int phase) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "advance"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&phase}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::advance(phase); +} +QRectF PythonQtShell_QGraphicsObject::boundingRect() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRectF"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QRectF returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("boundingRect", methodInfo, result); + } else { + returnValue = *((QRectF*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRectF(); +} +void PythonQtShell_QGraphicsObject::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::childEvent(arg__1); +} +bool PythonQtShell_QGraphicsObject::collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&other, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithItem", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsObject::collidesWithItem(other, mode); +} +bool PythonQtShell_QGraphicsObject::collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithPath"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&path, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithPath", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsObject::collidesWithPath(path, mode); +} +bool PythonQtShell_QGraphicsObject::contains(const QPointF& point) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contains"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPointF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&point}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("contains", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsObject::contains(point); +} +void PythonQtShell_QGraphicsObject::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::contextMenuEvent(event); +} +void PythonQtShell_QGraphicsObject::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::customEvent(arg__1); +} +void PythonQtShell_QGraphicsObject::dragEnterEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::dragEnterEvent(event); +} +void PythonQtShell_QGraphicsObject::dragLeaveEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::dragLeaveEvent(event); +} +void PythonQtShell_QGraphicsObject::dragMoveEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::dragMoveEvent(event); +} +void PythonQtShell_QGraphicsObject::dropEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::dropEvent(event); +} +bool PythonQtShell_QGraphicsObject::event(QEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsObject::event(ev); +} +bool PythonQtShell_QGraphicsObject::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsObject::eventFilter(arg__1, arg__2); +} +QVariant PythonQtShell_QGraphicsObject::extension(const QVariant& variant) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "extension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&variant}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("extension", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsObject::extension(variant); +} +void PythonQtShell_QGraphicsObject::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::focusInEvent(event); +} +void PythonQtShell_QGraphicsObject::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::focusOutEvent(event); +} +void PythonQtShell_QGraphicsObject::hoverEnterEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::hoverEnterEvent(event); +} +void PythonQtShell_QGraphicsObject::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::hoverLeaveEvent(event); +} +void PythonQtShell_QGraphicsObject::hoverMoveEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::hoverMoveEvent(event); +} +void PythonQtShell_QGraphicsObject::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::inputMethodEvent(event); +} +QVariant PythonQtShell_QGraphicsObject::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsObject::inputMethodQuery(query); +} +bool PythonQtShell_QGraphicsObject::isObscuredBy(const QGraphicsItem* item) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&item}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsObject::isObscuredBy(item); +} +QVariant PythonQtShell_QGraphicsObject::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemChange"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "QGraphicsItem::GraphicsItemChange" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&change, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemChange", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsObject::itemChange(change, value); +} +void PythonQtShell_QGraphicsObject::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::keyPressEvent(event); +} +void PythonQtShell_QGraphicsObject::keyReleaseEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::keyReleaseEvent(event); +} +void PythonQtShell_QGraphicsObject::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::mouseDoubleClickEvent(event); +} +void PythonQtShell_QGraphicsObject::mouseMoveEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::mouseMoveEvent(event); +} +void PythonQtShell_QGraphicsObject::mousePressEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::mousePressEvent(event); +} +void PythonQtShell_QGraphicsObject::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::mouseReleaseEvent(event); +} +QPainterPath PythonQtShell_QGraphicsObject::opaqueArea() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainterPath"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainterPath returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); + } else { + returnValue = *((QPainterPath*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsObject::opaqueArea(); +} +void PythonQtShell_QGraphicsObject::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +bool PythonQtShell_QGraphicsObject::sceneEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sceneEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsObject::sceneEvent(event); +} +bool PythonQtShell_QGraphicsObject::sceneEventFilter(QGraphicsItem* watched, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&watched, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sceneEventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsObject::sceneEventFilter(watched, event); +} +void PythonQtShell_QGraphicsObject::setExtension(QGraphicsItem::Extension extension, const QVariant& variant) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setExtension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsItem::Extension" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&extension, (void*)&variant}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::setExtension(extension, variant); +} +QPainterPath PythonQtShell_QGraphicsObject::shape() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "shape"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainterPath"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainterPath returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("shape", methodInfo, result); + } else { + returnValue = *((QPainterPath*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsObject::shape(); +} +bool PythonQtShell_QGraphicsObject::supportsExtension(QGraphicsItem::Extension extension) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportsExtension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QGraphicsItem::Extension"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&extension}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportsExtension", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsObject::supportsExtension(extension); +} +void PythonQtShell_QGraphicsObject::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::timerEvent(arg__1); +} +int PythonQtShell_QGraphicsObject::type() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsObject::type(); +} +void PythonQtShell_QGraphicsObject::wheelEvent(QGraphicsSceneWheelEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsObject::wheelEvent(event); +} +QGraphicsObject* PythonQtWrapper_QGraphicsObject::new_QGraphicsObject(QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsObject(parent); } + +bool PythonQtWrapper_QGraphicsObject::event(QGraphicsObject* theWrappedObject, QEvent* ev) +{ + return ( ((PythonQtPublicPromoter_QGraphicsObject*)theWrappedObject)->promoted_event(ev)); +} + +void PythonQtWrapper_QGraphicsObject::grabGesture(QGraphicsObject* theWrappedObject, Qt::GestureType type, Qt::GestureFlags flags) +{ + ( theWrappedObject->grabGesture(type, flags)); +} + +void PythonQtWrapper_QGraphicsObject::ungrabGesture(QGraphicsObject* theWrappedObject, Qt::GestureType type) +{ + ( theWrappedObject->ungrabGesture(type)); +} + +QString PythonQtWrapper_QGraphicsObject::py_toString(QGraphicsObject* obj) { + QString result; + QDebug d(&result); + d << obj; + return result; +} + + + +PythonQtShell_QGraphicsOpacityEffect::~PythonQtShell_QGraphicsOpacityEffect() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QRectF PythonQtShell_QGraphicsOpacityEffect::boundingRectFor(const QRectF& sourceRect) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRectFor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRectF" , "const QRectF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRectF returnValue; + void* args[2] = {NULL, (void*)&sourceRect}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("boundingRectFor", methodInfo, result); + } else { + returnValue = *((QRectF*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsOpacityEffect::boundingRectFor(sourceRect); +} +void PythonQtShell_QGraphicsOpacityEffect::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsOpacityEffect::childEvent(arg__1); +} +void PythonQtShell_QGraphicsOpacityEffect::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsOpacityEffect::customEvent(arg__1); +} +void PythonQtShell_QGraphicsOpacityEffect::draw(QPainter* painter) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "draw"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsOpacityEffect::draw(painter); +} +bool PythonQtShell_QGraphicsOpacityEffect::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsOpacityEffect::event(arg__1); +} +bool PythonQtShell_QGraphicsOpacityEffect::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsOpacityEffect::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QGraphicsOpacityEffect::sourceChanged(QGraphicsEffect::ChangeFlags flags) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sourceChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsEffect::ChangeFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&flags}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsOpacityEffect::sourceChanged(flags); +} +void PythonQtShell_QGraphicsOpacityEffect::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsOpacityEffect::timerEvent(arg__1); +} +QGraphicsOpacityEffect* PythonQtWrapper_QGraphicsOpacityEffect::new_QGraphicsOpacityEffect(QObject* parent) +{ +return new PythonQtShell_QGraphicsOpacityEffect(parent); } + +void PythonQtWrapper_QGraphicsOpacityEffect::draw(QGraphicsOpacityEffect* theWrappedObject, QPainter* painter) +{ + ( ((PythonQtPublicPromoter_QGraphicsOpacityEffect*)theWrappedObject)->promoted_draw(painter)); +} + +qreal PythonQtWrapper_QGraphicsOpacityEffect::opacity(QGraphicsOpacityEffect* theWrappedObject) const +{ + return ( theWrappedObject->opacity()); +} + +QBrush PythonQtWrapper_QGraphicsOpacityEffect::opacityMask(QGraphicsOpacityEffect* theWrappedObject) const +{ + return ( theWrappedObject->opacityMask()); +} + + + +PythonQtShell_QGraphicsPathItem::~PythonQtShell_QGraphicsPathItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QGraphicsPathItem::isObscuredBy(const QGraphicsItem* item) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&item}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsPathItem::isObscuredBy(item); +} +QPainterPath PythonQtShell_QGraphicsPathItem::opaqueArea() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainterPath"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainterPath returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); + } else { + returnValue = *((QPainterPath*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsPathItem::opaqueArea(); +} +QGraphicsPathItem* PythonQtWrapper_QGraphicsPathItem::new_QGraphicsPathItem(QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsPathItem(parent); } + +QGraphicsPathItem* PythonQtWrapper_QGraphicsPathItem::new_QGraphicsPathItem(const QPainterPath& path, QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsPathItem(path, parent); } + +QRectF PythonQtWrapper_QGraphicsPathItem::boundingRect(QGraphicsPathItem* theWrappedObject) const +{ + return ( theWrappedObject->boundingRect()); +} + +bool PythonQtWrapper_QGraphicsPathItem::contains(QGraphicsPathItem* theWrappedObject, const QPointF& point) const +{ + return ( theWrappedObject->contains(point)); +} + +bool PythonQtWrapper_QGraphicsPathItem::isObscuredBy(QGraphicsPathItem* theWrappedObject, const QGraphicsItem* item) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsPathItem*)theWrappedObject)->promoted_isObscuredBy(item)); +} + +QPainterPath PythonQtWrapper_QGraphicsPathItem::opaqueArea(QGraphicsPathItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsPathItem*)theWrappedObject)->promoted_opaqueArea()); +} + +void PythonQtWrapper_QGraphicsPathItem::paint(QGraphicsPathItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ + ( theWrappedObject->paint(painter, option, widget)); +} + +QPainterPath PythonQtWrapper_QGraphicsPathItem::path(QGraphicsPathItem* theWrappedObject) const +{ + return ( theWrappedObject->path()); +} + +void PythonQtWrapper_QGraphicsPathItem::setPath(QGraphicsPathItem* theWrappedObject, const QPainterPath& path) +{ + ( theWrappedObject->setPath(path)); +} + +QPainterPath PythonQtWrapper_QGraphicsPathItem::shape(QGraphicsPathItem* theWrappedObject) const +{ + return ( theWrappedObject->shape()); +} + +int PythonQtWrapper_QGraphicsPathItem::type(QGraphicsPathItem* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + + + +PythonQtShell_QGraphicsPixmapItem::~PythonQtShell_QGraphicsPixmapItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGraphicsPixmapItem::advance(int phase) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "advance"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&phase}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::advance(phase); +} +QRectF PythonQtShell_QGraphicsPixmapItem::boundingRect() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRectF"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QRectF returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("boundingRect", methodInfo, result); + } else { + returnValue = *((QRectF*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsPixmapItem::boundingRect(); +} +bool PythonQtShell_QGraphicsPixmapItem::collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&other, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithItem", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsPixmapItem::collidesWithItem(other, mode); +} +bool PythonQtShell_QGraphicsPixmapItem::collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithPath"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&path, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithPath", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsPixmapItem::collidesWithPath(path, mode); +} +bool PythonQtShell_QGraphicsPixmapItem::contains(const QPointF& point) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contains"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPointF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&point}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("contains", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsPixmapItem::contains(point); +} +void PythonQtShell_QGraphicsPixmapItem::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::contextMenuEvent(event); +} +void PythonQtShell_QGraphicsPixmapItem::dragEnterEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::dragEnterEvent(event); +} +void PythonQtShell_QGraphicsPixmapItem::dragLeaveEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::dragLeaveEvent(event); +} +void PythonQtShell_QGraphicsPixmapItem::dragMoveEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::dragMoveEvent(event); +} +void PythonQtShell_QGraphicsPixmapItem::dropEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::dropEvent(event); +} +QVariant PythonQtShell_QGraphicsPixmapItem::extension(const QVariant& variant) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "extension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&variant}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("extension", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsPixmapItem::extension(variant); +} +void PythonQtShell_QGraphicsPixmapItem::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::focusInEvent(event); +} +void PythonQtShell_QGraphicsPixmapItem::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::focusOutEvent(event); +} +void PythonQtShell_QGraphicsPixmapItem::hoverEnterEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::hoverEnterEvent(event); +} +void PythonQtShell_QGraphicsPixmapItem::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::hoverLeaveEvent(event); +} +void PythonQtShell_QGraphicsPixmapItem::hoverMoveEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::hoverMoveEvent(event); +} +void PythonQtShell_QGraphicsPixmapItem::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::inputMethodEvent(event); +} +QVariant PythonQtShell_QGraphicsPixmapItem::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsPixmapItem::inputMethodQuery(query); +} +bool PythonQtShell_QGraphicsPixmapItem::isObscuredBy(const QGraphicsItem* item) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&item}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsPixmapItem::isObscuredBy(item); +} +QVariant PythonQtShell_QGraphicsPixmapItem::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemChange"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "QGraphicsItem::GraphicsItemChange" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&change, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemChange", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsPixmapItem::itemChange(change, value); +} +void PythonQtShell_QGraphicsPixmapItem::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::keyPressEvent(event); +} +void PythonQtShell_QGraphicsPixmapItem::keyReleaseEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::keyReleaseEvent(event); +} +void PythonQtShell_QGraphicsPixmapItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::mouseDoubleClickEvent(event); +} +void PythonQtShell_QGraphicsPixmapItem::mouseMoveEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::mouseMoveEvent(event); +} +void PythonQtShell_QGraphicsPixmapItem::mousePressEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::mousePressEvent(event); +} +void PythonQtShell_QGraphicsPixmapItem::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::mouseReleaseEvent(event); +} +QPainterPath PythonQtShell_QGraphicsPixmapItem::opaqueArea() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainterPath"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainterPath returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); + } else { + returnValue = *((QPainterPath*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsPixmapItem::opaqueArea(); +} +void PythonQtShell_QGraphicsPixmapItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::paint(painter, option, widget); +} +bool PythonQtShell_QGraphicsPixmapItem::sceneEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sceneEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsPixmapItem::sceneEvent(event); +} +bool PythonQtShell_QGraphicsPixmapItem::sceneEventFilter(QGraphicsItem* watched, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&watched, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sceneEventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsPixmapItem::sceneEventFilter(watched, event); +} +QPainterPath PythonQtShell_QGraphicsPixmapItem::shape() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "shape"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainterPath"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainterPath returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("shape", methodInfo, result); + } else { + returnValue = *((QPainterPath*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsPixmapItem::shape(); +} +int PythonQtShell_QGraphicsPixmapItem::type() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsPixmapItem::type(); +} +void PythonQtShell_QGraphicsPixmapItem::wheelEvent(QGraphicsSceneWheelEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsPixmapItem::wheelEvent(event); +} +QGraphicsPixmapItem* PythonQtWrapper_QGraphicsPixmapItem::new_QGraphicsPixmapItem(QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsPixmapItem(parent); } + +QGraphicsPixmapItem* PythonQtWrapper_QGraphicsPixmapItem::new_QGraphicsPixmapItem(const QPixmap& pixmap, QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsPixmapItem(pixmap, parent); } + +QRectF PythonQtWrapper_QGraphicsPixmapItem::boundingRect(QGraphicsPixmapItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsPixmapItem*)theWrappedObject)->promoted_boundingRect()); +} + +bool PythonQtWrapper_QGraphicsPixmapItem::contains(QGraphicsPixmapItem* theWrappedObject, const QPointF& point) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsPixmapItem*)theWrappedObject)->promoted_contains(point)); +} + +QVariant PythonQtWrapper_QGraphicsPixmapItem::extension(QGraphicsPixmapItem* theWrappedObject, const QVariant& variant) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsPixmapItem*)theWrappedObject)->promoted_extension(variant)); +} + +bool PythonQtWrapper_QGraphicsPixmapItem::isObscuredBy(QGraphicsPixmapItem* theWrappedObject, const QGraphicsItem* item) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsPixmapItem*)theWrappedObject)->promoted_isObscuredBy(item)); +} + +QPointF PythonQtWrapper_QGraphicsPixmapItem::offset(QGraphicsPixmapItem* theWrappedObject) const +{ + return ( theWrappedObject->offset()); +} + +QPainterPath PythonQtWrapper_QGraphicsPixmapItem::opaqueArea(QGraphicsPixmapItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsPixmapItem*)theWrappedObject)->promoted_opaqueArea()); +} + +void PythonQtWrapper_QGraphicsPixmapItem::paint(QGraphicsPixmapItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ + ( ((PythonQtPublicPromoter_QGraphicsPixmapItem*)theWrappedObject)->promoted_paint(painter, option, widget)); +} + +QPixmap PythonQtWrapper_QGraphicsPixmapItem::pixmap(QGraphicsPixmapItem* theWrappedObject) const +{ + return ( theWrappedObject->pixmap()); +} + +void PythonQtWrapper_QGraphicsPixmapItem::setOffset(QGraphicsPixmapItem* theWrappedObject, const QPointF& offset) +{ + ( theWrappedObject->setOffset(offset)); +} + +void PythonQtWrapper_QGraphicsPixmapItem::setOffset(QGraphicsPixmapItem* theWrappedObject, qreal x, qreal y) +{ + ( theWrappedObject->setOffset(x, y)); +} + +void PythonQtWrapper_QGraphicsPixmapItem::setPixmap(QGraphicsPixmapItem* theWrappedObject, const QPixmap& pixmap) +{ + ( theWrappedObject->setPixmap(pixmap)); +} + +void PythonQtWrapper_QGraphicsPixmapItem::setShapeMode(QGraphicsPixmapItem* theWrappedObject, QGraphicsPixmapItem::ShapeMode mode) +{ + ( theWrappedObject->setShapeMode(mode)); +} + +void PythonQtWrapper_QGraphicsPixmapItem::setTransformationMode(QGraphicsPixmapItem* theWrappedObject, Qt::TransformationMode mode) +{ + ( theWrappedObject->setTransformationMode(mode)); +} + +QPainterPath PythonQtWrapper_QGraphicsPixmapItem::shape(QGraphicsPixmapItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsPixmapItem*)theWrappedObject)->promoted_shape()); +} + +QGraphicsPixmapItem::ShapeMode PythonQtWrapper_QGraphicsPixmapItem::shapeMode(QGraphicsPixmapItem* theWrappedObject) const +{ + return ( theWrappedObject->shapeMode()); +} + +Qt::TransformationMode PythonQtWrapper_QGraphicsPixmapItem::transformationMode(QGraphicsPixmapItem* theWrappedObject) const +{ + return ( theWrappedObject->transformationMode()); +} + +int PythonQtWrapper_QGraphicsPixmapItem::type(QGraphicsPixmapItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsPixmapItem*)theWrappedObject)->promoted_type()); +} + + + +PythonQtShell_QGraphicsPolygonItem::~PythonQtShell_QGraphicsPolygonItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QGraphicsPolygonItem::isObscuredBy(const QGraphicsItem* item) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&item}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsPolygonItem::isObscuredBy(item); +} +QPainterPath PythonQtShell_QGraphicsPolygonItem::opaqueArea() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainterPath"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainterPath returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); + } else { + returnValue = *((QPainterPath*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsPolygonItem::opaqueArea(); +} +QGraphicsPolygonItem* PythonQtWrapper_QGraphicsPolygonItem::new_QGraphicsPolygonItem(QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsPolygonItem(parent); } + +QGraphicsPolygonItem* PythonQtWrapper_QGraphicsPolygonItem::new_QGraphicsPolygonItem(const QPolygonF& polygon, QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsPolygonItem(polygon, parent); } + +QRectF PythonQtWrapper_QGraphicsPolygonItem::boundingRect(QGraphicsPolygonItem* theWrappedObject) const +{ + return ( theWrappedObject->boundingRect()); +} + +bool PythonQtWrapper_QGraphicsPolygonItem::contains(QGraphicsPolygonItem* theWrappedObject, const QPointF& point) const +{ + return ( theWrappedObject->contains(point)); +} + +Qt::FillRule PythonQtWrapper_QGraphicsPolygonItem::fillRule(QGraphicsPolygonItem* theWrappedObject) const +{ + return ( theWrappedObject->fillRule()); +} + +bool PythonQtWrapper_QGraphicsPolygonItem::isObscuredBy(QGraphicsPolygonItem* theWrappedObject, const QGraphicsItem* item) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsPolygonItem*)theWrappedObject)->promoted_isObscuredBy(item)); +} + +QPainterPath PythonQtWrapper_QGraphicsPolygonItem::opaqueArea(QGraphicsPolygonItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsPolygonItem*)theWrappedObject)->promoted_opaqueArea()); +} + +void PythonQtWrapper_QGraphicsPolygonItem::paint(QGraphicsPolygonItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ + ( theWrappedObject->paint(painter, option, widget)); +} + +QPolygonF PythonQtWrapper_QGraphicsPolygonItem::polygon(QGraphicsPolygonItem* theWrappedObject) const +{ + return ( theWrappedObject->polygon()); +} + +void PythonQtWrapper_QGraphicsPolygonItem::setFillRule(QGraphicsPolygonItem* theWrappedObject, Qt::FillRule rule) +{ + ( theWrappedObject->setFillRule(rule)); +} + +void PythonQtWrapper_QGraphicsPolygonItem::setPolygon(QGraphicsPolygonItem* theWrappedObject, const QPolygonF& polygon) +{ + ( theWrappedObject->setPolygon(polygon)); +} + +QPainterPath PythonQtWrapper_QGraphicsPolygonItem::shape(QGraphicsPolygonItem* theWrappedObject) const +{ + return ( theWrappedObject->shape()); +} + +int PythonQtWrapper_QGraphicsPolygonItem::type(QGraphicsPolygonItem* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + + + +PythonQtShell_QGraphicsProxyWidget::~PythonQtShell_QGraphicsProxyWidget() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGraphicsProxyWidget::changeEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::changeEvent(event); +} +void PythonQtShell_QGraphicsProxyWidget::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::childEvent(arg__1); +} +void PythonQtShell_QGraphicsProxyWidget::closeEvent(QCloseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::closeEvent(event); +} +void PythonQtShell_QGraphicsProxyWidget::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::customEvent(arg__1); +} +bool PythonQtShell_QGraphicsProxyWidget::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsProxyWidget::event(event); +} +bool PythonQtShell_QGraphicsProxyWidget::eventFilter(QObject* object, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&object, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsProxyWidget::eventFilter(object, event); +} +bool PythonQtShell_QGraphicsProxyWidget::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsProxyWidget::focusNextPrevChild(next); +} +void PythonQtShell_QGraphicsProxyWidget::getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getContentsMargins"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "qreal*" , "qreal*" , "qreal*" , "qreal*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&left, (void*)&top, (void*)&right, (void*)&bottom}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::getContentsMargins(left, top, right, bottom); +} +void PythonQtShell_QGraphicsProxyWidget::grabKeyboardEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "grabKeyboardEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::grabKeyboardEvent(event); +} +void PythonQtShell_QGraphicsProxyWidget::grabMouseEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "grabMouseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::grabMouseEvent(event); +} +void PythonQtShell_QGraphicsProxyWidget::hideEvent(QHideEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::hideEvent(event); +} +void PythonQtShell_QGraphicsProxyWidget::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::hoverLeaveEvent(event); +} +void PythonQtShell_QGraphicsProxyWidget::hoverMoveEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::hoverMoveEvent(event); +} +void PythonQtShell_QGraphicsProxyWidget::initStyleOption(QStyleOption* option) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initStyleOption"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QStyleOption*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&option}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::initStyleOption(option); +} +void PythonQtShell_QGraphicsProxyWidget::moveEvent(QGraphicsSceneMoveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::moveEvent(event); +} +void PythonQtShell_QGraphicsProxyWidget::paintWindowFrame(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintWindowFrame"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::paintWindowFrame(painter, option, widget); +} +void PythonQtShell_QGraphicsProxyWidget::polishEvent() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polishEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::polishEvent(); +} +QVariant PythonQtShell_QGraphicsProxyWidget::propertyChange(const QString& propertyName, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "propertyChange"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QString&" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&propertyName, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("propertyChange", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsProxyWidget::propertyChange(propertyName, value); +} +void PythonQtShell_QGraphicsProxyWidget::resizeEvent(QGraphicsSceneResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::resizeEvent(event); +} +void PythonQtShell_QGraphicsProxyWidget::setGeometry(const QRectF& rect) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRectF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&rect}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::setGeometry(rect); +} +void PythonQtShell_QGraphicsProxyWidget::showEvent(QShowEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::showEvent(event); +} +QSizeF PythonQtShell_QGraphicsProxyWidget::sizeHint(Qt::SizeHint which, const QSizeF& constraint) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSizeF" , "Qt::SizeHint" , "const QSizeF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QSizeF returnValue; + void* args[3] = {NULL, (void*)&which, (void*)&constraint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); + } else { + returnValue = *((QSizeF*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsProxyWidget::sizeHint(which, constraint); +} +void PythonQtShell_QGraphicsProxyWidget::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::timerEvent(arg__1); +} +void PythonQtShell_QGraphicsProxyWidget::ungrabKeyboardEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ungrabKeyboardEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::ungrabKeyboardEvent(event); +} +void PythonQtShell_QGraphicsProxyWidget::ungrabMouseEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ungrabMouseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::ungrabMouseEvent(event); +} +void PythonQtShell_QGraphicsProxyWidget::updateGeometry() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsProxyWidget::updateGeometry(); +} +bool PythonQtShell_QGraphicsProxyWidget::windowFrameEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "windowFrameEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("windowFrameEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsProxyWidget::windowFrameEvent(e); +} +Qt::WindowFrameSection PythonQtShell_QGraphicsProxyWidget::windowFrameSectionAt(const QPointF& pos) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "windowFrameSectionAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::WindowFrameSection" , "const QPointF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + Qt::WindowFrameSection returnValue; + void* args[2] = {NULL, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("windowFrameSectionAt", methodInfo, result); + } else { + returnValue = *((Qt::WindowFrameSection*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsProxyWidget::windowFrameSectionAt(pos); +} +QGraphicsProxyWidget* PythonQtWrapper_QGraphicsProxyWidget::new_QGraphicsProxyWidget(QGraphicsItem* parent, Qt::WindowFlags wFlags) +{ +return new PythonQtShell_QGraphicsProxyWidget(parent, wFlags); } + +QGraphicsProxyWidget* PythonQtWrapper_QGraphicsProxyWidget::createProxyForChildWidget(QGraphicsProxyWidget* theWrappedObject, QWidget* child) +{ + return ( theWrappedObject->createProxyForChildWidget(child)); +} + +bool PythonQtWrapper_QGraphicsProxyWidget::event(QGraphicsProxyWidget* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_event(event)); +} + +bool PythonQtWrapper_QGraphicsProxyWidget::eventFilter(QGraphicsProxyWidget* theWrappedObject, QObject* object, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_eventFilter(object, event)); +} + +bool PythonQtWrapper_QGraphicsProxyWidget::focusNextPrevChild(QGraphicsProxyWidget* theWrappedObject, bool next) +{ + return ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_focusNextPrevChild(next)); +} + +void PythonQtWrapper_QGraphicsProxyWidget::grabMouseEvent(QGraphicsProxyWidget* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_grabMouseEvent(event)); +} + +void PythonQtWrapper_QGraphicsProxyWidget::hideEvent(QGraphicsProxyWidget* theWrappedObject, QHideEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_hideEvent(event)); +} + +void PythonQtWrapper_QGraphicsProxyWidget::hoverLeaveEvent(QGraphicsProxyWidget* theWrappedObject, QGraphicsSceneHoverEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_hoverLeaveEvent(event)); +} + +void PythonQtWrapper_QGraphicsProxyWidget::hoverMoveEvent(QGraphicsProxyWidget* theWrappedObject, QGraphicsSceneHoverEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_hoverMoveEvent(event)); +} + +void PythonQtWrapper_QGraphicsProxyWidget::paint(QGraphicsProxyWidget* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ + ( theWrappedObject->paint(painter, option, widget)); +} + +void PythonQtWrapper_QGraphicsProxyWidget::resizeEvent(QGraphicsProxyWidget* theWrappedObject, QGraphicsSceneResizeEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_resizeEvent(event)); +} + +void PythonQtWrapper_QGraphicsProxyWidget::setGeometry(QGraphicsProxyWidget* theWrappedObject, const QRectF& rect) +{ + ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_setGeometry(rect)); +} + +void PythonQtWrapper_QGraphicsProxyWidget::setWidget(QGraphicsProxyWidget* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->setWidget(widget)); +} + +void PythonQtWrapper_QGraphicsProxyWidget::showEvent(QGraphicsProxyWidget* theWrappedObject, QShowEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_showEvent(event)); +} + +QSizeF PythonQtWrapper_QGraphicsProxyWidget::sizeHint(QGraphicsProxyWidget* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_sizeHint(which, constraint)); +} + +QRectF PythonQtWrapper_QGraphicsProxyWidget::subWidgetRect(QGraphicsProxyWidget* theWrappedObject, const QWidget* widget) const +{ + return ( theWrappedObject->subWidgetRect(widget)); +} + +int PythonQtWrapper_QGraphicsProxyWidget::type(QGraphicsProxyWidget* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + +void PythonQtWrapper_QGraphicsProxyWidget::ungrabMouseEvent(QGraphicsProxyWidget* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_ungrabMouseEvent(event)); +} + +QWidget* PythonQtWrapper_QGraphicsProxyWidget::widget(QGraphicsProxyWidget* theWrappedObject) const +{ + return ( theWrappedObject->widget()); +} + + + +PythonQtShell_QGraphicsRectItem::~PythonQtShell_QGraphicsRectItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QGraphicsRectItem::isObscuredBy(const QGraphicsItem* item) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&item}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsRectItem::isObscuredBy(item); +} +QPainterPath PythonQtShell_QGraphicsRectItem::opaqueArea() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainterPath"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainterPath returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); + } else { + returnValue = *((QPainterPath*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsRectItem::opaqueArea(); +} +QGraphicsRectItem* PythonQtWrapper_QGraphicsRectItem::new_QGraphicsRectItem(QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsRectItem(parent); } + +QGraphicsRectItem* PythonQtWrapper_QGraphicsRectItem::new_QGraphicsRectItem(const QRectF& rect, QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsRectItem(rect, parent); } + +QGraphicsRectItem* PythonQtWrapper_QGraphicsRectItem::new_QGraphicsRectItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsRectItem(x, y, w, h, parent); } + +QRectF PythonQtWrapper_QGraphicsRectItem::boundingRect(QGraphicsRectItem* theWrappedObject) const +{ + return ( theWrappedObject->boundingRect()); +} + +bool PythonQtWrapper_QGraphicsRectItem::contains(QGraphicsRectItem* theWrappedObject, const QPointF& point) const +{ + return ( theWrappedObject->contains(point)); +} + +bool PythonQtWrapper_QGraphicsRectItem::isObscuredBy(QGraphicsRectItem* theWrappedObject, const QGraphicsItem* item) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsRectItem*)theWrappedObject)->promoted_isObscuredBy(item)); +} + +QPainterPath PythonQtWrapper_QGraphicsRectItem::opaqueArea(QGraphicsRectItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsRectItem*)theWrappedObject)->promoted_opaqueArea()); +} + +void PythonQtWrapper_QGraphicsRectItem::paint(QGraphicsRectItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ + ( theWrappedObject->paint(painter, option, widget)); +} + +QRectF PythonQtWrapper_QGraphicsRectItem::rect(QGraphicsRectItem* theWrappedObject) const +{ + return ( theWrappedObject->rect()); +} + +void PythonQtWrapper_QGraphicsRectItem::setRect(QGraphicsRectItem* theWrappedObject, const QRectF& rect) +{ + ( theWrappedObject->setRect(rect)); +} + +void PythonQtWrapper_QGraphicsRectItem::setRect(QGraphicsRectItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) +{ + ( theWrappedObject->setRect(x, y, w, h)); +} + +QPainterPath PythonQtWrapper_QGraphicsRectItem::shape(QGraphicsRectItem* theWrappedObject) const +{ + return ( theWrappedObject->shape()); +} + +int PythonQtWrapper_QGraphicsRectItem::type(QGraphicsRectItem* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + + + +PythonQtShell_QGraphicsRotation::~PythonQtShell_QGraphicsRotation() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGraphicsRotation::applyTo(QMatrix4x4* matrix) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "applyTo"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMatrix4x4*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&matrix}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsRotation::applyTo(matrix); +} +void PythonQtShell_QGraphicsRotation::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsRotation::childEvent(arg__1); +} +void PythonQtShell_QGraphicsRotation::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsRotation::customEvent(arg__1); +} +bool PythonQtShell_QGraphicsRotation::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsRotation::event(arg__1); +} +bool PythonQtShell_QGraphicsRotation::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsRotation::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QGraphicsRotation::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsRotation::timerEvent(arg__1); +} +QGraphicsRotation* PythonQtWrapper_QGraphicsRotation::new_QGraphicsRotation(QObject* parent) +{ +return new PythonQtShell_QGraphicsRotation(parent); } + +qreal PythonQtWrapper_QGraphicsRotation::angle(QGraphicsRotation* theWrappedObject) const +{ + return ( theWrappedObject->angle()); +} + +void PythonQtWrapper_QGraphicsRotation::applyTo(QGraphicsRotation* theWrappedObject, QMatrix4x4* matrix) const +{ + ( ((PythonQtPublicPromoter_QGraphicsRotation*)theWrappedObject)->promoted_applyTo(matrix)); +} + +QVector3D PythonQtWrapper_QGraphicsRotation::axis(QGraphicsRotation* theWrappedObject) const +{ + return ( theWrappedObject->axis()); +} + +QVector3D PythonQtWrapper_QGraphicsRotation::origin(QGraphicsRotation* theWrappedObject) const +{ + return ( theWrappedObject->origin()); +} + +void PythonQtWrapper_QGraphicsRotation::setAngle(QGraphicsRotation* theWrappedObject, qreal arg__1) +{ + ( theWrappedObject->setAngle(arg__1)); +} + +void PythonQtWrapper_QGraphicsRotation::setAxis(QGraphicsRotation* theWrappedObject, Qt::Axis axis) +{ + ( theWrappedObject->setAxis(axis)); +} + +void PythonQtWrapper_QGraphicsRotation::setAxis(QGraphicsRotation* theWrappedObject, const QVector3D& axis) +{ + ( theWrappedObject->setAxis(axis)); +} + +void PythonQtWrapper_QGraphicsRotation::setOrigin(QGraphicsRotation* theWrappedObject, const QVector3D& point) +{ + ( theWrappedObject->setOrigin(point)); +} + + + +PythonQtShell_QGraphicsScale::~PythonQtShell_QGraphicsScale() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGraphicsScale::applyTo(QMatrix4x4* matrix) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "applyTo"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMatrix4x4*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&matrix}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScale::applyTo(matrix); +} +void PythonQtShell_QGraphicsScale::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScale::childEvent(arg__1); +} +void PythonQtShell_QGraphicsScale::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScale::customEvent(arg__1); +} +bool PythonQtShell_QGraphicsScale::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsScale::event(arg__1); +} +bool PythonQtShell_QGraphicsScale::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsScale::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QGraphicsScale::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScale::timerEvent(arg__1); +} +QGraphicsScale* PythonQtWrapper_QGraphicsScale::new_QGraphicsScale(QObject* parent) +{ +return new PythonQtShell_QGraphicsScale(parent); } + +void PythonQtWrapper_QGraphicsScale::applyTo(QGraphicsScale* theWrappedObject, QMatrix4x4* matrix) const +{ + ( ((PythonQtPublicPromoter_QGraphicsScale*)theWrappedObject)->promoted_applyTo(matrix)); +} + +QVector3D PythonQtWrapper_QGraphicsScale::origin(QGraphicsScale* theWrappedObject) const +{ + return ( theWrappedObject->origin()); +} + +void PythonQtWrapper_QGraphicsScale::setOrigin(QGraphicsScale* theWrappedObject, const QVector3D& point) +{ + ( theWrappedObject->setOrigin(point)); +} + +void PythonQtWrapper_QGraphicsScale::setXScale(QGraphicsScale* theWrappedObject, qreal arg__1) +{ + ( theWrappedObject->setXScale(arg__1)); +} + +void PythonQtWrapper_QGraphicsScale::setYScale(QGraphicsScale* theWrappedObject, qreal arg__1) +{ + ( theWrappedObject->setYScale(arg__1)); +} + +void PythonQtWrapper_QGraphicsScale::setZScale(QGraphicsScale* theWrappedObject, qreal arg__1) +{ + ( theWrappedObject->setZScale(arg__1)); +} + +qreal PythonQtWrapper_QGraphicsScale::xScale(QGraphicsScale* theWrappedObject) const +{ + return ( theWrappedObject->xScale()); +} + +qreal PythonQtWrapper_QGraphicsScale::yScale(QGraphicsScale* theWrappedObject) const +{ + return ( theWrappedObject->yScale()); +} + +qreal PythonQtWrapper_QGraphicsScale::zScale(QGraphicsScale* theWrappedObject) const +{ + return ( theWrappedObject->zScale()); +} + + + +PythonQtShell_QGraphicsScene::~PythonQtShell_QGraphicsScene() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGraphicsScene::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::childEvent(arg__1); +} +void PythonQtShell_QGraphicsScene::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::contextMenuEvent(event); +} +void PythonQtShell_QGraphicsScene::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::customEvent(arg__1); +} +void PythonQtShell_QGraphicsScene::dragEnterEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::dragEnterEvent(event); +} +void PythonQtShell_QGraphicsScene::dragLeaveEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::dragLeaveEvent(event); +} +void PythonQtShell_QGraphicsScene::dragMoveEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::dragMoveEvent(event); +} +void PythonQtShell_QGraphicsScene::drawBackground(QPainter* painter, const QRectF& rect) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawBackground"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QRectF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&painter, (void*)&rect}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::drawBackground(painter, rect); +} +void PythonQtShell_QGraphicsScene::drawForeground(QPainter* painter, const QRectF& rect) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawForeground"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QRectF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&painter, (void*)&rect}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::drawForeground(painter, rect); +} +void PythonQtShell_QGraphicsScene::drawItems(QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options, QWidget* widget) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItems"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "int" , "QGraphicsItem**" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + void* args[6] = {NULL, (void*)&painter, (void*)&numItems, (void*)&items, (void*)&options, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::drawItems(painter, numItems, items, options, widget); +} +void PythonQtShell_QGraphicsScene::dropEvent(QGraphicsSceneDragDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::dropEvent(event); +} +bool PythonQtShell_QGraphicsScene::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsScene::event(event); +} +bool PythonQtShell_QGraphicsScene::eventFilter(QObject* watched, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&watched, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsScene::eventFilter(watched, event); +} +void PythonQtShell_QGraphicsScene::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::focusInEvent(event); +} +void PythonQtShell_QGraphicsScene::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::focusOutEvent(event); +} +void PythonQtShell_QGraphicsScene::helpEvent(QGraphicsSceneHelpEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "helpEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHelpEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::helpEvent(event); +} +void PythonQtShell_QGraphicsScene::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::inputMethodEvent(event); +} +QVariant PythonQtShell_QGraphicsScene::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsScene::inputMethodQuery(query); +} +void PythonQtShell_QGraphicsScene::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::keyPressEvent(event); +} +void PythonQtShell_QGraphicsScene::keyReleaseEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::keyReleaseEvent(event); +} +void PythonQtShell_QGraphicsScene::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::mouseDoubleClickEvent(event); +} +void PythonQtShell_QGraphicsScene::mouseMoveEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::mouseMoveEvent(event); +} +void PythonQtShell_QGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::mousePressEvent(event); +} +void PythonQtShell_QGraphicsScene::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::mouseReleaseEvent(event); +} +void PythonQtShell_QGraphicsScene::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::timerEvent(arg__1); +} +void PythonQtShell_QGraphicsScene::wheelEvent(QGraphicsSceneWheelEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsScene::wheelEvent(event); +} +QGraphicsScene* PythonQtWrapper_QGraphicsScene::new_QGraphicsScene(QObject* parent) +{ +return new PythonQtShell_QGraphicsScene(parent); } + +QGraphicsScene* PythonQtWrapper_QGraphicsScene::new_QGraphicsScene(const QRectF& sceneRect, QObject* parent) +{ +return new PythonQtShell_QGraphicsScene(sceneRect, parent); } + +QGraphicsScene* PythonQtWrapper_QGraphicsScene::new_QGraphicsScene(qreal x, qreal y, qreal width, qreal height, QObject* parent) +{ +return new PythonQtShell_QGraphicsScene(x, y, width, height, parent); } + +QGraphicsItem* PythonQtWrapper_QGraphicsScene::activePanel(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->activePanel()); +} + +QGraphicsWidget* PythonQtWrapper_QGraphicsScene::activeWindow(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->activeWindow()); +} + +QGraphicsEllipseItem* PythonQtWrapper_QGraphicsScene::addEllipse(QGraphicsScene* theWrappedObject, const QRectF& rect, const QPen& pen, const QBrush& brush) +{ + return ( theWrappedObject->addEllipse(rect, pen, brush)); +} + +QGraphicsEllipseItem* PythonQtWrapper_QGraphicsScene::addEllipse(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, const QPen& pen, const QBrush& brush) +{ + return ( theWrappedObject->addEllipse(x, y, w, h, pen, brush)); +} + +void PythonQtWrapper_QGraphicsScene::addItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item) +{ + ( theWrappedObject->addItem(item)); +} + +QGraphicsLineItem* PythonQtWrapper_QGraphicsScene::addLine(QGraphicsScene* theWrappedObject, const QLineF& line, const QPen& pen) +{ + return ( theWrappedObject->addLine(line, pen)); +} + +QGraphicsLineItem* PythonQtWrapper_QGraphicsScene::addLine(QGraphicsScene* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2, const QPen& pen) +{ + return ( theWrappedObject->addLine(x1, y1, x2, y2, pen)); +} + +QGraphicsPathItem* PythonQtWrapper_QGraphicsScene::addPath(QGraphicsScene* theWrappedObject, const QPainterPath& path, const QPen& pen, const QBrush& brush) +{ + return ( theWrappedObject->addPath(path, pen, brush)); +} + +QGraphicsPixmapItem* PythonQtWrapper_QGraphicsScene::addPixmap(QGraphicsScene* theWrappedObject, const QPixmap& pixmap) +{ + return ( theWrappedObject->addPixmap(pixmap)); +} + +QGraphicsPolygonItem* PythonQtWrapper_QGraphicsScene::addPolygon(QGraphicsScene* theWrappedObject, const QPolygonF& polygon, const QPen& pen, const QBrush& brush) +{ + return ( theWrappedObject->addPolygon(polygon, pen, brush)); +} + +QGraphicsRectItem* PythonQtWrapper_QGraphicsScene::addRect(QGraphicsScene* theWrappedObject, const QRectF& rect, const QPen& pen, const QBrush& brush) +{ + return ( theWrappedObject->addRect(rect, pen, brush)); +} + +QGraphicsRectItem* PythonQtWrapper_QGraphicsScene::addRect(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, const QPen& pen, const QBrush& brush) +{ + return ( theWrappedObject->addRect(x, y, w, h, pen, brush)); +} + +QGraphicsSimpleTextItem* PythonQtWrapper_QGraphicsScene::addSimpleText(QGraphicsScene* theWrappedObject, const QString& text, const QFont& font) +{ + return ( theWrappedObject->addSimpleText(text, font)); +} + +QGraphicsTextItem* PythonQtWrapper_QGraphicsScene::addText(QGraphicsScene* theWrappedObject, const QString& text, const QFont& font) +{ + return ( theWrappedObject->addText(text, font)); +} + +QGraphicsProxyWidget* PythonQtWrapper_QGraphicsScene::addWidget(QGraphicsScene* theWrappedObject, QWidget* widget, Qt::WindowFlags wFlags) +{ + return ( theWrappedObject->addWidget(widget, wFlags)); +} + +QBrush PythonQtWrapper_QGraphicsScene::backgroundBrush(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->backgroundBrush()); +} + +int PythonQtWrapper_QGraphicsScene::bspTreeDepth(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->bspTreeDepth()); +} + +void PythonQtWrapper_QGraphicsScene::clearFocus(QGraphicsScene* theWrappedObject) +{ + ( theWrappedObject->clearFocus()); +} + +QList PythonQtWrapper_QGraphicsScene::collidingItems(QGraphicsScene* theWrappedObject, const QGraphicsItem* item, Qt::ItemSelectionMode mode) const +{ + return ( theWrappedObject->collidingItems(item, mode)); +} + +void PythonQtWrapper_QGraphicsScene::contextMenuEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneContextMenuEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_contextMenuEvent(event)); +} + +QGraphicsItemGroup* PythonQtWrapper_QGraphicsScene::createItemGroup(QGraphicsScene* theWrappedObject, const QList& items) +{ + return ( theWrappedObject->createItemGroup(items)); +} + +void PythonQtWrapper_QGraphicsScene::destroyItemGroup(QGraphicsScene* theWrappedObject, QGraphicsItemGroup* group) +{ + ( theWrappedObject->destroyItemGroup(group)); +} + +void PythonQtWrapper_QGraphicsScene::dragEnterEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneDragDropEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_dragEnterEvent(event)); +} + +void PythonQtWrapper_QGraphicsScene::dragLeaveEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneDragDropEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_dragLeaveEvent(event)); +} + +void PythonQtWrapper_QGraphicsScene::dragMoveEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneDragDropEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_dragMoveEvent(event)); +} + +void PythonQtWrapper_QGraphicsScene::drawBackground(QGraphicsScene* theWrappedObject, QPainter* painter, const QRectF& rect) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_drawBackground(painter, rect)); +} + +void PythonQtWrapper_QGraphicsScene::drawForeground(QGraphicsScene* theWrappedObject, QPainter* painter, const QRectF& rect) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_drawForeground(painter, rect)); +} + +void PythonQtWrapper_QGraphicsScene::drawItems(QGraphicsScene* theWrappedObject, QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options, QWidget* widget) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_drawItems(painter, numItems, items, options, widget)); +} + +void PythonQtWrapper_QGraphicsScene::dropEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneDragDropEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_dropEvent(event)); +} + +bool PythonQtWrapper_QGraphicsScene::event(QGraphicsScene* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_event(event)); +} + +bool PythonQtWrapper_QGraphicsScene::eventFilter(QGraphicsScene* theWrappedObject, QObject* watched, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_eventFilter(watched, event)); +} + +void PythonQtWrapper_QGraphicsScene::focusInEvent(QGraphicsScene* theWrappedObject, QFocusEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_focusInEvent(event)); +} + +QGraphicsItem* PythonQtWrapper_QGraphicsScene::focusItem(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->focusItem()); +} + +void PythonQtWrapper_QGraphicsScene::focusOutEvent(QGraphicsScene* theWrappedObject, QFocusEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_focusOutEvent(event)); +} + +QFont PythonQtWrapper_QGraphicsScene::font(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->font()); +} + +QBrush PythonQtWrapper_QGraphicsScene::foregroundBrush(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->foregroundBrush()); +} + +bool PythonQtWrapper_QGraphicsScene::hasFocus(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->hasFocus()); +} + +qreal PythonQtWrapper_QGraphicsScene::height(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->height()); +} + +void PythonQtWrapper_QGraphicsScene::helpEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneHelpEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_helpEvent(event)); +} + +void PythonQtWrapper_QGraphicsScene::inputMethodEvent(QGraphicsScene* theWrappedObject, QInputMethodEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_inputMethodEvent(event)); +} + +QVariant PythonQtWrapper_QGraphicsScene::inputMethodQuery(QGraphicsScene* theWrappedObject, Qt::InputMethodQuery query) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_inputMethodQuery(query)); +} + +void PythonQtWrapper_QGraphicsScene::invalidate(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, QGraphicsScene::SceneLayers layers) +{ + ( theWrappedObject->invalidate(x, y, w, h, layers)); +} + +bool PythonQtWrapper_QGraphicsScene::isActive(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->isActive()); +} + +bool PythonQtWrapper_QGraphicsScene::isSortCacheEnabled(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->isSortCacheEnabled()); +} + +QGraphicsItem* PythonQtWrapper_QGraphicsScene::itemAt(QGraphicsScene* theWrappedObject, const QPointF& pos, const QTransform& deviceTransform) const +{ + return ( theWrappedObject->itemAt(pos, deviceTransform)); +} + +QGraphicsItem* PythonQtWrapper_QGraphicsScene::itemAt(QGraphicsScene* theWrappedObject, qreal x, qreal y, const QTransform& deviceTransform) const +{ + return ( theWrappedObject->itemAt(x, y, deviceTransform)); +} + +QGraphicsScene::ItemIndexMethod PythonQtWrapper_QGraphicsScene::itemIndexMethod(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->itemIndexMethod()); +} + +QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, Qt::SortOrder order) const +{ + return ( theWrappedObject->items(order)); +} + +QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform& deviceTransform) const +{ + return ( theWrappedObject->items(path, mode, order, deviceTransform)); +} + +QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, const QPointF& pos, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform& deviceTransform) const +{ + return ( theWrappedObject->items(pos, mode, order, deviceTransform)); +} + +QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, const QPolygonF& polygon, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform& deviceTransform) const +{ + return ( theWrappedObject->items(polygon, mode, order, deviceTransform)); +} + +QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, const QRectF& rect, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform& deviceTransform) const +{ + return ( theWrappedObject->items(rect, mode, order, deviceTransform)); +} + +QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform& deviceTransform) const +{ + return ( theWrappedObject->items(x, y, w, h, mode, order, deviceTransform)); +} + +QRectF PythonQtWrapper_QGraphicsScene::itemsBoundingRect(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->itemsBoundingRect()); +} + +void PythonQtWrapper_QGraphicsScene::keyPressEvent(QGraphicsScene* theWrappedObject, QKeyEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_keyPressEvent(event)); +} + +void PythonQtWrapper_QGraphicsScene::keyReleaseEvent(QGraphicsScene* theWrappedObject, QKeyEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_keyReleaseEvent(event)); +} + +void PythonQtWrapper_QGraphicsScene::mouseDoubleClickEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_mouseDoubleClickEvent(event)); +} + +QGraphicsItem* PythonQtWrapper_QGraphicsScene::mouseGrabberItem(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->mouseGrabberItem()); +} + +void PythonQtWrapper_QGraphicsScene::mouseMoveEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_mouseMoveEvent(event)); +} + +void PythonQtWrapper_QGraphicsScene::mousePressEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_mousePressEvent(event)); +} + +void PythonQtWrapper_QGraphicsScene::mouseReleaseEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_mouseReleaseEvent(event)); +} + +QPalette PythonQtWrapper_QGraphicsScene::palette(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->palette()); +} + +void PythonQtWrapper_QGraphicsScene::removeItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item) +{ + ( theWrappedObject->removeItem(item)); +} + +void PythonQtWrapper_QGraphicsScene::render(QGraphicsScene* theWrappedObject, QPainter* painter, const QRectF& target, const QRectF& source, Qt::AspectRatioMode aspectRatioMode) +{ + ( theWrappedObject->render(painter, target, source, aspectRatioMode)); +} + +QRectF PythonQtWrapper_QGraphicsScene::sceneRect(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->sceneRect()); +} + +QList PythonQtWrapper_QGraphicsScene::selectedItems(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->selectedItems()); +} + +QPainterPath PythonQtWrapper_QGraphicsScene::selectionArea(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->selectionArea()); +} + +bool PythonQtWrapper_QGraphicsScene::sendEvent(QGraphicsScene* theWrappedObject, QGraphicsItem* item, QEvent* event) +{ + return ( theWrappedObject->sendEvent(item, event)); +} + +void PythonQtWrapper_QGraphicsScene::setActivePanel(QGraphicsScene* theWrappedObject, QGraphicsItem* item) +{ + ( theWrappedObject->setActivePanel(item)); +} + +void PythonQtWrapper_QGraphicsScene::setActiveWindow(QGraphicsScene* theWrappedObject, QGraphicsWidget* widget) +{ + ( theWrappedObject->setActiveWindow(widget)); +} + +void PythonQtWrapper_QGraphicsScene::setBackgroundBrush(QGraphicsScene* theWrappedObject, const QBrush& brush) +{ + ( theWrappedObject->setBackgroundBrush(brush)); +} + +void PythonQtWrapper_QGraphicsScene::setBspTreeDepth(QGraphicsScene* theWrappedObject, int depth) +{ + ( theWrappedObject->setBspTreeDepth(depth)); +} + +void PythonQtWrapper_QGraphicsScene::setFocus(QGraphicsScene* theWrappedObject, Qt::FocusReason focusReason) +{ + ( theWrappedObject->setFocus(focusReason)); +} + +void PythonQtWrapper_QGraphicsScene::setFocusItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item, Qt::FocusReason focusReason) +{ + ( theWrappedObject->setFocusItem(item, focusReason)); +} + +void PythonQtWrapper_QGraphicsScene::setFont(QGraphicsScene* theWrappedObject, const QFont& font) +{ + ( theWrappedObject->setFont(font)); +} + +void PythonQtWrapper_QGraphicsScene::setForegroundBrush(QGraphicsScene* theWrappedObject, const QBrush& brush) +{ + ( theWrappedObject->setForegroundBrush(brush)); +} + +void PythonQtWrapper_QGraphicsScene::setItemIndexMethod(QGraphicsScene* theWrappedObject, QGraphicsScene::ItemIndexMethod method) +{ + ( theWrappedObject->setItemIndexMethod(method)); +} + +void PythonQtWrapper_QGraphicsScene::setPalette(QGraphicsScene* theWrappedObject, const QPalette& palette) +{ + ( theWrappedObject->setPalette(palette)); +} + +void PythonQtWrapper_QGraphicsScene::setSceneRect(QGraphicsScene* theWrappedObject, const QRectF& rect) +{ + ( theWrappedObject->setSceneRect(rect)); +} + +void PythonQtWrapper_QGraphicsScene::setSceneRect(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h) +{ + ( theWrappedObject->setSceneRect(x, y, w, h)); +} + +void PythonQtWrapper_QGraphicsScene::setSelectionArea(QGraphicsScene* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode, const QTransform& deviceTransform) +{ + ( theWrappedObject->setSelectionArea(path, mode, deviceTransform)); +} + +void PythonQtWrapper_QGraphicsScene::setSelectionArea(QGraphicsScene* theWrappedObject, const QPainterPath& path, const QTransform& deviceTransform) +{ + ( theWrappedObject->setSelectionArea(path, deviceTransform)); +} + +void PythonQtWrapper_QGraphicsScene::setSortCacheEnabled(QGraphicsScene* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setSortCacheEnabled(enabled)); +} + +void PythonQtWrapper_QGraphicsScene::setStickyFocus(QGraphicsScene* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setStickyFocus(enabled)); +} + +void PythonQtWrapper_QGraphicsScene::setStyle(QGraphicsScene* theWrappedObject, QStyle* style) +{ + ( theWrappedObject->setStyle(style)); +} + +bool PythonQtWrapper_QGraphicsScene::stickyFocus(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->stickyFocus()); +} + +QStyle* PythonQtWrapper_QGraphicsScene::style(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->style()); +} + +void PythonQtWrapper_QGraphicsScene::update(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h) +{ + ( theWrappedObject->update(x, y, w, h)); +} + +QList PythonQtWrapper_QGraphicsScene::views(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->views()); +} + +void PythonQtWrapper_QGraphicsScene::wheelEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneWheelEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_wheelEvent(event)); +} + +qreal PythonQtWrapper_QGraphicsScene::width(QGraphicsScene* theWrappedObject) const +{ + return ( theWrappedObject->width()); +} + + + +QGraphicsSceneContextMenuEvent* PythonQtWrapper_QGraphicsSceneContextMenuEvent::new_QGraphicsSceneContextMenuEvent(QEvent::Type type) +{ +return new QGraphicsSceneContextMenuEvent(type); } + +Qt::KeyboardModifiers PythonQtWrapper_QGraphicsSceneContextMenuEvent::modifiers(QGraphicsSceneContextMenuEvent* theWrappedObject) const +{ + return ( theWrappedObject->modifiers()); +} + +QPointF PythonQtWrapper_QGraphicsSceneContextMenuEvent::pos(QGraphicsSceneContextMenuEvent* theWrappedObject) const +{ + return ( theWrappedObject->pos()); +} + +QGraphicsSceneContextMenuEvent::Reason PythonQtWrapper_QGraphicsSceneContextMenuEvent::reason(QGraphicsSceneContextMenuEvent* theWrappedObject) const +{ + return ( theWrappedObject->reason()); +} + +QPointF PythonQtWrapper_QGraphicsSceneContextMenuEvent::scenePos(QGraphicsSceneContextMenuEvent* theWrappedObject) const +{ + return ( theWrappedObject->scenePos()); +} + +QPoint PythonQtWrapper_QGraphicsSceneContextMenuEvent::screenPos(QGraphicsSceneContextMenuEvent* theWrappedObject) const +{ + return ( theWrappedObject->screenPos()); +} + +void PythonQtWrapper_QGraphicsSceneContextMenuEvent::setModifiers(QGraphicsSceneContextMenuEvent* theWrappedObject, Qt::KeyboardModifiers modifiers) +{ + ( theWrappedObject->setModifiers(modifiers)); +} + +void PythonQtWrapper_QGraphicsSceneContextMenuEvent::setPos(QGraphicsSceneContextMenuEvent* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setPos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneContextMenuEvent::setReason(QGraphicsSceneContextMenuEvent* theWrappedObject, QGraphicsSceneContextMenuEvent::Reason reason) +{ + ( theWrappedObject->setReason(reason)); +} + +void PythonQtWrapper_QGraphicsSceneContextMenuEvent::setScenePos(QGraphicsSceneContextMenuEvent* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setScenePos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneContextMenuEvent::setScreenPos(QGraphicsSceneContextMenuEvent* theWrappedObject, const QPoint& pos) +{ + ( theWrappedObject->setScreenPos(pos)); +} + + + +QGraphicsSceneDragDropEvent* PythonQtWrapper_QGraphicsSceneDragDropEvent::new_QGraphicsSceneDragDropEvent(QEvent::Type type) +{ +return new QGraphicsSceneDragDropEvent(type); } + +void PythonQtWrapper_QGraphicsSceneDragDropEvent::acceptProposedAction(QGraphicsSceneDragDropEvent* theWrappedObject) +{ + ( theWrappedObject->acceptProposedAction()); +} + +Qt::MouseButtons PythonQtWrapper_QGraphicsSceneDragDropEvent::buttons(QGraphicsSceneDragDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->buttons()); +} + +Qt::DropAction PythonQtWrapper_QGraphicsSceneDragDropEvent::dropAction(QGraphicsSceneDragDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->dropAction()); +} + +const QMimeData* PythonQtWrapper_QGraphicsSceneDragDropEvent::mimeData(QGraphicsSceneDragDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->mimeData()); +} + +Qt::KeyboardModifiers PythonQtWrapper_QGraphicsSceneDragDropEvent::modifiers(QGraphicsSceneDragDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->modifiers()); +} + +QPointF PythonQtWrapper_QGraphicsSceneDragDropEvent::pos(QGraphicsSceneDragDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->pos()); +} + +Qt::DropActions PythonQtWrapper_QGraphicsSceneDragDropEvent::possibleActions(QGraphicsSceneDragDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->possibleActions()); +} + +Qt::DropAction PythonQtWrapper_QGraphicsSceneDragDropEvent::proposedAction(QGraphicsSceneDragDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->proposedAction()); +} + +QPointF PythonQtWrapper_QGraphicsSceneDragDropEvent::scenePos(QGraphicsSceneDragDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->scenePos()); +} + +QPoint PythonQtWrapper_QGraphicsSceneDragDropEvent::screenPos(QGraphicsSceneDragDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->screenPos()); +} + +void PythonQtWrapper_QGraphicsSceneDragDropEvent::setButtons(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::MouseButtons buttons) +{ + ( theWrappedObject->setButtons(buttons)); +} + +void PythonQtWrapper_QGraphicsSceneDragDropEvent::setDropAction(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::DropAction action) +{ + ( theWrappedObject->setDropAction(action)); +} + +void PythonQtWrapper_QGraphicsSceneDragDropEvent::setModifiers(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::KeyboardModifiers modifiers) +{ + ( theWrappedObject->setModifiers(modifiers)); +} + +void PythonQtWrapper_QGraphicsSceneDragDropEvent::setPos(QGraphicsSceneDragDropEvent* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setPos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneDragDropEvent::setPossibleActions(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::DropActions actions) +{ + ( theWrappedObject->setPossibleActions(actions)); +} + +void PythonQtWrapper_QGraphicsSceneDragDropEvent::setProposedAction(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::DropAction action) +{ + ( theWrappedObject->setProposedAction(action)); +} + +void PythonQtWrapper_QGraphicsSceneDragDropEvent::setScenePos(QGraphicsSceneDragDropEvent* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setScenePos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneDragDropEvent::setScreenPos(QGraphicsSceneDragDropEvent* theWrappedObject, const QPoint& pos) +{ + ( theWrappedObject->setScreenPos(pos)); +} + +QWidget* PythonQtWrapper_QGraphicsSceneDragDropEvent::source(QGraphicsSceneDragDropEvent* theWrappedObject) const +{ + return ( theWrappedObject->source()); +} + + + +QGraphicsSceneEvent* PythonQtWrapper_QGraphicsSceneEvent::new_QGraphicsSceneEvent(QEvent::Type type) +{ +return new QGraphicsSceneEvent(type); } + +QWidget* PythonQtWrapper_QGraphicsSceneEvent::widget(QGraphicsSceneEvent* theWrappedObject) const +{ + return ( theWrappedObject->widget()); +} + + + +QGraphicsSceneHelpEvent* PythonQtWrapper_QGraphicsSceneHelpEvent::new_QGraphicsSceneHelpEvent(QEvent::Type type) +{ +return new QGraphicsSceneHelpEvent(type); } + +QPointF PythonQtWrapper_QGraphicsSceneHelpEvent::scenePos(QGraphicsSceneHelpEvent* theWrappedObject) const +{ + return ( theWrappedObject->scenePos()); +} + +QPoint PythonQtWrapper_QGraphicsSceneHelpEvent::screenPos(QGraphicsSceneHelpEvent* theWrappedObject) const +{ + return ( theWrappedObject->screenPos()); +} + +void PythonQtWrapper_QGraphicsSceneHelpEvent::setScenePos(QGraphicsSceneHelpEvent* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setScenePos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneHelpEvent::setScreenPos(QGraphicsSceneHelpEvent* theWrappedObject, const QPoint& pos) +{ + ( theWrappedObject->setScreenPos(pos)); +} + + + +QGraphicsSceneHoverEvent* PythonQtWrapper_QGraphicsSceneHoverEvent::new_QGraphicsSceneHoverEvent(QEvent::Type type) +{ +return new QGraphicsSceneHoverEvent(type); } + +QPointF PythonQtWrapper_QGraphicsSceneHoverEvent::lastPos(QGraphicsSceneHoverEvent* theWrappedObject) const +{ + return ( theWrappedObject->lastPos()); +} + +QPointF PythonQtWrapper_QGraphicsSceneHoverEvent::lastScenePos(QGraphicsSceneHoverEvent* theWrappedObject) const +{ + return ( theWrappedObject->lastScenePos()); +} + +QPoint PythonQtWrapper_QGraphicsSceneHoverEvent::lastScreenPos(QGraphicsSceneHoverEvent* theWrappedObject) const +{ + return ( theWrappedObject->lastScreenPos()); +} + +Qt::KeyboardModifiers PythonQtWrapper_QGraphicsSceneHoverEvent::modifiers(QGraphicsSceneHoverEvent* theWrappedObject) const +{ + return ( theWrappedObject->modifiers()); +} + +QPointF PythonQtWrapper_QGraphicsSceneHoverEvent::pos(QGraphicsSceneHoverEvent* theWrappedObject) const +{ + return ( theWrappedObject->pos()); +} + +QPointF PythonQtWrapper_QGraphicsSceneHoverEvent::scenePos(QGraphicsSceneHoverEvent* theWrappedObject) const +{ + return ( theWrappedObject->scenePos()); +} + +QPoint PythonQtWrapper_QGraphicsSceneHoverEvent::screenPos(QGraphicsSceneHoverEvent* theWrappedObject) const +{ + return ( theWrappedObject->screenPos()); +} + +void PythonQtWrapper_QGraphicsSceneHoverEvent::setLastPos(QGraphicsSceneHoverEvent* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setLastPos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneHoverEvent::setLastScenePos(QGraphicsSceneHoverEvent* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setLastScenePos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneHoverEvent::setLastScreenPos(QGraphicsSceneHoverEvent* theWrappedObject, const QPoint& pos) +{ + ( theWrappedObject->setLastScreenPos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneHoverEvent::setModifiers(QGraphicsSceneHoverEvent* theWrappedObject, Qt::KeyboardModifiers modifiers) +{ + ( theWrappedObject->setModifiers(modifiers)); +} + +void PythonQtWrapper_QGraphicsSceneHoverEvent::setPos(QGraphicsSceneHoverEvent* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setPos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneHoverEvent::setScenePos(QGraphicsSceneHoverEvent* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setScenePos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneHoverEvent::setScreenPos(QGraphicsSceneHoverEvent* theWrappedObject, const QPoint& pos) +{ + ( theWrappedObject->setScreenPos(pos)); +} + + + +QGraphicsSceneMouseEvent* PythonQtWrapper_QGraphicsSceneMouseEvent::new_QGraphicsSceneMouseEvent(QEvent::Type type) +{ +return new QGraphicsSceneMouseEvent(type); } + +Qt::MouseButton PythonQtWrapper_QGraphicsSceneMouseEvent::button(QGraphicsSceneMouseEvent* theWrappedObject) const +{ + return ( theWrappedObject->button()); +} + +QPointF PythonQtWrapper_QGraphicsSceneMouseEvent::buttonDownPos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button) const +{ + return ( theWrappedObject->buttonDownPos(button)); +} + +QPointF PythonQtWrapper_QGraphicsSceneMouseEvent::buttonDownScenePos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button) const +{ + return ( theWrappedObject->buttonDownScenePos(button)); +} + +QPoint PythonQtWrapper_QGraphicsSceneMouseEvent::buttonDownScreenPos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button) const +{ + return ( theWrappedObject->buttonDownScreenPos(button)); +} + +Qt::MouseButtons PythonQtWrapper_QGraphicsSceneMouseEvent::buttons(QGraphicsSceneMouseEvent* theWrappedObject) const +{ + return ( theWrappedObject->buttons()); +} + +QPointF PythonQtWrapper_QGraphicsSceneMouseEvent::lastPos(QGraphicsSceneMouseEvent* theWrappedObject) const +{ + return ( theWrappedObject->lastPos()); +} + +QPointF PythonQtWrapper_QGraphicsSceneMouseEvent::lastScenePos(QGraphicsSceneMouseEvent* theWrappedObject) const +{ + return ( theWrappedObject->lastScenePos()); +} + +QPoint PythonQtWrapper_QGraphicsSceneMouseEvent::lastScreenPos(QGraphicsSceneMouseEvent* theWrappedObject) const +{ + return ( theWrappedObject->lastScreenPos()); +} + +Qt::KeyboardModifiers PythonQtWrapper_QGraphicsSceneMouseEvent::modifiers(QGraphicsSceneMouseEvent* theWrappedObject) const +{ + return ( theWrappedObject->modifiers()); +} + +QPointF PythonQtWrapper_QGraphicsSceneMouseEvent::pos(QGraphicsSceneMouseEvent* theWrappedObject) const +{ + return ( theWrappedObject->pos()); +} + +QPointF PythonQtWrapper_QGraphicsSceneMouseEvent::scenePos(QGraphicsSceneMouseEvent* theWrappedObject) const +{ + return ( theWrappedObject->scenePos()); +} + +QPoint PythonQtWrapper_QGraphicsSceneMouseEvent::screenPos(QGraphicsSceneMouseEvent* theWrappedObject) const +{ + return ( theWrappedObject->screenPos()); +} + +void PythonQtWrapper_QGraphicsSceneMouseEvent::setButton(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button) +{ + ( theWrappedObject->setButton(button)); +} + +void PythonQtWrapper_QGraphicsSceneMouseEvent::setButtonDownPos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button, const QPointF& pos) +{ + ( theWrappedObject->setButtonDownPos(button, pos)); +} + +void PythonQtWrapper_QGraphicsSceneMouseEvent::setButtonDownScenePos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button, const QPointF& pos) +{ + ( theWrappedObject->setButtonDownScenePos(button, pos)); +} + +void PythonQtWrapper_QGraphicsSceneMouseEvent::setButtonDownScreenPos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button, const QPoint& pos) +{ + ( theWrappedObject->setButtonDownScreenPos(button, pos)); +} + +void PythonQtWrapper_QGraphicsSceneMouseEvent::setButtons(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButtons buttons) +{ + ( theWrappedObject->setButtons(buttons)); +} + +void PythonQtWrapper_QGraphicsSceneMouseEvent::setLastPos(QGraphicsSceneMouseEvent* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setLastPos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneMouseEvent::setLastScenePos(QGraphicsSceneMouseEvent* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setLastScenePos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneMouseEvent::setLastScreenPos(QGraphicsSceneMouseEvent* theWrappedObject, const QPoint& pos) +{ + ( theWrappedObject->setLastScreenPos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneMouseEvent::setModifiers(QGraphicsSceneMouseEvent* theWrappedObject, Qt::KeyboardModifiers modifiers) +{ + ( theWrappedObject->setModifiers(modifiers)); +} + +void PythonQtWrapper_QGraphicsSceneMouseEvent::setPos(QGraphicsSceneMouseEvent* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setPos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneMouseEvent::setScenePos(QGraphicsSceneMouseEvent* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setScenePos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneMouseEvent::setScreenPos(QGraphicsSceneMouseEvent* theWrappedObject, const QPoint& pos) +{ + ( theWrappedObject->setScreenPos(pos)); +} + + + +QGraphicsSceneMoveEvent* PythonQtWrapper_QGraphicsSceneMoveEvent::new_QGraphicsSceneMoveEvent() +{ +return new QGraphicsSceneMoveEvent(); } + +QPointF PythonQtWrapper_QGraphicsSceneMoveEvent::newPos(QGraphicsSceneMoveEvent* theWrappedObject) const +{ + return ( theWrappedObject->newPos()); +} + +QPointF PythonQtWrapper_QGraphicsSceneMoveEvent::oldPos(QGraphicsSceneMoveEvent* theWrappedObject) const +{ + return ( theWrappedObject->oldPos()); +} + +void PythonQtWrapper_QGraphicsSceneMoveEvent::setNewPos(QGraphicsSceneMoveEvent* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setNewPos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneMoveEvent::setOldPos(QGraphicsSceneMoveEvent* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setOldPos(pos)); +} + + + +QGraphicsSceneResizeEvent* PythonQtWrapper_QGraphicsSceneResizeEvent::new_QGraphicsSceneResizeEvent() +{ +return new QGraphicsSceneResizeEvent(); } + +QSizeF PythonQtWrapper_QGraphicsSceneResizeEvent::newSize(QGraphicsSceneResizeEvent* theWrappedObject) const +{ + return ( theWrappedObject->newSize()); +} + +QSizeF PythonQtWrapper_QGraphicsSceneResizeEvent::oldSize(QGraphicsSceneResizeEvent* theWrappedObject) const +{ + return ( theWrappedObject->oldSize()); +} + +void PythonQtWrapper_QGraphicsSceneResizeEvent::setNewSize(QGraphicsSceneResizeEvent* theWrappedObject, const QSizeF& size) +{ + ( theWrappedObject->setNewSize(size)); +} + +void PythonQtWrapper_QGraphicsSceneResizeEvent::setOldSize(QGraphicsSceneResizeEvent* theWrappedObject, const QSizeF& size) +{ + ( theWrappedObject->setOldSize(size)); +} + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui2.h b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui2.h new file mode 100644 index 00000000..d9d77fde --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui2.h @@ -0,0 +1,1907 @@ +#include + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined(QT_WIDGETS_LIB) +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QGraphicsColorizeEffect : public QGraphicsColorizeEffect +{ +public: + PythonQtShell_QGraphicsColorizeEffect(QObject* parent = 0):QGraphicsColorizeEffect(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsColorizeEffect(); + +virtual QRectF boundingRectFor(const QRectF& sourceRect) const; +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual void draw(QPainter* painter); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void sourceChanged(QGraphicsEffect::ChangeFlags flags); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsColorizeEffect : public QGraphicsColorizeEffect +{ public: +inline void promoted_draw(QPainter* painter) { QGraphicsColorizeEffect::draw(painter); } +}; + +class PythonQtWrapper_QGraphicsColorizeEffect : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsColorizeEffect* new_QGraphicsColorizeEffect(QObject* parent = 0); +void delete_QGraphicsColorizeEffect(QGraphicsColorizeEffect* obj) { delete obj; } + QColor color(QGraphicsColorizeEffect* theWrappedObject) const; + void draw(QGraphicsColorizeEffect* theWrappedObject, QPainter* painter); + qreal strength(QGraphicsColorizeEffect* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGraphicsDropShadowEffect : public QGraphicsDropShadowEffect +{ +public: + PythonQtShell_QGraphicsDropShadowEffect(QObject* parent = 0):QGraphicsDropShadowEffect(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsDropShadowEffect(); + +virtual QRectF boundingRectFor(const QRectF& rect) const; +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual void draw(QPainter* painter); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void sourceChanged(QGraphicsEffect::ChangeFlags flags); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsDropShadowEffect : public QGraphicsDropShadowEffect +{ public: +inline QRectF promoted_boundingRectFor(const QRectF& rect) const { return QGraphicsDropShadowEffect::boundingRectFor(rect); } +inline void promoted_draw(QPainter* painter) { QGraphicsDropShadowEffect::draw(painter); } +}; + +class PythonQtWrapper_QGraphicsDropShadowEffect : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsDropShadowEffect* new_QGraphicsDropShadowEffect(QObject* parent = 0); +void delete_QGraphicsDropShadowEffect(QGraphicsDropShadowEffect* obj) { delete obj; } + qreal blurRadius(QGraphicsDropShadowEffect* theWrappedObject) const; + QRectF boundingRectFor(QGraphicsDropShadowEffect* theWrappedObject, const QRectF& rect) const; + QColor color(QGraphicsDropShadowEffect* theWrappedObject) const; + void draw(QGraphicsDropShadowEffect* theWrappedObject, QPainter* painter); + QPointF offset(QGraphicsDropShadowEffect* theWrappedObject) const; + qreal xOffset(QGraphicsDropShadowEffect* theWrappedObject) const; + qreal yOffset(QGraphicsDropShadowEffect* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGraphicsEffect : public QGraphicsEffect +{ +public: + PythonQtShell_QGraphicsEffect(QObject* parent = 0):QGraphicsEffect(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsEffect(); + +virtual QRectF boundingRectFor(const QRectF& sourceRect) const; +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual void draw(QPainter* painter); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void sourceChanged(QGraphicsEffect::ChangeFlags flags); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsEffect : public QGraphicsEffect +{ public: +inline QRectF promoted_boundingRectFor(const QRectF& sourceRect) const { return QGraphicsEffect::boundingRectFor(sourceRect); } +inline void promoted_sourceChanged(QGraphicsEffect::ChangeFlags flags) { QGraphicsEffect::sourceChanged(flags); } +}; + +class PythonQtWrapper_QGraphicsEffect : public QObject +{ Q_OBJECT +public: +Q_ENUMS(PixmapPadMode ChangeFlag ) +Q_FLAGS(ChangeFlags ) +enum PixmapPadMode{ + NoPad = QGraphicsEffect::NoPad, PadToTransparentBorder = QGraphicsEffect::PadToTransparentBorder, PadToEffectiveBoundingRect = QGraphicsEffect::PadToEffectiveBoundingRect}; +enum ChangeFlag{ + SourceAttached = QGraphicsEffect::SourceAttached, SourceDetached = QGraphicsEffect::SourceDetached, SourceBoundingRectChanged = QGraphicsEffect::SourceBoundingRectChanged, SourceInvalidated = QGraphicsEffect::SourceInvalidated}; +Q_DECLARE_FLAGS(ChangeFlags, ChangeFlag) +public slots: +QGraphicsEffect* new_QGraphicsEffect(QObject* parent = 0); +void delete_QGraphicsEffect(QGraphicsEffect* obj) { delete obj; } + QRectF boundingRect(QGraphicsEffect* theWrappedObject) const; + QRectF boundingRectFor(QGraphicsEffect* theWrappedObject, const QRectF& sourceRect) const; + bool isEnabled(QGraphicsEffect* theWrappedObject) const; + void sourceChanged(QGraphicsEffect* theWrappedObject, QGraphicsEffect::ChangeFlags flags); +}; + + + + + +class PythonQtShell_QGraphicsEllipseItem : public QGraphicsEllipseItem +{ +public: + PythonQtShell_QGraphicsEllipseItem(QGraphicsItem* parent = 0):QGraphicsEllipseItem(parent),_wrapper(NULL) {}; + PythonQtShell_QGraphicsEllipseItem(const QRectF& rect, QGraphicsItem* parent = 0):QGraphicsEllipseItem(rect, parent),_wrapper(NULL) {}; + PythonQtShell_QGraphicsEllipseItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent = 0):QGraphicsEllipseItem(x, y, w, h, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsEllipseItem(); + +virtual bool isObscuredBy(const QGraphicsItem* item) const; +virtual QPainterPath opaqueArea() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsEllipseItem : public QGraphicsEllipseItem +{ public: +inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsEllipseItem::isObscuredBy(item); } +inline QPainterPath promoted_opaqueArea() const { return QGraphicsEllipseItem::opaqueArea(); } +}; + +class PythonQtWrapper_QGraphicsEllipseItem : public QObject +{ Q_OBJECT +public: +Q_ENUMS(enum_1 ) +enum enum_1{ + Type = QGraphicsEllipseItem::Type}; +public slots: +QGraphicsEllipseItem* new_QGraphicsEllipseItem(QGraphicsItem* parent = 0); +QGraphicsEllipseItem* new_QGraphicsEllipseItem(const QRectF& rect, QGraphicsItem* parent = 0); +QGraphicsEllipseItem* new_QGraphicsEllipseItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent = 0); +void delete_QGraphicsEllipseItem(QGraphicsEllipseItem* obj) { delete obj; } + QRectF boundingRect(QGraphicsEllipseItem* theWrappedObject) const; + bool contains(QGraphicsEllipseItem* theWrappedObject, const QPointF& point) const; + bool isObscuredBy(QGraphicsEllipseItem* theWrappedObject, const QGraphicsItem* item) const; + QPainterPath opaqueArea(QGraphicsEllipseItem* theWrappedObject) const; + void paint(QGraphicsEllipseItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); + QRectF rect(QGraphicsEllipseItem* theWrappedObject) const; + void setRect(QGraphicsEllipseItem* theWrappedObject, const QRectF& rect); + void setRect(QGraphicsEllipseItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h); + void setSpanAngle(QGraphicsEllipseItem* theWrappedObject, int angle); + void setStartAngle(QGraphicsEllipseItem* theWrappedObject, int angle); + QPainterPath shape(QGraphicsEllipseItem* theWrappedObject) const; + int spanAngle(QGraphicsEllipseItem* theWrappedObject) const; + int startAngle(QGraphicsEllipseItem* theWrappedObject) const; + int type(QGraphicsEllipseItem* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGraphicsGridLayout : public QGraphicsGridLayout +{ +public: + PythonQtShell_QGraphicsGridLayout(QGraphicsLayoutItem* parent = 0):QGraphicsGridLayout(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsGridLayout(); + +virtual int count() const; +virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; +virtual void invalidate(); +virtual QGraphicsLayoutItem* itemAt(int index) const; +virtual void removeAt(int index); +virtual void updateGeometry(); +virtual void widgetEvent(QEvent* e); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsGridLayout : public QGraphicsGridLayout +{ public: +inline int promoted_count() const { return QGraphicsGridLayout::count(); } +inline void promoted_invalidate() { QGraphicsGridLayout::invalidate(); } +inline QGraphicsLayoutItem* promoted_itemAt(int index) const { return QGraphicsGridLayout::itemAt(index); } +inline void promoted_removeAt(int index) { QGraphicsGridLayout::removeAt(index); } +}; + +class PythonQtWrapper_QGraphicsGridLayout : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsGridLayout* new_QGraphicsGridLayout(QGraphicsLayoutItem* parent = 0); +void delete_QGraphicsGridLayout(QGraphicsGridLayout* obj) { delete obj; } + void addItem(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, int row, int column, Qt::Alignment alignment = 0); + void addItem(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment = 0); + Qt::Alignment alignment(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item) const; + Qt::Alignment columnAlignment(QGraphicsGridLayout* theWrappedObject, int column) const; + int columnCount(QGraphicsGridLayout* theWrappedObject) const; + qreal columnMaximumWidth(QGraphicsGridLayout* theWrappedObject, int column) const; + qreal columnMinimumWidth(QGraphicsGridLayout* theWrappedObject, int column) const; + qreal columnPreferredWidth(QGraphicsGridLayout* theWrappedObject, int column) const; + qreal columnSpacing(QGraphicsGridLayout* theWrappedObject, int column) const; + int columnStretchFactor(QGraphicsGridLayout* theWrappedObject, int column) const; + int count(QGraphicsGridLayout* theWrappedObject) const; + qreal horizontalSpacing(QGraphicsGridLayout* theWrappedObject) const; + void invalidate(QGraphicsGridLayout* theWrappedObject); + QGraphicsLayoutItem* itemAt(QGraphicsGridLayout* theWrappedObject, int index) const; + QGraphicsLayoutItem* itemAt(QGraphicsGridLayout* theWrappedObject, int row, int column) const; + void removeAt(QGraphicsGridLayout* theWrappedObject, int index); + void removeItem(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item); + Qt::Alignment rowAlignment(QGraphicsGridLayout* theWrappedObject, int row) const; + int rowCount(QGraphicsGridLayout* theWrappedObject) const; + qreal rowMaximumHeight(QGraphicsGridLayout* theWrappedObject, int row) const; + qreal rowMinimumHeight(QGraphicsGridLayout* theWrappedObject, int row) const; + qreal rowPreferredHeight(QGraphicsGridLayout* theWrappedObject, int row) const; + qreal rowSpacing(QGraphicsGridLayout* theWrappedObject, int row) const; + int rowStretchFactor(QGraphicsGridLayout* theWrappedObject, int row) const; + void setAlignment(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, Qt::Alignment alignment); + void setColumnAlignment(QGraphicsGridLayout* theWrappedObject, int column, Qt::Alignment alignment); + void setColumnFixedWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width); + void setColumnMaximumWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width); + void setColumnMinimumWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width); + void setColumnPreferredWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width); + void setColumnSpacing(QGraphicsGridLayout* theWrappedObject, int column, qreal spacing); + void setColumnStretchFactor(QGraphicsGridLayout* theWrappedObject, int column, int stretch); + void setGeometry(QGraphicsGridLayout* theWrappedObject, const QRectF& rect); + void setHorizontalSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing); + void setRowAlignment(QGraphicsGridLayout* theWrappedObject, int row, Qt::Alignment alignment); + void setRowFixedHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height); + void setRowMaximumHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height); + void setRowMinimumHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height); + void setRowPreferredHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height); + void setRowSpacing(QGraphicsGridLayout* theWrappedObject, int row, qreal spacing); + void setRowStretchFactor(QGraphicsGridLayout* theWrappedObject, int row, int stretch); + void setSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing); + void setVerticalSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing); + QSizeF sizeHint(QGraphicsGridLayout* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; + qreal verticalSpacing(QGraphicsGridLayout* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGraphicsItem : public QGraphicsItem +{ +public: + PythonQtShell_QGraphicsItem(QGraphicsItem* parent = 0):QGraphicsItem(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsItem(); + +virtual void advance(int phase); +virtual QRectF boundingRect() const; +virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; +virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; +virtual bool contains(const QPointF& point) const; +virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); +virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event); +virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event); +virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event); +virtual void dropEvent(QGraphicsSceneDragDropEvent* event); +virtual QVariant extension(const QVariant& variant) const; +virtual void focusInEvent(QFocusEvent* event); +virtual void focusOutEvent(QFocusEvent* event); +virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event); +virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); +virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual bool isObscuredBy(const QGraphicsItem* item) const; +virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value); +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* event); +virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event); +virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event); +virtual void mousePressEvent(QGraphicsSceneMouseEvent* event); +virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); +virtual QPainterPath opaqueArea() const; +virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); +virtual bool sceneEvent(QEvent* event); +virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); +virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant); +virtual QPainterPath shape() const; +virtual bool supportsExtension(QGraphicsItem::Extension extension) const; +virtual int type() const; +virtual void wheelEvent(QGraphicsSceneWheelEvent* event); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsItem : public QGraphicsItem +{ public: +inline void promoted_advance(int phase) { QGraphicsItem::advance(phase); } +inline bool promoted_collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const { return QGraphicsItem::collidesWithItem(other, mode); } +inline bool promoted_collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const { return QGraphicsItem::collidesWithPath(path, mode); } +inline bool promoted_contains(const QPointF& point) const { return QGraphicsItem::contains(point); } +inline void promoted_contextMenuEvent(QGraphicsSceneContextMenuEvent* event) { QGraphicsItem::contextMenuEvent(event); } +inline void promoted_dragEnterEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItem::dragEnterEvent(event); } +inline void promoted_dragLeaveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItem::dragLeaveEvent(event); } +inline void promoted_dragMoveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItem::dragMoveEvent(event); } +inline void promoted_dropEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItem::dropEvent(event); } +inline QVariant promoted_extension(const QVariant& variant) const { return QGraphicsItem::extension(variant); } +inline void promoted_focusInEvent(QFocusEvent* event) { QGraphicsItem::focusInEvent(event); } +inline void promoted_focusOutEvent(QFocusEvent* event) { QGraphicsItem::focusOutEvent(event); } +inline void promoted_hoverEnterEvent(QGraphicsSceneHoverEvent* event) { QGraphicsItem::hoverEnterEvent(event); } +inline void promoted_hoverLeaveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsItem::hoverLeaveEvent(event); } +inline void promoted_hoverMoveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsItem::hoverMoveEvent(event); } +inline void promoted_inputMethodEvent(QInputMethodEvent* event) { QGraphicsItem::inputMethodEvent(event); } +inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery query) const { return QGraphicsItem::inputMethodQuery(query); } +inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsItem::isObscuredBy(item); } +inline QVariant promoted_itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) { return QGraphicsItem::itemChange(change, value); } +inline void promoted_keyPressEvent(QKeyEvent* event) { QGraphicsItem::keyPressEvent(event); } +inline void promoted_keyReleaseEvent(QKeyEvent* event) { QGraphicsItem::keyReleaseEvent(event); } +inline void promoted_mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItem::mouseDoubleClickEvent(event); } +inline void promoted_mouseMoveEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItem::mouseMoveEvent(event); } +inline void promoted_mousePressEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItem::mousePressEvent(event); } +inline void promoted_mouseReleaseEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItem::mouseReleaseEvent(event); } +inline QPainterPath promoted_opaqueArea() const { return QGraphicsItem::opaqueArea(); } +inline bool promoted_sceneEvent(QEvent* event) { return QGraphicsItem::sceneEvent(event); } +inline bool promoted_sceneEventFilter(QGraphicsItem* watched, QEvent* event) { return QGraphicsItem::sceneEventFilter(watched, event); } +inline QPainterPath promoted_shape() const { return QGraphicsItem::shape(); } +inline int promoted_type() const { return QGraphicsItem::type(); } +inline void promoted_wheelEvent(QGraphicsSceneWheelEvent* event) { QGraphicsItem::wheelEvent(event); } +}; + +class PythonQtWrapper_QGraphicsItem : public QObject +{ Q_OBJECT +public: +Q_ENUMS(PanelModality enum_1 GraphicsItemFlag CacheMode GraphicsItemChange ) +Q_FLAGS(GraphicsItemFlags ) +enum PanelModality{ + NonModal = QGraphicsItem::NonModal, PanelModal = QGraphicsItem::PanelModal, SceneModal = QGraphicsItem::SceneModal}; +enum enum_1{ + Type = QGraphicsItem::Type, UserType = QGraphicsItem::UserType}; +enum GraphicsItemFlag{ + ItemIsMovable = QGraphicsItem::ItemIsMovable, ItemIsSelectable = QGraphicsItem::ItemIsSelectable, ItemIsFocusable = QGraphicsItem::ItemIsFocusable, ItemClipsToShape = QGraphicsItem::ItemClipsToShape, ItemClipsChildrenToShape = QGraphicsItem::ItemClipsChildrenToShape, ItemIgnoresTransformations = QGraphicsItem::ItemIgnoresTransformations, ItemIgnoresParentOpacity = QGraphicsItem::ItemIgnoresParentOpacity, ItemDoesntPropagateOpacityToChildren = QGraphicsItem::ItemDoesntPropagateOpacityToChildren, ItemStacksBehindParent = QGraphicsItem::ItemStacksBehindParent, ItemUsesExtendedStyleOption = QGraphicsItem::ItemUsesExtendedStyleOption, ItemHasNoContents = QGraphicsItem::ItemHasNoContents, ItemSendsGeometryChanges = QGraphicsItem::ItemSendsGeometryChanges, ItemAcceptsInputMethod = QGraphicsItem::ItemAcceptsInputMethod, ItemNegativeZStacksBehindParent = QGraphicsItem::ItemNegativeZStacksBehindParent, ItemIsPanel = QGraphicsItem::ItemIsPanel, ItemIsFocusScope = QGraphicsItem::ItemIsFocusScope, ItemSendsScenePositionChanges = QGraphicsItem::ItemSendsScenePositionChanges, ItemStopsClickFocusPropagation = QGraphicsItem::ItemStopsClickFocusPropagation, ItemStopsFocusHandling = QGraphicsItem::ItemStopsFocusHandling}; +enum CacheMode{ + NoCache = QGraphicsItem::NoCache, ItemCoordinateCache = QGraphicsItem::ItemCoordinateCache, DeviceCoordinateCache = QGraphicsItem::DeviceCoordinateCache}; +enum GraphicsItemChange{ + ItemPositionChange = QGraphicsItem::ItemPositionChange, ItemMatrixChange = QGraphicsItem::ItemMatrixChange, ItemVisibleChange = QGraphicsItem::ItemVisibleChange, ItemEnabledChange = QGraphicsItem::ItemEnabledChange, ItemSelectedChange = QGraphicsItem::ItemSelectedChange, ItemParentChange = QGraphicsItem::ItemParentChange, ItemChildAddedChange = QGraphicsItem::ItemChildAddedChange, ItemChildRemovedChange = QGraphicsItem::ItemChildRemovedChange, ItemTransformChange = QGraphicsItem::ItemTransformChange, ItemPositionHasChanged = QGraphicsItem::ItemPositionHasChanged, ItemTransformHasChanged = QGraphicsItem::ItemTransformHasChanged, ItemSceneChange = QGraphicsItem::ItemSceneChange, ItemVisibleHasChanged = QGraphicsItem::ItemVisibleHasChanged, ItemEnabledHasChanged = QGraphicsItem::ItemEnabledHasChanged, ItemSelectedHasChanged = QGraphicsItem::ItemSelectedHasChanged, ItemParentHasChanged = QGraphicsItem::ItemParentHasChanged, ItemSceneHasChanged = QGraphicsItem::ItemSceneHasChanged, ItemCursorChange = QGraphicsItem::ItemCursorChange, ItemCursorHasChanged = QGraphicsItem::ItemCursorHasChanged, ItemToolTipChange = QGraphicsItem::ItemToolTipChange, ItemToolTipHasChanged = QGraphicsItem::ItemToolTipHasChanged, ItemFlagsChange = QGraphicsItem::ItemFlagsChange, ItemFlagsHaveChanged = QGraphicsItem::ItemFlagsHaveChanged, ItemZValueChange = QGraphicsItem::ItemZValueChange, ItemZValueHasChanged = QGraphicsItem::ItemZValueHasChanged, ItemOpacityChange = QGraphicsItem::ItemOpacityChange, ItemOpacityHasChanged = QGraphicsItem::ItemOpacityHasChanged, ItemScenePositionHasChanged = QGraphicsItem::ItemScenePositionHasChanged, ItemRotationChange = QGraphicsItem::ItemRotationChange, ItemRotationHasChanged = QGraphicsItem::ItemRotationHasChanged, ItemScaleChange = QGraphicsItem::ItemScaleChange, ItemScaleHasChanged = QGraphicsItem::ItemScaleHasChanged, ItemTransformOriginPointChange = QGraphicsItem::ItemTransformOriginPointChange, ItemTransformOriginPointHasChanged = QGraphicsItem::ItemTransformOriginPointHasChanged}; +Q_DECLARE_FLAGS(GraphicsItemFlags, GraphicsItemFlag) +public slots: +QGraphicsItem* new_QGraphicsItem(QGraphicsItem* parent = 0); +void delete_QGraphicsItem(QGraphicsItem* obj) { delete obj; } + bool acceptDrops(QGraphicsItem* theWrappedObject) const; + bool acceptHoverEvents(QGraphicsItem* theWrappedObject) const; + bool acceptTouchEvents(QGraphicsItem* theWrappedObject) const; + Qt::MouseButtons acceptedMouseButtons(QGraphicsItem* theWrappedObject) const; + void advance(QGraphicsItem* theWrappedObject, int phase); + QRegion boundingRegion(QGraphicsItem* theWrappedObject, const QTransform& itemToDeviceTransform) const; + qreal boundingRegionGranularity(QGraphicsItem* theWrappedObject) const; + QGraphicsItem::CacheMode cacheMode(QGraphicsItem* theWrappedObject) const; + QList childItems(QGraphicsItem* theWrappedObject) const; + QRectF childrenBoundingRect(QGraphicsItem* theWrappedObject) const; + void clearFocus(QGraphicsItem* theWrappedObject); + QPainterPath clipPath(QGraphicsItem* theWrappedObject) const; + bool collidesWithItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* other, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; + bool collidesWithPath(QGraphicsItem* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; + QList collidingItems(QGraphicsItem* theWrappedObject, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; + QGraphicsItem* commonAncestorItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* other) const; + bool contains(QGraphicsItem* theWrappedObject, const QPointF& point) const; + void contextMenuEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneContextMenuEvent* event); + QCursor cursor(QGraphicsItem* theWrappedObject) const; + QVariant data(QGraphicsItem* theWrappedObject, int key) const; + QTransform deviceTransform(QGraphicsItem* theWrappedObject, const QTransform& viewportTransform) const; + void dragEnterEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event); + void dragLeaveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event); + void dragMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event); + void dropEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event); + qreal effectiveOpacity(QGraphicsItem* theWrappedObject) const; + void ensureVisible(QGraphicsItem* theWrappedObject, const QRectF& rect = QRectF(), int xmargin = 50, int ymargin = 50); + void ensureVisible(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int xmargin = 50, int ymargin = 50); + QVariant extension(QGraphicsItem* theWrappedObject, const QVariant& variant) const; + bool filtersChildEvents(QGraphicsItem* theWrappedObject) const; + QGraphicsItem::GraphicsItemFlags flags(QGraphicsItem* theWrappedObject) const; + void focusInEvent(QGraphicsItem* theWrappedObject, QFocusEvent* event); + QGraphicsItem* focusItem(QGraphicsItem* theWrappedObject) const; + void focusOutEvent(QGraphicsItem* theWrappedObject, QFocusEvent* event); + QGraphicsItem* focusProxy(QGraphicsItem* theWrappedObject) const; + QGraphicsItem* focusScopeItem(QGraphicsItem* theWrappedObject) const; + void grabKeyboard(QGraphicsItem* theWrappedObject); + void grabMouse(QGraphicsItem* theWrappedObject); + QGraphicsEffect* graphicsEffect(QGraphicsItem* theWrappedObject) const; + QGraphicsItemGroup* group(QGraphicsItem* theWrappedObject) const; + bool handlesChildEvents(QGraphicsItem* theWrappedObject) const; + bool hasCursor(QGraphicsItem* theWrappedObject) const; + bool hasFocus(QGraphicsItem* theWrappedObject) const; + void hide(QGraphicsItem* theWrappedObject); + void hoverEnterEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event); + void hoverLeaveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event); + void hoverMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event); + void inputMethodEvent(QGraphicsItem* theWrappedObject, QInputMethodEvent* event); + Qt::InputMethodHints inputMethodHints(QGraphicsItem* theWrappedObject) const; + QVariant inputMethodQuery(QGraphicsItem* theWrappedObject, Qt::InputMethodQuery query) const; + void installSceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* filterItem); + bool isActive(QGraphicsItem* theWrappedObject) const; + bool isAncestorOf(QGraphicsItem* theWrappedObject, const QGraphicsItem* child) const; + bool isBlockedByModalPanel(QGraphicsItem* theWrappedObject, QGraphicsItem** blockingPanel = 0) const; + bool isClipped(QGraphicsItem* theWrappedObject) const; + bool isEnabled(QGraphicsItem* theWrappedObject) const; + bool isObscured(QGraphicsItem* theWrappedObject, const QRectF& rect = QRectF()) const; + bool isObscured(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; + bool isObscuredBy(QGraphicsItem* theWrappedObject, const QGraphicsItem* item) const; + bool isPanel(QGraphicsItem* theWrappedObject) const; + bool isSelected(QGraphicsItem* theWrappedObject) const; + bool isUnderMouse(QGraphicsItem* theWrappedObject) const; + bool isVisible(QGraphicsItem* theWrappedObject) const; + bool isVisibleTo(QGraphicsItem* theWrappedObject, const QGraphicsItem* parent) const; + bool isWidget(QGraphicsItem* theWrappedObject) const; + bool isWindow(QGraphicsItem* theWrappedObject) const; + QVariant itemChange(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemChange change, const QVariant& value); + QTransform itemTransform(QGraphicsItem* theWrappedObject, const QGraphicsItem* other, bool* ok = 0) const; + void keyPressEvent(QGraphicsItem* theWrappedObject, QKeyEvent* event); + void keyReleaseEvent(QGraphicsItem* theWrappedObject, QKeyEvent* event); + QPainterPath mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPainterPath& path) const; + QPointF mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPointF& point) const; + QPolygonF mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPolygonF& polygon) const; + QPolygonF mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const; + QPointF mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y) const; + QPolygonF mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const; + QPainterPath mapFromParent(QGraphicsItem* theWrappedObject, const QPainterPath& path) const; + QPointF mapFromParent(QGraphicsItem* theWrappedObject, const QPointF& point) const; + QPolygonF mapFromParent(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const; + QPolygonF mapFromParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const; + QPointF mapFromParent(QGraphicsItem* theWrappedObject, qreal x, qreal y) const; + QPolygonF mapFromParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; + QPainterPath mapFromScene(QGraphicsItem* theWrappedObject, const QPainterPath& path) const; + QPointF mapFromScene(QGraphicsItem* theWrappedObject, const QPointF& point) const; + QPolygonF mapFromScene(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const; + QPolygonF mapFromScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const; + QPointF mapFromScene(QGraphicsItem* theWrappedObject, qreal x, qreal y) const; + QPolygonF mapFromScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; + QRectF mapRectFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const; + QRectF mapRectFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const; + QRectF mapRectFromParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const; + QRectF mapRectFromParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; + QRectF mapRectFromScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const; + QRectF mapRectFromScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; + QRectF mapRectToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const; + QRectF mapRectToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const; + QRectF mapRectToParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const; + QRectF mapRectToParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; + QRectF mapRectToScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const; + QRectF mapRectToScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; + QPainterPath mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPainterPath& path) const; + QPointF mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPointF& point) const; + QPolygonF mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPolygonF& polygon) const; + QPolygonF mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const; + QPointF mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y) const; + QPolygonF mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const; + QPainterPath mapToParent(QGraphicsItem* theWrappedObject, const QPainterPath& path) const; + QPointF mapToParent(QGraphicsItem* theWrappedObject, const QPointF& point) const; + QPolygonF mapToParent(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const; + QPolygonF mapToParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const; + QPointF mapToParent(QGraphicsItem* theWrappedObject, qreal x, qreal y) const; + QPolygonF mapToParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; + QPainterPath mapToScene(QGraphicsItem* theWrappedObject, const QPainterPath& path) const; + QPointF mapToScene(QGraphicsItem* theWrappedObject, const QPointF& point) const; + QPolygonF mapToScene(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const; + QPolygonF mapToScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const; + QPointF mapToScene(QGraphicsItem* theWrappedObject, qreal x, qreal y) const; + QPolygonF mapToScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; + void mouseDoubleClickEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event); + void mouseMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event); + void mousePressEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event); + void mouseReleaseEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event); + void moveBy(QGraphicsItem* theWrappedObject, qreal dx, qreal dy); + qreal opacity(QGraphicsItem* theWrappedObject) const; + QPainterPath opaqueArea(QGraphicsItem* theWrappedObject) const; + QGraphicsItem* panel(QGraphicsItem* theWrappedObject) const; + QGraphicsItem::PanelModality panelModality(QGraphicsItem* theWrappedObject) const; + QGraphicsItem* parentItem(QGraphicsItem* theWrappedObject) const; + QGraphicsObject* parentObject(QGraphicsItem* theWrappedObject) const; + QGraphicsWidget* parentWidget(QGraphicsItem* theWrappedObject) const; + QPointF pos(QGraphicsItem* theWrappedObject) const; + void removeSceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* filterItem); + void resetTransform(QGraphicsItem* theWrappedObject); + qreal rotation(QGraphicsItem* theWrappedObject) const; + qreal scale(QGraphicsItem* theWrappedObject) const; + QGraphicsScene* scene(QGraphicsItem* theWrappedObject) const; + QRectF sceneBoundingRect(QGraphicsItem* theWrappedObject) const; + bool sceneEvent(QGraphicsItem* theWrappedObject, QEvent* event); + bool sceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* watched, QEvent* event); + QPointF scenePos(QGraphicsItem* theWrappedObject) const; + QTransform sceneTransform(QGraphicsItem* theWrappedObject) const; + void scroll(QGraphicsItem* theWrappedObject, qreal dx, qreal dy, const QRectF& rect = QRectF()); + void setAcceptDrops(QGraphicsItem* theWrappedObject, bool on); + void setAcceptHoverEvents(QGraphicsItem* theWrappedObject, bool enabled); + void setAcceptTouchEvents(QGraphicsItem* theWrappedObject, bool enabled); + void setAcceptedMouseButtons(QGraphicsItem* theWrappedObject, Qt::MouseButtons buttons); + void setActive(QGraphicsItem* theWrappedObject, bool active); + void setBoundingRegionGranularity(QGraphicsItem* theWrappedObject, qreal granularity); + void setCacheMode(QGraphicsItem* theWrappedObject, QGraphicsItem::CacheMode mode, const QSize& cacheSize = QSize()); + void setCursor(QGraphicsItem* theWrappedObject, const QCursor& cursor); + void setData(QGraphicsItem* theWrappedObject, int key, const QVariant& value); + void setEnabled(QGraphicsItem* theWrappedObject, bool enabled); + void setFiltersChildEvents(QGraphicsItem* theWrappedObject, bool enabled); + void setFlag(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemFlag flag, bool enabled = true); + void setFlags(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemFlags flags); + void setFocus(QGraphicsItem* theWrappedObject, Qt::FocusReason focusReason = Qt::OtherFocusReason); + void setFocusProxy(QGraphicsItem* theWrappedObject, QGraphicsItem* item); + void setGraphicsEffect(QGraphicsItem* theWrappedObject, QGraphicsEffect* effect); + void setGroup(QGraphicsItem* theWrappedObject, QGraphicsItemGroup* group); + void setHandlesChildEvents(QGraphicsItem* theWrappedObject, bool enabled); + void setInputMethodHints(QGraphicsItem* theWrappedObject, Qt::InputMethodHints hints); + void setOpacity(QGraphicsItem* theWrappedObject, qreal opacity); + void setPanelModality(QGraphicsItem* theWrappedObject, QGraphicsItem::PanelModality panelModality); + void setParentItem(QGraphicsItem* theWrappedObject, QGraphicsItem* parent); + void setPos(QGraphicsItem* theWrappedObject, const QPointF& pos); + void setPos(QGraphicsItem* theWrappedObject, qreal x, qreal y); + void setRotation(QGraphicsItem* theWrappedObject, qreal angle); + void setScale(QGraphicsItem* theWrappedObject, qreal scale); + void setSelected(QGraphicsItem* theWrappedObject, bool selected); + void setToolTip(QGraphicsItem* theWrappedObject, const QString& toolTip); + void setTransform(QGraphicsItem* theWrappedObject, const QTransform& matrix, bool combine = false); + void setTransformOriginPoint(QGraphicsItem* theWrappedObject, const QPointF& origin); + void setTransformOriginPoint(QGraphicsItem* theWrappedObject, qreal ax, qreal ay); + void setTransformations(QGraphicsItem* theWrappedObject, const QList& transformations); + void setVisible(QGraphicsItem* theWrappedObject, bool visible); + void setX(QGraphicsItem* theWrappedObject, qreal x); + void setY(QGraphicsItem* theWrappedObject, qreal y); + void setZValue(QGraphicsItem* theWrappedObject, qreal z); + QPainterPath shape(QGraphicsItem* theWrappedObject) const; + void show(QGraphicsItem* theWrappedObject); + void stackBefore(QGraphicsItem* theWrappedObject, const QGraphicsItem* sibling); + QGraphicsObject* toGraphicsObject(QGraphicsItem* theWrappedObject); + QString toolTip(QGraphicsItem* theWrappedObject) const; + QGraphicsItem* topLevelItem(QGraphicsItem* theWrappedObject) const; + QGraphicsWidget* topLevelWidget(QGraphicsItem* theWrappedObject) const; + QTransform transform(QGraphicsItem* theWrappedObject) const; + QPointF transformOriginPoint(QGraphicsItem* theWrappedObject) const; + QList transformations(QGraphicsItem* theWrappedObject) const; + int type(QGraphicsItem* theWrappedObject) const; + void ungrabKeyboard(QGraphicsItem* theWrappedObject); + void ungrabMouse(QGraphicsItem* theWrappedObject); + void unsetCursor(QGraphicsItem* theWrappedObject); + void update(QGraphicsItem* theWrappedObject, const QRectF& rect = QRectF()); + void update(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal width, qreal height); + void wheelEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneWheelEvent* event); + QGraphicsWidget* window(QGraphicsItem* theWrappedObject) const; + qreal x(QGraphicsItem* theWrappedObject) const; + qreal y(QGraphicsItem* theWrappedObject) const; + qreal zValue(QGraphicsItem* theWrappedObject) const; + QString py_toString(QGraphicsItem*); +}; + + + + + +class PythonQtShell_QGraphicsItemAnimation : public QGraphicsItemAnimation +{ +public: + PythonQtShell_QGraphicsItemAnimation(QObject* parent = 0):QGraphicsItemAnimation(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsItemAnimation(); + +virtual void afterAnimationStep(qreal step); +virtual void beforeAnimationStep(qreal step); +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsItemAnimation : public QGraphicsItemAnimation +{ public: +inline void promoted_afterAnimationStep(qreal step) { QGraphicsItemAnimation::afterAnimationStep(step); } +inline void promoted_beforeAnimationStep(qreal step) { QGraphicsItemAnimation::beforeAnimationStep(step); } +}; + +class PythonQtWrapper_QGraphicsItemAnimation : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsItemAnimation* new_QGraphicsItemAnimation(QObject* parent = 0); +void delete_QGraphicsItemAnimation(QGraphicsItemAnimation* obj) { delete obj; } + void afterAnimationStep(QGraphicsItemAnimation* theWrappedObject, qreal step); + void beforeAnimationStep(QGraphicsItemAnimation* theWrappedObject, qreal step); + void clear(QGraphicsItemAnimation* theWrappedObject); + qreal horizontalScaleAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; + qreal horizontalShearAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; + QGraphicsItem* item(QGraphicsItemAnimation* theWrappedObject) const; + QMatrix matrixAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; + QPointF posAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; + QList > posList(QGraphicsItemAnimation* theWrappedObject) const; + qreal rotationAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; + QList > rotationList(QGraphicsItemAnimation* theWrappedObject) const; + QList > scaleList(QGraphicsItemAnimation* theWrappedObject) const; + void setItem(QGraphicsItemAnimation* theWrappedObject, QGraphicsItem* item); + void setPosAt(QGraphicsItemAnimation* theWrappedObject, qreal step, const QPointF& pos); + void setRotationAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal angle); + void setScaleAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal sx, qreal sy); + void setShearAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal sh, qreal sv); + void setTimeLine(QGraphicsItemAnimation* theWrappedObject, QTimeLine* timeLine); + void setTranslationAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal dx, qreal dy); + QList > shearList(QGraphicsItemAnimation* theWrappedObject) const; + QTimeLine* timeLine(QGraphicsItemAnimation* theWrappedObject) const; + QList > translationList(QGraphicsItemAnimation* theWrappedObject) const; + qreal verticalScaleAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; + qreal verticalShearAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; + qreal xTranslationAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; + qreal yTranslationAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; +}; + + + + + +class PythonQtShell_QGraphicsItemGroup : public QGraphicsItemGroup +{ +public: + PythonQtShell_QGraphicsItemGroup(QGraphicsItem* parent = 0):QGraphicsItemGroup(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsItemGroup(); + +virtual void advance(int phase); +virtual QRectF boundingRect() const; +virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const; +virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const; +virtual bool contains(const QPointF& point) const; +virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); +virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event); +virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event); +virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event); +virtual void dropEvent(QGraphicsSceneDragDropEvent* event); +virtual QVariant extension(const QVariant& variant) const; +virtual void focusInEvent(QFocusEvent* event); +virtual void focusOutEvent(QFocusEvent* event); +virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event); +virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); +virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual bool isObscuredBy(const QGraphicsItem* item) const; +virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value); +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* event); +virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event); +virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event); +virtual void mousePressEvent(QGraphicsSceneMouseEvent* event); +virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); +virtual QPainterPath opaqueArea() const; +virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); +virtual bool sceneEvent(QEvent* event); +virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); +virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant); +virtual QPainterPath shape() const; +virtual bool supportsExtension(QGraphicsItem::Extension extension) const; +virtual int type() const; +virtual void wheelEvent(QGraphicsSceneWheelEvent* event); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsItemGroup : public QGraphicsItemGroup +{ public: +inline QRectF promoted_boundingRect() const { return QGraphicsItemGroup::boundingRect(); } +inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsItemGroup::isObscuredBy(item); } +inline QPainterPath promoted_opaqueArea() const { return QGraphicsItemGroup::opaqueArea(); } +inline void promoted_paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) { QGraphicsItemGroup::paint(painter, option, widget); } +inline int promoted_type() const { return QGraphicsItemGroup::type(); } +}; + +class PythonQtWrapper_QGraphicsItemGroup : public QObject +{ Q_OBJECT +public: +Q_ENUMS(enum_1 ) +enum enum_1{ + Type = QGraphicsItemGroup::Type}; +public slots: +QGraphicsItemGroup* new_QGraphicsItemGroup(QGraphicsItem* parent = 0); +void delete_QGraphicsItemGroup(QGraphicsItemGroup* obj) { delete obj; } + void addToGroup(QGraphicsItemGroup* theWrappedObject, QGraphicsItem* item); + QRectF boundingRect(QGraphicsItemGroup* theWrappedObject) const; + bool isObscuredBy(QGraphicsItemGroup* theWrappedObject, const QGraphicsItem* item) const; + QPainterPath opaqueArea(QGraphicsItemGroup* theWrappedObject) const; + void paint(QGraphicsItemGroup* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); + void removeFromGroup(QGraphicsItemGroup* theWrappedObject, QGraphicsItem* item); + int type(QGraphicsItemGroup* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGraphicsLayout : public QGraphicsLayout +{ +public: + PythonQtShell_QGraphicsLayout(QGraphicsLayoutItem* parent = 0):QGraphicsLayout(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsLayout(); + +virtual int count() const; +virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; +virtual void invalidate(); +virtual QGraphicsLayoutItem* itemAt(int i) const; +virtual void removeAt(int index); +virtual void setGeometry(const QRectF& rect); +virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF& constraint) const; +virtual void updateGeometry(); +virtual void widgetEvent(QEvent* e); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsLayout : public QGraphicsLayout +{ public: +inline void promoted_getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const { QGraphicsLayout::getContentsMargins(left, top, right, bottom); } +inline void promoted_invalidate() { QGraphicsLayout::invalidate(); } +inline void promoted_updateGeometry() { QGraphicsLayout::updateGeometry(); } +inline void promoted_widgetEvent(QEvent* e) { QGraphicsLayout::widgetEvent(e); } +}; + +class PythonQtWrapper_QGraphicsLayout : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsLayout* new_QGraphicsLayout(QGraphicsLayoutItem* parent = 0); +void delete_QGraphicsLayout(QGraphicsLayout* obj) { delete obj; } + void activate(QGraphicsLayout* theWrappedObject); + void getContentsMargins(QGraphicsLayout* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const; + bool static_QGraphicsLayout_instantInvalidatePropagation(); + void invalidate(QGraphicsLayout* theWrappedObject); + bool isActivated(QGraphicsLayout* theWrappedObject) const; + void setContentsMargins(QGraphicsLayout* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom); + void static_QGraphicsLayout_setInstantInvalidatePropagation(bool enable); + void updateGeometry(QGraphicsLayout* theWrappedObject); + void widgetEvent(QGraphicsLayout* theWrappedObject, QEvent* e); +}; + + + + + +class PythonQtShell_QGraphicsLayoutItem : public QGraphicsLayoutItem +{ +public: + PythonQtShell_QGraphicsLayoutItem(QGraphicsLayoutItem* parent = 0, bool isLayout = false):QGraphicsLayoutItem(parent, isLayout),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsLayoutItem(); + +virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; +virtual void setGeometry(const QRectF& rect); +virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; +virtual void updateGeometry(); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsLayoutItem : public QGraphicsLayoutItem +{ public: +inline void promoted_getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const { QGraphicsLayoutItem::getContentsMargins(left, top, right, bottom); } +inline void promoted_setGeometry(const QRectF& rect) { QGraphicsLayoutItem::setGeometry(rect); } +inline void promoted_updateGeometry() { QGraphicsLayoutItem::updateGeometry(); } +}; + +class PythonQtWrapper_QGraphicsLayoutItem : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsLayoutItem* new_QGraphicsLayoutItem(QGraphicsLayoutItem* parent = 0, bool isLayout = false); +void delete_QGraphicsLayoutItem(QGraphicsLayoutItem* obj) { delete obj; } + QRectF contentsRect(QGraphicsLayoutItem* theWrappedObject) const; + QSizeF effectiveSizeHint(QGraphicsLayoutItem* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; + QRectF geometry(QGraphicsLayoutItem* theWrappedObject) const; + void getContentsMargins(QGraphicsLayoutItem* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const; + QGraphicsItem* graphicsItem(QGraphicsLayoutItem* theWrappedObject) const; + bool isLayout(QGraphicsLayoutItem* theWrappedObject) const; + qreal maximumHeight(QGraphicsLayoutItem* theWrappedObject) const; + QSizeF maximumSize(QGraphicsLayoutItem* theWrappedObject) const; + qreal maximumWidth(QGraphicsLayoutItem* theWrappedObject) const; + qreal minimumHeight(QGraphicsLayoutItem* theWrappedObject) const; + QSizeF minimumSize(QGraphicsLayoutItem* theWrappedObject) const; + qreal minimumWidth(QGraphicsLayoutItem* theWrappedObject) const; + bool ownedByLayout(QGraphicsLayoutItem* theWrappedObject) const; + QGraphicsLayoutItem* parentLayoutItem(QGraphicsLayoutItem* theWrappedObject) const; + qreal preferredHeight(QGraphicsLayoutItem* theWrappedObject) const; + QSizeF preferredSize(QGraphicsLayoutItem* theWrappedObject) const; + qreal preferredWidth(QGraphicsLayoutItem* theWrappedObject) const; + void setGeometry(QGraphicsLayoutItem* theWrappedObject, const QRectF& rect); + void setMaximumHeight(QGraphicsLayoutItem* theWrappedObject, qreal height); + void setMaximumSize(QGraphicsLayoutItem* theWrappedObject, const QSizeF& size); + void setMaximumSize(QGraphicsLayoutItem* theWrappedObject, qreal w, qreal h); + void setMaximumWidth(QGraphicsLayoutItem* theWrappedObject, qreal width); + void setMinimumHeight(QGraphicsLayoutItem* theWrappedObject, qreal height); + void setMinimumSize(QGraphicsLayoutItem* theWrappedObject, const QSizeF& size); + void setMinimumSize(QGraphicsLayoutItem* theWrappedObject, qreal w, qreal h); + void setMinimumWidth(QGraphicsLayoutItem* theWrappedObject, qreal width); + void setParentLayoutItem(QGraphicsLayoutItem* theWrappedObject, QGraphicsLayoutItem* parent); + void setPreferredHeight(QGraphicsLayoutItem* theWrappedObject, qreal height); + void setPreferredSize(QGraphicsLayoutItem* theWrappedObject, const QSizeF& size); + void setPreferredSize(QGraphicsLayoutItem* theWrappedObject, qreal w, qreal h); + void setPreferredWidth(QGraphicsLayoutItem* theWrappedObject, qreal width); + void setSizePolicy(QGraphicsLayoutItem* theWrappedObject, QSizePolicy::Policy hPolicy, QSizePolicy::Policy vPolicy, QSizePolicy::ControlType controlType = QSizePolicy::DefaultType); + void setSizePolicy(QGraphicsLayoutItem* theWrappedObject, const QSizePolicy& policy); + QSizePolicy sizePolicy(QGraphicsLayoutItem* theWrappedObject) const; + void updateGeometry(QGraphicsLayoutItem* theWrappedObject); +}; + + + + + +class PythonQtShell_QGraphicsLineItem : public QGraphicsLineItem +{ +public: + PythonQtShell_QGraphicsLineItem(QGraphicsItem* parent = 0):QGraphicsLineItem(parent),_wrapper(NULL) {}; + PythonQtShell_QGraphicsLineItem(const QLineF& line, QGraphicsItem* parent = 0):QGraphicsLineItem(line, parent),_wrapper(NULL) {}; + PythonQtShell_QGraphicsLineItem(qreal x1, qreal y1, qreal x2, qreal y2, QGraphicsItem* parent = 0):QGraphicsLineItem(x1, y1, x2, y2, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsLineItem(); + +virtual void advance(int phase); +virtual QRectF boundingRect() const; +virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const; +virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const; +virtual bool contains(const QPointF& point) const; +virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); +virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event); +virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event); +virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event); +virtual void dropEvent(QGraphicsSceneDragDropEvent* event); +virtual QVariant extension(const QVariant& variant) const; +virtual void focusInEvent(QFocusEvent* event); +virtual void focusOutEvent(QFocusEvent* event); +virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event); +virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); +virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual bool isObscuredBy(const QGraphicsItem* item) const; +virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value); +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* event); +virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event); +virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event); +virtual void mousePressEvent(QGraphicsSceneMouseEvent* event); +virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); +virtual QPainterPath opaqueArea() const; +virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); +virtual bool sceneEvent(QEvent* event); +virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); +virtual QPainterPath shape() const; +virtual int type() const; +virtual void wheelEvent(QGraphicsSceneWheelEvent* event); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsLineItem : public QGraphicsLineItem +{ public: +inline QRectF promoted_boundingRect() const { return QGraphicsLineItem::boundingRect(); } +inline bool promoted_contains(const QPointF& point) const { return QGraphicsLineItem::contains(point); } +inline QVariant promoted_extension(const QVariant& variant) const { return QGraphicsLineItem::extension(variant); } +inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsLineItem::isObscuredBy(item); } +inline QPainterPath promoted_opaqueArea() const { return QGraphicsLineItem::opaqueArea(); } +inline void promoted_paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) { QGraphicsLineItem::paint(painter, option, widget); } +inline QPainterPath promoted_shape() const { return QGraphicsLineItem::shape(); } +inline int promoted_type() const { return QGraphicsLineItem::type(); } +}; + +class PythonQtWrapper_QGraphicsLineItem : public QObject +{ Q_OBJECT +public: +Q_ENUMS(enum_1 ) +enum enum_1{ + Type = QGraphicsLineItem::Type}; +public slots: +QGraphicsLineItem* new_QGraphicsLineItem(QGraphicsItem* parent = 0); +QGraphicsLineItem* new_QGraphicsLineItem(const QLineF& line, QGraphicsItem* parent = 0); +QGraphicsLineItem* new_QGraphicsLineItem(qreal x1, qreal y1, qreal x2, qreal y2, QGraphicsItem* parent = 0); +void delete_QGraphicsLineItem(QGraphicsLineItem* obj) { delete obj; } + QRectF boundingRect(QGraphicsLineItem* theWrappedObject) const; + bool contains(QGraphicsLineItem* theWrappedObject, const QPointF& point) const; + QVariant extension(QGraphicsLineItem* theWrappedObject, const QVariant& variant) const; + bool isObscuredBy(QGraphicsLineItem* theWrappedObject, const QGraphicsItem* item) const; + QLineF line(QGraphicsLineItem* theWrappedObject) const; + QPainterPath opaqueArea(QGraphicsLineItem* theWrappedObject) const; + void paint(QGraphicsLineItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); + QPen pen(QGraphicsLineItem* theWrappedObject) const; + void setLine(QGraphicsLineItem* theWrappedObject, const QLineF& line); + void setLine(QGraphicsLineItem* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2); + void setPen(QGraphicsLineItem* theWrappedObject, const QPen& pen); + QPainterPath shape(QGraphicsLineItem* theWrappedObject) const; + int type(QGraphicsLineItem* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGraphicsLinearLayout : public QGraphicsLinearLayout +{ +public: + PythonQtShell_QGraphicsLinearLayout(QGraphicsLayoutItem* parent = 0):QGraphicsLinearLayout(parent),_wrapper(NULL) {}; + PythonQtShell_QGraphicsLinearLayout(Qt::Orientation orientation, QGraphicsLayoutItem* parent = 0):QGraphicsLinearLayout(orientation, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsLinearLayout(); + +virtual int count() const; +virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; +virtual void invalidate(); +virtual QGraphicsLayoutItem* itemAt(int index) const; +virtual void removeAt(int index); +virtual void updateGeometry(); +virtual void widgetEvent(QEvent* e); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsLinearLayout : public QGraphicsLinearLayout +{ public: +inline int promoted_count() const { return QGraphicsLinearLayout::count(); } +inline void promoted_invalidate() { QGraphicsLinearLayout::invalidate(); } +inline QGraphicsLayoutItem* promoted_itemAt(int index) const { return QGraphicsLinearLayout::itemAt(index); } +inline void promoted_removeAt(int index) { QGraphicsLinearLayout::removeAt(index); } +}; + +class PythonQtWrapper_QGraphicsLinearLayout : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsLinearLayout* new_QGraphicsLinearLayout(QGraphicsLayoutItem* parent = 0); +QGraphicsLinearLayout* new_QGraphicsLinearLayout(Qt::Orientation orientation, QGraphicsLayoutItem* parent = 0); +void delete_QGraphicsLinearLayout(QGraphicsLinearLayout* obj) { delete obj; } + void addItem(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item); + void addStretch(QGraphicsLinearLayout* theWrappedObject, int stretch = 1); + Qt::Alignment alignment(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) const; + int count(QGraphicsLinearLayout* theWrappedObject) const; + void dump(QGraphicsLinearLayout* theWrappedObject, int indent = 0) const; + void insertItem(QGraphicsLinearLayout* theWrappedObject, int index, QGraphicsLayoutItem* item); + void insertStretch(QGraphicsLinearLayout* theWrappedObject, int index, int stretch = 1); + void invalidate(QGraphicsLinearLayout* theWrappedObject); + QGraphicsLayoutItem* itemAt(QGraphicsLinearLayout* theWrappedObject, int index) const; + qreal itemSpacing(QGraphicsLinearLayout* theWrappedObject, int index) const; + Qt::Orientation orientation(QGraphicsLinearLayout* theWrappedObject) const; + void removeAt(QGraphicsLinearLayout* theWrappedObject, int index); + void removeItem(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item); + void setAlignment(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item, Qt::Alignment alignment); + void setGeometry(QGraphicsLinearLayout* theWrappedObject, const QRectF& rect); + void setItemSpacing(QGraphicsLinearLayout* theWrappedObject, int index, qreal spacing); + void setOrientation(QGraphicsLinearLayout* theWrappedObject, Qt::Orientation orientation); + void setSpacing(QGraphicsLinearLayout* theWrappedObject, qreal spacing); + void setStretchFactor(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item, int stretch); + QSizeF sizeHint(QGraphicsLinearLayout* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; + qreal spacing(QGraphicsLinearLayout* theWrappedObject) const; + int stretchFactor(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) const; +}; + + + + + +class PythonQtShell_QGraphicsObject : public QGraphicsObject +{ +public: + PythonQtShell_QGraphicsObject(QGraphicsItem* parent = 0):QGraphicsObject(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsObject(); + +virtual void advance(int phase); +virtual QRectF boundingRect() const; +virtual void childEvent(QChildEvent* arg__1); +virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const; +virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const; +virtual bool contains(const QPointF& point) const; +virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); +virtual void customEvent(QEvent* arg__1); +virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event); +virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event); +virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event); +virtual void dropEvent(QGraphicsSceneDragDropEvent* event); +virtual bool event(QEvent* ev); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual QVariant extension(const QVariant& variant) const; +virtual void focusInEvent(QFocusEvent* event); +virtual void focusOutEvent(QFocusEvent* event); +virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event); +virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); +virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual bool isObscuredBy(const QGraphicsItem* item) const; +virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value); +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* event); +virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event); +virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event); +virtual void mousePressEvent(QGraphicsSceneMouseEvent* event); +virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); +virtual QPainterPath opaqueArea() const; +virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); +virtual bool sceneEvent(QEvent* event); +virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); +virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant); +virtual QPainterPath shape() const; +virtual bool supportsExtension(QGraphicsItem::Extension extension) const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual int type() const; +virtual void wheelEvent(QGraphicsSceneWheelEvent* event); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsObject : public QGraphicsObject +{ public: +inline bool promoted_event(QEvent* ev) { return QGraphicsObject::event(ev); } +}; + +class PythonQtWrapper_QGraphicsObject : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsObject* new_QGraphicsObject(QGraphicsItem* parent = 0); +void delete_QGraphicsObject(QGraphicsObject* obj) { delete obj; } + bool event(QGraphicsObject* theWrappedObject, QEvent* ev); + void grabGesture(QGraphicsObject* theWrappedObject, Qt::GestureType type, Qt::GestureFlags flags = Qt::GestureFlags()); + void ungrabGesture(QGraphicsObject* theWrappedObject, Qt::GestureType type); + QString py_toString(QGraphicsObject*); +}; + + + + + +class PythonQtShell_QGraphicsOpacityEffect : public QGraphicsOpacityEffect +{ +public: + PythonQtShell_QGraphicsOpacityEffect(QObject* parent = 0):QGraphicsOpacityEffect(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsOpacityEffect(); + +virtual QRectF boundingRectFor(const QRectF& sourceRect) const; +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual void draw(QPainter* painter); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void sourceChanged(QGraphicsEffect::ChangeFlags flags); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsOpacityEffect : public QGraphicsOpacityEffect +{ public: +inline void promoted_draw(QPainter* painter) { QGraphicsOpacityEffect::draw(painter); } +}; + +class PythonQtWrapper_QGraphicsOpacityEffect : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsOpacityEffect* new_QGraphicsOpacityEffect(QObject* parent = 0); +void delete_QGraphicsOpacityEffect(QGraphicsOpacityEffect* obj) { delete obj; } + void draw(QGraphicsOpacityEffect* theWrappedObject, QPainter* painter); + qreal opacity(QGraphicsOpacityEffect* theWrappedObject) const; + QBrush opacityMask(QGraphicsOpacityEffect* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGraphicsPathItem : public QGraphicsPathItem +{ +public: + PythonQtShell_QGraphicsPathItem(QGraphicsItem* parent = 0):QGraphicsPathItem(parent),_wrapper(NULL) {}; + PythonQtShell_QGraphicsPathItem(const QPainterPath& path, QGraphicsItem* parent = 0):QGraphicsPathItem(path, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsPathItem(); + +virtual bool isObscuredBy(const QGraphicsItem* item) const; +virtual QPainterPath opaqueArea() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsPathItem : public QGraphicsPathItem +{ public: +inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsPathItem::isObscuredBy(item); } +inline QPainterPath promoted_opaqueArea() const { return QGraphicsPathItem::opaqueArea(); } +}; + +class PythonQtWrapper_QGraphicsPathItem : public QObject +{ Q_OBJECT +public: +Q_ENUMS(enum_1 ) +enum enum_1{ + Type = QGraphicsPathItem::Type}; +public slots: +QGraphicsPathItem* new_QGraphicsPathItem(QGraphicsItem* parent = 0); +QGraphicsPathItem* new_QGraphicsPathItem(const QPainterPath& path, QGraphicsItem* parent = 0); +void delete_QGraphicsPathItem(QGraphicsPathItem* obj) { delete obj; } + QRectF boundingRect(QGraphicsPathItem* theWrappedObject) const; + bool contains(QGraphicsPathItem* theWrappedObject, const QPointF& point) const; + bool isObscuredBy(QGraphicsPathItem* theWrappedObject, const QGraphicsItem* item) const; + QPainterPath opaqueArea(QGraphicsPathItem* theWrappedObject) const; + void paint(QGraphicsPathItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); + QPainterPath path(QGraphicsPathItem* theWrappedObject) const; + void setPath(QGraphicsPathItem* theWrappedObject, const QPainterPath& path); + QPainterPath shape(QGraphicsPathItem* theWrappedObject) const; + int type(QGraphicsPathItem* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGraphicsPixmapItem : public QGraphicsPixmapItem +{ +public: + PythonQtShell_QGraphicsPixmapItem(QGraphicsItem* parent = 0):QGraphicsPixmapItem(parent),_wrapper(NULL) {}; + PythonQtShell_QGraphicsPixmapItem(const QPixmap& pixmap, QGraphicsItem* parent = 0):QGraphicsPixmapItem(pixmap, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsPixmapItem(); + +virtual void advance(int phase); +virtual QRectF boundingRect() const; +virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const; +virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const; +virtual bool contains(const QPointF& point) const; +virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); +virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event); +virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event); +virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event); +virtual void dropEvent(QGraphicsSceneDragDropEvent* event); +virtual QVariant extension(const QVariant& variant) const; +virtual void focusInEvent(QFocusEvent* event); +virtual void focusOutEvent(QFocusEvent* event); +virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event); +virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); +virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual bool isObscuredBy(const QGraphicsItem* item) const; +virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value); +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* event); +virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event); +virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event); +virtual void mousePressEvent(QGraphicsSceneMouseEvent* event); +virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); +virtual QPainterPath opaqueArea() const; +virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); +virtual bool sceneEvent(QEvent* event); +virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); +virtual QPainterPath shape() const; +virtual int type() const; +virtual void wheelEvent(QGraphicsSceneWheelEvent* event); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsPixmapItem : public QGraphicsPixmapItem +{ public: +inline QRectF promoted_boundingRect() const { return QGraphicsPixmapItem::boundingRect(); } +inline bool promoted_contains(const QPointF& point) const { return QGraphicsPixmapItem::contains(point); } +inline QVariant promoted_extension(const QVariant& variant) const { return QGraphicsPixmapItem::extension(variant); } +inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsPixmapItem::isObscuredBy(item); } +inline QPainterPath promoted_opaqueArea() const { return QGraphicsPixmapItem::opaqueArea(); } +inline void promoted_paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) { QGraphicsPixmapItem::paint(painter, option, widget); } +inline QPainterPath promoted_shape() const { return QGraphicsPixmapItem::shape(); } +inline int promoted_type() const { return QGraphicsPixmapItem::type(); } +}; + +class PythonQtWrapper_QGraphicsPixmapItem : public QObject +{ Q_OBJECT +public: +Q_ENUMS(enum_1 ShapeMode ) +enum enum_1{ + Type = QGraphicsPixmapItem::Type}; +enum ShapeMode{ + MaskShape = QGraphicsPixmapItem::MaskShape, BoundingRectShape = QGraphicsPixmapItem::BoundingRectShape, HeuristicMaskShape = QGraphicsPixmapItem::HeuristicMaskShape}; +public slots: +QGraphicsPixmapItem* new_QGraphicsPixmapItem(QGraphicsItem* parent = 0); +QGraphicsPixmapItem* new_QGraphicsPixmapItem(const QPixmap& pixmap, QGraphicsItem* parent = 0); +void delete_QGraphicsPixmapItem(QGraphicsPixmapItem* obj) { delete obj; } + QRectF boundingRect(QGraphicsPixmapItem* theWrappedObject) const; + bool contains(QGraphicsPixmapItem* theWrappedObject, const QPointF& point) const; + QVariant extension(QGraphicsPixmapItem* theWrappedObject, const QVariant& variant) const; + bool isObscuredBy(QGraphicsPixmapItem* theWrappedObject, const QGraphicsItem* item) const; + QPointF offset(QGraphicsPixmapItem* theWrappedObject) const; + QPainterPath opaqueArea(QGraphicsPixmapItem* theWrappedObject) const; + void paint(QGraphicsPixmapItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); + QPixmap pixmap(QGraphicsPixmapItem* theWrappedObject) const; + void setOffset(QGraphicsPixmapItem* theWrappedObject, const QPointF& offset); + void setOffset(QGraphicsPixmapItem* theWrappedObject, qreal x, qreal y); + void setPixmap(QGraphicsPixmapItem* theWrappedObject, const QPixmap& pixmap); + void setShapeMode(QGraphicsPixmapItem* theWrappedObject, QGraphicsPixmapItem::ShapeMode mode); + void setTransformationMode(QGraphicsPixmapItem* theWrappedObject, Qt::TransformationMode mode); + QPainterPath shape(QGraphicsPixmapItem* theWrappedObject) const; + QGraphicsPixmapItem::ShapeMode shapeMode(QGraphicsPixmapItem* theWrappedObject) const; + Qt::TransformationMode transformationMode(QGraphicsPixmapItem* theWrappedObject) const; + int type(QGraphicsPixmapItem* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGraphicsPolygonItem : public QGraphicsPolygonItem +{ +public: + PythonQtShell_QGraphicsPolygonItem(QGraphicsItem* parent = 0):QGraphicsPolygonItem(parent),_wrapper(NULL) {}; + PythonQtShell_QGraphicsPolygonItem(const QPolygonF& polygon, QGraphicsItem* parent = 0):QGraphicsPolygonItem(polygon, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsPolygonItem(); + +virtual bool isObscuredBy(const QGraphicsItem* item) const; +virtual QPainterPath opaqueArea() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsPolygonItem : public QGraphicsPolygonItem +{ public: +inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsPolygonItem::isObscuredBy(item); } +inline QPainterPath promoted_opaqueArea() const { return QGraphicsPolygonItem::opaqueArea(); } +}; + +class PythonQtWrapper_QGraphicsPolygonItem : public QObject +{ Q_OBJECT +public: +Q_ENUMS(enum_1 ) +enum enum_1{ + Type = QGraphicsPolygonItem::Type}; +public slots: +QGraphicsPolygonItem* new_QGraphicsPolygonItem(QGraphicsItem* parent = 0); +QGraphicsPolygonItem* new_QGraphicsPolygonItem(const QPolygonF& polygon, QGraphicsItem* parent = 0); +void delete_QGraphicsPolygonItem(QGraphicsPolygonItem* obj) { delete obj; } + QRectF boundingRect(QGraphicsPolygonItem* theWrappedObject) const; + bool contains(QGraphicsPolygonItem* theWrappedObject, const QPointF& point) const; + Qt::FillRule fillRule(QGraphicsPolygonItem* theWrappedObject) const; + bool isObscuredBy(QGraphicsPolygonItem* theWrappedObject, const QGraphicsItem* item) const; + QPainterPath opaqueArea(QGraphicsPolygonItem* theWrappedObject) const; + void paint(QGraphicsPolygonItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); + QPolygonF polygon(QGraphicsPolygonItem* theWrappedObject) const; + void setFillRule(QGraphicsPolygonItem* theWrappedObject, Qt::FillRule rule); + void setPolygon(QGraphicsPolygonItem* theWrappedObject, const QPolygonF& polygon); + QPainterPath shape(QGraphicsPolygonItem* theWrappedObject) const; + int type(QGraphicsPolygonItem* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGraphicsProxyWidget : public QGraphicsProxyWidget +{ +public: + PythonQtShell_QGraphicsProxyWidget(QGraphicsItem* parent = 0, Qt::WindowFlags wFlags = 0):QGraphicsProxyWidget(parent, wFlags),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsProxyWidget(); + +virtual void changeEvent(QEvent* event); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* event); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* object, QEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; +virtual void grabKeyboardEvent(QEvent* event); +virtual void grabMouseEvent(QEvent* event); +virtual void hideEvent(QHideEvent* event); +virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); +virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); +virtual void initStyleOption(QStyleOption* option) const; +virtual void moveEvent(QGraphicsSceneMoveEvent* event); +virtual void paintWindowFrame(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); +virtual void polishEvent(); +virtual QVariant propertyChange(const QString& propertyName, const QVariant& value); +virtual void resizeEvent(QGraphicsSceneResizeEvent* event); +virtual void setGeometry(const QRectF& rect); +virtual void showEvent(QShowEvent* event); +virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual void ungrabKeyboardEvent(QEvent* event); +virtual void ungrabMouseEvent(QEvent* event); +virtual void updateGeometry(); +virtual bool windowFrameEvent(QEvent* e); +virtual Qt::WindowFrameSection windowFrameSectionAt(const QPointF& pos) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsProxyWidget : public QGraphicsProxyWidget +{ public: +inline bool promoted_event(QEvent* event) { return QGraphicsProxyWidget::event(event); } +inline bool promoted_eventFilter(QObject* object, QEvent* event) { return QGraphicsProxyWidget::eventFilter(object, event); } +inline bool promoted_focusNextPrevChild(bool next) { return QGraphicsProxyWidget::focusNextPrevChild(next); } +inline void promoted_grabMouseEvent(QEvent* event) { QGraphicsProxyWidget::grabMouseEvent(event); } +inline void promoted_hideEvent(QHideEvent* event) { QGraphicsProxyWidget::hideEvent(event); } +inline void promoted_hoverLeaveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsProxyWidget::hoverLeaveEvent(event); } +inline void promoted_hoverMoveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsProxyWidget::hoverMoveEvent(event); } +inline void promoted_resizeEvent(QGraphicsSceneResizeEvent* event) { QGraphicsProxyWidget::resizeEvent(event); } +inline void promoted_setGeometry(const QRectF& rect) { QGraphicsProxyWidget::setGeometry(rect); } +inline void promoted_showEvent(QShowEvent* event) { QGraphicsProxyWidget::showEvent(event); } +inline QSizeF promoted_sizeHint(Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const { return QGraphicsProxyWidget::sizeHint(which, constraint); } +inline void promoted_ungrabMouseEvent(QEvent* event) { QGraphicsProxyWidget::ungrabMouseEvent(event); } +}; + +class PythonQtWrapper_QGraphicsProxyWidget : public QObject +{ Q_OBJECT +public: +Q_ENUMS(enum_1 ) +enum enum_1{ + Type = QGraphicsProxyWidget::Type}; +public slots: +QGraphicsProxyWidget* new_QGraphicsProxyWidget(QGraphicsItem* parent = 0, Qt::WindowFlags wFlags = 0); +void delete_QGraphicsProxyWidget(QGraphicsProxyWidget* obj) { delete obj; } + QGraphicsProxyWidget* createProxyForChildWidget(QGraphicsProxyWidget* theWrappedObject, QWidget* child); + bool event(QGraphicsProxyWidget* theWrappedObject, QEvent* event); + bool eventFilter(QGraphicsProxyWidget* theWrappedObject, QObject* object, QEvent* event); + bool focusNextPrevChild(QGraphicsProxyWidget* theWrappedObject, bool next); + void grabMouseEvent(QGraphicsProxyWidget* theWrappedObject, QEvent* event); + void hideEvent(QGraphicsProxyWidget* theWrappedObject, QHideEvent* event); + void hoverLeaveEvent(QGraphicsProxyWidget* theWrappedObject, QGraphicsSceneHoverEvent* event); + void hoverMoveEvent(QGraphicsProxyWidget* theWrappedObject, QGraphicsSceneHoverEvent* event); + void paint(QGraphicsProxyWidget* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); + void resizeEvent(QGraphicsProxyWidget* theWrappedObject, QGraphicsSceneResizeEvent* event); + void setGeometry(QGraphicsProxyWidget* theWrappedObject, const QRectF& rect); + void setWidget(QGraphicsProxyWidget* theWrappedObject, QWidget* widget); + void showEvent(QGraphicsProxyWidget* theWrappedObject, QShowEvent* event); + QSizeF sizeHint(QGraphicsProxyWidget* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; + QRectF subWidgetRect(QGraphicsProxyWidget* theWrappedObject, const QWidget* widget) const; + int type(QGraphicsProxyWidget* theWrappedObject) const; + void ungrabMouseEvent(QGraphicsProxyWidget* theWrappedObject, QEvent* event); + QWidget* widget(QGraphicsProxyWidget* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGraphicsRectItem : public QGraphicsRectItem +{ +public: + PythonQtShell_QGraphicsRectItem(QGraphicsItem* parent = 0):QGraphicsRectItem(parent),_wrapper(NULL) {}; + PythonQtShell_QGraphicsRectItem(const QRectF& rect, QGraphicsItem* parent = 0):QGraphicsRectItem(rect, parent),_wrapper(NULL) {}; + PythonQtShell_QGraphicsRectItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent = 0):QGraphicsRectItem(x, y, w, h, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsRectItem(); + +virtual bool isObscuredBy(const QGraphicsItem* item) const; +virtual QPainterPath opaqueArea() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsRectItem : public QGraphicsRectItem +{ public: +inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsRectItem::isObscuredBy(item); } +inline QPainterPath promoted_opaqueArea() const { return QGraphicsRectItem::opaqueArea(); } +}; + +class PythonQtWrapper_QGraphicsRectItem : public QObject +{ Q_OBJECT +public: +Q_ENUMS(enum_1 ) +enum enum_1{ + Type = QGraphicsRectItem::Type}; +public slots: +QGraphicsRectItem* new_QGraphicsRectItem(QGraphicsItem* parent = 0); +QGraphicsRectItem* new_QGraphicsRectItem(const QRectF& rect, QGraphicsItem* parent = 0); +QGraphicsRectItem* new_QGraphicsRectItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent = 0); +void delete_QGraphicsRectItem(QGraphicsRectItem* obj) { delete obj; } + QRectF boundingRect(QGraphicsRectItem* theWrappedObject) const; + bool contains(QGraphicsRectItem* theWrappedObject, const QPointF& point) const; + bool isObscuredBy(QGraphicsRectItem* theWrappedObject, const QGraphicsItem* item) const; + QPainterPath opaqueArea(QGraphicsRectItem* theWrappedObject) const; + void paint(QGraphicsRectItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); + QRectF rect(QGraphicsRectItem* theWrappedObject) const; + void setRect(QGraphicsRectItem* theWrappedObject, const QRectF& rect); + void setRect(QGraphicsRectItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h); + QPainterPath shape(QGraphicsRectItem* theWrappedObject) const; + int type(QGraphicsRectItem* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGraphicsRotation : public QGraphicsRotation +{ +public: + PythonQtShell_QGraphicsRotation(QObject* parent = 0):QGraphicsRotation(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsRotation(); + +virtual void applyTo(QMatrix4x4* matrix) const; +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsRotation : public QGraphicsRotation +{ public: +inline void promoted_applyTo(QMatrix4x4* matrix) const { QGraphicsRotation::applyTo(matrix); } +}; + +class PythonQtWrapper_QGraphicsRotation : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsRotation* new_QGraphicsRotation(QObject* parent = 0); +void delete_QGraphicsRotation(QGraphicsRotation* obj) { delete obj; } + qreal angle(QGraphicsRotation* theWrappedObject) const; + void applyTo(QGraphicsRotation* theWrappedObject, QMatrix4x4* matrix) const; + QVector3D axis(QGraphicsRotation* theWrappedObject) const; + QVector3D origin(QGraphicsRotation* theWrappedObject) const; + void setAngle(QGraphicsRotation* theWrappedObject, qreal arg__1); + void setAxis(QGraphicsRotation* theWrappedObject, Qt::Axis axis); + void setAxis(QGraphicsRotation* theWrappedObject, const QVector3D& axis); + void setOrigin(QGraphicsRotation* theWrappedObject, const QVector3D& point); +}; + + + + + +class PythonQtShell_QGraphicsScale : public QGraphicsScale +{ +public: + PythonQtShell_QGraphicsScale(QObject* parent = 0):QGraphicsScale(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsScale(); + +virtual void applyTo(QMatrix4x4* matrix) const; +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsScale : public QGraphicsScale +{ public: +inline void promoted_applyTo(QMatrix4x4* matrix) const { QGraphicsScale::applyTo(matrix); } +}; + +class PythonQtWrapper_QGraphicsScale : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsScale* new_QGraphicsScale(QObject* parent = 0); +void delete_QGraphicsScale(QGraphicsScale* obj) { delete obj; } + void applyTo(QGraphicsScale* theWrappedObject, QMatrix4x4* matrix) const; + QVector3D origin(QGraphicsScale* theWrappedObject) const; + void setOrigin(QGraphicsScale* theWrappedObject, const QVector3D& point); + void setXScale(QGraphicsScale* theWrappedObject, qreal arg__1); + void setYScale(QGraphicsScale* theWrappedObject, qreal arg__1); + void setZScale(QGraphicsScale* theWrappedObject, qreal arg__1); + qreal xScale(QGraphicsScale* theWrappedObject) const; + qreal yScale(QGraphicsScale* theWrappedObject) const; + qreal zScale(QGraphicsScale* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGraphicsScene : public QGraphicsScene +{ +public: + PythonQtShell_QGraphicsScene(QObject* parent = 0):QGraphicsScene(parent),_wrapper(NULL) {}; + PythonQtShell_QGraphicsScene(const QRectF& sceneRect, QObject* parent = 0):QGraphicsScene(sceneRect, parent),_wrapper(NULL) {}; + PythonQtShell_QGraphicsScene(qreal x, qreal y, qreal width, qreal height, QObject* parent = 0):QGraphicsScene(x, y, width, height, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsScene(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); +virtual void customEvent(QEvent* arg__1); +virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event); +virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event); +virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event); +virtual void drawBackground(QPainter* painter, const QRectF& rect); +virtual void drawForeground(QPainter* painter, const QRectF& rect); +virtual void drawItems(QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options, QWidget* widget = 0); +virtual void dropEvent(QGraphicsSceneDragDropEvent* event); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* watched, QEvent* event); +virtual void focusInEvent(QFocusEvent* event); +virtual void focusOutEvent(QFocusEvent* event); +virtual void helpEvent(QGraphicsSceneHelpEvent* event); +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* event); +virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event); +virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event); +virtual void mousePressEvent(QGraphicsSceneMouseEvent* event); +virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QGraphicsSceneWheelEvent* event); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsScene : public QGraphicsScene +{ public: +inline void promoted_contextMenuEvent(QGraphicsSceneContextMenuEvent* event) { QGraphicsScene::contextMenuEvent(event); } +inline void promoted_dragEnterEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsScene::dragEnterEvent(event); } +inline void promoted_dragLeaveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsScene::dragLeaveEvent(event); } +inline void promoted_dragMoveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsScene::dragMoveEvent(event); } +inline void promoted_drawBackground(QPainter* painter, const QRectF& rect) { QGraphicsScene::drawBackground(painter, rect); } +inline void promoted_drawForeground(QPainter* painter, const QRectF& rect) { QGraphicsScene::drawForeground(painter, rect); } +inline void promoted_drawItems(QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options, QWidget* widget = 0) { QGraphicsScene::drawItems(painter, numItems, items, options, widget); } +inline void promoted_dropEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsScene::dropEvent(event); } +inline bool promoted_event(QEvent* event) { return QGraphicsScene::event(event); } +inline bool promoted_eventFilter(QObject* watched, QEvent* event) { return QGraphicsScene::eventFilter(watched, event); } +inline void promoted_focusInEvent(QFocusEvent* event) { QGraphicsScene::focusInEvent(event); } +inline void promoted_focusOutEvent(QFocusEvent* event) { QGraphicsScene::focusOutEvent(event); } +inline void promoted_helpEvent(QGraphicsSceneHelpEvent* event) { QGraphicsScene::helpEvent(event); } +inline void promoted_inputMethodEvent(QInputMethodEvent* event) { QGraphicsScene::inputMethodEvent(event); } +inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery query) const { return QGraphicsScene::inputMethodQuery(query); } +inline void promoted_keyPressEvent(QKeyEvent* event) { QGraphicsScene::keyPressEvent(event); } +inline void promoted_keyReleaseEvent(QKeyEvent* event) { QGraphicsScene::keyReleaseEvent(event); } +inline void promoted_mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) { QGraphicsScene::mouseDoubleClickEvent(event); } +inline void promoted_mouseMoveEvent(QGraphicsSceneMouseEvent* event) { QGraphicsScene::mouseMoveEvent(event); } +inline void promoted_mousePressEvent(QGraphicsSceneMouseEvent* event) { QGraphicsScene::mousePressEvent(event); } +inline void promoted_mouseReleaseEvent(QGraphicsSceneMouseEvent* event) { QGraphicsScene::mouseReleaseEvent(event); } +inline void promoted_wheelEvent(QGraphicsSceneWheelEvent* event) { QGraphicsScene::wheelEvent(event); } +}; + +class PythonQtWrapper_QGraphicsScene : public QObject +{ Q_OBJECT +public: +Q_ENUMS(SceneLayer ItemIndexMethod ) +Q_FLAGS(SceneLayers ) +enum SceneLayer{ + ItemLayer = QGraphicsScene::ItemLayer, BackgroundLayer = QGraphicsScene::BackgroundLayer, ForegroundLayer = QGraphicsScene::ForegroundLayer, AllLayers = QGraphicsScene::AllLayers}; +enum ItemIndexMethod{ + BspTreeIndex = QGraphicsScene::BspTreeIndex, NoIndex = QGraphicsScene::NoIndex}; +Q_DECLARE_FLAGS(SceneLayers, SceneLayer) +public slots: +QGraphicsScene* new_QGraphicsScene(QObject* parent = 0); +QGraphicsScene* new_QGraphicsScene(const QRectF& sceneRect, QObject* parent = 0); +QGraphicsScene* new_QGraphicsScene(qreal x, qreal y, qreal width, qreal height, QObject* parent = 0); +void delete_QGraphicsScene(QGraphicsScene* obj) { delete obj; } + QGraphicsItem* activePanel(QGraphicsScene* theWrappedObject) const; + QGraphicsWidget* activeWindow(QGraphicsScene* theWrappedObject) const; + QGraphicsEllipseItem* addEllipse(QGraphicsScene* theWrappedObject, const QRectF& rect, const QPen& pen = QPen(), const QBrush& brush = QBrush()); + QGraphicsEllipseItem* addEllipse(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, const QPen& pen = QPen(), const QBrush& brush = QBrush()); + void addItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item); + QGraphicsLineItem* addLine(QGraphicsScene* theWrappedObject, const QLineF& line, const QPen& pen = QPen()); + QGraphicsLineItem* addLine(QGraphicsScene* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2, const QPen& pen = QPen()); + QGraphicsPathItem* addPath(QGraphicsScene* theWrappedObject, const QPainterPath& path, const QPen& pen = QPen(), const QBrush& brush = QBrush()); + QGraphicsPixmapItem* addPixmap(QGraphicsScene* theWrappedObject, const QPixmap& pixmap); + QGraphicsPolygonItem* addPolygon(QGraphicsScene* theWrappedObject, const QPolygonF& polygon, const QPen& pen = QPen(), const QBrush& brush = QBrush()); + QGraphicsRectItem* addRect(QGraphicsScene* theWrappedObject, const QRectF& rect, const QPen& pen = QPen(), const QBrush& brush = QBrush()); + QGraphicsRectItem* addRect(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, const QPen& pen = QPen(), const QBrush& brush = QBrush()); + QGraphicsSimpleTextItem* addSimpleText(QGraphicsScene* theWrappedObject, const QString& text, const QFont& font = QFont()); + QGraphicsTextItem* addText(QGraphicsScene* theWrappedObject, const QString& text, const QFont& font = QFont()); + QGraphicsProxyWidget* addWidget(QGraphicsScene* theWrappedObject, QWidget* widget, Qt::WindowFlags wFlags = 0); + QBrush backgroundBrush(QGraphicsScene* theWrappedObject) const; + int bspTreeDepth(QGraphicsScene* theWrappedObject) const; + void clearFocus(QGraphicsScene* theWrappedObject); + QList collidingItems(QGraphicsScene* theWrappedObject, const QGraphicsItem* item, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; + void contextMenuEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneContextMenuEvent* event); + QGraphicsItemGroup* createItemGroup(QGraphicsScene* theWrappedObject, const QList& items); + void destroyItemGroup(QGraphicsScene* theWrappedObject, QGraphicsItemGroup* group); + void dragEnterEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneDragDropEvent* event); + void dragLeaveEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneDragDropEvent* event); + void dragMoveEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneDragDropEvent* event); + void drawBackground(QGraphicsScene* theWrappedObject, QPainter* painter, const QRectF& rect); + void drawForeground(QGraphicsScene* theWrappedObject, QPainter* painter, const QRectF& rect); + void drawItems(QGraphicsScene* theWrappedObject, QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options, QWidget* widget = 0); + void dropEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneDragDropEvent* event); + bool event(QGraphicsScene* theWrappedObject, QEvent* event); + bool eventFilter(QGraphicsScene* theWrappedObject, QObject* watched, QEvent* event); + void focusInEvent(QGraphicsScene* theWrappedObject, QFocusEvent* event); + QGraphicsItem* focusItem(QGraphicsScene* theWrappedObject) const; + void focusOutEvent(QGraphicsScene* theWrappedObject, QFocusEvent* event); + QFont font(QGraphicsScene* theWrappedObject) const; + QBrush foregroundBrush(QGraphicsScene* theWrappedObject) const; + bool hasFocus(QGraphicsScene* theWrappedObject) const; + qreal height(QGraphicsScene* theWrappedObject) const; + void helpEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneHelpEvent* event); + void inputMethodEvent(QGraphicsScene* theWrappedObject, QInputMethodEvent* event); + QVariant inputMethodQuery(QGraphicsScene* theWrappedObject, Qt::InputMethodQuery query) const; + void invalidate(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, QGraphicsScene::SceneLayers layers = QGraphicsScene::AllLayers); + bool isActive(QGraphicsScene* theWrappedObject) const; + bool isSortCacheEnabled(QGraphicsScene* theWrappedObject) const; + QGraphicsItem* itemAt(QGraphicsScene* theWrappedObject, const QPointF& pos, const QTransform& deviceTransform) const; + QGraphicsItem* itemAt(QGraphicsScene* theWrappedObject, qreal x, qreal y, const QTransform& deviceTransform) const; + QGraphicsScene::ItemIndexMethod itemIndexMethod(QGraphicsScene* theWrappedObject) const; + QList items(QGraphicsScene* theWrappedObject, Qt::SortOrder order = Qt::DescendingOrder) const; + QList items(QGraphicsScene* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape, Qt::SortOrder order = Qt::DescendingOrder, const QTransform& deviceTransform = QTransform()) const; + QList items(QGraphicsScene* theWrappedObject, const QPointF& pos, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape, Qt::SortOrder order = Qt::DescendingOrder, const QTransform& deviceTransform = QTransform()) const; + QList items(QGraphicsScene* theWrappedObject, const QPolygonF& polygon, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape, Qt::SortOrder order = Qt::DescendingOrder, const QTransform& deviceTransform = QTransform()) const; + QList items(QGraphicsScene* theWrappedObject, const QRectF& rect, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape, Qt::SortOrder order = Qt::DescendingOrder, const QTransform& deviceTransform = QTransform()) const; + QList items(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform& deviceTransform = QTransform()) const; + QRectF itemsBoundingRect(QGraphicsScene* theWrappedObject) const; + void keyPressEvent(QGraphicsScene* theWrappedObject, QKeyEvent* event); + void keyReleaseEvent(QGraphicsScene* theWrappedObject, QKeyEvent* event); + void mouseDoubleClickEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneMouseEvent* event); + QGraphicsItem* mouseGrabberItem(QGraphicsScene* theWrappedObject) const; + void mouseMoveEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneMouseEvent* event); + void mousePressEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneMouseEvent* event); + void mouseReleaseEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneMouseEvent* event); + QPalette palette(QGraphicsScene* theWrappedObject) const; + void removeItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item); + void render(QGraphicsScene* theWrappedObject, QPainter* painter, const QRectF& target = QRectF(), const QRectF& source = QRectF(), Qt::AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio); + QRectF sceneRect(QGraphicsScene* theWrappedObject) const; + QList selectedItems(QGraphicsScene* theWrappedObject) const; + QPainterPath selectionArea(QGraphicsScene* theWrappedObject) const; + bool sendEvent(QGraphicsScene* theWrappedObject, QGraphicsItem* item, QEvent* event); + void setActivePanel(QGraphicsScene* theWrappedObject, QGraphicsItem* item); + void setActiveWindow(QGraphicsScene* theWrappedObject, QGraphicsWidget* widget); + void setBackgroundBrush(QGraphicsScene* theWrappedObject, const QBrush& brush); + void setBspTreeDepth(QGraphicsScene* theWrappedObject, int depth); + void setFocus(QGraphicsScene* theWrappedObject, Qt::FocusReason focusReason = Qt::OtherFocusReason); + void setFocusItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item, Qt::FocusReason focusReason = Qt::OtherFocusReason); + void setFont(QGraphicsScene* theWrappedObject, const QFont& font); + void setForegroundBrush(QGraphicsScene* theWrappedObject, const QBrush& brush); + void setItemIndexMethod(QGraphicsScene* theWrappedObject, QGraphicsScene::ItemIndexMethod method); + void setPalette(QGraphicsScene* theWrappedObject, const QPalette& palette); + void setSceneRect(QGraphicsScene* theWrappedObject, const QRectF& rect); + void setSceneRect(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h); + void setSelectionArea(QGraphicsScene* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape, const QTransform& deviceTransform = QTransform()); + void setSelectionArea(QGraphicsScene* theWrappedObject, const QPainterPath& path, const QTransform& deviceTransform); + void setSortCacheEnabled(QGraphicsScene* theWrappedObject, bool enabled); + void setStickyFocus(QGraphicsScene* theWrappedObject, bool enabled); + void setStyle(QGraphicsScene* theWrappedObject, QStyle* style); + bool stickyFocus(QGraphicsScene* theWrappedObject) const; + QStyle* style(QGraphicsScene* theWrappedObject) const; + void update(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h); + QList views(QGraphicsScene* theWrappedObject) const; + void wheelEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneWheelEvent* event); + qreal width(QGraphicsScene* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QGraphicsSceneContextMenuEvent : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Reason ) +enum Reason{ + Mouse = QGraphicsSceneContextMenuEvent::Mouse, Keyboard = QGraphicsSceneContextMenuEvent::Keyboard, Other = QGraphicsSceneContextMenuEvent::Other}; +public slots: +QGraphicsSceneContextMenuEvent* new_QGraphicsSceneContextMenuEvent(QEvent::Type type = QEvent::None); +void delete_QGraphicsSceneContextMenuEvent(QGraphicsSceneContextMenuEvent* obj) { delete obj; } + Qt::KeyboardModifiers modifiers(QGraphicsSceneContextMenuEvent* theWrappedObject) const; + QPointF pos(QGraphicsSceneContextMenuEvent* theWrappedObject) const; + QGraphicsSceneContextMenuEvent::Reason reason(QGraphicsSceneContextMenuEvent* theWrappedObject) const; + QPointF scenePos(QGraphicsSceneContextMenuEvent* theWrappedObject) const; + QPoint screenPos(QGraphicsSceneContextMenuEvent* theWrappedObject) const; + void setModifiers(QGraphicsSceneContextMenuEvent* theWrappedObject, Qt::KeyboardModifiers modifiers); + void setPos(QGraphicsSceneContextMenuEvent* theWrappedObject, const QPointF& pos); + void setReason(QGraphicsSceneContextMenuEvent* theWrappedObject, QGraphicsSceneContextMenuEvent::Reason reason); + void setScenePos(QGraphicsSceneContextMenuEvent* theWrappedObject, const QPointF& pos); + void setScreenPos(QGraphicsSceneContextMenuEvent* theWrappedObject, const QPoint& pos); +}; + + + + + +class PythonQtWrapper_QGraphicsSceneDragDropEvent : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsSceneDragDropEvent* new_QGraphicsSceneDragDropEvent(QEvent::Type type = QEvent::None); +void delete_QGraphicsSceneDragDropEvent(QGraphicsSceneDragDropEvent* obj) { delete obj; } + void acceptProposedAction(QGraphicsSceneDragDropEvent* theWrappedObject); + Qt::MouseButtons buttons(QGraphicsSceneDragDropEvent* theWrappedObject) const; + Qt::DropAction dropAction(QGraphicsSceneDragDropEvent* theWrappedObject) const; + const QMimeData* mimeData(QGraphicsSceneDragDropEvent* theWrappedObject) const; + Qt::KeyboardModifiers modifiers(QGraphicsSceneDragDropEvent* theWrappedObject) const; + QPointF pos(QGraphicsSceneDragDropEvent* theWrappedObject) const; + Qt::DropActions possibleActions(QGraphicsSceneDragDropEvent* theWrappedObject) const; + Qt::DropAction proposedAction(QGraphicsSceneDragDropEvent* theWrappedObject) const; + QPointF scenePos(QGraphicsSceneDragDropEvent* theWrappedObject) const; + QPoint screenPos(QGraphicsSceneDragDropEvent* theWrappedObject) const; + void setButtons(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::MouseButtons buttons); + void setDropAction(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::DropAction action); + void setModifiers(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::KeyboardModifiers modifiers); + void setPos(QGraphicsSceneDragDropEvent* theWrappedObject, const QPointF& pos); + void setPossibleActions(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::DropActions actions); + void setProposedAction(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::DropAction action); + void setScenePos(QGraphicsSceneDragDropEvent* theWrappedObject, const QPointF& pos); + void setScreenPos(QGraphicsSceneDragDropEvent* theWrappedObject, const QPoint& pos); + QWidget* source(QGraphicsSceneDragDropEvent* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QGraphicsSceneEvent : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsSceneEvent* new_QGraphicsSceneEvent(QEvent::Type type); +void delete_QGraphicsSceneEvent(QGraphicsSceneEvent* obj) { delete obj; } + QWidget* widget(QGraphicsSceneEvent* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QGraphicsSceneHelpEvent : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsSceneHelpEvent* new_QGraphicsSceneHelpEvent(QEvent::Type type = QEvent::None); +void delete_QGraphicsSceneHelpEvent(QGraphicsSceneHelpEvent* obj) { delete obj; } + QPointF scenePos(QGraphicsSceneHelpEvent* theWrappedObject) const; + QPoint screenPos(QGraphicsSceneHelpEvent* theWrappedObject) const; + void setScenePos(QGraphicsSceneHelpEvent* theWrappedObject, const QPointF& pos); + void setScreenPos(QGraphicsSceneHelpEvent* theWrappedObject, const QPoint& pos); +}; + + + + + +class PythonQtWrapper_QGraphicsSceneHoverEvent : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsSceneHoverEvent* new_QGraphicsSceneHoverEvent(QEvent::Type type = QEvent::None); +void delete_QGraphicsSceneHoverEvent(QGraphicsSceneHoverEvent* obj) { delete obj; } + QPointF lastPos(QGraphicsSceneHoverEvent* theWrappedObject) const; + QPointF lastScenePos(QGraphicsSceneHoverEvent* theWrappedObject) const; + QPoint lastScreenPos(QGraphicsSceneHoverEvent* theWrappedObject) const; + Qt::KeyboardModifiers modifiers(QGraphicsSceneHoverEvent* theWrappedObject) const; + QPointF pos(QGraphicsSceneHoverEvent* theWrappedObject) const; + QPointF scenePos(QGraphicsSceneHoverEvent* theWrappedObject) const; + QPoint screenPos(QGraphicsSceneHoverEvent* theWrappedObject) const; + void setLastPos(QGraphicsSceneHoverEvent* theWrappedObject, const QPointF& pos); + void setLastScenePos(QGraphicsSceneHoverEvent* theWrappedObject, const QPointF& pos); + void setLastScreenPos(QGraphicsSceneHoverEvent* theWrappedObject, const QPoint& pos); + void setModifiers(QGraphicsSceneHoverEvent* theWrappedObject, Qt::KeyboardModifiers modifiers); + void setPos(QGraphicsSceneHoverEvent* theWrappedObject, const QPointF& pos); + void setScenePos(QGraphicsSceneHoverEvent* theWrappedObject, const QPointF& pos); + void setScreenPos(QGraphicsSceneHoverEvent* theWrappedObject, const QPoint& pos); +}; + + + + + +class PythonQtWrapper_QGraphicsSceneMouseEvent : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsSceneMouseEvent* new_QGraphicsSceneMouseEvent(QEvent::Type type = QEvent::None); +void delete_QGraphicsSceneMouseEvent(QGraphicsSceneMouseEvent* obj) { delete obj; } + Qt::MouseButton button(QGraphicsSceneMouseEvent* theWrappedObject) const; + QPointF buttonDownPos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button) const; + QPointF buttonDownScenePos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button) const; + QPoint buttonDownScreenPos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button) const; + Qt::MouseButtons buttons(QGraphicsSceneMouseEvent* theWrappedObject) const; + QPointF lastPos(QGraphicsSceneMouseEvent* theWrappedObject) const; + QPointF lastScenePos(QGraphicsSceneMouseEvent* theWrappedObject) const; + QPoint lastScreenPos(QGraphicsSceneMouseEvent* theWrappedObject) const; + Qt::KeyboardModifiers modifiers(QGraphicsSceneMouseEvent* theWrappedObject) const; + QPointF pos(QGraphicsSceneMouseEvent* theWrappedObject) const; + QPointF scenePos(QGraphicsSceneMouseEvent* theWrappedObject) const; + QPoint screenPos(QGraphicsSceneMouseEvent* theWrappedObject) const; + void setButton(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button); + void setButtonDownPos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button, const QPointF& pos); + void setButtonDownScenePos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button, const QPointF& pos); + void setButtonDownScreenPos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button, const QPoint& pos); + void setButtons(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButtons buttons); + void setLastPos(QGraphicsSceneMouseEvent* theWrappedObject, const QPointF& pos); + void setLastScenePos(QGraphicsSceneMouseEvent* theWrappedObject, const QPointF& pos); + void setLastScreenPos(QGraphicsSceneMouseEvent* theWrappedObject, const QPoint& pos); + void setModifiers(QGraphicsSceneMouseEvent* theWrappedObject, Qt::KeyboardModifiers modifiers); + void setPos(QGraphicsSceneMouseEvent* theWrappedObject, const QPointF& pos); + void setScenePos(QGraphicsSceneMouseEvent* theWrappedObject, const QPointF& pos); + void setScreenPos(QGraphicsSceneMouseEvent* theWrappedObject, const QPoint& pos); +}; + + + + + +class PythonQtWrapper_QGraphicsSceneMoveEvent : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsSceneMoveEvent* new_QGraphicsSceneMoveEvent(); +void delete_QGraphicsSceneMoveEvent(QGraphicsSceneMoveEvent* obj) { delete obj; } + QPointF newPos(QGraphicsSceneMoveEvent* theWrappedObject) const; + QPointF oldPos(QGraphicsSceneMoveEvent* theWrappedObject) const; + void setNewPos(QGraphicsSceneMoveEvent* theWrappedObject, const QPointF& pos); + void setOldPos(QGraphicsSceneMoveEvent* theWrappedObject, const QPointF& pos); +}; + + + + + +class PythonQtWrapper_QGraphicsSceneResizeEvent : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsSceneResizeEvent* new_QGraphicsSceneResizeEvent(); +void delete_QGraphicsSceneResizeEvent(QGraphicsSceneResizeEvent* obj) { delete obj; } + QSizeF newSize(QGraphicsSceneResizeEvent* theWrappedObject) const; + QSizeF oldSize(QGraphicsSceneResizeEvent* theWrappedObject) const; + void setNewSize(QGraphicsSceneResizeEvent* theWrappedObject, const QSizeF& size); + void setOldSize(QGraphicsSceneResizeEvent* theWrappedObject, const QSizeF& size); +}; + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui3.cpp b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui3.cpp new file mode 100644 index 00000000..3022174e --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui3.cpp @@ -0,0 +1,11732 @@ +#include "com_trolltech_qt_gui3.h" + +#include +#include +#include + +#if defined(QT_WIDGETS_LIB) + +QGraphicsSceneWheelEvent* PythonQtWrapper_QGraphicsSceneWheelEvent::new_QGraphicsSceneWheelEvent(QEvent::Type type) +{ +return new QGraphicsSceneWheelEvent(type); } + +Qt::MouseButtons PythonQtWrapper_QGraphicsSceneWheelEvent::buttons(QGraphicsSceneWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->buttons()); +} + +int PythonQtWrapper_QGraphicsSceneWheelEvent::delta(QGraphicsSceneWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->delta()); +} + +Qt::KeyboardModifiers PythonQtWrapper_QGraphicsSceneWheelEvent::modifiers(QGraphicsSceneWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->modifiers()); +} + +Qt::Orientation PythonQtWrapper_QGraphicsSceneWheelEvent::orientation(QGraphicsSceneWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->orientation()); +} + +QPointF PythonQtWrapper_QGraphicsSceneWheelEvent::pos(QGraphicsSceneWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->pos()); +} + +QPointF PythonQtWrapper_QGraphicsSceneWheelEvent::scenePos(QGraphicsSceneWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->scenePos()); +} + +QPoint PythonQtWrapper_QGraphicsSceneWheelEvent::screenPos(QGraphicsSceneWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->screenPos()); +} + +void PythonQtWrapper_QGraphicsSceneWheelEvent::setButtons(QGraphicsSceneWheelEvent* theWrappedObject, Qt::MouseButtons buttons) +{ + ( theWrappedObject->setButtons(buttons)); +} + +void PythonQtWrapper_QGraphicsSceneWheelEvent::setDelta(QGraphicsSceneWheelEvent* theWrappedObject, int delta) +{ + ( theWrappedObject->setDelta(delta)); +} + +void PythonQtWrapper_QGraphicsSceneWheelEvent::setModifiers(QGraphicsSceneWheelEvent* theWrappedObject, Qt::KeyboardModifiers modifiers) +{ + ( theWrappedObject->setModifiers(modifiers)); +} + +void PythonQtWrapper_QGraphicsSceneWheelEvent::setOrientation(QGraphicsSceneWheelEvent* theWrappedObject, Qt::Orientation orientation) +{ + ( theWrappedObject->setOrientation(orientation)); +} + +void PythonQtWrapper_QGraphicsSceneWheelEvent::setPos(QGraphicsSceneWheelEvent* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setPos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneWheelEvent::setScenePos(QGraphicsSceneWheelEvent* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setScenePos(pos)); +} + +void PythonQtWrapper_QGraphicsSceneWheelEvent::setScreenPos(QGraphicsSceneWheelEvent* theWrappedObject, const QPoint& pos) +{ + ( theWrappedObject->setScreenPos(pos)); +} + + + +PythonQtShell_QGraphicsSimpleTextItem::~PythonQtShell_QGraphicsSimpleTextItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QGraphicsSimpleTextItem::isObscuredBy(const QGraphicsItem* item) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&item}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsSimpleTextItem::isObscuredBy(item); +} +QPainterPath PythonQtShell_QGraphicsSimpleTextItem::opaqueArea() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainterPath"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainterPath returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); + } else { + returnValue = *((QPainterPath*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsSimpleTextItem::opaqueArea(); +} +QGraphicsSimpleTextItem* PythonQtWrapper_QGraphicsSimpleTextItem::new_QGraphicsSimpleTextItem(QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsSimpleTextItem(parent); } + +QGraphicsSimpleTextItem* PythonQtWrapper_QGraphicsSimpleTextItem::new_QGraphicsSimpleTextItem(const QString& text, QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsSimpleTextItem(text, parent); } + +QRectF PythonQtWrapper_QGraphicsSimpleTextItem::boundingRect(QGraphicsSimpleTextItem* theWrappedObject) const +{ + return ( theWrappedObject->boundingRect()); +} + +bool PythonQtWrapper_QGraphicsSimpleTextItem::contains(QGraphicsSimpleTextItem* theWrappedObject, const QPointF& point) const +{ + return ( theWrappedObject->contains(point)); +} + +QFont PythonQtWrapper_QGraphicsSimpleTextItem::font(QGraphicsSimpleTextItem* theWrappedObject) const +{ + return ( theWrappedObject->font()); +} + +bool PythonQtWrapper_QGraphicsSimpleTextItem::isObscuredBy(QGraphicsSimpleTextItem* theWrappedObject, const QGraphicsItem* item) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsSimpleTextItem*)theWrappedObject)->promoted_isObscuredBy(item)); +} + +QPainterPath PythonQtWrapper_QGraphicsSimpleTextItem::opaqueArea(QGraphicsSimpleTextItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsSimpleTextItem*)theWrappedObject)->promoted_opaqueArea()); +} + +void PythonQtWrapper_QGraphicsSimpleTextItem::paint(QGraphicsSimpleTextItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ + ( theWrappedObject->paint(painter, option, widget)); +} + +void PythonQtWrapper_QGraphicsSimpleTextItem::setFont(QGraphicsSimpleTextItem* theWrappedObject, const QFont& font) +{ + ( theWrappedObject->setFont(font)); +} + +void PythonQtWrapper_QGraphicsSimpleTextItem::setText(QGraphicsSimpleTextItem* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setText(text)); +} + +QPainterPath PythonQtWrapper_QGraphicsSimpleTextItem::shape(QGraphicsSimpleTextItem* theWrappedObject) const +{ + return ( theWrappedObject->shape()); +} + +QString PythonQtWrapper_QGraphicsSimpleTextItem::text(QGraphicsSimpleTextItem* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + +int PythonQtWrapper_QGraphicsSimpleTextItem::type(QGraphicsSimpleTextItem* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + + + +PythonQtShell_QGraphicsTextItem::~PythonQtShell_QGraphicsTextItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGraphicsTextItem::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsTextItem::childEvent(arg__1); +} +void PythonQtShell_QGraphicsTextItem::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsTextItem::customEvent(arg__1); +} +bool PythonQtShell_QGraphicsTextItem::event(QEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsTextItem::event(ev); +} +bool PythonQtShell_QGraphicsTextItem::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsTextItem::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QGraphicsTextItem::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsTextItem::timerEvent(arg__1); +} +QGraphicsTextItem* PythonQtWrapper_QGraphicsTextItem::new_QGraphicsTextItem(QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsTextItem(parent); } + +QGraphicsTextItem* PythonQtWrapper_QGraphicsTextItem::new_QGraphicsTextItem(const QString& text, QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsTextItem(text, parent); } + +void PythonQtWrapper_QGraphicsTextItem::adjustSize(QGraphicsTextItem* theWrappedObject) +{ + ( theWrappedObject->adjustSize()); +} + +QRectF PythonQtWrapper_QGraphicsTextItem::boundingRect(QGraphicsTextItem* theWrappedObject) const +{ + return ( theWrappedObject->boundingRect()); +} + +bool PythonQtWrapper_QGraphicsTextItem::contains(QGraphicsTextItem* theWrappedObject, const QPointF& point) const +{ + return ( theWrappedObject->contains(point)); +} + +QColor PythonQtWrapper_QGraphicsTextItem::defaultTextColor(QGraphicsTextItem* theWrappedObject) const +{ + return ( theWrappedObject->defaultTextColor()); +} + +QTextDocument* PythonQtWrapper_QGraphicsTextItem::document(QGraphicsTextItem* theWrappedObject) const +{ + return ( theWrappedObject->document()); +} + +QFont PythonQtWrapper_QGraphicsTextItem::font(QGraphicsTextItem* theWrappedObject) const +{ + return ( theWrappedObject->font()); +} + +bool PythonQtWrapper_QGraphicsTextItem::isObscuredBy(QGraphicsTextItem* theWrappedObject, const QGraphicsItem* item) const +{ + return ( theWrappedObject->isObscuredBy(item)); +} + +QPainterPath PythonQtWrapper_QGraphicsTextItem::opaqueArea(QGraphicsTextItem* theWrappedObject) const +{ + return ( theWrappedObject->opaqueArea()); +} + +bool PythonQtWrapper_QGraphicsTextItem::openExternalLinks(QGraphicsTextItem* theWrappedObject) const +{ + return ( theWrappedObject->openExternalLinks()); +} + +void PythonQtWrapper_QGraphicsTextItem::paint(QGraphicsTextItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ + ( theWrappedObject->paint(painter, option, widget)); +} + +void PythonQtWrapper_QGraphicsTextItem::setDefaultTextColor(QGraphicsTextItem* theWrappedObject, const QColor& c) +{ + ( theWrappedObject->setDefaultTextColor(c)); +} + +void PythonQtWrapper_QGraphicsTextItem::setDocument(QGraphicsTextItem* theWrappedObject, QTextDocument* document) +{ + ( theWrappedObject->setDocument(document)); +} + +void PythonQtWrapper_QGraphicsTextItem::setFont(QGraphicsTextItem* theWrappedObject, const QFont& font) +{ + ( theWrappedObject->setFont(font)); +} + +void PythonQtWrapper_QGraphicsTextItem::setHtml(QGraphicsTextItem* theWrappedObject, const QString& html) +{ + ( theWrappedObject->setHtml(html)); +} + +void PythonQtWrapper_QGraphicsTextItem::setOpenExternalLinks(QGraphicsTextItem* theWrappedObject, bool open) +{ + ( theWrappedObject->setOpenExternalLinks(open)); +} + +void PythonQtWrapper_QGraphicsTextItem::setPlainText(QGraphicsTextItem* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setPlainText(text)); +} + +void PythonQtWrapper_QGraphicsTextItem::setTabChangesFocus(QGraphicsTextItem* theWrappedObject, bool b) +{ + ( theWrappedObject->setTabChangesFocus(b)); +} + +void PythonQtWrapper_QGraphicsTextItem::setTextCursor(QGraphicsTextItem* theWrappedObject, const QTextCursor& cursor) +{ + ( theWrappedObject->setTextCursor(cursor)); +} + +void PythonQtWrapper_QGraphicsTextItem::setTextInteractionFlags(QGraphicsTextItem* theWrappedObject, Qt::TextInteractionFlags flags) +{ + ( theWrappedObject->setTextInteractionFlags(flags)); +} + +void PythonQtWrapper_QGraphicsTextItem::setTextWidth(QGraphicsTextItem* theWrappedObject, qreal width) +{ + ( theWrappedObject->setTextWidth(width)); +} + +QPainterPath PythonQtWrapper_QGraphicsTextItem::shape(QGraphicsTextItem* theWrappedObject) const +{ + return ( theWrappedObject->shape()); +} + +bool PythonQtWrapper_QGraphicsTextItem::tabChangesFocus(QGraphicsTextItem* theWrappedObject) const +{ + return ( theWrappedObject->tabChangesFocus()); +} + +QTextCursor PythonQtWrapper_QGraphicsTextItem::textCursor(QGraphicsTextItem* theWrappedObject) const +{ + return ( theWrappedObject->textCursor()); +} + +Qt::TextInteractionFlags PythonQtWrapper_QGraphicsTextItem::textInteractionFlags(QGraphicsTextItem* theWrappedObject) const +{ + return ( theWrappedObject->textInteractionFlags()); +} + +qreal PythonQtWrapper_QGraphicsTextItem::textWidth(QGraphicsTextItem* theWrappedObject) const +{ + return ( theWrappedObject->textWidth()); +} + +QString PythonQtWrapper_QGraphicsTextItem::toHtml(QGraphicsTextItem* theWrappedObject) const +{ + return ( theWrappedObject->toHtml()); +} + +QString PythonQtWrapper_QGraphicsTextItem::toPlainText(QGraphicsTextItem* theWrappedObject) const +{ + return ( theWrappedObject->toPlainText()); +} + +int PythonQtWrapper_QGraphicsTextItem::type(QGraphicsTextItem* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + + + +PythonQtShell_QGraphicsTransform::~PythonQtShell_QGraphicsTransform() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGraphicsTransform::applyTo(QMatrix4x4* matrix) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "applyTo"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMatrix4x4*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&matrix}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QGraphicsTransform::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsTransform::childEvent(arg__1); +} +void PythonQtShell_QGraphicsTransform::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsTransform::customEvent(arg__1); +} +bool PythonQtShell_QGraphicsTransform::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsTransform::event(arg__1); +} +bool PythonQtShell_QGraphicsTransform::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsTransform::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QGraphicsTransform::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsTransform::timerEvent(arg__1); +} +QGraphicsTransform* PythonQtWrapper_QGraphicsTransform::new_QGraphicsTransform(QObject* parent) +{ +return new PythonQtShell_QGraphicsTransform(parent); } + + + +PythonQtShell_QGraphicsView::~PythonQtShell_QGraphicsView() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGraphicsView::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::actionEvent(arg__1); +} +void PythonQtShell_QGraphicsView::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::changeEvent(arg__1); +} +void PythonQtShell_QGraphicsView::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::childEvent(arg__1); +} +void PythonQtShell_QGraphicsView::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::closeEvent(arg__1); +} +void PythonQtShell_QGraphicsView::contextMenuEvent(QContextMenuEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::contextMenuEvent(event); +} +void PythonQtShell_QGraphicsView::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::customEvent(arg__1); +} +int PythonQtShell_QGraphicsView::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsView::devType(); +} +void PythonQtShell_QGraphicsView::dragEnterEvent(QDragEnterEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::dragEnterEvent(event); +} +void PythonQtShell_QGraphicsView::dragLeaveEvent(QDragLeaveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::dragLeaveEvent(event); +} +void PythonQtShell_QGraphicsView::dragMoveEvent(QDragMoveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::dragMoveEvent(event); +} +void PythonQtShell_QGraphicsView::drawBackground(QPainter* painter, const QRectF& rect) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawBackground"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QRectF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&painter, (void*)&rect}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::drawBackground(painter, rect); +} +void PythonQtShell_QGraphicsView::drawForeground(QPainter* painter, const QRectF& rect) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawForeground"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QRectF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&painter, (void*)&rect}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::drawForeground(painter, rect); +} +void PythonQtShell_QGraphicsView::drawItems(QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItems"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "int" , "QGraphicsItem**" , "const QStyleOptionGraphicsItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&painter, (void*)&numItems, (void*)&items, (void*)&options}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::drawItems(painter, numItems, items, options); +} +void PythonQtShell_QGraphicsView::dropEvent(QDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::dropEvent(event); +} +void PythonQtShell_QGraphicsView::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::enterEvent(arg__1); +} +bool PythonQtShell_QGraphicsView::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsView::event(event); +} +bool PythonQtShell_QGraphicsView::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsView::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QGraphicsView::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::focusInEvent(event); +} +bool PythonQtShell_QGraphicsView::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsView::focusNextPrevChild(next); +} +void PythonQtShell_QGraphicsView::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::focusOutEvent(event); +} +bool PythonQtShell_QGraphicsView::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsView::hasHeightForWidth(); +} +int PythonQtShell_QGraphicsView::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsView::heightForWidth(arg__1); +} +void PythonQtShell_QGraphicsView::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::hideEvent(arg__1); +} +void PythonQtShell_QGraphicsView::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::initPainter(painter); +} +void PythonQtShell_QGraphicsView::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::inputMethodEvent(event); +} +QVariant PythonQtShell_QGraphicsView::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsView::inputMethodQuery(query); +} +void PythonQtShell_QGraphicsView::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::keyPressEvent(event); +} +void PythonQtShell_QGraphicsView::keyReleaseEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::keyReleaseEvent(event); +} +void PythonQtShell_QGraphicsView::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::leaveEvent(arg__1); +} +int PythonQtShell_QGraphicsView::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsView::metric(arg__1); +} +void PythonQtShell_QGraphicsView::mouseDoubleClickEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::mouseDoubleClickEvent(event); +} +void PythonQtShell_QGraphicsView::mouseMoveEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::mouseMoveEvent(event); +} +void PythonQtShell_QGraphicsView::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::mousePressEvent(event); +} +void PythonQtShell_QGraphicsView::mouseReleaseEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::mouseReleaseEvent(event); +} +void PythonQtShell_QGraphicsView::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::moveEvent(arg__1); +} +bool PythonQtShell_QGraphicsView::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsView::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QGraphicsView::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsView::paintEngine(); +} +void PythonQtShell_QGraphicsView::paintEvent(QPaintEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::paintEvent(event); +} +QPaintDevice* PythonQtShell_QGraphicsView::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsView::redirected(offset); +} +void PythonQtShell_QGraphicsView::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::resizeEvent(event); +} +void PythonQtShell_QGraphicsView::scrollContentsBy(int dx, int dy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&dx, (void*)&dy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::scrollContentsBy(dx, dy); +} +void PythonQtShell_QGraphicsView::setupViewport(QWidget* widget) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::setupViewport(widget); +} +QPainter* PythonQtShell_QGraphicsView::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsView::sharedPainter(); +} +void PythonQtShell_QGraphicsView::showEvent(QShowEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::showEvent(event); +} +void PythonQtShell_QGraphicsView::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::tabletEvent(arg__1); +} +void PythonQtShell_QGraphicsView::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::timerEvent(arg__1); +} +bool PythonQtShell_QGraphicsView::viewportEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsView::viewportEvent(event); +} +QSize PythonQtShell_QGraphicsView::viewportSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsView::viewportSizeHint(); +} +void PythonQtShell_QGraphicsView::wheelEvent(QWheelEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsView::wheelEvent(event); +} +QGraphicsView* PythonQtWrapper_QGraphicsView::new_QGraphicsView(QGraphicsScene* scene, QWidget* parent) +{ +return new PythonQtShell_QGraphicsView(scene, parent); } + +QGraphicsView* PythonQtWrapper_QGraphicsView::new_QGraphicsView(QWidget* parent) +{ +return new PythonQtShell_QGraphicsView(parent); } + +Qt::Alignment PythonQtWrapper_QGraphicsView::alignment(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->alignment()); +} + +QBrush PythonQtWrapper_QGraphicsView::backgroundBrush(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->backgroundBrush()); +} + +QGraphicsView::CacheMode PythonQtWrapper_QGraphicsView::cacheMode(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->cacheMode()); +} + +void PythonQtWrapper_QGraphicsView::centerOn(QGraphicsView* theWrappedObject, const QGraphicsItem* item) +{ + ( theWrappedObject->centerOn(item)); +} + +void PythonQtWrapper_QGraphicsView::centerOn(QGraphicsView* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->centerOn(pos)); +} + +void PythonQtWrapper_QGraphicsView::centerOn(QGraphicsView* theWrappedObject, qreal x, qreal y) +{ + ( theWrappedObject->centerOn(x, y)); +} + +void PythonQtWrapper_QGraphicsView::contextMenuEvent(QGraphicsView* theWrappedObject, QContextMenuEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_contextMenuEvent(event)); +} + +void PythonQtWrapper_QGraphicsView::dragEnterEvent(QGraphicsView* theWrappedObject, QDragEnterEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_dragEnterEvent(event)); +} + +void PythonQtWrapper_QGraphicsView::dragLeaveEvent(QGraphicsView* theWrappedObject, QDragLeaveEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_dragLeaveEvent(event)); +} + +QGraphicsView::DragMode PythonQtWrapper_QGraphicsView::dragMode(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->dragMode()); +} + +void PythonQtWrapper_QGraphicsView::dragMoveEvent(QGraphicsView* theWrappedObject, QDragMoveEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_dragMoveEvent(event)); +} + +void PythonQtWrapper_QGraphicsView::drawBackground(QGraphicsView* theWrappedObject, QPainter* painter, const QRectF& rect) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_drawBackground(painter, rect)); +} + +void PythonQtWrapper_QGraphicsView::drawForeground(QGraphicsView* theWrappedObject, QPainter* painter, const QRectF& rect) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_drawForeground(painter, rect)); +} + +void PythonQtWrapper_QGraphicsView::drawItems(QGraphicsView* theWrappedObject, QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_drawItems(painter, numItems, items, options)); +} + +void PythonQtWrapper_QGraphicsView::dropEvent(QGraphicsView* theWrappedObject, QDropEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_dropEvent(event)); +} + +void PythonQtWrapper_QGraphicsView::ensureVisible(QGraphicsView* theWrappedObject, const QGraphicsItem* item, int xmargin, int ymargin) +{ + ( theWrappedObject->ensureVisible(item, xmargin, ymargin)); +} + +void PythonQtWrapper_QGraphicsView::ensureVisible(QGraphicsView* theWrappedObject, const QRectF& rect, int xmargin, int ymargin) +{ + ( theWrappedObject->ensureVisible(rect, xmargin, ymargin)); +} + +void PythonQtWrapper_QGraphicsView::ensureVisible(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int xmargin, int ymargin) +{ + ( theWrappedObject->ensureVisible(x, y, w, h, xmargin, ymargin)); +} + +bool PythonQtWrapper_QGraphicsView::event(QGraphicsView* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_event(event)); +} + +void PythonQtWrapper_QGraphicsView::fitInView(QGraphicsView* theWrappedObject, const QGraphicsItem* item, Qt::AspectRatioMode aspectRadioMode) +{ + ( theWrappedObject->fitInView(item, aspectRadioMode)); +} + +void PythonQtWrapper_QGraphicsView::fitInView(QGraphicsView* theWrappedObject, const QRectF& rect, Qt::AspectRatioMode aspectRadioMode) +{ + ( theWrappedObject->fitInView(rect, aspectRadioMode)); +} + +void PythonQtWrapper_QGraphicsView::fitInView(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h, Qt::AspectRatioMode aspectRadioMode) +{ + ( theWrappedObject->fitInView(x, y, w, h, aspectRadioMode)); +} + +void PythonQtWrapper_QGraphicsView::focusInEvent(QGraphicsView* theWrappedObject, QFocusEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_focusInEvent(event)); +} + +bool PythonQtWrapper_QGraphicsView::focusNextPrevChild(QGraphicsView* theWrappedObject, bool next) +{ + return ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_focusNextPrevChild(next)); +} + +void PythonQtWrapper_QGraphicsView::focusOutEvent(QGraphicsView* theWrappedObject, QFocusEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_focusOutEvent(event)); +} + +QBrush PythonQtWrapper_QGraphicsView::foregroundBrush(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->foregroundBrush()); +} + +void PythonQtWrapper_QGraphicsView::inputMethodEvent(QGraphicsView* theWrappedObject, QInputMethodEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_inputMethodEvent(event)); +} + +QVariant PythonQtWrapper_QGraphicsView::inputMethodQuery(QGraphicsView* theWrappedObject, Qt::InputMethodQuery query) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_inputMethodQuery(query)); +} + +bool PythonQtWrapper_QGraphicsView::isInteractive(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->isInteractive()); +} + +bool PythonQtWrapper_QGraphicsView::isTransformed(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->isTransformed()); +} + +QGraphicsItem* PythonQtWrapper_QGraphicsView::itemAt(QGraphicsView* theWrappedObject, const QPoint& pos) const +{ + return ( theWrappedObject->itemAt(pos)); +} + +QGraphicsItem* PythonQtWrapper_QGraphicsView::itemAt(QGraphicsView* theWrappedObject, int x, int y) const +{ + return ( theWrappedObject->itemAt(x, y)); +} + +QList PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->items()); +} + +QList PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode) const +{ + return ( theWrappedObject->items(path, mode)); +} + +QList PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, const QPoint& pos) const +{ + return ( theWrappedObject->items(pos)); +} + +QList PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, const QPolygon& polygon, Qt::ItemSelectionMode mode) const +{ + return ( theWrappedObject->items(polygon, mode)); +} + +QList PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, const QRect& rect, Qt::ItemSelectionMode mode) const +{ + return ( theWrappedObject->items(rect, mode)); +} + +QList PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, int x, int y) const +{ + return ( theWrappedObject->items(x, y)); +} + +QList PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, int x, int y, int w, int h, Qt::ItemSelectionMode mode) const +{ + return ( theWrappedObject->items(x, y, w, h, mode)); +} + +void PythonQtWrapper_QGraphicsView::keyPressEvent(QGraphicsView* theWrappedObject, QKeyEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_keyPressEvent(event)); +} + +void PythonQtWrapper_QGraphicsView::keyReleaseEvent(QGraphicsView* theWrappedObject, QKeyEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_keyReleaseEvent(event)); +} + +QPainterPath PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, const QPainterPath& path) const +{ + return ( theWrappedObject->mapFromScene(path)); +} + +QPoint PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, const QPointF& point) const +{ + return ( theWrappedObject->mapFromScene(point)); +} + +QPolygon PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, const QPolygonF& polygon) const +{ + return ( theWrappedObject->mapFromScene(polygon)); +} + +QPolygon PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, const QRectF& rect) const +{ + return ( theWrappedObject->mapFromScene(rect)); +} + +QPoint PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, qreal x, qreal y) const +{ + return ( theWrappedObject->mapFromScene(x, y)); +} + +QPolygon PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const +{ + return ( theWrappedObject->mapFromScene(x, y, w, h)); +} + +QPainterPath PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, const QPainterPath& path) const +{ + return ( theWrappedObject->mapToScene(path)); +} + +QPointF PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, const QPoint& point) const +{ + return ( theWrappedObject->mapToScene(point)); +} + +QPolygonF PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, const QPolygon& polygon) const +{ + return ( theWrappedObject->mapToScene(polygon)); +} + +QPolygonF PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, const QRect& rect) const +{ + return ( theWrappedObject->mapToScene(rect)); +} + +QPointF PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, int x, int y) const +{ + return ( theWrappedObject->mapToScene(x, y)); +} + +QPolygonF PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, int x, int y, int w, int h) const +{ + return ( theWrappedObject->mapToScene(x, y, w, h)); +} + +QMatrix PythonQtWrapper_QGraphicsView::matrix(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->matrix()); +} + +void PythonQtWrapper_QGraphicsView::mouseDoubleClickEvent(QGraphicsView* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_mouseDoubleClickEvent(event)); +} + +void PythonQtWrapper_QGraphicsView::mouseMoveEvent(QGraphicsView* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_mouseMoveEvent(event)); +} + +void PythonQtWrapper_QGraphicsView::mousePressEvent(QGraphicsView* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_mousePressEvent(event)); +} + +void PythonQtWrapper_QGraphicsView::mouseReleaseEvent(QGraphicsView* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_mouseReleaseEvent(event)); +} + +QGraphicsView::OptimizationFlags PythonQtWrapper_QGraphicsView::optimizationFlags(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->optimizationFlags()); +} + +void PythonQtWrapper_QGraphicsView::paintEvent(QGraphicsView* theWrappedObject, QPaintEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_paintEvent(event)); +} + +void PythonQtWrapper_QGraphicsView::render(QGraphicsView* theWrappedObject, QPainter* painter, const QRectF& target, const QRect& source, Qt::AspectRatioMode aspectRatioMode) +{ + ( theWrappedObject->render(painter, target, source, aspectRatioMode)); +} + +QPainter::RenderHints PythonQtWrapper_QGraphicsView::renderHints(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->renderHints()); +} + +void PythonQtWrapper_QGraphicsView::resetCachedContent(QGraphicsView* theWrappedObject) +{ + ( theWrappedObject->resetCachedContent()); +} + +void PythonQtWrapper_QGraphicsView::resetMatrix(QGraphicsView* theWrappedObject) +{ + ( theWrappedObject->resetMatrix()); +} + +void PythonQtWrapper_QGraphicsView::resetTransform(QGraphicsView* theWrappedObject) +{ + ( theWrappedObject->resetTransform()); +} + +QGraphicsView::ViewportAnchor PythonQtWrapper_QGraphicsView::resizeAnchor(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->resizeAnchor()); +} + +void PythonQtWrapper_QGraphicsView::resizeEvent(QGraphicsView* theWrappedObject, QResizeEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_resizeEvent(event)); +} + +void PythonQtWrapper_QGraphicsView::rotate(QGraphicsView* theWrappedObject, qreal angle) +{ + ( theWrappedObject->rotate(angle)); +} + +Qt::ItemSelectionMode PythonQtWrapper_QGraphicsView::rubberBandSelectionMode(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->rubberBandSelectionMode()); +} + +void PythonQtWrapper_QGraphicsView::scale(QGraphicsView* theWrappedObject, qreal sx, qreal sy) +{ + ( theWrappedObject->scale(sx, sy)); +} + +QGraphicsScene* PythonQtWrapper_QGraphicsView::scene(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->scene()); +} + +QRectF PythonQtWrapper_QGraphicsView::sceneRect(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->sceneRect()); +} + +void PythonQtWrapper_QGraphicsView::scrollContentsBy(QGraphicsView* theWrappedObject, int dx, int dy) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); +} + +void PythonQtWrapper_QGraphicsView::setAlignment(QGraphicsView* theWrappedObject, Qt::Alignment alignment) +{ + ( theWrappedObject->setAlignment(alignment)); +} + +void PythonQtWrapper_QGraphicsView::setBackgroundBrush(QGraphicsView* theWrappedObject, const QBrush& brush) +{ + ( theWrappedObject->setBackgroundBrush(brush)); +} + +void PythonQtWrapper_QGraphicsView::setCacheMode(QGraphicsView* theWrappedObject, QGraphicsView::CacheMode mode) +{ + ( theWrappedObject->setCacheMode(mode)); +} + +void PythonQtWrapper_QGraphicsView::setDragMode(QGraphicsView* theWrappedObject, QGraphicsView::DragMode mode) +{ + ( theWrappedObject->setDragMode(mode)); +} + +void PythonQtWrapper_QGraphicsView::setForegroundBrush(QGraphicsView* theWrappedObject, const QBrush& brush) +{ + ( theWrappedObject->setForegroundBrush(brush)); +} + +void PythonQtWrapper_QGraphicsView::setInteractive(QGraphicsView* theWrappedObject, bool allowed) +{ + ( theWrappedObject->setInteractive(allowed)); +} + +void PythonQtWrapper_QGraphicsView::setMatrix(QGraphicsView* theWrappedObject, const QMatrix& matrix, bool combine) +{ + ( theWrappedObject->setMatrix(matrix, combine)); +} + +void PythonQtWrapper_QGraphicsView::setOptimizationFlag(QGraphicsView* theWrappedObject, QGraphicsView::OptimizationFlag flag, bool enabled) +{ + ( theWrappedObject->setOptimizationFlag(flag, enabled)); +} + +void PythonQtWrapper_QGraphicsView::setOptimizationFlags(QGraphicsView* theWrappedObject, QGraphicsView::OptimizationFlags flags) +{ + ( theWrappedObject->setOptimizationFlags(flags)); +} + +void PythonQtWrapper_QGraphicsView::setRenderHint(QGraphicsView* theWrappedObject, QPainter::RenderHint hint, bool enabled) +{ + ( theWrappedObject->setRenderHint(hint, enabled)); +} + +void PythonQtWrapper_QGraphicsView::setRenderHints(QGraphicsView* theWrappedObject, QPainter::RenderHints hints) +{ + ( theWrappedObject->setRenderHints(hints)); +} + +void PythonQtWrapper_QGraphicsView::setResizeAnchor(QGraphicsView* theWrappedObject, QGraphicsView::ViewportAnchor anchor) +{ + ( theWrappedObject->setResizeAnchor(anchor)); +} + +void PythonQtWrapper_QGraphicsView::setRubberBandSelectionMode(QGraphicsView* theWrappedObject, Qt::ItemSelectionMode mode) +{ + ( theWrappedObject->setRubberBandSelectionMode(mode)); +} + +void PythonQtWrapper_QGraphicsView::setScene(QGraphicsView* theWrappedObject, QGraphicsScene* scene) +{ + ( theWrappedObject->setScene(scene)); +} + +void PythonQtWrapper_QGraphicsView::setSceneRect(QGraphicsView* theWrappedObject, const QRectF& rect) +{ + ( theWrappedObject->setSceneRect(rect)); +} + +void PythonQtWrapper_QGraphicsView::setSceneRect(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h) +{ + ( theWrappedObject->setSceneRect(x, y, w, h)); +} + +void PythonQtWrapper_QGraphicsView::setTransform(QGraphicsView* theWrappedObject, const QTransform& matrix, bool combine) +{ + ( theWrappedObject->setTransform(matrix, combine)); +} + +void PythonQtWrapper_QGraphicsView::setTransformationAnchor(QGraphicsView* theWrappedObject, QGraphicsView::ViewportAnchor anchor) +{ + ( theWrappedObject->setTransformationAnchor(anchor)); +} + +void PythonQtWrapper_QGraphicsView::setViewportUpdateMode(QGraphicsView* theWrappedObject, QGraphicsView::ViewportUpdateMode mode) +{ + ( theWrappedObject->setViewportUpdateMode(mode)); +} + +void PythonQtWrapper_QGraphicsView::setupViewport(QGraphicsView* theWrappedObject, QWidget* widget) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_setupViewport(widget)); +} + +void PythonQtWrapper_QGraphicsView::shear(QGraphicsView* theWrappedObject, qreal sh, qreal sv) +{ + ( theWrappedObject->shear(sh, sv)); +} + +void PythonQtWrapper_QGraphicsView::showEvent(QGraphicsView* theWrappedObject, QShowEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_showEvent(event)); +} + +QSize PythonQtWrapper_QGraphicsView::sizeHint(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +QTransform PythonQtWrapper_QGraphicsView::transform(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->transform()); +} + +QGraphicsView::ViewportAnchor PythonQtWrapper_QGraphicsView::transformationAnchor(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->transformationAnchor()); +} + +void PythonQtWrapper_QGraphicsView::translate(QGraphicsView* theWrappedObject, qreal dx, qreal dy) +{ + ( theWrappedObject->translate(dx, dy)); +} + +bool PythonQtWrapper_QGraphicsView::viewportEvent(QGraphicsView* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_viewportEvent(event)); +} + +QTransform PythonQtWrapper_QGraphicsView::viewportTransform(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->viewportTransform()); +} + +QGraphicsView::ViewportUpdateMode PythonQtWrapper_QGraphicsView::viewportUpdateMode(QGraphicsView* theWrappedObject) const +{ + return ( theWrappedObject->viewportUpdateMode()); +} + +void PythonQtWrapper_QGraphicsView::wheelEvent(QGraphicsView* theWrappedObject, QWheelEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_wheelEvent(event)); +} + + + +PythonQtShell_QGraphicsWidget::~PythonQtShell_QGraphicsWidget() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGraphicsWidget::changeEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::changeEvent(event); +} +void PythonQtShell_QGraphicsWidget::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::childEvent(arg__1); +} +void PythonQtShell_QGraphicsWidget::closeEvent(QCloseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::closeEvent(event); +} +void PythonQtShell_QGraphicsWidget::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::customEvent(arg__1); +} +bool PythonQtShell_QGraphicsWidget::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsWidget::event(event); +} +bool PythonQtShell_QGraphicsWidget::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsWidget::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QGraphicsWidget::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsWidget::focusNextPrevChild(next); +} +void PythonQtShell_QGraphicsWidget::getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getContentsMargins"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "qreal*" , "qreal*" , "qreal*" , "qreal*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&left, (void*)&top, (void*)&right, (void*)&bottom}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::getContentsMargins(left, top, right, bottom); +} +void PythonQtShell_QGraphicsWidget::grabKeyboardEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "grabKeyboardEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::grabKeyboardEvent(event); +} +void PythonQtShell_QGraphicsWidget::grabMouseEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "grabMouseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::grabMouseEvent(event); +} +void PythonQtShell_QGraphicsWidget::hideEvent(QHideEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::hideEvent(event); +} +void PythonQtShell_QGraphicsWidget::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::hoverLeaveEvent(event); +} +void PythonQtShell_QGraphicsWidget::hoverMoveEvent(QGraphicsSceneHoverEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::hoverMoveEvent(event); +} +void PythonQtShell_QGraphicsWidget::initStyleOption(QStyleOption* option) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initStyleOption"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QStyleOption*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&option}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::initStyleOption(option); +} +void PythonQtShell_QGraphicsWidget::moveEvent(QGraphicsSceneMoveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::moveEvent(event); +} +void PythonQtShell_QGraphicsWidget::paintWindowFrame(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintWindowFrame"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::paintWindowFrame(painter, option, widget); +} +void PythonQtShell_QGraphicsWidget::polishEvent() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polishEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::polishEvent(); +} +QVariant PythonQtShell_QGraphicsWidget::propertyChange(const QString& propertyName, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "propertyChange"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QString&" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&propertyName, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("propertyChange", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsWidget::propertyChange(propertyName, value); +} +void PythonQtShell_QGraphicsWidget::resizeEvent(QGraphicsSceneResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::resizeEvent(event); +} +void PythonQtShell_QGraphicsWidget::setGeometry(const QRectF& rect) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRectF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&rect}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::setGeometry(rect); +} +void PythonQtShell_QGraphicsWidget::showEvent(QShowEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::showEvent(event); +} +QSizeF PythonQtShell_QGraphicsWidget::sizeHint(Qt::SizeHint which, const QSizeF& constraint) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSizeF" , "Qt::SizeHint" , "const QSizeF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QSizeF returnValue; + void* args[3] = {NULL, (void*)&which, (void*)&constraint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); + } else { + returnValue = *((QSizeF*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsWidget::sizeHint(which, constraint); +} +void PythonQtShell_QGraphicsWidget::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::timerEvent(arg__1); +} +void PythonQtShell_QGraphicsWidget::ungrabKeyboardEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ungrabKeyboardEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::ungrabKeyboardEvent(event); +} +void PythonQtShell_QGraphicsWidget::ungrabMouseEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ungrabMouseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::ungrabMouseEvent(event); +} +void PythonQtShell_QGraphicsWidget::updateGeometry() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWidget::updateGeometry(); +} +bool PythonQtShell_QGraphicsWidget::windowFrameEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "windowFrameEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("windowFrameEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsWidget::windowFrameEvent(e); +} +Qt::WindowFrameSection PythonQtShell_QGraphicsWidget::windowFrameSectionAt(const QPointF& pos) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "windowFrameSectionAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::WindowFrameSection" , "const QPointF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + Qt::WindowFrameSection returnValue; + void* args[2] = {NULL, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("windowFrameSectionAt", methodInfo, result); + } else { + returnValue = *((Qt::WindowFrameSection*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsWidget::windowFrameSectionAt(pos); +} +QGraphicsWidget* PythonQtWrapper_QGraphicsWidget::new_QGraphicsWidget(QGraphicsItem* parent, Qt::WindowFlags wFlags) +{ +return new PythonQtShell_QGraphicsWidget(parent, wFlags); } + +QList PythonQtWrapper_QGraphicsWidget::actions(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->actions()); +} + +void PythonQtWrapper_QGraphicsWidget::addAction(QGraphicsWidget* theWrappedObject, QAction* action) +{ + ( theWrappedObject->addAction(action)); +} + +void PythonQtWrapper_QGraphicsWidget::addActions(QGraphicsWidget* theWrappedObject, QList actions) +{ + ( theWrappedObject->addActions(actions)); +} + +void PythonQtWrapper_QGraphicsWidget::adjustSize(QGraphicsWidget* theWrappedObject) +{ + ( theWrappedObject->adjustSize()); +} + +bool PythonQtWrapper_QGraphicsWidget::autoFillBackground(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->autoFillBackground()); +} + +QRectF PythonQtWrapper_QGraphicsWidget::boundingRect(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->boundingRect()); +} + +void PythonQtWrapper_QGraphicsWidget::changeEvent(QGraphicsWidget* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_changeEvent(event)); +} + +void PythonQtWrapper_QGraphicsWidget::closeEvent(QGraphicsWidget* theWrappedObject, QCloseEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_closeEvent(event)); +} + +bool PythonQtWrapper_QGraphicsWidget::event(QGraphicsWidget* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_event(event)); +} + +bool PythonQtWrapper_QGraphicsWidget::focusNextPrevChild(QGraphicsWidget* theWrappedObject, bool next) +{ + return ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_focusNextPrevChild(next)); +} + +Qt::FocusPolicy PythonQtWrapper_QGraphicsWidget::focusPolicy(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->focusPolicy()); +} + +QGraphicsWidget* PythonQtWrapper_QGraphicsWidget::focusWidget(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->focusWidget()); +} + +QFont PythonQtWrapper_QGraphicsWidget::font(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->font()); +} + +void PythonQtWrapper_QGraphicsWidget::getContentsMargins(QGraphicsWidget* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_getContentsMargins(left, top, right, bottom)); +} + +void PythonQtWrapper_QGraphicsWidget::getWindowFrameMargins(QGraphicsWidget* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const +{ + ( theWrappedObject->getWindowFrameMargins(left, top, right, bottom)); +} + +void PythonQtWrapper_QGraphicsWidget::grabKeyboardEvent(QGraphicsWidget* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_grabKeyboardEvent(event)); +} + +void PythonQtWrapper_QGraphicsWidget::grabMouseEvent(QGraphicsWidget* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_grabMouseEvent(event)); +} + +int PythonQtWrapper_QGraphicsWidget::grabShortcut(QGraphicsWidget* theWrappedObject, const QKeySequence& sequence, Qt::ShortcutContext context) +{ + return ( theWrappedObject->grabShortcut(sequence, context)); +} + +void PythonQtWrapper_QGraphicsWidget::hideEvent(QGraphicsWidget* theWrappedObject, QHideEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_hideEvent(event)); +} + +void PythonQtWrapper_QGraphicsWidget::hoverLeaveEvent(QGraphicsWidget* theWrappedObject, QGraphicsSceneHoverEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_hoverLeaveEvent(event)); +} + +void PythonQtWrapper_QGraphicsWidget::hoverMoveEvent(QGraphicsWidget* theWrappedObject, QGraphicsSceneHoverEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_hoverMoveEvent(event)); +} + +void PythonQtWrapper_QGraphicsWidget::initStyleOption(QGraphicsWidget* theWrappedObject, QStyleOption* option) const +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_initStyleOption(option)); +} + +void PythonQtWrapper_QGraphicsWidget::insertAction(QGraphicsWidget* theWrappedObject, QAction* before, QAction* action) +{ + ( theWrappedObject->insertAction(before, action)); +} + +void PythonQtWrapper_QGraphicsWidget::insertActions(QGraphicsWidget* theWrappedObject, QAction* before, QList actions) +{ + ( theWrappedObject->insertActions(before, actions)); +} + +bool PythonQtWrapper_QGraphicsWidget::isActiveWindow(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->isActiveWindow()); +} + +QGraphicsLayout* PythonQtWrapper_QGraphicsWidget::layout(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->layout()); +} + +Qt::LayoutDirection PythonQtWrapper_QGraphicsWidget::layoutDirection(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->layoutDirection()); +} + +void PythonQtWrapper_QGraphicsWidget::moveEvent(QGraphicsWidget* theWrappedObject, QGraphicsSceneMoveEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_moveEvent(event)); +} + +void PythonQtWrapper_QGraphicsWidget::paint(QGraphicsWidget* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ + ( theWrappedObject->paint(painter, option, widget)); +} + +void PythonQtWrapper_QGraphicsWidget::paintWindowFrame(QGraphicsWidget* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_paintWindowFrame(painter, option, widget)); +} + +QPalette PythonQtWrapper_QGraphicsWidget::palette(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->palette()); +} + +void PythonQtWrapper_QGraphicsWidget::polishEvent(QGraphicsWidget* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_polishEvent()); +} + +QVariant PythonQtWrapper_QGraphicsWidget::propertyChange(QGraphicsWidget* theWrappedObject, const QString& propertyName, const QVariant& value) +{ + return ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_propertyChange(propertyName, value)); +} + +QRectF PythonQtWrapper_QGraphicsWidget::rect(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->rect()); +} + +void PythonQtWrapper_QGraphicsWidget::releaseShortcut(QGraphicsWidget* theWrappedObject, int id) +{ + ( theWrappedObject->releaseShortcut(id)); +} + +void PythonQtWrapper_QGraphicsWidget::removeAction(QGraphicsWidget* theWrappedObject, QAction* action) +{ + ( theWrappedObject->removeAction(action)); +} + +void PythonQtWrapper_QGraphicsWidget::resize(QGraphicsWidget* theWrappedObject, const QSizeF& size) +{ + ( theWrappedObject->resize(size)); +} + +void PythonQtWrapper_QGraphicsWidget::resize(QGraphicsWidget* theWrappedObject, qreal w, qreal h) +{ + ( theWrappedObject->resize(w, h)); +} + +void PythonQtWrapper_QGraphicsWidget::resizeEvent(QGraphicsWidget* theWrappedObject, QGraphicsSceneResizeEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_resizeEvent(event)); +} + +void PythonQtWrapper_QGraphicsWidget::setAttribute(QGraphicsWidget* theWrappedObject, Qt::WidgetAttribute attribute, bool on) +{ + ( theWrappedObject->setAttribute(attribute, on)); +} + +void PythonQtWrapper_QGraphicsWidget::setAutoFillBackground(QGraphicsWidget* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setAutoFillBackground(enabled)); +} + +void PythonQtWrapper_QGraphicsWidget::setContentsMargins(QGraphicsWidget* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom) +{ + ( theWrappedObject->setContentsMargins(left, top, right, bottom)); +} + +void PythonQtWrapper_QGraphicsWidget::setFocusPolicy(QGraphicsWidget* theWrappedObject, Qt::FocusPolicy policy) +{ + ( theWrappedObject->setFocusPolicy(policy)); +} + +void PythonQtWrapper_QGraphicsWidget::setFont(QGraphicsWidget* theWrappedObject, const QFont& font) +{ + ( theWrappedObject->setFont(font)); +} + +void PythonQtWrapper_QGraphicsWidget::setGeometry(QGraphicsWidget* theWrappedObject, const QRectF& rect) +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_setGeometry(rect)); +} + +void PythonQtWrapper_QGraphicsWidget::setGeometry(QGraphicsWidget* theWrappedObject, qreal x, qreal y, qreal w, qreal h) +{ + ( theWrappedObject->setGeometry(x, y, w, h)); +} + +void PythonQtWrapper_QGraphicsWidget::setLayout(QGraphicsWidget* theWrappedObject, QGraphicsLayout* layout) +{ + ( theWrappedObject->setLayout(layout)); +} + +void PythonQtWrapper_QGraphicsWidget::setLayoutDirection(QGraphicsWidget* theWrappedObject, Qt::LayoutDirection direction) +{ + ( theWrappedObject->setLayoutDirection(direction)); +} + +void PythonQtWrapper_QGraphicsWidget::setPalette(QGraphicsWidget* theWrappedObject, const QPalette& palette) +{ + ( theWrappedObject->setPalette(palette)); +} + +void PythonQtWrapper_QGraphicsWidget::setShortcutAutoRepeat(QGraphicsWidget* theWrappedObject, int id, bool enabled) +{ + ( theWrappedObject->setShortcutAutoRepeat(id, enabled)); +} + +void PythonQtWrapper_QGraphicsWidget::setShortcutEnabled(QGraphicsWidget* theWrappedObject, int id, bool enabled) +{ + ( theWrappedObject->setShortcutEnabled(id, enabled)); +} + +void PythonQtWrapper_QGraphicsWidget::setStyle(QGraphicsWidget* theWrappedObject, QStyle* style) +{ + ( theWrappedObject->setStyle(style)); +} + +void PythonQtWrapper_QGraphicsWidget::static_QGraphicsWidget_setTabOrder(QGraphicsWidget* first, QGraphicsWidget* second) +{ + (QGraphicsWidget::setTabOrder(first, second)); +} + +void PythonQtWrapper_QGraphicsWidget::setWindowFlags(QGraphicsWidget* theWrappedObject, Qt::WindowFlags wFlags) +{ + ( theWrappedObject->setWindowFlags(wFlags)); +} + +void PythonQtWrapper_QGraphicsWidget::setWindowFrameMargins(QGraphicsWidget* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom) +{ + ( theWrappedObject->setWindowFrameMargins(left, top, right, bottom)); +} + +void PythonQtWrapper_QGraphicsWidget::setWindowTitle(QGraphicsWidget* theWrappedObject, const QString& title) +{ + ( theWrappedObject->setWindowTitle(title)); +} + +QPainterPath PythonQtWrapper_QGraphicsWidget::shape(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->shape()); +} + +void PythonQtWrapper_QGraphicsWidget::showEvent(QGraphicsWidget* theWrappedObject, QShowEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_showEvent(event)); +} + +QSizeF PythonQtWrapper_QGraphicsWidget::size(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +QSizeF PythonQtWrapper_QGraphicsWidget::sizeHint(QGraphicsWidget* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_sizeHint(which, constraint)); +} + +QStyle* PythonQtWrapper_QGraphicsWidget::style(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->style()); +} + +bool PythonQtWrapper_QGraphicsWidget::testAttribute(QGraphicsWidget* theWrappedObject, Qt::WidgetAttribute attribute) const +{ + return ( theWrappedObject->testAttribute(attribute)); +} + +int PythonQtWrapper_QGraphicsWidget::type(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + +void PythonQtWrapper_QGraphicsWidget::ungrabKeyboardEvent(QGraphicsWidget* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_ungrabKeyboardEvent(event)); +} + +void PythonQtWrapper_QGraphicsWidget::ungrabMouseEvent(QGraphicsWidget* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_ungrabMouseEvent(event)); +} + +void PythonQtWrapper_QGraphicsWidget::unsetLayoutDirection(QGraphicsWidget* theWrappedObject) +{ + ( theWrappedObject->unsetLayoutDirection()); +} + +void PythonQtWrapper_QGraphicsWidget::unsetWindowFrameMargins(QGraphicsWidget* theWrappedObject) +{ + ( theWrappedObject->unsetWindowFrameMargins()); +} + +void PythonQtWrapper_QGraphicsWidget::updateGeometry(QGraphicsWidget* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_updateGeometry()); +} + +Qt::WindowFlags PythonQtWrapper_QGraphicsWidget::windowFlags(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->windowFlags()); +} + +bool PythonQtWrapper_QGraphicsWidget::windowFrameEvent(QGraphicsWidget* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_windowFrameEvent(e)); +} + +QRectF PythonQtWrapper_QGraphicsWidget::windowFrameGeometry(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->windowFrameGeometry()); +} + +QRectF PythonQtWrapper_QGraphicsWidget::windowFrameRect(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->windowFrameRect()); +} + +Qt::WindowFrameSection PythonQtWrapper_QGraphicsWidget::windowFrameSectionAt(QGraphicsWidget* theWrappedObject, const QPointF& pos) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_windowFrameSectionAt(pos)); +} + +QString PythonQtWrapper_QGraphicsWidget::windowTitle(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->windowTitle()); +} + +Qt::WindowType PythonQtWrapper_QGraphicsWidget::windowType(QGraphicsWidget* theWrappedObject) const +{ + return ( theWrappedObject->windowType()); +} + + + +PythonQtShell_QGridLayout::~PythonQtShell_QGridLayout() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGridLayout::addItem(QLayoutItem* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "addItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QLayoutItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGridLayout::addItem(arg__1); +} +void PythonQtShell_QGridLayout::childEvent(QChildEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGridLayout::childEvent(e); +} +QSizePolicy::ControlTypes PythonQtShell_QGridLayout::controlTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "controlTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSizePolicy::ControlTypes"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSizePolicy::ControlTypes returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("controlTypes", methodInfo, result); + } else { + returnValue = *((QSizePolicy::ControlTypes*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGridLayout::controlTypes(); +} +int PythonQtShell_QGridLayout::count() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGridLayout::count(); +} +void PythonQtShell_QGridLayout::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGridLayout::customEvent(arg__1); +} +bool PythonQtShell_QGridLayout::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGridLayout::event(arg__1); +} +bool PythonQtShell_QGridLayout::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGridLayout::eventFilter(arg__1, arg__2); +} +Qt::Orientations PythonQtShell_QGridLayout::expandingDirections() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::Orientations"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::Orientations returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); + } else { + returnValue = *((Qt::Orientations*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGridLayout::expandingDirections(); +} +QRect PythonQtShell_QGridLayout::geometry() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QRect returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGridLayout::geometry(); +} +int PythonQtShell_QGridLayout::indexOf(QWidget* arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOf"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexOf", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGridLayout::indexOf(arg__1); +} +void PythonQtShell_QGridLayout::invalidate() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGridLayout::invalidate(); +} +bool PythonQtShell_QGridLayout::isEmpty() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGridLayout::isEmpty(); +} +QLayoutItem* PythonQtShell_QGridLayout::itemAt(int index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); + } else { + returnValue = *((QLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGridLayout::itemAt(index); +} +QLayout* PythonQtShell_QGridLayout::layout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayout*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QLayout* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); + } else { + returnValue = *((QLayout**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGridLayout::layout(); +} +QSize PythonQtShell_QGridLayout::maximumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGridLayout::maximumSize(); +} +QSize PythonQtShell_QGridLayout::minimumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGridLayout::minimumSize(); +} +void PythonQtShell_QGridLayout::setGeometry(const QRect& arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGridLayout::setGeometry(arg__1); +} +QLayoutItem* PythonQtShell_QGridLayout::takeAt(int index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "takeAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("takeAt", methodInfo, result); + } else { + returnValue = *((QLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGridLayout::takeAt(index); +} +void PythonQtShell_QGridLayout::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGridLayout::timerEvent(arg__1); +} +QGridLayout* PythonQtWrapper_QGridLayout::new_QGridLayout() +{ +return new PythonQtShell_QGridLayout(); } + +QGridLayout* PythonQtWrapper_QGridLayout::new_QGridLayout(QWidget* parent) +{ +return new PythonQtShell_QGridLayout(parent); } + +void PythonQtWrapper_QGridLayout::addItem(QGridLayout* theWrappedObject, QLayoutItem* arg__1) +{ + ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_addItem(arg__1)); +} + +void PythonQtWrapper_QGridLayout::addItem(QGridLayout* theWrappedObject, QLayoutItem* item, int row, int column, int rowSpan, int columnSpan, Qt::Alignment arg__6) +{ + ( theWrappedObject->addItem(item, row, column, rowSpan, columnSpan, arg__6)); +} + +void PythonQtWrapper_QGridLayout::addLayout(QGridLayout* theWrappedObject, QLayout* arg__1, int row, int column, Qt::Alignment arg__4) +{ + ( theWrappedObject->addLayout(arg__1, row, column, arg__4)); +} + +void PythonQtWrapper_QGridLayout::addLayout(QGridLayout* theWrappedObject, QLayout* arg__1, int row, int column, int rowSpan, int columnSpan, Qt::Alignment arg__6) +{ + ( theWrappedObject->addLayout(arg__1, row, column, rowSpan, columnSpan, arg__6)); +} + +void PythonQtWrapper_QGridLayout::addWidget(QGridLayout* theWrappedObject, QWidget* arg__1, int row, int column, Qt::Alignment arg__4) +{ + ( theWrappedObject->addWidget(arg__1, row, column, arg__4)); +} + +void PythonQtWrapper_QGridLayout::addWidget(QGridLayout* theWrappedObject, QWidget* arg__1, int row, int column, int rowSpan, int columnSpan, Qt::Alignment arg__6) +{ + ( theWrappedObject->addWidget(arg__1, row, column, rowSpan, columnSpan, arg__6)); +} + +QRect PythonQtWrapper_QGridLayout::cellRect(QGridLayout* theWrappedObject, int row, int column) const +{ + return ( theWrappedObject->cellRect(row, column)); +} + +int PythonQtWrapper_QGridLayout::columnCount(QGridLayout* theWrappedObject) const +{ + return ( theWrappedObject->columnCount()); +} + +int PythonQtWrapper_QGridLayout::columnMinimumWidth(QGridLayout* theWrappedObject, int column) const +{ + return ( theWrappedObject->columnMinimumWidth(column)); +} + +int PythonQtWrapper_QGridLayout::columnStretch(QGridLayout* theWrappedObject, int column) const +{ + return ( theWrappedObject->columnStretch(column)); +} + +int PythonQtWrapper_QGridLayout::count(QGridLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_count()); +} + +Qt::Orientations PythonQtWrapper_QGridLayout::expandingDirections(QGridLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_expandingDirections()); +} + +void PythonQtWrapper_QGridLayout::getItemPosition(QGridLayout* theWrappedObject, int idx, int* row, int* column, int* rowSpan, int* columnSpan) const +{ + ( theWrappedObject->getItemPosition(idx, row, column, rowSpan, columnSpan)); +} + +bool PythonQtWrapper_QGridLayout::hasHeightForWidth(QGridLayout* theWrappedObject) const +{ + return ( theWrappedObject->hasHeightForWidth()); +} + +int PythonQtWrapper_QGridLayout::heightForWidth(QGridLayout* theWrappedObject, int arg__1) const +{ + return ( theWrappedObject->heightForWidth(arg__1)); +} + +int PythonQtWrapper_QGridLayout::horizontalSpacing(QGridLayout* theWrappedObject) const +{ + return ( theWrappedObject->horizontalSpacing()); +} + +void PythonQtWrapper_QGridLayout::invalidate(QGridLayout* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_invalidate()); +} + +QLayoutItem* PythonQtWrapper_QGridLayout::itemAt(QGridLayout* theWrappedObject, int index) const +{ + return ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_itemAt(index)); +} + +QLayoutItem* PythonQtWrapper_QGridLayout::itemAtPosition(QGridLayout* theWrappedObject, int row, int column) const +{ + return ( theWrappedObject->itemAtPosition(row, column)); +} + +QSize PythonQtWrapper_QGridLayout::maximumSize(QGridLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_maximumSize()); +} + +int PythonQtWrapper_QGridLayout::minimumHeightForWidth(QGridLayout* theWrappedObject, int arg__1) const +{ + return ( theWrappedObject->minimumHeightForWidth(arg__1)); +} + +QSize PythonQtWrapper_QGridLayout::minimumSize(QGridLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_minimumSize()); +} + +Qt::Corner PythonQtWrapper_QGridLayout::originCorner(QGridLayout* theWrappedObject) const +{ + return ( theWrappedObject->originCorner()); +} + +int PythonQtWrapper_QGridLayout::rowCount(QGridLayout* theWrappedObject) const +{ + return ( theWrappedObject->rowCount()); +} + +int PythonQtWrapper_QGridLayout::rowMinimumHeight(QGridLayout* theWrappedObject, int row) const +{ + return ( theWrappedObject->rowMinimumHeight(row)); +} + +int PythonQtWrapper_QGridLayout::rowStretch(QGridLayout* theWrappedObject, int row) const +{ + return ( theWrappedObject->rowStretch(row)); +} + +void PythonQtWrapper_QGridLayout::setColumnMinimumWidth(QGridLayout* theWrappedObject, int column, int minSize) +{ + ( theWrappedObject->setColumnMinimumWidth(column, minSize)); +} + +void PythonQtWrapper_QGridLayout::setColumnStretch(QGridLayout* theWrappedObject, int column, int stretch) +{ + ( theWrappedObject->setColumnStretch(column, stretch)); +} + +void PythonQtWrapper_QGridLayout::setDefaultPositioning(QGridLayout* theWrappedObject, int n, Qt::Orientation orient) +{ + ( theWrappedObject->setDefaultPositioning(n, orient)); +} + +void PythonQtWrapper_QGridLayout::setGeometry(QGridLayout* theWrappedObject, const QRect& arg__1) +{ + ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_setGeometry(arg__1)); +} + +void PythonQtWrapper_QGridLayout::setHorizontalSpacing(QGridLayout* theWrappedObject, int spacing) +{ + ( theWrappedObject->setHorizontalSpacing(spacing)); +} + +void PythonQtWrapper_QGridLayout::setOriginCorner(QGridLayout* theWrappedObject, Qt::Corner arg__1) +{ + ( theWrappedObject->setOriginCorner(arg__1)); +} + +void PythonQtWrapper_QGridLayout::setRowMinimumHeight(QGridLayout* theWrappedObject, int row, int minSize) +{ + ( theWrappedObject->setRowMinimumHeight(row, minSize)); +} + +void PythonQtWrapper_QGridLayout::setRowStretch(QGridLayout* theWrappedObject, int row, int stretch) +{ + ( theWrappedObject->setRowStretch(row, stretch)); +} + +void PythonQtWrapper_QGridLayout::setSpacing(QGridLayout* theWrappedObject, int spacing) +{ + ( theWrappedObject->setSpacing(spacing)); +} + +void PythonQtWrapper_QGridLayout::setVerticalSpacing(QGridLayout* theWrappedObject, int spacing) +{ + ( theWrappedObject->setVerticalSpacing(spacing)); +} + +QSize PythonQtWrapper_QGridLayout::sizeHint(QGridLayout* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +int PythonQtWrapper_QGridLayout::spacing(QGridLayout* theWrappedObject) const +{ + return ( theWrappedObject->spacing()); +} + +QLayoutItem* PythonQtWrapper_QGridLayout::takeAt(QGridLayout* theWrappedObject, int index) +{ + return ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_takeAt(index)); +} + +int PythonQtWrapper_QGridLayout::verticalSpacing(QGridLayout* theWrappedObject) const +{ + return ( theWrappedObject->verticalSpacing()); +} + + + +PythonQtShell_QGroupBox::~PythonQtShell_QGroupBox() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGroupBox::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::actionEvent(arg__1); +} +void PythonQtShell_QGroupBox::changeEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::changeEvent(event); +} +void PythonQtShell_QGroupBox::childEvent(QChildEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::childEvent(event); +} +void PythonQtShell_QGroupBox::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::closeEvent(arg__1); +} +void PythonQtShell_QGroupBox::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::contextMenuEvent(arg__1); +} +void PythonQtShell_QGroupBox::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::customEvent(arg__1); +} +int PythonQtShell_QGroupBox::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGroupBox::devType(); +} +void PythonQtShell_QGroupBox::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::dragEnterEvent(arg__1); +} +void PythonQtShell_QGroupBox::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::dragLeaveEvent(arg__1); +} +void PythonQtShell_QGroupBox::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::dragMoveEvent(arg__1); +} +void PythonQtShell_QGroupBox::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::dropEvent(arg__1); +} +void PythonQtShell_QGroupBox::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::enterEvent(arg__1); +} +bool PythonQtShell_QGroupBox::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGroupBox::event(event); +} +bool PythonQtShell_QGroupBox::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGroupBox::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QGroupBox::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::focusInEvent(event); +} +bool PythonQtShell_QGroupBox::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGroupBox::focusNextPrevChild(next); +} +void PythonQtShell_QGroupBox::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::focusOutEvent(arg__1); +} +bool PythonQtShell_QGroupBox::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGroupBox::hasHeightForWidth(); +} +int PythonQtShell_QGroupBox::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGroupBox::heightForWidth(arg__1); +} +void PythonQtShell_QGroupBox::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::hideEvent(arg__1); +} +void PythonQtShell_QGroupBox::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::initPainter(painter); +} +void PythonQtShell_QGroupBox::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QGroupBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGroupBox::inputMethodQuery(arg__1); +} +void PythonQtShell_QGroupBox::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::keyPressEvent(arg__1); +} +void PythonQtShell_QGroupBox::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::keyReleaseEvent(arg__1); +} +void PythonQtShell_QGroupBox::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::leaveEvent(arg__1); +} +int PythonQtShell_QGroupBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGroupBox::metric(arg__1); +} +void PythonQtShell_QGroupBox::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QGroupBox::mouseMoveEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::mouseMoveEvent(event); +} +void PythonQtShell_QGroupBox::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::mousePressEvent(event); +} +void PythonQtShell_QGroupBox::mouseReleaseEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::mouseReleaseEvent(event); +} +void PythonQtShell_QGroupBox::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::moveEvent(arg__1); +} +bool PythonQtShell_QGroupBox::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGroupBox::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QGroupBox::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGroupBox::paintEngine(); +} +void PythonQtShell_QGroupBox::paintEvent(QPaintEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::paintEvent(event); +} +QPaintDevice* PythonQtShell_QGroupBox::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGroupBox::redirected(offset); +} +void PythonQtShell_QGroupBox::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::resizeEvent(event); +} +QPainter* PythonQtShell_QGroupBox::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGroupBox::sharedPainter(); +} +void PythonQtShell_QGroupBox::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::showEvent(arg__1); +} +QSize PythonQtShell_QGroupBox::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGroupBox::sizeHint(); +} +void PythonQtShell_QGroupBox::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::tabletEvent(arg__1); +} +void PythonQtShell_QGroupBox::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::timerEvent(arg__1); +} +void PythonQtShell_QGroupBox::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGroupBox::wheelEvent(arg__1); +} +QGroupBox* PythonQtWrapper_QGroupBox::new_QGroupBox(QWidget* parent) +{ +return new PythonQtShell_QGroupBox(parent); } + +QGroupBox* PythonQtWrapper_QGroupBox::new_QGroupBox(const QString& title, QWidget* parent) +{ +return new PythonQtShell_QGroupBox(title, parent); } + +Qt::Alignment PythonQtWrapper_QGroupBox::alignment(QGroupBox* theWrappedObject) const +{ + return ( theWrappedObject->alignment()); +} + +void PythonQtWrapper_QGroupBox::changeEvent(QGroupBox* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_changeEvent(event)); +} + +void PythonQtWrapper_QGroupBox::childEvent(QGroupBox* theWrappedObject, QChildEvent* event) +{ + ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_childEvent(event)); +} + +bool PythonQtWrapper_QGroupBox::event(QGroupBox* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_event(event)); +} + +void PythonQtWrapper_QGroupBox::focusInEvent(QGroupBox* theWrappedObject, QFocusEvent* event) +{ + ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_focusInEvent(event)); +} + +bool PythonQtWrapper_QGroupBox::isCheckable(QGroupBox* theWrappedObject) const +{ + return ( theWrappedObject->isCheckable()); +} + +bool PythonQtWrapper_QGroupBox::isChecked(QGroupBox* theWrappedObject) const +{ + return ( theWrappedObject->isChecked()); +} + +bool PythonQtWrapper_QGroupBox::isFlat(QGroupBox* theWrappedObject) const +{ + return ( theWrappedObject->isFlat()); +} + +QSize PythonQtWrapper_QGroupBox::minimumSizeHint(QGroupBox* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +void PythonQtWrapper_QGroupBox::mouseMoveEvent(QGroupBox* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_mouseMoveEvent(event)); +} + +void PythonQtWrapper_QGroupBox::mousePressEvent(QGroupBox* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_mousePressEvent(event)); +} + +void PythonQtWrapper_QGroupBox::mouseReleaseEvent(QGroupBox* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_mouseReleaseEvent(event)); +} + +void PythonQtWrapper_QGroupBox::paintEvent(QGroupBox* theWrappedObject, QPaintEvent* event) +{ + ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_paintEvent(event)); +} + +void PythonQtWrapper_QGroupBox::resizeEvent(QGroupBox* theWrappedObject, QResizeEvent* event) +{ + ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_resizeEvent(event)); +} + +void PythonQtWrapper_QGroupBox::setAlignment(QGroupBox* theWrappedObject, int alignment) +{ + ( theWrappedObject->setAlignment(alignment)); +} + +void PythonQtWrapper_QGroupBox::setCheckable(QGroupBox* theWrappedObject, bool checkable) +{ + ( theWrappedObject->setCheckable(checkable)); +} + +void PythonQtWrapper_QGroupBox::setFlat(QGroupBox* theWrappedObject, bool flat) +{ + ( theWrappedObject->setFlat(flat)); +} + +void PythonQtWrapper_QGroupBox::setTitle(QGroupBox* theWrappedObject, const QString& title) +{ + ( theWrappedObject->setTitle(title)); +} + +QString PythonQtWrapper_QGroupBox::title(QGroupBox* theWrappedObject) const +{ + return ( theWrappedObject->title()); +} + +#endif + +PythonQtShell_QGuiApplication::~PythonQtShell_QGuiApplication() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGuiApplication::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGuiApplication::childEvent(arg__1); +} +void PythonQtShell_QGuiApplication::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGuiApplication::customEvent(arg__1); +} +bool PythonQtShell_QGuiApplication::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGuiApplication::event(arg__1); +} +bool PythonQtShell_QGuiApplication::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGuiApplication::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QGuiApplication::notify(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "notify"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("notify", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGuiApplication::notify(arg__1, arg__2); +} +void PythonQtShell_QGuiApplication::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGuiApplication::timerEvent(arg__1); +} +QGuiApplication* PythonQtWrapper_QGuiApplication::new_QGuiApplication(int& argc, char** argv) +{ +return new PythonQtShell_QGuiApplication(argc, argv); } + +QString PythonQtWrapper_QGuiApplication::static_QGuiApplication_applicationDisplayName() +{ + return (QGuiApplication::applicationDisplayName()); +} + +void PythonQtWrapper_QGuiApplication::static_QGuiApplication_changeOverrideCursor(const QCursor& arg__1) +{ + (QGuiApplication::changeOverrideCursor(arg__1)); +} + +QClipboard* PythonQtWrapper_QGuiApplication::static_QGuiApplication_clipboard() +{ + return (QGuiApplication::clipboard()); +} + +bool PythonQtWrapper_QGuiApplication::static_QGuiApplication_desktopSettingsAware() +{ + return (QGuiApplication::desktopSettingsAware()); +} + +qreal PythonQtWrapper_QGuiApplication::devicePixelRatio(QGuiApplication* theWrappedObject) const +{ + return ( theWrappedObject->devicePixelRatio()); +} + +bool PythonQtWrapper_QGuiApplication::event(QGuiApplication* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QGuiApplication*)theWrappedObject)->promoted_event(arg__1)); +} + +int PythonQtWrapper_QGuiApplication::static_QGuiApplication_exec() +{ + return (QGuiApplication::exec()); +} + +QObject* PythonQtWrapper_QGuiApplication::static_QGuiApplication_focusObject() +{ + return (QGuiApplication::focusObject()); +} + +QFont PythonQtWrapper_QGuiApplication::static_QGuiApplication_font() +{ + return (QGuiApplication::font()); +} + +bool PythonQtWrapper_QGuiApplication::static_QGuiApplication_isLeftToRight() +{ + return (QGuiApplication::isLeftToRight()); +} + +bool PythonQtWrapper_QGuiApplication::static_QGuiApplication_isRightToLeft() +{ + return (QGuiApplication::isRightToLeft()); +} + +bool PythonQtWrapper_QGuiApplication::isSavingSession(QGuiApplication* theWrappedObject) const +{ + return ( theWrappedObject->isSavingSession()); +} + +bool PythonQtWrapper_QGuiApplication::isSessionRestored(QGuiApplication* theWrappedObject) const +{ + return ( theWrappedObject->isSessionRestored()); +} + +Qt::KeyboardModifiers PythonQtWrapper_QGuiApplication::static_QGuiApplication_keyboardModifiers() +{ + return (QGuiApplication::keyboardModifiers()); +} + +Qt::LayoutDirection PythonQtWrapper_QGuiApplication::static_QGuiApplication_layoutDirection() +{ + return (QGuiApplication::layoutDirection()); +} + +Qt::MouseButtons PythonQtWrapper_QGuiApplication::static_QGuiApplication_mouseButtons() +{ + return (QGuiApplication::mouseButtons()); +} + +bool PythonQtWrapper_QGuiApplication::notify(QGuiApplication* theWrappedObject, QObject* arg__1, QEvent* arg__2) +{ + return ( ((PythonQtPublicPromoter_QGuiApplication*)theWrappedObject)->promoted_notify(arg__1, arg__2)); +} + +QCursor* PythonQtWrapper_QGuiApplication::static_QGuiApplication_overrideCursor() +{ + return (QGuiApplication::overrideCursor()); +} + +QPalette PythonQtWrapper_QGuiApplication::static_QGuiApplication_palette() +{ + return (QGuiApplication::palette()); +} + +QString PythonQtWrapper_QGuiApplication::static_QGuiApplication_platformName() +{ + return (QGuiApplication::platformName()); +} + +Qt::KeyboardModifiers PythonQtWrapper_QGuiApplication::static_QGuiApplication_queryKeyboardModifiers() +{ + return (QGuiApplication::queryKeyboardModifiers()); +} + +bool PythonQtWrapper_QGuiApplication::static_QGuiApplication_quitOnLastWindowClosed() +{ + return (QGuiApplication::quitOnLastWindowClosed()); +} + +void PythonQtWrapper_QGuiApplication::static_QGuiApplication_restoreOverrideCursor() +{ + (QGuiApplication::restoreOverrideCursor()); +} + +QString PythonQtWrapper_QGuiApplication::sessionId(QGuiApplication* theWrappedObject) const +{ + return ( theWrappedObject->sessionId()); +} + +QString PythonQtWrapper_QGuiApplication::sessionKey(QGuiApplication* theWrappedObject) const +{ + return ( theWrappedObject->sessionKey()); +} + +void PythonQtWrapper_QGuiApplication::static_QGuiApplication_setApplicationDisplayName(const QString& name) +{ + (QGuiApplication::setApplicationDisplayName(name)); +} + +void PythonQtWrapper_QGuiApplication::static_QGuiApplication_setDesktopSettingsAware(bool on) +{ + (QGuiApplication::setDesktopSettingsAware(on)); +} + +void PythonQtWrapper_QGuiApplication::static_QGuiApplication_setFont(const QFont& arg__1) +{ + (QGuiApplication::setFont(arg__1)); +} + +void PythonQtWrapper_QGuiApplication::static_QGuiApplication_setLayoutDirection(Qt::LayoutDirection direction) +{ + (QGuiApplication::setLayoutDirection(direction)); +} + +void PythonQtWrapper_QGuiApplication::static_QGuiApplication_setOverrideCursor(const QCursor& arg__1) +{ + (QGuiApplication::setOverrideCursor(arg__1)); +} + +void PythonQtWrapper_QGuiApplication::static_QGuiApplication_setPalette(const QPalette& pal) +{ + (QGuiApplication::setPalette(pal)); +} + +void PythonQtWrapper_QGuiApplication::static_QGuiApplication_setQuitOnLastWindowClosed(bool quit) +{ + (QGuiApplication::setQuitOnLastWindowClosed(quit)); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QHBoxLayout::~PythonQtShell_QHBoxLayout() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QHBoxLayout::addItem(QLayoutItem* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "addItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QLayoutItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHBoxLayout::addItem(arg__1); +} +void PythonQtShell_QHBoxLayout::childEvent(QChildEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHBoxLayout::childEvent(e); +} +QSizePolicy::ControlTypes PythonQtShell_QHBoxLayout::controlTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "controlTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSizePolicy::ControlTypes"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSizePolicy::ControlTypes returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("controlTypes", methodInfo, result); + } else { + returnValue = *((QSizePolicy::ControlTypes*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHBoxLayout::controlTypes(); +} +int PythonQtShell_QHBoxLayout::count() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHBoxLayout::count(); +} +void PythonQtShell_QHBoxLayout::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHBoxLayout::customEvent(arg__1); +} +bool PythonQtShell_QHBoxLayout::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHBoxLayout::event(arg__1); +} +bool PythonQtShell_QHBoxLayout::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHBoxLayout::eventFilter(arg__1, arg__2); +} +Qt::Orientations PythonQtShell_QHBoxLayout::expandingDirections() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::Orientations"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::Orientations returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); + } else { + returnValue = *((Qt::Orientations*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHBoxLayout::expandingDirections(); +} +QRect PythonQtShell_QHBoxLayout::geometry() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QRect returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHBoxLayout::geometry(); +} +int PythonQtShell_QHBoxLayout::indexOf(QWidget* arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOf"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexOf", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHBoxLayout::indexOf(arg__1); +} +void PythonQtShell_QHBoxLayout::invalidate() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHBoxLayout::invalidate(); +} +bool PythonQtShell_QHBoxLayout::isEmpty() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHBoxLayout::isEmpty(); +} +QLayoutItem* PythonQtShell_QHBoxLayout::itemAt(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); + } else { + returnValue = *((QLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHBoxLayout::itemAt(arg__1); +} +QLayout* PythonQtShell_QHBoxLayout::layout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayout*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QLayout* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); + } else { + returnValue = *((QLayout**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHBoxLayout::layout(); +} +QSize PythonQtShell_QHBoxLayout::maximumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHBoxLayout::maximumSize(); +} +QSize PythonQtShell_QHBoxLayout::minimumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHBoxLayout::minimumSize(); +} +void PythonQtShell_QHBoxLayout::setGeometry(const QRect& arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHBoxLayout::setGeometry(arg__1); +} +QLayoutItem* PythonQtShell_QHBoxLayout::takeAt(int arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "takeAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("takeAt", methodInfo, result); + } else { + returnValue = *((QLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHBoxLayout::takeAt(arg__1); +} +void PythonQtShell_QHBoxLayout::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHBoxLayout::timerEvent(arg__1); +} +QHBoxLayout* PythonQtWrapper_QHBoxLayout::new_QHBoxLayout() +{ +return new PythonQtShell_QHBoxLayout(); } + +QHBoxLayout* PythonQtWrapper_QHBoxLayout::new_QHBoxLayout(QWidget* parent) +{ +return new PythonQtShell_QHBoxLayout(parent); } + + + +PythonQtShell_QHeaderView::~PythonQtShell_QHeaderView() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QHeaderView::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::actionEvent(arg__1); +} +void PythonQtShell_QHeaderView::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::changeEvent(arg__1); +} +void PythonQtShell_QHeaderView::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::childEvent(arg__1); +} +void PythonQtShell_QHeaderView::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&editor, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::closeEditor(editor, hint); +} +void PythonQtShell_QHeaderView::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::closeEvent(arg__1); +} +void PythonQtShell_QHeaderView::commitData(QWidget* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::commitData(editor); +} +void PythonQtShell_QHeaderView::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::contextMenuEvent(arg__1); +} +void PythonQtShell_QHeaderView::currentChanged(const QModelIndex& current, const QModelIndex& old) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)¤t, (void*)&old}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::currentChanged(current, old); +} +void PythonQtShell_QHeaderView::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::customEvent(arg__1); +} +void PythonQtShell_QHeaderView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&" , "const QVector&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&topLeft, (void*)&bottomRight, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::dataChanged(topLeft, bottomRight, roles); +} +int PythonQtShell_QHeaderView::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::devType(); +} +void PythonQtShell_QHeaderView::doItemsLayout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::doItemsLayout(); +} +void PythonQtShell_QHeaderView::dragEnterEvent(QDragEnterEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::dragEnterEvent(event); +} +void PythonQtShell_QHeaderView::dragLeaveEvent(QDragLeaveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::dragLeaveEvent(event); +} +void PythonQtShell_QHeaderView::dragMoveEvent(QDragMoveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::dragMoveEvent(event); +} +void PythonQtShell_QHeaderView::dropEvent(QDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::dropEvent(event); +} +bool PythonQtShell_QHeaderView::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::edit(index, trigger, event); +} +void PythonQtShell_QHeaderView::editorDestroyed(QObject* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QObject*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::editorDestroyed(editor); +} +void PythonQtShell_QHeaderView::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::enterEvent(arg__1); +} +bool PythonQtShell_QHeaderView::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::event(e); +} +bool PythonQtShell_QHeaderView::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QHeaderView::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::focusInEvent(event); +} +bool PythonQtShell_QHeaderView::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::focusNextPrevChild(next); +} +void PythonQtShell_QHeaderView::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::focusOutEvent(event); +} +bool PythonQtShell_QHeaderView::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::hasHeightForWidth(); +} +int PythonQtShell_QHeaderView::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::heightForWidth(arg__1); +} +void PythonQtShell_QHeaderView::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::hideEvent(arg__1); +} +int PythonQtShell_QHeaderView::horizontalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::horizontalOffset(); +} +void PythonQtShell_QHeaderView::horizontalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::horizontalScrollbarAction(action); +} +void PythonQtShell_QHeaderView::horizontalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::horizontalScrollbarValueChanged(value); +} +QModelIndex PythonQtShell_QHeaderView::indexAt(const QPoint& p) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&p}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::indexAt(p); +} +void PythonQtShell_QHeaderView::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::initPainter(painter); +} +void PythonQtShell_QHeaderView::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::inputMethodEvent(event); +} +QVariant PythonQtShell_QHeaderView::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::inputMethodQuery(query); +} +bool PythonQtShell_QHeaderView::isIndexHidden(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::isIndexHidden(index); +} +void PythonQtShell_QHeaderView::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::keyPressEvent(event); +} +void PythonQtShell_QHeaderView::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::keyReleaseEvent(arg__1); +} +void PythonQtShell_QHeaderView::keyboardSearch(const QString& search) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&search}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::keyboardSearch(search); +} +void PythonQtShell_QHeaderView::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::leaveEvent(arg__1); +} +int PythonQtShell_QHeaderView::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::metric(arg__1); +} +void PythonQtShell_QHeaderView::mouseDoubleClickEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::mouseDoubleClickEvent(e); +} +void PythonQtShell_QHeaderView::mouseMoveEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::mouseMoveEvent(e); +} +void PythonQtShell_QHeaderView::mousePressEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::mousePressEvent(e); +} +void PythonQtShell_QHeaderView::mouseReleaseEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::mouseReleaseEvent(e); +} +void PythonQtShell_QHeaderView::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::moveEvent(arg__1); +} +bool PythonQtShell_QHeaderView::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QHeaderView::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::paintEngine(); +} +void PythonQtShell_QHeaderView::paintEvent(QPaintEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::paintEvent(e); +} +void PythonQtShell_QHeaderView::paintSection(QPainter* painter, const QRect& rect, int logicalIndex) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintSection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&rect, (void*)&logicalIndex}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::paintSection(painter, rect, logicalIndex); +} +QPaintDevice* PythonQtShell_QHeaderView::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::redirected(offset); +} +void PythonQtShell_QHeaderView::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::reset(); +} +void PythonQtShell_QHeaderView::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::resizeEvent(event); +} +void PythonQtShell_QHeaderView::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::rowsAboutToBeRemoved(parent, start, end); +} +void PythonQtShell_QHeaderView::rowsInserted(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::rowsInserted(parent, start, end); +} +void PythonQtShell_QHeaderView::scrollContentsBy(int dx, int dy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&dx, (void*)&dy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::scrollContentsBy(dx, dy); +} +void PythonQtShell_QHeaderView::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&index, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::scrollTo(index, hint); +} +QSize PythonQtShell_QHeaderView::sectionSizeFromContents(int logicalIndex) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sectionSizeFromContents"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QSize returnValue; + void* args[2] = {NULL, (void*)&logicalIndex}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sectionSizeFromContents", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::sectionSizeFromContents(logicalIndex); +} +void PythonQtShell_QHeaderView::selectAll() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::selectAll(); +} +QList PythonQtShell_QHeaderView::selectedIndexes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::selectedIndexes(); +} +void PythonQtShell_QHeaderView::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::selectionChanged(selected, deselected); +} +QItemSelectionModel::SelectionFlags PythonQtShell_QHeaderView::selectionCommand(const QModelIndex& index, const QEvent* event) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QItemSelectionModel::SelectionFlags returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); + } else { + returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::selectionCommand(index, event); +} +void PythonQtShell_QHeaderView::setModel(QAbstractItemModel* model) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractItemModel*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&model}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::setModel(model); +} +void PythonQtShell_QHeaderView::setRootIndex(const QModelIndex& index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::setRootIndex(index); +} +void PythonQtShell_QHeaderView::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags flags) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&rect, (void*)&flags}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::setSelection(rect, flags); +} +void PythonQtShell_QHeaderView::setSelectionModel(QItemSelectionModel* selectionModel) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QItemSelectionModel*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&selectionModel}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::setSelectionModel(selectionModel); +} +void PythonQtShell_QHeaderView::setupViewport(QWidget* viewport) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&viewport}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::setupViewport(viewport); +} +QPainter* PythonQtShell_QHeaderView::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::sharedPainter(); +} +void PythonQtShell_QHeaderView::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::showEvent(arg__1); +} +int PythonQtShell_QHeaderView::sizeHintForColumn(int column) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&column}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::sizeHintForColumn(column); +} +int PythonQtShell_QHeaderView::sizeHintForRow(int row) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&row}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::sizeHintForRow(row); +} +void PythonQtShell_QHeaderView::startDrag(Qt::DropActions supportedActions) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&supportedActions}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::startDrag(supportedActions); +} +void PythonQtShell_QHeaderView::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::tabletEvent(arg__1); +} +void PythonQtShell_QHeaderView::timerEvent(QTimerEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::timerEvent(event); +} +void PythonQtShell_QHeaderView::updateEditorData() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::updateEditorData(); +} +void PythonQtShell_QHeaderView::updateEditorGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::updateEditorGeometries(); +} +void PythonQtShell_QHeaderView::updateGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::updateGeometries(); +} +int PythonQtShell_QHeaderView::verticalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::verticalOffset(); +} +void PythonQtShell_QHeaderView::verticalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::verticalScrollbarAction(action); +} +void PythonQtShell_QHeaderView::verticalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::verticalScrollbarValueChanged(value); +} +QStyleOptionViewItem PythonQtShell_QHeaderView::viewOptions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStyleOptionViewItem"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStyleOptionViewItem returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); + } else { + returnValue = *((QStyleOptionViewItem*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::viewOptions(); +} +bool PythonQtShell_QHeaderView::viewportEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::viewportEvent(e); +} +QSize PythonQtShell_QHeaderView::viewportSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::viewportSizeHint(); +} +QRect PythonQtShell_QHeaderView::visualRect(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRect returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::visualRect(index); +} +QRegion PythonQtShell_QHeaderView::visualRegionForSelection(const QItemSelection& selection) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRegion returnValue; + void* args[2] = {NULL, (void*)&selection}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); + } else { + returnValue = *((QRegion*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QHeaderView::visualRegionForSelection(selection); +} +void PythonQtShell_QHeaderView::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QHeaderView::wheelEvent(arg__1); +} +QHeaderView* PythonQtWrapper_QHeaderView::new_QHeaderView(Qt::Orientation orientation, QWidget* parent) +{ +return new PythonQtShell_QHeaderView(orientation, parent); } + +bool PythonQtWrapper_QHeaderView::cascadingSectionResizes(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->cascadingSectionResizes()); +} + +int PythonQtWrapper_QHeaderView::count(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +void PythonQtWrapper_QHeaderView::currentChanged(QHeaderView* theWrappedObject, const QModelIndex& current, const QModelIndex& old) +{ + ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_currentChanged(current, old)); +} + +void PythonQtWrapper_QHeaderView::dataChanged(QHeaderView* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles) +{ + ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_dataChanged(topLeft, bottomRight, roles)); +} + +Qt::Alignment PythonQtWrapper_QHeaderView::defaultAlignment(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->defaultAlignment()); +} + +int PythonQtWrapper_QHeaderView::defaultSectionSize(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->defaultSectionSize()); +} + +void PythonQtWrapper_QHeaderView::doItemsLayout(QHeaderView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_doItemsLayout()); +} + +bool PythonQtWrapper_QHeaderView::event(QHeaderView* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_event(e)); +} + +int PythonQtWrapper_QHeaderView::hiddenSectionCount(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->hiddenSectionCount()); +} + +void PythonQtWrapper_QHeaderView::hideSection(QHeaderView* theWrappedObject, int logicalIndex) +{ + ( theWrappedObject->hideSection(logicalIndex)); +} + +bool PythonQtWrapper_QHeaderView::highlightSections(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->highlightSections()); +} + +int PythonQtWrapper_QHeaderView::horizontalOffset(QHeaderView* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_horizontalOffset()); +} + +QModelIndex PythonQtWrapper_QHeaderView::indexAt(QHeaderView* theWrappedObject, const QPoint& p) const +{ + return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_indexAt(p)); +} + +bool PythonQtWrapper_QHeaderView::isIndexHidden(QHeaderView* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_isIndexHidden(index)); +} + +bool PythonQtWrapper_QHeaderView::isSectionHidden(QHeaderView* theWrappedObject, int logicalIndex) const +{ + return ( theWrappedObject->isSectionHidden(logicalIndex)); +} + +bool PythonQtWrapper_QHeaderView::isSortIndicatorShown(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->isSortIndicatorShown()); +} + +int PythonQtWrapper_QHeaderView::length(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->length()); +} + +int PythonQtWrapper_QHeaderView::logicalIndex(QHeaderView* theWrappedObject, int visualIndex) const +{ + return ( theWrappedObject->logicalIndex(visualIndex)); +} + +int PythonQtWrapper_QHeaderView::logicalIndexAt(QHeaderView* theWrappedObject, const QPoint& pos) const +{ + return ( theWrappedObject->logicalIndexAt(pos)); +} + +int PythonQtWrapper_QHeaderView::logicalIndexAt(QHeaderView* theWrappedObject, int position) const +{ + return ( theWrappedObject->logicalIndexAt(position)); +} + +int PythonQtWrapper_QHeaderView::logicalIndexAt(QHeaderView* theWrappedObject, int x, int y) const +{ + return ( theWrappedObject->logicalIndexAt(x, y)); +} + +int PythonQtWrapper_QHeaderView::minimumSectionSize(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->minimumSectionSize()); +} + +void PythonQtWrapper_QHeaderView::mouseDoubleClickEvent(QHeaderView* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_mouseDoubleClickEvent(e)); +} + +void PythonQtWrapper_QHeaderView::mouseMoveEvent(QHeaderView* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_mouseMoveEvent(e)); +} + +void PythonQtWrapper_QHeaderView::mousePressEvent(QHeaderView* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_mousePressEvent(e)); +} + +void PythonQtWrapper_QHeaderView::mouseReleaseEvent(QHeaderView* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_mouseReleaseEvent(e)); +} + +void PythonQtWrapper_QHeaderView::moveSection(QHeaderView* theWrappedObject, int from, int to) +{ + ( theWrappedObject->moveSection(from, to)); +} + +int PythonQtWrapper_QHeaderView::offset(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->offset()); +} + +Qt::Orientation PythonQtWrapper_QHeaderView::orientation(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->orientation()); +} + +void PythonQtWrapper_QHeaderView::paintEvent(QHeaderView* theWrappedObject, QPaintEvent* e) +{ + ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_paintEvent(e)); +} + +void PythonQtWrapper_QHeaderView::paintSection(QHeaderView* theWrappedObject, QPainter* painter, const QRect& rect, int logicalIndex) const +{ + ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_paintSection(painter, rect, logicalIndex)); +} + +void PythonQtWrapper_QHeaderView::reset(QHeaderView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_reset()); +} + +void PythonQtWrapper_QHeaderView::resizeSection(QHeaderView* theWrappedObject, int logicalIndex, int size) +{ + ( theWrappedObject->resizeSection(logicalIndex, size)); +} + +void PythonQtWrapper_QHeaderView::resizeSections(QHeaderView* theWrappedObject, QHeaderView::ResizeMode mode) +{ + ( theWrappedObject->resizeSections(mode)); +} + +bool PythonQtWrapper_QHeaderView::restoreState(QHeaderView* theWrappedObject, const QByteArray& state) +{ + return ( theWrappedObject->restoreState(state)); +} + +void PythonQtWrapper_QHeaderView::rowsInserted(QHeaderView* theWrappedObject, const QModelIndex& parent, int start, int end) +{ + ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_rowsInserted(parent, start, end)); +} + +QByteArray PythonQtWrapper_QHeaderView::saveState(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->saveState()); +} + +void PythonQtWrapper_QHeaderView::scrollContentsBy(QHeaderView* theWrappedObject, int dx, int dy) +{ + ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); +} + +void PythonQtWrapper_QHeaderView::scrollTo(QHeaderView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint) +{ + ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_scrollTo(index, hint)); +} + +int PythonQtWrapper_QHeaderView::sectionPosition(QHeaderView* theWrappedObject, int logicalIndex) const +{ + return ( theWrappedObject->sectionPosition(logicalIndex)); +} + +QHeaderView::ResizeMode PythonQtWrapper_QHeaderView::sectionResizeMode(QHeaderView* theWrappedObject, int logicalIndex) const +{ + return ( theWrappedObject->sectionResizeMode(logicalIndex)); +} + +int PythonQtWrapper_QHeaderView::sectionSize(QHeaderView* theWrappedObject, int logicalIndex) const +{ + return ( theWrappedObject->sectionSize(logicalIndex)); +} + +QSize PythonQtWrapper_QHeaderView::sectionSizeFromContents(QHeaderView* theWrappedObject, int logicalIndex) const +{ + return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_sectionSizeFromContents(logicalIndex)); +} + +int PythonQtWrapper_QHeaderView::sectionSizeHint(QHeaderView* theWrappedObject, int logicalIndex) const +{ + return ( theWrappedObject->sectionSizeHint(logicalIndex)); +} + +int PythonQtWrapper_QHeaderView::sectionViewportPosition(QHeaderView* theWrappedObject, int logicalIndex) const +{ + return ( theWrappedObject->sectionViewportPosition(logicalIndex)); +} + +bool PythonQtWrapper_QHeaderView::sectionsClickable(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->sectionsClickable()); +} + +bool PythonQtWrapper_QHeaderView::sectionsHidden(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->sectionsHidden()); +} + +bool PythonQtWrapper_QHeaderView::sectionsMovable(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->sectionsMovable()); +} + +bool PythonQtWrapper_QHeaderView::sectionsMoved(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->sectionsMoved()); +} + +void PythonQtWrapper_QHeaderView::setCascadingSectionResizes(QHeaderView* theWrappedObject, bool enable) +{ + ( theWrappedObject->setCascadingSectionResizes(enable)); +} + +void PythonQtWrapper_QHeaderView::setDefaultAlignment(QHeaderView* theWrappedObject, Qt::Alignment alignment) +{ + ( theWrappedObject->setDefaultAlignment(alignment)); +} + +void PythonQtWrapper_QHeaderView::setDefaultSectionSize(QHeaderView* theWrappedObject, int size) +{ + ( theWrappedObject->setDefaultSectionSize(size)); +} + +void PythonQtWrapper_QHeaderView::setHighlightSections(QHeaderView* theWrappedObject, bool highlight) +{ + ( theWrappedObject->setHighlightSections(highlight)); +} + +void PythonQtWrapper_QHeaderView::setMinimumSectionSize(QHeaderView* theWrappedObject, int size) +{ + ( theWrappedObject->setMinimumSectionSize(size)); +} + +void PythonQtWrapper_QHeaderView::setModel(QHeaderView* theWrappedObject, QAbstractItemModel* model) +{ + ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_setModel(model)); +} + +void PythonQtWrapper_QHeaderView::setSectionHidden(QHeaderView* theWrappedObject, int logicalIndex, bool hide) +{ + ( theWrappedObject->setSectionHidden(logicalIndex, hide)); +} + +void PythonQtWrapper_QHeaderView::setSectionResizeMode(QHeaderView* theWrappedObject, QHeaderView::ResizeMode mode) +{ + ( theWrappedObject->setSectionResizeMode(mode)); +} + +void PythonQtWrapper_QHeaderView::setSectionResizeMode(QHeaderView* theWrappedObject, int logicalIndex, QHeaderView::ResizeMode mode) +{ + ( theWrappedObject->setSectionResizeMode(logicalIndex, mode)); +} + +void PythonQtWrapper_QHeaderView::setSectionsClickable(QHeaderView* theWrappedObject, bool clickable) +{ + ( theWrappedObject->setSectionsClickable(clickable)); +} + +void PythonQtWrapper_QHeaderView::setSectionsMovable(QHeaderView* theWrappedObject, bool movable) +{ + ( theWrappedObject->setSectionsMovable(movable)); +} + +void PythonQtWrapper_QHeaderView::setSelection(QHeaderView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags flags) +{ + ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_setSelection(rect, flags)); +} + +void PythonQtWrapper_QHeaderView::setSortIndicator(QHeaderView* theWrappedObject, int logicalIndex, Qt::SortOrder order) +{ + ( theWrappedObject->setSortIndicator(logicalIndex, order)); +} + +void PythonQtWrapper_QHeaderView::setSortIndicatorShown(QHeaderView* theWrappedObject, bool show) +{ + ( theWrappedObject->setSortIndicatorShown(show)); +} + +void PythonQtWrapper_QHeaderView::setStretchLastSection(QHeaderView* theWrappedObject, bool stretch) +{ + ( theWrappedObject->setStretchLastSection(stretch)); +} + +void PythonQtWrapper_QHeaderView::showSection(QHeaderView* theWrappedObject, int logicalIndex) +{ + ( theWrappedObject->showSection(logicalIndex)); +} + +QSize PythonQtWrapper_QHeaderView::sizeHint(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +Qt::SortOrder PythonQtWrapper_QHeaderView::sortIndicatorOrder(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->sortIndicatorOrder()); +} + +int PythonQtWrapper_QHeaderView::sortIndicatorSection(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->sortIndicatorSection()); +} + +bool PythonQtWrapper_QHeaderView::stretchLastSection(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->stretchLastSection()); +} + +int PythonQtWrapper_QHeaderView::stretchSectionCount(QHeaderView* theWrappedObject) const +{ + return ( theWrappedObject->stretchSectionCount()); +} + +void PythonQtWrapper_QHeaderView::swapSections(QHeaderView* theWrappedObject, int first, int second) +{ + ( theWrappedObject->swapSections(first, second)); +} + +void PythonQtWrapper_QHeaderView::updateGeometries(QHeaderView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_updateGeometries()); +} + +int PythonQtWrapper_QHeaderView::verticalOffset(QHeaderView* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_verticalOffset()); +} + +bool PythonQtWrapper_QHeaderView::viewportEvent(QHeaderView* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_viewportEvent(e)); +} + +int PythonQtWrapper_QHeaderView::visualIndex(QHeaderView* theWrappedObject, int logicalIndex) const +{ + return ( theWrappedObject->visualIndex(logicalIndex)); +} + +int PythonQtWrapper_QHeaderView::visualIndexAt(QHeaderView* theWrappedObject, int position) const +{ + return ( theWrappedObject->visualIndexAt(position)); +} + +QRect PythonQtWrapper_QHeaderView::visualRect(QHeaderView* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_visualRect(index)); +} + +QRegion PythonQtWrapper_QHeaderView::visualRegionForSelection(QHeaderView* theWrappedObject, const QItemSelection& selection) const +{ + return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_visualRegionForSelection(selection)); +} + +#endif + +QHelpEvent* PythonQtWrapper_QHelpEvent::new_QHelpEvent(QEvent::Type type, const QPoint& pos, const QPoint& globalPos) +{ +return new QHelpEvent(type, pos, globalPos); } + +const QPoint* PythonQtWrapper_QHelpEvent::globalPos(QHelpEvent* theWrappedObject) const +{ + return &( theWrappedObject->globalPos()); +} + +int PythonQtWrapper_QHelpEvent::globalX(QHelpEvent* theWrappedObject) const +{ + return ( theWrappedObject->globalX()); +} + +int PythonQtWrapper_QHelpEvent::globalY(QHelpEvent* theWrappedObject) const +{ + return ( theWrappedObject->globalY()); +} + +const QPoint* PythonQtWrapper_QHelpEvent::pos(QHelpEvent* theWrappedObject) const +{ + return &( theWrappedObject->pos()); +} + +int PythonQtWrapper_QHelpEvent::x(QHelpEvent* theWrappedObject) const +{ + return ( theWrappedObject->x()); +} + +int PythonQtWrapper_QHelpEvent::y(QHelpEvent* theWrappedObject) const +{ + return ( theWrappedObject->y()); +} + + + +QHideEvent* PythonQtWrapper_QHideEvent::new_QHideEvent() +{ +return new QHideEvent(); } + + + +PythonQtShell_QHoverEvent::~PythonQtShell_QHoverEvent() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QHoverEvent* PythonQtWrapper_QHoverEvent::new_QHoverEvent(QEvent::Type type, const QPointF& pos, const QPointF& oldPos, Qt::KeyboardModifiers modifiers) +{ +return new PythonQtShell_QHoverEvent(type, pos, oldPos, modifiers); } + +QPoint PythonQtWrapper_QHoverEvent::oldPos(QHoverEvent* theWrappedObject) const +{ + return ( theWrappedObject->oldPos()); +} + +const QPointF* PythonQtWrapper_QHoverEvent::oldPosF(QHoverEvent* theWrappedObject) const +{ + return &( theWrappedObject->oldPosF()); +} + +QPoint PythonQtWrapper_QHoverEvent::pos(QHoverEvent* theWrappedObject) const +{ + return ( theWrappedObject->pos()); +} + +const QPointF* PythonQtWrapper_QHoverEvent::posF(QHoverEvent* theWrappedObject) const +{ + return &( theWrappedObject->posF()); +} + + + +QIconDragEvent* PythonQtWrapper_QIconDragEvent::new_QIconDragEvent() +{ +return new QIconDragEvent(); } + + + +PythonQtShell_QImageIOHandler::~PythonQtShell_QImageIOHandler() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QImageIOHandler::canRead() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canRead"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canRead", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +int PythonQtShell_QImageIOHandler::currentImageNumber() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentImageNumber"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("currentImageNumber", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImageIOHandler::currentImageNumber(); +} +QRect PythonQtShell_QImageIOHandler::currentImageRect() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentImageRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QRect returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("currentImageRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImageIOHandler::currentImageRect(); +} +int PythonQtShell_QImageIOHandler::imageCount() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "imageCount"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("imageCount", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImageIOHandler::imageCount(); +} +bool PythonQtShell_QImageIOHandler::jumpToImage(int imageNumber) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "jumpToImage"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&imageNumber}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("jumpToImage", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImageIOHandler::jumpToImage(imageNumber); +} +bool PythonQtShell_QImageIOHandler::jumpToNextImage() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "jumpToNextImage"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("jumpToNextImage", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImageIOHandler::jumpToNextImage(); +} +int PythonQtShell_QImageIOHandler::loopCount() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "loopCount"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("loopCount", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImageIOHandler::loopCount(); +} +QByteArray PythonQtShell_QImageIOHandler::name() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "name"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QByteArray"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QByteArray returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("name", methodInfo, result); + } else { + returnValue = *((QByteArray*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImageIOHandler::name(); +} +int PythonQtShell_QImageIOHandler::nextImageDelay() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextImageDelay"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nextImageDelay", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImageIOHandler::nextImageDelay(); +} +QVariant PythonQtShell_QImageIOHandler::option(QImageIOHandler::ImageOption option) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "option"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "QImageIOHandler::ImageOption"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&option}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("option", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImageIOHandler::option(option); +} +bool PythonQtShell_QImageIOHandler::read(QImage* image) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "read"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QImage*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&image}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("read", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +void PythonQtShell_QImageIOHandler::setOption(QImageIOHandler::ImageOption option, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setOption"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QImageIOHandler::ImageOption" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&option, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QImageIOHandler::setOption(option, value); +} +bool PythonQtShell_QImageIOHandler::supportsOption(QImageIOHandler::ImageOption option) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportsOption"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QImageIOHandler::ImageOption"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&option}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportsOption", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImageIOHandler::supportsOption(option); +} +bool PythonQtShell_QImageIOHandler::write(const QImage& image) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "write"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QImage&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&image}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("write", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImageIOHandler::write(image); +} +QImageIOHandler* PythonQtWrapper_QImageIOHandler::new_QImageIOHandler() +{ +return new PythonQtShell_QImageIOHandler(); } + +int PythonQtWrapper_QImageIOHandler::currentImageNumber(QImageIOHandler* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_currentImageNumber()); +} + +QRect PythonQtWrapper_QImageIOHandler::currentImageRect(QImageIOHandler* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_currentImageRect()); +} + +QIODevice* PythonQtWrapper_QImageIOHandler::device(QImageIOHandler* theWrappedObject) const +{ + return ( theWrappedObject->device()); +} + +QByteArray PythonQtWrapper_QImageIOHandler::format(QImageIOHandler* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +int PythonQtWrapper_QImageIOHandler::imageCount(QImageIOHandler* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_imageCount()); +} + +bool PythonQtWrapper_QImageIOHandler::jumpToImage(QImageIOHandler* theWrappedObject, int imageNumber) +{ + return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_jumpToImage(imageNumber)); +} + +bool PythonQtWrapper_QImageIOHandler::jumpToNextImage(QImageIOHandler* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_jumpToNextImage()); +} + +int PythonQtWrapper_QImageIOHandler::loopCount(QImageIOHandler* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_loopCount()); +} + +int PythonQtWrapper_QImageIOHandler::nextImageDelay(QImageIOHandler* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_nextImageDelay()); +} + +QVariant PythonQtWrapper_QImageIOHandler::option(QImageIOHandler* theWrappedObject, QImageIOHandler::ImageOption option) const +{ + return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_option(option)); +} + +void PythonQtWrapper_QImageIOHandler::setDevice(QImageIOHandler* theWrappedObject, QIODevice* device) +{ + ( theWrappedObject->setDevice(device)); +} + +void PythonQtWrapper_QImageIOHandler::setFormat(QImageIOHandler* theWrappedObject, const QByteArray& format) +{ + ( theWrappedObject->setFormat(format)); +} + +void PythonQtWrapper_QImageIOHandler::setOption(QImageIOHandler* theWrappedObject, QImageIOHandler::ImageOption option, const QVariant& value) +{ + ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_setOption(option, value)); +} + +bool PythonQtWrapper_QImageIOHandler::supportsOption(QImageIOHandler* theWrappedObject, QImageIOHandler::ImageOption option) const +{ + return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_supportsOption(option)); +} + +bool PythonQtWrapper_QImageIOHandler::write(QImageIOHandler* theWrappedObject, const QImage& image) +{ + return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_write(image)); +} + + + +PythonQtShell_QImageIOPlugin::~PythonQtShell_QImageIOPlugin() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QImageIOPlugin::Capabilities PythonQtShell_QImageIOPlugin::capabilities(QIODevice* device, const QByteArray& format) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "capabilities"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QImageIOPlugin::Capabilities" , "QIODevice*" , "const QByteArray&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QImageIOPlugin::Capabilities returnValue; + void* args[3] = {NULL, (void*)&device, (void*)&format}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("capabilities", methodInfo, result); + } else { + returnValue = *((QImageIOPlugin::Capabilities*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImageIOPlugin::Capabilities(); +} +void PythonQtShell_QImageIOPlugin::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QImageIOPlugin::childEvent(arg__1); +} +QImageIOHandler* PythonQtShell_QImageIOPlugin::create(QIODevice* device, const QByteArray& format) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "create"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QImageIOHandler*" , "QIODevice*" , "const QByteArray&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QImageIOHandler* returnValue; + void* args[3] = {NULL, (void*)&device, (void*)&format}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("create", methodInfo, result); + } else { + returnValue = *((QImageIOHandler**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +void PythonQtShell_QImageIOPlugin::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QImageIOPlugin::customEvent(arg__1); +} +bool PythonQtShell_QImageIOPlugin::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImageIOPlugin::event(arg__1); +} +bool PythonQtShell_QImageIOPlugin::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImageIOPlugin::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QImageIOPlugin::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QImageIOPlugin::timerEvent(arg__1); +} +QImageIOPlugin* PythonQtWrapper_QImageIOPlugin::new_QImageIOPlugin(QObject* parent) +{ +return new PythonQtShell_QImageIOPlugin(parent); } + + + +QImageReader* PythonQtWrapper_QImageReader::new_QImageReader() +{ +return new QImageReader(); } + +QImageReader* PythonQtWrapper_QImageReader::new_QImageReader(QIODevice* device, const QByteArray& format) +{ +return new QImageReader(device, format); } + +QImageReader* PythonQtWrapper_QImageReader::new_QImageReader(const QString& fileName, const QByteArray& format) +{ +return new QImageReader(fileName, format); } + +bool PythonQtWrapper_QImageReader::autoDetectImageFormat(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->autoDetectImageFormat()); +} + +QColor PythonQtWrapper_QImageReader::backgroundColor(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->backgroundColor()); +} + +bool PythonQtWrapper_QImageReader::canRead(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->canRead()); +} + +QRect PythonQtWrapper_QImageReader::clipRect(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->clipRect()); +} + +int PythonQtWrapper_QImageReader::currentImageNumber(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->currentImageNumber()); +} + +QRect PythonQtWrapper_QImageReader::currentImageRect(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->currentImageRect()); +} + +bool PythonQtWrapper_QImageReader::decideFormatFromContent(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->decideFormatFromContent()); +} + +QIODevice* PythonQtWrapper_QImageReader::device(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->device()); +} + +QImageReader::ImageReaderError PythonQtWrapper_QImageReader::error(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->error()); +} + +QString PythonQtWrapper_QImageReader::errorString(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->errorString()); +} + +QString PythonQtWrapper_QImageReader::fileName(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->fileName()); +} + +QByteArray PythonQtWrapper_QImageReader::format(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +int PythonQtWrapper_QImageReader::imageCount(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->imageCount()); +} + +QImage::Format PythonQtWrapper_QImageReader::imageFormat(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->imageFormat()); +} + +QByteArray PythonQtWrapper_QImageReader::static_QImageReader_imageFormat(QIODevice* device) +{ + return (QImageReader::imageFormat(device)); +} + +QByteArray PythonQtWrapper_QImageReader::static_QImageReader_imageFormat(const QString& fileName) +{ + return (QImageReader::imageFormat(fileName)); +} + +bool PythonQtWrapper_QImageReader::jumpToImage(QImageReader* theWrappedObject, int imageNumber) +{ + return ( theWrappedObject->jumpToImage(imageNumber)); +} + +bool PythonQtWrapper_QImageReader::jumpToNextImage(QImageReader* theWrappedObject) +{ + return ( theWrappedObject->jumpToNextImage()); +} + +int PythonQtWrapper_QImageReader::loopCount(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->loopCount()); +} + +int PythonQtWrapper_QImageReader::nextImageDelay(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->nextImageDelay()); +} + +int PythonQtWrapper_QImageReader::quality(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->quality()); +} + +QImage PythonQtWrapper_QImageReader::read(QImageReader* theWrappedObject) +{ + return ( theWrappedObject->read()); +} + +QRect PythonQtWrapper_QImageReader::scaledClipRect(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->scaledClipRect()); +} + +QSize PythonQtWrapper_QImageReader::scaledSize(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->scaledSize()); +} + +void PythonQtWrapper_QImageReader::setAutoDetectImageFormat(QImageReader* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setAutoDetectImageFormat(enabled)); +} + +void PythonQtWrapper_QImageReader::setBackgroundColor(QImageReader* theWrappedObject, const QColor& color) +{ + ( theWrappedObject->setBackgroundColor(color)); +} + +void PythonQtWrapper_QImageReader::setClipRect(QImageReader* theWrappedObject, const QRect& rect) +{ + ( theWrappedObject->setClipRect(rect)); +} + +void PythonQtWrapper_QImageReader::setDecideFormatFromContent(QImageReader* theWrappedObject, bool ignored) +{ + ( theWrappedObject->setDecideFormatFromContent(ignored)); +} + +void PythonQtWrapper_QImageReader::setDevice(QImageReader* theWrappedObject, QIODevice* device) +{ + ( theWrappedObject->setDevice(device)); +} + +void PythonQtWrapper_QImageReader::setFileName(QImageReader* theWrappedObject, const QString& fileName) +{ + ( theWrappedObject->setFileName(fileName)); +} + +void PythonQtWrapper_QImageReader::setFormat(QImageReader* theWrappedObject, const QByteArray& format) +{ + ( theWrappedObject->setFormat(format)); +} + +void PythonQtWrapper_QImageReader::setQuality(QImageReader* theWrappedObject, int quality) +{ + ( theWrappedObject->setQuality(quality)); +} + +void PythonQtWrapper_QImageReader::setScaledClipRect(QImageReader* theWrappedObject, const QRect& rect) +{ + ( theWrappedObject->setScaledClipRect(rect)); +} + +void PythonQtWrapper_QImageReader::setScaledSize(QImageReader* theWrappedObject, const QSize& size) +{ + ( theWrappedObject->setScaledSize(size)); +} + +QSize PythonQtWrapper_QImageReader::size(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +QList PythonQtWrapper_QImageReader::static_QImageReader_supportedImageFormats() +{ + return (QImageReader::supportedImageFormats()); +} + +bool PythonQtWrapper_QImageReader::supportsAnimation(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->supportsAnimation()); +} + +bool PythonQtWrapper_QImageReader::supportsOption(QImageReader* theWrappedObject, QImageIOHandler::ImageOption option) const +{ + return ( theWrappedObject->supportsOption(option)); +} + +QString PythonQtWrapper_QImageReader::text(QImageReader* theWrappedObject, const QString& key) const +{ + return ( theWrappedObject->text(key)); +} + +QStringList PythonQtWrapper_QImageReader::textKeys(QImageReader* theWrappedObject) const +{ + return ( theWrappedObject->textKeys()); +} + + + +QImageWriter* PythonQtWrapper_QImageWriter::new_QImageWriter() +{ +return new QImageWriter(); } + +QImageWriter* PythonQtWrapper_QImageWriter::new_QImageWriter(QIODevice* device, const QByteArray& format) +{ +return new QImageWriter(device, format); } + +QImageWriter* PythonQtWrapper_QImageWriter::new_QImageWriter(const QString& fileName, const QByteArray& format) +{ +return new QImageWriter(fileName, format); } + +bool PythonQtWrapper_QImageWriter::canWrite(QImageWriter* theWrappedObject) const +{ + return ( theWrappedObject->canWrite()); +} + +int PythonQtWrapper_QImageWriter::compression(QImageWriter* theWrappedObject) const +{ + return ( theWrappedObject->compression()); +} + +QIODevice* PythonQtWrapper_QImageWriter::device(QImageWriter* theWrappedObject) const +{ + return ( theWrappedObject->device()); +} + +QImageWriter::ImageWriterError PythonQtWrapper_QImageWriter::error(QImageWriter* theWrappedObject) const +{ + return ( theWrappedObject->error()); +} + +QString PythonQtWrapper_QImageWriter::errorString(QImageWriter* theWrappedObject) const +{ + return ( theWrappedObject->errorString()); +} + +QString PythonQtWrapper_QImageWriter::fileName(QImageWriter* theWrappedObject) const +{ + return ( theWrappedObject->fileName()); +} + +QByteArray PythonQtWrapper_QImageWriter::format(QImageWriter* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +float PythonQtWrapper_QImageWriter::gamma(QImageWriter* theWrappedObject) const +{ + return ( theWrappedObject->gamma()); +} + +int PythonQtWrapper_QImageWriter::quality(QImageWriter* theWrappedObject) const +{ + return ( theWrappedObject->quality()); +} + +void PythonQtWrapper_QImageWriter::setCompression(QImageWriter* theWrappedObject, int compression) +{ + ( theWrappedObject->setCompression(compression)); +} + +void PythonQtWrapper_QImageWriter::setDevice(QImageWriter* theWrappedObject, QIODevice* device) +{ + ( theWrappedObject->setDevice(device)); +} + +void PythonQtWrapper_QImageWriter::setFileName(QImageWriter* theWrappedObject, const QString& fileName) +{ + ( theWrappedObject->setFileName(fileName)); +} + +void PythonQtWrapper_QImageWriter::setFormat(QImageWriter* theWrappedObject, const QByteArray& format) +{ + ( theWrappedObject->setFormat(format)); +} + +void PythonQtWrapper_QImageWriter::setGamma(QImageWriter* theWrappedObject, float gamma) +{ + ( theWrappedObject->setGamma(gamma)); +} + +void PythonQtWrapper_QImageWriter::setQuality(QImageWriter* theWrappedObject, int quality) +{ + ( theWrappedObject->setQuality(quality)); +} + +void PythonQtWrapper_QImageWriter::setText(QImageWriter* theWrappedObject, const QString& key, const QString& text) +{ + ( theWrappedObject->setText(key, text)); +} + +QList PythonQtWrapper_QImageWriter::static_QImageWriter_supportedImageFormats() +{ + return (QImageWriter::supportedImageFormats()); +} + +bool PythonQtWrapper_QImageWriter::supportsOption(QImageWriter* theWrappedObject, QImageIOHandler::ImageOption option) const +{ + return ( theWrappedObject->supportsOption(option)); +} + +bool PythonQtWrapper_QImageWriter::write(QImageWriter* theWrappedObject, const QImage& image) +{ + return ( theWrappedObject->write(image)); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QInputDialog::~PythonQtShell_QInputDialog() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QInputDialog::accept() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::accept(); +} +void PythonQtShell_QInputDialog::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::actionEvent(arg__1); +} +void PythonQtShell_QInputDialog::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::changeEvent(arg__1); +} +void PythonQtShell_QInputDialog::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::childEvent(arg__1); +} +void PythonQtShell_QInputDialog::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::closeEvent(arg__1); +} +void PythonQtShell_QInputDialog::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::contextMenuEvent(arg__1); +} +void PythonQtShell_QInputDialog::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::customEvent(arg__1); +} +int PythonQtShell_QInputDialog::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QInputDialog::devType(); +} +void PythonQtShell_QInputDialog::done(int result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::done(result); +} +void PythonQtShell_QInputDialog::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::dragEnterEvent(arg__1); +} +void PythonQtShell_QInputDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::dragLeaveEvent(arg__1); +} +void PythonQtShell_QInputDialog::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::dragMoveEvent(arg__1); +} +void PythonQtShell_QInputDialog::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::dropEvent(arg__1); +} +void PythonQtShell_QInputDialog::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::enterEvent(arg__1); +} +bool PythonQtShell_QInputDialog::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QInputDialog::event(arg__1); +} +bool PythonQtShell_QInputDialog::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QInputDialog::eventFilter(arg__1, arg__2); +} +int PythonQtShell_QInputDialog::exec() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QInputDialog::exec(); +} +void PythonQtShell_QInputDialog::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::focusInEvent(arg__1); +} +bool PythonQtShell_QInputDialog::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QInputDialog::focusNextPrevChild(next); +} +void PythonQtShell_QInputDialog::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::focusOutEvent(arg__1); +} +bool PythonQtShell_QInputDialog::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QInputDialog::hasHeightForWidth(); +} +int PythonQtShell_QInputDialog::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QInputDialog::heightForWidth(arg__1); +} +void PythonQtShell_QInputDialog::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::hideEvent(arg__1); +} +void PythonQtShell_QInputDialog::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::initPainter(painter); +} +void PythonQtShell_QInputDialog::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QInputDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QInputDialog::inputMethodQuery(arg__1); +} +void PythonQtShell_QInputDialog::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::keyPressEvent(arg__1); +} +void PythonQtShell_QInputDialog::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::keyReleaseEvent(arg__1); +} +void PythonQtShell_QInputDialog::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::leaveEvent(arg__1); +} +int PythonQtShell_QInputDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QInputDialog::metric(arg__1); +} +void PythonQtShell_QInputDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QInputDialog::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::mouseMoveEvent(arg__1); +} +void PythonQtShell_QInputDialog::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::mousePressEvent(arg__1); +} +void PythonQtShell_QInputDialog::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QInputDialog::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::moveEvent(arg__1); +} +bool PythonQtShell_QInputDialog::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QInputDialog::nativeEvent(eventType, message, result); +} +void PythonQtShell_QInputDialog::open() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::open(); +} +QPaintEngine* PythonQtShell_QInputDialog::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QInputDialog::paintEngine(); +} +void PythonQtShell_QInputDialog::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QInputDialog::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QInputDialog::redirected(offset); +} +void PythonQtShell_QInputDialog::reject() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::reject(); +} +void PythonQtShell_QInputDialog::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QInputDialog::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QInputDialog::sharedPainter(); +} +void PythonQtShell_QInputDialog::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::showEvent(arg__1); +} +void PythonQtShell_QInputDialog::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::tabletEvent(arg__1); +} +void PythonQtShell_QInputDialog::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::timerEvent(arg__1); +} +void PythonQtShell_QInputDialog::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QInputDialog::wheelEvent(arg__1); +} +QInputDialog* PythonQtWrapper_QInputDialog::new_QInputDialog(QWidget* parent, Qt::WindowFlags flags) +{ +return new PythonQtShell_QInputDialog(parent, flags); } + +QString PythonQtWrapper_QInputDialog::cancelButtonText(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->cancelButtonText()); +} + +QStringList PythonQtWrapper_QInputDialog::comboBoxItems(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->comboBoxItems()); +} + +void PythonQtWrapper_QInputDialog::done(QInputDialog* theWrappedObject, int result) +{ + ( ((PythonQtPublicPromoter_QInputDialog*)theWrappedObject)->promoted_done(result)); +} + +int PythonQtWrapper_QInputDialog::doubleDecimals(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->doubleDecimals()); +} + +double PythonQtWrapper_QInputDialog::doubleMaximum(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->doubleMaximum()); +} + +double PythonQtWrapper_QInputDialog::doubleMinimum(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->doubleMinimum()); +} + +double PythonQtWrapper_QInputDialog::doubleValue(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->doubleValue()); +} + +double PythonQtWrapper_QInputDialog::static_QInputDialog_getDouble(QWidget* parent, const QString& title, const QString& label, double value, double minValue, double maxValue, int decimals, bool* ok, Qt::WindowFlags flags) +{ + return (QInputDialog::getDouble(parent, title, label, value, minValue, maxValue, decimals, ok, flags)); +} + +int PythonQtWrapper_QInputDialog::static_QInputDialog_getInt(QWidget* parent, const QString& title, const QString& label, int value, int minValue, int maxValue, int step, bool* ok, Qt::WindowFlags flags) +{ + return (QInputDialog::getInt(parent, title, label, value, minValue, maxValue, step, ok, flags)); +} + +QString PythonQtWrapper_QInputDialog::static_QInputDialog_getItem(QWidget* parent, const QString& title, const QString& label, const QStringList& items, int current, bool editable, bool* ok, Qt::WindowFlags flags, Qt::InputMethodHints inputMethodHints) +{ + return (QInputDialog::getItem(parent, title, label, items, current, editable, ok, flags, inputMethodHints)); +} + +QString PythonQtWrapper_QInputDialog::static_QInputDialog_getText(QWidget* parent, const QString& title, const QString& label, QLineEdit::EchoMode echo, const QString& text, bool* ok, Qt::WindowFlags flags, Qt::InputMethodHints inputMethodHints) +{ + return (QInputDialog::getText(parent, title, label, echo, text, ok, flags, inputMethodHints)); +} + +QInputDialog::InputMode PythonQtWrapper_QInputDialog::inputMode(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->inputMode()); +} + +int PythonQtWrapper_QInputDialog::intMaximum(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->intMaximum()); +} + +int PythonQtWrapper_QInputDialog::intMinimum(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->intMinimum()); +} + +int PythonQtWrapper_QInputDialog::intStep(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->intStep()); +} + +int PythonQtWrapper_QInputDialog::intValue(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->intValue()); +} + +bool PythonQtWrapper_QInputDialog::isComboBoxEditable(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->isComboBoxEditable()); +} + +QString PythonQtWrapper_QInputDialog::labelText(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->labelText()); +} + +QSize PythonQtWrapper_QInputDialog::minimumSizeHint(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +QString PythonQtWrapper_QInputDialog::okButtonText(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->okButtonText()); +} + +void PythonQtWrapper_QInputDialog::open(QInputDialog* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QInputDialog*)theWrappedObject)->promoted_open()); +} + +void PythonQtWrapper_QInputDialog::open(QInputDialog* theWrappedObject, QObject* receiver, const char* member) +{ + ( theWrappedObject->open(receiver, member)); +} + +QInputDialog::InputDialogOptions PythonQtWrapper_QInputDialog::options(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->options()); +} + +void PythonQtWrapper_QInputDialog::setCancelButtonText(QInputDialog* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setCancelButtonText(text)); +} + +void PythonQtWrapper_QInputDialog::setComboBoxEditable(QInputDialog* theWrappedObject, bool editable) +{ + ( theWrappedObject->setComboBoxEditable(editable)); +} + +void PythonQtWrapper_QInputDialog::setComboBoxItems(QInputDialog* theWrappedObject, const QStringList& items) +{ + ( theWrappedObject->setComboBoxItems(items)); +} + +void PythonQtWrapper_QInputDialog::setDoubleDecimals(QInputDialog* theWrappedObject, int decimals) +{ + ( theWrappedObject->setDoubleDecimals(decimals)); +} + +void PythonQtWrapper_QInputDialog::setDoubleMaximum(QInputDialog* theWrappedObject, double max) +{ + ( theWrappedObject->setDoubleMaximum(max)); +} + +void PythonQtWrapper_QInputDialog::setDoubleMinimum(QInputDialog* theWrappedObject, double min) +{ + ( theWrappedObject->setDoubleMinimum(min)); +} + +void PythonQtWrapper_QInputDialog::setDoubleRange(QInputDialog* theWrappedObject, double min, double max) +{ + ( theWrappedObject->setDoubleRange(min, max)); +} + +void PythonQtWrapper_QInputDialog::setDoubleValue(QInputDialog* theWrappedObject, double value) +{ + ( theWrappedObject->setDoubleValue(value)); +} + +void PythonQtWrapper_QInputDialog::setInputMode(QInputDialog* theWrappedObject, QInputDialog::InputMode mode) +{ + ( theWrappedObject->setInputMode(mode)); +} + +void PythonQtWrapper_QInputDialog::setIntMaximum(QInputDialog* theWrappedObject, int max) +{ + ( theWrappedObject->setIntMaximum(max)); +} + +void PythonQtWrapper_QInputDialog::setIntMinimum(QInputDialog* theWrappedObject, int min) +{ + ( theWrappedObject->setIntMinimum(min)); +} + +void PythonQtWrapper_QInputDialog::setIntRange(QInputDialog* theWrappedObject, int min, int max) +{ + ( theWrappedObject->setIntRange(min, max)); +} + +void PythonQtWrapper_QInputDialog::setIntStep(QInputDialog* theWrappedObject, int step) +{ + ( theWrappedObject->setIntStep(step)); +} + +void PythonQtWrapper_QInputDialog::setIntValue(QInputDialog* theWrappedObject, int value) +{ + ( theWrappedObject->setIntValue(value)); +} + +void PythonQtWrapper_QInputDialog::setLabelText(QInputDialog* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setLabelText(text)); +} + +void PythonQtWrapper_QInputDialog::setOkButtonText(QInputDialog* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setOkButtonText(text)); +} + +void PythonQtWrapper_QInputDialog::setOption(QInputDialog* theWrappedObject, QInputDialog::InputDialogOption option, bool on) +{ + ( theWrappedObject->setOption(option, on)); +} + +void PythonQtWrapper_QInputDialog::setOptions(QInputDialog* theWrappedObject, QInputDialog::InputDialogOptions options) +{ + ( theWrappedObject->setOptions(options)); +} + +void PythonQtWrapper_QInputDialog::setTextEchoMode(QInputDialog* theWrappedObject, QLineEdit::EchoMode mode) +{ + ( theWrappedObject->setTextEchoMode(mode)); +} + +void PythonQtWrapper_QInputDialog::setTextValue(QInputDialog* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setTextValue(text)); +} + +void PythonQtWrapper_QInputDialog::setVisible(QInputDialog* theWrappedObject, bool visible) +{ + ( theWrappedObject->setVisible(visible)); +} + +QSize PythonQtWrapper_QInputDialog::sizeHint(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +bool PythonQtWrapper_QInputDialog::testOption(QInputDialog* theWrappedObject, QInputDialog::InputDialogOption option) const +{ + return ( theWrappedObject->testOption(option)); +} + +QLineEdit::EchoMode PythonQtWrapper_QInputDialog::textEchoMode(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->textEchoMode()); +} + +QString PythonQtWrapper_QInputDialog::textValue(QInputDialog* theWrappedObject) const +{ + return ( theWrappedObject->textValue()); +} + +#endif + +PythonQtShell_QInputEvent::~PythonQtShell_QInputEvent() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QInputEvent* PythonQtWrapper_QInputEvent::new_QInputEvent(QEvent::Type type, Qt::KeyboardModifiers modifiers) +{ +return new PythonQtShell_QInputEvent(type, modifiers); } + +Qt::KeyboardModifiers PythonQtWrapper_QInputEvent::modifiers(QInputEvent* theWrappedObject) const +{ + return ( theWrappedObject->modifiers()); +} + +void PythonQtWrapper_QInputEvent::setModifiers(QInputEvent* theWrappedObject, Qt::KeyboardModifiers amodifiers) +{ + ( theWrappedObject->setModifiers(amodifiers)); +} + +void PythonQtWrapper_QInputEvent::setTimestamp(QInputEvent* theWrappedObject, ulong atimestamp) +{ + ( theWrappedObject->setTimestamp(atimestamp)); +} + +ulong PythonQtWrapper_QInputEvent::timestamp(QInputEvent* theWrappedObject) const +{ + return ( theWrappedObject->timestamp()); +} + + + +PythonQtShell_QIntValidator::~PythonQtShell_QIntValidator() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QIntValidator::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QIntValidator::childEvent(arg__1); +} +void PythonQtShell_QIntValidator::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QIntValidator::customEvent(arg__1); +} +bool PythonQtShell_QIntValidator::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIntValidator::event(arg__1); +} +bool PythonQtShell_QIntValidator::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIntValidator::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QIntValidator::fixup(QString& input) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&input}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QIntValidator::fixup(input); +} +void PythonQtShell_QIntValidator::setRange(int bottom, int top) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRange"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&bottom, (void*)&top}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QIntValidator::setRange(bottom, top); +} +void PythonQtShell_QIntValidator::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QIntValidator::timerEvent(arg__1); +} +QValidator::State PythonQtShell_QIntValidator::validate(QString& arg__1, int& arg__2) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QValidator::State" , "QString&" , "int&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QValidator::State returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); + } else { + returnValue = *((QValidator::State*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIntValidator::validate(arg__1, arg__2); +} +QIntValidator* PythonQtWrapper_QIntValidator::new_QIntValidator(QObject* parent) +{ +return new PythonQtShell_QIntValidator(parent); } + +QIntValidator* PythonQtWrapper_QIntValidator::new_QIntValidator(int bottom, int top, QObject* parent) +{ +return new PythonQtShell_QIntValidator(bottom, top, parent); } + +int PythonQtWrapper_QIntValidator::bottom(QIntValidator* theWrappedObject) const +{ + return ( theWrappedObject->bottom()); +} + +void PythonQtWrapper_QIntValidator::fixup(QIntValidator* theWrappedObject, QString& input) const +{ + ( ((PythonQtPublicPromoter_QIntValidator*)theWrappedObject)->promoted_fixup(input)); +} + +void PythonQtWrapper_QIntValidator::setBottom(QIntValidator* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setBottom(arg__1)); +} + +void PythonQtWrapper_QIntValidator::setRange(QIntValidator* theWrappedObject, int bottom, int top) +{ + ( ((PythonQtPublicPromoter_QIntValidator*)theWrappedObject)->promoted_setRange(bottom, top)); +} + +void PythonQtWrapper_QIntValidator::setTop(QIntValidator* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setTop(arg__1)); +} + +int PythonQtWrapper_QIntValidator::top(QIntValidator* theWrappedObject) const +{ + return ( theWrappedObject->top()); +} + +QValidator::State PythonQtWrapper_QIntValidator::validate(QIntValidator* theWrappedObject, QString& arg__1, int& arg__2) const +{ + return ( ((PythonQtPublicPromoter_QIntValidator*)theWrappedObject)->promoted_validate(arg__1, arg__2)); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QItemDelegate::~PythonQtShell_QItemDelegate() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QItemDelegate::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemDelegate::childEvent(arg__1); +} +QWidget* PythonQtShell_QItemDelegate::createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createEditor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QWidget*" , "QWidget*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QWidget* returnValue; + void* args[4] = {NULL, (void*)&parent, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createEditor", methodInfo, result); + } else { + returnValue = *((QWidget**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QItemDelegate::createEditor(parent, option, index); +} +void PythonQtShell_QItemDelegate::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemDelegate::customEvent(arg__1); +} +void PythonQtShell_QItemDelegate::destroyEditor(QWidget* editor, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "destroyEditor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&editor, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemDelegate::destroyEditor(editor, index); +} +void PythonQtShell_QItemDelegate::drawCheck(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, Qt::CheckState state) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawCheck"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QRect&" , "Qt::CheckState"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&painter, (void*)&option, (void*)&rect, (void*)&state}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemDelegate::drawCheck(painter, option, rect, state); +} +void PythonQtShell_QItemDelegate::drawDecoration(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QPixmap& pixmap) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawDecoration"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QRect&" , "const QPixmap&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&painter, (void*)&option, (void*)&rect, (void*)&pixmap}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemDelegate::drawDecoration(painter, option, rect, pixmap); +} +void PythonQtShell_QItemDelegate::drawDisplay(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QString& text) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawDisplay"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QRect&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&painter, (void*)&option, (void*)&rect, (void*)&text}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemDelegate::drawDisplay(painter, option, rect, text); +} +void PythonQtShell_QItemDelegate::drawFocus(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawFocus"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QRect&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&rect}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemDelegate::drawFocus(painter, option, rect); +} +bool PythonQtShell_QItemDelegate::editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*" , "QAbstractItemModel*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)&event, (void*)&model, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("editorEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QItemDelegate::editorEvent(event, model, option, index); +} +bool PythonQtShell_QItemDelegate::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QItemDelegate::event(arg__1); +} +bool PythonQtShell_QItemDelegate::eventFilter(QObject* object, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&object, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QItemDelegate::eventFilter(object, event); +} +bool PythonQtShell_QItemDelegate::helpEvent(QHelpEvent* event, QAbstractItemView* view, const QStyleOptionViewItem& option, const QModelIndex& index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "helpEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QHelpEvent*" , "QAbstractItemView*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)&event, (void*)&view, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("helpEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QItemDelegate::helpEvent(event, view, option, index); +} +void PythonQtShell_QItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemDelegate::paint(painter, option, index); +} +QVector PythonQtShell_QItemDelegate::paintingRoles() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintingRoles"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVector"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QVector returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintingRoles", methodInfo, result); + } else { + returnValue = *((QVector*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QItemDelegate::paintingRoles(); +} +void PythonQtShell_QItemDelegate::setEditorData(QWidget* editor, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setEditorData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&editor, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemDelegate::setEditorData(editor, index); +} +void PythonQtShell_QItemDelegate::setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModelData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemModel*" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&editor, (void*)&model, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemDelegate::setModelData(editor, model, index); +} +QSize PythonQtShell_QItemDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QSize returnValue; + void* args[3] = {NULL, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QItemDelegate::sizeHint(option, index); +} +void PythonQtShell_QItemDelegate::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemDelegate::timerEvent(arg__1); +} +void PythonQtShell_QItemDelegate::updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&editor, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemDelegate::updateEditorGeometry(editor, option, index); +} +QItemDelegate* PythonQtWrapper_QItemDelegate::new_QItemDelegate(QObject* parent) +{ +return new PythonQtShell_QItemDelegate(parent); } + +QWidget* PythonQtWrapper_QItemDelegate::createEditor(QItemDelegate* theWrappedObject, QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_createEditor(parent, option, index)); +} + +void PythonQtWrapper_QItemDelegate::drawCheck(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, Qt::CheckState state) const +{ + ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_drawCheck(painter, option, rect, state)); +} + +void PythonQtWrapper_QItemDelegate::drawDecoration(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QPixmap& pixmap) const +{ + ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_drawDecoration(painter, option, rect, pixmap)); +} + +void PythonQtWrapper_QItemDelegate::drawDisplay(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QString& text) const +{ + ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_drawDisplay(painter, option, rect, text)); +} + +void PythonQtWrapper_QItemDelegate::drawFocus(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect) const +{ + ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_drawFocus(painter, option, rect)); +} + +bool PythonQtWrapper_QItemDelegate::editorEvent(QItemDelegate* theWrappedObject, QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) +{ + return ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_editorEvent(event, model, option, index)); +} + +bool PythonQtWrapper_QItemDelegate::eventFilter(QItemDelegate* theWrappedObject, QObject* object, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_eventFilter(object, event)); +} + +bool PythonQtWrapper_QItemDelegate::hasClipping(QItemDelegate* theWrappedObject) const +{ + return ( theWrappedObject->hasClipping()); +} + +QItemEditorFactory* PythonQtWrapper_QItemDelegate::itemEditorFactory(QItemDelegate* theWrappedObject) const +{ + return ( theWrappedObject->itemEditorFactory()); +} + +void PythonQtWrapper_QItemDelegate::paint(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ + ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_paint(painter, option, index)); +} + +void PythonQtWrapper_QItemDelegate::setClipping(QItemDelegate* theWrappedObject, bool clip) +{ + ( theWrappedObject->setClipping(clip)); +} + +void PythonQtWrapper_QItemDelegate::setEditorData(QItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const +{ + ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_setEditorData(editor, index)); +} + +void PythonQtWrapper_QItemDelegate::setItemEditorFactory(QItemDelegate* theWrappedObject, QItemEditorFactory* factory) +{ + ( theWrappedObject->setItemEditorFactory(factory)); +} + +void PythonQtWrapper_QItemDelegate::setModelData(QItemDelegate* theWrappedObject, QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const +{ + ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_setModelData(editor, model, index)); +} + +QSize PythonQtWrapper_QItemDelegate::sizeHint(QItemDelegate* theWrappedObject, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_sizeHint(option, index)); +} + +void PythonQtWrapper_QItemDelegate::updateEditorGeometry(QItemDelegate* theWrappedObject, QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ + ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_updateEditorGeometry(editor, option, index)); +} + + + +PythonQtShell_QItemEditorCreatorBase::~PythonQtShell_QItemEditorCreatorBase() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QWidget* PythonQtShell_QItemEditorCreatorBase::createWidget(QWidget* parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createWidget"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QWidget*" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QWidget* returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createWidget", methodInfo, result); + } else { + returnValue = *((QWidget**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +QByteArray PythonQtShell_QItemEditorCreatorBase::valuePropertyName() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "valuePropertyName"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QByteArray"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QByteArray returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("valuePropertyName", methodInfo, result); + } else { + returnValue = *((QByteArray*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QByteArray(); +} +QItemEditorCreatorBase* PythonQtWrapper_QItemEditorCreatorBase::new_QItemEditorCreatorBase() +{ +return new PythonQtShell_QItemEditorCreatorBase(); } + + + +PythonQtShell_QItemEditorFactory::~PythonQtShell_QItemEditorFactory() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QWidget* PythonQtShell_QItemEditorFactory::createEditor(int userType, QWidget* parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createEditor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QWidget*" , "int" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QWidget* returnValue; + void* args[3] = {NULL, (void*)&userType, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createEditor", methodInfo, result); + } else { + returnValue = *((QWidget**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QItemEditorFactory::createEditor(userType, parent); +} +QByteArray PythonQtShell_QItemEditorFactory::valuePropertyName(int userType) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "valuePropertyName"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QByteArray" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QByteArray returnValue; + void* args[2] = {NULL, (void*)&userType}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("valuePropertyName", methodInfo, result); + } else { + returnValue = *((QByteArray*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QItemEditorFactory::valuePropertyName(userType); +} +QItemEditorFactory* PythonQtWrapper_QItemEditorFactory::new_QItemEditorFactory() +{ +return new PythonQtShell_QItemEditorFactory(); } + +QWidget* PythonQtWrapper_QItemEditorFactory::createEditor(QItemEditorFactory* theWrappedObject, int userType, QWidget* parent) const +{ + return ( ((PythonQtPublicPromoter_QItemEditorFactory*)theWrappedObject)->promoted_createEditor(userType, parent)); +} + +const QItemEditorFactory* PythonQtWrapper_QItemEditorFactory::static_QItemEditorFactory_defaultFactory() +{ + return (QItemEditorFactory::defaultFactory()); +} + +void PythonQtWrapper_QItemEditorFactory::registerEditor(QItemEditorFactory* theWrappedObject, int userType, QItemEditorCreatorBase* creator) +{ + ( theWrappedObject->registerEditor(userType, creator)); +} + +void PythonQtWrapper_QItemEditorFactory::static_QItemEditorFactory_setDefaultFactory(QItemEditorFactory* factory) +{ + (QItemEditorFactory::setDefaultFactory(factory)); +} + +QByteArray PythonQtWrapper_QItemEditorFactory::valuePropertyName(QItemEditorFactory* theWrappedObject, int userType) const +{ + return ( ((PythonQtPublicPromoter_QItemEditorFactory*)theWrappedObject)->promoted_valuePropertyName(userType)); +} + + + +QItemSelection* PythonQtWrapper_QItemSelection::new_QItemSelection() +{ +return new QItemSelection(); } + +QItemSelection* PythonQtWrapper_QItemSelection::new_QItemSelection(const QModelIndex& topLeft, const QModelIndex& bottomRight) +{ +return new QItemSelection(topLeft, bottomRight); } + +void PythonQtWrapper_QItemSelection::append(QItemSelection* theWrappedObject, const QItemSelectionRange& t) +{ + ( theWrappedObject->append(t)); +} + +void PythonQtWrapper_QItemSelection::append(QItemSelection* theWrappedObject, const QList& t) +{ + ( theWrappedObject->append(t)); +} + +const QItemSelectionRange* PythonQtWrapper_QItemSelection::at(QItemSelection* theWrappedObject, int i) const +{ + return &( theWrappedObject->at(i)); +} + +const QItemSelectionRange* PythonQtWrapper_QItemSelection::back(QItemSelection* theWrappedObject) const +{ + return &( theWrappedObject->back()); +} + +void PythonQtWrapper_QItemSelection::clear(QItemSelection* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +bool PythonQtWrapper_QItemSelection::contains(QItemSelection* theWrappedObject, const QModelIndex& index) const +{ + return ( theWrappedObject->contains(index)); +} + +int PythonQtWrapper_QItemSelection::count(QItemSelection* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +int PythonQtWrapper_QItemSelection::count(QItemSelection* theWrappedObject, const QItemSelectionRange& t) const +{ + return ( theWrappedObject->count(t)); +} + +void PythonQtWrapper_QItemSelection::detachShared(QItemSelection* theWrappedObject) +{ + ( theWrappedObject->detachShared()); +} + +bool PythonQtWrapper_QItemSelection::empty(QItemSelection* theWrappedObject) const +{ + return ( theWrappedObject->empty()); +} + +bool PythonQtWrapper_QItemSelection::endsWith(QItemSelection* theWrappedObject, const QItemSelectionRange& t) const +{ + return ( theWrappedObject->endsWith(t)); +} + +const QItemSelectionRange* PythonQtWrapper_QItemSelection::first(QItemSelection* theWrappedObject) const +{ + return &( theWrappedObject->first()); +} + +QList PythonQtWrapper_QItemSelection::static_QItemSelection_fromVector(const QVector& vector) +{ + return (QItemSelection::fromVector(vector)); +} + +const QItemSelectionRange* PythonQtWrapper_QItemSelection::front(QItemSelection* theWrappedObject) const +{ + return &( theWrappedObject->front()); +} + +int PythonQtWrapper_QItemSelection::indexOf(QItemSelection* theWrappedObject, const QItemSelectionRange& t, int from) const +{ + return ( theWrappedObject->indexOf(t, from)); +} + +QList PythonQtWrapper_QItemSelection::indexes(QItemSelection* theWrappedObject) const +{ + return ( theWrappedObject->indexes()); +} + +bool PythonQtWrapper_QItemSelection::isEmpty(QItemSelection* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +bool PythonQtWrapper_QItemSelection::isSharedWith(QItemSelection* theWrappedObject, const QList& other) const +{ + return ( theWrappedObject->isSharedWith(other)); +} + +const QItemSelectionRange* PythonQtWrapper_QItemSelection::last(QItemSelection* theWrappedObject) const +{ + return &( theWrappedObject->last()); +} + +int PythonQtWrapper_QItemSelection::lastIndexOf(QItemSelection* theWrappedObject, const QItemSelectionRange& t, int from) const +{ + return ( theWrappedObject->lastIndexOf(t, from)); +} + +int PythonQtWrapper_QItemSelection::length(QItemSelection* theWrappedObject) const +{ + return ( theWrappedObject->length()); +} + +void PythonQtWrapper_QItemSelection::merge(QItemSelection* theWrappedObject, const QItemSelection& other, QItemSelectionModel::SelectionFlags command) +{ + ( theWrappedObject->merge(other, command)); +} + +QList PythonQtWrapper_QItemSelection::mid(QItemSelection* theWrappedObject, int pos, int length) const +{ + return ( theWrappedObject->mid(pos, length)); +} + +void PythonQtWrapper_QItemSelection::move(QItemSelection* theWrappedObject, int from, int to) +{ + ( theWrappedObject->move(from, to)); +} + +bool PythonQtWrapper_QItemSelection::__ne__(QItemSelection* theWrappedObject, const QList& l) const +{ + return ( (*theWrappedObject)!= l); +} + +bool PythonQtWrapper_QItemSelection::__eq__(QItemSelection* theWrappedObject, const QList& l) const +{ + return ( (*theWrappedObject)== l); +} + +void PythonQtWrapper_QItemSelection::pop_back(QItemSelection* theWrappedObject) +{ + ( theWrappedObject->pop_back()); +} + +void PythonQtWrapper_QItemSelection::pop_front(QItemSelection* theWrappedObject) +{ + ( theWrappedObject->pop_front()); +} + +void PythonQtWrapper_QItemSelection::prepend(QItemSelection* theWrappedObject, const QItemSelectionRange& t) +{ + ( theWrappedObject->prepend(t)); +} + +void PythonQtWrapper_QItemSelection::push_back(QItemSelection* theWrappedObject, const QItemSelectionRange& t) +{ + ( theWrappedObject->push_back(t)); +} + +void PythonQtWrapper_QItemSelection::push_front(QItemSelection* theWrappedObject, const QItemSelectionRange& t) +{ + ( theWrappedObject->push_front(t)); +} + +int PythonQtWrapper_QItemSelection::removeAll(QItemSelection* theWrappedObject, const QItemSelectionRange& t) +{ + return ( theWrappedObject->removeAll(t)); +} + +void PythonQtWrapper_QItemSelection::removeAt(QItemSelection* theWrappedObject, int i) +{ + ( theWrappedObject->removeAt(i)); +} + +void PythonQtWrapper_QItemSelection::removeFirst(QItemSelection* theWrappedObject) +{ + ( theWrappedObject->removeFirst()); +} + +void PythonQtWrapper_QItemSelection::removeLast(QItemSelection* theWrappedObject) +{ + ( theWrappedObject->removeLast()); +} + +bool PythonQtWrapper_QItemSelection::removeOne(QItemSelection* theWrappedObject, const QItemSelectionRange& t) +{ + return ( theWrappedObject->removeOne(t)); +} + +void PythonQtWrapper_QItemSelection::replace(QItemSelection* theWrappedObject, int i, const QItemSelectionRange& t) +{ + ( theWrappedObject->replace(i, t)); +} + +void PythonQtWrapper_QItemSelection::reserve(QItemSelection* theWrappedObject, int size) +{ + ( theWrappedObject->reserve(size)); +} + +void PythonQtWrapper_QItemSelection::select(QItemSelection* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight) +{ + ( theWrappedObject->select(topLeft, bottomRight)); +} + +void PythonQtWrapper_QItemSelection::setSharable(QItemSelection* theWrappedObject, bool sharable) +{ + ( theWrappedObject->setSharable(sharable)); +} + +int PythonQtWrapper_QItemSelection::size(QItemSelection* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +void PythonQtWrapper_QItemSelection::static_QItemSelection_split(const QItemSelectionRange& range, const QItemSelectionRange& other, QItemSelection* result) +{ + (QItemSelection::split(range, other, result)); +} + +bool PythonQtWrapper_QItemSelection::startsWith(QItemSelection* theWrappedObject, const QItemSelectionRange& t) const +{ + return ( theWrappedObject->startsWith(t)); +} + +void PythonQtWrapper_QItemSelection::swap(QItemSelection* theWrappedObject, QList& other) +{ + ( theWrappedObject->swap(other)); +} + +void PythonQtWrapper_QItemSelection::swap(QItemSelection* theWrappedObject, int i, int j) +{ + ( theWrappedObject->swap(i, j)); +} + +QItemSelectionRange PythonQtWrapper_QItemSelection::takeAt(QItemSelection* theWrappedObject, int i) +{ + return ( theWrappedObject->takeAt(i)); +} + +QItemSelectionRange PythonQtWrapper_QItemSelection::takeFirst(QItemSelection* theWrappedObject) +{ + return ( theWrappedObject->takeFirst()); +} + +QItemSelectionRange PythonQtWrapper_QItemSelection::takeLast(QItemSelection* theWrappedObject) +{ + return ( theWrappedObject->takeLast()); +} + +QVector PythonQtWrapper_QItemSelection::toVector(QItemSelection* theWrappedObject) const +{ + return ( theWrappedObject->toVector()); +} + +QItemSelectionRange PythonQtWrapper_QItemSelection::value(QItemSelection* theWrappedObject, int i) const +{ + return ( theWrappedObject->value(i)); +} + +QItemSelectionRange PythonQtWrapper_QItemSelection::value(QItemSelection* theWrappedObject, int i, const QItemSelectionRange& defaultValue) const +{ + return ( theWrappedObject->value(i, defaultValue)); +} + + + +PythonQtShell_QItemSelectionModel::~PythonQtShell_QItemSelectionModel() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QItemSelectionModel::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemSelectionModel::childEvent(arg__1); +} +void PythonQtShell_QItemSelectionModel::clear() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemSelectionModel::clear(); +} +void PythonQtShell_QItemSelectionModel::clearCurrentIndex() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clearCurrentIndex"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemSelectionModel::clearCurrentIndex(); +} +void PythonQtShell_QItemSelectionModel::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemSelectionModel::customEvent(arg__1); +} +bool PythonQtShell_QItemSelectionModel::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QItemSelectionModel::event(arg__1); +} +bool PythonQtShell_QItemSelectionModel::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QItemSelectionModel::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QItemSelectionModel::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemSelectionModel::reset(); +} +void PythonQtShell_QItemSelectionModel::select(const QItemSelection& selection, QItemSelectionModel::SelectionFlags command) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "select"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QItemSelection&" , "QItemSelectionModel::SelectionFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&selection, (void*)&command}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemSelectionModel::select(selection, command); +} +void PythonQtShell_QItemSelectionModel::select(const QModelIndex& index, QItemSelectionModel::SelectionFlags command) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "select"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "QItemSelectionModel::SelectionFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&index, (void*)&command}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemSelectionModel::select(index, command); +} +void PythonQtShell_QItemSelectionModel::setCurrentIndex(const QModelIndex& index, QItemSelectionModel::SelectionFlags command) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setCurrentIndex"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "QItemSelectionModel::SelectionFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&index, (void*)&command}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemSelectionModel::setCurrentIndex(index, command); +} +void PythonQtShell_QItemSelectionModel::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QItemSelectionModel::timerEvent(arg__1); +} +QItemSelectionModel* PythonQtWrapper_QItemSelectionModel::new_QItemSelectionModel(QAbstractItemModel* model) +{ +return new PythonQtShell_QItemSelectionModel(model); } + +QItemSelectionModel* PythonQtWrapper_QItemSelectionModel::new_QItemSelectionModel(QAbstractItemModel* model, QObject* parent) +{ +return new PythonQtShell_QItemSelectionModel(model, parent); } + +void PythonQtWrapper_QItemSelectionModel::clear(QItemSelectionModel* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QItemSelectionModel*)theWrappedObject)->promoted_clear()); +} + +void PythonQtWrapper_QItemSelectionModel::clearCurrentIndex(QItemSelectionModel* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QItemSelectionModel*)theWrappedObject)->promoted_clearCurrentIndex()); +} + +bool PythonQtWrapper_QItemSelectionModel::columnIntersectsSelection(QItemSelectionModel* theWrappedObject, int column, const QModelIndex& parent) const +{ + return ( theWrappedObject->columnIntersectsSelection(column, parent)); +} + +QModelIndex PythonQtWrapper_QItemSelectionModel::currentIndex(QItemSelectionModel* theWrappedObject) const +{ + return ( theWrappedObject->currentIndex()); +} + +bool PythonQtWrapper_QItemSelectionModel::hasSelection(QItemSelectionModel* theWrappedObject) const +{ + return ( theWrappedObject->hasSelection()); +} + +bool PythonQtWrapper_QItemSelectionModel::isColumnSelected(QItemSelectionModel* theWrappedObject, int column, const QModelIndex& parent) const +{ + return ( theWrappedObject->isColumnSelected(column, parent)); +} + +bool PythonQtWrapper_QItemSelectionModel::isRowSelected(QItemSelectionModel* theWrappedObject, int row, const QModelIndex& parent) const +{ + return ( theWrappedObject->isRowSelected(row, parent)); +} + +bool PythonQtWrapper_QItemSelectionModel::isSelected(QItemSelectionModel* theWrappedObject, const QModelIndex& index) const +{ + return ( theWrappedObject->isSelected(index)); +} + +const QAbstractItemModel* PythonQtWrapper_QItemSelectionModel::model(QItemSelectionModel* theWrappedObject) const +{ + return ( theWrappedObject->model()); +} + +void PythonQtWrapper_QItemSelectionModel::reset(QItemSelectionModel* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QItemSelectionModel*)theWrappedObject)->promoted_reset()); +} + +bool PythonQtWrapper_QItemSelectionModel::rowIntersectsSelection(QItemSelectionModel* theWrappedObject, int row, const QModelIndex& parent) const +{ + return ( theWrappedObject->rowIntersectsSelection(row, parent)); +} + +void PythonQtWrapper_QItemSelectionModel::select(QItemSelectionModel* theWrappedObject, const QItemSelection& selection, QItemSelectionModel::SelectionFlags command) +{ + ( ((PythonQtPublicPromoter_QItemSelectionModel*)theWrappedObject)->promoted_select(selection, command)); +} + +void PythonQtWrapper_QItemSelectionModel::select(QItemSelectionModel* theWrappedObject, const QModelIndex& index, QItemSelectionModel::SelectionFlags command) +{ + ( ((PythonQtPublicPromoter_QItemSelectionModel*)theWrappedObject)->promoted_select(index, command)); +} + +QList PythonQtWrapper_QItemSelectionModel::selectedColumns(QItemSelectionModel* theWrappedObject, int row) const +{ + return ( theWrappedObject->selectedColumns(row)); +} + +QList PythonQtWrapper_QItemSelectionModel::selectedIndexes(QItemSelectionModel* theWrappedObject) const +{ + return ( theWrappedObject->selectedIndexes()); +} + +QList PythonQtWrapper_QItemSelectionModel::selectedRows(QItemSelectionModel* theWrappedObject, int column) const +{ + return ( theWrappedObject->selectedRows(column)); +} + +const QItemSelection PythonQtWrapper_QItemSelectionModel::selection(QItemSelectionModel* theWrappedObject) const +{ + return ( theWrappedObject->selection()); +} + +void PythonQtWrapper_QItemSelectionModel::setCurrentIndex(QItemSelectionModel* theWrappedObject, const QModelIndex& index, QItemSelectionModel::SelectionFlags command) +{ + ( ((PythonQtPublicPromoter_QItemSelectionModel*)theWrappedObject)->promoted_setCurrentIndex(index, command)); +} + + + +QItemSelectionRange* PythonQtWrapper_QItemSelectionRange::new_QItemSelectionRange() +{ +return new QItemSelectionRange(); } + +QItemSelectionRange* PythonQtWrapper_QItemSelectionRange::new_QItemSelectionRange(const QItemSelectionRange& other) +{ +return new QItemSelectionRange(other); } + +QItemSelectionRange* PythonQtWrapper_QItemSelectionRange::new_QItemSelectionRange(const QModelIndex& index) +{ +return new QItemSelectionRange(index); } + +QItemSelectionRange* PythonQtWrapper_QItemSelectionRange::new_QItemSelectionRange(const QModelIndex& topLeft, const QModelIndex& bottomRight) +{ +return new QItemSelectionRange(topLeft, bottomRight); } + +int PythonQtWrapper_QItemSelectionRange::bottom(QItemSelectionRange* theWrappedObject) const +{ + return ( theWrappedObject->bottom()); +} + +const QPersistentModelIndex* PythonQtWrapper_QItemSelectionRange::bottomRight(QItemSelectionRange* theWrappedObject) const +{ + return &( theWrappedObject->bottomRight()); +} + +bool PythonQtWrapper_QItemSelectionRange::contains(QItemSelectionRange* theWrappedObject, const QModelIndex& index) const +{ + return ( theWrappedObject->contains(index)); +} + +bool PythonQtWrapper_QItemSelectionRange::contains(QItemSelectionRange* theWrappedObject, int row, int column, const QModelIndex& parentIndex) const +{ + return ( theWrappedObject->contains(row, column, parentIndex)); +} + +int PythonQtWrapper_QItemSelectionRange::height(QItemSelectionRange* theWrappedObject) const +{ + return ( theWrappedObject->height()); +} + +QList PythonQtWrapper_QItemSelectionRange::indexes(QItemSelectionRange* theWrappedObject) const +{ + return ( theWrappedObject->indexes()); +} + +QItemSelectionRange PythonQtWrapper_QItemSelectionRange::intersected(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const +{ + return ( theWrappedObject->intersected(other)); +} + +bool PythonQtWrapper_QItemSelectionRange::intersects(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const +{ + return ( theWrappedObject->intersects(other)); +} + +bool PythonQtWrapper_QItemSelectionRange::isEmpty(QItemSelectionRange* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +bool PythonQtWrapper_QItemSelectionRange::isValid(QItemSelectionRange* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +int PythonQtWrapper_QItemSelectionRange::left(QItemSelectionRange* theWrappedObject) const +{ + return ( theWrappedObject->left()); +} + +const QAbstractItemModel* PythonQtWrapper_QItemSelectionRange::model(QItemSelectionRange* theWrappedObject) const +{ + return ( theWrappedObject->model()); +} + +bool PythonQtWrapper_QItemSelectionRange::__ne__(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QItemSelectionRange::__lt__(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const +{ + return ( (*theWrappedObject)< other); +} + +bool PythonQtWrapper_QItemSelectionRange::__eq__(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const +{ + return ( (*theWrappedObject)== other); +} + +QModelIndex PythonQtWrapper_QItemSelectionRange::parent(QItemSelectionRange* theWrappedObject) const +{ + return ( theWrappedObject->parent()); +} + +int PythonQtWrapper_QItemSelectionRange::right(QItemSelectionRange* theWrappedObject) const +{ + return ( theWrappedObject->right()); +} + +int PythonQtWrapper_QItemSelectionRange::top(QItemSelectionRange* theWrappedObject) const +{ + return ( theWrappedObject->top()); +} + +const QPersistentModelIndex* PythonQtWrapper_QItemSelectionRange::topLeft(QItemSelectionRange* theWrappedObject) const +{ + return &( theWrappedObject->topLeft()); +} + +int PythonQtWrapper_QItemSelectionRange::width(QItemSelectionRange* theWrappedObject) const +{ + return ( theWrappedObject->width()); +} + +QString PythonQtWrapper_QItemSelectionRange::py_toString(QItemSelectionRange* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + +#endif + +PythonQtShell_QKeyEvent::~PythonQtShell_QKeyEvent() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QKeyEvent* PythonQtWrapper_QKeyEvent::new_QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text, bool autorep, ushort count) +{ +return new PythonQtShell_QKeyEvent(type, key, modifiers, text, autorep, count); } + +QKeyEvent* PythonQtWrapper_QKeyEvent::new_QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, unsigned int nativeScanCode, unsigned int nativeVirtualKey, unsigned int nativeModifiers, const QString& text, bool autorep, ushort count) +{ +return new PythonQtShell_QKeyEvent(type, key, modifiers, nativeScanCode, nativeVirtualKey, nativeModifiers, text, autorep, count); } + +int PythonQtWrapper_QKeyEvent::count(QKeyEvent* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +bool PythonQtWrapper_QKeyEvent::isAutoRepeat(QKeyEvent* theWrappedObject) const +{ + return ( theWrappedObject->isAutoRepeat()); +} + +int PythonQtWrapper_QKeyEvent::key(QKeyEvent* theWrappedObject) const +{ + return ( theWrappedObject->key()); +} + +bool PythonQtWrapper_QKeyEvent::matches(QKeyEvent* theWrappedObject, QKeySequence::StandardKey key) const +{ + return ( theWrappedObject->matches(key)); +} + +Qt::KeyboardModifiers PythonQtWrapper_QKeyEvent::modifiers(QKeyEvent* theWrappedObject) const +{ + return ( theWrappedObject->modifiers()); +} + +unsigned int PythonQtWrapper_QKeyEvent::nativeModifiers(QKeyEvent* theWrappedObject) const +{ + return ( theWrappedObject->nativeModifiers()); +} + +unsigned int PythonQtWrapper_QKeyEvent::nativeScanCode(QKeyEvent* theWrappedObject) const +{ + return ( theWrappedObject->nativeScanCode()); +} + +unsigned int PythonQtWrapper_QKeyEvent::nativeVirtualKey(QKeyEvent* theWrappedObject) const +{ + return ( theWrappedObject->nativeVirtualKey()); +} + +QString PythonQtWrapper_QKeyEvent::text(QKeyEvent* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QKeyEventTransition::~PythonQtShell_QKeyEventTransition() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QKeyEventTransition::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QKeyEventTransition::childEvent(arg__1); +} +void PythonQtShell_QKeyEventTransition::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QKeyEventTransition::customEvent(arg__1); +} +bool PythonQtShell_QKeyEventTransition::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QKeyEventTransition::event(e); +} +bool PythonQtShell_QKeyEventTransition::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QKeyEventTransition::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QKeyEventTransition::eventTest(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventTest"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventTest", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QKeyEventTransition::eventTest(event); +} +void PythonQtShell_QKeyEventTransition::onTransition(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onTransition"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QKeyEventTransition::onTransition(event); +} +void PythonQtShell_QKeyEventTransition::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QKeyEventTransition::timerEvent(arg__1); +} +QKeyEventTransition* PythonQtWrapper_QKeyEventTransition::new_QKeyEventTransition(QObject* object, QEvent::Type type, int key, QState* sourceState) +{ +return new PythonQtShell_QKeyEventTransition(object, type, key, sourceState); } + +QKeyEventTransition* PythonQtWrapper_QKeyEventTransition::new_QKeyEventTransition(QState* sourceState) +{ +return new PythonQtShell_QKeyEventTransition(sourceState); } + +bool PythonQtWrapper_QKeyEventTransition::eventTest(QKeyEventTransition* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QKeyEventTransition*)theWrappedObject)->promoted_eventTest(event)); +} + +int PythonQtWrapper_QKeyEventTransition::key(QKeyEventTransition* theWrappedObject) const +{ + return ( theWrappedObject->key()); +} + +Qt::KeyboardModifiers PythonQtWrapper_QKeyEventTransition::modifierMask(QKeyEventTransition* theWrappedObject) const +{ + return ( theWrappedObject->modifierMask()); +} + +void PythonQtWrapper_QKeyEventTransition::onTransition(QKeyEventTransition* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QKeyEventTransition*)theWrappedObject)->promoted_onTransition(event)); +} + +void PythonQtWrapper_QKeyEventTransition::setKey(QKeyEventTransition* theWrappedObject, int key) +{ + ( theWrappedObject->setKey(key)); +} + +void PythonQtWrapper_QKeyEventTransition::setModifierMask(QKeyEventTransition* theWrappedObject, Qt::KeyboardModifiers modifiers) +{ + ( theWrappedObject->setModifierMask(modifiers)); +} + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui3.h b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui3.h new file mode 100644 index 00000000..713e7fdf --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui3.h @@ -0,0 +1,2012 @@ +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined(QT_WIDGETS_LIB) +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtWrapper_QGraphicsSceneWheelEvent : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsSceneWheelEvent* new_QGraphicsSceneWheelEvent(QEvent::Type type = QEvent::None); +void delete_QGraphicsSceneWheelEvent(QGraphicsSceneWheelEvent* obj) { delete obj; } + Qt::MouseButtons buttons(QGraphicsSceneWheelEvent* theWrappedObject) const; + int delta(QGraphicsSceneWheelEvent* theWrappedObject) const; + Qt::KeyboardModifiers modifiers(QGraphicsSceneWheelEvent* theWrappedObject) const; + Qt::Orientation orientation(QGraphicsSceneWheelEvent* theWrappedObject) const; + QPointF pos(QGraphicsSceneWheelEvent* theWrappedObject) const; + QPointF scenePos(QGraphicsSceneWheelEvent* theWrappedObject) const; + QPoint screenPos(QGraphicsSceneWheelEvent* theWrappedObject) const; + void setButtons(QGraphicsSceneWheelEvent* theWrappedObject, Qt::MouseButtons buttons); + void setDelta(QGraphicsSceneWheelEvent* theWrappedObject, int delta); + void setModifiers(QGraphicsSceneWheelEvent* theWrappedObject, Qt::KeyboardModifiers modifiers); + void setOrientation(QGraphicsSceneWheelEvent* theWrappedObject, Qt::Orientation orientation); + void setPos(QGraphicsSceneWheelEvent* theWrappedObject, const QPointF& pos); + void setScenePos(QGraphicsSceneWheelEvent* theWrappedObject, const QPointF& pos); + void setScreenPos(QGraphicsSceneWheelEvent* theWrappedObject, const QPoint& pos); +}; + + + + + +class PythonQtShell_QGraphicsSimpleTextItem : public QGraphicsSimpleTextItem +{ +public: + PythonQtShell_QGraphicsSimpleTextItem(QGraphicsItem* parent = 0):QGraphicsSimpleTextItem(parent),_wrapper(NULL) {}; + PythonQtShell_QGraphicsSimpleTextItem(const QString& text, QGraphicsItem* parent = 0):QGraphicsSimpleTextItem(text, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsSimpleTextItem(); + +virtual bool isObscuredBy(const QGraphicsItem* item) const; +virtual QPainterPath opaqueArea() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsSimpleTextItem : public QGraphicsSimpleTextItem +{ public: +inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsSimpleTextItem::isObscuredBy(item); } +inline QPainterPath promoted_opaqueArea() const { return QGraphicsSimpleTextItem::opaqueArea(); } +}; + +class PythonQtWrapper_QGraphicsSimpleTextItem : public QObject +{ Q_OBJECT +public: +Q_ENUMS(enum_1 ) +enum enum_1{ + Type = QGraphicsSimpleTextItem::Type}; +public slots: +QGraphicsSimpleTextItem* new_QGraphicsSimpleTextItem(QGraphicsItem* parent = 0); +QGraphicsSimpleTextItem* new_QGraphicsSimpleTextItem(const QString& text, QGraphicsItem* parent = 0); +void delete_QGraphicsSimpleTextItem(QGraphicsSimpleTextItem* obj) { delete obj; } + QRectF boundingRect(QGraphicsSimpleTextItem* theWrappedObject) const; + bool contains(QGraphicsSimpleTextItem* theWrappedObject, const QPointF& point) const; + QFont font(QGraphicsSimpleTextItem* theWrappedObject) const; + bool isObscuredBy(QGraphicsSimpleTextItem* theWrappedObject, const QGraphicsItem* item) const; + QPainterPath opaqueArea(QGraphicsSimpleTextItem* theWrappedObject) const; + void paint(QGraphicsSimpleTextItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); + void setFont(QGraphicsSimpleTextItem* theWrappedObject, const QFont& font); + void setText(QGraphicsSimpleTextItem* theWrappedObject, const QString& text); + QPainterPath shape(QGraphicsSimpleTextItem* theWrappedObject) const; + QString text(QGraphicsSimpleTextItem* theWrappedObject) const; + int type(QGraphicsSimpleTextItem* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGraphicsTextItem : public QGraphicsTextItem +{ +public: + PythonQtShell_QGraphicsTextItem(QGraphicsItem* parent = 0):QGraphicsTextItem(parent),_wrapper(NULL) {}; + PythonQtShell_QGraphicsTextItem(const QString& text, QGraphicsItem* parent = 0):QGraphicsTextItem(text, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsTextItem(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* ev); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QGraphicsTextItem : public QObject +{ Q_OBJECT +public: +Q_ENUMS(enum_1 ) +enum enum_1{ + Type = QGraphicsTextItem::Type}; +public slots: +QGraphicsTextItem* new_QGraphicsTextItem(QGraphicsItem* parent = 0); +QGraphicsTextItem* new_QGraphicsTextItem(const QString& text, QGraphicsItem* parent = 0); +void delete_QGraphicsTextItem(QGraphicsTextItem* obj) { delete obj; } + void adjustSize(QGraphicsTextItem* theWrappedObject); + QRectF boundingRect(QGraphicsTextItem* theWrappedObject) const; + bool contains(QGraphicsTextItem* theWrappedObject, const QPointF& point) const; + QColor defaultTextColor(QGraphicsTextItem* theWrappedObject) const; + QTextDocument* document(QGraphicsTextItem* theWrappedObject) const; + QFont font(QGraphicsTextItem* theWrappedObject) const; + bool isObscuredBy(QGraphicsTextItem* theWrappedObject, const QGraphicsItem* item) const; + QPainterPath opaqueArea(QGraphicsTextItem* theWrappedObject) const; + bool openExternalLinks(QGraphicsTextItem* theWrappedObject) const; + void paint(QGraphicsTextItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); + void setDefaultTextColor(QGraphicsTextItem* theWrappedObject, const QColor& c); + void setDocument(QGraphicsTextItem* theWrappedObject, QTextDocument* document); + void setFont(QGraphicsTextItem* theWrappedObject, const QFont& font); + void setHtml(QGraphicsTextItem* theWrappedObject, const QString& html); + void setOpenExternalLinks(QGraphicsTextItem* theWrappedObject, bool open); + void setPlainText(QGraphicsTextItem* theWrappedObject, const QString& text); + void setTabChangesFocus(QGraphicsTextItem* theWrappedObject, bool b); + void setTextCursor(QGraphicsTextItem* theWrappedObject, const QTextCursor& cursor); + void setTextInteractionFlags(QGraphicsTextItem* theWrappedObject, Qt::TextInteractionFlags flags); + void setTextWidth(QGraphicsTextItem* theWrappedObject, qreal width); + QPainterPath shape(QGraphicsTextItem* theWrappedObject) const; + bool tabChangesFocus(QGraphicsTextItem* theWrappedObject) const; + QTextCursor textCursor(QGraphicsTextItem* theWrappedObject) const; + Qt::TextInteractionFlags textInteractionFlags(QGraphicsTextItem* theWrappedObject) const; + qreal textWidth(QGraphicsTextItem* theWrappedObject) const; + QString toHtml(QGraphicsTextItem* theWrappedObject) const; + QString toPlainText(QGraphicsTextItem* theWrappedObject) const; + int type(QGraphicsTextItem* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGraphicsTransform : public QGraphicsTransform +{ +public: + PythonQtShell_QGraphicsTransform(QObject* parent = 0):QGraphicsTransform(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsTransform(); + +virtual void applyTo(QMatrix4x4* matrix) const; +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QGraphicsTransform : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsTransform* new_QGraphicsTransform(QObject* parent = 0); +void delete_QGraphicsTransform(QGraphicsTransform* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QGraphicsView : public QGraphicsView +{ +public: + PythonQtShell_QGraphicsView(QGraphicsScene* scene, QWidget* parent = 0):QGraphicsView(scene, parent),_wrapper(NULL) {}; + PythonQtShell_QGraphicsView(QWidget* parent = 0):QGraphicsView(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsView(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* event); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* event); +virtual void dragLeaveEvent(QDragLeaveEvent* event); +virtual void dragMoveEvent(QDragMoveEvent* event); +virtual void drawBackground(QPainter* painter, const QRectF& rect); +virtual void drawForeground(QPainter* painter, const QRectF& rect); +virtual void drawItems(QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options); +virtual void dropEvent(QDropEvent* event); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* event); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* event); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* event); +virtual void mouseMoveEvent(QMouseEvent* event); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* event); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* event); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* event); +virtual void scrollContentsBy(int dx, int dy); +virtual void setupViewport(QWidget* widget); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* event); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool viewportEvent(QEvent* event); +virtual QSize viewportSizeHint() const; +virtual void wheelEvent(QWheelEvent* event); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsView : public QGraphicsView +{ public: +inline void promoted_contextMenuEvent(QContextMenuEvent* event) { QGraphicsView::contextMenuEvent(event); } +inline void promoted_dragEnterEvent(QDragEnterEvent* event) { QGraphicsView::dragEnterEvent(event); } +inline void promoted_dragLeaveEvent(QDragLeaveEvent* event) { QGraphicsView::dragLeaveEvent(event); } +inline void promoted_dragMoveEvent(QDragMoveEvent* event) { QGraphicsView::dragMoveEvent(event); } +inline void promoted_drawBackground(QPainter* painter, const QRectF& rect) { QGraphicsView::drawBackground(painter, rect); } +inline void promoted_drawForeground(QPainter* painter, const QRectF& rect) { QGraphicsView::drawForeground(painter, rect); } +inline void promoted_drawItems(QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options) { QGraphicsView::drawItems(painter, numItems, items, options); } +inline void promoted_dropEvent(QDropEvent* event) { QGraphicsView::dropEvent(event); } +inline bool promoted_event(QEvent* event) { return QGraphicsView::event(event); } +inline void promoted_focusInEvent(QFocusEvent* event) { QGraphicsView::focusInEvent(event); } +inline bool promoted_focusNextPrevChild(bool next) { return QGraphicsView::focusNextPrevChild(next); } +inline void promoted_focusOutEvent(QFocusEvent* event) { QGraphicsView::focusOutEvent(event); } +inline void promoted_inputMethodEvent(QInputMethodEvent* event) { QGraphicsView::inputMethodEvent(event); } +inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery query) const { return QGraphicsView::inputMethodQuery(query); } +inline void promoted_keyPressEvent(QKeyEvent* event) { QGraphicsView::keyPressEvent(event); } +inline void promoted_keyReleaseEvent(QKeyEvent* event) { QGraphicsView::keyReleaseEvent(event); } +inline void promoted_mouseDoubleClickEvent(QMouseEvent* event) { QGraphicsView::mouseDoubleClickEvent(event); } +inline void promoted_mouseMoveEvent(QMouseEvent* event) { QGraphicsView::mouseMoveEvent(event); } +inline void promoted_mousePressEvent(QMouseEvent* event) { QGraphicsView::mousePressEvent(event); } +inline void promoted_mouseReleaseEvent(QMouseEvent* event) { QGraphicsView::mouseReleaseEvent(event); } +inline void promoted_paintEvent(QPaintEvent* event) { QGraphicsView::paintEvent(event); } +inline void promoted_resizeEvent(QResizeEvent* event) { QGraphicsView::resizeEvent(event); } +inline void promoted_scrollContentsBy(int dx, int dy) { QGraphicsView::scrollContentsBy(dx, dy); } +inline void promoted_setupViewport(QWidget* widget) { QGraphicsView::setupViewport(widget); } +inline void promoted_showEvent(QShowEvent* event) { QGraphicsView::showEvent(event); } +inline bool promoted_viewportEvent(QEvent* event) { return QGraphicsView::viewportEvent(event); } +inline void promoted_wheelEvent(QWheelEvent* event) { QGraphicsView::wheelEvent(event); } +}; + +class PythonQtWrapper_QGraphicsView : public QObject +{ Q_OBJECT +public: +Q_ENUMS(OptimizationFlag CacheModeFlag ) +Q_FLAGS(OptimizationFlags CacheMode ) +enum OptimizationFlag{ + DontClipPainter = QGraphicsView::DontClipPainter, DontSavePainterState = QGraphicsView::DontSavePainterState, DontAdjustForAntialiasing = QGraphicsView::DontAdjustForAntialiasing, IndirectPainting = QGraphicsView::IndirectPainting}; +enum CacheModeFlag{ + CacheNone = QGraphicsView::CacheNone, CacheBackground = QGraphicsView::CacheBackground}; +Q_DECLARE_FLAGS(OptimizationFlags, OptimizationFlag) +Q_DECLARE_FLAGS(CacheMode, CacheModeFlag) +public slots: +QGraphicsView* new_QGraphicsView(QGraphicsScene* scene, QWidget* parent = 0); +QGraphicsView* new_QGraphicsView(QWidget* parent = 0); +void delete_QGraphicsView(QGraphicsView* obj) { delete obj; } + Qt::Alignment alignment(QGraphicsView* theWrappedObject) const; + QBrush backgroundBrush(QGraphicsView* theWrappedObject) const; + QGraphicsView::CacheMode cacheMode(QGraphicsView* theWrappedObject) const; + void centerOn(QGraphicsView* theWrappedObject, const QGraphicsItem* item); + void centerOn(QGraphicsView* theWrappedObject, const QPointF& pos); + void centerOn(QGraphicsView* theWrappedObject, qreal x, qreal y); + void contextMenuEvent(QGraphicsView* theWrappedObject, QContextMenuEvent* event); + void dragEnterEvent(QGraphicsView* theWrappedObject, QDragEnterEvent* event); + void dragLeaveEvent(QGraphicsView* theWrappedObject, QDragLeaveEvent* event); + QGraphicsView::DragMode dragMode(QGraphicsView* theWrappedObject) const; + void dragMoveEvent(QGraphicsView* theWrappedObject, QDragMoveEvent* event); + void drawBackground(QGraphicsView* theWrappedObject, QPainter* painter, const QRectF& rect); + void drawForeground(QGraphicsView* theWrappedObject, QPainter* painter, const QRectF& rect); + void drawItems(QGraphicsView* theWrappedObject, QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options); + void dropEvent(QGraphicsView* theWrappedObject, QDropEvent* event); + void ensureVisible(QGraphicsView* theWrappedObject, const QGraphicsItem* item, int xmargin = 50, int ymargin = 50); + void ensureVisible(QGraphicsView* theWrappedObject, const QRectF& rect, int xmargin = 50, int ymargin = 50); + void ensureVisible(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int xmargin = 50, int ymargin = 50); + bool event(QGraphicsView* theWrappedObject, QEvent* event); + void fitInView(QGraphicsView* theWrappedObject, const QGraphicsItem* item, Qt::AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio); + void fitInView(QGraphicsView* theWrappedObject, const QRectF& rect, Qt::AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio); + void fitInView(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h, Qt::AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio); + void focusInEvent(QGraphicsView* theWrappedObject, QFocusEvent* event); + bool focusNextPrevChild(QGraphicsView* theWrappedObject, bool next); + void focusOutEvent(QGraphicsView* theWrappedObject, QFocusEvent* event); + QBrush foregroundBrush(QGraphicsView* theWrappedObject) const; + void inputMethodEvent(QGraphicsView* theWrappedObject, QInputMethodEvent* event); + QVariant inputMethodQuery(QGraphicsView* theWrappedObject, Qt::InputMethodQuery query) const; + bool isInteractive(QGraphicsView* theWrappedObject) const; + bool isTransformed(QGraphicsView* theWrappedObject) const; + QGraphicsItem* itemAt(QGraphicsView* theWrappedObject, const QPoint& pos) const; + QGraphicsItem* itemAt(QGraphicsView* theWrappedObject, int x, int y) const; + QList items(QGraphicsView* theWrappedObject) const; + QList items(QGraphicsView* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; + QList items(QGraphicsView* theWrappedObject, const QPoint& pos) const; + QList items(QGraphicsView* theWrappedObject, const QPolygon& polygon, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; + QList items(QGraphicsView* theWrappedObject, const QRect& rect, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; + QList items(QGraphicsView* theWrappedObject, int x, int y) const; + QList items(QGraphicsView* theWrappedObject, int x, int y, int w, int h, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; + void keyPressEvent(QGraphicsView* theWrappedObject, QKeyEvent* event); + void keyReleaseEvent(QGraphicsView* theWrappedObject, QKeyEvent* event); + QPainterPath mapFromScene(QGraphicsView* theWrappedObject, const QPainterPath& path) const; + QPoint mapFromScene(QGraphicsView* theWrappedObject, const QPointF& point) const; + QPolygon mapFromScene(QGraphicsView* theWrappedObject, const QPolygonF& polygon) const; + QPolygon mapFromScene(QGraphicsView* theWrappedObject, const QRectF& rect) const; + QPoint mapFromScene(QGraphicsView* theWrappedObject, qreal x, qreal y) const; + QPolygon mapFromScene(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; + QPainterPath mapToScene(QGraphicsView* theWrappedObject, const QPainterPath& path) const; + QPointF mapToScene(QGraphicsView* theWrappedObject, const QPoint& point) const; + QPolygonF mapToScene(QGraphicsView* theWrappedObject, const QPolygon& polygon) const; + QPolygonF mapToScene(QGraphicsView* theWrappedObject, const QRect& rect) const; + QPointF mapToScene(QGraphicsView* theWrappedObject, int x, int y) const; + QPolygonF mapToScene(QGraphicsView* theWrappedObject, int x, int y, int w, int h) const; + QMatrix matrix(QGraphicsView* theWrappedObject) const; + void mouseDoubleClickEvent(QGraphicsView* theWrappedObject, QMouseEvent* event); + void mouseMoveEvent(QGraphicsView* theWrappedObject, QMouseEvent* event); + void mousePressEvent(QGraphicsView* theWrappedObject, QMouseEvent* event); + void mouseReleaseEvent(QGraphicsView* theWrappedObject, QMouseEvent* event); + QGraphicsView::OptimizationFlags optimizationFlags(QGraphicsView* theWrappedObject) const; + void paintEvent(QGraphicsView* theWrappedObject, QPaintEvent* event); + void render(QGraphicsView* theWrappedObject, QPainter* painter, const QRectF& target = QRectF(), const QRect& source = QRect(), Qt::AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio); + QPainter::RenderHints renderHints(QGraphicsView* theWrappedObject) const; + void resetCachedContent(QGraphicsView* theWrappedObject); + void resetMatrix(QGraphicsView* theWrappedObject); + void resetTransform(QGraphicsView* theWrappedObject); + QGraphicsView::ViewportAnchor resizeAnchor(QGraphicsView* theWrappedObject) const; + void resizeEvent(QGraphicsView* theWrappedObject, QResizeEvent* event); + void rotate(QGraphicsView* theWrappedObject, qreal angle); + Qt::ItemSelectionMode rubberBandSelectionMode(QGraphicsView* theWrappedObject) const; + void scale(QGraphicsView* theWrappedObject, qreal sx, qreal sy); + QGraphicsScene* scene(QGraphicsView* theWrappedObject) const; + QRectF sceneRect(QGraphicsView* theWrappedObject) const; + void scrollContentsBy(QGraphicsView* theWrappedObject, int dx, int dy); + void setAlignment(QGraphicsView* theWrappedObject, Qt::Alignment alignment); + void setBackgroundBrush(QGraphicsView* theWrappedObject, const QBrush& brush); + void setCacheMode(QGraphicsView* theWrappedObject, QGraphicsView::CacheMode mode); + void setDragMode(QGraphicsView* theWrappedObject, QGraphicsView::DragMode mode); + void setForegroundBrush(QGraphicsView* theWrappedObject, const QBrush& brush); + void setInteractive(QGraphicsView* theWrappedObject, bool allowed); + void setMatrix(QGraphicsView* theWrappedObject, const QMatrix& matrix, bool combine = false); + void setOptimizationFlag(QGraphicsView* theWrappedObject, QGraphicsView::OptimizationFlag flag, bool enabled = true); + void setOptimizationFlags(QGraphicsView* theWrappedObject, QGraphicsView::OptimizationFlags flags); + void setRenderHint(QGraphicsView* theWrappedObject, QPainter::RenderHint hint, bool enabled = true); + void setRenderHints(QGraphicsView* theWrappedObject, QPainter::RenderHints hints); + void setResizeAnchor(QGraphicsView* theWrappedObject, QGraphicsView::ViewportAnchor anchor); + void setRubberBandSelectionMode(QGraphicsView* theWrappedObject, Qt::ItemSelectionMode mode); + void setScene(QGraphicsView* theWrappedObject, QGraphicsScene* scene); + void setSceneRect(QGraphicsView* theWrappedObject, const QRectF& rect); + void setSceneRect(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h); + void setTransform(QGraphicsView* theWrappedObject, const QTransform& matrix, bool combine = false); + void setTransformationAnchor(QGraphicsView* theWrappedObject, QGraphicsView::ViewportAnchor anchor); + void setViewportUpdateMode(QGraphicsView* theWrappedObject, QGraphicsView::ViewportUpdateMode mode); + void setupViewport(QGraphicsView* theWrappedObject, QWidget* widget); + void shear(QGraphicsView* theWrappedObject, qreal sh, qreal sv); + void showEvent(QGraphicsView* theWrappedObject, QShowEvent* event); + QSize sizeHint(QGraphicsView* theWrappedObject) const; + QTransform transform(QGraphicsView* theWrappedObject) const; + QGraphicsView::ViewportAnchor transformationAnchor(QGraphicsView* theWrappedObject) const; + void translate(QGraphicsView* theWrappedObject, qreal dx, qreal dy); + bool viewportEvent(QGraphicsView* theWrappedObject, QEvent* event); + QTransform viewportTransform(QGraphicsView* theWrappedObject) const; + QGraphicsView::ViewportUpdateMode viewportUpdateMode(QGraphicsView* theWrappedObject) const; + void wheelEvent(QGraphicsView* theWrappedObject, QWheelEvent* event); +}; + + + + + +class PythonQtShell_QGraphicsWidget : public QGraphicsWidget +{ +public: + PythonQtShell_QGraphicsWidget(QGraphicsItem* parent = 0, Qt::WindowFlags wFlags = 0):QGraphicsWidget(parent, wFlags),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsWidget(); + +virtual void changeEvent(QEvent* event); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* event); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool focusNextPrevChild(bool next); +virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; +virtual void grabKeyboardEvent(QEvent* event); +virtual void grabMouseEvent(QEvent* event); +virtual void hideEvent(QHideEvent* event); +virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); +virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); +virtual void initStyleOption(QStyleOption* option) const; +virtual void moveEvent(QGraphicsSceneMoveEvent* event); +virtual void paintWindowFrame(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); +virtual void polishEvent(); +virtual QVariant propertyChange(const QString& propertyName, const QVariant& value); +virtual void resizeEvent(QGraphicsSceneResizeEvent* event); +virtual void setGeometry(const QRectF& rect); +virtual void showEvent(QShowEvent* event); +virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual void ungrabKeyboardEvent(QEvent* event); +virtual void ungrabMouseEvent(QEvent* event); +virtual void updateGeometry(); +virtual bool windowFrameEvent(QEvent* e); +virtual Qt::WindowFrameSection windowFrameSectionAt(const QPointF& pos) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsWidget : public QGraphicsWidget +{ public: +inline void promoted_changeEvent(QEvent* event) { QGraphicsWidget::changeEvent(event); } +inline void promoted_closeEvent(QCloseEvent* event) { QGraphicsWidget::closeEvent(event); } +inline bool promoted_event(QEvent* event) { return QGraphicsWidget::event(event); } +inline bool promoted_focusNextPrevChild(bool next) { return QGraphicsWidget::focusNextPrevChild(next); } +inline void promoted_getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const { QGraphicsWidget::getContentsMargins(left, top, right, bottom); } +inline void promoted_grabKeyboardEvent(QEvent* event) { QGraphicsWidget::grabKeyboardEvent(event); } +inline void promoted_grabMouseEvent(QEvent* event) { QGraphicsWidget::grabMouseEvent(event); } +inline void promoted_hideEvent(QHideEvent* event) { QGraphicsWidget::hideEvent(event); } +inline void promoted_hoverLeaveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsWidget::hoverLeaveEvent(event); } +inline void promoted_hoverMoveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsWidget::hoverMoveEvent(event); } +inline void promoted_initStyleOption(QStyleOption* option) const { QGraphicsWidget::initStyleOption(option); } +inline void promoted_moveEvent(QGraphicsSceneMoveEvent* event) { QGraphicsWidget::moveEvent(event); } +inline void promoted_paintWindowFrame(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) { QGraphicsWidget::paintWindowFrame(painter, option, widget); } +inline void promoted_polishEvent() { QGraphicsWidget::polishEvent(); } +inline QVariant promoted_propertyChange(const QString& propertyName, const QVariant& value) { return QGraphicsWidget::propertyChange(propertyName, value); } +inline void promoted_resizeEvent(QGraphicsSceneResizeEvent* event) { QGraphicsWidget::resizeEvent(event); } +inline void promoted_setGeometry(const QRectF& rect) { QGraphicsWidget::setGeometry(rect); } +inline void promoted_showEvent(QShowEvent* event) { QGraphicsWidget::showEvent(event); } +inline QSizeF promoted_sizeHint(Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const { return QGraphicsWidget::sizeHint(which, constraint); } +inline void promoted_ungrabKeyboardEvent(QEvent* event) { QGraphicsWidget::ungrabKeyboardEvent(event); } +inline void promoted_ungrabMouseEvent(QEvent* event) { QGraphicsWidget::ungrabMouseEvent(event); } +inline void promoted_updateGeometry() { QGraphicsWidget::updateGeometry(); } +inline bool promoted_windowFrameEvent(QEvent* e) { return QGraphicsWidget::windowFrameEvent(e); } +inline Qt::WindowFrameSection promoted_windowFrameSectionAt(const QPointF& pos) const { return QGraphicsWidget::windowFrameSectionAt(pos); } +}; + +class PythonQtWrapper_QGraphicsWidget : public QObject +{ Q_OBJECT +public: +Q_ENUMS(enum_1 ) +enum enum_1{ + Type = QGraphicsWidget::Type}; +public slots: +QGraphicsWidget* new_QGraphicsWidget(QGraphicsItem* parent = 0, Qt::WindowFlags wFlags = 0); +void delete_QGraphicsWidget(QGraphicsWidget* obj) { delete obj; } + QList actions(QGraphicsWidget* theWrappedObject) const; + void addAction(QGraphicsWidget* theWrappedObject, QAction* action); + void addActions(QGraphicsWidget* theWrappedObject, QList actions); + void adjustSize(QGraphicsWidget* theWrappedObject); + bool autoFillBackground(QGraphicsWidget* theWrappedObject) const; + QRectF boundingRect(QGraphicsWidget* theWrappedObject) const; + void changeEvent(QGraphicsWidget* theWrappedObject, QEvent* event); + void closeEvent(QGraphicsWidget* theWrappedObject, QCloseEvent* event); + bool event(QGraphicsWidget* theWrappedObject, QEvent* event); + bool focusNextPrevChild(QGraphicsWidget* theWrappedObject, bool next); + Qt::FocusPolicy focusPolicy(QGraphicsWidget* theWrappedObject) const; + QGraphicsWidget* focusWidget(QGraphicsWidget* theWrappedObject) const; + QFont font(QGraphicsWidget* theWrappedObject) const; + void getContentsMargins(QGraphicsWidget* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const; + void getWindowFrameMargins(QGraphicsWidget* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const; + void grabKeyboardEvent(QGraphicsWidget* theWrappedObject, QEvent* event); + void grabMouseEvent(QGraphicsWidget* theWrappedObject, QEvent* event); + int grabShortcut(QGraphicsWidget* theWrappedObject, const QKeySequence& sequence, Qt::ShortcutContext context = Qt::WindowShortcut); + void hideEvent(QGraphicsWidget* theWrappedObject, QHideEvent* event); + void hoverLeaveEvent(QGraphicsWidget* theWrappedObject, QGraphicsSceneHoverEvent* event); + void hoverMoveEvent(QGraphicsWidget* theWrappedObject, QGraphicsSceneHoverEvent* event); + void initStyleOption(QGraphicsWidget* theWrappedObject, QStyleOption* option) const; + void insertAction(QGraphicsWidget* theWrappedObject, QAction* before, QAction* action); + void insertActions(QGraphicsWidget* theWrappedObject, QAction* before, QList actions); + bool isActiveWindow(QGraphicsWidget* theWrappedObject) const; + QGraphicsLayout* layout(QGraphicsWidget* theWrappedObject) const; + Qt::LayoutDirection layoutDirection(QGraphicsWidget* theWrappedObject) const; + void moveEvent(QGraphicsWidget* theWrappedObject, QGraphicsSceneMoveEvent* event); + void paint(QGraphicsWidget* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); + void paintWindowFrame(QGraphicsWidget* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); + QPalette palette(QGraphicsWidget* theWrappedObject) const; + void polishEvent(QGraphicsWidget* theWrappedObject); + QVariant propertyChange(QGraphicsWidget* theWrappedObject, const QString& propertyName, const QVariant& value); + QRectF rect(QGraphicsWidget* theWrappedObject) const; + void releaseShortcut(QGraphicsWidget* theWrappedObject, int id); + void removeAction(QGraphicsWidget* theWrappedObject, QAction* action); + void resize(QGraphicsWidget* theWrappedObject, const QSizeF& size); + void resize(QGraphicsWidget* theWrappedObject, qreal w, qreal h); + void resizeEvent(QGraphicsWidget* theWrappedObject, QGraphicsSceneResizeEvent* event); + void setAttribute(QGraphicsWidget* theWrappedObject, Qt::WidgetAttribute attribute, bool on = true); + void setAutoFillBackground(QGraphicsWidget* theWrappedObject, bool enabled); + void setContentsMargins(QGraphicsWidget* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom); + void setFocusPolicy(QGraphicsWidget* theWrappedObject, Qt::FocusPolicy policy); + void setFont(QGraphicsWidget* theWrappedObject, const QFont& font); + void setGeometry(QGraphicsWidget* theWrappedObject, const QRectF& rect); + void setGeometry(QGraphicsWidget* theWrappedObject, qreal x, qreal y, qreal w, qreal h); + void setLayout(QGraphicsWidget* theWrappedObject, QGraphicsLayout* layout); + void setLayoutDirection(QGraphicsWidget* theWrappedObject, Qt::LayoutDirection direction); + void setPalette(QGraphicsWidget* theWrappedObject, const QPalette& palette); + void setShortcutAutoRepeat(QGraphicsWidget* theWrappedObject, int id, bool enabled = true); + void setShortcutEnabled(QGraphicsWidget* theWrappedObject, int id, bool enabled = true); + void setStyle(QGraphicsWidget* theWrappedObject, QStyle* style); + void static_QGraphicsWidget_setTabOrder(QGraphicsWidget* first, QGraphicsWidget* second); + void setWindowFlags(QGraphicsWidget* theWrappedObject, Qt::WindowFlags wFlags); + void setWindowFrameMargins(QGraphicsWidget* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom); + void setWindowTitle(QGraphicsWidget* theWrappedObject, const QString& title); + QPainterPath shape(QGraphicsWidget* theWrappedObject) const; + void showEvent(QGraphicsWidget* theWrappedObject, QShowEvent* event); + QSizeF size(QGraphicsWidget* theWrappedObject) const; + QSizeF sizeHint(QGraphicsWidget* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; + QStyle* style(QGraphicsWidget* theWrappedObject) const; + bool testAttribute(QGraphicsWidget* theWrappedObject, Qt::WidgetAttribute attribute) const; + int type(QGraphicsWidget* theWrappedObject) const; + void ungrabKeyboardEvent(QGraphicsWidget* theWrappedObject, QEvent* event); + void ungrabMouseEvent(QGraphicsWidget* theWrappedObject, QEvent* event); + void unsetLayoutDirection(QGraphicsWidget* theWrappedObject); + void unsetWindowFrameMargins(QGraphicsWidget* theWrappedObject); + void updateGeometry(QGraphicsWidget* theWrappedObject); + Qt::WindowFlags windowFlags(QGraphicsWidget* theWrappedObject) const; + bool windowFrameEvent(QGraphicsWidget* theWrappedObject, QEvent* e); + QRectF windowFrameGeometry(QGraphicsWidget* theWrappedObject) const; + QRectF windowFrameRect(QGraphicsWidget* theWrappedObject) const; + Qt::WindowFrameSection windowFrameSectionAt(QGraphicsWidget* theWrappedObject, const QPointF& pos) const; + QString windowTitle(QGraphicsWidget* theWrappedObject) const; + Qt::WindowType windowType(QGraphicsWidget* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGridLayout : public QGridLayout +{ +public: + PythonQtShell_QGridLayout():QGridLayout(),_wrapper(NULL) {}; + PythonQtShell_QGridLayout(QWidget* parent):QGridLayout(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGridLayout(); + +virtual void addItem(QLayoutItem* arg__1); +virtual void childEvent(QChildEvent* e); +virtual QSizePolicy::ControlTypes controlTypes() const; +virtual int count() const; +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual Qt::Orientations expandingDirections() const; +virtual QRect geometry() const; +virtual int indexOf(QWidget* arg__1) const; +virtual void invalidate(); +virtual bool isEmpty() const; +virtual QLayoutItem* itemAt(int index) const; +virtual QLayout* layout(); +virtual QSize maximumSize() const; +virtual QSize minimumSize() const; +virtual void setGeometry(const QRect& arg__1); +virtual QLayoutItem* takeAt(int index); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGridLayout : public QGridLayout +{ public: +inline void promoted_addItem(QLayoutItem* arg__1) { QGridLayout::addItem(arg__1); } +inline int promoted_count() const { return QGridLayout::count(); } +inline Qt::Orientations promoted_expandingDirections() const { return QGridLayout::expandingDirections(); } +inline void promoted_invalidate() { QGridLayout::invalidate(); } +inline QLayoutItem* promoted_itemAt(int index) const { return QGridLayout::itemAt(index); } +inline QSize promoted_maximumSize() const { return QGridLayout::maximumSize(); } +inline QSize promoted_minimumSize() const { return QGridLayout::minimumSize(); } +inline void promoted_setGeometry(const QRect& arg__1) { QGridLayout::setGeometry(arg__1); } +inline QLayoutItem* promoted_takeAt(int index) { return QGridLayout::takeAt(index); } +}; + +class PythonQtWrapper_QGridLayout : public QObject +{ Q_OBJECT +public: +public slots: +QGridLayout* new_QGridLayout(); +QGridLayout* new_QGridLayout(QWidget* parent); +void delete_QGridLayout(QGridLayout* obj) { delete obj; } + void addItem(QGridLayout* theWrappedObject, QLayoutItem* arg__1); + void addItem(QGridLayout* theWrappedObject, QLayoutItem* item, int row, int column, int rowSpan = 1, int columnSpan = 1, Qt::Alignment arg__6 = 0); + void addLayout(QGridLayout* theWrappedObject, QLayout* arg__1, int row, int column, Qt::Alignment arg__4 = 0); + void addLayout(QGridLayout* theWrappedObject, QLayout* arg__1, int row, int column, int rowSpan, int columnSpan, Qt::Alignment arg__6 = 0); + void addWidget(QGridLayout* theWrappedObject, QWidget* arg__1, int row, int column, Qt::Alignment arg__4 = 0); + void addWidget(QGridLayout* theWrappedObject, QWidget* arg__1, int row, int column, int rowSpan, int columnSpan, Qt::Alignment arg__6 = 0); + QRect cellRect(QGridLayout* theWrappedObject, int row, int column) const; + int columnCount(QGridLayout* theWrappedObject) const; + int columnMinimumWidth(QGridLayout* theWrappedObject, int column) const; + int columnStretch(QGridLayout* theWrappedObject, int column) const; + int count(QGridLayout* theWrappedObject) const; + Qt::Orientations expandingDirections(QGridLayout* theWrappedObject) const; + void getItemPosition(QGridLayout* theWrappedObject, int idx, int* row, int* column, int* rowSpan, int* columnSpan) const; + bool hasHeightForWidth(QGridLayout* theWrappedObject) const; + int heightForWidth(QGridLayout* theWrappedObject, int arg__1) const; + int horizontalSpacing(QGridLayout* theWrappedObject) const; + void invalidate(QGridLayout* theWrappedObject); + QLayoutItem* itemAt(QGridLayout* theWrappedObject, int index) const; + QLayoutItem* itemAtPosition(QGridLayout* theWrappedObject, int row, int column) const; + QSize maximumSize(QGridLayout* theWrappedObject) const; + int minimumHeightForWidth(QGridLayout* theWrappedObject, int arg__1) const; + QSize minimumSize(QGridLayout* theWrappedObject) const; + Qt::Corner originCorner(QGridLayout* theWrappedObject) const; + int rowCount(QGridLayout* theWrappedObject) const; + int rowMinimumHeight(QGridLayout* theWrappedObject, int row) const; + int rowStretch(QGridLayout* theWrappedObject, int row) const; + void setColumnMinimumWidth(QGridLayout* theWrappedObject, int column, int minSize); + void setColumnStretch(QGridLayout* theWrappedObject, int column, int stretch); + void setDefaultPositioning(QGridLayout* theWrappedObject, int n, Qt::Orientation orient); + void setGeometry(QGridLayout* theWrappedObject, const QRect& arg__1); + void setHorizontalSpacing(QGridLayout* theWrappedObject, int spacing); + void setOriginCorner(QGridLayout* theWrappedObject, Qt::Corner arg__1); + void setRowMinimumHeight(QGridLayout* theWrappedObject, int row, int minSize); + void setRowStretch(QGridLayout* theWrappedObject, int row, int stretch); + void setSpacing(QGridLayout* theWrappedObject, int spacing); + void setVerticalSpacing(QGridLayout* theWrappedObject, int spacing); + QSize sizeHint(QGridLayout* theWrappedObject) const; + int spacing(QGridLayout* theWrappedObject) const; + QLayoutItem* takeAt(QGridLayout* theWrappedObject, int index); + int verticalSpacing(QGridLayout* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGroupBox : public QGroupBox +{ +public: + PythonQtShell_QGroupBox(QWidget* parent = 0):QGroupBox(parent),_wrapper(NULL) {}; + PythonQtShell_QGroupBox(const QString& title, QWidget* parent = 0):QGroupBox(title, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGroupBox(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* event); +virtual void childEvent(QChildEvent* event); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* event); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* event); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* event); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* event); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual QSize sizeHint() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGroupBox : public QGroupBox +{ public: +inline void promoted_changeEvent(QEvent* event) { QGroupBox::changeEvent(event); } +inline void promoted_childEvent(QChildEvent* event) { QGroupBox::childEvent(event); } +inline bool promoted_event(QEvent* event) { return QGroupBox::event(event); } +inline void promoted_focusInEvent(QFocusEvent* event) { QGroupBox::focusInEvent(event); } +inline void promoted_mouseMoveEvent(QMouseEvent* event) { QGroupBox::mouseMoveEvent(event); } +inline void promoted_mousePressEvent(QMouseEvent* event) { QGroupBox::mousePressEvent(event); } +inline void promoted_mouseReleaseEvent(QMouseEvent* event) { QGroupBox::mouseReleaseEvent(event); } +inline void promoted_paintEvent(QPaintEvent* event) { QGroupBox::paintEvent(event); } +inline void promoted_resizeEvent(QResizeEvent* event) { QGroupBox::resizeEvent(event); } +}; + +class PythonQtWrapper_QGroupBox : public QObject +{ Q_OBJECT +public: +public slots: +QGroupBox* new_QGroupBox(QWidget* parent = 0); +QGroupBox* new_QGroupBox(const QString& title, QWidget* parent = 0); +void delete_QGroupBox(QGroupBox* obj) { delete obj; } + Qt::Alignment alignment(QGroupBox* theWrappedObject) const; + void changeEvent(QGroupBox* theWrappedObject, QEvent* event); + void childEvent(QGroupBox* theWrappedObject, QChildEvent* event); + bool event(QGroupBox* theWrappedObject, QEvent* event); + void focusInEvent(QGroupBox* theWrappedObject, QFocusEvent* event); + bool isCheckable(QGroupBox* theWrappedObject) const; + bool isChecked(QGroupBox* theWrappedObject) const; + bool isFlat(QGroupBox* theWrappedObject) const; + QSize minimumSizeHint(QGroupBox* theWrappedObject) const; + void mouseMoveEvent(QGroupBox* theWrappedObject, QMouseEvent* event); + void mousePressEvent(QGroupBox* theWrappedObject, QMouseEvent* event); + void mouseReleaseEvent(QGroupBox* theWrappedObject, QMouseEvent* event); + void paintEvent(QGroupBox* theWrappedObject, QPaintEvent* event); + void resizeEvent(QGroupBox* theWrappedObject, QResizeEvent* event); + void setAlignment(QGroupBox* theWrappedObject, int alignment); + void setCheckable(QGroupBox* theWrappedObject, bool checkable); + void setFlat(QGroupBox* theWrappedObject, bool flat); + void setTitle(QGroupBox* theWrappedObject, const QString& title); + QString title(QGroupBox* theWrappedObject) const; +}; + +#endif + + + +class PythonQtShell_QGuiApplication : public QGuiApplication +{ +public: + PythonQtShell_QGuiApplication(int& argc, char** argv, int arg__3 = ApplicationFlags):QGuiApplication(argc, argv, arg__3),_wrapper(NULL) {}; + + ~PythonQtShell_QGuiApplication(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool notify(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGuiApplication : public QGuiApplication +{ public: +inline bool promoted_event(QEvent* arg__1) { return QGuiApplication::event(arg__1); } +inline bool promoted_notify(QObject* arg__1, QEvent* arg__2) { return QGuiApplication::notify(arg__1, arg__2); } +}; + +class PythonQtWrapper_QGuiApplication : public QObject +{ Q_OBJECT +public: +public slots: +QGuiApplication* new_QGuiApplication(int& argc, char** argv); +void delete_QGuiApplication(QGuiApplication* obj) { delete obj; } + QString static_QGuiApplication_applicationDisplayName(); + void static_QGuiApplication_changeOverrideCursor(const QCursor& arg__1); + QClipboard* static_QGuiApplication_clipboard(); + bool static_QGuiApplication_desktopSettingsAware(); + qreal devicePixelRatio(QGuiApplication* theWrappedObject) const; + bool event(QGuiApplication* theWrappedObject, QEvent* arg__1); + int static_QGuiApplication_exec(); + QObject* static_QGuiApplication_focusObject(); + QFont static_QGuiApplication_font(); + bool static_QGuiApplication_isLeftToRight(); + bool static_QGuiApplication_isRightToLeft(); + bool isSavingSession(QGuiApplication* theWrappedObject) const; + bool isSessionRestored(QGuiApplication* theWrappedObject) const; + Qt::KeyboardModifiers static_QGuiApplication_keyboardModifiers(); + Qt::LayoutDirection static_QGuiApplication_layoutDirection(); + Qt::MouseButtons static_QGuiApplication_mouseButtons(); + bool notify(QGuiApplication* theWrappedObject, QObject* arg__1, QEvent* arg__2); + QCursor* static_QGuiApplication_overrideCursor(); + QPalette static_QGuiApplication_palette(); + QString static_QGuiApplication_platformName(); + Qt::KeyboardModifiers static_QGuiApplication_queryKeyboardModifiers(); + bool static_QGuiApplication_quitOnLastWindowClosed(); + void static_QGuiApplication_restoreOverrideCursor(); + QString sessionId(QGuiApplication* theWrappedObject) const; + QString sessionKey(QGuiApplication* theWrappedObject) const; + void static_QGuiApplication_setApplicationDisplayName(const QString& name); + void static_QGuiApplication_setDesktopSettingsAware(bool on); + void static_QGuiApplication_setFont(const QFont& arg__1); + void static_QGuiApplication_setLayoutDirection(Qt::LayoutDirection direction); + void static_QGuiApplication_setOverrideCursor(const QCursor& arg__1); + void static_QGuiApplication_setPalette(const QPalette& pal); + void static_QGuiApplication_setQuitOnLastWindowClosed(bool quit); +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QHBoxLayout : public QHBoxLayout +{ +public: + PythonQtShell_QHBoxLayout():QHBoxLayout(),_wrapper(NULL) {}; + PythonQtShell_QHBoxLayout(QWidget* parent):QHBoxLayout(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QHBoxLayout(); + +virtual void addItem(QLayoutItem* arg__1); +virtual void childEvent(QChildEvent* e); +virtual QSizePolicy::ControlTypes controlTypes() const; +virtual int count() const; +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual Qt::Orientations expandingDirections() const; +virtual QRect geometry() const; +virtual int indexOf(QWidget* arg__1) const; +virtual void invalidate(); +virtual bool isEmpty() const; +virtual QLayoutItem* itemAt(int arg__1) const; +virtual QLayout* layout(); +virtual QSize maximumSize() const; +virtual QSize minimumSize() const; +virtual void setGeometry(const QRect& arg__1); +virtual QLayoutItem* takeAt(int arg__1); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QHBoxLayout : public QObject +{ Q_OBJECT +public: +public slots: +QHBoxLayout* new_QHBoxLayout(); +QHBoxLayout* new_QHBoxLayout(QWidget* parent); +void delete_QHBoxLayout(QHBoxLayout* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QHeaderView : public QHeaderView +{ +public: + PythonQtShell_QHeaderView(Qt::Orientation orientation, QWidget* parent = 0):QHeaderView(orientation, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QHeaderView(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void commitData(QWidget* editor); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void currentChanged(const QModelIndex& current, const QModelIndex& old); +virtual void customEvent(QEvent* arg__1); +virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles = QVector()); +virtual int devType() const; +virtual void doItemsLayout(); +virtual void dragEnterEvent(QDragEnterEvent* event); +virtual void dragLeaveEvent(QDragLeaveEvent* event); +virtual void dragMoveEvent(QDragMoveEvent* event); +virtual void dropEvent(QDropEvent* event); +virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); +virtual void editorDestroyed(QObject* editor); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* event); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual int horizontalOffset() const; +virtual void horizontalScrollbarAction(int action); +virtual void horizontalScrollbarValueChanged(int value); +virtual QModelIndex indexAt(const QPoint& p) const; +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual bool isIndexHidden(const QModelIndex& index) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void keyboardSearch(const QString& search); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* e); +virtual void mouseMoveEvent(QMouseEvent* e); +virtual void mousePressEvent(QMouseEvent* e); +virtual void mouseReleaseEvent(QMouseEvent* e); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* e); +virtual void paintSection(QPainter* painter, const QRect& rect, int logicalIndex) const; +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reset(); +virtual void resizeEvent(QResizeEvent* 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 void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint); +virtual QSize sectionSizeFromContents(int logicalIndex) const; +virtual void selectAll(); +virtual QList selectedIndexes() const; +virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); +virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; +virtual void setModel(QAbstractItemModel* model); +virtual void setRootIndex(const QModelIndex& index); +virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags flags); +virtual void setSelectionModel(QItemSelectionModel* selectionModel); +virtual void setupViewport(QWidget* viewport); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual int sizeHintForColumn(int column) const; +virtual int sizeHintForRow(int row) const; +virtual void startDrag(Qt::DropActions supportedActions); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* event); +virtual void updateEditorData(); +virtual void updateEditorGeometries(); +virtual void updateGeometries(); +virtual int verticalOffset() const; +virtual void verticalScrollbarAction(int action); +virtual void verticalScrollbarValueChanged(int value); +virtual QStyleOptionViewItem viewOptions() const; +virtual bool viewportEvent(QEvent* e); +virtual QSize viewportSizeHint() const; +virtual QRect visualRect(const QModelIndex& index) const; +virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QHeaderView : public QHeaderView +{ public: +inline void promoted_currentChanged(const QModelIndex& current, const QModelIndex& old) { QHeaderView::currentChanged(current, old); } +inline void promoted_dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles = QVector()) { QHeaderView::dataChanged(topLeft, bottomRight, roles); } +inline void promoted_doItemsLayout() { QHeaderView::doItemsLayout(); } +inline bool promoted_event(QEvent* e) { return QHeaderView::event(e); } +inline int promoted_horizontalOffset() const { return QHeaderView::horizontalOffset(); } +inline QModelIndex promoted_indexAt(const QPoint& p) const { return QHeaderView::indexAt(p); } +inline bool promoted_isIndexHidden(const QModelIndex& index) const { return QHeaderView::isIndexHidden(index); } +inline void promoted_mouseDoubleClickEvent(QMouseEvent* e) { QHeaderView::mouseDoubleClickEvent(e); } +inline void promoted_mouseMoveEvent(QMouseEvent* e) { QHeaderView::mouseMoveEvent(e); } +inline void promoted_mousePressEvent(QMouseEvent* e) { QHeaderView::mousePressEvent(e); } +inline void promoted_mouseReleaseEvent(QMouseEvent* e) { QHeaderView::mouseReleaseEvent(e); } +inline void promoted_paintEvent(QPaintEvent* e) { QHeaderView::paintEvent(e); } +inline void promoted_paintSection(QPainter* painter, const QRect& rect, int logicalIndex) const { QHeaderView::paintSection(painter, rect, logicalIndex); } +inline void promoted_reset() { QHeaderView::reset(); } +inline void promoted_rowsInserted(const QModelIndex& parent, int start, int end) { QHeaderView::rowsInserted(parent, start, end); } +inline void promoted_scrollContentsBy(int dx, int dy) { QHeaderView::scrollContentsBy(dx, dy); } +inline void promoted_scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) { QHeaderView::scrollTo(index, hint); } +inline QSize promoted_sectionSizeFromContents(int logicalIndex) const { return QHeaderView::sectionSizeFromContents(logicalIndex); } +inline void promoted_setModel(QAbstractItemModel* model) { QHeaderView::setModel(model); } +inline void promoted_setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags flags) { QHeaderView::setSelection(rect, flags); } +inline void promoted_updateGeometries() { QHeaderView::updateGeometries(); } +inline int promoted_verticalOffset() const { return QHeaderView::verticalOffset(); } +inline bool promoted_viewportEvent(QEvent* e) { return QHeaderView::viewportEvent(e); } +inline QRect promoted_visualRect(const QModelIndex& index) const { return QHeaderView::visualRect(index); } +inline QRegion promoted_visualRegionForSelection(const QItemSelection& selection) const { return QHeaderView::visualRegionForSelection(selection); } +}; + +class PythonQtWrapper_QHeaderView : public QObject +{ Q_OBJECT +public: +public slots: +QHeaderView* new_QHeaderView(Qt::Orientation orientation, QWidget* parent = 0); +void delete_QHeaderView(QHeaderView* obj) { delete obj; } + bool cascadingSectionResizes(QHeaderView* theWrappedObject) const; + int count(QHeaderView* theWrappedObject) const; + void currentChanged(QHeaderView* theWrappedObject, const QModelIndex& current, const QModelIndex& old); + void dataChanged(QHeaderView* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles = QVector()); + Qt::Alignment defaultAlignment(QHeaderView* theWrappedObject) const; + int defaultSectionSize(QHeaderView* theWrappedObject) const; + void doItemsLayout(QHeaderView* theWrappedObject); + bool event(QHeaderView* theWrappedObject, QEvent* e); + int hiddenSectionCount(QHeaderView* theWrappedObject) const; + void hideSection(QHeaderView* theWrappedObject, int logicalIndex); + bool highlightSections(QHeaderView* theWrappedObject) const; + int horizontalOffset(QHeaderView* theWrappedObject) const; + QModelIndex indexAt(QHeaderView* theWrappedObject, const QPoint& p) const; + bool isIndexHidden(QHeaderView* theWrappedObject, const QModelIndex& index) const; + bool isSectionHidden(QHeaderView* theWrappedObject, int logicalIndex) const; + bool isSortIndicatorShown(QHeaderView* theWrappedObject) const; + int length(QHeaderView* theWrappedObject) const; + int logicalIndex(QHeaderView* theWrappedObject, int visualIndex) const; + int logicalIndexAt(QHeaderView* theWrappedObject, const QPoint& pos) const; + int logicalIndexAt(QHeaderView* theWrappedObject, int position) const; + int logicalIndexAt(QHeaderView* theWrappedObject, int x, int y) const; + int minimumSectionSize(QHeaderView* theWrappedObject) const; + void mouseDoubleClickEvent(QHeaderView* theWrappedObject, QMouseEvent* e); + void mouseMoveEvent(QHeaderView* theWrappedObject, QMouseEvent* e); + void mousePressEvent(QHeaderView* theWrappedObject, QMouseEvent* e); + void mouseReleaseEvent(QHeaderView* theWrappedObject, QMouseEvent* e); + void moveSection(QHeaderView* theWrappedObject, int from, int to); + int offset(QHeaderView* theWrappedObject) const; + Qt::Orientation orientation(QHeaderView* theWrappedObject) const; + void paintEvent(QHeaderView* theWrappedObject, QPaintEvent* e); + void paintSection(QHeaderView* theWrappedObject, QPainter* painter, const QRect& rect, int logicalIndex) const; + void reset(QHeaderView* theWrappedObject); + void resizeSection(QHeaderView* theWrappedObject, int logicalIndex, int size); + void resizeSections(QHeaderView* theWrappedObject, QHeaderView::ResizeMode mode); + bool restoreState(QHeaderView* theWrappedObject, const QByteArray& state); + void rowsInserted(QHeaderView* theWrappedObject, const QModelIndex& parent, int start, int end); + QByteArray saveState(QHeaderView* theWrappedObject) const; + void scrollContentsBy(QHeaderView* theWrappedObject, int dx, int dy); + void scrollTo(QHeaderView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint); + int sectionPosition(QHeaderView* theWrappedObject, int logicalIndex) const; + QHeaderView::ResizeMode sectionResizeMode(QHeaderView* theWrappedObject, int logicalIndex) const; + int sectionSize(QHeaderView* theWrappedObject, int logicalIndex) const; + QSize sectionSizeFromContents(QHeaderView* theWrappedObject, int logicalIndex) const; + int sectionSizeHint(QHeaderView* theWrappedObject, int logicalIndex) const; + int sectionViewportPosition(QHeaderView* theWrappedObject, int logicalIndex) const; + bool sectionsClickable(QHeaderView* theWrappedObject) const; + bool sectionsHidden(QHeaderView* theWrappedObject) const; + bool sectionsMovable(QHeaderView* theWrappedObject) const; + bool sectionsMoved(QHeaderView* theWrappedObject) const; + void setCascadingSectionResizes(QHeaderView* theWrappedObject, bool enable); + void setDefaultAlignment(QHeaderView* theWrappedObject, Qt::Alignment alignment); + void setDefaultSectionSize(QHeaderView* theWrappedObject, int size); + void setHighlightSections(QHeaderView* theWrappedObject, bool highlight); + void setMinimumSectionSize(QHeaderView* theWrappedObject, int size); + void setModel(QHeaderView* theWrappedObject, QAbstractItemModel* model); + void setSectionHidden(QHeaderView* theWrappedObject, int logicalIndex, bool hide); + void setSectionResizeMode(QHeaderView* theWrappedObject, QHeaderView::ResizeMode mode); + void setSectionResizeMode(QHeaderView* theWrappedObject, int logicalIndex, QHeaderView::ResizeMode mode); + void setSectionsClickable(QHeaderView* theWrappedObject, bool clickable); + void setSectionsMovable(QHeaderView* theWrappedObject, bool movable); + void setSelection(QHeaderView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags flags); + void setSortIndicator(QHeaderView* theWrappedObject, int logicalIndex, Qt::SortOrder order); + void setSortIndicatorShown(QHeaderView* theWrappedObject, bool show); + void setStretchLastSection(QHeaderView* theWrappedObject, bool stretch); + void showSection(QHeaderView* theWrappedObject, int logicalIndex); + QSize sizeHint(QHeaderView* theWrappedObject) const; + Qt::SortOrder sortIndicatorOrder(QHeaderView* theWrappedObject) const; + int sortIndicatorSection(QHeaderView* theWrappedObject) const; + bool stretchLastSection(QHeaderView* theWrappedObject) const; + int stretchSectionCount(QHeaderView* theWrappedObject) const; + void swapSections(QHeaderView* theWrappedObject, int first, int second); + void updateGeometries(QHeaderView* theWrappedObject); + int verticalOffset(QHeaderView* theWrappedObject) const; + bool viewportEvent(QHeaderView* theWrappedObject, QEvent* e); + int visualIndex(QHeaderView* theWrappedObject, int logicalIndex) const; + int visualIndexAt(QHeaderView* theWrappedObject, int position) const; + QRect visualRect(QHeaderView* theWrappedObject, const QModelIndex& index) const; + QRegion visualRegionForSelection(QHeaderView* theWrappedObject, const QItemSelection& selection) const; +}; + +#endif + + + +class PythonQtWrapper_QHelpEvent : public QObject +{ Q_OBJECT +public: +public slots: +QHelpEvent* new_QHelpEvent(QEvent::Type type, const QPoint& pos, const QPoint& globalPos); +void delete_QHelpEvent(QHelpEvent* obj) { delete obj; } + const QPoint* globalPos(QHelpEvent* theWrappedObject) const; + int globalX(QHelpEvent* theWrappedObject) const; + int globalY(QHelpEvent* theWrappedObject) const; + const QPoint* pos(QHelpEvent* theWrappedObject) const; + int x(QHelpEvent* theWrappedObject) const; + int y(QHelpEvent* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QHideEvent : public QObject +{ Q_OBJECT +public: +public slots: +QHideEvent* new_QHideEvent(); +void delete_QHideEvent(QHideEvent* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QHoverEvent : public QHoverEvent +{ +public: + PythonQtShell_QHoverEvent(QEvent::Type type, const QPointF& pos, const QPointF& oldPos, Qt::KeyboardModifiers modifiers = Qt::NoModifier):QHoverEvent(type, pos, oldPos, modifiers),_wrapper(NULL) {}; + + ~PythonQtShell_QHoverEvent(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QHoverEvent : public QObject +{ Q_OBJECT +public: +public slots: +QHoverEvent* new_QHoverEvent(QEvent::Type type, const QPointF& pos, const QPointF& oldPos, Qt::KeyboardModifiers modifiers = Qt::NoModifier); +void delete_QHoverEvent(QHoverEvent* obj) { delete obj; } + QPoint oldPos(QHoverEvent* theWrappedObject) const; + const QPointF* oldPosF(QHoverEvent* theWrappedObject) const; + QPoint pos(QHoverEvent* theWrappedObject) const; + const QPointF* posF(QHoverEvent* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QIconDragEvent : public QObject +{ Q_OBJECT +public: +public slots: +QIconDragEvent* new_QIconDragEvent(); +void delete_QIconDragEvent(QIconDragEvent* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QImageIOHandler : public QImageIOHandler +{ +public: + PythonQtShell_QImageIOHandler():QImageIOHandler(),_wrapper(NULL) {}; + + ~PythonQtShell_QImageIOHandler(); + +virtual bool canRead() const; +virtual int currentImageNumber() const; +virtual QRect currentImageRect() const; +virtual int imageCount() const; +virtual bool jumpToImage(int imageNumber); +virtual bool jumpToNextImage(); +virtual int loopCount() const; +virtual QByteArray name() const; +virtual int nextImageDelay() const; +virtual QVariant option(QImageIOHandler::ImageOption option) const; +virtual bool read(QImage* image); +virtual void setOption(QImageIOHandler::ImageOption option, const QVariant& value); +virtual bool supportsOption(QImageIOHandler::ImageOption option) const; +virtual bool write(const QImage& image); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QImageIOHandler : public QImageIOHandler +{ public: +inline int promoted_currentImageNumber() const { return QImageIOHandler::currentImageNumber(); } +inline QRect promoted_currentImageRect() const { return QImageIOHandler::currentImageRect(); } +inline int promoted_imageCount() const { return QImageIOHandler::imageCount(); } +inline bool promoted_jumpToImage(int imageNumber) { return QImageIOHandler::jumpToImage(imageNumber); } +inline bool promoted_jumpToNextImage() { return QImageIOHandler::jumpToNextImage(); } +inline int promoted_loopCount() const { return QImageIOHandler::loopCount(); } +inline int promoted_nextImageDelay() const { return QImageIOHandler::nextImageDelay(); } +inline QVariant promoted_option(QImageIOHandler::ImageOption option) const { return QImageIOHandler::option(option); } +inline void promoted_setOption(QImageIOHandler::ImageOption option, const QVariant& value) { QImageIOHandler::setOption(option, value); } +inline bool promoted_supportsOption(QImageIOHandler::ImageOption option) const { return QImageIOHandler::supportsOption(option); } +inline bool promoted_write(const QImage& image) { return QImageIOHandler::write(image); } +}; + +class PythonQtWrapper_QImageIOHandler : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ImageOption ) +enum ImageOption{ + Size = QImageIOHandler::Size, ClipRect = QImageIOHandler::ClipRect, Description = QImageIOHandler::Description, ScaledClipRect = QImageIOHandler::ScaledClipRect, ScaledSize = QImageIOHandler::ScaledSize, CompressionRatio = QImageIOHandler::CompressionRatio, Gamma = QImageIOHandler::Gamma, Quality = QImageIOHandler::Quality, Name = QImageIOHandler::Name, SubType = QImageIOHandler::SubType, IncrementalReading = QImageIOHandler::IncrementalReading, Endianness = QImageIOHandler::Endianness, Animation = QImageIOHandler::Animation, BackgroundColor = QImageIOHandler::BackgroundColor, ImageFormat = QImageIOHandler::ImageFormat}; +public slots: +QImageIOHandler* new_QImageIOHandler(); +void delete_QImageIOHandler(QImageIOHandler* obj) { delete obj; } + int currentImageNumber(QImageIOHandler* theWrappedObject) const; + QRect currentImageRect(QImageIOHandler* theWrappedObject) const; + QIODevice* device(QImageIOHandler* theWrappedObject) const; + QByteArray format(QImageIOHandler* theWrappedObject) const; + int imageCount(QImageIOHandler* theWrappedObject) const; + bool jumpToImage(QImageIOHandler* theWrappedObject, int imageNumber); + bool jumpToNextImage(QImageIOHandler* theWrappedObject); + int loopCount(QImageIOHandler* theWrappedObject) const; + int nextImageDelay(QImageIOHandler* theWrappedObject) const; + QVariant option(QImageIOHandler* theWrappedObject, QImageIOHandler::ImageOption option) const; + void setDevice(QImageIOHandler* theWrappedObject, QIODevice* device); + void setFormat(QImageIOHandler* theWrappedObject, const QByteArray& format); + void setOption(QImageIOHandler* theWrappedObject, QImageIOHandler::ImageOption option, const QVariant& value); + bool supportsOption(QImageIOHandler* theWrappedObject, QImageIOHandler::ImageOption option) const; + bool write(QImageIOHandler* theWrappedObject, const QImage& image); +}; + + + + + +class PythonQtShell_QImageIOPlugin : public QImageIOPlugin +{ +public: + PythonQtShell_QImageIOPlugin(QObject* parent = 0):QImageIOPlugin(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QImageIOPlugin(); + +virtual QImageIOPlugin::Capabilities capabilities(QIODevice* device, const QByteArray& format) const; +virtual void childEvent(QChildEvent* arg__1); +virtual QImageIOHandler* create(QIODevice* device, const QByteArray& format = QByteArray()) const; +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QImageIOPlugin : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Capability ) +Q_FLAGS(Capabilities ) +enum Capability{ + CanRead = QImageIOPlugin::CanRead, CanWrite = QImageIOPlugin::CanWrite, CanReadIncremental = QImageIOPlugin::CanReadIncremental}; +Q_DECLARE_FLAGS(Capabilities, Capability) +public slots: +QImageIOPlugin* new_QImageIOPlugin(QObject* parent = 0); +void delete_QImageIOPlugin(QImageIOPlugin* obj) { delete obj; } +}; + + + + + +class PythonQtWrapper_QImageReader : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ImageReaderError ) +enum ImageReaderError{ + UnknownError = QImageReader::UnknownError, FileNotFoundError = QImageReader::FileNotFoundError, DeviceError = QImageReader::DeviceError, UnsupportedFormatError = QImageReader::UnsupportedFormatError, InvalidDataError = QImageReader::InvalidDataError}; +public slots: +QImageReader* new_QImageReader(); +QImageReader* new_QImageReader(QIODevice* device, const QByteArray& format = QByteArray()); +QImageReader* new_QImageReader(const QString& fileName, const QByteArray& format = QByteArray()); +void delete_QImageReader(QImageReader* obj) { delete obj; } + bool autoDetectImageFormat(QImageReader* theWrappedObject) const; + QColor backgroundColor(QImageReader* theWrappedObject) const; + bool canRead(QImageReader* theWrappedObject) const; + QRect clipRect(QImageReader* theWrappedObject) const; + int currentImageNumber(QImageReader* theWrappedObject) const; + QRect currentImageRect(QImageReader* theWrappedObject) const; + bool decideFormatFromContent(QImageReader* theWrappedObject) const; + QIODevice* device(QImageReader* theWrappedObject) const; + QImageReader::ImageReaderError error(QImageReader* theWrappedObject) const; + QString errorString(QImageReader* theWrappedObject) const; + QString fileName(QImageReader* theWrappedObject) const; + QByteArray format(QImageReader* theWrappedObject) const; + int imageCount(QImageReader* theWrappedObject) const; + QImage::Format imageFormat(QImageReader* theWrappedObject) const; + QByteArray static_QImageReader_imageFormat(QIODevice* device); + QByteArray static_QImageReader_imageFormat(const QString& fileName); + bool jumpToImage(QImageReader* theWrappedObject, int imageNumber); + bool jumpToNextImage(QImageReader* theWrappedObject); + int loopCount(QImageReader* theWrappedObject) const; + int nextImageDelay(QImageReader* theWrappedObject) const; + int quality(QImageReader* theWrappedObject) const; + QImage read(QImageReader* theWrappedObject); + QRect scaledClipRect(QImageReader* theWrappedObject) const; + QSize scaledSize(QImageReader* theWrappedObject) const; + void setAutoDetectImageFormat(QImageReader* theWrappedObject, bool enabled); + void setBackgroundColor(QImageReader* theWrappedObject, const QColor& color); + void setClipRect(QImageReader* theWrappedObject, const QRect& rect); + void setDecideFormatFromContent(QImageReader* theWrappedObject, bool ignored); + void setDevice(QImageReader* theWrappedObject, QIODevice* device); + void setFileName(QImageReader* theWrappedObject, const QString& fileName); + void setFormat(QImageReader* theWrappedObject, const QByteArray& format); + void setQuality(QImageReader* theWrappedObject, int quality); + void setScaledClipRect(QImageReader* theWrappedObject, const QRect& rect); + void setScaledSize(QImageReader* theWrappedObject, const QSize& size); + QSize size(QImageReader* theWrappedObject) const; + QList static_QImageReader_supportedImageFormats(); + bool supportsAnimation(QImageReader* theWrappedObject) const; + bool supportsOption(QImageReader* theWrappedObject, QImageIOHandler::ImageOption option) const; + QString text(QImageReader* theWrappedObject, const QString& key) const; + QStringList textKeys(QImageReader* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QImageWriter : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ImageWriterError ) +enum ImageWriterError{ + UnknownError = QImageWriter::UnknownError, DeviceError = QImageWriter::DeviceError, UnsupportedFormatError = QImageWriter::UnsupportedFormatError}; +public slots: +QImageWriter* new_QImageWriter(); +QImageWriter* new_QImageWriter(QIODevice* device, const QByteArray& format); +QImageWriter* new_QImageWriter(const QString& fileName, const QByteArray& format = QByteArray()); +void delete_QImageWriter(QImageWriter* obj) { delete obj; } + bool canWrite(QImageWriter* theWrappedObject) const; + int compression(QImageWriter* theWrappedObject) const; + QIODevice* device(QImageWriter* theWrappedObject) const; + QImageWriter::ImageWriterError error(QImageWriter* theWrappedObject) const; + QString errorString(QImageWriter* theWrappedObject) const; + QString fileName(QImageWriter* theWrappedObject) const; + QByteArray format(QImageWriter* theWrappedObject) const; + float gamma(QImageWriter* theWrappedObject) const; + int quality(QImageWriter* theWrappedObject) const; + void setCompression(QImageWriter* theWrappedObject, int compression); + void setDevice(QImageWriter* theWrappedObject, QIODevice* device); + void setFileName(QImageWriter* theWrappedObject, const QString& fileName); + void setFormat(QImageWriter* theWrappedObject, const QByteArray& format); + void setGamma(QImageWriter* theWrappedObject, float gamma); + void setQuality(QImageWriter* theWrappedObject, int quality); + void setText(QImageWriter* theWrappedObject, const QString& key, const QString& text); + QList static_QImageWriter_supportedImageFormats(); + bool supportsOption(QImageWriter* theWrappedObject, QImageIOHandler::ImageOption option) const; + bool write(QImageWriter* theWrappedObject, const QImage& image); +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QInputDialog : public QInputDialog +{ +public: + PythonQtShell_QInputDialog(QWidget* parent = 0, Qt::WindowFlags flags = 0):QInputDialog(parent, flags),_wrapper(NULL) {}; + + ~PythonQtShell_QInputDialog(); + +virtual void accept(); +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void done(int result); +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual int exec(); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void open(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reject(); +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QInputDialog : public QInputDialog +{ public: +inline void promoted_done(int result) { QInputDialog::done(result); } +inline void promoted_open() { QInputDialog::open(); } +}; + +class PythonQtWrapper_QInputDialog : public QObject +{ Q_OBJECT +public: +Q_ENUMS(InputDialogOption InputMode ) +Q_FLAGS(InputDialogOptions ) +enum InputDialogOption{ + NoButtons = QInputDialog::NoButtons, UseListViewForComboBoxItems = QInputDialog::UseListViewForComboBoxItems}; +enum InputMode{ + TextInput = QInputDialog::TextInput, IntInput = QInputDialog::IntInput, DoubleInput = QInputDialog::DoubleInput}; +Q_DECLARE_FLAGS(InputDialogOptions, InputDialogOption) +public slots: +QInputDialog* new_QInputDialog(QWidget* parent = 0, Qt::WindowFlags flags = 0); +void delete_QInputDialog(QInputDialog* obj) { delete obj; } + QString cancelButtonText(QInputDialog* theWrappedObject) const; + QStringList comboBoxItems(QInputDialog* theWrappedObject) const; + void done(QInputDialog* theWrappedObject, int result); + int doubleDecimals(QInputDialog* theWrappedObject) const; + double doubleMaximum(QInputDialog* theWrappedObject) const; + double doubleMinimum(QInputDialog* theWrappedObject) const; + double doubleValue(QInputDialog* theWrappedObject) const; + double static_QInputDialog_getDouble(QWidget* parent, const QString& title, const QString& label, double value = 0, double minValue = -2147483647, double maxValue = 2147483647, int decimals = 1, bool* ok = 0, Qt::WindowFlags flags = 0); + int static_QInputDialog_getInt(QWidget* parent, const QString& title, const QString& label, int value = 0, int minValue = -2147483647, int maxValue = 2147483647, int step = 1, bool* ok = 0, Qt::WindowFlags flags = 0); + QString static_QInputDialog_getItem(QWidget* parent, const QString& title, const QString& label, const QStringList& items, int current = 0, bool editable = true, bool* ok = 0, Qt::WindowFlags flags = 0, Qt::InputMethodHints inputMethodHints = Qt::ImhNone); + QString static_QInputDialog_getText(QWidget* parent, const QString& title, const QString& label, QLineEdit::EchoMode echo = QLineEdit::Normal, const QString& text = QString(), bool* ok = 0, Qt::WindowFlags flags = 0, Qt::InputMethodHints inputMethodHints = Qt::ImhNone); + QInputDialog::InputMode inputMode(QInputDialog* theWrappedObject) const; + int intMaximum(QInputDialog* theWrappedObject) const; + int intMinimum(QInputDialog* theWrappedObject) const; + int intStep(QInputDialog* theWrappedObject) const; + int intValue(QInputDialog* theWrappedObject) const; + bool isComboBoxEditable(QInputDialog* theWrappedObject) const; + QString labelText(QInputDialog* theWrappedObject) const; + QSize minimumSizeHint(QInputDialog* theWrappedObject) const; + QString okButtonText(QInputDialog* theWrappedObject) const; + void open(QInputDialog* theWrappedObject); + void open(QInputDialog* theWrappedObject, QObject* receiver, const char* member); + QInputDialog::InputDialogOptions options(QInputDialog* theWrappedObject) const; + void setCancelButtonText(QInputDialog* theWrappedObject, const QString& text); + void setComboBoxEditable(QInputDialog* theWrappedObject, bool editable); + void setComboBoxItems(QInputDialog* theWrappedObject, const QStringList& items); + void setDoubleDecimals(QInputDialog* theWrappedObject, int decimals); + void setDoubleMaximum(QInputDialog* theWrappedObject, double max); + void setDoubleMinimum(QInputDialog* theWrappedObject, double min); + void setDoubleRange(QInputDialog* theWrappedObject, double min, double max); + void setDoubleValue(QInputDialog* theWrappedObject, double value); + void setInputMode(QInputDialog* theWrappedObject, QInputDialog::InputMode mode); + void setIntMaximum(QInputDialog* theWrappedObject, int max); + void setIntMinimum(QInputDialog* theWrappedObject, int min); + void setIntRange(QInputDialog* theWrappedObject, int min, int max); + void setIntStep(QInputDialog* theWrappedObject, int step); + void setIntValue(QInputDialog* theWrappedObject, int value); + void setLabelText(QInputDialog* theWrappedObject, const QString& text); + void setOkButtonText(QInputDialog* theWrappedObject, const QString& text); + void setOption(QInputDialog* theWrappedObject, QInputDialog::InputDialogOption option, bool on = true); + void setOptions(QInputDialog* theWrappedObject, QInputDialog::InputDialogOptions options); + void setTextEchoMode(QInputDialog* theWrappedObject, QLineEdit::EchoMode mode); + void setTextValue(QInputDialog* theWrappedObject, const QString& text); + void setVisible(QInputDialog* theWrappedObject, bool visible); + QSize sizeHint(QInputDialog* theWrappedObject) const; + bool testOption(QInputDialog* theWrappedObject, QInputDialog::InputDialogOption option) const; + QLineEdit::EchoMode textEchoMode(QInputDialog* theWrappedObject) const; + QString textValue(QInputDialog* theWrappedObject) const; +}; + +#endif + + + +class PythonQtShell_QInputEvent : public QInputEvent +{ +public: + PythonQtShell_QInputEvent(QEvent::Type type, Qt::KeyboardModifiers modifiers = Qt::NoModifier):QInputEvent(type, modifiers),_wrapper(NULL) {}; + + ~PythonQtShell_QInputEvent(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QInputEvent : public QObject +{ Q_OBJECT +public: +public slots: +QInputEvent* new_QInputEvent(QEvent::Type type, Qt::KeyboardModifiers modifiers = Qt::NoModifier); +void delete_QInputEvent(QInputEvent* obj) { delete obj; } + Qt::KeyboardModifiers modifiers(QInputEvent* theWrappedObject) const; + void setModifiers(QInputEvent* theWrappedObject, Qt::KeyboardModifiers amodifiers); + void setTimestamp(QInputEvent* theWrappedObject, ulong atimestamp); + ulong timestamp(QInputEvent* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QIntValidator : public QIntValidator +{ +public: + PythonQtShell_QIntValidator(QObject* parent = 0):QIntValidator(parent),_wrapper(NULL) {}; + PythonQtShell_QIntValidator(int bottom, int top, QObject* parent = 0):QIntValidator(bottom, top, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QIntValidator(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fixup(QString& input) const; +virtual void setRange(int bottom, int top); +virtual void timerEvent(QTimerEvent* arg__1); +virtual QValidator::State validate(QString& arg__1, int& arg__2) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QIntValidator : public QIntValidator +{ public: +inline void promoted_fixup(QString& input) const { QIntValidator::fixup(input); } +inline void promoted_setRange(int bottom, int top) { QIntValidator::setRange(bottom, top); } +inline QValidator::State promoted_validate(QString& arg__1, int& arg__2) const { return QIntValidator::validate(arg__1, arg__2); } +}; + +class PythonQtWrapper_QIntValidator : public QObject +{ Q_OBJECT +public: +public slots: +QIntValidator* new_QIntValidator(QObject* parent = 0); +QIntValidator* new_QIntValidator(int bottom, int top, QObject* parent = 0); +void delete_QIntValidator(QIntValidator* obj) { delete obj; } + int bottom(QIntValidator* theWrappedObject) const; + void fixup(QIntValidator* theWrappedObject, QString& input) const; + void setBottom(QIntValidator* theWrappedObject, int arg__1); + void setRange(QIntValidator* theWrappedObject, int bottom, int top); + void setTop(QIntValidator* theWrappedObject, int arg__1); + int top(QIntValidator* theWrappedObject) const; + QValidator::State validate(QIntValidator* theWrappedObject, QString& arg__1, int& arg__2) const; +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QItemDelegate : public QItemDelegate +{ +public: + PythonQtShell_QItemDelegate(QObject* parent = 0):QItemDelegate(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QItemDelegate(); + +virtual void childEvent(QChildEvent* arg__1); +virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; +virtual void customEvent(QEvent* arg__1); +virtual void destroyEditor(QWidget* editor, const QModelIndex& index) const; +virtual void drawCheck(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, Qt::CheckState state) const; +virtual void drawDecoration(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QPixmap& pixmap) const; +virtual void drawDisplay(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QString& text) const; +virtual void drawFocus(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect) const; +virtual bool editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* object, QEvent* event); +virtual bool helpEvent(QHelpEvent* event, QAbstractItemView* view, const QStyleOptionViewItem& option, const QModelIndex& index); +virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; +virtual QVector paintingRoles() const; +virtual void setEditorData(QWidget* editor, const QModelIndex& index) const; +virtual void setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const; +virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual void updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QItemDelegate : public QItemDelegate +{ public: +inline QWidget* promoted_createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const { return QItemDelegate::createEditor(parent, option, index); } +inline void promoted_drawCheck(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, Qt::CheckState state) const { QItemDelegate::drawCheck(painter, option, rect, state); } +inline void promoted_drawDecoration(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QPixmap& pixmap) const { QItemDelegate::drawDecoration(painter, option, rect, pixmap); } +inline void promoted_drawDisplay(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QString& text) const { QItemDelegate::drawDisplay(painter, option, rect, text); } +inline void promoted_drawFocus(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect) const { QItemDelegate::drawFocus(painter, option, rect); } +inline bool promoted_editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) { return QItemDelegate::editorEvent(event, model, option, index); } +inline bool promoted_eventFilter(QObject* object, QEvent* event) { return QItemDelegate::eventFilter(object, event); } +inline void promoted_paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const { QItemDelegate::paint(painter, option, index); } +inline void promoted_setEditorData(QWidget* editor, const QModelIndex& index) const { QItemDelegate::setEditorData(editor, index); } +inline void promoted_setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const { QItemDelegate::setModelData(editor, model, index); } +inline QSize promoted_sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const { return QItemDelegate::sizeHint(option, index); } +inline void promoted_updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const { QItemDelegate::updateEditorGeometry(editor, option, index); } +}; + +class PythonQtWrapper_QItemDelegate : public QObject +{ Q_OBJECT +public: +public slots: +QItemDelegate* new_QItemDelegate(QObject* parent = 0); +void delete_QItemDelegate(QItemDelegate* obj) { delete obj; } + QWidget* createEditor(QItemDelegate* theWrappedObject, QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; + void drawCheck(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, Qt::CheckState state) const; + void drawDecoration(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QPixmap& pixmap) const; + void drawDisplay(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QString& text) const; + void drawFocus(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect) const; + bool editorEvent(QItemDelegate* theWrappedObject, QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index); + bool eventFilter(QItemDelegate* theWrappedObject, QObject* object, QEvent* event); + bool hasClipping(QItemDelegate* theWrappedObject) const; + QItemEditorFactory* itemEditorFactory(QItemDelegate* theWrappedObject) const; + void paint(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; + void setClipping(QItemDelegate* theWrappedObject, bool clip); + void setEditorData(QItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const; + void setItemEditorFactory(QItemDelegate* theWrappedObject, QItemEditorFactory* factory); + void setModelData(QItemDelegate* theWrappedObject, QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const; + QSize sizeHint(QItemDelegate* theWrappedObject, const QStyleOptionViewItem& option, const QModelIndex& index) const; + void updateEditorGeometry(QItemDelegate* theWrappedObject, QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const; +}; + + + + + +class PythonQtShell_QItemEditorCreatorBase : public QItemEditorCreatorBase +{ +public: + PythonQtShell_QItemEditorCreatorBase():QItemEditorCreatorBase(),_wrapper(NULL) {}; + + ~PythonQtShell_QItemEditorCreatorBase(); + +virtual QWidget* createWidget(QWidget* parent) const; +virtual QByteArray valuePropertyName() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QItemEditorCreatorBase : public QObject +{ Q_OBJECT +public: +public slots: +QItemEditorCreatorBase* new_QItemEditorCreatorBase(); +void delete_QItemEditorCreatorBase(QItemEditorCreatorBase* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QItemEditorFactory : public QItemEditorFactory +{ +public: + PythonQtShell_QItemEditorFactory():QItemEditorFactory(),_wrapper(NULL) {}; + + ~PythonQtShell_QItemEditorFactory(); + +virtual QWidget* createEditor(int userType, QWidget* parent) const; +virtual QByteArray valuePropertyName(int userType) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QItemEditorFactory : public QItemEditorFactory +{ public: +inline QWidget* promoted_createEditor(int userType, QWidget* parent) const { return QItemEditorFactory::createEditor(userType, parent); } +inline QByteArray promoted_valuePropertyName(int userType) const { return QItemEditorFactory::valuePropertyName(userType); } +}; + +class PythonQtWrapper_QItemEditorFactory : public QObject +{ Q_OBJECT +public: +public slots: +QItemEditorFactory* new_QItemEditorFactory(); +void delete_QItemEditorFactory(QItemEditorFactory* obj) { delete obj; } + QWidget* createEditor(QItemEditorFactory* theWrappedObject, int userType, QWidget* parent) const; + const QItemEditorFactory* static_QItemEditorFactory_defaultFactory(); + void registerEditor(QItemEditorFactory* theWrappedObject, int userType, QItemEditorCreatorBase* creator); + void static_QItemEditorFactory_setDefaultFactory(QItemEditorFactory* factory); + QByteArray valuePropertyName(QItemEditorFactory* theWrappedObject, int userType) const; +}; + + + + + +class PythonQtWrapper_QItemSelection : public QObject +{ Q_OBJECT +public: +public slots: +QItemSelection* new_QItemSelection(); +QItemSelection* new_QItemSelection(const QModelIndex& topLeft, const QModelIndex& bottomRight); +QItemSelection* new_QItemSelection(const QItemSelection& other) { +QItemSelection* a = new QItemSelection(); +*((QItemSelection*)a) = other; +return a; } +void delete_QItemSelection(QItemSelection* obj) { delete obj; } + void append(QItemSelection* theWrappedObject, const QItemSelectionRange& t); + void append(QItemSelection* theWrappedObject, const QList& t); + const QItemSelectionRange* at(QItemSelection* theWrappedObject, int i) const; + const QItemSelectionRange* back(QItemSelection* theWrappedObject) const; + void clear(QItemSelection* theWrappedObject); + bool contains(QItemSelection* theWrappedObject, const QModelIndex& index) const; + int count(QItemSelection* theWrappedObject) const; + int count(QItemSelection* theWrappedObject, const QItemSelectionRange& t) const; + void detachShared(QItemSelection* theWrappedObject); + bool empty(QItemSelection* theWrappedObject) const; + bool endsWith(QItemSelection* theWrappedObject, const QItemSelectionRange& t) const; + const QItemSelectionRange* first(QItemSelection* theWrappedObject) const; + QList static_QItemSelection_fromVector(const QVector& vector); + const QItemSelectionRange* front(QItemSelection* theWrappedObject) const; + int indexOf(QItemSelection* theWrappedObject, const QItemSelectionRange& t, int from) const; + QList indexes(QItemSelection* theWrappedObject) const; + bool isEmpty(QItemSelection* theWrappedObject) const; + bool isSharedWith(QItemSelection* theWrappedObject, const QList& other) const; + const QItemSelectionRange* last(QItemSelection* theWrappedObject) const; + int lastIndexOf(QItemSelection* theWrappedObject, const QItemSelectionRange& t, int from) const; + int length(QItemSelection* theWrappedObject) const; + void merge(QItemSelection* theWrappedObject, const QItemSelection& other, QItemSelectionModel::SelectionFlags command); + QList mid(QItemSelection* theWrappedObject, int pos, int length) const; + void move(QItemSelection* theWrappedObject, int from, int to); + bool __ne__(QItemSelection* theWrappedObject, const QList& l) const; + bool __eq__(QItemSelection* theWrappedObject, const QList& l) const; + void pop_back(QItemSelection* theWrappedObject); + void pop_front(QItemSelection* theWrappedObject); + void prepend(QItemSelection* theWrappedObject, const QItemSelectionRange& t); + void push_back(QItemSelection* theWrappedObject, const QItemSelectionRange& t); + void push_front(QItemSelection* theWrappedObject, const QItemSelectionRange& t); + int removeAll(QItemSelection* theWrappedObject, const QItemSelectionRange& t); + void removeAt(QItemSelection* theWrappedObject, int i); + void removeFirst(QItemSelection* theWrappedObject); + void removeLast(QItemSelection* theWrappedObject); + bool removeOne(QItemSelection* theWrappedObject, const QItemSelectionRange& t); + void replace(QItemSelection* theWrappedObject, int i, const QItemSelectionRange& t); + void reserve(QItemSelection* theWrappedObject, int size); + void select(QItemSelection* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight); + void setSharable(QItemSelection* theWrappedObject, bool sharable); + int size(QItemSelection* theWrappedObject) const; + void static_QItemSelection_split(const QItemSelectionRange& range, const QItemSelectionRange& other, QItemSelection* result); + bool startsWith(QItemSelection* theWrappedObject, const QItemSelectionRange& t) const; + void swap(QItemSelection* theWrappedObject, QList& other); + void swap(QItemSelection* theWrappedObject, int i, int j); + QItemSelectionRange takeAt(QItemSelection* theWrappedObject, int i); + QItemSelectionRange takeFirst(QItemSelection* theWrappedObject); + QItemSelectionRange takeLast(QItemSelection* theWrappedObject); + QVector toVector(QItemSelection* theWrappedObject) const; + QItemSelectionRange value(QItemSelection* theWrappedObject, int i) const; + QItemSelectionRange value(QItemSelection* theWrappedObject, int i, const QItemSelectionRange& defaultValue) const; +}; + + + + + +class PythonQtShell_QItemSelectionModel : public QItemSelectionModel +{ +public: + PythonQtShell_QItemSelectionModel(QAbstractItemModel* model):QItemSelectionModel(model),_wrapper(NULL) {}; + PythonQtShell_QItemSelectionModel(QAbstractItemModel* model, QObject* parent):QItemSelectionModel(model, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QItemSelectionModel(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void clear(); +virtual void clearCurrentIndex(); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void reset(); +virtual void select(const QItemSelection& selection, QItemSelectionModel::SelectionFlags command); +virtual void select(const QModelIndex& index, QItemSelectionModel::SelectionFlags command); +virtual void setCurrentIndex(const QModelIndex& index, QItemSelectionModel::SelectionFlags command); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QItemSelectionModel : public QItemSelectionModel +{ public: +inline void promoted_clear() { QItemSelectionModel::clear(); } +inline void promoted_clearCurrentIndex() { QItemSelectionModel::clearCurrentIndex(); } +inline void promoted_reset() { QItemSelectionModel::reset(); } +inline void promoted_select(const QItemSelection& selection, QItemSelectionModel::SelectionFlags command) { QItemSelectionModel::select(selection, command); } +inline void promoted_select(const QModelIndex& index, QItemSelectionModel::SelectionFlags command) { QItemSelectionModel::select(index, command); } +inline void promoted_setCurrentIndex(const QModelIndex& index, QItemSelectionModel::SelectionFlags command) { QItemSelectionModel::setCurrentIndex(index, command); } +}; + +class PythonQtWrapper_QItemSelectionModel : public QObject +{ Q_OBJECT +public: +Q_ENUMS(SelectionFlag ) +Q_FLAGS(SelectionFlags ) +enum SelectionFlag{ + NoUpdate = QItemSelectionModel::NoUpdate, Clear = QItemSelectionModel::Clear, Select = QItemSelectionModel::Select, Deselect = QItemSelectionModel::Deselect, Toggle = QItemSelectionModel::Toggle, Current = QItemSelectionModel::Current, Rows = QItemSelectionModel::Rows, Columns = QItemSelectionModel::Columns, SelectCurrent = QItemSelectionModel::SelectCurrent, ToggleCurrent = QItemSelectionModel::ToggleCurrent, ClearAndSelect = QItemSelectionModel::ClearAndSelect}; +Q_DECLARE_FLAGS(SelectionFlags, SelectionFlag) +public slots: +QItemSelectionModel* new_QItemSelectionModel(QAbstractItemModel* model); +QItemSelectionModel* new_QItemSelectionModel(QAbstractItemModel* model, QObject* parent); +void delete_QItemSelectionModel(QItemSelectionModel* obj) { delete obj; } + void clear(QItemSelectionModel* theWrappedObject); + void clearCurrentIndex(QItemSelectionModel* theWrappedObject); + bool columnIntersectsSelection(QItemSelectionModel* theWrappedObject, int column, const QModelIndex& parent) const; + QModelIndex currentIndex(QItemSelectionModel* theWrappedObject) const; + bool hasSelection(QItemSelectionModel* theWrappedObject) const; + bool isColumnSelected(QItemSelectionModel* theWrappedObject, int column, const QModelIndex& parent) const; + bool isRowSelected(QItemSelectionModel* theWrappedObject, int row, const QModelIndex& parent) const; + bool isSelected(QItemSelectionModel* theWrappedObject, const QModelIndex& index) const; + const QAbstractItemModel* model(QItemSelectionModel* theWrappedObject) const; + void reset(QItemSelectionModel* theWrappedObject); + bool rowIntersectsSelection(QItemSelectionModel* theWrappedObject, int row, const QModelIndex& parent) const; + void select(QItemSelectionModel* theWrappedObject, const QItemSelection& selection, QItemSelectionModel::SelectionFlags command); + void select(QItemSelectionModel* theWrappedObject, const QModelIndex& index, QItemSelectionModel::SelectionFlags command); + QList selectedColumns(QItemSelectionModel* theWrappedObject, int row = 0) const; + QList selectedIndexes(QItemSelectionModel* theWrappedObject) const; + QList selectedRows(QItemSelectionModel* theWrappedObject, int column = 0) const; + const QItemSelection selection(QItemSelectionModel* theWrappedObject) const; + void setCurrentIndex(QItemSelectionModel* theWrappedObject, const QModelIndex& index, QItemSelectionModel::SelectionFlags command); +}; + + + + + +class PythonQtWrapper_QItemSelectionRange : public QObject +{ Q_OBJECT +public: +public slots: +QItemSelectionRange* new_QItemSelectionRange(); +QItemSelectionRange* new_QItemSelectionRange(const QItemSelectionRange& other); +QItemSelectionRange* new_QItemSelectionRange(const QModelIndex& index); +QItemSelectionRange* new_QItemSelectionRange(const QModelIndex& topLeft, const QModelIndex& bottomRight); +void delete_QItemSelectionRange(QItemSelectionRange* obj) { delete obj; } + int bottom(QItemSelectionRange* theWrappedObject) const; + const QPersistentModelIndex* bottomRight(QItemSelectionRange* theWrappedObject) const; + bool contains(QItemSelectionRange* theWrappedObject, const QModelIndex& index) const; + bool contains(QItemSelectionRange* theWrappedObject, int row, int column, const QModelIndex& parentIndex) const; + int height(QItemSelectionRange* theWrappedObject) const; + QList indexes(QItemSelectionRange* theWrappedObject) const; + QItemSelectionRange intersected(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const; + bool intersects(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const; + bool isEmpty(QItemSelectionRange* theWrappedObject) const; + bool isValid(QItemSelectionRange* theWrappedObject) const; + int left(QItemSelectionRange* theWrappedObject) const; + const QAbstractItemModel* model(QItemSelectionRange* theWrappedObject) const; + bool __ne__(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const; + bool __lt__(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const; + bool __eq__(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const; + QModelIndex parent(QItemSelectionRange* theWrappedObject) const; + int right(QItemSelectionRange* theWrappedObject) const; + int top(QItemSelectionRange* theWrappedObject) const; + const QPersistentModelIndex* topLeft(QItemSelectionRange* theWrappedObject) const; + int width(QItemSelectionRange* theWrappedObject) const; + QString py_toString(QItemSelectionRange*); +}; + +#endif + + + +class PythonQtShell_QKeyEvent : public QKeyEvent +{ +public: + PythonQtShell_QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text = QString(), bool autorep = false, ushort count = 1):QKeyEvent(type, key, modifiers, text, autorep, count),_wrapper(NULL) {}; + PythonQtShell_QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, unsigned int nativeScanCode, unsigned int nativeVirtualKey, unsigned int nativeModifiers, const QString& text = QString(), bool autorep = false, ushort count = 1):QKeyEvent(type, key, modifiers, nativeScanCode, nativeVirtualKey, nativeModifiers, text, autorep, count),_wrapper(NULL) {}; + + ~PythonQtShell_QKeyEvent(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QKeyEvent : public QObject +{ Q_OBJECT +public: +public slots: +QKeyEvent* new_QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text = QString(), bool autorep = false, ushort count = 1); +QKeyEvent* new_QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, unsigned int nativeScanCode, unsigned int nativeVirtualKey, unsigned int nativeModifiers, const QString& text = QString(), bool autorep = false, ushort count = 1); +void delete_QKeyEvent(QKeyEvent* obj) { delete obj; } + int count(QKeyEvent* theWrappedObject) const; + bool isAutoRepeat(QKeyEvent* theWrappedObject) const; + int key(QKeyEvent* theWrappedObject) const; + bool matches(QKeyEvent* theWrappedObject, QKeySequence::StandardKey key) const; + Qt::KeyboardModifiers modifiers(QKeyEvent* theWrappedObject) const; + unsigned int nativeModifiers(QKeyEvent* theWrappedObject) const; + unsigned int nativeScanCode(QKeyEvent* theWrappedObject) const; + unsigned int nativeVirtualKey(QKeyEvent* theWrappedObject) const; + QString text(QKeyEvent* theWrappedObject) const; +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QKeyEventTransition : public QKeyEventTransition +{ +public: + PythonQtShell_QKeyEventTransition(QObject* object, QEvent::Type type, int key, QState* sourceState = 0):QKeyEventTransition(object, type, key, sourceState),_wrapper(NULL) {}; + PythonQtShell_QKeyEventTransition(QState* sourceState = 0):QKeyEventTransition(sourceState),_wrapper(NULL) {}; + + ~PythonQtShell_QKeyEventTransition(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool eventTest(QEvent* event); +virtual void onTransition(QEvent* event); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QKeyEventTransition : public QKeyEventTransition +{ public: +inline bool promoted_eventTest(QEvent* event) { return QKeyEventTransition::eventTest(event); } +inline void promoted_onTransition(QEvent* event) { QKeyEventTransition::onTransition(event); } +}; + +class PythonQtWrapper_QKeyEventTransition : public QObject +{ Q_OBJECT +public: +public slots: +QKeyEventTransition* new_QKeyEventTransition(QObject* object, QEvent::Type type, int key, QState* sourceState = 0); +QKeyEventTransition* new_QKeyEventTransition(QState* sourceState = 0); +void delete_QKeyEventTransition(QKeyEventTransition* obj) { delete obj; } + bool eventTest(QKeyEventTransition* theWrappedObject, QEvent* event); + int key(QKeyEventTransition* theWrappedObject) const; + Qt::KeyboardModifiers modifierMask(QKeyEventTransition* theWrappedObject) const; + void onTransition(QKeyEventTransition* theWrappedObject, QEvent* event); + void setKey(QKeyEventTransition* theWrappedObject, int key); + void setModifierMask(QKeyEventTransition* theWrappedObject, Qt::KeyboardModifiers modifiers); +}; + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp new file mode 100644 index 00000000..302343c0 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp @@ -0,0 +1,19951 @@ +#include "com_trolltech_qt_gui4.h" + +#include +#include +#include + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QLCDNumber::~PythonQtShell_QLCDNumber() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QLCDNumber::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::actionEvent(arg__1); +} +void PythonQtShell_QLCDNumber::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::changeEvent(arg__1); +} +void PythonQtShell_QLCDNumber::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::childEvent(arg__1); +} +void PythonQtShell_QLCDNumber::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::closeEvent(arg__1); +} +void PythonQtShell_QLCDNumber::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::contextMenuEvent(arg__1); +} +void PythonQtShell_QLCDNumber::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::customEvent(arg__1); +} +int PythonQtShell_QLCDNumber::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLCDNumber::devType(); +} +void PythonQtShell_QLCDNumber::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::dragEnterEvent(arg__1); +} +void PythonQtShell_QLCDNumber::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::dragLeaveEvent(arg__1); +} +void PythonQtShell_QLCDNumber::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::dragMoveEvent(arg__1); +} +void PythonQtShell_QLCDNumber::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::dropEvent(arg__1); +} +void PythonQtShell_QLCDNumber::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::enterEvent(arg__1); +} +bool PythonQtShell_QLCDNumber::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLCDNumber::event(e); +} +bool PythonQtShell_QLCDNumber::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLCDNumber::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QLCDNumber::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::focusInEvent(arg__1); +} +bool PythonQtShell_QLCDNumber::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLCDNumber::focusNextPrevChild(next); +} +void PythonQtShell_QLCDNumber::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::focusOutEvent(arg__1); +} +bool PythonQtShell_QLCDNumber::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLCDNumber::hasHeightForWidth(); +} +int PythonQtShell_QLCDNumber::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLCDNumber::heightForWidth(arg__1); +} +void PythonQtShell_QLCDNumber::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::hideEvent(arg__1); +} +void PythonQtShell_QLCDNumber::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::initPainter(painter); +} +void PythonQtShell_QLCDNumber::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QLCDNumber::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLCDNumber::inputMethodQuery(arg__1); +} +void PythonQtShell_QLCDNumber::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::keyPressEvent(arg__1); +} +void PythonQtShell_QLCDNumber::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::keyReleaseEvent(arg__1); +} +void PythonQtShell_QLCDNumber::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::leaveEvent(arg__1); +} +int PythonQtShell_QLCDNumber::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLCDNumber::metric(arg__1); +} +QSize PythonQtShell_QLCDNumber::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLCDNumber::minimumSizeHint(); +} +void PythonQtShell_QLCDNumber::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QLCDNumber::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::mouseMoveEvent(arg__1); +} +void PythonQtShell_QLCDNumber::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::mousePressEvent(arg__1); +} +void PythonQtShell_QLCDNumber::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QLCDNumber::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::moveEvent(arg__1); +} +bool PythonQtShell_QLCDNumber::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLCDNumber::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QLCDNumber::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLCDNumber::paintEngine(); +} +void PythonQtShell_QLCDNumber::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QLCDNumber::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLCDNumber::redirected(offset); +} +void PythonQtShell_QLCDNumber::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QLCDNumber::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLCDNumber::sharedPainter(); +} +void PythonQtShell_QLCDNumber::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::showEvent(arg__1); +} +void PythonQtShell_QLCDNumber::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::tabletEvent(arg__1); +} +void PythonQtShell_QLCDNumber::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::timerEvent(arg__1); +} +void PythonQtShell_QLCDNumber::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLCDNumber::wheelEvent(arg__1); +} +QLCDNumber* PythonQtWrapper_QLCDNumber::new_QLCDNumber(QWidget* parent) +{ +return new PythonQtShell_QLCDNumber(parent); } + +QLCDNumber* PythonQtWrapper_QLCDNumber::new_QLCDNumber(uint numDigits, QWidget* parent) +{ +return new PythonQtShell_QLCDNumber(numDigits, parent); } + +bool PythonQtWrapper_QLCDNumber::checkOverflow(QLCDNumber* theWrappedObject, double num) const +{ + return ( theWrappedObject->checkOverflow(num)); +} + +bool PythonQtWrapper_QLCDNumber::checkOverflow(QLCDNumber* theWrappedObject, int num) const +{ + return ( theWrappedObject->checkOverflow(num)); +} + +int PythonQtWrapper_QLCDNumber::digitCount(QLCDNumber* theWrappedObject) const +{ + return ( theWrappedObject->digitCount()); +} + +bool PythonQtWrapper_QLCDNumber::event(QLCDNumber* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QLCDNumber*)theWrappedObject)->promoted_event(e)); +} + +int PythonQtWrapper_QLCDNumber::intValue(QLCDNumber* theWrappedObject) const +{ + return ( theWrappedObject->intValue()); +} + +QLCDNumber::Mode PythonQtWrapper_QLCDNumber::mode(QLCDNumber* theWrappedObject) const +{ + return ( theWrappedObject->mode()); +} + +void PythonQtWrapper_QLCDNumber::paintEvent(QLCDNumber* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QLCDNumber*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +QLCDNumber::SegmentStyle PythonQtWrapper_QLCDNumber::segmentStyle(QLCDNumber* theWrappedObject) const +{ + return ( theWrappedObject->segmentStyle()); +} + +void PythonQtWrapper_QLCDNumber::setDigitCount(QLCDNumber* theWrappedObject, int nDigits) +{ + ( theWrappedObject->setDigitCount(nDigits)); +} + +void PythonQtWrapper_QLCDNumber::setMode(QLCDNumber* theWrappedObject, QLCDNumber::Mode arg__1) +{ + ( theWrappedObject->setMode(arg__1)); +} + +void PythonQtWrapper_QLCDNumber::setSegmentStyle(QLCDNumber* theWrappedObject, QLCDNumber::SegmentStyle arg__1) +{ + ( theWrappedObject->setSegmentStyle(arg__1)); +} + +QSize PythonQtWrapper_QLCDNumber::sizeHint(QLCDNumber* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +bool PythonQtWrapper_QLCDNumber::smallDecimalPoint(QLCDNumber* theWrappedObject) const +{ + return ( theWrappedObject->smallDecimalPoint()); +} + +double PythonQtWrapper_QLCDNumber::value(QLCDNumber* theWrappedObject) const +{ + return ( theWrappedObject->value()); +} + + + +PythonQtShell_QLabel::~PythonQtShell_QLabel() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QLabel::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::actionEvent(arg__1); +} +void PythonQtShell_QLabel::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::changeEvent(arg__1); +} +void PythonQtShell_QLabel::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::childEvent(arg__1); +} +void PythonQtShell_QLabel::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::closeEvent(arg__1); +} +void PythonQtShell_QLabel::contextMenuEvent(QContextMenuEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::contextMenuEvent(ev); +} +void PythonQtShell_QLabel::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::customEvent(arg__1); +} +int PythonQtShell_QLabel::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLabel::devType(); +} +void PythonQtShell_QLabel::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::dragEnterEvent(arg__1); +} +void PythonQtShell_QLabel::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::dragLeaveEvent(arg__1); +} +void PythonQtShell_QLabel::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::dragMoveEvent(arg__1); +} +void PythonQtShell_QLabel::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::dropEvent(arg__1); +} +void PythonQtShell_QLabel::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::enterEvent(arg__1); +} +bool PythonQtShell_QLabel::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLabel::event(e); +} +bool PythonQtShell_QLabel::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLabel::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QLabel::focusInEvent(QFocusEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::focusInEvent(ev); +} +bool PythonQtShell_QLabel::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLabel::focusNextPrevChild(next); +} +void PythonQtShell_QLabel::focusOutEvent(QFocusEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::focusOutEvent(ev); +} +bool PythonQtShell_QLabel::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLabel::hasHeightForWidth(); +} +int PythonQtShell_QLabel::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLabel::heightForWidth(arg__1); +} +void PythonQtShell_QLabel::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::hideEvent(arg__1); +} +void PythonQtShell_QLabel::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::initPainter(painter); +} +void PythonQtShell_QLabel::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QLabel::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLabel::inputMethodQuery(arg__1); +} +void PythonQtShell_QLabel::keyPressEvent(QKeyEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::keyPressEvent(ev); +} +void PythonQtShell_QLabel::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::keyReleaseEvent(arg__1); +} +void PythonQtShell_QLabel::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::leaveEvent(arg__1); +} +int PythonQtShell_QLabel::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLabel::metric(arg__1); +} +void PythonQtShell_QLabel::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QLabel::mouseMoveEvent(QMouseEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::mouseMoveEvent(ev); +} +void PythonQtShell_QLabel::mousePressEvent(QMouseEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::mousePressEvent(ev); +} +void PythonQtShell_QLabel::mouseReleaseEvent(QMouseEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::mouseReleaseEvent(ev); +} +void PythonQtShell_QLabel::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::moveEvent(arg__1); +} +bool PythonQtShell_QLabel::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLabel::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QLabel::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLabel::paintEngine(); +} +void PythonQtShell_QLabel::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QLabel::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLabel::redirected(offset); +} +void PythonQtShell_QLabel::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QLabel::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLabel::sharedPainter(); +} +void PythonQtShell_QLabel::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::showEvent(arg__1); +} +void PythonQtShell_QLabel::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::tabletEvent(arg__1); +} +void PythonQtShell_QLabel::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::timerEvent(arg__1); +} +void PythonQtShell_QLabel::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLabel::wheelEvent(arg__1); +} +QLabel* PythonQtWrapper_QLabel::new_QLabel(QWidget* parent, Qt::WindowFlags f) +{ +return new PythonQtShell_QLabel(parent, f); } + +QLabel* PythonQtWrapper_QLabel::new_QLabel(const QString& text, QWidget* parent, Qt::WindowFlags f) +{ +return new PythonQtShell_QLabel(text, parent, f); } + +Qt::Alignment PythonQtWrapper_QLabel::alignment(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->alignment()); +} + +QWidget* PythonQtWrapper_QLabel::buddy(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->buddy()); +} + +void PythonQtWrapper_QLabel::changeEvent(QLabel* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_changeEvent(arg__1)); +} + +void PythonQtWrapper_QLabel::contextMenuEvent(QLabel* theWrappedObject, QContextMenuEvent* ev) +{ + ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_contextMenuEvent(ev)); +} + +bool PythonQtWrapper_QLabel::event(QLabel* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_event(e)); +} + +void PythonQtWrapper_QLabel::focusInEvent(QLabel* theWrappedObject, QFocusEvent* ev) +{ + ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_focusInEvent(ev)); +} + +bool PythonQtWrapper_QLabel::focusNextPrevChild(QLabel* theWrappedObject, bool next) +{ + return ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_focusNextPrevChild(next)); +} + +void PythonQtWrapper_QLabel::focusOutEvent(QLabel* theWrappedObject, QFocusEvent* ev) +{ + ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_focusOutEvent(ev)); +} + +bool PythonQtWrapper_QLabel::hasScaledContents(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->hasScaledContents()); +} + +bool PythonQtWrapper_QLabel::hasSelectedText(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->hasSelectedText()); +} + +int PythonQtWrapper_QLabel::heightForWidth(QLabel* theWrappedObject, int arg__1) const +{ + return ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_heightForWidth(arg__1)); +} + +int PythonQtWrapper_QLabel::indent(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->indent()); +} + +void PythonQtWrapper_QLabel::keyPressEvent(QLabel* theWrappedObject, QKeyEvent* ev) +{ + ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_keyPressEvent(ev)); +} + +int PythonQtWrapper_QLabel::margin(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->margin()); +} + +QSize PythonQtWrapper_QLabel::minimumSizeHint(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +void PythonQtWrapper_QLabel::mouseMoveEvent(QLabel* theWrappedObject, QMouseEvent* ev) +{ + ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_mouseMoveEvent(ev)); +} + +void PythonQtWrapper_QLabel::mousePressEvent(QLabel* theWrappedObject, QMouseEvent* ev) +{ + ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_mousePressEvent(ev)); +} + +void PythonQtWrapper_QLabel::mouseReleaseEvent(QLabel* theWrappedObject, QMouseEvent* ev) +{ + ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_mouseReleaseEvent(ev)); +} + +QMovie* PythonQtWrapper_QLabel::movie(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->movie()); +} + +bool PythonQtWrapper_QLabel::openExternalLinks(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->openExternalLinks()); +} + +void PythonQtWrapper_QLabel::paintEvent(QLabel* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +const QPicture* PythonQtWrapper_QLabel::picture(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->picture()); +} + +const QPixmap* PythonQtWrapper_QLabel::pixmap(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->pixmap()); +} + +QString PythonQtWrapper_QLabel::selectedText(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->selectedText()); +} + +int PythonQtWrapper_QLabel::selectionStart(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->selectionStart()); +} + +void PythonQtWrapper_QLabel::setAlignment(QLabel* theWrappedObject, Qt::Alignment arg__1) +{ + ( theWrappedObject->setAlignment(arg__1)); +} + +void PythonQtWrapper_QLabel::setBuddy(QLabel* theWrappedObject, QWidget* arg__1) +{ + ( theWrappedObject->setBuddy(arg__1)); +} + +void PythonQtWrapper_QLabel::setIndent(QLabel* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setIndent(arg__1)); +} + +void PythonQtWrapper_QLabel::setMargin(QLabel* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setMargin(arg__1)); +} + +void PythonQtWrapper_QLabel::setOpenExternalLinks(QLabel* theWrappedObject, bool open) +{ + ( theWrappedObject->setOpenExternalLinks(open)); +} + +void PythonQtWrapper_QLabel::setScaledContents(QLabel* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setScaledContents(arg__1)); +} + +void PythonQtWrapper_QLabel::setSelection(QLabel* theWrappedObject, int arg__1, int arg__2) +{ + ( theWrappedObject->setSelection(arg__1, arg__2)); +} + +void PythonQtWrapper_QLabel::setTextFormat(QLabel* theWrappedObject, Qt::TextFormat arg__1) +{ + ( theWrappedObject->setTextFormat(arg__1)); +} + +void PythonQtWrapper_QLabel::setTextInteractionFlags(QLabel* theWrappedObject, Qt::TextInteractionFlags flags) +{ + ( theWrappedObject->setTextInteractionFlags(flags)); +} + +void PythonQtWrapper_QLabel::setWordWrap(QLabel* theWrappedObject, bool on) +{ + ( theWrappedObject->setWordWrap(on)); +} + +QSize PythonQtWrapper_QLabel::sizeHint(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +QString PythonQtWrapper_QLabel::text(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + +Qt::TextFormat PythonQtWrapper_QLabel::textFormat(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->textFormat()); +} + +Qt::TextInteractionFlags PythonQtWrapper_QLabel::textInteractionFlags(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->textInteractionFlags()); +} + +bool PythonQtWrapper_QLabel::wordWrap(QLabel* theWrappedObject) const +{ + return ( theWrappedObject->wordWrap()); +} + + + +PythonQtShell_QLayout::~PythonQtShell_QLayout() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QLayout::addItem(QLayoutItem* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "addItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QLayoutItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QLayout::childEvent(QChildEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLayout::childEvent(e); +} +QSizePolicy::ControlTypes PythonQtShell_QLayout::controlTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "controlTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSizePolicy::ControlTypes"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSizePolicy::ControlTypes returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("controlTypes", methodInfo, result); + } else { + returnValue = *((QSizePolicy::ControlTypes*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayout::controlTypes(); +} +int PythonQtShell_QLayout::count() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +void PythonQtShell_QLayout::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLayout::customEvent(arg__1); +} +bool PythonQtShell_QLayout::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayout::event(arg__1); +} +bool PythonQtShell_QLayout::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayout::eventFilter(arg__1, arg__2); +} +Qt::Orientations PythonQtShell_QLayout::expandingDirections() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::Orientations"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::Orientations returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); + } else { + returnValue = *((Qt::Orientations*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayout::expandingDirections(); +} +QRect PythonQtShell_QLayout::geometry() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QRect returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayout::geometry(); +} +bool PythonQtShell_QLayout::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayout::hasHeightForWidth(); +} +int PythonQtShell_QLayout::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayout::heightForWidth(arg__1); +} +int PythonQtShell_QLayout::indexOf(QWidget* arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOf"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexOf", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayout::indexOf(arg__1); +} +void PythonQtShell_QLayout::invalidate() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLayout::invalidate(); +} +bool PythonQtShell_QLayout::isEmpty() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayout::isEmpty(); +} +QLayoutItem* PythonQtShell_QLayout::itemAt(int index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); + } else { + returnValue = *((QLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +QLayout* PythonQtShell_QLayout::layout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayout*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QLayout* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); + } else { + returnValue = *((QLayout**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayout::layout(); +} +QSize PythonQtShell_QLayout::maximumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayout::maximumSize(); +} +int PythonQtShell_QLayout::minimumHeightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("minimumHeightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayout::minimumHeightForWidth(arg__1); +} +QSize PythonQtShell_QLayout::minimumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayout::minimumSize(); +} +void PythonQtShell_QLayout::setGeometry(const QRect& arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLayout::setGeometry(arg__1); +} +QSize PythonQtShell_QLayout::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSize(); +} +QSpacerItem* PythonQtShell_QLayout::spacerItem() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "spacerItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSpacerItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSpacerItem* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("spacerItem", methodInfo, result); + } else { + returnValue = *((QSpacerItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayout::spacerItem(); +} +QLayoutItem* PythonQtShell_QLayout::takeAt(int index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "takeAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("takeAt", methodInfo, result); + } else { + returnValue = *((QLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +void PythonQtShell_QLayout::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLayout::timerEvent(arg__1); +} +QWidget* PythonQtShell_QLayout::widget() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widget"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QWidget* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("widget", methodInfo, result); + } else { + returnValue = *((QWidget**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayout::widget(); +} +QLayout* PythonQtWrapper_QLayout::new_QLayout() +{ +return new PythonQtShell_QLayout(); } + +QLayout* PythonQtWrapper_QLayout::new_QLayout(QWidget* parent) +{ +return new PythonQtShell_QLayout(parent); } + +bool PythonQtWrapper_QLayout::activate(QLayout* theWrappedObject) +{ + return ( theWrappedObject->activate()); +} + +void PythonQtWrapper_QLayout::addWidget(QLayout* theWrappedObject, QWidget* w) +{ + ( theWrappedObject->addWidget(w)); +} + +void PythonQtWrapper_QLayout::childEvent(QLayout* theWrappedObject, QChildEvent* e) +{ + ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_childEvent(e)); +} + +QSize PythonQtWrapper_QLayout::static_QLayout_closestAcceptableSize(const QWidget* w, const QSize& s) +{ + return (QLayout::closestAcceptableSize(w, s)); +} + +QMargins PythonQtWrapper_QLayout::contentsMargins(QLayout* theWrappedObject) const +{ + return ( theWrappedObject->contentsMargins()); +} + +QRect PythonQtWrapper_QLayout::contentsRect(QLayout* theWrappedObject) const +{ + return ( theWrappedObject->contentsRect()); +} + +QSizePolicy::ControlTypes PythonQtWrapper_QLayout::controlTypes(QLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_controlTypes()); +} + +Qt::Orientations PythonQtWrapper_QLayout::expandingDirections(QLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_expandingDirections()); +} + +QRect PythonQtWrapper_QLayout::geometry(QLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_geometry()); +} + +void PythonQtWrapper_QLayout::getContentsMargins(QLayout* theWrappedObject, int* left, int* top, int* right, int* bottom) const +{ + ( theWrappedObject->getContentsMargins(left, top, right, bottom)); +} + +int PythonQtWrapper_QLayout::indexOf(QLayout* theWrappedObject, QWidget* arg__1) const +{ + return ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_indexOf(arg__1)); +} + +void PythonQtWrapper_QLayout::invalidate(QLayout* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_invalidate()); +} + +bool PythonQtWrapper_QLayout::isEmpty(QLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_isEmpty()); +} + +bool PythonQtWrapper_QLayout::isEnabled(QLayout* theWrappedObject) const +{ + return ( theWrappedObject->isEnabled()); +} + +QLayout* PythonQtWrapper_QLayout::layout(QLayout* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_layout()); +} + +QSize PythonQtWrapper_QLayout::maximumSize(QLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_maximumSize()); +} + +QWidget* PythonQtWrapper_QLayout::menuBar(QLayout* theWrappedObject) const +{ + return ( theWrappedObject->menuBar()); +} + +QSize PythonQtWrapper_QLayout::minimumSize(QLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_minimumSize()); +} + +QWidget* PythonQtWrapper_QLayout::parentWidget(QLayout* theWrappedObject) const +{ + return ( theWrappedObject->parentWidget()); +} + +void PythonQtWrapper_QLayout::removeItem(QLayout* theWrappedObject, QLayoutItem* arg__1) +{ + ( theWrappedObject->removeItem(arg__1)); +} + +void PythonQtWrapper_QLayout::removeWidget(QLayout* theWrappedObject, QWidget* w) +{ + ( theWrappedObject->removeWidget(w)); +} + +void PythonQtWrapper_QLayout::setAlignment(QLayout* theWrappedObject, Qt::Alignment alignment) +{ + ( theWrappedObject->setAlignment(alignment)); +} + +bool PythonQtWrapper_QLayout::setAlignment(QLayout* theWrappedObject, QLayout* l, Qt::Alignment alignment) +{ + return ( theWrappedObject->setAlignment(l, alignment)); +} + +bool PythonQtWrapper_QLayout::setAlignment(QLayout* theWrappedObject, QWidget* w, Qt::Alignment alignment) +{ + return ( theWrappedObject->setAlignment(w, alignment)); +} + +void PythonQtWrapper_QLayout::setContentsMargins(QLayout* theWrappedObject, const QMargins& margins) +{ + ( theWrappedObject->setContentsMargins(margins)); +} + +void PythonQtWrapper_QLayout::setContentsMargins(QLayout* theWrappedObject, int left, int top, int right, int bottom) +{ + ( theWrappedObject->setContentsMargins(left, top, right, bottom)); +} + +void PythonQtWrapper_QLayout::setEnabled(QLayout* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setEnabled(arg__1)); +} + +void PythonQtWrapper_QLayout::setGeometry(QLayout* theWrappedObject, const QRect& arg__1) +{ + ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_setGeometry(arg__1)); +} + +void PythonQtWrapper_QLayout::setMargin(QLayout* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setMargin(arg__1)); +} + +void PythonQtWrapper_QLayout::setMenuBar(QLayout* theWrappedObject, QWidget* w) +{ + ( theWrappedObject->setMenuBar(w)); +} + +void PythonQtWrapper_QLayout::setSizeConstraint(QLayout* theWrappedObject, QLayout::SizeConstraint arg__1) +{ + ( theWrappedObject->setSizeConstraint(arg__1)); +} + +void PythonQtWrapper_QLayout::setSpacing(QLayout* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setSpacing(arg__1)); +} + +QLayout::SizeConstraint PythonQtWrapper_QLayout::sizeConstraint(QLayout* theWrappedObject) const +{ + return ( theWrappedObject->sizeConstraint()); +} + +int PythonQtWrapper_QLayout::spacing(QLayout* theWrappedObject) const +{ + return ( theWrappedObject->spacing()); +} + +int PythonQtWrapper_QLayout::totalHeightForWidth(QLayout* theWrappedObject, int w) const +{ + return ( theWrappedObject->totalHeightForWidth(w)); +} + +QSize PythonQtWrapper_QLayout::totalMaximumSize(QLayout* theWrappedObject) const +{ + return ( theWrappedObject->totalMaximumSize()); +} + +QSize PythonQtWrapper_QLayout::totalMinimumSize(QLayout* theWrappedObject) const +{ + return ( theWrappedObject->totalMinimumSize()); +} + +QSize PythonQtWrapper_QLayout::totalSizeHint(QLayout* theWrappedObject) const +{ + return ( theWrappedObject->totalSizeHint()); +} + +void PythonQtWrapper_QLayout::update(QLayout* theWrappedObject) +{ + ( theWrappedObject->update()); +} + + + +PythonQtShell_QLayoutItem::~PythonQtShell_QLayoutItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QSizePolicy::ControlTypes PythonQtShell_QLayoutItem::controlTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "controlTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSizePolicy::ControlTypes"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSizePolicy::ControlTypes returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("controlTypes", methodInfo, result); + } else { + returnValue = *((QSizePolicy::ControlTypes*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayoutItem::controlTypes(); +} +Qt::Orientations PythonQtShell_QLayoutItem::expandingDirections() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::Orientations"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::Orientations returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); + } else { + returnValue = *((Qt::Orientations*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return Qt::Orientations(); +} +QRect PythonQtShell_QLayoutItem::geometry() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QRect returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRect(); +} +bool PythonQtShell_QLayoutItem::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayoutItem::hasHeightForWidth(); +} +int PythonQtShell_QLayoutItem::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayoutItem::heightForWidth(arg__1); +} +void PythonQtShell_QLayoutItem::invalidate() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLayoutItem::invalidate(); +} +bool PythonQtShell_QLayoutItem::isEmpty() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +QLayout* PythonQtShell_QLayoutItem::layout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayout*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QLayout* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); + } else { + returnValue = *((QLayout**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayoutItem::layout(); +} +QSize PythonQtShell_QLayoutItem::maximumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSize(); +} +int PythonQtShell_QLayoutItem::minimumHeightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("minimumHeightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayoutItem::minimumHeightForWidth(arg__1); +} +QSize PythonQtShell_QLayoutItem::minimumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSize(); +} +void PythonQtShell_QLayoutItem::setGeometry(const QRect& arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +QSize PythonQtShell_QLayoutItem::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSize(); +} +QSpacerItem* PythonQtShell_QLayoutItem::spacerItem() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "spacerItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSpacerItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSpacerItem* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("spacerItem", methodInfo, result); + } else { + returnValue = *((QSpacerItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayoutItem::spacerItem(); +} +QWidget* PythonQtShell_QLayoutItem::widget() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widget"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QWidget* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("widget", methodInfo, result); + } else { + returnValue = *((QWidget**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLayoutItem::widget(); +} +QLayoutItem* PythonQtWrapper_QLayoutItem::new_QLayoutItem(Qt::Alignment alignment) +{ +return new PythonQtShell_QLayoutItem(alignment); } + +Qt::Alignment PythonQtWrapper_QLayoutItem::alignment(QLayoutItem* theWrappedObject) const +{ + return ( theWrappedObject->alignment()); +} + +QSizePolicy::ControlTypes PythonQtWrapper_QLayoutItem::controlTypes(QLayoutItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QLayoutItem*)theWrappedObject)->promoted_controlTypes()); +} + +bool PythonQtWrapper_QLayoutItem::hasHeightForWidth(QLayoutItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QLayoutItem*)theWrappedObject)->promoted_hasHeightForWidth()); +} + +int PythonQtWrapper_QLayoutItem::heightForWidth(QLayoutItem* theWrappedObject, int arg__1) const +{ + return ( ((PythonQtPublicPromoter_QLayoutItem*)theWrappedObject)->promoted_heightForWidth(arg__1)); +} + +void PythonQtWrapper_QLayoutItem::invalidate(QLayoutItem* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QLayoutItem*)theWrappedObject)->promoted_invalidate()); +} + +QLayout* PythonQtWrapper_QLayoutItem::layout(QLayoutItem* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QLayoutItem*)theWrappedObject)->promoted_layout()); +} + +int PythonQtWrapper_QLayoutItem::minimumHeightForWidth(QLayoutItem* theWrappedObject, int arg__1) const +{ + return ( ((PythonQtPublicPromoter_QLayoutItem*)theWrappedObject)->promoted_minimumHeightForWidth(arg__1)); +} + +void PythonQtWrapper_QLayoutItem::setAlignment(QLayoutItem* theWrappedObject, Qt::Alignment a) +{ + ( theWrappedObject->setAlignment(a)); +} + +QSpacerItem* PythonQtWrapper_QLayoutItem::spacerItem(QLayoutItem* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QLayoutItem*)theWrappedObject)->promoted_spacerItem()); +} + +QWidget* PythonQtWrapper_QLayoutItem::widget(QLayoutItem* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QLayoutItem*)theWrappedObject)->promoted_widget()); +} + + + +PythonQtShell_QLineEdit::~PythonQtShell_QLineEdit() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QLineEdit::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::actionEvent(arg__1); +} +void PythonQtShell_QLineEdit::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::changeEvent(arg__1); +} +void PythonQtShell_QLineEdit::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::childEvent(arg__1); +} +void PythonQtShell_QLineEdit::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::closeEvent(arg__1); +} +void PythonQtShell_QLineEdit::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::contextMenuEvent(arg__1); +} +void PythonQtShell_QLineEdit::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::customEvent(arg__1); +} +int PythonQtShell_QLineEdit::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLineEdit::devType(); +} +void PythonQtShell_QLineEdit::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::dragEnterEvent(arg__1); +} +void PythonQtShell_QLineEdit::dragLeaveEvent(QDragLeaveEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::dragLeaveEvent(e); +} +void PythonQtShell_QLineEdit::dragMoveEvent(QDragMoveEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::dragMoveEvent(e); +} +void PythonQtShell_QLineEdit::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::dropEvent(arg__1); +} +void PythonQtShell_QLineEdit::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::enterEvent(arg__1); +} +bool PythonQtShell_QLineEdit::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLineEdit::event(arg__1); +} +bool PythonQtShell_QLineEdit::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLineEdit::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QLineEdit::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::focusInEvent(arg__1); +} +bool PythonQtShell_QLineEdit::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLineEdit::focusNextPrevChild(next); +} +void PythonQtShell_QLineEdit::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::focusOutEvent(arg__1); +} +bool PythonQtShell_QLineEdit::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLineEdit::hasHeightForWidth(); +} +int PythonQtShell_QLineEdit::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLineEdit::heightForWidth(arg__1); +} +void PythonQtShell_QLineEdit::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::hideEvent(arg__1); +} +void PythonQtShell_QLineEdit::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::initPainter(painter); +} +void PythonQtShell_QLineEdit::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QLineEdit::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLineEdit::inputMethodQuery(arg__1); +} +void PythonQtShell_QLineEdit::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::keyPressEvent(arg__1); +} +void PythonQtShell_QLineEdit::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::keyReleaseEvent(arg__1); +} +void PythonQtShell_QLineEdit::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::leaveEvent(arg__1); +} +int PythonQtShell_QLineEdit::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLineEdit::metric(arg__1); +} +void PythonQtShell_QLineEdit::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QLineEdit::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::mouseMoveEvent(arg__1); +} +void PythonQtShell_QLineEdit::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::mousePressEvent(arg__1); +} +void PythonQtShell_QLineEdit::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QLineEdit::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::moveEvent(arg__1); +} +bool PythonQtShell_QLineEdit::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLineEdit::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QLineEdit::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLineEdit::paintEngine(); +} +void PythonQtShell_QLineEdit::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QLineEdit::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLineEdit::redirected(offset); +} +void PythonQtShell_QLineEdit::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QLineEdit::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLineEdit::sharedPainter(); +} +void PythonQtShell_QLineEdit::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::showEvent(arg__1); +} +void PythonQtShell_QLineEdit::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::tabletEvent(arg__1); +} +void PythonQtShell_QLineEdit::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::timerEvent(arg__1); +} +void PythonQtShell_QLineEdit::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLineEdit::wheelEvent(arg__1); +} +QLineEdit* PythonQtWrapper_QLineEdit::new_QLineEdit(QWidget* parent) +{ +return new PythonQtShell_QLineEdit(parent); } + +QLineEdit* PythonQtWrapper_QLineEdit::new_QLineEdit(const QString& arg__1, QWidget* parent) +{ +return new PythonQtShell_QLineEdit(arg__1, parent); } + +Qt::Alignment PythonQtWrapper_QLineEdit::alignment(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->alignment()); +} + +void PythonQtWrapper_QLineEdit::backspace(QLineEdit* theWrappedObject) +{ + ( theWrappedObject->backspace()); +} + +void PythonQtWrapper_QLineEdit::changeEvent(QLineEdit* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_changeEvent(arg__1)); +} + +QCompleter* PythonQtWrapper_QLineEdit::completer(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->completer()); +} + +void PythonQtWrapper_QLineEdit::contextMenuEvent(QLineEdit* theWrappedObject, QContextMenuEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_contextMenuEvent(arg__1)); +} + +QMenu* PythonQtWrapper_QLineEdit::createStandardContextMenu(QLineEdit* theWrappedObject) +{ + return ( theWrappedObject->createStandardContextMenu()); +} + +void PythonQtWrapper_QLineEdit::cursorBackward(QLineEdit* theWrappedObject, bool mark, int steps) +{ + ( theWrappedObject->cursorBackward(mark, steps)); +} + +void PythonQtWrapper_QLineEdit::cursorForward(QLineEdit* theWrappedObject, bool mark, int steps) +{ + ( theWrappedObject->cursorForward(mark, steps)); +} + +Qt::CursorMoveStyle PythonQtWrapper_QLineEdit::cursorMoveStyle(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->cursorMoveStyle()); +} + +int PythonQtWrapper_QLineEdit::cursorPosition(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->cursorPosition()); +} + +int PythonQtWrapper_QLineEdit::cursorPositionAt(QLineEdit* theWrappedObject, const QPoint& pos) +{ + return ( theWrappedObject->cursorPositionAt(pos)); +} + +void PythonQtWrapper_QLineEdit::cursorWordBackward(QLineEdit* theWrappedObject, bool mark) +{ + ( theWrappedObject->cursorWordBackward(mark)); +} + +void PythonQtWrapper_QLineEdit::cursorWordForward(QLineEdit* theWrappedObject, bool mark) +{ + ( theWrappedObject->cursorWordForward(mark)); +} + +void PythonQtWrapper_QLineEdit::del(QLineEdit* theWrappedObject) +{ + ( theWrappedObject->del()); +} + +void PythonQtWrapper_QLineEdit::deselect(QLineEdit* theWrappedObject) +{ + ( theWrappedObject->deselect()); +} + +QString PythonQtWrapper_QLineEdit::displayText(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->displayText()); +} + +bool PythonQtWrapper_QLineEdit::dragEnabled(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->dragEnabled()); +} + +void PythonQtWrapper_QLineEdit::dragEnterEvent(QLineEdit* theWrappedObject, QDragEnterEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_dragEnterEvent(arg__1)); +} + +void PythonQtWrapper_QLineEdit::dragLeaveEvent(QLineEdit* theWrappedObject, QDragLeaveEvent* e) +{ + ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_dragLeaveEvent(e)); +} + +void PythonQtWrapper_QLineEdit::dragMoveEvent(QLineEdit* theWrappedObject, QDragMoveEvent* e) +{ + ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_dragMoveEvent(e)); +} + +void PythonQtWrapper_QLineEdit::dropEvent(QLineEdit* theWrappedObject, QDropEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_dropEvent(arg__1)); +} + +QLineEdit::EchoMode PythonQtWrapper_QLineEdit::echoMode(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->echoMode()); +} + +void PythonQtWrapper_QLineEdit::end(QLineEdit* theWrappedObject, bool mark) +{ + ( theWrappedObject->end(mark)); +} + +bool PythonQtWrapper_QLineEdit::event(QLineEdit* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_event(arg__1)); +} + +void PythonQtWrapper_QLineEdit::focusInEvent(QLineEdit* theWrappedObject, QFocusEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_focusInEvent(arg__1)); +} + +void PythonQtWrapper_QLineEdit::focusOutEvent(QLineEdit* theWrappedObject, QFocusEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_focusOutEvent(arg__1)); +} + +void PythonQtWrapper_QLineEdit::getTextMargins(QLineEdit* theWrappedObject, int* left, int* top, int* right, int* bottom) const +{ + ( theWrappedObject->getTextMargins(left, top, right, bottom)); +} + +bool PythonQtWrapper_QLineEdit::hasAcceptableInput(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->hasAcceptableInput()); +} + +bool PythonQtWrapper_QLineEdit::hasFrame(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->hasFrame()); +} + +bool PythonQtWrapper_QLineEdit::hasSelectedText(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->hasSelectedText()); +} + +void PythonQtWrapper_QLineEdit::home(QLineEdit* theWrappedObject, bool mark) +{ + ( theWrappedObject->home(mark)); +} + +QString PythonQtWrapper_QLineEdit::inputMask(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->inputMask()); +} + +void PythonQtWrapper_QLineEdit::inputMethodEvent(QLineEdit* theWrappedObject, QInputMethodEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_inputMethodEvent(arg__1)); +} + +QVariant PythonQtWrapper_QLineEdit::inputMethodQuery(QLineEdit* theWrappedObject, Qt::InputMethodQuery arg__1) const +{ + return ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_inputMethodQuery(arg__1)); +} + +void PythonQtWrapper_QLineEdit::insert(QLineEdit* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->insert(arg__1)); +} + +bool PythonQtWrapper_QLineEdit::isModified(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->isModified()); +} + +bool PythonQtWrapper_QLineEdit::isReadOnly(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->isReadOnly()); +} + +bool PythonQtWrapper_QLineEdit::isRedoAvailable(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->isRedoAvailable()); +} + +bool PythonQtWrapper_QLineEdit::isUndoAvailable(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->isUndoAvailable()); +} + +void PythonQtWrapper_QLineEdit::keyPressEvent(QLineEdit* theWrappedObject, QKeyEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_keyPressEvent(arg__1)); +} + +int PythonQtWrapper_QLineEdit::maxLength(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->maxLength()); +} + +QSize PythonQtWrapper_QLineEdit::minimumSizeHint(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +void PythonQtWrapper_QLineEdit::mouseDoubleClickEvent(QLineEdit* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_mouseDoubleClickEvent(arg__1)); +} + +void PythonQtWrapper_QLineEdit::mouseMoveEvent(QLineEdit* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); +} + +void PythonQtWrapper_QLineEdit::mousePressEvent(QLineEdit* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_mousePressEvent(arg__1)); +} + +void PythonQtWrapper_QLineEdit::mouseReleaseEvent(QLineEdit* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); +} + +void PythonQtWrapper_QLineEdit::paintEvent(QLineEdit* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +QString PythonQtWrapper_QLineEdit::placeholderText(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->placeholderText()); +} + +QString PythonQtWrapper_QLineEdit::selectedText(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->selectedText()); +} + +int PythonQtWrapper_QLineEdit::selectionStart(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->selectionStart()); +} + +void PythonQtWrapper_QLineEdit::setAlignment(QLineEdit* theWrappedObject, Qt::Alignment flag) +{ + ( theWrappedObject->setAlignment(flag)); +} + +void PythonQtWrapper_QLineEdit::setCompleter(QLineEdit* theWrappedObject, QCompleter* completer) +{ + ( theWrappedObject->setCompleter(completer)); +} + +void PythonQtWrapper_QLineEdit::setCursorMoveStyle(QLineEdit* theWrappedObject, Qt::CursorMoveStyle style) +{ + ( theWrappedObject->setCursorMoveStyle(style)); +} + +void PythonQtWrapper_QLineEdit::setCursorPosition(QLineEdit* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setCursorPosition(arg__1)); +} + +void PythonQtWrapper_QLineEdit::setDragEnabled(QLineEdit* theWrappedObject, bool b) +{ + ( theWrappedObject->setDragEnabled(b)); +} + +void PythonQtWrapper_QLineEdit::setEchoMode(QLineEdit* theWrappedObject, QLineEdit::EchoMode arg__1) +{ + ( theWrappedObject->setEchoMode(arg__1)); +} + +void PythonQtWrapper_QLineEdit::setFrame(QLineEdit* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setFrame(arg__1)); +} + +void PythonQtWrapper_QLineEdit::setInputMask(QLineEdit* theWrappedObject, const QString& inputMask) +{ + ( theWrappedObject->setInputMask(inputMask)); +} + +void PythonQtWrapper_QLineEdit::setMaxLength(QLineEdit* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setMaxLength(arg__1)); +} + +void PythonQtWrapper_QLineEdit::setModified(QLineEdit* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setModified(arg__1)); +} + +void PythonQtWrapper_QLineEdit::setPlaceholderText(QLineEdit* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setPlaceholderText(arg__1)); +} + +void PythonQtWrapper_QLineEdit::setReadOnly(QLineEdit* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setReadOnly(arg__1)); +} + +void PythonQtWrapper_QLineEdit::setSelection(QLineEdit* theWrappedObject, int arg__1, int arg__2) +{ + ( theWrappedObject->setSelection(arg__1, arg__2)); +} + +void PythonQtWrapper_QLineEdit::setTextMargins(QLineEdit* theWrappedObject, const QMargins& margins) +{ + ( theWrappedObject->setTextMargins(margins)); +} + +void PythonQtWrapper_QLineEdit::setTextMargins(QLineEdit* theWrappedObject, int left, int top, int right, int bottom) +{ + ( theWrappedObject->setTextMargins(left, top, right, bottom)); +} + +void PythonQtWrapper_QLineEdit::setValidator(QLineEdit* theWrappedObject, const QValidator* arg__1) +{ + ( theWrappedObject->setValidator(arg__1)); +} + +QSize PythonQtWrapper_QLineEdit::sizeHint(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +QString PythonQtWrapper_QLineEdit::text(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + +QMargins PythonQtWrapper_QLineEdit::textMargins(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->textMargins()); +} + +const QValidator* PythonQtWrapper_QLineEdit::validator(QLineEdit* theWrappedObject) const +{ + return ( theWrappedObject->validator()); +} + +#endif + +QLinearGradient* PythonQtWrapper_QLinearGradient::new_QLinearGradient() +{ +return new QLinearGradient(); } + +QLinearGradient* PythonQtWrapper_QLinearGradient::new_QLinearGradient(const QPointF& start, const QPointF& finalStop) +{ +return new QLinearGradient(start, finalStop); } + +QLinearGradient* PythonQtWrapper_QLinearGradient::new_QLinearGradient(qreal xStart, qreal yStart, qreal xFinalStop, qreal yFinalStop) +{ +return new QLinearGradient(xStart, yStart, xFinalStop, yFinalStop); } + +QPointF PythonQtWrapper_QLinearGradient::finalStop(QLinearGradient* theWrappedObject) const +{ + return ( theWrappedObject->finalStop()); +} + +void PythonQtWrapper_QLinearGradient::setFinalStop(QLinearGradient* theWrappedObject, const QPointF& stop) +{ + ( theWrappedObject->setFinalStop(stop)); +} + +void PythonQtWrapper_QLinearGradient::setFinalStop(QLinearGradient* theWrappedObject, qreal x, qreal y) +{ + ( theWrappedObject->setFinalStop(x, y)); +} + +void PythonQtWrapper_QLinearGradient::setStart(QLinearGradient* theWrappedObject, const QPointF& start) +{ + ( theWrappedObject->setStart(start)); +} + +void PythonQtWrapper_QLinearGradient::setStart(QLinearGradient* theWrappedObject, qreal x, qreal y) +{ + ( theWrappedObject->setStart(x, y)); +} + +QPointF PythonQtWrapper_QLinearGradient::start(QLinearGradient* theWrappedObject) const +{ + return ( theWrappedObject->start()); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QListView::~PythonQtShell_QListView() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QListView::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::actionEvent(arg__1); +} +void PythonQtShell_QListView::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::changeEvent(arg__1); +} +void PythonQtShell_QListView::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::childEvent(arg__1); +} +void PythonQtShell_QListView::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&editor, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::closeEditor(editor, hint); +} +void PythonQtShell_QListView::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::closeEvent(arg__1); +} +void PythonQtShell_QListView::commitData(QWidget* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::commitData(editor); +} +void PythonQtShell_QListView::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::contextMenuEvent(arg__1); +} +void PythonQtShell_QListView::currentChanged(const QModelIndex& current, const QModelIndex& previous) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)¤t, (void*)&previous}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::currentChanged(current, previous); +} +void PythonQtShell_QListView::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::customEvent(arg__1); +} +void PythonQtShell_QListView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&" , "const QVector&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&topLeft, (void*)&bottomRight, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::dataChanged(topLeft, bottomRight, roles); +} +int PythonQtShell_QListView::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::devType(); +} +void PythonQtShell_QListView::doItemsLayout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::doItemsLayout(); +} +void PythonQtShell_QListView::dragEnterEvent(QDragEnterEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::dragEnterEvent(event); +} +void PythonQtShell_QListView::dragLeaveEvent(QDragLeaveEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::dragLeaveEvent(e); +} +void PythonQtShell_QListView::dragMoveEvent(QDragMoveEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::dragMoveEvent(e); +} +void PythonQtShell_QListView::dropEvent(QDropEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::dropEvent(e); +} +bool PythonQtShell_QListView::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::edit(index, trigger, event); +} +void PythonQtShell_QListView::editorDestroyed(QObject* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QObject*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::editorDestroyed(editor); +} +void PythonQtShell_QListView::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::enterEvent(arg__1); +} +bool PythonQtShell_QListView::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::event(e); +} +bool PythonQtShell_QListView::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QListView::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::focusInEvent(event); +} +bool PythonQtShell_QListView::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::focusNextPrevChild(next); +} +void PythonQtShell_QListView::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::focusOutEvent(event); +} +bool PythonQtShell_QListView::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::hasHeightForWidth(); +} +int PythonQtShell_QListView::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::heightForWidth(arg__1); +} +void PythonQtShell_QListView::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::hideEvent(arg__1); +} +int PythonQtShell_QListView::horizontalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::horizontalOffset(); +} +void PythonQtShell_QListView::horizontalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::horizontalScrollbarAction(action); +} +void PythonQtShell_QListView::horizontalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::horizontalScrollbarValueChanged(value); +} +QModelIndex PythonQtShell_QListView::indexAt(const QPoint& p) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&p}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::indexAt(p); +} +void PythonQtShell_QListView::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::initPainter(painter); +} +void PythonQtShell_QListView::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::inputMethodEvent(event); +} +QVariant PythonQtShell_QListView::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::inputMethodQuery(query); +} +bool PythonQtShell_QListView::isIndexHidden(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::isIndexHidden(index); +} +void PythonQtShell_QListView::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::keyPressEvent(event); +} +void PythonQtShell_QListView::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::keyReleaseEvent(arg__1); +} +void PythonQtShell_QListView::keyboardSearch(const QString& search) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&search}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::keyboardSearch(search); +} +void PythonQtShell_QListView::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::leaveEvent(arg__1); +} +int PythonQtShell_QListView::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::metric(arg__1); +} +void PythonQtShell_QListView::mouseDoubleClickEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::mouseDoubleClickEvent(event); +} +void PythonQtShell_QListView::mouseMoveEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::mouseMoveEvent(e); +} +void PythonQtShell_QListView::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::mousePressEvent(event); +} +void PythonQtShell_QListView::mouseReleaseEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::mouseReleaseEvent(e); +} +void PythonQtShell_QListView::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::moveEvent(arg__1); +} +bool PythonQtShell_QListView::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QListView::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::paintEngine(); +} +void PythonQtShell_QListView::paintEvent(QPaintEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::paintEvent(e); +} +QPaintDevice* PythonQtShell_QListView::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::redirected(offset); +} +void PythonQtShell_QListView::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::reset(); +} +void PythonQtShell_QListView::resizeEvent(QResizeEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::resizeEvent(e); +} +void PythonQtShell_QListView::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::rowsAboutToBeRemoved(parent, start, end); +} +void PythonQtShell_QListView::rowsInserted(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::rowsInserted(parent, start, end); +} +void PythonQtShell_QListView::scrollContentsBy(int dx, int dy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&dx, (void*)&dy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::scrollContentsBy(dx, dy); +} +void PythonQtShell_QListView::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&index, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::scrollTo(index, hint); +} +void PythonQtShell_QListView::selectAll() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::selectAll(); +} +QList PythonQtShell_QListView::selectedIndexes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::selectedIndexes(); +} +void PythonQtShell_QListView::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::selectionChanged(selected, deselected); +} +QItemSelectionModel::SelectionFlags PythonQtShell_QListView::selectionCommand(const QModelIndex& index, const QEvent* event) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QItemSelectionModel::SelectionFlags returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); + } else { + returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::selectionCommand(index, event); +} +void PythonQtShell_QListView::setModel(QAbstractItemModel* model) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractItemModel*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&model}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::setModel(model); +} +void PythonQtShell_QListView::setRootIndex(const QModelIndex& index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::setRootIndex(index); +} +void PythonQtShell_QListView::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&rect, (void*)&command}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::setSelection(rect, command); +} +void PythonQtShell_QListView::setSelectionModel(QItemSelectionModel* selectionModel) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QItemSelectionModel*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&selectionModel}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::setSelectionModel(selectionModel); +} +void PythonQtShell_QListView::setupViewport(QWidget* viewport) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&viewport}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::setupViewport(viewport); +} +QPainter* PythonQtShell_QListView::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::sharedPainter(); +} +void PythonQtShell_QListView::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::showEvent(arg__1); +} +int PythonQtShell_QListView::sizeHintForColumn(int column) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&column}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::sizeHintForColumn(column); +} +int PythonQtShell_QListView::sizeHintForRow(int row) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&row}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::sizeHintForRow(row); +} +void PythonQtShell_QListView::startDrag(Qt::DropActions supportedActions) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&supportedActions}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::startDrag(supportedActions); +} +void PythonQtShell_QListView::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::tabletEvent(arg__1); +} +void PythonQtShell_QListView::timerEvent(QTimerEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::timerEvent(e); +} +void PythonQtShell_QListView::updateEditorData() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::updateEditorData(); +} +void PythonQtShell_QListView::updateEditorGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::updateEditorGeometries(); +} +void PythonQtShell_QListView::updateGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::updateGeometries(); +} +int PythonQtShell_QListView::verticalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::verticalOffset(); +} +void PythonQtShell_QListView::verticalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::verticalScrollbarAction(action); +} +void PythonQtShell_QListView::verticalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::verticalScrollbarValueChanged(value); +} +QStyleOptionViewItem PythonQtShell_QListView::viewOptions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStyleOptionViewItem"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStyleOptionViewItem returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); + } else { + returnValue = *((QStyleOptionViewItem*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::viewOptions(); +} +bool PythonQtShell_QListView::viewportEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::viewportEvent(event); +} +QSize PythonQtShell_QListView::viewportSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::viewportSizeHint(); +} +QRect PythonQtShell_QListView::visualRect(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRect returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::visualRect(index); +} +QRegion PythonQtShell_QListView::visualRegionForSelection(const QItemSelection& selection) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRegion returnValue; + void* args[2] = {NULL, (void*)&selection}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); + } else { + returnValue = *((QRegion*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListView::visualRegionForSelection(selection); +} +void PythonQtShell_QListView::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListView::wheelEvent(arg__1); +} +QListView* PythonQtWrapper_QListView::new_QListView(QWidget* parent) +{ +return new PythonQtShell_QListView(parent); } + +int PythonQtWrapper_QListView::batchSize(QListView* theWrappedObject) const +{ + return ( theWrappedObject->batchSize()); +} + +void PythonQtWrapper_QListView::clearPropertyFlags(QListView* theWrappedObject) +{ + ( theWrappedObject->clearPropertyFlags()); +} + +void PythonQtWrapper_QListView::currentChanged(QListView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_currentChanged(current, previous)); +} + +void PythonQtWrapper_QListView::dataChanged(QListView* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_dataChanged(topLeft, bottomRight, roles)); +} + +void PythonQtWrapper_QListView::doItemsLayout(QListView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_doItemsLayout()); +} + +void PythonQtWrapper_QListView::dragLeaveEvent(QListView* theWrappedObject, QDragLeaveEvent* e) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_dragLeaveEvent(e)); +} + +void PythonQtWrapper_QListView::dragMoveEvent(QListView* theWrappedObject, QDragMoveEvent* e) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_dragMoveEvent(e)); +} + +void PythonQtWrapper_QListView::dropEvent(QListView* theWrappedObject, QDropEvent* e) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_dropEvent(e)); +} + +bool PythonQtWrapper_QListView::event(QListView* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_event(e)); +} + +QListView::Flow PythonQtWrapper_QListView::flow(QListView* theWrappedObject) const +{ + return ( theWrappedObject->flow()); +} + +QSize PythonQtWrapper_QListView::gridSize(QListView* theWrappedObject) const +{ + return ( theWrappedObject->gridSize()); +} + +int PythonQtWrapper_QListView::horizontalOffset(QListView* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_horizontalOffset()); +} + +QModelIndex PythonQtWrapper_QListView::indexAt(QListView* theWrappedObject, const QPoint& p) const +{ + return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_indexAt(p)); +} + +bool PythonQtWrapper_QListView::isIndexHidden(QListView* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_isIndexHidden(index)); +} + +bool PythonQtWrapper_QListView::isRowHidden(QListView* theWrappedObject, int row) const +{ + return ( theWrappedObject->isRowHidden(row)); +} + +bool PythonQtWrapper_QListView::isSelectionRectVisible(QListView* theWrappedObject) const +{ + return ( theWrappedObject->isSelectionRectVisible()); +} + +bool PythonQtWrapper_QListView::isWrapping(QListView* theWrappedObject) const +{ + return ( theWrappedObject->isWrapping()); +} + +QListView::LayoutMode PythonQtWrapper_QListView::layoutMode(QListView* theWrappedObject) const +{ + return ( theWrappedObject->layoutMode()); +} + +int PythonQtWrapper_QListView::modelColumn(QListView* theWrappedObject) const +{ + return ( theWrappedObject->modelColumn()); +} + +void PythonQtWrapper_QListView::mouseMoveEvent(QListView* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_mouseMoveEvent(e)); +} + +void PythonQtWrapper_QListView::mouseReleaseEvent(QListView* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_mouseReleaseEvent(e)); +} + +QListView::Movement PythonQtWrapper_QListView::movement(QListView* theWrappedObject) const +{ + return ( theWrappedObject->movement()); +} + +void PythonQtWrapper_QListView::paintEvent(QListView* theWrappedObject, QPaintEvent* e) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_paintEvent(e)); +} + +void PythonQtWrapper_QListView::reset(QListView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_reset()); +} + +void PythonQtWrapper_QListView::resizeEvent(QListView* theWrappedObject, QResizeEvent* e) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_resizeEvent(e)); +} + +QListView::ResizeMode PythonQtWrapper_QListView::resizeMode(QListView* theWrappedObject) const +{ + return ( theWrappedObject->resizeMode()); +} + +void PythonQtWrapper_QListView::rowsAboutToBeRemoved(QListView* theWrappedObject, const QModelIndex& parent, int start, int end) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_rowsAboutToBeRemoved(parent, start, end)); +} + +void PythonQtWrapper_QListView::rowsInserted(QListView* theWrappedObject, const QModelIndex& parent, int start, int end) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_rowsInserted(parent, start, end)); +} + +void PythonQtWrapper_QListView::scrollContentsBy(QListView* theWrappedObject, int dx, int dy) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); +} + +void PythonQtWrapper_QListView::scrollTo(QListView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_scrollTo(index, hint)); +} + +QList PythonQtWrapper_QListView::selectedIndexes(QListView* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_selectedIndexes()); +} + +void PythonQtWrapper_QListView::selectionChanged(QListView* theWrappedObject, const QItemSelection& selected, const QItemSelection& deselected) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_selectionChanged(selected, deselected)); +} + +void PythonQtWrapper_QListView::setBatchSize(QListView* theWrappedObject, int batchSize) +{ + ( theWrappedObject->setBatchSize(batchSize)); +} + +void PythonQtWrapper_QListView::setFlow(QListView* theWrappedObject, QListView::Flow flow) +{ + ( theWrappedObject->setFlow(flow)); +} + +void PythonQtWrapper_QListView::setGridSize(QListView* theWrappedObject, const QSize& size) +{ + ( theWrappedObject->setGridSize(size)); +} + +void PythonQtWrapper_QListView::setLayoutMode(QListView* theWrappedObject, QListView::LayoutMode mode) +{ + ( theWrappedObject->setLayoutMode(mode)); +} + +void PythonQtWrapper_QListView::setModelColumn(QListView* theWrappedObject, int column) +{ + ( theWrappedObject->setModelColumn(column)); +} + +void PythonQtWrapper_QListView::setMovement(QListView* theWrappedObject, QListView::Movement movement) +{ + ( theWrappedObject->setMovement(movement)); +} + +void PythonQtWrapper_QListView::setResizeMode(QListView* theWrappedObject, QListView::ResizeMode mode) +{ + ( theWrappedObject->setResizeMode(mode)); +} + +void PythonQtWrapper_QListView::setRootIndex(QListView* theWrappedObject, const QModelIndex& index) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_setRootIndex(index)); +} + +void PythonQtWrapper_QListView::setRowHidden(QListView* theWrappedObject, int row, bool hide) +{ + ( theWrappedObject->setRowHidden(row, hide)); +} + +void PythonQtWrapper_QListView::setSelection(QListView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_setSelection(rect, command)); +} + +void PythonQtWrapper_QListView::setSelectionRectVisible(QListView* theWrappedObject, bool show) +{ + ( theWrappedObject->setSelectionRectVisible(show)); +} + +void PythonQtWrapper_QListView::setSpacing(QListView* theWrappedObject, int space) +{ + ( theWrappedObject->setSpacing(space)); +} + +void PythonQtWrapper_QListView::setUniformItemSizes(QListView* theWrappedObject, bool enable) +{ + ( theWrappedObject->setUniformItemSizes(enable)); +} + +void PythonQtWrapper_QListView::setViewMode(QListView* theWrappedObject, QListView::ViewMode mode) +{ + ( theWrappedObject->setViewMode(mode)); +} + +void PythonQtWrapper_QListView::setWordWrap(QListView* theWrappedObject, bool on) +{ + ( theWrappedObject->setWordWrap(on)); +} + +void PythonQtWrapper_QListView::setWrapping(QListView* theWrappedObject, bool enable) +{ + ( theWrappedObject->setWrapping(enable)); +} + +int PythonQtWrapper_QListView::spacing(QListView* theWrappedObject) const +{ + return ( theWrappedObject->spacing()); +} + +void PythonQtWrapper_QListView::startDrag(QListView* theWrappedObject, Qt::DropActions supportedActions) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_startDrag(supportedActions)); +} + +void PythonQtWrapper_QListView::timerEvent(QListView* theWrappedObject, QTimerEvent* e) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_timerEvent(e)); +} + +bool PythonQtWrapper_QListView::uniformItemSizes(QListView* theWrappedObject) const +{ + return ( theWrappedObject->uniformItemSizes()); +} + +void PythonQtWrapper_QListView::updateGeometries(QListView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_updateGeometries()); +} + +int PythonQtWrapper_QListView::verticalOffset(QListView* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_verticalOffset()); +} + +QListView::ViewMode PythonQtWrapper_QListView::viewMode(QListView* theWrappedObject) const +{ + return ( theWrappedObject->viewMode()); +} + +QStyleOptionViewItem PythonQtWrapper_QListView::viewOptions(QListView* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_viewOptions()); +} + +QRect PythonQtWrapper_QListView::visualRect(QListView* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_visualRect(index)); +} + +QRegion PythonQtWrapper_QListView::visualRegionForSelection(QListView* theWrappedObject, const QItemSelection& selection) const +{ + return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_visualRegionForSelection(selection)); +} + +bool PythonQtWrapper_QListView::wordWrap(QListView* theWrappedObject) const +{ + return ( theWrappedObject->wordWrap()); +} + + + +PythonQtShell_QListWidget::~PythonQtShell_QListWidget() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QListWidget::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::actionEvent(arg__1); +} +void PythonQtShell_QListWidget::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::changeEvent(arg__1); +} +void PythonQtShell_QListWidget::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::childEvent(arg__1); +} +void PythonQtShell_QListWidget::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&editor, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::closeEditor(editor, hint); +} +void PythonQtShell_QListWidget::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::closeEvent(arg__1); +} +void PythonQtShell_QListWidget::commitData(QWidget* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::commitData(editor); +} +void PythonQtShell_QListWidget::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::contextMenuEvent(arg__1); +} +void PythonQtShell_QListWidget::currentChanged(const QModelIndex& current, const QModelIndex& previous) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)¤t, (void*)&previous}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::currentChanged(current, previous); +} +void PythonQtShell_QListWidget::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::customEvent(arg__1); +} +void PythonQtShell_QListWidget::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&" , "const QVector&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&topLeft, (void*)&bottomRight, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::dataChanged(topLeft, bottomRight, roles); +} +int PythonQtShell_QListWidget::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::devType(); +} +void PythonQtShell_QListWidget::doItemsLayout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::doItemsLayout(); +} +void PythonQtShell_QListWidget::dragEnterEvent(QDragEnterEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::dragEnterEvent(event); +} +void PythonQtShell_QListWidget::dragLeaveEvent(QDragLeaveEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::dragLeaveEvent(e); +} +void PythonQtShell_QListWidget::dragMoveEvent(QDragMoveEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::dragMoveEvent(e); +} +void PythonQtShell_QListWidget::dropEvent(QDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::dropEvent(event); +} +bool PythonQtShell_QListWidget::dropMimeData(int index, const QMimeData* data, Qt::DropAction action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "const QMimeData*" , "Qt::DropAction"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&data, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::dropMimeData(index, data, action); +} +bool PythonQtShell_QListWidget::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::edit(index, trigger, event); +} +void PythonQtShell_QListWidget::editorDestroyed(QObject* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QObject*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::editorDestroyed(editor); +} +void PythonQtShell_QListWidget::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::enterEvent(arg__1); +} +bool PythonQtShell_QListWidget::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::event(e); +} +bool PythonQtShell_QListWidget::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QListWidget::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::focusInEvent(event); +} +bool PythonQtShell_QListWidget::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::focusNextPrevChild(next); +} +void PythonQtShell_QListWidget::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::focusOutEvent(event); +} +bool PythonQtShell_QListWidget::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::hasHeightForWidth(); +} +int PythonQtShell_QListWidget::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::heightForWidth(arg__1); +} +void PythonQtShell_QListWidget::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::hideEvent(arg__1); +} +int PythonQtShell_QListWidget::horizontalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::horizontalOffset(); +} +void PythonQtShell_QListWidget::horizontalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::horizontalScrollbarAction(action); +} +void PythonQtShell_QListWidget::horizontalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::horizontalScrollbarValueChanged(value); +} +QModelIndex PythonQtShell_QListWidget::indexAt(const QPoint& p) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&p}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::indexAt(p); +} +void PythonQtShell_QListWidget::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::initPainter(painter); +} +void PythonQtShell_QListWidget::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::inputMethodEvent(event); +} +QVariant PythonQtShell_QListWidget::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::inputMethodQuery(query); +} +bool PythonQtShell_QListWidget::isIndexHidden(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::isIndexHidden(index); +} +void PythonQtShell_QListWidget::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::keyPressEvent(event); +} +void PythonQtShell_QListWidget::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::keyReleaseEvent(arg__1); +} +void PythonQtShell_QListWidget::keyboardSearch(const QString& search) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&search}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::keyboardSearch(search); +} +void PythonQtShell_QListWidget::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::leaveEvent(arg__1); +} +int PythonQtShell_QListWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::metric(arg__1); +} +QMimeData* PythonQtShell_QListWidget::mimeData(const QList items) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMimeData*" , "const QList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMimeData* returnValue; + void* args[2] = {NULL, (void*)&items}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); + } else { + returnValue = *((QMimeData**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::mimeData(items); +} +QStringList PythonQtShell_QListWidget::mimeTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStringList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStringList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); + } else { + returnValue = *((QStringList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::mimeTypes(); +} +void PythonQtShell_QListWidget::mouseDoubleClickEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::mouseDoubleClickEvent(event); +} +void PythonQtShell_QListWidget::mouseMoveEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::mouseMoveEvent(e); +} +void PythonQtShell_QListWidget::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::mousePressEvent(event); +} +void PythonQtShell_QListWidget::mouseReleaseEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::mouseReleaseEvent(e); +} +void PythonQtShell_QListWidget::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::moveEvent(arg__1); +} +bool PythonQtShell_QListWidget::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QListWidget::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::paintEngine(); +} +void PythonQtShell_QListWidget::paintEvent(QPaintEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::paintEvent(e); +} +QPaintDevice* PythonQtShell_QListWidget::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::redirected(offset); +} +void PythonQtShell_QListWidget::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::reset(); +} +void PythonQtShell_QListWidget::resizeEvent(QResizeEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::resizeEvent(e); +} +void PythonQtShell_QListWidget::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::rowsAboutToBeRemoved(parent, start, end); +} +void PythonQtShell_QListWidget::rowsInserted(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::rowsInserted(parent, start, end); +} +void PythonQtShell_QListWidget::scrollContentsBy(int dx, int dy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&dx, (void*)&dy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::scrollContentsBy(dx, dy); +} +void PythonQtShell_QListWidget::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&index, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::scrollTo(index, hint); +} +void PythonQtShell_QListWidget::selectAll() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::selectAll(); +} +QList PythonQtShell_QListWidget::selectedIndexes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::selectedIndexes(); +} +void PythonQtShell_QListWidget::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::selectionChanged(selected, deselected); +} +QItemSelectionModel::SelectionFlags PythonQtShell_QListWidget::selectionCommand(const QModelIndex& index, const QEvent* event) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QItemSelectionModel::SelectionFlags returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); + } else { + returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::selectionCommand(index, event); +} +void PythonQtShell_QListWidget::setRootIndex(const QModelIndex& index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::setRootIndex(index); +} +void PythonQtShell_QListWidget::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&rect, (void*)&command}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::setSelection(rect, command); +} +void PythonQtShell_QListWidget::setSelectionModel(QItemSelectionModel* selectionModel) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QItemSelectionModel*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&selectionModel}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::setSelectionModel(selectionModel); +} +void PythonQtShell_QListWidget::setupViewport(QWidget* viewport) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&viewport}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::setupViewport(viewport); +} +QPainter* PythonQtShell_QListWidget::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::sharedPainter(); +} +void PythonQtShell_QListWidget::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::showEvent(arg__1); +} +int PythonQtShell_QListWidget::sizeHintForColumn(int column) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&column}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::sizeHintForColumn(column); +} +int PythonQtShell_QListWidget::sizeHintForRow(int row) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&row}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::sizeHintForRow(row); +} +void PythonQtShell_QListWidget::startDrag(Qt::DropActions supportedActions) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&supportedActions}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::startDrag(supportedActions); +} +Qt::DropActions PythonQtShell_QListWidget::supportedDropActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::supportedDropActions(); +} +void PythonQtShell_QListWidget::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::tabletEvent(arg__1); +} +void PythonQtShell_QListWidget::timerEvent(QTimerEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::timerEvent(e); +} +void PythonQtShell_QListWidget::updateEditorData() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::updateEditorData(); +} +void PythonQtShell_QListWidget::updateEditorGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::updateEditorGeometries(); +} +void PythonQtShell_QListWidget::updateGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::updateGeometries(); +} +int PythonQtShell_QListWidget::verticalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::verticalOffset(); +} +void PythonQtShell_QListWidget::verticalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::verticalScrollbarAction(action); +} +void PythonQtShell_QListWidget::verticalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::verticalScrollbarValueChanged(value); +} +QStyleOptionViewItem PythonQtShell_QListWidget::viewOptions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStyleOptionViewItem"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStyleOptionViewItem returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); + } else { + returnValue = *((QStyleOptionViewItem*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::viewOptions(); +} +bool PythonQtShell_QListWidget::viewportEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::viewportEvent(event); +} +QSize PythonQtShell_QListWidget::viewportSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::viewportSizeHint(); +} +QRect PythonQtShell_QListWidget::visualRect(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRect returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::visualRect(index); +} +QRegion PythonQtShell_QListWidget::visualRegionForSelection(const QItemSelection& selection) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRegion returnValue; + void* args[2] = {NULL, (void*)&selection}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); + } else { + returnValue = *((QRegion*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidget::visualRegionForSelection(selection); +} +void PythonQtShell_QListWidget::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidget::wheelEvent(arg__1); +} +QListWidget* PythonQtWrapper_QListWidget::new_QListWidget(QWidget* parent) +{ +return new PythonQtShell_QListWidget(parent); } + +void PythonQtWrapper_QListWidget::addItem(QListWidget* theWrappedObject, QListWidgetItem* item) +{ + ( theWrappedObject->addItem(item)); +} + +void PythonQtWrapper_QListWidget::addItem(QListWidget* theWrappedObject, const QString& label) +{ + ( theWrappedObject->addItem(label)); +} + +void PythonQtWrapper_QListWidget::addItems(QListWidget* theWrappedObject, const QStringList& labels) +{ + ( theWrappedObject->addItems(labels)); +} + +void PythonQtWrapper_QListWidget::closePersistentEditor(QListWidget* theWrappedObject, QListWidgetItem* item) +{ + ( theWrappedObject->closePersistentEditor(item)); +} + +int PythonQtWrapper_QListWidget::count(QListWidget* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +QListWidgetItem* PythonQtWrapper_QListWidget::currentItem(QListWidget* theWrappedObject) const +{ + return ( theWrappedObject->currentItem()); +} + +int PythonQtWrapper_QListWidget::currentRow(QListWidget* theWrappedObject) const +{ + return ( theWrappedObject->currentRow()); +} + +void PythonQtWrapper_QListWidget::dropEvent(QListWidget* theWrappedObject, QDropEvent* event) +{ + ( ((PythonQtPublicPromoter_QListWidget*)theWrappedObject)->promoted_dropEvent(event)); +} + +bool PythonQtWrapper_QListWidget::dropMimeData(QListWidget* theWrappedObject, int index, const QMimeData* data, Qt::DropAction action) +{ + return ( ((PythonQtPublicPromoter_QListWidget*)theWrappedObject)->promoted_dropMimeData(index, data, action)); +} + +void PythonQtWrapper_QListWidget::editItem(QListWidget* theWrappedObject, QListWidgetItem* item) +{ + ( theWrappedObject->editItem(item)); +} + +bool PythonQtWrapper_QListWidget::event(QListWidget* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QListWidget*)theWrappedObject)->promoted_event(e)); +} + +QList PythonQtWrapper_QListWidget::findItems(QListWidget* theWrappedObject, const QString& text, Qt::MatchFlags flags) const +{ + return ( theWrappedObject->findItems(text, flags)); +} + +void PythonQtWrapper_QListWidget::insertItem(QListWidget* theWrappedObject, int row, QListWidgetItem* item) +{ + ( theWrappedObject->insertItem(row, item)); +} + +void PythonQtWrapper_QListWidget::insertItem(QListWidget* theWrappedObject, int row, const QString& label) +{ + ( theWrappedObject->insertItem(row, label)); +} + +void PythonQtWrapper_QListWidget::insertItems(QListWidget* theWrappedObject, int row, const QStringList& labels) +{ + ( theWrappedObject->insertItems(row, labels)); +} + +bool PythonQtWrapper_QListWidget::isSortingEnabled(QListWidget* theWrappedObject) const +{ + return ( theWrappedObject->isSortingEnabled()); +} + +QListWidgetItem* PythonQtWrapper_QListWidget::item(QListWidget* theWrappedObject, int row) const +{ + return ( theWrappedObject->item(row)); +} + +QListWidgetItem* PythonQtWrapper_QListWidget::itemAt(QListWidget* theWrappedObject, const QPoint& p) const +{ + return ( theWrappedObject->itemAt(p)); +} + +QListWidgetItem* PythonQtWrapper_QListWidget::itemAt(QListWidget* theWrappedObject, int x, int y) const +{ + return ( theWrappedObject->itemAt(x, y)); +} + +QWidget* PythonQtWrapper_QListWidget::itemWidget(QListWidget* theWrappedObject, QListWidgetItem* item) const +{ + return ( theWrappedObject->itemWidget(item)); +} + +QStringList PythonQtWrapper_QListWidget::mimeTypes(QListWidget* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QListWidget*)theWrappedObject)->promoted_mimeTypes()); +} + +void PythonQtWrapper_QListWidget::openPersistentEditor(QListWidget* theWrappedObject, QListWidgetItem* item) +{ + ( theWrappedObject->openPersistentEditor(item)); +} + +void PythonQtWrapper_QListWidget::removeItemWidget(QListWidget* theWrappedObject, QListWidgetItem* item) +{ + ( theWrappedObject->removeItemWidget(item)); +} + +int PythonQtWrapper_QListWidget::row(QListWidget* theWrappedObject, const QListWidgetItem* item) const +{ + return ( theWrappedObject->row(item)); +} + +QList PythonQtWrapper_QListWidget::selectedItems(QListWidget* theWrappedObject) const +{ + return ( theWrappedObject->selectedItems()); +} + +void PythonQtWrapper_QListWidget::setCurrentItem(QListWidget* theWrappedObject, QListWidgetItem* item) +{ + ( theWrappedObject->setCurrentItem(item)); +} + +void PythonQtWrapper_QListWidget::setCurrentItem(QListWidget* theWrappedObject, QListWidgetItem* item, QItemSelectionModel::SelectionFlags command) +{ + ( theWrappedObject->setCurrentItem(item, command)); +} + +void PythonQtWrapper_QListWidget::setCurrentRow(QListWidget* theWrappedObject, int row) +{ + ( theWrappedObject->setCurrentRow(row)); +} + +void PythonQtWrapper_QListWidget::setCurrentRow(QListWidget* theWrappedObject, int row, QItemSelectionModel::SelectionFlags command) +{ + ( theWrappedObject->setCurrentRow(row, command)); +} + +void PythonQtWrapper_QListWidget::setItemWidget(QListWidget* theWrappedObject, QListWidgetItem* item, QWidget* widget) +{ + ( theWrappedObject->setItemWidget(item, widget)); +} + +void PythonQtWrapper_QListWidget::setSortingEnabled(QListWidget* theWrappedObject, bool enable) +{ + ( theWrappedObject->setSortingEnabled(enable)); +} + +void PythonQtWrapper_QListWidget::sortItems(QListWidget* theWrappedObject, Qt::SortOrder order) +{ + ( theWrappedObject->sortItems(order)); +} + +Qt::DropActions PythonQtWrapper_QListWidget::supportedDropActions(QListWidget* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QListWidget*)theWrappedObject)->promoted_supportedDropActions()); +} + +QListWidgetItem* PythonQtWrapper_QListWidget::takeItem(QListWidget* theWrappedObject, int row) +{ + return ( theWrappedObject->takeItem(row)); +} + +QRect PythonQtWrapper_QListWidget::visualItemRect(QListWidget* theWrappedObject, const QListWidgetItem* item) const +{ + return ( theWrappedObject->visualItemRect(item)); +} + + + +PythonQtShell_QListWidgetItem::~PythonQtShell_QListWidgetItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QListWidgetItem* PythonQtShell_QListWidgetItem::clone() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clone"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QListWidgetItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QListWidgetItem* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("clone", methodInfo, result); + } else { + returnValue = *((QListWidgetItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidgetItem::clone(); +} +QVariant PythonQtShell_QListWidgetItem::data(int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidgetItem::data(role); +} +bool PythonQtShell_QListWidgetItem::__lt__(const QListWidgetItem& other) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "__lt__"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QListWidgetItem&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&other}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("__lt__", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QListWidgetItem::operator<(other); +} +void PythonQtShell_QListWidgetItem::read(QDataStream& in) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "read"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDataStream&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&in}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidgetItem::read(in); +} +void PythonQtShell_QListWidgetItem::setBackgroundColor(const QColor& color) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setBackgroundColor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QColor&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&color}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidgetItem::setBackgroundColor(color); +} +void PythonQtShell_QListWidgetItem::setData(int role, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&role, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidgetItem::setData(role, value); +} +void PythonQtShell_QListWidgetItem::write(QDataStream& out) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "write"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDataStream&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&out}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QListWidgetItem::write(out); +} +QListWidgetItem* PythonQtWrapper_QListWidgetItem::new_QListWidgetItem(QListWidget* view, int type) +{ +return new PythonQtShell_QListWidgetItem(view, type); } + +QListWidgetItem* PythonQtWrapper_QListWidgetItem::new_QListWidgetItem(const QIcon& icon, const QString& text, QListWidget* view, int type) +{ +return new PythonQtShell_QListWidgetItem(icon, text, view, type); } + +QListWidgetItem* PythonQtWrapper_QListWidgetItem::new_QListWidgetItem(const QString& text, QListWidget* view, int type) +{ +return new PythonQtShell_QListWidgetItem(text, view, type); } + +QBrush PythonQtWrapper_QListWidgetItem::background(QListWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->background()); +} + +Qt::CheckState PythonQtWrapper_QListWidgetItem::checkState(QListWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->checkState()); +} + +QListWidgetItem* PythonQtWrapper_QListWidgetItem::clone(QListWidgetItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QListWidgetItem*)theWrappedObject)->promoted_clone()); +} + +QVariant PythonQtWrapper_QListWidgetItem::data(QListWidgetItem* theWrappedObject, int role) const +{ + return ( ((PythonQtPublicPromoter_QListWidgetItem*)theWrappedObject)->promoted_data(role)); +} + +Qt::ItemFlags PythonQtWrapper_QListWidgetItem::flags(QListWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->flags()); +} + +QFont PythonQtWrapper_QListWidgetItem::font(QListWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->font()); +} + +QBrush PythonQtWrapper_QListWidgetItem::foreground(QListWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->foreground()); +} + +QIcon PythonQtWrapper_QListWidgetItem::icon(QListWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->icon()); +} + +bool PythonQtWrapper_QListWidgetItem::isHidden(QListWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->isHidden()); +} + +bool PythonQtWrapper_QListWidgetItem::isSelected(QListWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->isSelected()); +} + +QListWidget* PythonQtWrapper_QListWidgetItem::listWidget(QListWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->listWidget()); +} + +void PythonQtWrapper_QListWidgetItem::setBackground(QListWidgetItem* theWrappedObject, const QBrush& brush) +{ + ( theWrappedObject->setBackground(brush)); +} + +void PythonQtWrapper_QListWidgetItem::setCheckState(QListWidgetItem* theWrappedObject, Qt::CheckState state) +{ + ( theWrappedObject->setCheckState(state)); +} + +void PythonQtWrapper_QListWidgetItem::setData(QListWidgetItem* theWrappedObject, int role, const QVariant& value) +{ + ( ((PythonQtPublicPromoter_QListWidgetItem*)theWrappedObject)->promoted_setData(role, value)); +} + +void PythonQtWrapper_QListWidgetItem::setFlags(QListWidgetItem* theWrappedObject, Qt::ItemFlags flags) +{ + ( theWrappedObject->setFlags(flags)); +} + +void PythonQtWrapper_QListWidgetItem::setFont(QListWidgetItem* theWrappedObject, const QFont& font) +{ + ( theWrappedObject->setFont(font)); +} + +void PythonQtWrapper_QListWidgetItem::setForeground(QListWidgetItem* theWrappedObject, const QBrush& brush) +{ + ( theWrappedObject->setForeground(brush)); +} + +void PythonQtWrapper_QListWidgetItem::setHidden(QListWidgetItem* theWrappedObject, bool hide) +{ + ( theWrappedObject->setHidden(hide)); +} + +void PythonQtWrapper_QListWidgetItem::setIcon(QListWidgetItem* theWrappedObject, const QIcon& icon) +{ + ( theWrappedObject->setIcon(icon)); +} + +void PythonQtWrapper_QListWidgetItem::setSelected(QListWidgetItem* theWrappedObject, bool select) +{ + ( theWrappedObject->setSelected(select)); +} + +void PythonQtWrapper_QListWidgetItem::setSizeHint(QListWidgetItem* theWrappedObject, const QSize& size) +{ + ( theWrappedObject->setSizeHint(size)); +} + +void PythonQtWrapper_QListWidgetItem::setStatusTip(QListWidgetItem* theWrappedObject, const QString& statusTip) +{ + ( theWrappedObject->setStatusTip(statusTip)); +} + +void PythonQtWrapper_QListWidgetItem::setText(QListWidgetItem* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setText(text)); +} + +void PythonQtWrapper_QListWidgetItem::setTextAlignment(QListWidgetItem* theWrappedObject, int alignment) +{ + ( theWrappedObject->setTextAlignment(alignment)); +} + +void PythonQtWrapper_QListWidgetItem::setToolTip(QListWidgetItem* theWrappedObject, const QString& toolTip) +{ + ( theWrappedObject->setToolTip(toolTip)); +} + +void PythonQtWrapper_QListWidgetItem::setWhatsThis(QListWidgetItem* theWrappedObject, const QString& whatsThis) +{ + ( theWrappedObject->setWhatsThis(whatsThis)); +} + +QSize PythonQtWrapper_QListWidgetItem::sizeHint(QListWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +QString PythonQtWrapper_QListWidgetItem::statusTip(QListWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->statusTip()); +} + +QString PythonQtWrapper_QListWidgetItem::text(QListWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + +int PythonQtWrapper_QListWidgetItem::textAlignment(QListWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->textAlignment()); +} + +QString PythonQtWrapper_QListWidgetItem::toolTip(QListWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->toolTip()); +} + +int PythonQtWrapper_QListWidgetItem::type(QListWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + +QString PythonQtWrapper_QListWidgetItem::whatsThis(QListWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->whatsThis()); +} + + + +PythonQtShell_QMainWindow::~PythonQtShell_QMainWindow() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QMainWindow::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::actionEvent(arg__1); +} +void PythonQtShell_QMainWindow::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::changeEvent(arg__1); +} +void PythonQtShell_QMainWindow::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::childEvent(arg__1); +} +void PythonQtShell_QMainWindow::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::closeEvent(arg__1); +} +void PythonQtShell_QMainWindow::contextMenuEvent(QContextMenuEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::contextMenuEvent(event); +} +QMenu* PythonQtShell_QMainWindow::createPopupMenu() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createPopupMenu"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMenu*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QMenu* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createPopupMenu", methodInfo, result); + } else { + returnValue = *((QMenu**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMainWindow::createPopupMenu(); +} +void PythonQtShell_QMainWindow::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::customEvent(arg__1); +} +int PythonQtShell_QMainWindow::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMainWindow::devType(); +} +void PythonQtShell_QMainWindow::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::dragEnterEvent(arg__1); +} +void PythonQtShell_QMainWindow::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::dragLeaveEvent(arg__1); +} +void PythonQtShell_QMainWindow::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::dragMoveEvent(arg__1); +} +void PythonQtShell_QMainWindow::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::dropEvent(arg__1); +} +void PythonQtShell_QMainWindow::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::enterEvent(arg__1); +} +bool PythonQtShell_QMainWindow::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMainWindow::event(event); +} +bool PythonQtShell_QMainWindow::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMainWindow::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QMainWindow::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::focusInEvent(arg__1); +} +bool PythonQtShell_QMainWindow::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMainWindow::focusNextPrevChild(next); +} +void PythonQtShell_QMainWindow::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::focusOutEvent(arg__1); +} +bool PythonQtShell_QMainWindow::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMainWindow::hasHeightForWidth(); +} +int PythonQtShell_QMainWindow::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMainWindow::heightForWidth(arg__1); +} +void PythonQtShell_QMainWindow::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::hideEvent(arg__1); +} +void PythonQtShell_QMainWindow::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::initPainter(painter); +} +void PythonQtShell_QMainWindow::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QMainWindow::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMainWindow::inputMethodQuery(arg__1); +} +void PythonQtShell_QMainWindow::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::keyPressEvent(arg__1); +} +void PythonQtShell_QMainWindow::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::keyReleaseEvent(arg__1); +} +void PythonQtShell_QMainWindow::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::leaveEvent(arg__1); +} +int PythonQtShell_QMainWindow::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMainWindow::metric(arg__1); +} +QSize PythonQtShell_QMainWindow::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMainWindow::minimumSizeHint(); +} +void PythonQtShell_QMainWindow::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QMainWindow::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::mouseMoveEvent(arg__1); +} +void PythonQtShell_QMainWindow::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::mousePressEvent(arg__1); +} +void PythonQtShell_QMainWindow::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QMainWindow::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::moveEvent(arg__1); +} +bool PythonQtShell_QMainWindow::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMainWindow::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QMainWindow::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMainWindow::paintEngine(); +} +void PythonQtShell_QMainWindow::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QMainWindow::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMainWindow::redirected(offset); +} +void PythonQtShell_QMainWindow::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QMainWindow::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMainWindow::sharedPainter(); +} +void PythonQtShell_QMainWindow::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::showEvent(arg__1); +} +QSize PythonQtShell_QMainWindow::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMainWindow::sizeHint(); +} +void PythonQtShell_QMainWindow::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::tabletEvent(arg__1); +} +void PythonQtShell_QMainWindow::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::timerEvent(arg__1); +} +void PythonQtShell_QMainWindow::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMainWindow::wheelEvent(arg__1); +} +QMainWindow* PythonQtWrapper_QMainWindow::new_QMainWindow(QWidget* parent, Qt::WindowFlags flags) +{ +return new PythonQtShell_QMainWindow(parent, flags); } + +void PythonQtWrapper_QMainWindow::addDockWidget(QMainWindow* theWrappedObject, Qt::DockWidgetArea area, QDockWidget* dockwidget) +{ + ( theWrappedObject->addDockWidget(area, dockwidget)); +} + +void PythonQtWrapper_QMainWindow::addDockWidget(QMainWindow* theWrappedObject, Qt::DockWidgetArea area, QDockWidget* dockwidget, Qt::Orientation orientation) +{ + ( theWrappedObject->addDockWidget(area, dockwidget, orientation)); +} + +void PythonQtWrapper_QMainWindow::addToolBar(QMainWindow* theWrappedObject, QToolBar* toolbar) +{ + ( theWrappedObject->addToolBar(toolbar)); +} + +void PythonQtWrapper_QMainWindow::addToolBar(QMainWindow* theWrappedObject, Qt::ToolBarArea area, QToolBar* toolbar) +{ + ( theWrappedObject->addToolBar(area, toolbar)); +} + +QToolBar* PythonQtWrapper_QMainWindow::addToolBar(QMainWindow* theWrappedObject, const QString& title) +{ + return ( theWrappedObject->addToolBar(title)); +} + +void PythonQtWrapper_QMainWindow::addToolBarBreak(QMainWindow* theWrappedObject, Qt::ToolBarArea area) +{ + ( theWrappedObject->addToolBarBreak(area)); +} + +QWidget* PythonQtWrapper_QMainWindow::centralWidget(QMainWindow* theWrappedObject) const +{ + return ( theWrappedObject->centralWidget()); +} + +void PythonQtWrapper_QMainWindow::contextMenuEvent(QMainWindow* theWrappedObject, QContextMenuEvent* event) +{ + ( ((PythonQtPublicPromoter_QMainWindow*)theWrappedObject)->promoted_contextMenuEvent(event)); +} + +Qt::DockWidgetArea PythonQtWrapper_QMainWindow::corner(QMainWindow* theWrappedObject, Qt::Corner corner) const +{ + return ( theWrappedObject->corner(corner)); +} + +QMenu* PythonQtWrapper_QMainWindow::createPopupMenu(QMainWindow* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QMainWindow*)theWrappedObject)->promoted_createPopupMenu()); +} + +QMainWindow::DockOptions PythonQtWrapper_QMainWindow::dockOptions(QMainWindow* theWrappedObject) const +{ + return ( theWrappedObject->dockOptions()); +} + +Qt::DockWidgetArea PythonQtWrapper_QMainWindow::dockWidgetArea(QMainWindow* theWrappedObject, QDockWidget* dockwidget) const +{ + return ( theWrappedObject->dockWidgetArea(dockwidget)); +} + +bool PythonQtWrapper_QMainWindow::documentMode(QMainWindow* theWrappedObject) const +{ + return ( theWrappedObject->documentMode()); +} + +bool PythonQtWrapper_QMainWindow::event(QMainWindow* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QMainWindow*)theWrappedObject)->promoted_event(event)); +} + +QSize PythonQtWrapper_QMainWindow::iconSize(QMainWindow* theWrappedObject) const +{ + return ( theWrappedObject->iconSize()); +} + +void PythonQtWrapper_QMainWindow::insertToolBar(QMainWindow* theWrappedObject, QToolBar* before, QToolBar* toolbar) +{ + ( theWrappedObject->insertToolBar(before, toolbar)); +} + +void PythonQtWrapper_QMainWindow::insertToolBarBreak(QMainWindow* theWrappedObject, QToolBar* before) +{ + ( theWrappedObject->insertToolBarBreak(before)); +} + +bool PythonQtWrapper_QMainWindow::isAnimated(QMainWindow* theWrappedObject) const +{ + return ( theWrappedObject->isAnimated()); +} + +bool PythonQtWrapper_QMainWindow::isDockNestingEnabled(QMainWindow* theWrappedObject) const +{ + return ( theWrappedObject->isDockNestingEnabled()); +} + +bool PythonQtWrapper_QMainWindow::isSeparator(QMainWindow* theWrappedObject, const QPoint& pos) const +{ + return ( theWrappedObject->isSeparator(pos)); +} + +QMenuBar* PythonQtWrapper_QMainWindow::menuBar(QMainWindow* theWrappedObject) const +{ + return ( theWrappedObject->menuBar()); +} + +QWidget* PythonQtWrapper_QMainWindow::menuWidget(QMainWindow* theWrappedObject) const +{ + return ( theWrappedObject->menuWidget()); +} + +void PythonQtWrapper_QMainWindow::removeDockWidget(QMainWindow* theWrappedObject, QDockWidget* dockwidget) +{ + ( theWrappedObject->removeDockWidget(dockwidget)); +} + +void PythonQtWrapper_QMainWindow::removeToolBar(QMainWindow* theWrappedObject, QToolBar* toolbar) +{ + ( theWrappedObject->removeToolBar(toolbar)); +} + +void PythonQtWrapper_QMainWindow::removeToolBarBreak(QMainWindow* theWrappedObject, QToolBar* before) +{ + ( theWrappedObject->removeToolBarBreak(before)); +} + +bool PythonQtWrapper_QMainWindow::restoreDockWidget(QMainWindow* theWrappedObject, QDockWidget* dockwidget) +{ + return ( theWrappedObject->restoreDockWidget(dockwidget)); +} + +bool PythonQtWrapper_QMainWindow::restoreState(QMainWindow* theWrappedObject, const QByteArray& state, int version) +{ + return ( theWrappedObject->restoreState(state, version)); +} + +QByteArray PythonQtWrapper_QMainWindow::saveState(QMainWindow* theWrappedObject, int version) const +{ + return ( theWrappedObject->saveState(version)); +} + +void PythonQtWrapper_QMainWindow::setCentralWidget(QMainWindow* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->setCentralWidget(widget)); +} + +void PythonQtWrapper_QMainWindow::setCorner(QMainWindow* theWrappedObject, Qt::Corner corner, Qt::DockWidgetArea area) +{ + ( theWrappedObject->setCorner(corner, area)); +} + +void PythonQtWrapper_QMainWindow::setDockOptions(QMainWindow* theWrappedObject, QMainWindow::DockOptions options) +{ + ( theWrappedObject->setDockOptions(options)); +} + +void PythonQtWrapper_QMainWindow::setDocumentMode(QMainWindow* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setDocumentMode(enabled)); +} + +void PythonQtWrapper_QMainWindow::setIconSize(QMainWindow* theWrappedObject, const QSize& iconSize) +{ + ( theWrappedObject->setIconSize(iconSize)); +} + +void PythonQtWrapper_QMainWindow::setMenuBar(QMainWindow* theWrappedObject, QMenuBar* menubar) +{ + ( theWrappedObject->setMenuBar(menubar)); +} + +void PythonQtWrapper_QMainWindow::setMenuWidget(QMainWindow* theWrappedObject, QWidget* menubar) +{ + ( theWrappedObject->setMenuWidget(menubar)); +} + +void PythonQtWrapper_QMainWindow::setStatusBar(QMainWindow* theWrappedObject, QStatusBar* statusbar) +{ + ( theWrappedObject->setStatusBar(statusbar)); +} + +void PythonQtWrapper_QMainWindow::setTabPosition(QMainWindow* theWrappedObject, Qt::DockWidgetAreas areas, QTabWidget::TabPosition tabPosition) +{ + ( theWrappedObject->setTabPosition(areas, tabPosition)); +} + +void PythonQtWrapper_QMainWindow::setTabShape(QMainWindow* theWrappedObject, QTabWidget::TabShape tabShape) +{ + ( theWrappedObject->setTabShape(tabShape)); +} + +void PythonQtWrapper_QMainWindow::setToolButtonStyle(QMainWindow* theWrappedObject, Qt::ToolButtonStyle toolButtonStyle) +{ + ( theWrappedObject->setToolButtonStyle(toolButtonStyle)); +} + +void PythonQtWrapper_QMainWindow::setUnifiedTitleAndToolBarOnMac(QMainWindow* theWrappedObject, bool set) +{ + ( theWrappedObject->setUnifiedTitleAndToolBarOnMac(set)); +} + +void PythonQtWrapper_QMainWindow::splitDockWidget(QMainWindow* theWrappedObject, QDockWidget* after, QDockWidget* dockwidget, Qt::Orientation orientation) +{ + ( theWrappedObject->splitDockWidget(after, dockwidget, orientation)); +} + +QStatusBar* PythonQtWrapper_QMainWindow::statusBar(QMainWindow* theWrappedObject) const +{ + return ( theWrappedObject->statusBar()); +} + +QTabWidget::TabPosition PythonQtWrapper_QMainWindow::tabPosition(QMainWindow* theWrappedObject, Qt::DockWidgetArea area) const +{ + return ( theWrappedObject->tabPosition(area)); +} + +QTabWidget::TabShape PythonQtWrapper_QMainWindow::tabShape(QMainWindow* theWrappedObject) const +{ + return ( theWrappedObject->tabShape()); +} + +QList PythonQtWrapper_QMainWindow::tabifiedDockWidgets(QMainWindow* theWrappedObject, QDockWidget* dockwidget) const +{ + return ( theWrappedObject->tabifiedDockWidgets(dockwidget)); +} + +void PythonQtWrapper_QMainWindow::tabifyDockWidget(QMainWindow* theWrappedObject, QDockWidget* first, QDockWidget* second) +{ + ( theWrappedObject->tabifyDockWidget(first, second)); +} + +Qt::ToolBarArea PythonQtWrapper_QMainWindow::toolBarArea(QMainWindow* theWrappedObject, QToolBar* toolbar) const +{ + return ( theWrappedObject->toolBarArea(toolbar)); +} + +bool PythonQtWrapper_QMainWindow::toolBarBreak(QMainWindow* theWrappedObject, QToolBar* toolbar) const +{ + return ( theWrappedObject->toolBarBreak(toolbar)); +} + +Qt::ToolButtonStyle PythonQtWrapper_QMainWindow::toolButtonStyle(QMainWindow* theWrappedObject) const +{ + return ( theWrappedObject->toolButtonStyle()); +} + +bool PythonQtWrapper_QMainWindow::unifiedTitleAndToolBarOnMac(QMainWindow* theWrappedObject) const +{ + return ( theWrappedObject->unifiedTitleAndToolBarOnMac()); +} + +#endif + +PythonQtShell_QMatrix3x3::~PythonQtShell_QMatrix3x3() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QMatrix3x3* PythonQtWrapper_QMatrix3x3::new_QMatrix3x3() +{ +return new PythonQtShell_QMatrix3x3(); } + + + +QMatrix4x4* PythonQtWrapper_QMatrix4x4::new_QMatrix4x4() +{ +return new QMatrix4x4(); } + +QMatrix4x4* PythonQtWrapper_QMatrix4x4::new_QMatrix4x4(const QMatrix& matrix) +{ +return new QMatrix4x4(matrix); } + +QMatrix4x4* PythonQtWrapper_QMatrix4x4::new_QMatrix4x4(const QTransform& transform) +{ +return new QMatrix4x4(transform); } + +QMatrix4x4* PythonQtWrapper_QMatrix4x4::new_QMatrix4x4(const float* values) +{ +return new QMatrix4x4(values); } + +QMatrix4x4* PythonQtWrapper_QMatrix4x4::new_QMatrix4x4(const float* values, int cols, int rows) +{ +return new QMatrix4x4(values, cols, rows); } + +QMatrix4x4* PythonQtWrapper_QMatrix4x4::new_QMatrix4x4(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m42, float m43, float m44) +{ +return new QMatrix4x4(m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, m44); } + +QVector4D PythonQtWrapper_QMatrix4x4::column(QMatrix4x4* theWrappedObject, int index) const +{ + return ( theWrappedObject->column(index)); +} + +const float* PythonQtWrapper_QMatrix4x4::constData(QMatrix4x4* theWrappedObject) const +{ + return ( theWrappedObject->constData()); +} + +void PythonQtWrapper_QMatrix4x4::copyDataTo(QMatrix4x4* theWrappedObject, float* values) const +{ + ( theWrappedObject->copyDataTo(values)); +} + +float* PythonQtWrapper_QMatrix4x4::data(QMatrix4x4* theWrappedObject) +{ + return ( theWrappedObject->data()); +} + +double PythonQtWrapper_QMatrix4x4::determinant(QMatrix4x4* theWrappedObject) const +{ + return ( theWrappedObject->determinant()); +} + +void PythonQtWrapper_QMatrix4x4::fill(QMatrix4x4* theWrappedObject, float value) +{ + ( theWrappedObject->fill(value)); +} + +void PythonQtWrapper_QMatrix4x4::flipCoordinates(QMatrix4x4* theWrappedObject) +{ + ( theWrappedObject->flipCoordinates()); +} + +void PythonQtWrapper_QMatrix4x4::frustum(QMatrix4x4* theWrappedObject, float left, float right, float bottom, float top, float nearPlane, float farPlane) +{ + ( theWrappedObject->frustum(left, right, bottom, top, nearPlane, farPlane)); +} + +QMatrix4x4 PythonQtWrapper_QMatrix4x4::inverted(QMatrix4x4* theWrappedObject, bool* invertible) const +{ + return ( theWrappedObject->inverted(invertible)); +} + +bool PythonQtWrapper_QMatrix4x4::isIdentity(QMatrix4x4* theWrappedObject) const +{ + return ( theWrappedObject->isIdentity()); +} + +void PythonQtWrapper_QMatrix4x4::lookAt(QMatrix4x4* theWrappedObject, const QVector3D& eye, const QVector3D& center, const QVector3D& up) +{ + ( theWrappedObject->lookAt(eye, center, up)); +} + +QPoint PythonQtWrapper_QMatrix4x4::map(QMatrix4x4* theWrappedObject, const QPoint& point) const +{ + return ( theWrappedObject->map(point)); +} + +QPointF PythonQtWrapper_QMatrix4x4::map(QMatrix4x4* theWrappedObject, const QPointF& point) const +{ + return ( theWrappedObject->map(point)); +} + +QVector3D PythonQtWrapper_QMatrix4x4::map(QMatrix4x4* theWrappedObject, const QVector3D& point) const +{ + return ( theWrappedObject->map(point)); +} + +QVector4D PythonQtWrapper_QMatrix4x4::map(QMatrix4x4* theWrappedObject, const QVector4D& point) const +{ + return ( theWrappedObject->map(point)); +} + +QRect PythonQtWrapper_QMatrix4x4::mapRect(QMatrix4x4* theWrappedObject, const QRect& rect) const +{ + return ( theWrappedObject->mapRect(rect)); +} + +QRectF PythonQtWrapper_QMatrix4x4::mapRect(QMatrix4x4* theWrappedObject, const QRectF& rect) const +{ + return ( theWrappedObject->mapRect(rect)); +} + +QVector3D PythonQtWrapper_QMatrix4x4::mapVector(QMatrix4x4* theWrappedObject, const QVector3D& vector) const +{ + return ( theWrappedObject->mapVector(vector)); +} + +QMatrix3x3 PythonQtWrapper_QMatrix4x4::normalMatrix(QMatrix4x4* theWrappedObject) const +{ + return ( theWrappedObject->normalMatrix()); +} + +bool PythonQtWrapper_QMatrix4x4::__ne__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other) const +{ + return ( (*theWrappedObject)!= other); +} + +float* PythonQtWrapper_QMatrix4x4::operator_cast_(QMatrix4x4* theWrappedObject, int row, int column) +{ + return &( theWrappedObject->operator()(row, column)); +} + +QMatrix4x4 PythonQtWrapper_QMatrix4x4::__mul__(QMatrix4x4* theWrappedObject, const QMatrix4x4& m2) +{ + return ( (*theWrappedObject)* m2); +} + +QPoint PythonQtWrapper_QMatrix4x4::__mul__(QMatrix4x4* theWrappedObject, const QPoint& point) +{ + return ( (*theWrappedObject)* point); +} + +QPointF PythonQtWrapper_QMatrix4x4::__mul__(QMatrix4x4* theWrappedObject, const QPointF& point) +{ + return ( (*theWrappedObject)* point); +} + +QVector3D PythonQtWrapper_QMatrix4x4::__mul__(QMatrix4x4* theWrappedObject, const QVector3D& vector) +{ + return ( (*theWrappedObject)* vector); +} + +QVector4D PythonQtWrapper_QMatrix4x4::__mul__(QMatrix4x4* theWrappedObject, const QVector4D& vector) +{ + return ( (*theWrappedObject)* vector); +} + +QMatrix4x4 PythonQtWrapper_QMatrix4x4::__mul__(QMatrix4x4* theWrappedObject, float factor) +{ + return ( (*theWrappedObject)* factor); +} + +QMatrix4x4* PythonQtWrapper_QMatrix4x4::__imul__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other) +{ + return &( (*theWrappedObject)*= other); +} + +QMatrix4x4* PythonQtWrapper_QMatrix4x4::__imul__(QMatrix4x4* theWrappedObject, float factor) +{ + return &( (*theWrappedObject)*= factor); +} + +QMatrix4x4 PythonQtWrapper_QMatrix4x4::__add__(QMatrix4x4* theWrappedObject, const QMatrix4x4& m2) +{ + return ( (*theWrappedObject)+ m2); +} + +QMatrix4x4* PythonQtWrapper_QMatrix4x4::__iadd__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other) +{ + return &( (*theWrappedObject)+= other); +} + +QMatrix4x4 PythonQtWrapper_QMatrix4x4::__sub__(QMatrix4x4* theWrappedObject, const QMatrix4x4& m2) +{ + return ( (*theWrappedObject)- m2); +} + +QMatrix4x4* PythonQtWrapper_QMatrix4x4::__isub__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other) +{ + return &( (*theWrappedObject)-= other); +} + +QMatrix4x4 PythonQtWrapper_QMatrix4x4::__div__(QMatrix4x4* theWrappedObject, float divisor) +{ + return ( (*theWrappedObject)/ divisor); +} + +QMatrix4x4* PythonQtWrapper_QMatrix4x4::__idiv__(QMatrix4x4* theWrappedObject, float divisor) +{ + return &( (*theWrappedObject)/= divisor); +} + +bool PythonQtWrapper_QMatrix4x4::__eq__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other) const +{ + return ( (*theWrappedObject)== other); +} + +void PythonQtWrapper_QMatrix4x4::optimize(QMatrix4x4* theWrappedObject) +{ + ( theWrappedObject->optimize()); +} + +void PythonQtWrapper_QMatrix4x4::ortho(QMatrix4x4* theWrappedObject, const QRect& rect) +{ + ( theWrappedObject->ortho(rect)); +} + +void PythonQtWrapper_QMatrix4x4::ortho(QMatrix4x4* theWrappedObject, const QRectF& rect) +{ + ( theWrappedObject->ortho(rect)); +} + +void PythonQtWrapper_QMatrix4x4::ortho(QMatrix4x4* theWrappedObject, float left, float right, float bottom, float top, float nearPlane, float farPlane) +{ + ( theWrappedObject->ortho(left, right, bottom, top, nearPlane, farPlane)); +} + +void PythonQtWrapper_QMatrix4x4::perspective(QMatrix4x4* theWrappedObject, float verticalAngle, float aspectRatio, float nearPlane, float farPlane) +{ + ( theWrappedObject->perspective(verticalAngle, aspectRatio, nearPlane, farPlane)); +} + +void PythonQtWrapper_QMatrix4x4::rotate(QMatrix4x4* theWrappedObject, const QQuaternion& quaternion) +{ + ( theWrappedObject->rotate(quaternion)); +} + +void PythonQtWrapper_QMatrix4x4::rotate(QMatrix4x4* theWrappedObject, float angle, const QVector3D& vector) +{ + ( theWrappedObject->rotate(angle, vector)); +} + +void PythonQtWrapper_QMatrix4x4::rotate(QMatrix4x4* theWrappedObject, float angle, float x, float y, float z) +{ + ( theWrappedObject->rotate(angle, x, y, z)); +} + +QVector4D PythonQtWrapper_QMatrix4x4::row(QMatrix4x4* theWrappedObject, int index) const +{ + return ( theWrappedObject->row(index)); +} + +void PythonQtWrapper_QMatrix4x4::scale(QMatrix4x4* theWrappedObject, const QVector3D& vector) +{ + ( theWrappedObject->scale(vector)); +} + +void PythonQtWrapper_QMatrix4x4::scale(QMatrix4x4* theWrappedObject, float factor) +{ + ( theWrappedObject->scale(factor)); +} + +void PythonQtWrapper_QMatrix4x4::scale(QMatrix4x4* theWrappedObject, float x, float y) +{ + ( theWrappedObject->scale(x, y)); +} + +void PythonQtWrapper_QMatrix4x4::scale(QMatrix4x4* theWrappedObject, float x, float y, float z) +{ + ( theWrappedObject->scale(x, y, z)); +} + +void PythonQtWrapper_QMatrix4x4::setColumn(QMatrix4x4* theWrappedObject, int index, const QVector4D& value) +{ + ( theWrappedObject->setColumn(index, value)); +} + +void PythonQtWrapper_QMatrix4x4::setRow(QMatrix4x4* theWrappedObject, int index, const QVector4D& value) +{ + ( theWrappedObject->setRow(index, value)); +} + +void PythonQtWrapper_QMatrix4x4::setToIdentity(QMatrix4x4* theWrappedObject) +{ + ( theWrappedObject->setToIdentity()); +} + +QMatrix PythonQtWrapper_QMatrix4x4::toAffine(QMatrix4x4* theWrappedObject) const +{ + return ( theWrappedObject->toAffine()); +} + +QTransform PythonQtWrapper_QMatrix4x4::toTransform(QMatrix4x4* theWrappedObject) const +{ + return ( theWrappedObject->toTransform()); +} + +QTransform PythonQtWrapper_QMatrix4x4::toTransform(QMatrix4x4* theWrappedObject, float distanceToPlane) const +{ + return ( theWrappedObject->toTransform(distanceToPlane)); +} + +void PythonQtWrapper_QMatrix4x4::translate(QMatrix4x4* theWrappedObject, const QVector3D& vector) +{ + ( theWrappedObject->translate(vector)); +} + +void PythonQtWrapper_QMatrix4x4::translate(QMatrix4x4* theWrappedObject, float x, float y) +{ + ( theWrappedObject->translate(x, y)); +} + +void PythonQtWrapper_QMatrix4x4::translate(QMatrix4x4* theWrappedObject, float x, float y, float z) +{ + ( theWrappedObject->translate(x, y, z)); +} + +QMatrix4x4 PythonQtWrapper_QMatrix4x4::transposed(QMatrix4x4* theWrappedObject) const +{ + return ( theWrappedObject->transposed()); +} + +QString PythonQtWrapper_QMatrix4x4::py_toString(QMatrix4x4* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QMdiArea::~PythonQtShell_QMdiArea() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QMdiArea::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::actionEvent(arg__1); +} +void PythonQtShell_QMdiArea::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::changeEvent(arg__1); +} +void PythonQtShell_QMdiArea::childEvent(QChildEvent* childEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&childEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::childEvent(childEvent); +} +void PythonQtShell_QMdiArea::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::closeEvent(arg__1); +} +void PythonQtShell_QMdiArea::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::contextMenuEvent(arg__1); +} +void PythonQtShell_QMdiArea::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::customEvent(arg__1); +} +int PythonQtShell_QMdiArea::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiArea::devType(); +} +void PythonQtShell_QMdiArea::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::dragEnterEvent(arg__1); +} +void PythonQtShell_QMdiArea::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::dragLeaveEvent(arg__1); +} +void PythonQtShell_QMdiArea::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::dragMoveEvent(arg__1); +} +void PythonQtShell_QMdiArea::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::dropEvent(arg__1); +} +void PythonQtShell_QMdiArea::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::enterEvent(arg__1); +} +bool PythonQtShell_QMdiArea::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiArea::event(event); +} +bool PythonQtShell_QMdiArea::eventFilter(QObject* object, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&object, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiArea::eventFilter(object, event); +} +void PythonQtShell_QMdiArea::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::focusInEvent(arg__1); +} +bool PythonQtShell_QMdiArea::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiArea::focusNextPrevChild(next); +} +void PythonQtShell_QMdiArea::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::focusOutEvent(arg__1); +} +bool PythonQtShell_QMdiArea::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiArea::hasHeightForWidth(); +} +int PythonQtShell_QMdiArea::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiArea::heightForWidth(arg__1); +} +void PythonQtShell_QMdiArea::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::hideEvent(arg__1); +} +void PythonQtShell_QMdiArea::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::initPainter(painter); +} +void PythonQtShell_QMdiArea::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QMdiArea::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiArea::inputMethodQuery(arg__1); +} +void PythonQtShell_QMdiArea::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::keyPressEvent(arg__1); +} +void PythonQtShell_QMdiArea::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::keyReleaseEvent(arg__1); +} +void PythonQtShell_QMdiArea::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::leaveEvent(arg__1); +} +int PythonQtShell_QMdiArea::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiArea::metric(arg__1); +} +void PythonQtShell_QMdiArea::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QMdiArea::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::mouseMoveEvent(arg__1); +} +void PythonQtShell_QMdiArea::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::mousePressEvent(arg__1); +} +void PythonQtShell_QMdiArea::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QMdiArea::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::moveEvent(arg__1); +} +bool PythonQtShell_QMdiArea::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiArea::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QMdiArea::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiArea::paintEngine(); +} +void PythonQtShell_QMdiArea::paintEvent(QPaintEvent* paintEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&paintEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::paintEvent(paintEvent); +} +QPaintDevice* PythonQtShell_QMdiArea::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiArea::redirected(offset); +} +void PythonQtShell_QMdiArea::resizeEvent(QResizeEvent* resizeEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&resizeEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::resizeEvent(resizeEvent); +} +void PythonQtShell_QMdiArea::scrollContentsBy(int dx, int dy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&dx, (void*)&dy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::scrollContentsBy(dx, dy); +} +void PythonQtShell_QMdiArea::setupViewport(QWidget* viewport) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&viewport}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::setupViewport(viewport); +} +QPainter* PythonQtShell_QMdiArea::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiArea::sharedPainter(); +} +void PythonQtShell_QMdiArea::showEvent(QShowEvent* showEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&showEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::showEvent(showEvent); +} +void PythonQtShell_QMdiArea::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::tabletEvent(arg__1); +} +void PythonQtShell_QMdiArea::timerEvent(QTimerEvent* timerEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&timerEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::timerEvent(timerEvent); +} +bool PythonQtShell_QMdiArea::viewportEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiArea::viewportEvent(event); +} +QSize PythonQtShell_QMdiArea::viewportSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiArea::viewportSizeHint(); +} +void PythonQtShell_QMdiArea::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiArea::wheelEvent(arg__1); +} +QMdiArea* PythonQtWrapper_QMdiArea::new_QMdiArea(QWidget* parent) +{ +return new PythonQtShell_QMdiArea(parent); } + +QMdiArea::WindowOrder PythonQtWrapper_QMdiArea::activationOrder(QMdiArea* theWrappedObject) const +{ + return ( theWrappedObject->activationOrder()); +} + +QMdiSubWindow* PythonQtWrapper_QMdiArea::activeSubWindow(QMdiArea* theWrappedObject) const +{ + return ( theWrappedObject->activeSubWindow()); +} + +QMdiSubWindow* PythonQtWrapper_QMdiArea::addSubWindow(QMdiArea* theWrappedObject, QWidget* widget, Qt::WindowFlags flags) +{ + return ( theWrappedObject->addSubWindow(widget, flags)); +} + +QBrush PythonQtWrapper_QMdiArea::background(QMdiArea* theWrappedObject) const +{ + return ( theWrappedObject->background()); +} + +void PythonQtWrapper_QMdiArea::childEvent(QMdiArea* theWrappedObject, QChildEvent* childEvent) +{ + ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_childEvent(childEvent)); +} + +QMdiSubWindow* PythonQtWrapper_QMdiArea::currentSubWindow(QMdiArea* theWrappedObject) const +{ + return ( theWrappedObject->currentSubWindow()); +} + +bool PythonQtWrapper_QMdiArea::documentMode(QMdiArea* theWrappedObject) const +{ + return ( theWrappedObject->documentMode()); +} + +bool PythonQtWrapper_QMdiArea::event(QMdiArea* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_event(event)); +} + +bool PythonQtWrapper_QMdiArea::eventFilter(QMdiArea* theWrappedObject, QObject* object, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_eventFilter(object, event)); +} + +QSize PythonQtWrapper_QMdiArea::minimumSizeHint(QMdiArea* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +void PythonQtWrapper_QMdiArea::paintEvent(QMdiArea* theWrappedObject, QPaintEvent* paintEvent) +{ + ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_paintEvent(paintEvent)); +} + +void PythonQtWrapper_QMdiArea::removeSubWindow(QMdiArea* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->removeSubWindow(widget)); +} + +void PythonQtWrapper_QMdiArea::resizeEvent(QMdiArea* theWrappedObject, QResizeEvent* resizeEvent) +{ + ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_resizeEvent(resizeEvent)); +} + +void PythonQtWrapper_QMdiArea::scrollContentsBy(QMdiArea* theWrappedObject, int dx, int dy) +{ + ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); +} + +void PythonQtWrapper_QMdiArea::setActivationOrder(QMdiArea* theWrappedObject, QMdiArea::WindowOrder order) +{ + ( theWrappedObject->setActivationOrder(order)); +} + +void PythonQtWrapper_QMdiArea::setBackground(QMdiArea* theWrappedObject, const QBrush& background) +{ + ( theWrappedObject->setBackground(background)); +} + +void PythonQtWrapper_QMdiArea::setDocumentMode(QMdiArea* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setDocumentMode(enabled)); +} + +void PythonQtWrapper_QMdiArea::setOption(QMdiArea* theWrappedObject, QMdiArea::AreaOption option, bool on) +{ + ( theWrappedObject->setOption(option, on)); +} + +void PythonQtWrapper_QMdiArea::setTabPosition(QMdiArea* theWrappedObject, QTabWidget::TabPosition position) +{ + ( theWrappedObject->setTabPosition(position)); +} + +void PythonQtWrapper_QMdiArea::setTabShape(QMdiArea* theWrappedObject, QTabWidget::TabShape shape) +{ + ( theWrappedObject->setTabShape(shape)); +} + +void PythonQtWrapper_QMdiArea::setTabsClosable(QMdiArea* theWrappedObject, bool closable) +{ + ( theWrappedObject->setTabsClosable(closable)); +} + +void PythonQtWrapper_QMdiArea::setTabsMovable(QMdiArea* theWrappedObject, bool movable) +{ + ( theWrappedObject->setTabsMovable(movable)); +} + +void PythonQtWrapper_QMdiArea::setViewMode(QMdiArea* theWrappedObject, QMdiArea::ViewMode mode) +{ + ( theWrappedObject->setViewMode(mode)); +} + +void PythonQtWrapper_QMdiArea::setupViewport(QMdiArea* theWrappedObject, QWidget* viewport) +{ + ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_setupViewport(viewport)); +} + +void PythonQtWrapper_QMdiArea::showEvent(QMdiArea* theWrappedObject, QShowEvent* showEvent) +{ + ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_showEvent(showEvent)); +} + +QSize PythonQtWrapper_QMdiArea::sizeHint(QMdiArea* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +QList PythonQtWrapper_QMdiArea::subWindowList(QMdiArea* theWrappedObject, QMdiArea::WindowOrder order) const +{ + return ( theWrappedObject->subWindowList(order)); +} + +QTabWidget::TabPosition PythonQtWrapper_QMdiArea::tabPosition(QMdiArea* theWrappedObject) const +{ + return ( theWrappedObject->tabPosition()); +} + +QTabWidget::TabShape PythonQtWrapper_QMdiArea::tabShape(QMdiArea* theWrappedObject) const +{ + return ( theWrappedObject->tabShape()); +} + +bool PythonQtWrapper_QMdiArea::tabsClosable(QMdiArea* theWrappedObject) const +{ + return ( theWrappedObject->tabsClosable()); +} + +bool PythonQtWrapper_QMdiArea::tabsMovable(QMdiArea* theWrappedObject) const +{ + return ( theWrappedObject->tabsMovable()); +} + +bool PythonQtWrapper_QMdiArea::testOption(QMdiArea* theWrappedObject, QMdiArea::AreaOption opton) const +{ + return ( theWrappedObject->testOption(opton)); +} + +void PythonQtWrapper_QMdiArea::timerEvent(QMdiArea* theWrappedObject, QTimerEvent* timerEvent) +{ + ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_timerEvent(timerEvent)); +} + +QMdiArea::ViewMode PythonQtWrapper_QMdiArea::viewMode(QMdiArea* theWrappedObject) const +{ + return ( theWrappedObject->viewMode()); +} + +bool PythonQtWrapper_QMdiArea::viewportEvent(QMdiArea* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_viewportEvent(event)); +} + + + +PythonQtShell_QMdiSubWindow::~PythonQtShell_QMdiSubWindow() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QMdiSubWindow::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::actionEvent(arg__1); +} +void PythonQtShell_QMdiSubWindow::changeEvent(QEvent* changeEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&changeEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::changeEvent(changeEvent); +} +void PythonQtShell_QMdiSubWindow::childEvent(QChildEvent* childEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&childEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::childEvent(childEvent); +} +void PythonQtShell_QMdiSubWindow::closeEvent(QCloseEvent* closeEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&closeEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::closeEvent(closeEvent); +} +void PythonQtShell_QMdiSubWindow::contextMenuEvent(QContextMenuEvent* contextMenuEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&contextMenuEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::contextMenuEvent(contextMenuEvent); +} +void PythonQtShell_QMdiSubWindow::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::customEvent(arg__1); +} +int PythonQtShell_QMdiSubWindow::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiSubWindow::devType(); +} +void PythonQtShell_QMdiSubWindow::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::dragEnterEvent(arg__1); +} +void PythonQtShell_QMdiSubWindow::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::dragLeaveEvent(arg__1); +} +void PythonQtShell_QMdiSubWindow::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::dragMoveEvent(arg__1); +} +void PythonQtShell_QMdiSubWindow::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::dropEvent(arg__1); +} +void PythonQtShell_QMdiSubWindow::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::enterEvent(arg__1); +} +bool PythonQtShell_QMdiSubWindow::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiSubWindow::event(event); +} +bool PythonQtShell_QMdiSubWindow::eventFilter(QObject* object, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&object, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiSubWindow::eventFilter(object, event); +} +void PythonQtShell_QMdiSubWindow::focusInEvent(QFocusEvent* focusInEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&focusInEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::focusInEvent(focusInEvent); +} +bool PythonQtShell_QMdiSubWindow::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiSubWindow::focusNextPrevChild(next); +} +void PythonQtShell_QMdiSubWindow::focusOutEvent(QFocusEvent* focusOutEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&focusOutEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::focusOutEvent(focusOutEvent); +} +bool PythonQtShell_QMdiSubWindow::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiSubWindow::hasHeightForWidth(); +} +int PythonQtShell_QMdiSubWindow::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiSubWindow::heightForWidth(arg__1); +} +void PythonQtShell_QMdiSubWindow::hideEvent(QHideEvent* hideEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&hideEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::hideEvent(hideEvent); +} +void PythonQtShell_QMdiSubWindow::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::initPainter(painter); +} +void PythonQtShell_QMdiSubWindow::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QMdiSubWindow::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiSubWindow::inputMethodQuery(arg__1); +} +void PythonQtShell_QMdiSubWindow::keyPressEvent(QKeyEvent* keyEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&keyEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::keyPressEvent(keyEvent); +} +void PythonQtShell_QMdiSubWindow::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::keyReleaseEvent(arg__1); +} +void PythonQtShell_QMdiSubWindow::leaveEvent(QEvent* leaveEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&leaveEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::leaveEvent(leaveEvent); +} +int PythonQtShell_QMdiSubWindow::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiSubWindow::metric(arg__1); +} +void PythonQtShell_QMdiSubWindow::mouseDoubleClickEvent(QMouseEvent* mouseEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&mouseEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::mouseDoubleClickEvent(mouseEvent); +} +void PythonQtShell_QMdiSubWindow::mouseMoveEvent(QMouseEvent* mouseEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&mouseEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::mouseMoveEvent(mouseEvent); +} +void PythonQtShell_QMdiSubWindow::mousePressEvent(QMouseEvent* mouseEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&mouseEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::mousePressEvent(mouseEvent); +} +void PythonQtShell_QMdiSubWindow::mouseReleaseEvent(QMouseEvent* mouseEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&mouseEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::mouseReleaseEvent(mouseEvent); +} +void PythonQtShell_QMdiSubWindow::moveEvent(QMoveEvent* moveEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&moveEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::moveEvent(moveEvent); +} +bool PythonQtShell_QMdiSubWindow::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiSubWindow::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QMdiSubWindow::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiSubWindow::paintEngine(); +} +void PythonQtShell_QMdiSubWindow::paintEvent(QPaintEvent* paintEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&paintEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::paintEvent(paintEvent); +} +QPaintDevice* PythonQtShell_QMdiSubWindow::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiSubWindow::redirected(offset); +} +void PythonQtShell_QMdiSubWindow::resizeEvent(QResizeEvent* resizeEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&resizeEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::resizeEvent(resizeEvent); +} +QPainter* PythonQtShell_QMdiSubWindow::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMdiSubWindow::sharedPainter(); +} +void PythonQtShell_QMdiSubWindow::showEvent(QShowEvent* showEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&showEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::showEvent(showEvent); +} +void PythonQtShell_QMdiSubWindow::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::tabletEvent(arg__1); +} +void PythonQtShell_QMdiSubWindow::timerEvent(QTimerEvent* timerEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&timerEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::timerEvent(timerEvent); +} +void PythonQtShell_QMdiSubWindow::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMdiSubWindow::wheelEvent(arg__1); +} +QMdiSubWindow* PythonQtWrapper_QMdiSubWindow::new_QMdiSubWindow(QWidget* parent, Qt::WindowFlags flags) +{ +return new PythonQtShell_QMdiSubWindow(parent, flags); } + +void PythonQtWrapper_QMdiSubWindow::changeEvent(QMdiSubWindow* theWrappedObject, QEvent* changeEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_changeEvent(changeEvent)); +} + +void PythonQtWrapper_QMdiSubWindow::childEvent(QMdiSubWindow* theWrappedObject, QChildEvent* childEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_childEvent(childEvent)); +} + +void PythonQtWrapper_QMdiSubWindow::closeEvent(QMdiSubWindow* theWrappedObject, QCloseEvent* closeEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_closeEvent(closeEvent)); +} + +void PythonQtWrapper_QMdiSubWindow::contextMenuEvent(QMdiSubWindow* theWrappedObject, QContextMenuEvent* contextMenuEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_contextMenuEvent(contextMenuEvent)); +} + +bool PythonQtWrapper_QMdiSubWindow::event(QMdiSubWindow* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_event(event)); +} + +bool PythonQtWrapper_QMdiSubWindow::eventFilter(QMdiSubWindow* theWrappedObject, QObject* object, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_eventFilter(object, event)); +} + +void PythonQtWrapper_QMdiSubWindow::focusInEvent(QMdiSubWindow* theWrappedObject, QFocusEvent* focusInEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_focusInEvent(focusInEvent)); +} + +void PythonQtWrapper_QMdiSubWindow::focusOutEvent(QMdiSubWindow* theWrappedObject, QFocusEvent* focusOutEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_focusOutEvent(focusOutEvent)); +} + +void PythonQtWrapper_QMdiSubWindow::hideEvent(QMdiSubWindow* theWrappedObject, QHideEvent* hideEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_hideEvent(hideEvent)); +} + +bool PythonQtWrapper_QMdiSubWindow::isShaded(QMdiSubWindow* theWrappedObject) const +{ + return ( theWrappedObject->isShaded()); +} + +void PythonQtWrapper_QMdiSubWindow::keyPressEvent(QMdiSubWindow* theWrappedObject, QKeyEvent* keyEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_keyPressEvent(keyEvent)); +} + +int PythonQtWrapper_QMdiSubWindow::keyboardPageStep(QMdiSubWindow* theWrappedObject) const +{ + return ( theWrappedObject->keyboardPageStep()); +} + +int PythonQtWrapper_QMdiSubWindow::keyboardSingleStep(QMdiSubWindow* theWrappedObject) const +{ + return ( theWrappedObject->keyboardSingleStep()); +} + +void PythonQtWrapper_QMdiSubWindow::leaveEvent(QMdiSubWindow* theWrappedObject, QEvent* leaveEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_leaveEvent(leaveEvent)); +} + +QWidget* PythonQtWrapper_QMdiSubWindow::maximizedButtonsWidget(QMdiSubWindow* theWrappedObject) const +{ + return ( theWrappedObject->maximizedButtonsWidget()); +} + +QWidget* PythonQtWrapper_QMdiSubWindow::maximizedSystemMenuIconWidget(QMdiSubWindow* theWrappedObject) const +{ + return ( theWrappedObject->maximizedSystemMenuIconWidget()); +} + +QMdiArea* PythonQtWrapper_QMdiSubWindow::mdiArea(QMdiSubWindow* theWrappedObject) const +{ + return ( theWrappedObject->mdiArea()); +} + +QSize PythonQtWrapper_QMdiSubWindow::minimumSizeHint(QMdiSubWindow* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +void PythonQtWrapper_QMdiSubWindow::mouseDoubleClickEvent(QMdiSubWindow* theWrappedObject, QMouseEvent* mouseEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_mouseDoubleClickEvent(mouseEvent)); +} + +void PythonQtWrapper_QMdiSubWindow::mouseMoveEvent(QMdiSubWindow* theWrappedObject, QMouseEvent* mouseEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_mouseMoveEvent(mouseEvent)); +} + +void PythonQtWrapper_QMdiSubWindow::mousePressEvent(QMdiSubWindow* theWrappedObject, QMouseEvent* mouseEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_mousePressEvent(mouseEvent)); +} + +void PythonQtWrapper_QMdiSubWindow::mouseReleaseEvent(QMdiSubWindow* theWrappedObject, QMouseEvent* mouseEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_mouseReleaseEvent(mouseEvent)); +} + +void PythonQtWrapper_QMdiSubWindow::moveEvent(QMdiSubWindow* theWrappedObject, QMoveEvent* moveEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_moveEvent(moveEvent)); +} + +void PythonQtWrapper_QMdiSubWindow::paintEvent(QMdiSubWindow* theWrappedObject, QPaintEvent* paintEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_paintEvent(paintEvent)); +} + +void PythonQtWrapper_QMdiSubWindow::resizeEvent(QMdiSubWindow* theWrappedObject, QResizeEvent* resizeEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_resizeEvent(resizeEvent)); +} + +void PythonQtWrapper_QMdiSubWindow::setKeyboardPageStep(QMdiSubWindow* theWrappedObject, int step) +{ + ( theWrappedObject->setKeyboardPageStep(step)); +} + +void PythonQtWrapper_QMdiSubWindow::setKeyboardSingleStep(QMdiSubWindow* theWrappedObject, int step) +{ + ( theWrappedObject->setKeyboardSingleStep(step)); +} + +void PythonQtWrapper_QMdiSubWindow::setOption(QMdiSubWindow* theWrappedObject, QMdiSubWindow::SubWindowOption option, bool on) +{ + ( theWrappedObject->setOption(option, on)); +} + +void PythonQtWrapper_QMdiSubWindow::setSystemMenu(QMdiSubWindow* theWrappedObject, QMenu* systemMenu) +{ + ( theWrappedObject->setSystemMenu(systemMenu)); +} + +void PythonQtWrapper_QMdiSubWindow::setWidget(QMdiSubWindow* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->setWidget(widget)); +} + +void PythonQtWrapper_QMdiSubWindow::showEvent(QMdiSubWindow* theWrappedObject, QShowEvent* showEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_showEvent(showEvent)); +} + +QSize PythonQtWrapper_QMdiSubWindow::sizeHint(QMdiSubWindow* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +QMenu* PythonQtWrapper_QMdiSubWindow::systemMenu(QMdiSubWindow* theWrappedObject) const +{ + return ( theWrappedObject->systemMenu()); +} + +bool PythonQtWrapper_QMdiSubWindow::testOption(QMdiSubWindow* theWrappedObject, QMdiSubWindow::SubWindowOption arg__1) const +{ + return ( theWrappedObject->testOption(arg__1)); +} + +void PythonQtWrapper_QMdiSubWindow::timerEvent(QMdiSubWindow* theWrappedObject, QTimerEvent* timerEvent) +{ + ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_timerEvent(timerEvent)); +} + +QWidget* PythonQtWrapper_QMdiSubWindow::widget(QMdiSubWindow* theWrappedObject) const +{ + return ( theWrappedObject->widget()); +} + + + +PythonQtShell_QMenu::~PythonQtShell_QMenu() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QMenu::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::actionEvent(arg__1); +} +void PythonQtShell_QMenu::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::changeEvent(arg__1); +} +void PythonQtShell_QMenu::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::childEvent(arg__1); +} +void PythonQtShell_QMenu::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::closeEvent(arg__1); +} +void PythonQtShell_QMenu::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::contextMenuEvent(arg__1); +} +void PythonQtShell_QMenu::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::customEvent(arg__1); +} +int PythonQtShell_QMenu::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenu::devType(); +} +void PythonQtShell_QMenu::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::dragEnterEvent(arg__1); +} +void PythonQtShell_QMenu::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::dragLeaveEvent(arg__1); +} +void PythonQtShell_QMenu::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::dragMoveEvent(arg__1); +} +void PythonQtShell_QMenu::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::dropEvent(arg__1); +} +void PythonQtShell_QMenu::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::enterEvent(arg__1); +} +bool PythonQtShell_QMenu::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenu::event(arg__1); +} +bool PythonQtShell_QMenu::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenu::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QMenu::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::focusInEvent(arg__1); +} +bool PythonQtShell_QMenu::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenu::focusNextPrevChild(next); +} +void PythonQtShell_QMenu::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::focusOutEvent(arg__1); +} +bool PythonQtShell_QMenu::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenu::hasHeightForWidth(); +} +int PythonQtShell_QMenu::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenu::heightForWidth(arg__1); +} +void PythonQtShell_QMenu::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::hideEvent(arg__1); +} +void PythonQtShell_QMenu::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::initPainter(painter); +} +void PythonQtShell_QMenu::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QMenu::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenu::inputMethodQuery(arg__1); +} +void PythonQtShell_QMenu::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::keyPressEvent(arg__1); +} +void PythonQtShell_QMenu::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::keyReleaseEvent(arg__1); +} +void PythonQtShell_QMenu::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::leaveEvent(arg__1); +} +int PythonQtShell_QMenu::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenu::metric(arg__1); +} +QSize PythonQtShell_QMenu::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenu::minimumSizeHint(); +} +void PythonQtShell_QMenu::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QMenu::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::mouseMoveEvent(arg__1); +} +void PythonQtShell_QMenu::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::mousePressEvent(arg__1); +} +void PythonQtShell_QMenu::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QMenu::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::moveEvent(arg__1); +} +bool PythonQtShell_QMenu::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenu::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QMenu::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenu::paintEngine(); +} +void PythonQtShell_QMenu::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QMenu::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenu::redirected(offset); +} +void PythonQtShell_QMenu::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QMenu::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenu::sharedPainter(); +} +void PythonQtShell_QMenu::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::showEvent(arg__1); +} +void PythonQtShell_QMenu::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::tabletEvent(arg__1); +} +void PythonQtShell_QMenu::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::timerEvent(arg__1); +} +void PythonQtShell_QMenu::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenu::wheelEvent(arg__1); +} +QMenu* PythonQtWrapper_QMenu::new_QMenu(QWidget* parent) +{ +return new PythonQtShell_QMenu(parent); } + +QMenu* PythonQtWrapper_QMenu::new_QMenu(const QString& title, QWidget* parent) +{ +return new PythonQtShell_QMenu(title, parent); } + +QAction* PythonQtWrapper_QMenu::actionAt(QMenu* theWrappedObject, const QPoint& arg__1) const +{ + return ( theWrappedObject->actionAt(arg__1)); +} + +void PythonQtWrapper_QMenu::actionEvent(QMenu* theWrappedObject, QActionEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_actionEvent(arg__1)); +} + +QRect PythonQtWrapper_QMenu::actionGeometry(QMenu* theWrappedObject, QAction* arg__1) const +{ + return ( theWrappedObject->actionGeometry(arg__1)); +} + +QAction* PythonQtWrapper_QMenu::activeAction(QMenu* theWrappedObject) const +{ + return ( theWrappedObject->activeAction()); +} + +QAction* PythonQtWrapper_QMenu::addAction(QMenu* theWrappedObject, const QIcon& icon, const QString& text) +{ + return ( theWrappedObject->addAction(icon, text)); +} + +QAction* PythonQtWrapper_QMenu::addAction(QMenu* theWrappedObject, const QIcon& icon, const QString& text, const QObject* receiver, const char* member, const QKeySequence& shortcut) +{ + return ( theWrappedObject->addAction(icon, text, receiver, member, shortcut)); +} + +QAction* PythonQtWrapper_QMenu::addAction(QMenu* theWrappedObject, const QString& text) +{ + return ( theWrappedObject->addAction(text)); +} + +QAction* PythonQtWrapper_QMenu::addAction(QMenu* theWrappedObject, const QString& text, const QObject* receiver, const char* member, const QKeySequence& shortcut) +{ + return ( theWrappedObject->addAction(text, receiver, member, shortcut)); +} + +QAction* PythonQtWrapper_QMenu::addMenu(QMenu* theWrappedObject, QMenu* menu) +{ + return ( theWrappedObject->addMenu(menu)); +} + +QMenu* PythonQtWrapper_QMenu::addMenu(QMenu* theWrappedObject, const QIcon& icon, const QString& title) +{ + return ( theWrappedObject->addMenu(icon, title)); +} + +QMenu* PythonQtWrapper_QMenu::addMenu(QMenu* theWrappedObject, const QString& title) +{ + return ( theWrappedObject->addMenu(title)); +} + +QAction* PythonQtWrapper_QMenu::addSeparator(QMenu* theWrappedObject) +{ + return ( theWrappedObject->addSeparator()); +} + +void PythonQtWrapper_QMenu::changeEvent(QMenu* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_changeEvent(arg__1)); +} + +void PythonQtWrapper_QMenu::clear(QMenu* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +QAction* PythonQtWrapper_QMenu::defaultAction(QMenu* theWrappedObject) const +{ + return ( theWrappedObject->defaultAction()); +} + +void PythonQtWrapper_QMenu::enterEvent(QMenu* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_enterEvent(arg__1)); +} + +bool PythonQtWrapper_QMenu::event(QMenu* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_event(arg__1)); +} + +QAction* PythonQtWrapper_QMenu::exec(QMenu* theWrappedObject) +{ + return ( theWrappedObject->exec()); +} + +QAction* PythonQtWrapper_QMenu::static_QMenu_exec(QList actions, const QPoint& pos, QAction* at, QWidget* parent) +{ + return (QMenu::exec(actions, pos, at, parent)); +} + +QAction* PythonQtWrapper_QMenu::exec(QMenu* theWrappedObject, const QPoint& pos, QAction* at) +{ + return ( theWrappedObject->exec(pos, at)); +} + +bool PythonQtWrapper_QMenu::focusNextPrevChild(QMenu* theWrappedObject, bool next) +{ + return ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_focusNextPrevChild(next)); +} + +void PythonQtWrapper_QMenu::hideEvent(QMenu* theWrappedObject, QHideEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_hideEvent(arg__1)); +} + +void PythonQtWrapper_QMenu::hideTearOffMenu(QMenu* theWrappedObject) +{ + ( theWrappedObject->hideTearOffMenu()); +} + +QIcon PythonQtWrapper_QMenu::icon(QMenu* theWrappedObject) const +{ + return ( theWrappedObject->icon()); +} + +QAction* PythonQtWrapper_QMenu::insertMenu(QMenu* theWrappedObject, QAction* before, QMenu* menu) +{ + return ( theWrappedObject->insertMenu(before, menu)); +} + +QAction* PythonQtWrapper_QMenu::insertSeparator(QMenu* theWrappedObject, QAction* before) +{ + return ( theWrappedObject->insertSeparator(before)); +} + +bool PythonQtWrapper_QMenu::isEmpty(QMenu* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +bool PythonQtWrapper_QMenu::isTearOffEnabled(QMenu* theWrappedObject) const +{ + return ( theWrappedObject->isTearOffEnabled()); +} + +bool PythonQtWrapper_QMenu::isTearOffMenuVisible(QMenu* theWrappedObject) const +{ + return ( theWrappedObject->isTearOffMenuVisible()); +} + +void PythonQtWrapper_QMenu::keyPressEvent(QMenu* theWrappedObject, QKeyEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_keyPressEvent(arg__1)); +} + +void PythonQtWrapper_QMenu::leaveEvent(QMenu* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_leaveEvent(arg__1)); +} + +QAction* PythonQtWrapper_QMenu::menuAction(QMenu* theWrappedObject) const +{ + return ( theWrappedObject->menuAction()); +} + +void PythonQtWrapper_QMenu::mouseMoveEvent(QMenu* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); +} + +void PythonQtWrapper_QMenu::mousePressEvent(QMenu* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_mousePressEvent(arg__1)); +} + +void PythonQtWrapper_QMenu::mouseReleaseEvent(QMenu* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); +} + +void PythonQtWrapper_QMenu::paintEvent(QMenu* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +void PythonQtWrapper_QMenu::popup(QMenu* theWrappedObject, const QPoint& pos, QAction* at) +{ + ( theWrappedObject->popup(pos, at)); +} + +bool PythonQtWrapper_QMenu::separatorsCollapsible(QMenu* theWrappedObject) const +{ + return ( theWrappedObject->separatorsCollapsible()); +} + +void PythonQtWrapper_QMenu::setActiveAction(QMenu* theWrappedObject, QAction* act) +{ + ( theWrappedObject->setActiveAction(act)); +} + +void PythonQtWrapper_QMenu::setDefaultAction(QMenu* theWrappedObject, QAction* arg__1) +{ + ( theWrappedObject->setDefaultAction(arg__1)); +} + +void PythonQtWrapper_QMenu::setIcon(QMenu* theWrappedObject, const QIcon& icon) +{ + ( theWrappedObject->setIcon(icon)); +} + +void PythonQtWrapper_QMenu::setSeparatorsCollapsible(QMenu* theWrappedObject, bool collapse) +{ + ( theWrappedObject->setSeparatorsCollapsible(collapse)); +} + +void PythonQtWrapper_QMenu::setTearOffEnabled(QMenu* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setTearOffEnabled(arg__1)); +} + +void PythonQtWrapper_QMenu::setTitle(QMenu* theWrappedObject, const QString& title) +{ + ( theWrappedObject->setTitle(title)); +} + +QSize PythonQtWrapper_QMenu::sizeHint(QMenu* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +void PythonQtWrapper_QMenu::timerEvent(QMenu* theWrappedObject, QTimerEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_timerEvent(arg__1)); +} + +QString PythonQtWrapper_QMenu::title(QMenu* theWrappedObject) const +{ + return ( theWrappedObject->title()); +} + +void PythonQtWrapper_QMenu::wheelEvent(QMenu* theWrappedObject, QWheelEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_wheelEvent(arg__1)); +} + + + +PythonQtShell_QMenuBar::~PythonQtShell_QMenuBar() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QMenuBar::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::actionEvent(arg__1); +} +void PythonQtShell_QMenuBar::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::changeEvent(arg__1); +} +void PythonQtShell_QMenuBar::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::childEvent(arg__1); +} +void PythonQtShell_QMenuBar::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::closeEvent(arg__1); +} +void PythonQtShell_QMenuBar::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::contextMenuEvent(arg__1); +} +void PythonQtShell_QMenuBar::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::customEvent(arg__1); +} +int PythonQtShell_QMenuBar::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenuBar::devType(); +} +void PythonQtShell_QMenuBar::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::dragEnterEvent(arg__1); +} +void PythonQtShell_QMenuBar::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::dragLeaveEvent(arg__1); +} +void PythonQtShell_QMenuBar::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::dragMoveEvent(arg__1); +} +void PythonQtShell_QMenuBar::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::dropEvent(arg__1); +} +void PythonQtShell_QMenuBar::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::enterEvent(arg__1); +} +bool PythonQtShell_QMenuBar::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenuBar::event(arg__1); +} +bool PythonQtShell_QMenuBar::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenuBar::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QMenuBar::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::focusInEvent(arg__1); +} +bool PythonQtShell_QMenuBar::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenuBar::focusNextPrevChild(next); +} +void PythonQtShell_QMenuBar::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::focusOutEvent(arg__1); +} +bool PythonQtShell_QMenuBar::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenuBar::hasHeightForWidth(); +} +int PythonQtShell_QMenuBar::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenuBar::heightForWidth(arg__1); +} +void PythonQtShell_QMenuBar::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::hideEvent(arg__1); +} +void PythonQtShell_QMenuBar::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::initPainter(painter); +} +void PythonQtShell_QMenuBar::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QMenuBar::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenuBar::inputMethodQuery(arg__1); +} +void PythonQtShell_QMenuBar::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::keyPressEvent(arg__1); +} +void PythonQtShell_QMenuBar::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::keyReleaseEvent(arg__1); +} +void PythonQtShell_QMenuBar::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::leaveEvent(arg__1); +} +int PythonQtShell_QMenuBar::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenuBar::metric(arg__1); +} +void PythonQtShell_QMenuBar::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QMenuBar::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::mouseMoveEvent(arg__1); +} +void PythonQtShell_QMenuBar::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::mousePressEvent(arg__1); +} +void PythonQtShell_QMenuBar::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QMenuBar::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::moveEvent(arg__1); +} +bool PythonQtShell_QMenuBar::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenuBar::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QMenuBar::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenuBar::paintEngine(); +} +void PythonQtShell_QMenuBar::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QMenuBar::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenuBar::redirected(offset); +} +void PythonQtShell_QMenuBar::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::resizeEvent(arg__1); +} +void PythonQtShell_QMenuBar::setVisible(bool visible) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setVisible"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&visible}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::setVisible(visible); +} +QPainter* PythonQtShell_QMenuBar::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMenuBar::sharedPainter(); +} +void PythonQtShell_QMenuBar::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::showEvent(arg__1); +} +void PythonQtShell_QMenuBar::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::tabletEvent(arg__1); +} +void PythonQtShell_QMenuBar::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::timerEvent(arg__1); +} +void PythonQtShell_QMenuBar::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMenuBar::wheelEvent(arg__1); +} +QMenuBar* PythonQtWrapper_QMenuBar::new_QMenuBar(QWidget* parent) +{ +return new PythonQtShell_QMenuBar(parent); } + +QAction* PythonQtWrapper_QMenuBar::actionAt(QMenuBar* theWrappedObject, const QPoint& arg__1) const +{ + return ( theWrappedObject->actionAt(arg__1)); +} + +void PythonQtWrapper_QMenuBar::actionEvent(QMenuBar* theWrappedObject, QActionEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_actionEvent(arg__1)); +} + +QRect PythonQtWrapper_QMenuBar::actionGeometry(QMenuBar* theWrappedObject, QAction* arg__1) const +{ + return ( theWrappedObject->actionGeometry(arg__1)); +} + +QAction* PythonQtWrapper_QMenuBar::activeAction(QMenuBar* theWrappedObject) const +{ + return ( theWrappedObject->activeAction()); +} + +QAction* PythonQtWrapper_QMenuBar::addAction(QMenuBar* theWrappedObject, const QString& text) +{ + return ( theWrappedObject->addAction(text)); +} + +QAction* PythonQtWrapper_QMenuBar::addMenu(QMenuBar* theWrappedObject, QMenu* menu) +{ + return ( theWrappedObject->addMenu(menu)); +} + +QMenu* PythonQtWrapper_QMenuBar::addMenu(QMenuBar* theWrappedObject, const QIcon& icon, const QString& title) +{ + return ( theWrappedObject->addMenu(icon, title)); +} + +QMenu* PythonQtWrapper_QMenuBar::addMenu(QMenuBar* theWrappedObject, const QString& title) +{ + return ( theWrappedObject->addMenu(title)); +} + +QAction* PythonQtWrapper_QMenuBar::addSeparator(QMenuBar* theWrappedObject) +{ + return ( theWrappedObject->addSeparator()); +} + +void PythonQtWrapper_QMenuBar::changeEvent(QMenuBar* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_changeEvent(arg__1)); +} + +void PythonQtWrapper_QMenuBar::clear(QMenuBar* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +QWidget* PythonQtWrapper_QMenuBar::cornerWidget(QMenuBar* theWrappedObject, Qt::Corner corner) const +{ + return ( theWrappedObject->cornerWidget(corner)); +} + +bool PythonQtWrapper_QMenuBar::event(QMenuBar* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_event(arg__1)); +} + +bool PythonQtWrapper_QMenuBar::eventFilter(QMenuBar* theWrappedObject, QObject* arg__1, QEvent* arg__2) +{ + return ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_eventFilter(arg__1, arg__2)); +} + +void PythonQtWrapper_QMenuBar::focusInEvent(QMenuBar* theWrappedObject, QFocusEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_focusInEvent(arg__1)); +} + +void PythonQtWrapper_QMenuBar::focusOutEvent(QMenuBar* theWrappedObject, QFocusEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_focusOutEvent(arg__1)); +} + +int PythonQtWrapper_QMenuBar::heightForWidth(QMenuBar* theWrappedObject, int arg__1) const +{ + return ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_heightForWidth(arg__1)); +} + +QAction* PythonQtWrapper_QMenuBar::insertMenu(QMenuBar* theWrappedObject, QAction* before, QMenu* menu) +{ + return ( theWrappedObject->insertMenu(before, menu)); +} + +QAction* PythonQtWrapper_QMenuBar::insertSeparator(QMenuBar* theWrappedObject, QAction* before) +{ + return ( theWrappedObject->insertSeparator(before)); +} + +bool PythonQtWrapper_QMenuBar::isDefaultUp(QMenuBar* theWrappedObject) const +{ + return ( theWrappedObject->isDefaultUp()); +} + +bool PythonQtWrapper_QMenuBar::isNativeMenuBar(QMenuBar* theWrappedObject) const +{ + return ( theWrappedObject->isNativeMenuBar()); +} + +void PythonQtWrapper_QMenuBar::keyPressEvent(QMenuBar* theWrappedObject, QKeyEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_keyPressEvent(arg__1)); +} + +void PythonQtWrapper_QMenuBar::leaveEvent(QMenuBar* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_leaveEvent(arg__1)); +} + +QSize PythonQtWrapper_QMenuBar::minimumSizeHint(QMenuBar* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +void PythonQtWrapper_QMenuBar::mouseMoveEvent(QMenuBar* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); +} + +void PythonQtWrapper_QMenuBar::mousePressEvent(QMenuBar* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_mousePressEvent(arg__1)); +} + +void PythonQtWrapper_QMenuBar::mouseReleaseEvent(QMenuBar* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); +} + +void PythonQtWrapper_QMenuBar::paintEvent(QMenuBar* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +void PythonQtWrapper_QMenuBar::resizeEvent(QMenuBar* theWrappedObject, QResizeEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_resizeEvent(arg__1)); +} + +void PythonQtWrapper_QMenuBar::setActiveAction(QMenuBar* theWrappedObject, QAction* action) +{ + ( theWrappedObject->setActiveAction(action)); +} + +void PythonQtWrapper_QMenuBar::setCornerWidget(QMenuBar* theWrappedObject, QWidget* w, Qt::Corner corner) +{ + ( theWrappedObject->setCornerWidget(w, corner)); +} + +void PythonQtWrapper_QMenuBar::setDefaultUp(QMenuBar* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setDefaultUp(arg__1)); +} + +void PythonQtWrapper_QMenuBar::setNativeMenuBar(QMenuBar* theWrappedObject, bool nativeMenuBar) +{ + ( theWrappedObject->setNativeMenuBar(nativeMenuBar)); +} + +void PythonQtWrapper_QMenuBar::setVisible(QMenuBar* theWrappedObject, bool visible) +{ + ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_setVisible(visible)); +} + +QSize PythonQtWrapper_QMenuBar::sizeHint(QMenuBar* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +void PythonQtWrapper_QMenuBar::timerEvent(QMenuBar* theWrappedObject, QTimerEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_timerEvent(arg__1)); +} + + + +PythonQtShell_QMessageBox::~PythonQtShell_QMessageBox() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QMessageBox::accept() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::accept(); +} +void PythonQtShell_QMessageBox::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::actionEvent(arg__1); +} +void PythonQtShell_QMessageBox::changeEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::changeEvent(event); +} +void PythonQtShell_QMessageBox::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::childEvent(arg__1); +} +void PythonQtShell_QMessageBox::closeEvent(QCloseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::closeEvent(event); +} +void PythonQtShell_QMessageBox::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::contextMenuEvent(arg__1); +} +void PythonQtShell_QMessageBox::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::customEvent(arg__1); +} +int PythonQtShell_QMessageBox::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMessageBox::devType(); +} +void PythonQtShell_QMessageBox::done(int arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::done(arg__1); +} +void PythonQtShell_QMessageBox::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::dragEnterEvent(arg__1); +} +void PythonQtShell_QMessageBox::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::dragLeaveEvent(arg__1); +} +void PythonQtShell_QMessageBox::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::dragMoveEvent(arg__1); +} +void PythonQtShell_QMessageBox::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::dropEvent(arg__1); +} +void PythonQtShell_QMessageBox::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::enterEvent(arg__1); +} +bool PythonQtShell_QMessageBox::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMessageBox::event(e); +} +bool PythonQtShell_QMessageBox::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMessageBox::eventFilter(arg__1, arg__2); +} +int PythonQtShell_QMessageBox::exec() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMessageBox::exec(); +} +void PythonQtShell_QMessageBox::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::focusInEvent(arg__1); +} +bool PythonQtShell_QMessageBox::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMessageBox::focusNextPrevChild(next); +} +void PythonQtShell_QMessageBox::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::focusOutEvent(arg__1); +} +bool PythonQtShell_QMessageBox::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMessageBox::hasHeightForWidth(); +} +int PythonQtShell_QMessageBox::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMessageBox::heightForWidth(arg__1); +} +void PythonQtShell_QMessageBox::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::hideEvent(arg__1); +} +void PythonQtShell_QMessageBox::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::initPainter(painter); +} +void PythonQtShell_QMessageBox::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QMessageBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMessageBox::inputMethodQuery(arg__1); +} +void PythonQtShell_QMessageBox::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::keyPressEvent(event); +} +void PythonQtShell_QMessageBox::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::keyReleaseEvent(arg__1); +} +void PythonQtShell_QMessageBox::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::leaveEvent(arg__1); +} +int PythonQtShell_QMessageBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMessageBox::metric(arg__1); +} +void PythonQtShell_QMessageBox::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QMessageBox::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::mouseMoveEvent(arg__1); +} +void PythonQtShell_QMessageBox::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::mousePressEvent(arg__1); +} +void PythonQtShell_QMessageBox::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QMessageBox::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::moveEvent(arg__1); +} +bool PythonQtShell_QMessageBox::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMessageBox::nativeEvent(eventType, message, result); +} +void PythonQtShell_QMessageBox::open() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::open(); +} +QPaintEngine* PythonQtShell_QMessageBox::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMessageBox::paintEngine(); +} +void PythonQtShell_QMessageBox::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QMessageBox::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMessageBox::redirected(offset); +} +void PythonQtShell_QMessageBox::reject() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::reject(); +} +void PythonQtShell_QMessageBox::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::resizeEvent(event); +} +QPainter* PythonQtShell_QMessageBox::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMessageBox::sharedPainter(); +} +void PythonQtShell_QMessageBox::showEvent(QShowEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::showEvent(event); +} +void PythonQtShell_QMessageBox::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::tabletEvent(arg__1); +} +void PythonQtShell_QMessageBox::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::timerEvent(arg__1); +} +void PythonQtShell_QMessageBox::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMessageBox::wheelEvent(arg__1); +} +QMessageBox* PythonQtWrapper_QMessageBox::new_QMessageBox(QMessageBox::Icon icon, const QString& title, const QString& text, QMessageBox::StandardButtons buttons, QWidget* parent, Qt::WindowFlags flags) +{ +return new PythonQtShell_QMessageBox(icon, title, text, buttons, parent, flags); } + +QMessageBox* PythonQtWrapper_QMessageBox::new_QMessageBox(QWidget* parent) +{ +return new PythonQtShell_QMessageBox(parent); } + +void PythonQtWrapper_QMessageBox::static_QMessageBox_about(QWidget* parent, const QString& title, const QString& text) +{ + (QMessageBox::about(parent, title, text)); +} + +void PythonQtWrapper_QMessageBox::static_QMessageBox_aboutQt(QWidget* parent, const QString& title) +{ + (QMessageBox::aboutQt(parent, title)); +} + +void PythonQtWrapper_QMessageBox::addButton(QMessageBox* theWrappedObject, QAbstractButton* button, QMessageBox::ButtonRole role) +{ + ( theWrappedObject->addButton(button, role)); +} + +QPushButton* PythonQtWrapper_QMessageBox::addButton(QMessageBox* theWrappedObject, QMessageBox::StandardButton button) +{ + return ( theWrappedObject->addButton(button)); +} + +QPushButton* PythonQtWrapper_QMessageBox::addButton(QMessageBox* theWrappedObject, const QString& text, QMessageBox::ButtonRole role) +{ + return ( theWrappedObject->addButton(text, role)); +} + +QAbstractButton* PythonQtWrapper_QMessageBox::button(QMessageBox* theWrappedObject, QMessageBox::StandardButton which) const +{ + return ( theWrappedObject->button(which)); +} + +QMessageBox::ButtonRole PythonQtWrapper_QMessageBox::buttonRole(QMessageBox* theWrappedObject, QAbstractButton* button) const +{ + return ( theWrappedObject->buttonRole(button)); +} + +QList PythonQtWrapper_QMessageBox::buttons(QMessageBox* theWrappedObject) const +{ + return ( theWrappedObject->buttons()); +} + +void PythonQtWrapper_QMessageBox::changeEvent(QMessageBox* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QMessageBox*)theWrappedObject)->promoted_changeEvent(event)); +} + +QAbstractButton* PythonQtWrapper_QMessageBox::clickedButton(QMessageBox* theWrappedObject) const +{ + return ( theWrappedObject->clickedButton()); +} + +void PythonQtWrapper_QMessageBox::closeEvent(QMessageBox* theWrappedObject, QCloseEvent* event) +{ + ( ((PythonQtPublicPromoter_QMessageBox*)theWrappedObject)->promoted_closeEvent(event)); +} + +QMessageBox::StandardButton PythonQtWrapper_QMessageBox::static_QMessageBox_critical(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) +{ + return (QMessageBox::critical(parent, title, text, buttons, defaultButton)); +} + +int PythonQtWrapper_QMessageBox::static_QMessageBox_critical(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1) +{ + return (QMessageBox::critical(parent, title, text, button0, button1)); +} + +QPushButton* PythonQtWrapper_QMessageBox::defaultButton(QMessageBox* theWrappedObject) const +{ + return ( theWrappedObject->defaultButton()); +} + +QString PythonQtWrapper_QMessageBox::detailedText(QMessageBox* theWrappedObject) const +{ + return ( theWrappedObject->detailedText()); +} + +QAbstractButton* PythonQtWrapper_QMessageBox::escapeButton(QMessageBox* theWrappedObject) const +{ + return ( theWrappedObject->escapeButton()); +} + +bool PythonQtWrapper_QMessageBox::event(QMessageBox* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QMessageBox*)theWrappedObject)->promoted_event(e)); +} + +QMessageBox::Icon PythonQtWrapper_QMessageBox::icon(QMessageBox* theWrappedObject) const +{ + return ( theWrappedObject->icon()); +} + +QPixmap PythonQtWrapper_QMessageBox::iconPixmap(QMessageBox* theWrappedObject) const +{ + return ( theWrappedObject->iconPixmap()); +} + +QMessageBox::StandardButton PythonQtWrapper_QMessageBox::static_QMessageBox_information(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) +{ + return (QMessageBox::information(parent, title, text, buttons, defaultButton)); +} + +QMessageBox::StandardButton PythonQtWrapper_QMessageBox::static_QMessageBox_information(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1) +{ + return (QMessageBox::information(parent, title, text, button0, button1)); +} + +QString PythonQtWrapper_QMessageBox::informativeText(QMessageBox* theWrappedObject) const +{ + return ( theWrappedObject->informativeText()); +} + +void PythonQtWrapper_QMessageBox::keyPressEvent(QMessageBox* theWrappedObject, QKeyEvent* event) +{ + ( ((PythonQtPublicPromoter_QMessageBox*)theWrappedObject)->promoted_keyPressEvent(event)); +} + +void PythonQtWrapper_QMessageBox::open(QMessageBox* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QMessageBox*)theWrappedObject)->promoted_open()); +} + +void PythonQtWrapper_QMessageBox::open(QMessageBox* theWrappedObject, QObject* receiver, const char* member) +{ + ( theWrappedObject->open(receiver, member)); +} + +QMessageBox::StandardButton PythonQtWrapper_QMessageBox::static_QMessageBox_question(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) +{ + return (QMessageBox::question(parent, title, text, buttons, defaultButton)); +} + +int PythonQtWrapper_QMessageBox::static_QMessageBox_question(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1) +{ + return (QMessageBox::question(parent, title, text, button0, button1)); +} + +void PythonQtWrapper_QMessageBox::removeButton(QMessageBox* theWrappedObject, QAbstractButton* button) +{ + ( theWrappedObject->removeButton(button)); +} + +void PythonQtWrapper_QMessageBox::resizeEvent(QMessageBox* theWrappedObject, QResizeEvent* event) +{ + ( ((PythonQtPublicPromoter_QMessageBox*)theWrappedObject)->promoted_resizeEvent(event)); +} + +void PythonQtWrapper_QMessageBox::setDefaultButton(QMessageBox* theWrappedObject, QMessageBox::StandardButton button) +{ + ( theWrappedObject->setDefaultButton(button)); +} + +void PythonQtWrapper_QMessageBox::setDefaultButton(QMessageBox* theWrappedObject, QPushButton* button) +{ + ( theWrappedObject->setDefaultButton(button)); +} + +void PythonQtWrapper_QMessageBox::setDetailedText(QMessageBox* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setDetailedText(text)); +} + +void PythonQtWrapper_QMessageBox::setEscapeButton(QMessageBox* theWrappedObject, QAbstractButton* button) +{ + ( theWrappedObject->setEscapeButton(button)); +} + +void PythonQtWrapper_QMessageBox::setEscapeButton(QMessageBox* theWrappedObject, QMessageBox::StandardButton button) +{ + ( theWrappedObject->setEscapeButton(button)); +} + +void PythonQtWrapper_QMessageBox::setIcon(QMessageBox* theWrappedObject, QMessageBox::Icon arg__1) +{ + ( theWrappedObject->setIcon(arg__1)); +} + +void PythonQtWrapper_QMessageBox::setIconPixmap(QMessageBox* theWrappedObject, const QPixmap& pixmap) +{ + ( theWrappedObject->setIconPixmap(pixmap)); +} + +void PythonQtWrapper_QMessageBox::setInformativeText(QMessageBox* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setInformativeText(text)); +} + +void PythonQtWrapper_QMessageBox::setStandardButtons(QMessageBox* theWrappedObject, QMessageBox::StandardButtons buttons) +{ + ( theWrappedObject->setStandardButtons(buttons)); +} + +void PythonQtWrapper_QMessageBox::setText(QMessageBox* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setText(text)); +} + +void PythonQtWrapper_QMessageBox::setTextFormat(QMessageBox* theWrappedObject, Qt::TextFormat format) +{ + ( theWrappedObject->setTextFormat(format)); +} + +void PythonQtWrapper_QMessageBox::showEvent(QMessageBox* theWrappedObject, QShowEvent* event) +{ + ( ((PythonQtPublicPromoter_QMessageBox*)theWrappedObject)->promoted_showEvent(event)); +} + +QMessageBox::StandardButton PythonQtWrapper_QMessageBox::standardButton(QMessageBox* theWrappedObject, QAbstractButton* button) const +{ + return ( theWrappedObject->standardButton(button)); +} + +QMessageBox::StandardButtons PythonQtWrapper_QMessageBox::standardButtons(QMessageBox* theWrappedObject) const +{ + return ( theWrappedObject->standardButtons()); +} + +QString PythonQtWrapper_QMessageBox::text(QMessageBox* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + +Qt::TextFormat PythonQtWrapper_QMessageBox::textFormat(QMessageBox* theWrappedObject) const +{ + return ( theWrappedObject->textFormat()); +} + +QMessageBox::StandardButton PythonQtWrapper_QMessageBox::static_QMessageBox_warning(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) +{ + return (QMessageBox::warning(parent, title, text, buttons, defaultButton)); +} + +int PythonQtWrapper_QMessageBox::static_QMessageBox_warning(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1) +{ + return (QMessageBox::warning(parent, title, text, button0, button1)); +} + +#endif + +PythonQtShell_QMouseEvent::~PythonQtShell_QMouseEvent() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QMouseEvent* PythonQtWrapper_QMouseEvent::new_QMouseEvent(QEvent::Type type, const QPointF& localPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) +{ +return new PythonQtShell_QMouseEvent(type, localPos, button, buttons, modifiers); } + +QMouseEvent* PythonQtWrapper_QMouseEvent::new_QMouseEvent(QEvent::Type type, const QPointF& localPos, const QPointF& screenPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) +{ +return new PythonQtShell_QMouseEvent(type, localPos, screenPos, button, buttons, modifiers); } + +QMouseEvent* PythonQtWrapper_QMouseEvent::new_QMouseEvent(QEvent::Type type, const QPointF& localPos, const QPointF& windowPos, const QPointF& screenPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) +{ +return new PythonQtShell_QMouseEvent(type, localPos, windowPos, screenPos, button, buttons, modifiers); } + +Qt::MouseButton PythonQtWrapper_QMouseEvent::button(QMouseEvent* theWrappedObject) const +{ + return ( theWrappedObject->button()); +} + +Qt::MouseButtons PythonQtWrapper_QMouseEvent::buttons(QMouseEvent* theWrappedObject) const +{ + return ( theWrappedObject->buttons()); +} + +QPoint PythonQtWrapper_QMouseEvent::globalPos(QMouseEvent* theWrappedObject) const +{ + return ( theWrappedObject->globalPos()); +} + +int PythonQtWrapper_QMouseEvent::globalX(QMouseEvent* theWrappedObject) const +{ + return ( theWrappedObject->globalX()); +} + +int PythonQtWrapper_QMouseEvent::globalY(QMouseEvent* theWrappedObject) const +{ + return ( theWrappedObject->globalY()); +} + +const QPointF* PythonQtWrapper_QMouseEvent::localPos(QMouseEvent* theWrappedObject) const +{ + return &( theWrappedObject->localPos()); +} + +QPoint PythonQtWrapper_QMouseEvent::pos(QMouseEvent* theWrappedObject) const +{ + return ( theWrappedObject->pos()); +} + +const QPointF* PythonQtWrapper_QMouseEvent::screenPos(QMouseEvent* theWrappedObject) const +{ + return &( theWrappedObject->screenPos()); +} + +const QPointF* PythonQtWrapper_QMouseEvent::windowPos(QMouseEvent* theWrappedObject) const +{ + return &( theWrappedObject->windowPos()); +} + +int PythonQtWrapper_QMouseEvent::x(QMouseEvent* theWrappedObject) const +{ + return ( theWrappedObject->x()); +} + +int PythonQtWrapper_QMouseEvent::y(QMouseEvent* theWrappedObject) const +{ + return ( theWrappedObject->y()); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QMouseEventTransition::~PythonQtShell_QMouseEventTransition() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QMouseEventTransition::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMouseEventTransition::childEvent(arg__1); +} +void PythonQtShell_QMouseEventTransition::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMouseEventTransition::customEvent(arg__1); +} +bool PythonQtShell_QMouseEventTransition::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMouseEventTransition::event(e); +} +bool PythonQtShell_QMouseEventTransition::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMouseEventTransition::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QMouseEventTransition::eventTest(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventTest"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventTest", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMouseEventTransition::eventTest(event); +} +void PythonQtShell_QMouseEventTransition::onTransition(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onTransition"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMouseEventTransition::onTransition(event); +} +void PythonQtShell_QMouseEventTransition::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMouseEventTransition::timerEvent(arg__1); +} +QMouseEventTransition* PythonQtWrapper_QMouseEventTransition::new_QMouseEventTransition(QObject* object, QEvent::Type type, Qt::MouseButton button, QState* sourceState) +{ +return new PythonQtShell_QMouseEventTransition(object, type, button, sourceState); } + +QMouseEventTransition* PythonQtWrapper_QMouseEventTransition::new_QMouseEventTransition(QState* sourceState) +{ +return new PythonQtShell_QMouseEventTransition(sourceState); } + +Qt::MouseButton PythonQtWrapper_QMouseEventTransition::button(QMouseEventTransition* theWrappedObject) const +{ + return ( theWrappedObject->button()); +} + +bool PythonQtWrapper_QMouseEventTransition::eventTest(QMouseEventTransition* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QMouseEventTransition*)theWrappedObject)->promoted_eventTest(event)); +} + +QPainterPath PythonQtWrapper_QMouseEventTransition::hitTestPath(QMouseEventTransition* theWrappedObject) const +{ + return ( theWrappedObject->hitTestPath()); +} + +Qt::KeyboardModifiers PythonQtWrapper_QMouseEventTransition::modifierMask(QMouseEventTransition* theWrappedObject) const +{ + return ( theWrappedObject->modifierMask()); +} + +void PythonQtWrapper_QMouseEventTransition::onTransition(QMouseEventTransition* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QMouseEventTransition*)theWrappedObject)->promoted_onTransition(event)); +} + +void PythonQtWrapper_QMouseEventTransition::setButton(QMouseEventTransition* theWrappedObject, Qt::MouseButton button) +{ + ( theWrappedObject->setButton(button)); +} + +void PythonQtWrapper_QMouseEventTransition::setHitTestPath(QMouseEventTransition* theWrappedObject, const QPainterPath& path) +{ + ( theWrappedObject->setHitTestPath(path)); +} + +void PythonQtWrapper_QMouseEventTransition::setModifierMask(QMouseEventTransition* theWrappedObject, Qt::KeyboardModifiers modifiers) +{ + ( theWrappedObject->setModifierMask(modifiers)); +} + +#endif + +PythonQtShell_QMoveEvent::~PythonQtShell_QMoveEvent() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QMoveEvent* PythonQtWrapper_QMoveEvent::new_QMoveEvent(const QPoint& pos, const QPoint& oldPos) +{ +return new PythonQtShell_QMoveEvent(pos, oldPos); } + +const QPoint* PythonQtWrapper_QMoveEvent::oldPos(QMoveEvent* theWrappedObject) const +{ + return &( theWrappedObject->oldPos()); +} + +const QPoint* PythonQtWrapper_QMoveEvent::pos(QMoveEvent* theWrappedObject) const +{ + return &( theWrappedObject->pos()); +} + + + +PythonQtShell_QMovie::~PythonQtShell_QMovie() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QMovie::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMovie::childEvent(arg__1); +} +void PythonQtShell_QMovie::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMovie::customEvent(arg__1); +} +bool PythonQtShell_QMovie::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMovie::event(arg__1); +} +bool PythonQtShell_QMovie::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QMovie::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QMovie::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QMovie::timerEvent(arg__1); +} +QMovie* PythonQtWrapper_QMovie::new_QMovie(QIODevice* device, const QByteArray& format, QObject* parent) +{ +return new PythonQtShell_QMovie(device, format, parent); } + +QMovie* PythonQtWrapper_QMovie::new_QMovie(QObject* parent) +{ +return new PythonQtShell_QMovie(parent); } + +QMovie* PythonQtWrapper_QMovie::new_QMovie(const QString& fileName, const QByteArray& format, QObject* parent) +{ +return new PythonQtShell_QMovie(fileName, format, parent); } + +QColor PythonQtWrapper_QMovie::backgroundColor(QMovie* theWrappedObject) const +{ + return ( theWrappedObject->backgroundColor()); +} + +QMovie::CacheMode PythonQtWrapper_QMovie::cacheMode(QMovie* theWrappedObject) const +{ + return ( theWrappedObject->cacheMode()); +} + +int PythonQtWrapper_QMovie::currentFrameNumber(QMovie* theWrappedObject) const +{ + return ( theWrappedObject->currentFrameNumber()); +} + +QImage PythonQtWrapper_QMovie::currentImage(QMovie* theWrappedObject) const +{ + return ( theWrappedObject->currentImage()); +} + +QPixmap PythonQtWrapper_QMovie::currentPixmap(QMovie* theWrappedObject) const +{ + return ( theWrappedObject->currentPixmap()); +} + +QIODevice* PythonQtWrapper_QMovie::device(QMovie* theWrappedObject) const +{ + return ( theWrappedObject->device()); +} + +QString PythonQtWrapper_QMovie::fileName(QMovie* theWrappedObject) const +{ + return ( theWrappedObject->fileName()); +} + +QByteArray PythonQtWrapper_QMovie::format(QMovie* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +int PythonQtWrapper_QMovie::frameCount(QMovie* theWrappedObject) const +{ + return ( theWrappedObject->frameCount()); +} + +QRect PythonQtWrapper_QMovie::frameRect(QMovie* theWrappedObject) const +{ + return ( theWrappedObject->frameRect()); +} + +bool PythonQtWrapper_QMovie::isValid(QMovie* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +bool PythonQtWrapper_QMovie::jumpToFrame(QMovie* theWrappedObject, int frameNumber) +{ + return ( theWrappedObject->jumpToFrame(frameNumber)); +} + +int PythonQtWrapper_QMovie::loopCount(QMovie* theWrappedObject) const +{ + return ( theWrappedObject->loopCount()); +} + +int PythonQtWrapper_QMovie::nextFrameDelay(QMovie* theWrappedObject) const +{ + return ( theWrappedObject->nextFrameDelay()); +} + +QSize PythonQtWrapper_QMovie::scaledSize(QMovie* theWrappedObject) +{ + return ( theWrappedObject->scaledSize()); +} + +void PythonQtWrapper_QMovie::setBackgroundColor(QMovie* theWrappedObject, const QColor& color) +{ + ( theWrappedObject->setBackgroundColor(color)); +} + +void PythonQtWrapper_QMovie::setCacheMode(QMovie* theWrappedObject, QMovie::CacheMode mode) +{ + ( theWrappedObject->setCacheMode(mode)); +} + +void PythonQtWrapper_QMovie::setDevice(QMovie* theWrappedObject, QIODevice* device) +{ + ( theWrappedObject->setDevice(device)); +} + +void PythonQtWrapper_QMovie::setFileName(QMovie* theWrappedObject, const QString& fileName) +{ + ( theWrappedObject->setFileName(fileName)); +} + +void PythonQtWrapper_QMovie::setFormat(QMovie* theWrappedObject, const QByteArray& format) +{ + ( theWrappedObject->setFormat(format)); +} + +void PythonQtWrapper_QMovie::setScaledSize(QMovie* theWrappedObject, const QSize& size) +{ + ( theWrappedObject->setScaledSize(size)); +} + +int PythonQtWrapper_QMovie::speed(QMovie* theWrappedObject) const +{ + return ( theWrappedObject->speed()); +} + +QMovie::MovieState PythonQtWrapper_QMovie::state(QMovie* theWrappedObject) const +{ + return ( theWrappedObject->state()); +} + +QList PythonQtWrapper_QMovie::static_QMovie_supportedFormats() +{ + return (QMovie::supportedFormats()); +} + +#if defined(QT_PRINTSUPPORT_LIB) + +PythonQtShell_QPageSetupDialog::~PythonQtShell_QPageSetupDialog() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QPageSetupDialog::accept() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::accept(); +} +void PythonQtShell_QPageSetupDialog::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::actionEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::changeEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::childEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::closeEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::contextMenuEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::customEvent(arg__1); +} +int PythonQtShell_QPageSetupDialog::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPageSetupDialog::devType(); +} +void PythonQtShell_QPageSetupDialog::done(int result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::done(result); +} +void PythonQtShell_QPageSetupDialog::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::dragEnterEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::dragLeaveEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::dragMoveEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::dropEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::enterEvent(arg__1); +} +bool PythonQtShell_QPageSetupDialog::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPageSetupDialog::event(arg__1); +} +bool PythonQtShell_QPageSetupDialog::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPageSetupDialog::eventFilter(arg__1, arg__2); +} +int PythonQtShell_QPageSetupDialog::exec() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPageSetupDialog::exec(); +} +void PythonQtShell_QPageSetupDialog::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::focusInEvent(arg__1); +} +bool PythonQtShell_QPageSetupDialog::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPageSetupDialog::focusNextPrevChild(next); +} +void PythonQtShell_QPageSetupDialog::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::focusOutEvent(arg__1); +} +bool PythonQtShell_QPageSetupDialog::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPageSetupDialog::hasHeightForWidth(); +} +int PythonQtShell_QPageSetupDialog::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPageSetupDialog::heightForWidth(arg__1); +} +void PythonQtShell_QPageSetupDialog::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::hideEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::initPainter(painter); +} +void PythonQtShell_QPageSetupDialog::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QPageSetupDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPageSetupDialog::inputMethodQuery(arg__1); +} +void PythonQtShell_QPageSetupDialog::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::keyPressEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::keyReleaseEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::leaveEvent(arg__1); +} +int PythonQtShell_QPageSetupDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPageSetupDialog::metric(arg__1); +} +void PythonQtShell_QPageSetupDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::mouseMoveEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::mousePressEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::moveEvent(arg__1); +} +bool PythonQtShell_QPageSetupDialog::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPageSetupDialog::nativeEvent(eventType, message, result); +} +void PythonQtShell_QPageSetupDialog::open() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::open(); +} +QPaintEngine* PythonQtShell_QPageSetupDialog::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPageSetupDialog::paintEngine(); +} +void PythonQtShell_QPageSetupDialog::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QPageSetupDialog::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPageSetupDialog::redirected(offset); +} +void PythonQtShell_QPageSetupDialog::reject() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::reject(); +} +void PythonQtShell_QPageSetupDialog::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QPageSetupDialog::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPageSetupDialog::sharedPainter(); +} +void PythonQtShell_QPageSetupDialog::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::showEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::tabletEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::timerEvent(arg__1); +} +void PythonQtShell_QPageSetupDialog::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPageSetupDialog::wheelEvent(arg__1); +} +QPageSetupDialog* PythonQtWrapper_QPageSetupDialog::new_QPageSetupDialog(QPrinter* printer, QWidget* parent) +{ +return new PythonQtShell_QPageSetupDialog(printer, parent); } + +QPageSetupDialog* PythonQtWrapper_QPageSetupDialog::new_QPageSetupDialog(QWidget* parent) +{ +return new PythonQtShell_QPageSetupDialog(parent); } + +void PythonQtWrapper_QPageSetupDialog::done(QPageSetupDialog* theWrappedObject, int result) +{ + ( ((PythonQtPublicPromoter_QPageSetupDialog*)theWrappedObject)->promoted_done(result)); +} + +int PythonQtWrapper_QPageSetupDialog::exec(QPageSetupDialog* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QPageSetupDialog*)theWrappedObject)->promoted_exec()); +} + +void PythonQtWrapper_QPageSetupDialog::open(QPageSetupDialog* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QPageSetupDialog*)theWrappedObject)->promoted_open()); +} + +void PythonQtWrapper_QPageSetupDialog::open(QPageSetupDialog* theWrappedObject, QObject* receiver, const char* member) +{ + ( theWrappedObject->open(receiver, member)); +} + +QPrinter* PythonQtWrapper_QPageSetupDialog::printer(QPageSetupDialog* theWrappedObject) +{ + return ( theWrappedObject->printer()); +} + +#endif + +PythonQtShell_QPaintDevice::~PythonQtShell_QPaintDevice() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +int PythonQtShell_QPaintDevice::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPaintDevice::devType(); +} +void PythonQtShell_QPaintDevice::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPaintDevice::initPainter(painter); +} +int PythonQtShell_QPaintDevice::metric(QPaintDevice::PaintDeviceMetric metric) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&metric}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPaintDevice::metric(metric); +} +QPaintEngine* PythonQtShell_QPaintDevice::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +QPaintDevice* PythonQtShell_QPaintDevice::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPaintDevice::redirected(offset); +} +QPainter* PythonQtShell_QPaintDevice::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPaintDevice::sharedPainter(); +} +QPaintDevice* PythonQtWrapper_QPaintDevice::new_QPaintDevice() +{ +return new PythonQtShell_QPaintDevice(); } + +int PythonQtWrapper_QPaintDevice::colorCount(QPaintDevice* theWrappedObject) const +{ + return ( theWrappedObject->colorCount()); +} + +int PythonQtWrapper_QPaintDevice::depth(QPaintDevice* theWrappedObject) const +{ + return ( theWrappedObject->depth()); +} + +int PythonQtWrapper_QPaintDevice::devType(QPaintDevice* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QPaintDevice*)theWrappedObject)->promoted_devType()); +} + +int PythonQtWrapper_QPaintDevice::height(QPaintDevice* theWrappedObject) const +{ + return ( theWrappedObject->height()); +} + +int PythonQtWrapper_QPaintDevice::heightMM(QPaintDevice* theWrappedObject) const +{ + return ( theWrappedObject->heightMM()); +} + +void PythonQtWrapper_QPaintDevice::initPainter(QPaintDevice* theWrappedObject, QPainter* painter) const +{ + ( ((PythonQtPublicPromoter_QPaintDevice*)theWrappedObject)->promoted_initPainter(painter)); +} + +int PythonQtWrapper_QPaintDevice::logicalDpiX(QPaintDevice* theWrappedObject) const +{ + return ( theWrappedObject->logicalDpiX()); +} + +int PythonQtWrapper_QPaintDevice::logicalDpiY(QPaintDevice* theWrappedObject) const +{ + return ( theWrappedObject->logicalDpiY()); +} + +int PythonQtWrapper_QPaintDevice::metric(QPaintDevice* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const +{ + return ( ((PythonQtPublicPromoter_QPaintDevice*)theWrappedObject)->promoted_metric(metric)); +} + +bool PythonQtWrapper_QPaintDevice::paintingActive(QPaintDevice* theWrappedObject) const +{ + return ( theWrappedObject->paintingActive()); +} + +int PythonQtWrapper_QPaintDevice::physicalDpiX(QPaintDevice* theWrappedObject) const +{ + return ( theWrappedObject->physicalDpiX()); +} + +int PythonQtWrapper_QPaintDevice::physicalDpiY(QPaintDevice* theWrappedObject) const +{ + return ( theWrappedObject->physicalDpiY()); +} + +QPaintDevice* PythonQtWrapper_QPaintDevice::redirected(QPaintDevice* theWrappedObject, QPoint* offset) const +{ + return ( ((PythonQtPublicPromoter_QPaintDevice*)theWrappedObject)->promoted_redirected(offset)); +} + +QPainter* PythonQtWrapper_QPaintDevice::sharedPainter(QPaintDevice* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QPaintDevice*)theWrappedObject)->promoted_sharedPainter()); +} + +int PythonQtWrapper_QPaintDevice::width(QPaintDevice* theWrappedObject) const +{ + return ( theWrappedObject->width()); +} + +int PythonQtWrapper_QPaintDevice::widthMM(QPaintDevice* theWrappedObject) const +{ + return ( theWrappedObject->widthMM()); +} + + + +PythonQtShell_QPaintEngine::~PythonQtShell_QPaintEngine() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QPaintEngine::begin(QPaintDevice* pdev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "begin"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QPaintDevice*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&pdev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("begin", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +QPoint PythonQtShell_QPaintEngine::coordinateOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "coordinateOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPoint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPoint returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("coordinateOffset", methodInfo, result); + } else { + returnValue = *((QPoint*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPaintEngine::coordinateOffset(); +} +void PythonQtShell_QPaintEngine::drawEllipse(const QRect& r) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawEllipse"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&r}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPaintEngine::drawEllipse(r); +} +void PythonQtShell_QPaintEngine::drawEllipse(const QRectF& r) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawEllipse"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRectF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&r}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPaintEngine::drawEllipse(r); +} +void PythonQtShell_QPaintEngine::drawImage(const QRectF& r, const QImage& pm, const QRectF& sr, Qt::ImageConversionFlags flags) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawImage"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRectF&" , "const QImage&" , "const QRectF&" , "Qt::ImageConversionFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&r, (void*)&pm, (void*)&sr, (void*)&flags}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPaintEngine::drawImage(r, pm, sr, flags); +} +void PythonQtShell_QPaintEngine::drawLines(const QLine* lines, int lineCount) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawLines"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QLine*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&lines, (void*)&lineCount}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPaintEngine::drawLines(lines, lineCount); +} +void PythonQtShell_QPaintEngine::drawLines(const QLineF* lines, int lineCount) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawLines"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QLineF*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&lines, (void*)&lineCount}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPaintEngine::drawLines(lines, lineCount); +} +void PythonQtShell_QPaintEngine::drawPath(const QPainterPath& path) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPath"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QPainterPath&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&path}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPaintEngine::drawPath(path); +} +void PythonQtShell_QPaintEngine::drawPixmap(const QRectF& r, const QPixmap& pm, const QRectF& sr) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPixmap"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRectF&" , "const QPixmap&" , "const QRectF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&r, (void*)&pm, (void*)&sr}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QPaintEngine::drawPoints(const QPoint* points, int pointCount) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPoints"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QPoint*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&points, (void*)&pointCount}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPaintEngine::drawPoints(points, pointCount); +} +void PythonQtShell_QPaintEngine::drawPoints(const QPointF* points, int pointCount) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPoints"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QPointF*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&points, (void*)&pointCount}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPaintEngine::drawPoints(points, pointCount); +} +void PythonQtShell_QPaintEngine::drawPolygon(const QPoint* points, int pointCount, QPaintEngine::PolygonDrawMode mode) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPolygon"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QPoint*" , "int" , "QPaintEngine::PolygonDrawMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&points, (void*)&pointCount, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPaintEngine::drawPolygon(points, pointCount, mode); +} +void PythonQtShell_QPaintEngine::drawPolygon(const QPointF* points, int pointCount, QPaintEngine::PolygonDrawMode mode) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPolygon"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QPointF*" , "int" , "QPaintEngine::PolygonDrawMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&points, (void*)&pointCount, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPaintEngine::drawPolygon(points, pointCount, mode); +} +void PythonQtShell_QPaintEngine::drawRects(const QRect* rects, int rectCount) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawRects"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&rects, (void*)&rectCount}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPaintEngine::drawRects(rects, rectCount); +} +void PythonQtShell_QPaintEngine::drawRects(const QRectF* rects, int rectCount) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawRects"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRectF*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&rects, (void*)&rectCount}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPaintEngine::drawRects(rects, rectCount); +} +void PythonQtShell_QPaintEngine::drawTextItem(const QPointF& p, const QTextItem& textItem) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawTextItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QPointF&" , "const QTextItem&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&p, (void*)&textItem}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPaintEngine::drawTextItem(p, textItem); +} +void PythonQtShell_QPaintEngine::drawTiledPixmap(const QRectF& r, const QPixmap& pixmap, const QPointF& s) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawTiledPixmap"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRectF&" , "const QPixmap&" , "const QPointF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&r, (void*)&pixmap, (void*)&s}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPaintEngine::drawTiledPixmap(r, pixmap, s); +} +bool PythonQtShell_QPaintEngine::end() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "end"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("end", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +QPaintEngine::Type PythonQtShell_QPaintEngine::type() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine::Type"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine::Type returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); + } else { + returnValue = *((QPaintEngine::Type*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPaintEngine::Type(); +} +void PythonQtShell_QPaintEngine::updateState(const QPaintEngineState& state) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateState"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QPaintEngineState&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&state}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +QPaintEngine* PythonQtWrapper_QPaintEngine::new_QPaintEngine(QPaintEngine::PaintEngineFeatures features) +{ +return new PythonQtShell_QPaintEngine(features); } + +void PythonQtWrapper_QPaintEngine::clearDirty(QPaintEngine* theWrappedObject, QPaintEngine::DirtyFlags df) +{ + ( theWrappedObject->clearDirty(df)); +} + +QPoint PythonQtWrapper_QPaintEngine::coordinateOffset(QPaintEngine* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_coordinateOffset()); +} + +void PythonQtWrapper_QPaintEngine::drawEllipse(QPaintEngine* theWrappedObject, const QRect& r) +{ + ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawEllipse(r)); +} + +void PythonQtWrapper_QPaintEngine::drawEllipse(QPaintEngine* theWrappedObject, const QRectF& r) +{ + ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawEllipse(r)); +} + +void PythonQtWrapper_QPaintEngine::drawImage(QPaintEngine* theWrappedObject, const QRectF& r, const QImage& pm, const QRectF& sr, Qt::ImageConversionFlags flags) +{ + ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawImage(r, pm, sr, flags)); +} + +void PythonQtWrapper_QPaintEngine::drawLines(QPaintEngine* theWrappedObject, const QLine* lines, int lineCount) +{ + ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawLines(lines, lineCount)); +} + +void PythonQtWrapper_QPaintEngine::drawLines(QPaintEngine* theWrappedObject, const QLineF* lines, int lineCount) +{ + ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawLines(lines, lineCount)); +} + +void PythonQtWrapper_QPaintEngine::drawPath(QPaintEngine* theWrappedObject, const QPainterPath& path) +{ + ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawPath(path)); +} + +void PythonQtWrapper_QPaintEngine::drawPoints(QPaintEngine* theWrappedObject, const QPoint* points, int pointCount) +{ + ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawPoints(points, pointCount)); +} + +void PythonQtWrapper_QPaintEngine::drawPoints(QPaintEngine* theWrappedObject, const QPointF* points, int pointCount) +{ + ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawPoints(points, pointCount)); +} + +void PythonQtWrapper_QPaintEngine::drawPolygon(QPaintEngine* theWrappedObject, const QPoint* points, int pointCount, QPaintEngine::PolygonDrawMode mode) +{ + ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawPolygon(points, pointCount, mode)); +} + +void PythonQtWrapper_QPaintEngine::drawPolygon(QPaintEngine* theWrappedObject, const QPointF* points, int pointCount, QPaintEngine::PolygonDrawMode mode) +{ + ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawPolygon(points, pointCount, mode)); +} + +void PythonQtWrapper_QPaintEngine::drawRects(QPaintEngine* theWrappedObject, const QRect* rects, int rectCount) +{ + ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawRects(rects, rectCount)); +} + +void PythonQtWrapper_QPaintEngine::drawRects(QPaintEngine* theWrappedObject, const QRectF* rects, int rectCount) +{ + ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawRects(rects, rectCount)); +} + +void PythonQtWrapper_QPaintEngine::drawTextItem(QPaintEngine* theWrappedObject, const QPointF& p, const QTextItem& textItem) +{ + ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawTextItem(p, textItem)); +} + +void PythonQtWrapper_QPaintEngine::drawTiledPixmap(QPaintEngine* theWrappedObject, const QRectF& r, const QPixmap& pixmap, const QPointF& s) +{ + ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawTiledPixmap(r, pixmap, s)); +} + +bool PythonQtWrapper_QPaintEngine::hasFeature(QPaintEngine* theWrappedObject, QPaintEngine::PaintEngineFeatures feature) const +{ + return ( theWrappedObject->hasFeature(feature)); +} + +bool PythonQtWrapper_QPaintEngine::isActive(QPaintEngine* theWrappedObject) const +{ + return ( theWrappedObject->isActive()); +} + +bool PythonQtWrapper_QPaintEngine::isExtended(QPaintEngine* theWrappedObject) const +{ + return ( theWrappedObject->isExtended()); +} + +QPaintDevice* PythonQtWrapper_QPaintEngine::paintDevice(QPaintEngine* theWrappedObject) const +{ + return ( theWrappedObject->paintDevice()); +} + +QPainter* PythonQtWrapper_QPaintEngine::painter(QPaintEngine* theWrappedObject) const +{ + return ( theWrappedObject->painter()); +} + +void PythonQtWrapper_QPaintEngine::setActive(QPaintEngine* theWrappedObject, bool newState) +{ + ( theWrappedObject->setActive(newState)); +} + +void PythonQtWrapper_QPaintEngine::setDirty(QPaintEngine* theWrappedObject, QPaintEngine::DirtyFlags df) +{ + ( theWrappedObject->setDirty(df)); +} + +void PythonQtWrapper_QPaintEngine::setSystemClip(QPaintEngine* theWrappedObject, const QRegion& baseClip) +{ + ( theWrappedObject->setSystemClip(baseClip)); +} + +void PythonQtWrapper_QPaintEngine::setSystemRect(QPaintEngine* theWrappedObject, const QRect& rect) +{ + ( theWrappedObject->setSystemRect(rect)); +} + +void PythonQtWrapper_QPaintEngine::syncState(QPaintEngine* theWrappedObject) +{ + ( theWrappedObject->syncState()); +} + +QRegion PythonQtWrapper_QPaintEngine::systemClip(QPaintEngine* theWrappedObject) const +{ + return ( theWrappedObject->systemClip()); +} + +QRect PythonQtWrapper_QPaintEngine::systemRect(QPaintEngine* theWrappedObject) const +{ + return ( theWrappedObject->systemRect()); +} + +bool PythonQtWrapper_QPaintEngine::testDirty(QPaintEngine* theWrappedObject, QPaintEngine::DirtyFlags df) +{ + return ( theWrappedObject->testDirty(df)); +} + + + +PythonQtShell_QPaintEngineState::~PythonQtShell_QPaintEngineState() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QPaintEngineState* PythonQtWrapper_QPaintEngineState::new_QPaintEngineState() +{ +return new PythonQtShell_QPaintEngineState(); } + +QBrush PythonQtWrapper_QPaintEngineState::backgroundBrush(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->backgroundBrush()); +} + +Qt::BGMode PythonQtWrapper_QPaintEngineState::backgroundMode(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->backgroundMode()); +} + +QBrush PythonQtWrapper_QPaintEngineState::brush(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->brush()); +} + +bool PythonQtWrapper_QPaintEngineState::brushNeedsResolving(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->brushNeedsResolving()); +} + +QPointF PythonQtWrapper_QPaintEngineState::brushOrigin(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->brushOrigin()); +} + +Qt::ClipOperation PythonQtWrapper_QPaintEngineState::clipOperation(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->clipOperation()); +} + +QPainterPath PythonQtWrapper_QPaintEngineState::clipPath(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->clipPath()); +} + +QRegion PythonQtWrapper_QPaintEngineState::clipRegion(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->clipRegion()); +} + +QPainter::CompositionMode PythonQtWrapper_QPaintEngineState::compositionMode(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->compositionMode()); +} + +QFont PythonQtWrapper_QPaintEngineState::font(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->font()); +} + +bool PythonQtWrapper_QPaintEngineState::isClipEnabled(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->isClipEnabled()); +} + +QMatrix PythonQtWrapper_QPaintEngineState::matrix(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->matrix()); +} + +qreal PythonQtWrapper_QPaintEngineState::opacity(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->opacity()); +} + +QPainter* PythonQtWrapper_QPaintEngineState::painter(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->painter()); +} + +QPen PythonQtWrapper_QPaintEngineState::pen(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->pen()); +} + +bool PythonQtWrapper_QPaintEngineState::penNeedsResolving(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->penNeedsResolving()); +} + +QPainter::RenderHints PythonQtWrapper_QPaintEngineState::renderHints(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->renderHints()); +} + +QPaintEngine::DirtyFlags PythonQtWrapper_QPaintEngineState::state(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->state()); +} + +QTransform PythonQtWrapper_QPaintEngineState::transform(QPaintEngineState* theWrappedObject) const +{ + return ( theWrappedObject->transform()); +} + + + +PythonQtShell_QPaintEvent::~PythonQtShell_QPaintEvent() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QPaintEvent* PythonQtWrapper_QPaintEvent::new_QPaintEvent(const QRect& paintRect) +{ +return new PythonQtShell_QPaintEvent(paintRect); } + +QPaintEvent* PythonQtWrapper_QPaintEvent::new_QPaintEvent(const QRegion& paintRegion) +{ +return new PythonQtShell_QPaintEvent(paintRegion); } + +const QRect* PythonQtWrapper_QPaintEvent::rect(QPaintEvent* theWrappedObject) const +{ + return &( theWrappedObject->rect()); +} + +const QRegion* PythonQtWrapper_QPaintEvent::region(QPaintEvent* theWrappedObject) const +{ + return &( theWrappedObject->region()); +} + + + +QPainter* PythonQtWrapper_QPainter::new_QPainter() +{ +return new QPainter(); } + +const QBrush* PythonQtWrapper_QPainter::background(QPainter* theWrappedObject) const +{ + return &( theWrappedObject->background()); +} + +Qt::BGMode PythonQtWrapper_QPainter::backgroundMode(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->backgroundMode()); +} + +bool PythonQtWrapper_QPainter::begin(QPainter* theWrappedObject, QPaintDevice* arg__1) +{ + return ( theWrappedObject->begin(arg__1)); +} + +void PythonQtWrapper_QPainter::beginNativePainting(QPainter* theWrappedObject) +{ + ( theWrappedObject->beginNativePainting()); +} + +QRect PythonQtWrapper_QPainter::boundingRect(QPainter* theWrappedObject, const QRect& rect, int flags, const QString& text) +{ + return ( theWrappedObject->boundingRect(rect, flags, text)); +} + +QRectF PythonQtWrapper_QPainter::boundingRect(QPainter* theWrappedObject, const QRectF& rect, const QString& text, const QTextOption& o) +{ + return ( theWrappedObject->boundingRect(rect, text, o)); +} + +QRectF PythonQtWrapper_QPainter::boundingRect(QPainter* theWrappedObject, const QRectF& rect, int flags, const QString& text) +{ + return ( theWrappedObject->boundingRect(rect, flags, text)); +} + +QRect PythonQtWrapper_QPainter::boundingRect(QPainter* theWrappedObject, int x, int y, int w, int h, int flags, const QString& text) +{ + return ( theWrappedObject->boundingRect(x, y, w, h, flags, text)); +} + +const QBrush* PythonQtWrapper_QPainter::brush(QPainter* theWrappedObject) const +{ + return &( theWrappedObject->brush()); +} + +QPoint PythonQtWrapper_QPainter::brushOrigin(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->brushOrigin()); +} + +QRectF PythonQtWrapper_QPainter::clipBoundingRect(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->clipBoundingRect()); +} + +QPainterPath PythonQtWrapper_QPainter::clipPath(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->clipPath()); +} + +QRegion PythonQtWrapper_QPainter::clipRegion(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->clipRegion()); +} + +QMatrix PythonQtWrapper_QPainter::combinedMatrix(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->combinedMatrix()); +} + +QTransform PythonQtWrapper_QPainter::combinedTransform(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->combinedTransform()); +} + +QPainter::CompositionMode PythonQtWrapper_QPainter::compositionMode(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->compositionMode()); +} + +QPaintDevice* PythonQtWrapper_QPainter::device(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->device()); +} + +const QMatrix* PythonQtWrapper_QPainter::deviceMatrix(QPainter* theWrappedObject) const +{ + return &( theWrappedObject->deviceMatrix()); +} + +const QTransform* PythonQtWrapper_QPainter::deviceTransform(QPainter* theWrappedObject) const +{ + return &( theWrappedObject->deviceTransform()); +} + +void PythonQtWrapper_QPainter::drawArc(QPainter* theWrappedObject, const QRect& arg__1, int a, int alen) +{ + ( theWrappedObject->drawArc(arg__1, a, alen)); +} + +void PythonQtWrapper_QPainter::drawArc(QPainter* theWrappedObject, const QRectF& rect, int a, int alen) +{ + ( theWrappedObject->drawArc(rect, a, alen)); +} + +void PythonQtWrapper_QPainter::drawArc(QPainter* theWrappedObject, int x, int y, int w, int h, int a, int alen) +{ + ( theWrappedObject->drawArc(x, y, w, h, a, alen)); +} + +void PythonQtWrapper_QPainter::drawChord(QPainter* theWrappedObject, const QRect& arg__1, int a, int alen) +{ + ( theWrappedObject->drawChord(arg__1, a, alen)); +} + +void PythonQtWrapper_QPainter::drawChord(QPainter* theWrappedObject, const QRectF& rect, int a, int alen) +{ + ( theWrappedObject->drawChord(rect, a, alen)); +} + +void PythonQtWrapper_QPainter::drawChord(QPainter* theWrappedObject, int x, int y, int w, int h, int a, int alen) +{ + ( theWrappedObject->drawChord(x, y, w, h, a, alen)); +} + +void PythonQtWrapper_QPainter::drawConvexPolygon(QPainter* theWrappedObject, const QPolygon& polygon) +{ + ( theWrappedObject->drawConvexPolygon(polygon)); +} + +void PythonQtWrapper_QPainter::drawConvexPolygon(QPainter* theWrappedObject, const QPolygonF& polygon) +{ + ( theWrappedObject->drawConvexPolygon(polygon)); +} + +void PythonQtWrapper_QPainter::drawEllipse(QPainter* theWrappedObject, const QPoint& center, int rx, int ry) +{ + ( theWrappedObject->drawEllipse(center, rx, ry)); +} + +void PythonQtWrapper_QPainter::drawEllipse(QPainter* theWrappedObject, const QPointF& center, qreal rx, qreal ry) +{ + ( theWrappedObject->drawEllipse(center, rx, ry)); +} + +void PythonQtWrapper_QPainter::drawEllipse(QPainter* theWrappedObject, const QRect& r) +{ + ( theWrappedObject->drawEllipse(r)); +} + +void PythonQtWrapper_QPainter::drawEllipse(QPainter* theWrappedObject, const QRectF& r) +{ + ( theWrappedObject->drawEllipse(r)); +} + +void PythonQtWrapper_QPainter::drawEllipse(QPainter* theWrappedObject, int x, int y, int w, int h) +{ + ( theWrappedObject->drawEllipse(x, y, w, h)); +} + +void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, const QPoint& p, const QImage& image) +{ + ( theWrappedObject->drawImage(p, image)); +} + +void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, const QPoint& p, const QImage& image, const QRect& sr, Qt::ImageConversionFlags flags) +{ + ( theWrappedObject->drawImage(p, image, sr, flags)); +} + +void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, const QPointF& p, const QImage& image) +{ + ( theWrappedObject->drawImage(p, image)); +} + +void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, const QPointF& p, const QImage& image, const QRectF& sr, Qt::ImageConversionFlags flags) +{ + ( theWrappedObject->drawImage(p, image, sr, flags)); +} + +void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, const QRect& r, const QImage& image) +{ + ( theWrappedObject->drawImage(r, image)); +} + +void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, const QRect& targetRect, const QImage& image, const QRect& sourceRect, Qt::ImageConversionFlags flags) +{ + ( theWrappedObject->drawImage(targetRect, image, sourceRect, flags)); +} + +void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, const QRectF& r, const QImage& image) +{ + ( theWrappedObject->drawImage(r, image)); +} + +void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, const QRectF& targetRect, const QImage& image, const QRectF& sourceRect, Qt::ImageConversionFlags flags) +{ + ( theWrappedObject->drawImage(targetRect, image, sourceRect, flags)); +} + +void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, int x, int y, const QImage& image, int sx, int sy, int sw, int sh, Qt::ImageConversionFlags flags) +{ + ( theWrappedObject->drawImage(x, y, image, sx, sy, sw, sh, flags)); +} + +void PythonQtWrapper_QPainter::drawLine(QPainter* theWrappedObject, const QLine& line) +{ + ( theWrappedObject->drawLine(line)); +} + +void PythonQtWrapper_QPainter::drawLine(QPainter* theWrappedObject, const QLineF& line) +{ + ( theWrappedObject->drawLine(line)); +} + +void PythonQtWrapper_QPainter::drawLine(QPainter* theWrappedObject, const QPoint& p1, const QPoint& p2) +{ + ( theWrappedObject->drawLine(p1, p2)); +} + +void PythonQtWrapper_QPainter::drawLine(QPainter* theWrappedObject, const QPointF& p1, const QPointF& p2) +{ + ( theWrappedObject->drawLine(p1, p2)); +} + +void PythonQtWrapper_QPainter::drawLine(QPainter* theWrappedObject, int x1, int y1, int x2, int y2) +{ + ( theWrappedObject->drawLine(x1, y1, x2, y2)); +} + +void PythonQtWrapper_QPainter::drawLines(QPainter* theWrappedObject, const QVector& lines) +{ + ( theWrappedObject->drawLines(lines)); +} + +void PythonQtWrapper_QPainter::drawLines(QPainter* theWrappedObject, const QVector& lines) +{ + ( theWrappedObject->drawLines(lines)); +} + +void PythonQtWrapper_QPainter::drawLines(QPainter* theWrappedObject, const QVector& pointPairs) +{ + ( theWrappedObject->drawLines(pointPairs)); +} + +void PythonQtWrapper_QPainter::drawLines(QPainter* theWrappedObject, const QVector& pointPairs) +{ + ( theWrappedObject->drawLines(pointPairs)); +} + +void PythonQtWrapper_QPainter::drawPath(QPainter* theWrappedObject, const QPainterPath& path) +{ + ( theWrappedObject->drawPath(path)); +} + +void PythonQtWrapper_QPainter::drawPicture(QPainter* theWrappedObject, const QPoint& p, const QPicture& picture) +{ + ( theWrappedObject->drawPicture(p, picture)); +} + +void PythonQtWrapper_QPainter::drawPicture(QPainter* theWrappedObject, const QPointF& p, const QPicture& picture) +{ + ( theWrappedObject->drawPicture(p, picture)); +} + +void PythonQtWrapper_QPainter::drawPicture(QPainter* theWrappedObject, int x, int y, const QPicture& picture) +{ + ( theWrappedObject->drawPicture(x, y, picture)); +} + +void PythonQtWrapper_QPainter::drawPie(QPainter* theWrappedObject, const QRect& arg__1, int a, int alen) +{ + ( theWrappedObject->drawPie(arg__1, a, alen)); +} + +void PythonQtWrapper_QPainter::drawPie(QPainter* theWrappedObject, const QRectF& rect, int a, int alen) +{ + ( theWrappedObject->drawPie(rect, a, alen)); +} + +void PythonQtWrapper_QPainter::drawPie(QPainter* theWrappedObject, int x, int y, int w, int h, int a, int alen) +{ + ( theWrappedObject->drawPie(x, y, w, h, a, alen)); +} + +void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, const QPoint& p, const QPixmap& pm) +{ + ( theWrappedObject->drawPixmap(p, pm)); +} + +void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, const QPoint& p, const QPixmap& pm, const QRect& sr) +{ + ( theWrappedObject->drawPixmap(p, pm, sr)); +} + +void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, const QPointF& p, const QPixmap& pm) +{ + ( theWrappedObject->drawPixmap(p, pm)); +} + +void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, const QPointF& p, const QPixmap& pm, const QRectF& sr) +{ + ( theWrappedObject->drawPixmap(p, pm, sr)); +} + +void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, const QRect& r, const QPixmap& pm) +{ + ( theWrappedObject->drawPixmap(r, pm)); +} + +void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, const QRect& targetRect, const QPixmap& pixmap, const QRect& sourceRect) +{ + ( theWrappedObject->drawPixmap(targetRect, pixmap, sourceRect)); +} + +void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, const QRectF& targetRect, const QPixmap& pixmap, const QRectF& sourceRect) +{ + ( theWrappedObject->drawPixmap(targetRect, pixmap, sourceRect)); +} + +void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, int x, int y, const QPixmap& pm) +{ + ( theWrappedObject->drawPixmap(x, y, pm)); +} + +void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, int x, int y, const QPixmap& pm, int sx, int sy, int sw, int sh) +{ + ( theWrappedObject->drawPixmap(x, y, pm, sx, sy, sw, sh)); +} + +void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, int x, int y, int w, int h, const QPixmap& pm) +{ + ( theWrappedObject->drawPixmap(x, y, w, h, pm)); +} + +void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, int x, int y, int w, int h, const QPixmap& pm, int sx, int sy, int sw, int sh) +{ + ( theWrappedObject->drawPixmap(x, y, w, h, pm, sx, sy, sw, sh)); +} + +void PythonQtWrapper_QPainter::drawPoint(QPainter* theWrappedObject, const QPoint& p) +{ + ( theWrappedObject->drawPoint(p)); +} + +void PythonQtWrapper_QPainter::drawPoint(QPainter* theWrappedObject, const QPointF& pt) +{ + ( theWrappedObject->drawPoint(pt)); +} + +void PythonQtWrapper_QPainter::drawPoint(QPainter* theWrappedObject, int x, int y) +{ + ( theWrappedObject->drawPoint(x, y)); +} + +void PythonQtWrapper_QPainter::drawPoints(QPainter* theWrappedObject, const QPolygon& points) +{ + ( theWrappedObject->drawPoints(points)); +} + +void PythonQtWrapper_QPainter::drawPoints(QPainter* theWrappedObject, const QPolygonF& points) +{ + ( theWrappedObject->drawPoints(points)); +} + +void PythonQtWrapper_QPainter::drawPolygon(QPainter* theWrappedObject, const QPolygon& polygon, Qt::FillRule fillRule) +{ + ( theWrappedObject->drawPolygon(polygon, fillRule)); +} + +void PythonQtWrapper_QPainter::drawPolygon(QPainter* theWrappedObject, const QPolygonF& polygon, Qt::FillRule fillRule) +{ + ( theWrappedObject->drawPolygon(polygon, fillRule)); +} + +void PythonQtWrapper_QPainter::drawPolyline(QPainter* theWrappedObject, const QPolygon& polygon) +{ + ( theWrappedObject->drawPolyline(polygon)); +} + +void PythonQtWrapper_QPainter::drawPolyline(QPainter* theWrappedObject, const QPolygonF& polyline) +{ + ( theWrappedObject->drawPolyline(polyline)); +} + +void PythonQtWrapper_QPainter::drawRect(QPainter* theWrappedObject, const QRect& rect) +{ + ( theWrappedObject->drawRect(rect)); +} + +void PythonQtWrapper_QPainter::drawRect(QPainter* theWrappedObject, const QRectF& rect) +{ + ( theWrappedObject->drawRect(rect)); +} + +void PythonQtWrapper_QPainter::drawRect(QPainter* theWrappedObject, int x1, int y1, int w, int h) +{ + ( theWrappedObject->drawRect(x1, y1, w, h)); +} + +void PythonQtWrapper_QPainter::drawRects(QPainter* theWrappedObject, const QVector& rectangles) +{ + ( theWrappedObject->drawRects(rectangles)); +} + +void PythonQtWrapper_QPainter::drawRects(QPainter* theWrappedObject, const QVector& rectangles) +{ + ( theWrappedObject->drawRects(rectangles)); +} + +void PythonQtWrapper_QPainter::drawRoundRect(QPainter* theWrappedObject, const QRect& r, int xround, int yround) +{ + ( theWrappedObject->drawRoundRect(r, xround, yround)); +} + +void PythonQtWrapper_QPainter::drawRoundRect(QPainter* theWrappedObject, const QRectF& r, int xround, int yround) +{ + ( theWrappedObject->drawRoundRect(r, xround, yround)); +} + +void PythonQtWrapper_QPainter::drawRoundRect(QPainter* theWrappedObject, int x, int y, int w, int h, int arg__5, int arg__6) +{ + ( theWrappedObject->drawRoundRect(x, y, w, h, arg__5, arg__6)); +} + +void PythonQtWrapper_QPainter::drawRoundedRect(QPainter* theWrappedObject, const QRect& rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode) +{ + ( theWrappedObject->drawRoundedRect(rect, xRadius, yRadius, mode)); +} + +void PythonQtWrapper_QPainter::drawRoundedRect(QPainter* theWrappedObject, const QRectF& rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode) +{ + ( theWrappedObject->drawRoundedRect(rect, xRadius, yRadius, mode)); +} + +void PythonQtWrapper_QPainter::drawRoundedRect(QPainter* theWrappedObject, int x, int y, int w, int h, qreal xRadius, qreal yRadius, Qt::SizeMode mode) +{ + ( theWrappedObject->drawRoundedRect(x, y, w, h, xRadius, yRadius, mode)); +} + +void PythonQtWrapper_QPainter::drawText(QPainter* theWrappedObject, const QPoint& p, const QString& s) +{ + ( theWrappedObject->drawText(p, s)); +} + +void PythonQtWrapper_QPainter::drawText(QPainter* theWrappedObject, const QPointF& p, const QString& s) +{ + ( theWrappedObject->drawText(p, s)); +} + +void PythonQtWrapper_QPainter::drawText(QPainter* theWrappedObject, const QRect& r, int flags, const QString& text, QRect* br) +{ + ( theWrappedObject->drawText(r, flags, text, br)); +} + +void PythonQtWrapper_QPainter::drawText(QPainter* theWrappedObject, const QRectF& r, const QString& text, const QTextOption& o) +{ + ( theWrappedObject->drawText(r, text, o)); +} + +void PythonQtWrapper_QPainter::drawText(QPainter* theWrappedObject, const QRectF& r, int flags, const QString& text, QRectF* br) +{ + ( theWrappedObject->drawText(r, flags, text, br)); +} + +void PythonQtWrapper_QPainter::drawText(QPainter* theWrappedObject, int x, int y, const QString& s) +{ + ( theWrappedObject->drawText(x, y, s)); +} + +void PythonQtWrapper_QPainter::drawText(QPainter* theWrappedObject, int x, int y, int w, int h, int flags, const QString& text, QRect* br) +{ + ( theWrappedObject->drawText(x, y, w, h, flags, text, br)); +} + +void PythonQtWrapper_QPainter::drawTextItem(QPainter* theWrappedObject, const QPoint& p, const QTextItem& ti) +{ + ( theWrappedObject->drawTextItem(p, ti)); +} + +void PythonQtWrapper_QPainter::drawTextItem(QPainter* theWrappedObject, const QPointF& p, const QTextItem& ti) +{ + ( theWrappedObject->drawTextItem(p, ti)); +} + +void PythonQtWrapper_QPainter::drawTextItem(QPainter* theWrappedObject, int x, int y, const QTextItem& ti) +{ + ( theWrappedObject->drawTextItem(x, y, ti)); +} + +void PythonQtWrapper_QPainter::drawTiledPixmap(QPainter* theWrappedObject, const QRect& arg__1, const QPixmap& arg__2, const QPoint& arg__3) +{ + ( theWrappedObject->drawTiledPixmap(arg__1, arg__2, arg__3)); +} + +void PythonQtWrapper_QPainter::drawTiledPixmap(QPainter* theWrappedObject, const QRectF& rect, const QPixmap& pm, const QPointF& offset) +{ + ( theWrappedObject->drawTiledPixmap(rect, pm, offset)); +} + +void PythonQtWrapper_QPainter::drawTiledPixmap(QPainter* theWrappedObject, int x, int y, int w, int h, const QPixmap& arg__5, int sx, int sy) +{ + ( theWrappedObject->drawTiledPixmap(x, y, w, h, arg__5, sx, sy)); +} + +bool PythonQtWrapper_QPainter::end(QPainter* theWrappedObject) +{ + return ( theWrappedObject->end()); +} + +void PythonQtWrapper_QPainter::endNativePainting(QPainter* theWrappedObject) +{ + ( theWrappedObject->endNativePainting()); +} + +void PythonQtWrapper_QPainter::eraseRect(QPainter* theWrappedObject, const QRect& arg__1) +{ + ( theWrappedObject->eraseRect(arg__1)); +} + +void PythonQtWrapper_QPainter::eraseRect(QPainter* theWrappedObject, const QRectF& arg__1) +{ + ( theWrappedObject->eraseRect(arg__1)); +} + +void PythonQtWrapper_QPainter::eraseRect(QPainter* theWrappedObject, int x, int y, int w, int h) +{ + ( theWrappedObject->eraseRect(x, y, w, h)); +} + +void PythonQtWrapper_QPainter::fillPath(QPainter* theWrappedObject, const QPainterPath& path, const QBrush& brush) +{ + ( theWrappedObject->fillPath(path, brush)); +} + +void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, const QRect& arg__1, const QBrush& arg__2) +{ + ( theWrappedObject->fillRect(arg__1, arg__2)); +} + +void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, const QRect& arg__1, const QColor& color) +{ + ( theWrappedObject->fillRect(arg__1, color)); +} + +void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, const QRect& r, Qt::BrushStyle style) +{ + ( theWrappedObject->fillRect(r, style)); +} + +void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, const QRect& r, Qt::GlobalColor c) +{ + ( theWrappedObject->fillRect(r, c)); +} + +void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, const QRectF& arg__1, const QBrush& arg__2) +{ + ( theWrappedObject->fillRect(arg__1, arg__2)); +} + +void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, const QRectF& arg__1, const QColor& color) +{ + ( theWrappedObject->fillRect(arg__1, color)); +} + +void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, const QRectF& r, Qt::BrushStyle style) +{ + ( theWrappedObject->fillRect(r, style)); +} + +void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, const QRectF& r, Qt::GlobalColor c) +{ + ( theWrappedObject->fillRect(r, c)); +} + +void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, int x, int y, int w, int h, Qt::BrushStyle style) +{ + ( theWrappedObject->fillRect(x, y, w, h, style)); +} + +void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, int x, int y, int w, int h, Qt::GlobalColor c) +{ + ( theWrappedObject->fillRect(x, y, w, h, c)); +} + +void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, int x, int y, int w, int h, const QBrush& arg__5) +{ + ( theWrappedObject->fillRect(x, y, w, h, arg__5)); +} + +void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, int x, int y, int w, int h, const QColor& color) +{ + ( theWrappedObject->fillRect(x, y, w, h, color)); +} + +const QFont* PythonQtWrapper_QPainter::font(QPainter* theWrappedObject) const +{ + return &( theWrappedObject->font()); +} + +bool PythonQtWrapper_QPainter::hasClipping(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->hasClipping()); +} + +void PythonQtWrapper_QPainter::initFrom(QPainter* theWrappedObject, const QPaintDevice* device) +{ + ( theWrappedObject->initFrom(device)); +} + +bool PythonQtWrapper_QPainter::isActive(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->isActive()); +} + +Qt::LayoutDirection PythonQtWrapper_QPainter::layoutDirection(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->layoutDirection()); +} + +qreal PythonQtWrapper_QPainter::opacity(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->opacity()); +} + +QPaintEngine* PythonQtWrapper_QPainter::paintEngine(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->paintEngine()); +} + +const QPen* PythonQtWrapper_QPainter::pen(QPainter* theWrappedObject) const +{ + return &( theWrappedObject->pen()); +} + +QPaintDevice* PythonQtWrapper_QPainter::static_QPainter_redirected(const QPaintDevice* device, QPoint* offset) +{ + return (QPainter::redirected(device, offset)); +} + +QPainter::RenderHints PythonQtWrapper_QPainter::renderHints(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->renderHints()); +} + +void PythonQtWrapper_QPainter::resetMatrix(QPainter* theWrappedObject) +{ + ( theWrappedObject->resetMatrix()); +} + +void PythonQtWrapper_QPainter::resetTransform(QPainter* theWrappedObject) +{ + ( theWrappedObject->resetTransform()); +} + +void PythonQtWrapper_QPainter::restore(QPainter* theWrappedObject) +{ + ( theWrappedObject->restore()); +} + +void PythonQtWrapper_QPainter::static_QPainter_restoreRedirected(const QPaintDevice* device) +{ + (QPainter::restoreRedirected(device)); +} + +void PythonQtWrapper_QPainter::rotate(QPainter* theWrappedObject, qreal a) +{ + ( theWrappedObject->rotate(a)); +} + +void PythonQtWrapper_QPainter::save(QPainter* theWrappedObject) +{ + ( theWrappedObject->save()); +} + +void PythonQtWrapper_QPainter::scale(QPainter* theWrappedObject, qreal sx, qreal sy) +{ + ( theWrappedObject->scale(sx, sy)); +} + +void PythonQtWrapper_QPainter::setBackground(QPainter* theWrappedObject, const QBrush& bg) +{ + ( theWrappedObject->setBackground(bg)); +} + +void PythonQtWrapper_QPainter::setBackgroundMode(QPainter* theWrappedObject, Qt::BGMode mode) +{ + ( theWrappedObject->setBackgroundMode(mode)); +} + +void PythonQtWrapper_QPainter::setBrush(QPainter* theWrappedObject, Qt::BrushStyle style) +{ + ( theWrappedObject->setBrush(style)); +} + +void PythonQtWrapper_QPainter::setBrush(QPainter* theWrappedObject, const QBrush& brush) +{ + ( theWrappedObject->setBrush(brush)); +} + +void PythonQtWrapper_QPainter::setBrushOrigin(QPainter* theWrappedObject, const QPoint& arg__1) +{ + ( theWrappedObject->setBrushOrigin(arg__1)); +} + +void PythonQtWrapper_QPainter::setBrushOrigin(QPainter* theWrappedObject, const QPointF& arg__1) +{ + ( theWrappedObject->setBrushOrigin(arg__1)); +} + +void PythonQtWrapper_QPainter::setBrushOrigin(QPainter* theWrappedObject, int x, int y) +{ + ( theWrappedObject->setBrushOrigin(x, y)); +} + +void PythonQtWrapper_QPainter::setClipPath(QPainter* theWrappedObject, const QPainterPath& path, Qt::ClipOperation op) +{ + ( theWrappedObject->setClipPath(path, op)); +} + +void PythonQtWrapper_QPainter::setClipRect(QPainter* theWrappedObject, const QRect& arg__1, Qt::ClipOperation op) +{ + ( theWrappedObject->setClipRect(arg__1, op)); +} + +void PythonQtWrapper_QPainter::setClipRect(QPainter* theWrappedObject, const QRectF& arg__1, Qt::ClipOperation op) +{ + ( theWrappedObject->setClipRect(arg__1, op)); +} + +void PythonQtWrapper_QPainter::setClipRect(QPainter* theWrappedObject, int x, int y, int w, int h, Qt::ClipOperation op) +{ + ( theWrappedObject->setClipRect(x, y, w, h, op)); +} + +void PythonQtWrapper_QPainter::setClipRegion(QPainter* theWrappedObject, const QRegion& arg__1, Qt::ClipOperation op) +{ + ( theWrappedObject->setClipRegion(arg__1, op)); +} + +void PythonQtWrapper_QPainter::setClipping(QPainter* theWrappedObject, bool enable) +{ + ( theWrappedObject->setClipping(enable)); +} + +void PythonQtWrapper_QPainter::setCompositionMode(QPainter* theWrappedObject, QPainter::CompositionMode mode) +{ + ( theWrappedObject->setCompositionMode(mode)); +} + +void PythonQtWrapper_QPainter::setFont(QPainter* theWrappedObject, const QFont& f) +{ + ( theWrappedObject->setFont(f)); +} + +void PythonQtWrapper_QPainter::setLayoutDirection(QPainter* theWrappedObject, Qt::LayoutDirection direction) +{ + ( theWrappedObject->setLayoutDirection(direction)); +} + +void PythonQtWrapper_QPainter::setOpacity(QPainter* theWrappedObject, qreal opacity) +{ + ( theWrappedObject->setOpacity(opacity)); +} + +void PythonQtWrapper_QPainter::setPen(QPainter* theWrappedObject, Qt::PenStyle style) +{ + ( theWrappedObject->setPen(style)); +} + +void PythonQtWrapper_QPainter::setPen(QPainter* theWrappedObject, const QColor& color) +{ + ( theWrappedObject->setPen(color)); +} + +void PythonQtWrapper_QPainter::setPen(QPainter* theWrappedObject, const QPen& pen) +{ + ( theWrappedObject->setPen(pen)); +} + +void PythonQtWrapper_QPainter::static_QPainter_setRedirected(const QPaintDevice* device, QPaintDevice* replacement, const QPoint& offset) +{ + (QPainter::setRedirected(device, replacement, offset)); +} + +void PythonQtWrapper_QPainter::setRenderHint(QPainter* theWrappedObject, QPainter::RenderHint hint, bool on) +{ + ( theWrappedObject->setRenderHint(hint, on)); +} + +void PythonQtWrapper_QPainter::setRenderHints(QPainter* theWrappedObject, QPainter::RenderHints hints, bool on) +{ + ( theWrappedObject->setRenderHints(hints, on)); +} + +void PythonQtWrapper_QPainter::setTransform(QPainter* theWrappedObject, const QTransform& transform, bool combine) +{ + ( theWrappedObject->setTransform(transform, combine)); +} + +void PythonQtWrapper_QPainter::setViewTransformEnabled(QPainter* theWrappedObject, bool enable) +{ + ( theWrappedObject->setViewTransformEnabled(enable)); +} + +void PythonQtWrapper_QPainter::setViewport(QPainter* theWrappedObject, const QRect& viewport) +{ + ( theWrappedObject->setViewport(viewport)); +} + +void PythonQtWrapper_QPainter::setViewport(QPainter* theWrappedObject, int x, int y, int w, int h) +{ + ( theWrappedObject->setViewport(x, y, w, h)); +} + +void PythonQtWrapper_QPainter::setWindow(QPainter* theWrappedObject, const QRect& window) +{ + ( theWrappedObject->setWindow(window)); +} + +void PythonQtWrapper_QPainter::setWindow(QPainter* theWrappedObject, int x, int y, int w, int h) +{ + ( theWrappedObject->setWindow(x, y, w, h)); +} + +void PythonQtWrapper_QPainter::setWorldMatrix(QPainter* theWrappedObject, const QMatrix& matrix, bool combine) +{ + ( theWrappedObject->setWorldMatrix(matrix, combine)); +} + +void PythonQtWrapper_QPainter::setWorldMatrixEnabled(QPainter* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setWorldMatrixEnabled(enabled)); +} + +void PythonQtWrapper_QPainter::setWorldTransform(QPainter* theWrappedObject, const QTransform& matrix, bool combine) +{ + ( theWrappedObject->setWorldTransform(matrix, combine)); +} + +void PythonQtWrapper_QPainter::shear(QPainter* theWrappedObject, qreal sh, qreal sv) +{ + ( theWrappedObject->shear(sh, sv)); +} + +void PythonQtWrapper_QPainter::strokePath(QPainter* theWrappedObject, const QPainterPath& path, const QPen& pen) +{ + ( theWrappedObject->strokePath(path, pen)); +} + +bool PythonQtWrapper_QPainter::testRenderHint(QPainter* theWrappedObject, QPainter::RenderHint hint) const +{ + return ( theWrappedObject->testRenderHint(hint)); +} + +const QTransform* PythonQtWrapper_QPainter::transform(QPainter* theWrappedObject) const +{ + return &( theWrappedObject->transform()); +} + +void PythonQtWrapper_QPainter::translate(QPainter* theWrappedObject, const QPoint& offset) +{ + ( theWrappedObject->translate(offset)); +} + +void PythonQtWrapper_QPainter::translate(QPainter* theWrappedObject, const QPointF& offset) +{ + ( theWrappedObject->translate(offset)); +} + +void PythonQtWrapper_QPainter::translate(QPainter* theWrappedObject, qreal dx, qreal dy) +{ + ( theWrappedObject->translate(dx, dy)); +} + +bool PythonQtWrapper_QPainter::viewTransformEnabled(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->viewTransformEnabled()); +} + +QRect PythonQtWrapper_QPainter::viewport(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->viewport()); +} + +QRect PythonQtWrapper_QPainter::window(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->window()); +} + +const QMatrix* PythonQtWrapper_QPainter::worldMatrix(QPainter* theWrappedObject) const +{ + return &( theWrappedObject->worldMatrix()); +} + +bool PythonQtWrapper_QPainter::worldMatrixEnabled(QPainter* theWrappedObject) const +{ + return ( theWrappedObject->worldMatrixEnabled()); +} + +const QTransform* PythonQtWrapper_QPainter::worldTransform(QPainter* theWrappedObject) const +{ + return &( theWrappedObject->worldTransform()); +} + + + +QPainterPath* PythonQtWrapper_QPainterPath::new_QPainterPath() +{ +return new QPainterPath(); } + +QPainterPath* PythonQtWrapper_QPainterPath::new_QPainterPath(const QPainterPath& other) +{ +return new QPainterPath(other); } + +QPainterPath* PythonQtWrapper_QPainterPath::new_QPainterPath(const QPointF& startPoint) +{ +return new QPainterPath(startPoint); } + +void PythonQtWrapper_QPainterPath::addEllipse(QPainterPath* theWrappedObject, const QPointF& center, qreal rx, qreal ry) +{ + ( theWrappedObject->addEllipse(center, rx, ry)); +} + +void PythonQtWrapper_QPainterPath::addEllipse(QPainterPath* theWrappedObject, const QRectF& rect) +{ + ( theWrappedObject->addEllipse(rect)); +} + +void PythonQtWrapper_QPainterPath::addEllipse(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h) +{ + ( theWrappedObject->addEllipse(x, y, w, h)); +} + +void PythonQtWrapper_QPainterPath::addPath(QPainterPath* theWrappedObject, const QPainterPath& path) +{ + ( theWrappedObject->addPath(path)); +} + +void PythonQtWrapper_QPainterPath::addPolygon(QPainterPath* theWrappedObject, const QPolygonF& polygon) +{ + ( theWrappedObject->addPolygon(polygon)); +} + +void PythonQtWrapper_QPainterPath::addRect(QPainterPath* theWrappedObject, const QRectF& rect) +{ + ( theWrappedObject->addRect(rect)); +} + +void PythonQtWrapper_QPainterPath::addRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h) +{ + ( theWrappedObject->addRect(x, y, w, h)); +} + +void PythonQtWrapper_QPainterPath::addRegion(QPainterPath* theWrappedObject, const QRegion& region) +{ + ( theWrappedObject->addRegion(region)); +} + +void PythonQtWrapper_QPainterPath::addRoundRect(QPainterPath* theWrappedObject, const QRectF& rect, int roundness) +{ + ( theWrappedObject->addRoundRect(rect, roundness)); +} + +void PythonQtWrapper_QPainterPath::addRoundRect(QPainterPath* theWrappedObject, const QRectF& rect, int xRnd, int yRnd) +{ + ( theWrappedObject->addRoundRect(rect, xRnd, yRnd)); +} + +void PythonQtWrapper_QPainterPath::addRoundRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int roundness) +{ + ( theWrappedObject->addRoundRect(x, y, w, h, roundness)); +} + +void PythonQtWrapper_QPainterPath::addRoundRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int xRnd, int yRnd) +{ + ( theWrappedObject->addRoundRect(x, y, w, h, xRnd, yRnd)); +} + +void PythonQtWrapper_QPainterPath::addRoundedRect(QPainterPath* theWrappedObject, const QRectF& rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode) +{ + ( theWrappedObject->addRoundedRect(rect, xRadius, yRadius, mode)); +} + +void PythonQtWrapper_QPainterPath::addRoundedRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, qreal xRadius, qreal yRadius, Qt::SizeMode mode) +{ + ( theWrappedObject->addRoundedRect(x, y, w, h, xRadius, yRadius, mode)); +} + +void PythonQtWrapper_QPainterPath::addText(QPainterPath* theWrappedObject, const QPointF& point, const QFont& f, const QString& text) +{ + ( theWrappedObject->addText(point, f, text)); +} + +void PythonQtWrapper_QPainterPath::addText(QPainterPath* theWrappedObject, qreal x, qreal y, const QFont& f, const QString& text) +{ + ( theWrappedObject->addText(x, y, f, text)); +} + +qreal PythonQtWrapper_QPainterPath::angleAtPercent(QPainterPath* theWrappedObject, qreal t) const +{ + return ( theWrappedObject->angleAtPercent(t)); +} + +void PythonQtWrapper_QPainterPath::arcMoveTo(QPainterPath* theWrappedObject, const QRectF& rect, qreal angle) +{ + ( theWrappedObject->arcMoveTo(rect, angle)); +} + +void PythonQtWrapper_QPainterPath::arcMoveTo(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, qreal angle) +{ + ( theWrappedObject->arcMoveTo(x, y, w, h, angle)); +} + +void PythonQtWrapper_QPainterPath::arcTo(QPainterPath* theWrappedObject, const QRectF& rect, qreal startAngle, qreal arcLength) +{ + ( theWrappedObject->arcTo(rect, startAngle, arcLength)); +} + +void PythonQtWrapper_QPainterPath::arcTo(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, qreal startAngle, qreal arcLength) +{ + ( theWrappedObject->arcTo(x, y, w, h, startAngle, arcLength)); +} + +QRectF PythonQtWrapper_QPainterPath::boundingRect(QPainterPath* theWrappedObject) const +{ + return ( theWrappedObject->boundingRect()); +} + +void PythonQtWrapper_QPainterPath::closeSubpath(QPainterPath* theWrappedObject) +{ + ( theWrappedObject->closeSubpath()); +} + +void PythonQtWrapper_QPainterPath::connectPath(QPainterPath* theWrappedObject, const QPainterPath& path) +{ + ( theWrappedObject->connectPath(path)); +} + +bool PythonQtWrapper_QPainterPath::contains(QPainterPath* theWrappedObject, const QPainterPath& p) const +{ + return ( theWrappedObject->contains(p)); +} + +bool PythonQtWrapper_QPainterPath::contains(QPainterPath* theWrappedObject, const QPointF& pt) const +{ + return ( theWrappedObject->contains(pt)); +} + +bool PythonQtWrapper_QPainterPath::contains(QPainterPath* theWrappedObject, const QRectF& rect) const +{ + return ( theWrappedObject->contains(rect)); +} + +QRectF PythonQtWrapper_QPainterPath::controlPointRect(QPainterPath* theWrappedObject) const +{ + return ( theWrappedObject->controlPointRect()); +} + +void PythonQtWrapper_QPainterPath::cubicTo(QPainterPath* theWrappedObject, const QPointF& ctrlPt1, const QPointF& ctrlPt2, const QPointF& endPt) +{ + ( theWrappedObject->cubicTo(ctrlPt1, ctrlPt2, endPt)); +} + +void PythonQtWrapper_QPainterPath::cubicTo(QPainterPath* theWrappedObject, qreal ctrlPt1x, qreal ctrlPt1y, qreal ctrlPt2x, qreal ctrlPt2y, qreal endPtx, qreal endPty) +{ + ( theWrappedObject->cubicTo(ctrlPt1x, ctrlPt1y, ctrlPt2x, ctrlPt2y, endPtx, endPty)); +} + +QPointF PythonQtWrapper_QPainterPath::currentPosition(QPainterPath* theWrappedObject) const +{ + return ( theWrappedObject->currentPosition()); +} + +QPainterPath::Element PythonQtWrapper_QPainterPath::elementAt(QPainterPath* theWrappedObject, int i) const +{ + return ( theWrappedObject->elementAt(i)); +} + +int PythonQtWrapper_QPainterPath::elementCount(QPainterPath* theWrappedObject) const +{ + return ( theWrappedObject->elementCount()); +} + +Qt::FillRule PythonQtWrapper_QPainterPath::fillRule(QPainterPath* theWrappedObject) const +{ + return ( theWrappedObject->fillRule()); +} + +QPainterPath PythonQtWrapper_QPainterPath::intersected(QPainterPath* theWrappedObject, const QPainterPath& r) const +{ + return ( theWrappedObject->intersected(r)); +} + +bool PythonQtWrapper_QPainterPath::intersects(QPainterPath* theWrappedObject, const QPainterPath& p) const +{ + return ( theWrappedObject->intersects(p)); +} + +bool PythonQtWrapper_QPainterPath::intersects(QPainterPath* theWrappedObject, const QRectF& rect) const +{ + return ( theWrappedObject->intersects(rect)); +} + +bool PythonQtWrapper_QPainterPath::isEmpty(QPainterPath* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +qreal PythonQtWrapper_QPainterPath::length(QPainterPath* theWrappedObject) const +{ + return ( theWrappedObject->length()); +} + +void PythonQtWrapper_QPainterPath::lineTo(QPainterPath* theWrappedObject, const QPointF& p) +{ + ( theWrappedObject->lineTo(p)); +} + +void PythonQtWrapper_QPainterPath::lineTo(QPainterPath* theWrappedObject, qreal x, qreal y) +{ + ( theWrappedObject->lineTo(x, y)); +} + +void PythonQtWrapper_QPainterPath::moveTo(QPainterPath* theWrappedObject, const QPointF& p) +{ + ( theWrappedObject->moveTo(p)); +} + +void PythonQtWrapper_QPainterPath::moveTo(QPainterPath* theWrappedObject, qreal x, qreal y) +{ + ( theWrappedObject->moveTo(x, y)); +} + +bool PythonQtWrapper_QPainterPath::__ne__(QPainterPath* theWrappedObject, const QPainterPath& other) const +{ + return ( (*theWrappedObject)!= other); +} + +QPainterPath PythonQtWrapper_QPainterPath::__and__(QPainterPath* theWrappedObject, const QPainterPath& other) const +{ + return ( (*theWrappedObject)& other); +} + +QPainterPath* PythonQtWrapper_QPainterPath::__iand__(QPainterPath* theWrappedObject, const QPainterPath& other) +{ + return &( (*theWrappedObject)&= other); +} + +QPainterPath PythonQtWrapper_QPainterPath::__mul__(QPainterPath* theWrappedObject, const QMatrix& m) +{ + return ( (*theWrappedObject)* m); +} + +QPainterPath PythonQtWrapper_QPainterPath::__mul__(QPainterPath* theWrappedObject, const QTransform& m) +{ + return ( (*theWrappedObject)* m); +} + +QPainterPath PythonQtWrapper_QPainterPath::__add__(QPainterPath* theWrappedObject, const QPainterPath& other) const +{ + return ( (*theWrappedObject)+ other); +} + +QPainterPath* PythonQtWrapper_QPainterPath::__iadd__(QPainterPath* theWrappedObject, const QPainterPath& other) +{ + return &( (*theWrappedObject)+= other); +} + +QPainterPath PythonQtWrapper_QPainterPath::__sub__(QPainterPath* theWrappedObject, const QPainterPath& other) const +{ + return ( (*theWrappedObject)- other); +} + +QPainterPath* PythonQtWrapper_QPainterPath::__isub__(QPainterPath* theWrappedObject, const QPainterPath& other) +{ + return &( (*theWrappedObject)-= other); +} + +bool PythonQtWrapper_QPainterPath::__eq__(QPainterPath* theWrappedObject, const QPainterPath& other) const +{ + return ( (*theWrappedObject)== other); +} + +QPainterPath PythonQtWrapper_QPainterPath::__or__(QPainterPath* theWrappedObject, const QPainterPath& other) const +{ + return ( (*theWrappedObject)| other); +} + +QPainterPath* PythonQtWrapper_QPainterPath::__ior__(QPainterPath* theWrappedObject, const QPainterPath& other) +{ + return &( (*theWrappedObject)|= other); +} + +qreal PythonQtWrapper_QPainterPath::percentAtLength(QPainterPath* theWrappedObject, qreal t) const +{ + return ( theWrappedObject->percentAtLength(t)); +} + +QPointF PythonQtWrapper_QPainterPath::pointAtPercent(QPainterPath* theWrappedObject, qreal t) const +{ + return ( theWrappedObject->pointAtPercent(t)); +} + +void PythonQtWrapper_QPainterPath::quadTo(QPainterPath* theWrappedObject, const QPointF& ctrlPt, const QPointF& endPt) +{ + ( theWrappedObject->quadTo(ctrlPt, endPt)); +} + +void PythonQtWrapper_QPainterPath::quadTo(QPainterPath* theWrappedObject, qreal ctrlPtx, qreal ctrlPty, qreal endPtx, qreal endPty) +{ + ( theWrappedObject->quadTo(ctrlPtx, ctrlPty, endPtx, endPty)); +} + +void PythonQtWrapper_QPainterPath::setElementPositionAt(QPainterPath* theWrappedObject, int i, qreal x, qreal y) +{ + ( theWrappedObject->setElementPositionAt(i, x, y)); +} + +void PythonQtWrapper_QPainterPath::setFillRule(QPainterPath* theWrappedObject, Qt::FillRule fillRule) +{ + ( theWrappedObject->setFillRule(fillRule)); +} + +QPainterPath PythonQtWrapper_QPainterPath::simplified(QPainterPath* theWrappedObject) const +{ + return ( theWrappedObject->simplified()); +} + +qreal PythonQtWrapper_QPainterPath::slopeAtPercent(QPainterPath* theWrappedObject, qreal t) const +{ + return ( theWrappedObject->slopeAtPercent(t)); +} + +QPainterPath PythonQtWrapper_QPainterPath::subtracted(QPainterPath* theWrappedObject, const QPainterPath& r) const +{ + return ( theWrappedObject->subtracted(r)); +} + +QPainterPath PythonQtWrapper_QPainterPath::subtractedInverted(QPainterPath* theWrappedObject, const QPainterPath& r) const +{ + return ( theWrappedObject->subtractedInverted(r)); +} + +void PythonQtWrapper_QPainterPath::swap(QPainterPath* theWrappedObject, QPainterPath& other) +{ + ( theWrappedObject->swap(other)); +} + +QPolygonF PythonQtWrapper_QPainterPath::toFillPolygon(QPainterPath* theWrappedObject, const QMatrix& matrix) const +{ + return ( theWrappedObject->toFillPolygon(matrix)); +} + +QPolygonF PythonQtWrapper_QPainterPath::toFillPolygon(QPainterPath* theWrappedObject, const QTransform& matrix) const +{ + return ( theWrappedObject->toFillPolygon(matrix)); +} + +QList PythonQtWrapper_QPainterPath::toFillPolygons(QPainterPath* theWrappedObject, const QMatrix& matrix) const +{ + return ( theWrappedObject->toFillPolygons(matrix)); +} + +QList PythonQtWrapper_QPainterPath::toFillPolygons(QPainterPath* theWrappedObject, const QTransform& matrix) const +{ + return ( theWrappedObject->toFillPolygons(matrix)); +} + +QPainterPath PythonQtWrapper_QPainterPath::toReversed(QPainterPath* theWrappedObject) const +{ + return ( theWrappedObject->toReversed()); +} + +QList PythonQtWrapper_QPainterPath::toSubpathPolygons(QPainterPath* theWrappedObject, const QMatrix& matrix) const +{ + return ( theWrappedObject->toSubpathPolygons(matrix)); +} + +QList PythonQtWrapper_QPainterPath::toSubpathPolygons(QPainterPath* theWrappedObject, const QTransform& matrix) const +{ + return ( theWrappedObject->toSubpathPolygons(matrix)); +} + +void PythonQtWrapper_QPainterPath::translate(QPainterPath* theWrappedObject, const QPointF& offset) +{ + ( theWrappedObject->translate(offset)); +} + +void PythonQtWrapper_QPainterPath::translate(QPainterPath* theWrappedObject, qreal dx, qreal dy) +{ + ( theWrappedObject->translate(dx, dy)); +} + +QPainterPath PythonQtWrapper_QPainterPath::translated(QPainterPath* theWrappedObject, const QPointF& offset) const +{ + return ( theWrappedObject->translated(offset)); +} + +QPainterPath PythonQtWrapper_QPainterPath::translated(QPainterPath* theWrappedObject, qreal dx, qreal dy) const +{ + return ( theWrappedObject->translated(dx, dy)); +} + +QPainterPath PythonQtWrapper_QPainterPath::united(QPainterPath* theWrappedObject, const QPainterPath& r) const +{ + return ( theWrappedObject->united(r)); +} + +QString PythonQtWrapper_QPainterPath::py_toString(QPainterPath* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QPainterPathStroker* PythonQtWrapper_QPainterPathStroker::new_QPainterPathStroker() +{ +return new QPainterPathStroker(); } + +Qt::PenCapStyle PythonQtWrapper_QPainterPathStroker::capStyle(QPainterPathStroker* theWrappedObject) const +{ + return ( theWrappedObject->capStyle()); +} + +QPainterPath PythonQtWrapper_QPainterPathStroker::createStroke(QPainterPathStroker* theWrappedObject, const QPainterPath& path) const +{ + return ( theWrappedObject->createStroke(path)); +} + +qreal PythonQtWrapper_QPainterPathStroker::curveThreshold(QPainterPathStroker* theWrappedObject) const +{ + return ( theWrappedObject->curveThreshold()); +} + +qreal PythonQtWrapper_QPainterPathStroker::dashOffset(QPainterPathStroker* theWrappedObject) const +{ + return ( theWrappedObject->dashOffset()); +} + +QVector PythonQtWrapper_QPainterPathStroker::dashPattern(QPainterPathStroker* theWrappedObject) const +{ + return ( theWrappedObject->dashPattern()); +} + +Qt::PenJoinStyle PythonQtWrapper_QPainterPathStroker::joinStyle(QPainterPathStroker* theWrappedObject) const +{ + return ( theWrappedObject->joinStyle()); +} + +qreal PythonQtWrapper_QPainterPathStroker::miterLimit(QPainterPathStroker* theWrappedObject) const +{ + return ( theWrappedObject->miterLimit()); +} + +void PythonQtWrapper_QPainterPathStroker::setCapStyle(QPainterPathStroker* theWrappedObject, Qt::PenCapStyle style) +{ + ( theWrappedObject->setCapStyle(style)); +} + +void PythonQtWrapper_QPainterPathStroker::setCurveThreshold(QPainterPathStroker* theWrappedObject, qreal threshold) +{ + ( theWrappedObject->setCurveThreshold(threshold)); +} + +void PythonQtWrapper_QPainterPathStroker::setDashOffset(QPainterPathStroker* theWrappedObject, qreal offset) +{ + ( theWrappedObject->setDashOffset(offset)); +} + +void PythonQtWrapper_QPainterPathStroker::setDashPattern(QPainterPathStroker* theWrappedObject, Qt::PenStyle arg__1) +{ + ( theWrappedObject->setDashPattern(arg__1)); +} + +void PythonQtWrapper_QPainterPathStroker::setDashPattern(QPainterPathStroker* theWrappedObject, const QVector& dashPattern) +{ + ( theWrappedObject->setDashPattern(dashPattern)); +} + +void PythonQtWrapper_QPainterPathStroker::setJoinStyle(QPainterPathStroker* theWrappedObject, Qt::PenJoinStyle style) +{ + ( theWrappedObject->setJoinStyle(style)); +} + +void PythonQtWrapper_QPainterPathStroker::setMiterLimit(QPainterPathStroker* theWrappedObject, qreal length) +{ + ( theWrappedObject->setMiterLimit(length)); +} + +void PythonQtWrapper_QPainterPathStroker::setWidth(QPainterPathStroker* theWrappedObject, qreal width) +{ + ( theWrappedObject->setWidth(width)); +} + +qreal PythonQtWrapper_QPainterPathStroker::width(QPainterPathStroker* theWrappedObject) const +{ + return ( theWrappedObject->width()); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QPanGesture::~PythonQtShell_QPanGesture() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QPanGesture::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPanGesture::childEvent(arg__1); +} +void PythonQtShell_QPanGesture::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPanGesture::customEvent(arg__1); +} +bool PythonQtShell_QPanGesture::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPanGesture::event(arg__1); +} +bool PythonQtShell_QPanGesture::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPanGesture::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QPanGesture::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPanGesture::timerEvent(arg__1); +} +QPanGesture* PythonQtWrapper_QPanGesture::new_QPanGesture(QObject* parent) +{ +return new PythonQtShell_QPanGesture(parent); } + +qreal PythonQtWrapper_QPanGesture::acceleration(QPanGesture* theWrappedObject) const +{ + return ( theWrappedObject->acceleration()); +} + +QPointF PythonQtWrapper_QPanGesture::delta(QPanGesture* theWrappedObject) const +{ + return ( theWrappedObject->delta()); +} + +QPointF PythonQtWrapper_QPanGesture::lastOffset(QPanGesture* theWrappedObject) const +{ + return ( theWrappedObject->lastOffset()); +} + +QPointF PythonQtWrapper_QPanGesture::offset(QPanGesture* theWrappedObject) const +{ + return ( theWrappedObject->offset()); +} + +void PythonQtWrapper_QPanGesture::setAcceleration(QPanGesture* theWrappedObject, qreal value) +{ + ( theWrappedObject->setAcceleration(value)); +} + +void PythonQtWrapper_QPanGesture::setLastOffset(QPanGesture* theWrappedObject, const QPointF& value) +{ + ( theWrappedObject->setLastOffset(value)); +} + +void PythonQtWrapper_QPanGesture::setOffset(QPanGesture* theWrappedObject, const QPointF& value) +{ + ( theWrappedObject->setOffset(value)); +} + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui4.h b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui4.h new file mode 100644 index 00000000..47d33542 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui4.h @@ -0,0 +1,2831 @@ +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined(QT_WIDGETS_LIB) +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif + +#if defined(QT_PRINTSUPPORT_LIB) +#include +#include +#endif + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QLCDNumber : public QLCDNumber +{ +public: + PythonQtShell_QLCDNumber(QWidget* parent = 0):QLCDNumber(parent),_wrapper(NULL) {}; + PythonQtShell_QLCDNumber(uint numDigits, QWidget* parent = 0):QLCDNumber(numDigits, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QLCDNumber(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QLCDNumber : public QLCDNumber +{ public: +inline bool promoted_event(QEvent* e) { return QLCDNumber::event(e); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QLCDNumber::paintEvent(arg__1); } +}; + +class PythonQtWrapper_QLCDNumber : public QObject +{ Q_OBJECT +public: +public slots: +QLCDNumber* new_QLCDNumber(QWidget* parent = 0); +QLCDNumber* new_QLCDNumber(uint numDigits, QWidget* parent = 0); +void delete_QLCDNumber(QLCDNumber* obj) { delete obj; } + bool checkOverflow(QLCDNumber* theWrappedObject, double num) const; + bool checkOverflow(QLCDNumber* theWrappedObject, int num) const; + int digitCount(QLCDNumber* theWrappedObject) const; + bool event(QLCDNumber* theWrappedObject, QEvent* e); + int intValue(QLCDNumber* theWrappedObject) const; + QLCDNumber::Mode mode(QLCDNumber* theWrappedObject) const; + void paintEvent(QLCDNumber* theWrappedObject, QPaintEvent* arg__1); + QLCDNumber::SegmentStyle segmentStyle(QLCDNumber* theWrappedObject) const; + void setDigitCount(QLCDNumber* theWrappedObject, int nDigits); + void setMode(QLCDNumber* theWrappedObject, QLCDNumber::Mode arg__1); + void setSegmentStyle(QLCDNumber* theWrappedObject, QLCDNumber::SegmentStyle arg__1); + QSize sizeHint(QLCDNumber* theWrappedObject) const; + bool smallDecimalPoint(QLCDNumber* theWrappedObject) const; + double value(QLCDNumber* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QLabel : public QLabel +{ +public: + PythonQtShell_QLabel(QWidget* parent = 0, Qt::WindowFlags f = 0):QLabel(parent, f),_wrapper(NULL) {}; + PythonQtShell_QLabel(const QString& text, QWidget* parent = 0, Qt::WindowFlags f = 0):QLabel(text, parent, f),_wrapper(NULL) {}; + + ~PythonQtShell_QLabel(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* ev); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* ev); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* ev); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* ev); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* ev); +virtual void mousePressEvent(QMouseEvent* ev); +virtual void mouseReleaseEvent(QMouseEvent* ev); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QLabel : public QLabel +{ public: +inline void promoted_changeEvent(QEvent* arg__1) { QLabel::changeEvent(arg__1); } +inline void promoted_contextMenuEvent(QContextMenuEvent* ev) { QLabel::contextMenuEvent(ev); } +inline bool promoted_event(QEvent* e) { return QLabel::event(e); } +inline void promoted_focusInEvent(QFocusEvent* ev) { QLabel::focusInEvent(ev); } +inline bool promoted_focusNextPrevChild(bool next) { return QLabel::focusNextPrevChild(next); } +inline void promoted_focusOutEvent(QFocusEvent* ev) { QLabel::focusOutEvent(ev); } +inline int promoted_heightForWidth(int arg__1) const { return QLabel::heightForWidth(arg__1); } +inline void promoted_keyPressEvent(QKeyEvent* ev) { QLabel::keyPressEvent(ev); } +inline void promoted_mouseMoveEvent(QMouseEvent* ev) { QLabel::mouseMoveEvent(ev); } +inline void promoted_mousePressEvent(QMouseEvent* ev) { QLabel::mousePressEvent(ev); } +inline void promoted_mouseReleaseEvent(QMouseEvent* ev) { QLabel::mouseReleaseEvent(ev); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QLabel::paintEvent(arg__1); } +}; + +class PythonQtWrapper_QLabel : public QObject +{ Q_OBJECT +public: +public slots: +QLabel* new_QLabel(QWidget* parent = 0, Qt::WindowFlags f = 0); +QLabel* new_QLabel(const QString& text, QWidget* parent = 0, Qt::WindowFlags f = 0); +void delete_QLabel(QLabel* obj) { delete obj; } + Qt::Alignment alignment(QLabel* theWrappedObject) const; + QWidget* buddy(QLabel* theWrappedObject) const; + void changeEvent(QLabel* theWrappedObject, QEvent* arg__1); + void contextMenuEvent(QLabel* theWrappedObject, QContextMenuEvent* ev); + bool event(QLabel* theWrappedObject, QEvent* e); + void focusInEvent(QLabel* theWrappedObject, QFocusEvent* ev); + bool focusNextPrevChild(QLabel* theWrappedObject, bool next); + void focusOutEvent(QLabel* theWrappedObject, QFocusEvent* ev); + bool hasScaledContents(QLabel* theWrappedObject) const; + bool hasSelectedText(QLabel* theWrappedObject) const; + int heightForWidth(QLabel* theWrappedObject, int arg__1) const; + int indent(QLabel* theWrappedObject) const; + void keyPressEvent(QLabel* theWrappedObject, QKeyEvent* ev); + int margin(QLabel* theWrappedObject) const; + QSize minimumSizeHint(QLabel* theWrappedObject) const; + void mouseMoveEvent(QLabel* theWrappedObject, QMouseEvent* ev); + void mousePressEvent(QLabel* theWrappedObject, QMouseEvent* ev); + void mouseReleaseEvent(QLabel* theWrappedObject, QMouseEvent* ev); + QMovie* movie(QLabel* theWrappedObject) const; + bool openExternalLinks(QLabel* theWrappedObject) const; + void paintEvent(QLabel* theWrappedObject, QPaintEvent* arg__1); + const QPicture* picture(QLabel* theWrappedObject) const; + const QPixmap* pixmap(QLabel* theWrappedObject) const; + QString selectedText(QLabel* theWrappedObject) const; + int selectionStart(QLabel* theWrappedObject) const; + void setAlignment(QLabel* theWrappedObject, Qt::Alignment arg__1); + void setBuddy(QLabel* theWrappedObject, QWidget* arg__1); + void setIndent(QLabel* theWrappedObject, int arg__1); + void setMargin(QLabel* theWrappedObject, int arg__1); + void setOpenExternalLinks(QLabel* theWrappedObject, bool open); + void setScaledContents(QLabel* theWrappedObject, bool arg__1); + void setSelection(QLabel* theWrappedObject, int arg__1, int arg__2); + void setTextFormat(QLabel* theWrappedObject, Qt::TextFormat arg__1); + void setTextInteractionFlags(QLabel* theWrappedObject, Qt::TextInteractionFlags flags); + void setWordWrap(QLabel* theWrappedObject, bool on); + QSize sizeHint(QLabel* theWrappedObject) const; + QString text(QLabel* theWrappedObject) const; + Qt::TextFormat textFormat(QLabel* theWrappedObject) const; + Qt::TextInteractionFlags textInteractionFlags(QLabel* theWrappedObject) const; + bool wordWrap(QLabel* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QLayout : public QLayout +{ +public: + PythonQtShell_QLayout():QLayout(),_wrapper(NULL) {}; + PythonQtShell_QLayout(QWidget* parent):QLayout(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QLayout(); + +virtual void addItem(QLayoutItem* arg__1); +virtual void childEvent(QChildEvent* e); +virtual QSizePolicy::ControlTypes controlTypes() const; +virtual int count() const; +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual Qt::Orientations expandingDirections() const; +virtual QRect geometry() const; +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual int indexOf(QWidget* arg__1) const; +virtual void invalidate(); +virtual bool isEmpty() const; +virtual QLayoutItem* itemAt(int index) const; +virtual QLayout* layout(); +virtual QSize maximumSize() const; +virtual int minimumHeightForWidth(int arg__1) const; +virtual QSize minimumSize() const; +virtual void setGeometry(const QRect& arg__1); +virtual QSize sizeHint() const; +virtual QSpacerItem* spacerItem(); +virtual QLayoutItem* takeAt(int index); +virtual void timerEvent(QTimerEvent* arg__1); +virtual QWidget* widget(); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QLayout : public QLayout +{ public: +inline void promoted_childEvent(QChildEvent* e) { QLayout::childEvent(e); } +inline QSizePolicy::ControlTypes promoted_controlTypes() const { return QLayout::controlTypes(); } +inline Qt::Orientations promoted_expandingDirections() const { return QLayout::expandingDirections(); } +inline QRect promoted_geometry() const { return QLayout::geometry(); } +inline int promoted_indexOf(QWidget* arg__1) const { return QLayout::indexOf(arg__1); } +inline void promoted_invalidate() { QLayout::invalidate(); } +inline bool promoted_isEmpty() const { return QLayout::isEmpty(); } +inline QLayout* promoted_layout() { return QLayout::layout(); } +inline QSize promoted_maximumSize() const { return QLayout::maximumSize(); } +inline QSize promoted_minimumSize() const { return QLayout::minimumSize(); } +inline void promoted_setGeometry(const QRect& arg__1) { QLayout::setGeometry(arg__1); } +}; + +class PythonQtWrapper_QLayout : public QObject +{ Q_OBJECT +public: +public slots: +QLayout* new_QLayout(); +QLayout* new_QLayout(QWidget* parent); +void delete_QLayout(QLayout* obj) { delete obj; } + bool activate(QLayout* theWrappedObject); + void addWidget(QLayout* theWrappedObject, QWidget* w); + void childEvent(QLayout* theWrappedObject, QChildEvent* e); + QSize static_QLayout_closestAcceptableSize(const QWidget* w, const QSize& s); + QMargins contentsMargins(QLayout* theWrappedObject) const; + QRect contentsRect(QLayout* theWrappedObject) const; + QSizePolicy::ControlTypes controlTypes(QLayout* theWrappedObject) const; + Qt::Orientations expandingDirections(QLayout* theWrappedObject) const; + QRect geometry(QLayout* theWrappedObject) const; + void getContentsMargins(QLayout* theWrappedObject, int* left, int* top, int* right, int* bottom) const; + int indexOf(QLayout* theWrappedObject, QWidget* arg__1) const; + void invalidate(QLayout* theWrappedObject); + bool isEmpty(QLayout* theWrappedObject) const; + bool isEnabled(QLayout* theWrappedObject) const; + QLayout* layout(QLayout* theWrappedObject); + QSize maximumSize(QLayout* theWrappedObject) const; + QWidget* menuBar(QLayout* theWrappedObject) const; + QSize minimumSize(QLayout* theWrappedObject) const; + QWidget* parentWidget(QLayout* theWrappedObject) const; + void removeItem(QLayout* theWrappedObject, QLayoutItem* arg__1); + void removeWidget(QLayout* theWrappedObject, QWidget* w); + void setAlignment(QLayout* theWrappedObject, Qt::Alignment alignment); + bool setAlignment(QLayout* theWrappedObject, QLayout* l, Qt::Alignment alignment); + bool setAlignment(QLayout* theWrappedObject, QWidget* w, Qt::Alignment alignment); + void setContentsMargins(QLayout* theWrappedObject, const QMargins& margins); + void setContentsMargins(QLayout* theWrappedObject, int left, int top, int right, int bottom); + void setEnabled(QLayout* theWrappedObject, bool arg__1); + void setGeometry(QLayout* theWrappedObject, const QRect& arg__1); + void setMargin(QLayout* theWrappedObject, int arg__1); + void setMenuBar(QLayout* theWrappedObject, QWidget* w); + void setSizeConstraint(QLayout* theWrappedObject, QLayout::SizeConstraint arg__1); + void setSpacing(QLayout* theWrappedObject, int arg__1); + QLayout::SizeConstraint sizeConstraint(QLayout* theWrappedObject) const; + int spacing(QLayout* theWrappedObject) const; + int totalHeightForWidth(QLayout* theWrappedObject, int w) const; + QSize totalMaximumSize(QLayout* theWrappedObject) const; + QSize totalMinimumSize(QLayout* theWrappedObject) const; + QSize totalSizeHint(QLayout* theWrappedObject) const; + void update(QLayout* theWrappedObject); +}; + + + + + +class PythonQtShell_QLayoutItem : public QLayoutItem +{ +public: + PythonQtShell_QLayoutItem(Qt::Alignment alignment = 0):QLayoutItem(alignment),_wrapper(NULL) {}; + + ~PythonQtShell_QLayoutItem(); + +virtual QSizePolicy::ControlTypes controlTypes() const; +virtual Qt::Orientations expandingDirections() const; +virtual QRect geometry() const; +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void invalidate(); +virtual bool isEmpty() const; +virtual QLayout* layout(); +virtual QSize maximumSize() const; +virtual int minimumHeightForWidth(int arg__1) const; +virtual QSize minimumSize() const; +virtual void setGeometry(const QRect& arg__1); +virtual QSize sizeHint() const; +virtual QSpacerItem* spacerItem(); +virtual QWidget* widget(); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QLayoutItem : public QLayoutItem +{ public: +inline QSizePolicy::ControlTypes promoted_controlTypes() const { return QLayoutItem::controlTypes(); } +inline bool promoted_hasHeightForWidth() const { return QLayoutItem::hasHeightForWidth(); } +inline int promoted_heightForWidth(int arg__1) const { return QLayoutItem::heightForWidth(arg__1); } +inline void promoted_invalidate() { QLayoutItem::invalidate(); } +inline QLayout* promoted_layout() { return QLayoutItem::layout(); } +inline int promoted_minimumHeightForWidth(int arg__1) const { return QLayoutItem::minimumHeightForWidth(arg__1); } +inline QSpacerItem* promoted_spacerItem() { return QLayoutItem::spacerItem(); } +inline QWidget* promoted_widget() { return QLayoutItem::widget(); } +}; + +class PythonQtWrapper_QLayoutItem : public QObject +{ Q_OBJECT +public: +public slots: +QLayoutItem* new_QLayoutItem(Qt::Alignment alignment = 0); +void delete_QLayoutItem(QLayoutItem* obj) { delete obj; } + Qt::Alignment alignment(QLayoutItem* theWrappedObject) const; + QSizePolicy::ControlTypes controlTypes(QLayoutItem* theWrappedObject) const; + bool hasHeightForWidth(QLayoutItem* theWrappedObject) const; + int heightForWidth(QLayoutItem* theWrappedObject, int arg__1) const; + void invalidate(QLayoutItem* theWrappedObject); + QLayout* layout(QLayoutItem* theWrappedObject); + int minimumHeightForWidth(QLayoutItem* theWrappedObject, int arg__1) const; + void setAlignment(QLayoutItem* theWrappedObject, Qt::Alignment a); + QSpacerItem* spacerItem(QLayoutItem* theWrappedObject); + QWidget* widget(QLayoutItem* theWrappedObject); +}; + + + + + +class PythonQtShell_QLineEdit : public QLineEdit +{ +public: + PythonQtShell_QLineEdit(QWidget* parent = 0):QLineEdit(parent),_wrapper(NULL) {}; + PythonQtShell_QLineEdit(const QString& arg__1, QWidget* parent = 0):QLineEdit(arg__1, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QLineEdit(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* e); +virtual void dragMoveEvent(QDragMoveEvent* e); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QLineEdit : public QLineEdit +{ public: +inline void promoted_changeEvent(QEvent* arg__1) { QLineEdit::changeEvent(arg__1); } +inline void promoted_contextMenuEvent(QContextMenuEvent* arg__1) { QLineEdit::contextMenuEvent(arg__1); } +inline void promoted_dragEnterEvent(QDragEnterEvent* arg__1) { QLineEdit::dragEnterEvent(arg__1); } +inline void promoted_dragLeaveEvent(QDragLeaveEvent* e) { QLineEdit::dragLeaveEvent(e); } +inline void promoted_dragMoveEvent(QDragMoveEvent* e) { QLineEdit::dragMoveEvent(e); } +inline void promoted_dropEvent(QDropEvent* arg__1) { QLineEdit::dropEvent(arg__1); } +inline bool promoted_event(QEvent* arg__1) { return QLineEdit::event(arg__1); } +inline void promoted_focusInEvent(QFocusEvent* arg__1) { QLineEdit::focusInEvent(arg__1); } +inline void promoted_focusOutEvent(QFocusEvent* arg__1) { QLineEdit::focusOutEvent(arg__1); } +inline void promoted_inputMethodEvent(QInputMethodEvent* arg__1) { QLineEdit::inputMethodEvent(arg__1); } +inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery arg__1) const { return QLineEdit::inputMethodQuery(arg__1); } +inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QLineEdit::keyPressEvent(arg__1); } +inline void promoted_mouseDoubleClickEvent(QMouseEvent* arg__1) { QLineEdit::mouseDoubleClickEvent(arg__1); } +inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QLineEdit::mouseMoveEvent(arg__1); } +inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QLineEdit::mousePressEvent(arg__1); } +inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QLineEdit::mouseReleaseEvent(arg__1); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QLineEdit::paintEvent(arg__1); } +}; + +class PythonQtWrapper_QLineEdit : public QObject +{ Q_OBJECT +public: +public slots: +QLineEdit* new_QLineEdit(QWidget* parent = 0); +QLineEdit* new_QLineEdit(const QString& arg__1, QWidget* parent = 0); +void delete_QLineEdit(QLineEdit* obj) { delete obj; } + Qt::Alignment alignment(QLineEdit* theWrappedObject) const; + void backspace(QLineEdit* theWrappedObject); + void changeEvent(QLineEdit* theWrappedObject, QEvent* arg__1); + QCompleter* completer(QLineEdit* theWrappedObject) const; + void contextMenuEvent(QLineEdit* theWrappedObject, QContextMenuEvent* arg__1); + QMenu* createStandardContextMenu(QLineEdit* theWrappedObject); + void cursorBackward(QLineEdit* theWrappedObject, bool mark, int steps = 1); + void cursorForward(QLineEdit* theWrappedObject, bool mark, int steps = 1); + Qt::CursorMoveStyle cursorMoveStyle(QLineEdit* theWrappedObject) const; + int cursorPosition(QLineEdit* theWrappedObject) const; + int cursorPositionAt(QLineEdit* theWrappedObject, const QPoint& pos); + void cursorWordBackward(QLineEdit* theWrappedObject, bool mark); + void cursorWordForward(QLineEdit* theWrappedObject, bool mark); + void del(QLineEdit* theWrappedObject); + void deselect(QLineEdit* theWrappedObject); + QString displayText(QLineEdit* theWrappedObject) const; + bool dragEnabled(QLineEdit* theWrappedObject) const; + void dragEnterEvent(QLineEdit* theWrappedObject, QDragEnterEvent* arg__1); + void dragLeaveEvent(QLineEdit* theWrappedObject, QDragLeaveEvent* e); + void dragMoveEvent(QLineEdit* theWrappedObject, QDragMoveEvent* e); + void dropEvent(QLineEdit* theWrappedObject, QDropEvent* arg__1); + QLineEdit::EchoMode echoMode(QLineEdit* theWrappedObject) const; + void end(QLineEdit* theWrappedObject, bool mark); + bool event(QLineEdit* theWrappedObject, QEvent* arg__1); + void focusInEvent(QLineEdit* theWrappedObject, QFocusEvent* arg__1); + void focusOutEvent(QLineEdit* theWrappedObject, QFocusEvent* arg__1); + void getTextMargins(QLineEdit* theWrappedObject, int* left, int* top, int* right, int* bottom) const; + bool hasAcceptableInput(QLineEdit* theWrappedObject) const; + bool hasFrame(QLineEdit* theWrappedObject) const; + bool hasSelectedText(QLineEdit* theWrappedObject) const; + void home(QLineEdit* theWrappedObject, bool mark); + QString inputMask(QLineEdit* theWrappedObject) const; + void inputMethodEvent(QLineEdit* theWrappedObject, QInputMethodEvent* arg__1); + QVariant inputMethodQuery(QLineEdit* theWrappedObject, Qt::InputMethodQuery arg__1) const; + void insert(QLineEdit* theWrappedObject, const QString& arg__1); + bool isModified(QLineEdit* theWrappedObject) const; + bool isReadOnly(QLineEdit* theWrappedObject) const; + bool isRedoAvailable(QLineEdit* theWrappedObject) const; + bool isUndoAvailable(QLineEdit* theWrappedObject) const; + void keyPressEvent(QLineEdit* theWrappedObject, QKeyEvent* arg__1); + int maxLength(QLineEdit* theWrappedObject) const; + QSize minimumSizeHint(QLineEdit* theWrappedObject) const; + void mouseDoubleClickEvent(QLineEdit* theWrappedObject, QMouseEvent* arg__1); + void mouseMoveEvent(QLineEdit* theWrappedObject, QMouseEvent* arg__1); + void mousePressEvent(QLineEdit* theWrappedObject, QMouseEvent* arg__1); + void mouseReleaseEvent(QLineEdit* theWrappedObject, QMouseEvent* arg__1); + void paintEvent(QLineEdit* theWrappedObject, QPaintEvent* arg__1); + QString placeholderText(QLineEdit* theWrappedObject) const; + QString selectedText(QLineEdit* theWrappedObject) const; + int selectionStart(QLineEdit* theWrappedObject) const; + void setAlignment(QLineEdit* theWrappedObject, Qt::Alignment flag); + void setCompleter(QLineEdit* theWrappedObject, QCompleter* completer); + void setCursorMoveStyle(QLineEdit* theWrappedObject, Qt::CursorMoveStyle style); + void setCursorPosition(QLineEdit* theWrappedObject, int arg__1); + void setDragEnabled(QLineEdit* theWrappedObject, bool b); + void setEchoMode(QLineEdit* theWrappedObject, QLineEdit::EchoMode arg__1); + void setFrame(QLineEdit* theWrappedObject, bool arg__1); + void setInputMask(QLineEdit* theWrappedObject, const QString& inputMask); + void setMaxLength(QLineEdit* theWrappedObject, int arg__1); + void setModified(QLineEdit* theWrappedObject, bool arg__1); + void setPlaceholderText(QLineEdit* theWrappedObject, const QString& arg__1); + void setReadOnly(QLineEdit* theWrappedObject, bool arg__1); + void setSelection(QLineEdit* theWrappedObject, int arg__1, int arg__2); + void setTextMargins(QLineEdit* theWrappedObject, const QMargins& margins); + void setTextMargins(QLineEdit* theWrappedObject, int left, int top, int right, int bottom); + void setValidator(QLineEdit* theWrappedObject, const QValidator* arg__1); + QSize sizeHint(QLineEdit* theWrappedObject) const; + QString text(QLineEdit* theWrappedObject) const; + QMargins textMargins(QLineEdit* theWrappedObject) const; + const QValidator* validator(QLineEdit* theWrappedObject) const; +}; + +#endif + + + +class PythonQtWrapper_QLinearGradient : public QObject +{ Q_OBJECT +public: +public slots: +QLinearGradient* new_QLinearGradient(); +QLinearGradient* new_QLinearGradient(const QPointF& start, const QPointF& finalStop); +QLinearGradient* new_QLinearGradient(qreal xStart, qreal yStart, qreal xFinalStop, qreal yFinalStop); +QLinearGradient* new_QLinearGradient(const QLinearGradient& other) { +QLinearGradient* a = new QLinearGradient(); +*((QLinearGradient*)a) = other; +return a; } +void delete_QLinearGradient(QLinearGradient* obj) { delete obj; } + QPointF finalStop(QLinearGradient* theWrappedObject) const; + void setFinalStop(QLinearGradient* theWrappedObject, const QPointF& stop); + void setFinalStop(QLinearGradient* theWrappedObject, qreal x, qreal y); + void setStart(QLinearGradient* theWrappedObject, const QPointF& start); + void setStart(QLinearGradient* theWrappedObject, qreal x, qreal y); + QPointF start(QLinearGradient* theWrappedObject) const; +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QListView : public QListView +{ +public: + PythonQtShell_QListView(QWidget* parent = 0):QListView(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QListView(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void commitData(QWidget* editor); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); +virtual void customEvent(QEvent* arg__1); +virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles = QVector()); +virtual int devType() const; +virtual void doItemsLayout(); +virtual void dragEnterEvent(QDragEnterEvent* event); +virtual void dragLeaveEvent(QDragLeaveEvent* e); +virtual void dragMoveEvent(QDragMoveEvent* e); +virtual void dropEvent(QDropEvent* e); +virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); +virtual void editorDestroyed(QObject* editor); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* event); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual int horizontalOffset() const; +virtual void horizontalScrollbarAction(int action); +virtual void horizontalScrollbarValueChanged(int value); +virtual QModelIndex indexAt(const QPoint& p) const; +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual bool isIndexHidden(const QModelIndex& index) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void keyboardSearch(const QString& search); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* event); +virtual void mouseMoveEvent(QMouseEvent* e); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* e); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* e); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reset(); +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 void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); +virtual void selectAll(); +virtual QList selectedIndexes() const; +virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); +virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; +virtual void setModel(QAbstractItemModel* model); +virtual void setRootIndex(const QModelIndex& index); +virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); +virtual void setSelectionModel(QItemSelectionModel* selectionModel); +virtual void setupViewport(QWidget* viewport); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual int sizeHintForColumn(int column) const; +virtual int sizeHintForRow(int row) const; +virtual void startDrag(Qt::DropActions supportedActions); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* e); +virtual void updateEditorData(); +virtual void updateEditorGeometries(); +virtual void updateGeometries(); +virtual int verticalOffset() const; +virtual void verticalScrollbarAction(int action); +virtual void verticalScrollbarValueChanged(int value); +virtual QStyleOptionViewItem viewOptions() const; +virtual bool viewportEvent(QEvent* event); +virtual QSize viewportSizeHint() const; +virtual QRect visualRect(const QModelIndex& index) const; +virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QListView : public QListView +{ public: +inline void promoted_currentChanged(const QModelIndex& current, const QModelIndex& previous) { QListView::currentChanged(current, previous); } +inline void promoted_dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles = QVector()) { QListView::dataChanged(topLeft, bottomRight, roles); } +inline void promoted_doItemsLayout() { QListView::doItemsLayout(); } +inline void promoted_dragLeaveEvent(QDragLeaveEvent* e) { QListView::dragLeaveEvent(e); } +inline void promoted_dragMoveEvent(QDragMoveEvent* e) { QListView::dragMoveEvent(e); } +inline void promoted_dropEvent(QDropEvent* e) { QListView::dropEvent(e); } +inline bool promoted_event(QEvent* e) { return QListView::event(e); } +inline int promoted_horizontalOffset() const { return QListView::horizontalOffset(); } +inline QModelIndex promoted_indexAt(const QPoint& p) const { return QListView::indexAt(p); } +inline bool promoted_isIndexHidden(const QModelIndex& index) const { return QListView::isIndexHidden(index); } +inline void promoted_mouseMoveEvent(QMouseEvent* e) { QListView::mouseMoveEvent(e); } +inline void promoted_mouseReleaseEvent(QMouseEvent* e) { QListView::mouseReleaseEvent(e); } +inline void promoted_paintEvent(QPaintEvent* e) { QListView::paintEvent(e); } +inline void promoted_reset() { QListView::reset(); } +inline void promoted_resizeEvent(QResizeEvent* e) { QListView::resizeEvent(e); } +inline void promoted_rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) { QListView::rowsAboutToBeRemoved(parent, start, end); } +inline void promoted_rowsInserted(const QModelIndex& parent, int start, int end) { QListView::rowsInserted(parent, start, end); } +inline void promoted_scrollContentsBy(int dx, int dy) { QListView::scrollContentsBy(dx, dy); } +inline void promoted_scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible) { QListView::scrollTo(index, hint); } +inline QList promoted_selectedIndexes() const { return QListView::selectedIndexes(); } +inline void promoted_selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) { QListView::selectionChanged(selected, deselected); } +inline void promoted_setRootIndex(const QModelIndex& index) { QListView::setRootIndex(index); } +inline void promoted_setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) { QListView::setSelection(rect, command); } +inline void promoted_startDrag(Qt::DropActions supportedActions) { QListView::startDrag(supportedActions); } +inline void promoted_timerEvent(QTimerEvent* e) { QListView::timerEvent(e); } +inline void promoted_updateGeometries() { QListView::updateGeometries(); } +inline int promoted_verticalOffset() const { return QListView::verticalOffset(); } +inline QStyleOptionViewItem promoted_viewOptions() const { return QListView::viewOptions(); } +inline QRect promoted_visualRect(const QModelIndex& index) const { return QListView::visualRect(index); } +inline QRegion promoted_visualRegionForSelection(const QItemSelection& selection) const { return QListView::visualRegionForSelection(selection); } +}; + +class PythonQtWrapper_QListView : public QObject +{ Q_OBJECT +public: +public slots: +QListView* new_QListView(QWidget* parent = 0); +void delete_QListView(QListView* obj) { delete obj; } + int batchSize(QListView* theWrappedObject) const; + void clearPropertyFlags(QListView* theWrappedObject); + void currentChanged(QListView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous); + void dataChanged(QListView* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles = QVector()); + void doItemsLayout(QListView* theWrappedObject); + void dragLeaveEvent(QListView* theWrappedObject, QDragLeaveEvent* e); + void dragMoveEvent(QListView* theWrappedObject, QDragMoveEvent* e); + void dropEvent(QListView* theWrappedObject, QDropEvent* e); + bool event(QListView* theWrappedObject, QEvent* e); + QListView::Flow flow(QListView* theWrappedObject) const; + QSize gridSize(QListView* theWrappedObject) const; + int horizontalOffset(QListView* theWrappedObject) const; + QModelIndex indexAt(QListView* theWrappedObject, const QPoint& p) const; + bool isIndexHidden(QListView* theWrappedObject, const QModelIndex& index) const; + bool isRowHidden(QListView* theWrappedObject, int row) const; + bool isSelectionRectVisible(QListView* theWrappedObject) const; + bool isWrapping(QListView* theWrappedObject) const; + QListView::LayoutMode layoutMode(QListView* theWrappedObject) const; + int modelColumn(QListView* theWrappedObject) const; + void mouseMoveEvent(QListView* theWrappedObject, QMouseEvent* e); + void mouseReleaseEvent(QListView* theWrappedObject, QMouseEvent* e); + QListView::Movement movement(QListView* theWrappedObject) const; + void paintEvent(QListView* theWrappedObject, QPaintEvent* e); + void reset(QListView* theWrappedObject); + void resizeEvent(QListView* theWrappedObject, QResizeEvent* e); + QListView::ResizeMode resizeMode(QListView* theWrappedObject) const; + void rowsAboutToBeRemoved(QListView* theWrappedObject, const QModelIndex& parent, int start, int end); + void rowsInserted(QListView* theWrappedObject, const QModelIndex& parent, int start, int end); + void scrollContentsBy(QListView* theWrappedObject, int dx, int dy); + void scrollTo(QListView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); + QList selectedIndexes(QListView* theWrappedObject) const; + void selectionChanged(QListView* theWrappedObject, const QItemSelection& selected, const QItemSelection& deselected); + void setBatchSize(QListView* theWrappedObject, int batchSize); + void setFlow(QListView* theWrappedObject, QListView::Flow flow); + void setGridSize(QListView* theWrappedObject, const QSize& size); + void setLayoutMode(QListView* theWrappedObject, QListView::LayoutMode mode); + void setModelColumn(QListView* theWrappedObject, int column); + void setMovement(QListView* theWrappedObject, QListView::Movement movement); + void setResizeMode(QListView* theWrappedObject, QListView::ResizeMode mode); + void setRootIndex(QListView* theWrappedObject, const QModelIndex& index); + void setRowHidden(QListView* theWrappedObject, int row, bool hide); + void setSelection(QListView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command); + void setSelectionRectVisible(QListView* theWrappedObject, bool show); + void setSpacing(QListView* theWrappedObject, int space); + void setUniformItemSizes(QListView* theWrappedObject, bool enable); + void setViewMode(QListView* theWrappedObject, QListView::ViewMode mode); + void setWordWrap(QListView* theWrappedObject, bool on); + void setWrapping(QListView* theWrappedObject, bool enable); + int spacing(QListView* theWrappedObject) const; + void startDrag(QListView* theWrappedObject, Qt::DropActions supportedActions); + void timerEvent(QListView* theWrappedObject, QTimerEvent* e); + bool uniformItemSizes(QListView* theWrappedObject) const; + void updateGeometries(QListView* theWrappedObject); + int verticalOffset(QListView* theWrappedObject) const; + QListView::ViewMode viewMode(QListView* theWrappedObject) const; + QStyleOptionViewItem viewOptions(QListView* theWrappedObject) const; + QRect visualRect(QListView* theWrappedObject, const QModelIndex& index) const; + QRegion visualRegionForSelection(QListView* theWrappedObject, const QItemSelection& selection) const; + bool wordWrap(QListView* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QListWidget : public QListWidget +{ +public: + PythonQtShell_QListWidget(QWidget* parent = 0):QListWidget(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QListWidget(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void commitData(QWidget* editor); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); +virtual void customEvent(QEvent* arg__1); +virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles); +virtual int devType() const; +virtual void doItemsLayout(); +virtual void dragEnterEvent(QDragEnterEvent* event); +virtual void dragLeaveEvent(QDragLeaveEvent* e); +virtual void dragMoveEvent(QDragMoveEvent* e); +virtual void dropEvent(QDropEvent* event); +virtual bool dropMimeData(int index, const QMimeData* data, Qt::DropAction action); +virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); +virtual void editorDestroyed(QObject* editor); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* event); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual int horizontalOffset() const; +virtual void horizontalScrollbarAction(int action); +virtual void horizontalScrollbarValueChanged(int value); +virtual QModelIndex indexAt(const QPoint& p) const; +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual bool isIndexHidden(const QModelIndex& index) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void keyboardSearch(const QString& search); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QMimeData* mimeData(const QList items) const; +virtual QStringList mimeTypes() const; +virtual void mouseDoubleClickEvent(QMouseEvent* event); +virtual void mouseMoveEvent(QMouseEvent* e); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* e); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* e); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reset(); +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 void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint); +virtual void selectAll(); +virtual QList selectedIndexes() const; +virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); +virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; +virtual void setRootIndex(const QModelIndex& index); +virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); +virtual void setSelectionModel(QItemSelectionModel* selectionModel); +virtual void setupViewport(QWidget* viewport); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual int sizeHintForColumn(int column) const; +virtual int sizeHintForRow(int row) const; +virtual void startDrag(Qt::DropActions supportedActions); +virtual Qt::DropActions supportedDropActions() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* e); +virtual void updateEditorData(); +virtual void updateEditorGeometries(); +virtual void updateGeometries(); +virtual int verticalOffset() const; +virtual void verticalScrollbarAction(int action); +virtual void verticalScrollbarValueChanged(int value); +virtual QStyleOptionViewItem viewOptions() const; +virtual bool viewportEvent(QEvent* event); +virtual QSize viewportSizeHint() const; +virtual QRect visualRect(const QModelIndex& index) const; +virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QListWidget : public QListWidget +{ public: +inline void promoted_dropEvent(QDropEvent* event) { QListWidget::dropEvent(event); } +inline bool promoted_dropMimeData(int index, const QMimeData* data, Qt::DropAction action) { return QListWidget::dropMimeData(index, data, action); } +inline bool promoted_event(QEvent* e) { return QListWidget::event(e); } +inline QStringList promoted_mimeTypes() const { return QListWidget::mimeTypes(); } +inline Qt::DropActions promoted_supportedDropActions() const { return QListWidget::supportedDropActions(); } +}; + +class PythonQtWrapper_QListWidget : public QObject +{ Q_OBJECT +public: +public slots: +QListWidget* new_QListWidget(QWidget* parent = 0); +void delete_QListWidget(QListWidget* obj) { delete obj; } + void addItem(QListWidget* theWrappedObject, QListWidgetItem* item); + void addItem(QListWidget* theWrappedObject, const QString& label); + void addItems(QListWidget* theWrappedObject, const QStringList& labels); + void closePersistentEditor(QListWidget* theWrappedObject, QListWidgetItem* item); + int count(QListWidget* theWrappedObject) const; + QListWidgetItem* currentItem(QListWidget* theWrappedObject) const; + int currentRow(QListWidget* theWrappedObject) const; + void dropEvent(QListWidget* theWrappedObject, QDropEvent* event); + bool dropMimeData(QListWidget* theWrappedObject, int index, const QMimeData* data, Qt::DropAction action); + void editItem(QListWidget* theWrappedObject, QListWidgetItem* item); + bool event(QListWidget* theWrappedObject, QEvent* e); + QList findItems(QListWidget* theWrappedObject, const QString& text, Qt::MatchFlags flags) const; + void insertItem(QListWidget* theWrappedObject, int row, QListWidgetItem* item); + void insertItem(QListWidget* theWrappedObject, int row, const QString& label); + void insertItems(QListWidget* theWrappedObject, int row, const QStringList& labels); + bool isSortingEnabled(QListWidget* theWrappedObject) const; + QListWidgetItem* item(QListWidget* theWrappedObject, int row) const; + QListWidgetItem* itemAt(QListWidget* theWrappedObject, const QPoint& p) const; + QListWidgetItem* itemAt(QListWidget* theWrappedObject, int x, int y) const; + QWidget* itemWidget(QListWidget* theWrappedObject, QListWidgetItem* item) const; + QStringList mimeTypes(QListWidget* theWrappedObject) const; + void openPersistentEditor(QListWidget* theWrappedObject, QListWidgetItem* item); + void removeItemWidget(QListWidget* theWrappedObject, QListWidgetItem* item); + int row(QListWidget* theWrappedObject, const QListWidgetItem* item) const; + QList selectedItems(QListWidget* theWrappedObject) const; + void setCurrentItem(QListWidget* theWrappedObject, QListWidgetItem* item); + void setCurrentItem(QListWidget* theWrappedObject, QListWidgetItem* item, QItemSelectionModel::SelectionFlags command); + void setCurrentRow(QListWidget* theWrappedObject, int row); + void setCurrentRow(QListWidget* theWrappedObject, int row, QItemSelectionModel::SelectionFlags command); + void setItemWidget(QListWidget* theWrappedObject, QListWidgetItem* item, QWidget* widget); + void setSortingEnabled(QListWidget* theWrappedObject, bool enable); + void sortItems(QListWidget* theWrappedObject, Qt::SortOrder order = Qt::AscendingOrder); + Qt::DropActions supportedDropActions(QListWidget* theWrappedObject) const; + QListWidgetItem* takeItem(QListWidget* theWrappedObject, int row); + QRect visualItemRect(QListWidget* theWrappedObject, const QListWidgetItem* item) const; +}; + + + + + +class PythonQtShell_QListWidgetItem : public QListWidgetItem +{ +public: + PythonQtShell_QListWidgetItem(QListWidget* view = 0, int type = Type):QListWidgetItem(view, type),_wrapper(NULL) {}; + PythonQtShell_QListWidgetItem(const QIcon& icon, const QString& text, QListWidget* view = 0, int type = Type):QListWidgetItem(icon, text, view, type),_wrapper(NULL) {}; + PythonQtShell_QListWidgetItem(const QString& text, QListWidget* view = 0, int type = Type):QListWidgetItem(text, view, type),_wrapper(NULL) {}; + + ~PythonQtShell_QListWidgetItem(); + +virtual QListWidgetItem* clone() const; +virtual QVariant data(int role) const; +virtual bool __lt__(const QListWidgetItem& other) const; +virtual void read(QDataStream& in); +virtual void setBackgroundColor(const QColor& color); +virtual void setData(int role, const QVariant& value); +virtual void write(QDataStream& out) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QListWidgetItem : public QListWidgetItem +{ public: +inline QListWidgetItem* promoted_clone() const { return QListWidgetItem::clone(); } +inline QVariant promoted_data(int role) const { return QListWidgetItem::data(role); } +inline void promoted_setData(int role, const QVariant& value) { QListWidgetItem::setData(role, value); } +}; + +class PythonQtWrapper_QListWidgetItem : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ItemType ) +enum ItemType{ + Type = QListWidgetItem::Type, UserType = QListWidgetItem::UserType}; +public slots: +QListWidgetItem* new_QListWidgetItem(QListWidget* view = 0, int type = Type); +QListWidgetItem* new_QListWidgetItem(const QIcon& icon, const QString& text, QListWidget* view = 0, int type = Type); +QListWidgetItem* new_QListWidgetItem(const QString& text, QListWidget* view = 0, int type = Type); +void delete_QListWidgetItem(QListWidgetItem* obj) { delete obj; } + QBrush background(QListWidgetItem* theWrappedObject) const; + Qt::CheckState checkState(QListWidgetItem* theWrappedObject) const; + QListWidgetItem* clone(QListWidgetItem* theWrappedObject) const; + QVariant data(QListWidgetItem* theWrappedObject, int role) const; + Qt::ItemFlags flags(QListWidgetItem* theWrappedObject) const; + QFont font(QListWidgetItem* theWrappedObject) const; + QBrush foreground(QListWidgetItem* theWrappedObject) const; + QIcon icon(QListWidgetItem* theWrappedObject) const; + bool isHidden(QListWidgetItem* theWrappedObject) const; + bool isSelected(QListWidgetItem* theWrappedObject) const; + QListWidget* listWidget(QListWidgetItem* theWrappedObject) const; + void setBackground(QListWidgetItem* theWrappedObject, const QBrush& brush); + void setCheckState(QListWidgetItem* theWrappedObject, Qt::CheckState state); + void setData(QListWidgetItem* theWrappedObject, int role, const QVariant& value); + void setFlags(QListWidgetItem* theWrappedObject, Qt::ItemFlags flags); + void setFont(QListWidgetItem* theWrappedObject, const QFont& font); + void setForeground(QListWidgetItem* theWrappedObject, const QBrush& brush); + void setHidden(QListWidgetItem* theWrappedObject, bool hide); + void setIcon(QListWidgetItem* theWrappedObject, const QIcon& icon); + void setSelected(QListWidgetItem* theWrappedObject, bool select); + void setSizeHint(QListWidgetItem* theWrappedObject, const QSize& size); + void setStatusTip(QListWidgetItem* theWrappedObject, const QString& statusTip); + void setText(QListWidgetItem* theWrappedObject, const QString& text); + void setTextAlignment(QListWidgetItem* theWrappedObject, int alignment); + void setToolTip(QListWidgetItem* theWrappedObject, const QString& toolTip); + void setWhatsThis(QListWidgetItem* theWrappedObject, const QString& whatsThis); + QSize sizeHint(QListWidgetItem* theWrappedObject) const; + QString statusTip(QListWidgetItem* theWrappedObject) const; + QString text(QListWidgetItem* theWrappedObject) const; + int textAlignment(QListWidgetItem* theWrappedObject) const; + QString toolTip(QListWidgetItem* theWrappedObject) const; + int type(QListWidgetItem* theWrappedObject) const; + QString whatsThis(QListWidgetItem* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QMainWindow : public QMainWindow +{ +public: + PythonQtShell_QMainWindow(QWidget* parent = 0, Qt::WindowFlags flags = 0):QMainWindow(parent, flags),_wrapper(NULL) {}; + + ~PythonQtShell_QMainWindow(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* event); +virtual QMenu* createPopupMenu(); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual QSize sizeHint() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QMainWindow : public QMainWindow +{ public: +inline void promoted_contextMenuEvent(QContextMenuEvent* event) { QMainWindow::contextMenuEvent(event); } +inline QMenu* promoted_createPopupMenu() { return QMainWindow::createPopupMenu(); } +inline bool promoted_event(QEvent* event) { return QMainWindow::event(event); } +}; + +class PythonQtWrapper_QMainWindow : public QObject +{ Q_OBJECT +public: +public slots: +QMainWindow* new_QMainWindow(QWidget* parent = 0, Qt::WindowFlags flags = 0); +void delete_QMainWindow(QMainWindow* obj) { delete obj; } + void addDockWidget(QMainWindow* theWrappedObject, Qt::DockWidgetArea area, QDockWidget* dockwidget); + void addDockWidget(QMainWindow* theWrappedObject, Qt::DockWidgetArea area, QDockWidget* dockwidget, Qt::Orientation orientation); + void addToolBar(QMainWindow* theWrappedObject, QToolBar* toolbar); + void addToolBar(QMainWindow* theWrappedObject, Qt::ToolBarArea area, QToolBar* toolbar); + QToolBar* addToolBar(QMainWindow* theWrappedObject, const QString& title); + void addToolBarBreak(QMainWindow* theWrappedObject, Qt::ToolBarArea area = Qt::TopToolBarArea); + QWidget* centralWidget(QMainWindow* theWrappedObject) const; + void contextMenuEvent(QMainWindow* theWrappedObject, QContextMenuEvent* event); + Qt::DockWidgetArea corner(QMainWindow* theWrappedObject, Qt::Corner corner) const; + QMenu* createPopupMenu(QMainWindow* theWrappedObject); + QMainWindow::DockOptions dockOptions(QMainWindow* theWrappedObject) const; + Qt::DockWidgetArea dockWidgetArea(QMainWindow* theWrappedObject, QDockWidget* dockwidget) const; + bool documentMode(QMainWindow* theWrappedObject) const; + bool event(QMainWindow* theWrappedObject, QEvent* event); + QSize iconSize(QMainWindow* theWrappedObject) const; + void insertToolBar(QMainWindow* theWrappedObject, QToolBar* before, QToolBar* toolbar); + void insertToolBarBreak(QMainWindow* theWrappedObject, QToolBar* before); + bool isAnimated(QMainWindow* theWrappedObject) const; + bool isDockNestingEnabled(QMainWindow* theWrappedObject) const; + bool isSeparator(QMainWindow* theWrappedObject, const QPoint& pos) const; + QMenuBar* menuBar(QMainWindow* theWrappedObject) const; + QWidget* menuWidget(QMainWindow* theWrappedObject) const; + void removeDockWidget(QMainWindow* theWrappedObject, QDockWidget* dockwidget); + void removeToolBar(QMainWindow* theWrappedObject, QToolBar* toolbar); + void removeToolBarBreak(QMainWindow* theWrappedObject, QToolBar* before); + bool restoreDockWidget(QMainWindow* theWrappedObject, QDockWidget* dockwidget); + bool restoreState(QMainWindow* theWrappedObject, const QByteArray& state, int version = 0); + QByteArray saveState(QMainWindow* theWrappedObject, int version = 0) const; + void setCentralWidget(QMainWindow* theWrappedObject, QWidget* widget); + void setCorner(QMainWindow* theWrappedObject, Qt::Corner corner, Qt::DockWidgetArea area); + void setDockOptions(QMainWindow* theWrappedObject, QMainWindow::DockOptions options); + void setDocumentMode(QMainWindow* theWrappedObject, bool enabled); + void setIconSize(QMainWindow* theWrappedObject, const QSize& iconSize); + void setMenuBar(QMainWindow* theWrappedObject, QMenuBar* menubar); + void setMenuWidget(QMainWindow* theWrappedObject, QWidget* menubar); + void setStatusBar(QMainWindow* theWrappedObject, QStatusBar* statusbar); + void setTabPosition(QMainWindow* theWrappedObject, Qt::DockWidgetAreas areas, QTabWidget::TabPosition tabPosition); + void setTabShape(QMainWindow* theWrappedObject, QTabWidget::TabShape tabShape); + void setToolButtonStyle(QMainWindow* theWrappedObject, Qt::ToolButtonStyle toolButtonStyle); + void setUnifiedTitleAndToolBarOnMac(QMainWindow* theWrappedObject, bool set); + void splitDockWidget(QMainWindow* theWrappedObject, QDockWidget* after, QDockWidget* dockwidget, Qt::Orientation orientation); + QStatusBar* statusBar(QMainWindow* theWrappedObject) const; + QTabWidget::TabPosition tabPosition(QMainWindow* theWrappedObject, Qt::DockWidgetArea area) const; + QTabWidget::TabShape tabShape(QMainWindow* theWrappedObject) const; + QList tabifiedDockWidgets(QMainWindow* theWrappedObject, QDockWidget* dockwidget) const; + void tabifyDockWidget(QMainWindow* theWrappedObject, QDockWidget* first, QDockWidget* second); + Qt::ToolBarArea toolBarArea(QMainWindow* theWrappedObject, QToolBar* toolbar) const; + bool toolBarBreak(QMainWindow* theWrappedObject, QToolBar* toolbar) const; + Qt::ToolButtonStyle toolButtonStyle(QMainWindow* theWrappedObject) const; + bool unifiedTitleAndToolBarOnMac(QMainWindow* theWrappedObject) const; +}; + +#endif + + + +class PythonQtShell_QMatrix3x3 : public QMatrix3x3 +{ +public: + PythonQtShell_QMatrix3x3():QMatrix3x3(),_wrapper(NULL) {}; + + ~PythonQtShell_QMatrix3x3(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QMatrix3x3 : public QObject +{ Q_OBJECT +public: +public slots: +QMatrix3x3* new_QMatrix3x3(); +QMatrix3x3* new_QMatrix3x3(const QMatrix3x3& other) { +PythonQtShell_QMatrix3x3* a = new PythonQtShell_QMatrix3x3(); +*((QMatrix3x3*)a) = other; +return a; } +void delete_QMatrix3x3(QMatrix3x3* obj) { delete obj; } +}; + + + + + +class PythonQtWrapper_QMatrix4x4 : public QObject +{ Q_OBJECT +public: +public slots: +QMatrix4x4* new_QMatrix4x4(); +QMatrix4x4* new_QMatrix4x4(const QMatrix& matrix); +QMatrix4x4* new_QMatrix4x4(const QTransform& transform); +QMatrix4x4* new_QMatrix4x4(const float* values); +QMatrix4x4* new_QMatrix4x4(const float* values, int cols, int rows); +QMatrix4x4* new_QMatrix4x4(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m42, float m43, float m44); +QMatrix4x4* new_QMatrix4x4(const QMatrix4x4& other) { +QMatrix4x4* a = new QMatrix4x4(); +*((QMatrix4x4*)a) = other; +return a; } +void delete_QMatrix4x4(QMatrix4x4* obj) { delete obj; } + QVector4D column(QMatrix4x4* theWrappedObject, int index) const; + const float* constData(QMatrix4x4* theWrappedObject) const; + void copyDataTo(QMatrix4x4* theWrappedObject, float* values) const; + float* data(QMatrix4x4* theWrappedObject); + double determinant(QMatrix4x4* theWrappedObject) const; + void fill(QMatrix4x4* theWrappedObject, float value); + void flipCoordinates(QMatrix4x4* theWrappedObject); + void frustum(QMatrix4x4* theWrappedObject, float left, float right, float bottom, float top, float nearPlane, float farPlane); + QMatrix4x4 inverted(QMatrix4x4* theWrappedObject, bool* invertible = 0) const; + bool isIdentity(QMatrix4x4* theWrappedObject) const; + void lookAt(QMatrix4x4* theWrappedObject, const QVector3D& eye, const QVector3D& center, const QVector3D& up); + QPoint map(QMatrix4x4* theWrappedObject, const QPoint& point) const; + QPointF map(QMatrix4x4* theWrappedObject, const QPointF& point) const; + QVector3D map(QMatrix4x4* theWrappedObject, const QVector3D& point) const; + QVector4D map(QMatrix4x4* theWrappedObject, const QVector4D& point) const; + QRect mapRect(QMatrix4x4* theWrappedObject, const QRect& rect) const; + QRectF mapRect(QMatrix4x4* theWrappedObject, const QRectF& rect) const; + QVector3D mapVector(QMatrix4x4* theWrappedObject, const QVector3D& vector) const; + QMatrix3x3 normalMatrix(QMatrix4x4* theWrappedObject) const; + bool __ne__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other) const; + float* operator_cast_(QMatrix4x4* theWrappedObject, int row, int column); + QMatrix4x4 __mul__(QMatrix4x4* theWrappedObject, const QMatrix4x4& m2); + QPoint __mul__(QMatrix4x4* theWrappedObject, const QPoint& point); + QPointF __mul__(QMatrix4x4* theWrappedObject, const QPointF& point); + QVector3D __mul__(QMatrix4x4* theWrappedObject, const QVector3D& vector); + QVector4D __mul__(QMatrix4x4* theWrappedObject, const QVector4D& vector); + QMatrix4x4 __mul__(QMatrix4x4* theWrappedObject, float factor); + QMatrix4x4* __imul__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other); + QMatrix4x4* __imul__(QMatrix4x4* theWrappedObject, float factor); + QMatrix4x4 __add__(QMatrix4x4* theWrappedObject, const QMatrix4x4& m2); + QMatrix4x4* __iadd__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other); + QMatrix4x4 __sub__(QMatrix4x4* theWrappedObject, const QMatrix4x4& m2); + QMatrix4x4* __isub__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other); + QMatrix4x4 __div__(QMatrix4x4* theWrappedObject, float divisor); + QMatrix4x4* __idiv__(QMatrix4x4* theWrappedObject, float divisor); + bool __eq__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other) const; + void optimize(QMatrix4x4* theWrappedObject); + void ortho(QMatrix4x4* theWrappedObject, const QRect& rect); + void ortho(QMatrix4x4* theWrappedObject, const QRectF& rect); + void ortho(QMatrix4x4* theWrappedObject, float left, float right, float bottom, float top, float nearPlane, float farPlane); + void perspective(QMatrix4x4* theWrappedObject, float verticalAngle, float aspectRatio, float nearPlane, float farPlane); + void rotate(QMatrix4x4* theWrappedObject, const QQuaternion& quaternion); + void rotate(QMatrix4x4* theWrappedObject, float angle, const QVector3D& vector); + void rotate(QMatrix4x4* theWrappedObject, float angle, float x, float y, float z = 0.0f); + QVector4D row(QMatrix4x4* theWrappedObject, int index) const; + void scale(QMatrix4x4* theWrappedObject, const QVector3D& vector); + void scale(QMatrix4x4* theWrappedObject, float factor); + void scale(QMatrix4x4* theWrappedObject, float x, float y); + void scale(QMatrix4x4* theWrappedObject, float x, float y, float z); + void setColumn(QMatrix4x4* theWrappedObject, int index, const QVector4D& value); + void setRow(QMatrix4x4* theWrappedObject, int index, const QVector4D& value); + void setToIdentity(QMatrix4x4* theWrappedObject); + QMatrix toAffine(QMatrix4x4* theWrappedObject) const; + QTransform toTransform(QMatrix4x4* theWrappedObject) const; + QTransform toTransform(QMatrix4x4* theWrappedObject, float distanceToPlane) const; + void translate(QMatrix4x4* theWrappedObject, const QVector3D& vector); + void translate(QMatrix4x4* theWrappedObject, float x, float y); + void translate(QMatrix4x4* theWrappedObject, float x, float y, float z); + QMatrix4x4 transposed(QMatrix4x4* theWrappedObject) const; + QString py_toString(QMatrix4x4*); +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QMdiArea : public QMdiArea +{ +public: + PythonQtShell_QMdiArea(QWidget* parent = 0):QMdiArea(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QMdiArea(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* childEvent); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* object, QEvent* event); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* paintEvent); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* resizeEvent); +virtual void scrollContentsBy(int dx, int dy); +virtual void setupViewport(QWidget* viewport); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* showEvent); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* timerEvent); +virtual bool viewportEvent(QEvent* event); +virtual QSize viewportSizeHint() const; +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QMdiArea : public QMdiArea +{ public: +inline void promoted_childEvent(QChildEvent* childEvent) { QMdiArea::childEvent(childEvent); } +inline bool promoted_event(QEvent* event) { return QMdiArea::event(event); } +inline bool promoted_eventFilter(QObject* object, QEvent* event) { return QMdiArea::eventFilter(object, event); } +inline void promoted_paintEvent(QPaintEvent* paintEvent) { QMdiArea::paintEvent(paintEvent); } +inline void promoted_resizeEvent(QResizeEvent* resizeEvent) { QMdiArea::resizeEvent(resizeEvent); } +inline void promoted_scrollContentsBy(int dx, int dy) { QMdiArea::scrollContentsBy(dx, dy); } +inline void promoted_setupViewport(QWidget* viewport) { QMdiArea::setupViewport(viewport); } +inline void promoted_showEvent(QShowEvent* showEvent) { QMdiArea::showEvent(showEvent); } +inline void promoted_timerEvent(QTimerEvent* timerEvent) { QMdiArea::timerEvent(timerEvent); } +inline bool promoted_viewportEvent(QEvent* event) { return QMdiArea::viewportEvent(event); } +}; + +class PythonQtWrapper_QMdiArea : public QObject +{ Q_OBJECT +public: +Q_ENUMS(AreaOption ) +Q_FLAGS(AreaOptions ) +enum AreaOption{ + DontMaximizeSubWindowOnActivation = QMdiArea::DontMaximizeSubWindowOnActivation}; +Q_DECLARE_FLAGS(AreaOptions, AreaOption) +public slots: +QMdiArea* new_QMdiArea(QWidget* parent = 0); +void delete_QMdiArea(QMdiArea* obj) { delete obj; } + QMdiArea::WindowOrder activationOrder(QMdiArea* theWrappedObject) const; + QMdiSubWindow* activeSubWindow(QMdiArea* theWrappedObject) const; + QMdiSubWindow* addSubWindow(QMdiArea* theWrappedObject, QWidget* widget, Qt::WindowFlags flags = 0); + QBrush background(QMdiArea* theWrappedObject) const; + void childEvent(QMdiArea* theWrappedObject, QChildEvent* childEvent); + QMdiSubWindow* currentSubWindow(QMdiArea* theWrappedObject) const; + bool documentMode(QMdiArea* theWrappedObject) const; + bool event(QMdiArea* theWrappedObject, QEvent* event); + bool eventFilter(QMdiArea* theWrappedObject, QObject* object, QEvent* event); + QSize minimumSizeHint(QMdiArea* theWrappedObject) const; + void paintEvent(QMdiArea* theWrappedObject, QPaintEvent* paintEvent); + void removeSubWindow(QMdiArea* theWrappedObject, QWidget* widget); + void resizeEvent(QMdiArea* theWrappedObject, QResizeEvent* resizeEvent); + void scrollContentsBy(QMdiArea* theWrappedObject, int dx, int dy); + void setActivationOrder(QMdiArea* theWrappedObject, QMdiArea::WindowOrder order); + void setBackground(QMdiArea* theWrappedObject, const QBrush& background); + void setDocumentMode(QMdiArea* theWrappedObject, bool enabled); + void setOption(QMdiArea* theWrappedObject, QMdiArea::AreaOption option, bool on = true); + void setTabPosition(QMdiArea* theWrappedObject, QTabWidget::TabPosition position); + void setTabShape(QMdiArea* theWrappedObject, QTabWidget::TabShape shape); + void setTabsClosable(QMdiArea* theWrappedObject, bool closable); + void setTabsMovable(QMdiArea* theWrappedObject, bool movable); + void setViewMode(QMdiArea* theWrappedObject, QMdiArea::ViewMode mode); + void setupViewport(QMdiArea* theWrappedObject, QWidget* viewport); + void showEvent(QMdiArea* theWrappedObject, QShowEvent* showEvent); + QSize sizeHint(QMdiArea* theWrappedObject) const; + QList subWindowList(QMdiArea* theWrappedObject, QMdiArea::WindowOrder order = QMdiArea::CreationOrder) const; + QTabWidget::TabPosition tabPosition(QMdiArea* theWrappedObject) const; + QTabWidget::TabShape tabShape(QMdiArea* theWrappedObject) const; + bool tabsClosable(QMdiArea* theWrappedObject) const; + bool tabsMovable(QMdiArea* theWrappedObject) const; + bool testOption(QMdiArea* theWrappedObject, QMdiArea::AreaOption opton) const; + void timerEvent(QMdiArea* theWrappedObject, QTimerEvent* timerEvent); + QMdiArea::ViewMode viewMode(QMdiArea* theWrappedObject) const; + bool viewportEvent(QMdiArea* theWrappedObject, QEvent* event); +}; + + + + + +class PythonQtShell_QMdiSubWindow : public QMdiSubWindow +{ +public: + PythonQtShell_QMdiSubWindow(QWidget* parent = 0, Qt::WindowFlags flags = 0):QMdiSubWindow(parent, flags),_wrapper(NULL) {}; + + ~PythonQtShell_QMdiSubWindow(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* changeEvent); +virtual void childEvent(QChildEvent* childEvent); +virtual void closeEvent(QCloseEvent* closeEvent); +virtual void contextMenuEvent(QContextMenuEvent* contextMenuEvent); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* object, QEvent* event); +virtual void focusInEvent(QFocusEvent* focusInEvent); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* focusOutEvent); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* hideEvent); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* keyEvent); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* leaveEvent); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* mouseEvent); +virtual void mouseMoveEvent(QMouseEvent* mouseEvent); +virtual void mousePressEvent(QMouseEvent* mouseEvent); +virtual void mouseReleaseEvent(QMouseEvent* mouseEvent); +virtual void moveEvent(QMoveEvent* moveEvent); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* paintEvent); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* resizeEvent); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* showEvent); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* timerEvent); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QMdiSubWindow : public QMdiSubWindow +{ public: +inline void promoted_changeEvent(QEvent* changeEvent) { QMdiSubWindow::changeEvent(changeEvent); } +inline void promoted_childEvent(QChildEvent* childEvent) { QMdiSubWindow::childEvent(childEvent); } +inline void promoted_closeEvent(QCloseEvent* closeEvent) { QMdiSubWindow::closeEvent(closeEvent); } +inline void promoted_contextMenuEvent(QContextMenuEvent* contextMenuEvent) { QMdiSubWindow::contextMenuEvent(contextMenuEvent); } +inline bool promoted_event(QEvent* event) { return QMdiSubWindow::event(event); } +inline bool promoted_eventFilter(QObject* object, QEvent* event) { return QMdiSubWindow::eventFilter(object, event); } +inline void promoted_focusInEvent(QFocusEvent* focusInEvent) { QMdiSubWindow::focusInEvent(focusInEvent); } +inline void promoted_focusOutEvent(QFocusEvent* focusOutEvent) { QMdiSubWindow::focusOutEvent(focusOutEvent); } +inline void promoted_hideEvent(QHideEvent* hideEvent) { QMdiSubWindow::hideEvent(hideEvent); } +inline void promoted_keyPressEvent(QKeyEvent* keyEvent) { QMdiSubWindow::keyPressEvent(keyEvent); } +inline void promoted_leaveEvent(QEvent* leaveEvent) { QMdiSubWindow::leaveEvent(leaveEvent); } +inline void promoted_mouseDoubleClickEvent(QMouseEvent* mouseEvent) { QMdiSubWindow::mouseDoubleClickEvent(mouseEvent); } +inline void promoted_mouseMoveEvent(QMouseEvent* mouseEvent) { QMdiSubWindow::mouseMoveEvent(mouseEvent); } +inline void promoted_mousePressEvent(QMouseEvent* mouseEvent) { QMdiSubWindow::mousePressEvent(mouseEvent); } +inline void promoted_mouseReleaseEvent(QMouseEvent* mouseEvent) { QMdiSubWindow::mouseReleaseEvent(mouseEvent); } +inline void promoted_moveEvent(QMoveEvent* moveEvent) { QMdiSubWindow::moveEvent(moveEvent); } +inline void promoted_paintEvent(QPaintEvent* paintEvent) { QMdiSubWindow::paintEvent(paintEvent); } +inline void promoted_resizeEvent(QResizeEvent* resizeEvent) { QMdiSubWindow::resizeEvent(resizeEvent); } +inline void promoted_showEvent(QShowEvent* showEvent) { QMdiSubWindow::showEvent(showEvent); } +inline void promoted_timerEvent(QTimerEvent* timerEvent) { QMdiSubWindow::timerEvent(timerEvent); } +}; + +class PythonQtWrapper_QMdiSubWindow : public QObject +{ Q_OBJECT +public: +Q_ENUMS(SubWindowOption ) +Q_FLAGS(SubWindowOptions ) +enum SubWindowOption{ + AllowOutsideAreaHorizontally = QMdiSubWindow::AllowOutsideAreaHorizontally, AllowOutsideAreaVertically = QMdiSubWindow::AllowOutsideAreaVertically, RubberBandResize = QMdiSubWindow::RubberBandResize, RubberBandMove = QMdiSubWindow::RubberBandMove}; +Q_DECLARE_FLAGS(SubWindowOptions, SubWindowOption) +public slots: +QMdiSubWindow* new_QMdiSubWindow(QWidget* parent = 0, Qt::WindowFlags flags = 0); +void delete_QMdiSubWindow(QMdiSubWindow* obj) { delete obj; } + void changeEvent(QMdiSubWindow* theWrappedObject, QEvent* changeEvent); + void childEvent(QMdiSubWindow* theWrappedObject, QChildEvent* childEvent); + void closeEvent(QMdiSubWindow* theWrappedObject, QCloseEvent* closeEvent); + void contextMenuEvent(QMdiSubWindow* theWrappedObject, QContextMenuEvent* contextMenuEvent); + bool event(QMdiSubWindow* theWrappedObject, QEvent* event); + bool eventFilter(QMdiSubWindow* theWrappedObject, QObject* object, QEvent* event); + void focusInEvent(QMdiSubWindow* theWrappedObject, QFocusEvent* focusInEvent); + void focusOutEvent(QMdiSubWindow* theWrappedObject, QFocusEvent* focusOutEvent); + void hideEvent(QMdiSubWindow* theWrappedObject, QHideEvent* hideEvent); + bool isShaded(QMdiSubWindow* theWrappedObject) const; + void keyPressEvent(QMdiSubWindow* theWrappedObject, QKeyEvent* keyEvent); + int keyboardPageStep(QMdiSubWindow* theWrappedObject) const; + int keyboardSingleStep(QMdiSubWindow* theWrappedObject) const; + void leaveEvent(QMdiSubWindow* theWrappedObject, QEvent* leaveEvent); + QWidget* maximizedButtonsWidget(QMdiSubWindow* theWrappedObject) const; + QWidget* maximizedSystemMenuIconWidget(QMdiSubWindow* theWrappedObject) const; + QMdiArea* mdiArea(QMdiSubWindow* theWrappedObject) const; + QSize minimumSizeHint(QMdiSubWindow* theWrappedObject) const; + void mouseDoubleClickEvent(QMdiSubWindow* theWrappedObject, QMouseEvent* mouseEvent); + void mouseMoveEvent(QMdiSubWindow* theWrappedObject, QMouseEvent* mouseEvent); + void mousePressEvent(QMdiSubWindow* theWrappedObject, QMouseEvent* mouseEvent); + void mouseReleaseEvent(QMdiSubWindow* theWrappedObject, QMouseEvent* mouseEvent); + void moveEvent(QMdiSubWindow* theWrappedObject, QMoveEvent* moveEvent); + void paintEvent(QMdiSubWindow* theWrappedObject, QPaintEvent* paintEvent); + void resizeEvent(QMdiSubWindow* theWrappedObject, QResizeEvent* resizeEvent); + void setKeyboardPageStep(QMdiSubWindow* theWrappedObject, int step); + void setKeyboardSingleStep(QMdiSubWindow* theWrappedObject, int step); + void setOption(QMdiSubWindow* theWrappedObject, QMdiSubWindow::SubWindowOption option, bool on = true); + void setSystemMenu(QMdiSubWindow* theWrappedObject, QMenu* systemMenu); + void setWidget(QMdiSubWindow* theWrappedObject, QWidget* widget); + void showEvent(QMdiSubWindow* theWrappedObject, QShowEvent* showEvent); + QSize sizeHint(QMdiSubWindow* theWrappedObject) const; + QMenu* systemMenu(QMdiSubWindow* theWrappedObject) const; + bool testOption(QMdiSubWindow* theWrappedObject, QMdiSubWindow::SubWindowOption arg__1) const; + void timerEvent(QMdiSubWindow* theWrappedObject, QTimerEvent* timerEvent); + QWidget* widget(QMdiSubWindow* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QMenu : public QMenu +{ +public: + PythonQtShell_QMenu(QWidget* parent = 0):QMenu(parent),_wrapper(NULL) {}; + PythonQtShell_QMenu(const QString& title, QWidget* parent = 0):QMenu(title, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QMenu(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QMenu : public QMenu +{ public: +inline void promoted_actionEvent(QActionEvent* arg__1) { QMenu::actionEvent(arg__1); } +inline void promoted_changeEvent(QEvent* arg__1) { QMenu::changeEvent(arg__1); } +inline void promoted_enterEvent(QEvent* arg__1) { QMenu::enterEvent(arg__1); } +inline bool promoted_event(QEvent* arg__1) { return QMenu::event(arg__1); } +inline bool promoted_focusNextPrevChild(bool next) { return QMenu::focusNextPrevChild(next); } +inline void promoted_hideEvent(QHideEvent* arg__1) { QMenu::hideEvent(arg__1); } +inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QMenu::keyPressEvent(arg__1); } +inline void promoted_leaveEvent(QEvent* arg__1) { QMenu::leaveEvent(arg__1); } +inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QMenu::mouseMoveEvent(arg__1); } +inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QMenu::mousePressEvent(arg__1); } +inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QMenu::mouseReleaseEvent(arg__1); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QMenu::paintEvent(arg__1); } +inline void promoted_timerEvent(QTimerEvent* arg__1) { QMenu::timerEvent(arg__1); } +inline void promoted_wheelEvent(QWheelEvent* arg__1) { QMenu::wheelEvent(arg__1); } +}; + +class PythonQtWrapper_QMenu : public QObject +{ Q_OBJECT +public: +public slots: +QMenu* new_QMenu(QWidget* parent = 0); +QMenu* new_QMenu(const QString& title, QWidget* parent = 0); +void delete_QMenu(QMenu* obj) { delete obj; } + QAction* actionAt(QMenu* theWrappedObject, const QPoint& arg__1) const; + void actionEvent(QMenu* theWrappedObject, QActionEvent* arg__1); + QRect actionGeometry(QMenu* theWrappedObject, QAction* arg__1) const; + QAction* activeAction(QMenu* theWrappedObject) const; + QAction* addAction(QMenu* theWrappedObject, const QIcon& icon, const QString& text); + QAction* addAction(QMenu* theWrappedObject, const QIcon& icon, const QString& text, const QObject* receiver, const char* member, const QKeySequence& shortcut = 0); + QAction* addAction(QMenu* theWrappedObject, const QString& text); + QAction* addAction(QMenu* theWrappedObject, const QString& text, const QObject* receiver, const char* member, const QKeySequence& shortcut = 0); + QAction* addMenu(QMenu* theWrappedObject, QMenu* menu); + QMenu* addMenu(QMenu* theWrappedObject, const QIcon& icon, const QString& title); + QMenu* addMenu(QMenu* theWrappedObject, const QString& title); + QAction* addSeparator(QMenu* theWrappedObject); + void changeEvent(QMenu* theWrappedObject, QEvent* arg__1); + void clear(QMenu* theWrappedObject); + QAction* defaultAction(QMenu* theWrappedObject) const; + void enterEvent(QMenu* theWrappedObject, QEvent* arg__1); + bool event(QMenu* theWrappedObject, QEvent* arg__1); + QAction* exec(QMenu* theWrappedObject); + QAction* static_QMenu_exec(QList actions, const QPoint& pos, QAction* at = 0, QWidget* parent = 0); + QAction* exec(QMenu* theWrappedObject, const QPoint& pos, QAction* at = 0); + bool focusNextPrevChild(QMenu* theWrappedObject, bool next); + void hideEvent(QMenu* theWrappedObject, QHideEvent* arg__1); + void hideTearOffMenu(QMenu* theWrappedObject); + QIcon icon(QMenu* theWrappedObject) const; + QAction* insertMenu(QMenu* theWrappedObject, QAction* before, QMenu* menu); + QAction* insertSeparator(QMenu* theWrappedObject, QAction* before); + bool isEmpty(QMenu* theWrappedObject) const; + bool isTearOffEnabled(QMenu* theWrappedObject) const; + bool isTearOffMenuVisible(QMenu* theWrappedObject) const; + void keyPressEvent(QMenu* theWrappedObject, QKeyEvent* arg__1); + void leaveEvent(QMenu* theWrappedObject, QEvent* arg__1); + QAction* menuAction(QMenu* theWrappedObject) const; + void mouseMoveEvent(QMenu* theWrappedObject, QMouseEvent* arg__1); + void mousePressEvent(QMenu* theWrappedObject, QMouseEvent* arg__1); + void mouseReleaseEvent(QMenu* theWrappedObject, QMouseEvent* arg__1); + void paintEvent(QMenu* theWrappedObject, QPaintEvent* arg__1); + void popup(QMenu* theWrappedObject, const QPoint& pos, QAction* at = 0); + bool separatorsCollapsible(QMenu* theWrappedObject) const; + void setActiveAction(QMenu* theWrappedObject, QAction* act); + void setDefaultAction(QMenu* theWrappedObject, QAction* arg__1); + void setIcon(QMenu* theWrappedObject, const QIcon& icon); + void setSeparatorsCollapsible(QMenu* theWrappedObject, bool collapse); + void setTearOffEnabled(QMenu* theWrappedObject, bool arg__1); + void setTitle(QMenu* theWrappedObject, const QString& title); + QSize sizeHint(QMenu* theWrappedObject) const; + void timerEvent(QMenu* theWrappedObject, QTimerEvent* arg__1); + QString title(QMenu* theWrappedObject) const; + void wheelEvent(QMenu* theWrappedObject, QWheelEvent* arg__1); + + QAction* addAction (QMenu* menu, const QString & text, PyObject* callable, const QKeySequence & shortcut = 0) { + QAction* a = menu->addAction(text); + a->setShortcut(shortcut); + PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); + return a; + } + + QAction* addAction (QMenu* menu, const QIcon& icon, const QString& text, PyObject* callable, const QKeySequence& shortcut = 0) + { + QAction* a = menu->addAction(text); + a->setIcon(icon); + a->setShortcut(shortcut); + PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); + return a; + } + +}; + + + + + +class PythonQtShell_QMenuBar : public QMenuBar +{ +public: + PythonQtShell_QMenuBar(QWidget* parent = 0):QMenuBar(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QMenuBar(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual void setVisible(bool visible); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QMenuBar : public QMenuBar +{ public: +inline void promoted_actionEvent(QActionEvent* arg__1) { QMenuBar::actionEvent(arg__1); } +inline void promoted_changeEvent(QEvent* arg__1) { QMenuBar::changeEvent(arg__1); } +inline bool promoted_event(QEvent* arg__1) { return QMenuBar::event(arg__1); } +inline bool promoted_eventFilter(QObject* arg__1, QEvent* arg__2) { return QMenuBar::eventFilter(arg__1, arg__2); } +inline void promoted_focusInEvent(QFocusEvent* arg__1) { QMenuBar::focusInEvent(arg__1); } +inline void promoted_focusOutEvent(QFocusEvent* arg__1) { QMenuBar::focusOutEvent(arg__1); } +inline int promoted_heightForWidth(int arg__1) const { return QMenuBar::heightForWidth(arg__1); } +inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QMenuBar::keyPressEvent(arg__1); } +inline void promoted_leaveEvent(QEvent* arg__1) { QMenuBar::leaveEvent(arg__1); } +inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QMenuBar::mouseMoveEvent(arg__1); } +inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QMenuBar::mousePressEvent(arg__1); } +inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QMenuBar::mouseReleaseEvent(arg__1); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QMenuBar::paintEvent(arg__1); } +inline void promoted_resizeEvent(QResizeEvent* arg__1) { QMenuBar::resizeEvent(arg__1); } +inline void promoted_setVisible(bool visible) { QMenuBar::setVisible(visible); } +inline void promoted_timerEvent(QTimerEvent* arg__1) { QMenuBar::timerEvent(arg__1); } +}; + +class PythonQtWrapper_QMenuBar : public QObject +{ Q_OBJECT +public: +public slots: +QMenuBar* new_QMenuBar(QWidget* parent = 0); +void delete_QMenuBar(QMenuBar* obj) { delete obj; } + QAction* actionAt(QMenuBar* theWrappedObject, const QPoint& arg__1) const; + void actionEvent(QMenuBar* theWrappedObject, QActionEvent* arg__1); + QRect actionGeometry(QMenuBar* theWrappedObject, QAction* arg__1) const; + QAction* activeAction(QMenuBar* theWrappedObject) const; + QAction* addAction(QMenuBar* theWrappedObject, const QString& text); + QAction* addMenu(QMenuBar* theWrappedObject, QMenu* menu); + QMenu* addMenu(QMenuBar* theWrappedObject, const QIcon& icon, const QString& title); + QMenu* addMenu(QMenuBar* theWrappedObject, const QString& title); + QAction* addSeparator(QMenuBar* theWrappedObject); + void changeEvent(QMenuBar* theWrappedObject, QEvent* arg__1); + void clear(QMenuBar* theWrappedObject); + QWidget* cornerWidget(QMenuBar* theWrappedObject, Qt::Corner corner = Qt::TopRightCorner) const; + bool event(QMenuBar* theWrappedObject, QEvent* arg__1); + bool eventFilter(QMenuBar* theWrappedObject, QObject* arg__1, QEvent* arg__2); + void focusInEvent(QMenuBar* theWrappedObject, QFocusEvent* arg__1); + void focusOutEvent(QMenuBar* theWrappedObject, QFocusEvent* arg__1); + int heightForWidth(QMenuBar* theWrappedObject, int arg__1) const; + QAction* insertMenu(QMenuBar* theWrappedObject, QAction* before, QMenu* menu); + QAction* insertSeparator(QMenuBar* theWrappedObject, QAction* before); + bool isDefaultUp(QMenuBar* theWrappedObject) const; + bool isNativeMenuBar(QMenuBar* theWrappedObject) const; + void keyPressEvent(QMenuBar* theWrappedObject, QKeyEvent* arg__1); + void leaveEvent(QMenuBar* theWrappedObject, QEvent* arg__1); + QSize minimumSizeHint(QMenuBar* theWrappedObject) const; + void mouseMoveEvent(QMenuBar* theWrappedObject, QMouseEvent* arg__1); + void mousePressEvent(QMenuBar* theWrappedObject, QMouseEvent* arg__1); + void mouseReleaseEvent(QMenuBar* theWrappedObject, QMouseEvent* arg__1); + void paintEvent(QMenuBar* theWrappedObject, QPaintEvent* arg__1); + void resizeEvent(QMenuBar* theWrappedObject, QResizeEvent* arg__1); + void setActiveAction(QMenuBar* theWrappedObject, QAction* action); + void setCornerWidget(QMenuBar* theWrappedObject, QWidget* w, Qt::Corner corner = Qt::TopRightCorner); + void setDefaultUp(QMenuBar* theWrappedObject, bool arg__1); + void setNativeMenuBar(QMenuBar* theWrappedObject, bool nativeMenuBar); + void setVisible(QMenuBar* theWrappedObject, bool visible); + QSize sizeHint(QMenuBar* theWrappedObject) const; + void timerEvent(QMenuBar* theWrappedObject, QTimerEvent* arg__1); + + QAction* addAction (QMenuBar* menu, const QString & text, PyObject* callable) + { + QAction* a = menu->addAction(text); + PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); + return a; + } + +}; + + + + + +class PythonQtShell_QMessageBox : public QMessageBox +{ +public: + PythonQtShell_QMessageBox(QMessageBox::Icon icon, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::NoButton, QWidget* parent = 0, Qt::WindowFlags flags = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint):QMessageBox(icon, title, text, buttons, parent, flags),_wrapper(NULL) {}; + PythonQtShell_QMessageBox(QWidget* parent = 0):QMessageBox(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QMessageBox(); + +virtual void accept(); +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* event); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* event); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void done(int arg__1); +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual int exec(); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void open(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reject(); +virtual void resizeEvent(QResizeEvent* event); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* event); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QMessageBox : public QMessageBox +{ public: +inline void promoted_changeEvent(QEvent* event) { QMessageBox::changeEvent(event); } +inline void promoted_closeEvent(QCloseEvent* event) { QMessageBox::closeEvent(event); } +inline bool promoted_event(QEvent* e) { return QMessageBox::event(e); } +inline void promoted_keyPressEvent(QKeyEvent* event) { QMessageBox::keyPressEvent(event); } +inline void promoted_open() { QMessageBox::open(); } +inline void promoted_resizeEvent(QResizeEvent* event) { QMessageBox::resizeEvent(event); } +inline void promoted_showEvent(QShowEvent* event) { QMessageBox::showEvent(event); } +}; + +class PythonQtWrapper_QMessageBox : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StandardButton ButtonRole ) +Q_FLAGS(StandardButtons ) +enum StandardButton{ + NoButton = QMessageBox::NoButton, Ok = QMessageBox::Ok, Save = QMessageBox::Save, SaveAll = QMessageBox::SaveAll, Open = QMessageBox::Open, Yes = QMessageBox::Yes, YesToAll = QMessageBox::YesToAll, No = QMessageBox::No, NoToAll = QMessageBox::NoToAll, Abort = QMessageBox::Abort, Retry = QMessageBox::Retry, Ignore = QMessageBox::Ignore, Close = QMessageBox::Close, Cancel = QMessageBox::Cancel, Discard = QMessageBox::Discard, Help = QMessageBox::Help, Apply = QMessageBox::Apply, Reset = QMessageBox::Reset, RestoreDefaults = QMessageBox::RestoreDefaults, FirstButton = QMessageBox::FirstButton, LastButton = QMessageBox::LastButton, YesAll = QMessageBox::YesAll, NoAll = QMessageBox::NoAll, Default = QMessageBox::Default, Escape = QMessageBox::Escape, FlagMask = QMessageBox::FlagMask, ButtonMask = QMessageBox::ButtonMask}; +enum ButtonRole{ + InvalidRole = QMessageBox::InvalidRole, AcceptRole = QMessageBox::AcceptRole, RejectRole = QMessageBox::RejectRole, DestructiveRole = QMessageBox::DestructiveRole, ActionRole = QMessageBox::ActionRole, HelpRole = QMessageBox::HelpRole, YesRole = QMessageBox::YesRole, NoRole = QMessageBox::NoRole, ResetRole = QMessageBox::ResetRole, ApplyRole = QMessageBox::ApplyRole, NRoles = QMessageBox::NRoles}; +Q_DECLARE_FLAGS(StandardButtons, StandardButton) +public slots: +QMessageBox* new_QMessageBox(QMessageBox::Icon icon, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::NoButton, QWidget* parent = 0, Qt::WindowFlags flags = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint); +QMessageBox* new_QMessageBox(QWidget* parent = 0); +void delete_QMessageBox(QMessageBox* obj) { delete obj; } + void static_QMessageBox_about(QWidget* parent, const QString& title, const QString& text); + void static_QMessageBox_aboutQt(QWidget* parent, const QString& title = QString()); + void addButton(QMessageBox* theWrappedObject, QAbstractButton* button, QMessageBox::ButtonRole role); + QPushButton* addButton(QMessageBox* theWrappedObject, QMessageBox::StandardButton button); + QPushButton* addButton(QMessageBox* theWrappedObject, const QString& text, QMessageBox::ButtonRole role); + QAbstractButton* button(QMessageBox* theWrappedObject, QMessageBox::StandardButton which) const; + QMessageBox::ButtonRole buttonRole(QMessageBox* theWrappedObject, QAbstractButton* button) const; + QList buttons(QMessageBox* theWrappedObject) const; + void changeEvent(QMessageBox* theWrappedObject, QEvent* event); + QAbstractButton* clickedButton(QMessageBox* theWrappedObject) const; + void closeEvent(QMessageBox* theWrappedObject, QCloseEvent* event); + QMessageBox::StandardButton static_QMessageBox_critical(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::Ok, QMessageBox::StandardButton defaultButton = QMessageBox::NoButton); + int static_QMessageBox_critical(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1); + QPushButton* defaultButton(QMessageBox* theWrappedObject) const; + QString detailedText(QMessageBox* theWrappedObject) const; + QAbstractButton* escapeButton(QMessageBox* theWrappedObject) const; + bool event(QMessageBox* theWrappedObject, QEvent* e); + QMessageBox::Icon icon(QMessageBox* theWrappedObject) const; + QPixmap iconPixmap(QMessageBox* theWrappedObject) const; + QMessageBox::StandardButton static_QMessageBox_information(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::Ok, QMessageBox::StandardButton defaultButton = QMessageBox::NoButton); + QMessageBox::StandardButton static_QMessageBox_information(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1 = QMessageBox::NoButton); + QString informativeText(QMessageBox* theWrappedObject) const; + void keyPressEvent(QMessageBox* theWrappedObject, QKeyEvent* event); + void open(QMessageBox* theWrappedObject); + void open(QMessageBox* theWrappedObject, QObject* receiver, const char* member); + QMessageBox::StandardButton static_QMessageBox_question(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::StandardButtons(Yes | No), QMessageBox::StandardButton defaultButton = QMessageBox::NoButton); + int static_QMessageBox_question(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1); + void removeButton(QMessageBox* theWrappedObject, QAbstractButton* button); + void resizeEvent(QMessageBox* theWrappedObject, QResizeEvent* event); + void setDefaultButton(QMessageBox* theWrappedObject, QMessageBox::StandardButton button); + void setDefaultButton(QMessageBox* theWrappedObject, QPushButton* button); + void setDetailedText(QMessageBox* theWrappedObject, const QString& text); + void setEscapeButton(QMessageBox* theWrappedObject, QAbstractButton* button); + void setEscapeButton(QMessageBox* theWrappedObject, QMessageBox::StandardButton button); + void setIcon(QMessageBox* theWrappedObject, QMessageBox::Icon arg__1); + void setIconPixmap(QMessageBox* theWrappedObject, const QPixmap& pixmap); + void setInformativeText(QMessageBox* theWrappedObject, const QString& text); + void setStandardButtons(QMessageBox* theWrappedObject, QMessageBox::StandardButtons buttons); + void setText(QMessageBox* theWrappedObject, const QString& text); + void setTextFormat(QMessageBox* theWrappedObject, Qt::TextFormat format); + void showEvent(QMessageBox* theWrappedObject, QShowEvent* event); + QMessageBox::StandardButton standardButton(QMessageBox* theWrappedObject, QAbstractButton* button) const; + QMessageBox::StandardButtons standardButtons(QMessageBox* theWrappedObject) const; + QString text(QMessageBox* theWrappedObject) const; + Qt::TextFormat textFormat(QMessageBox* theWrappedObject) const; + QMessageBox::StandardButton static_QMessageBox_warning(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::Ok, QMessageBox::StandardButton defaultButton = QMessageBox::NoButton); + int static_QMessageBox_warning(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1); +}; + +#endif + + + +class PythonQtShell_QMouseEvent : public QMouseEvent +{ +public: + PythonQtShell_QMouseEvent(QEvent::Type type, const QPointF& localPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers):QMouseEvent(type, localPos, button, buttons, modifiers),_wrapper(NULL) {}; + PythonQtShell_QMouseEvent(QEvent::Type type, const QPointF& localPos, const QPointF& screenPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers):QMouseEvent(type, localPos, screenPos, button, buttons, modifiers),_wrapper(NULL) {}; + PythonQtShell_QMouseEvent(QEvent::Type type, const QPointF& localPos, const QPointF& windowPos, const QPointF& screenPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers):QMouseEvent(type, localPos, windowPos, screenPos, button, buttons, modifiers),_wrapper(NULL) {}; + + ~PythonQtShell_QMouseEvent(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QMouseEvent : public QObject +{ Q_OBJECT +public: +public slots: +QMouseEvent* new_QMouseEvent(QEvent::Type type, const QPointF& localPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); +QMouseEvent* new_QMouseEvent(QEvent::Type type, const QPointF& localPos, const QPointF& screenPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); +QMouseEvent* new_QMouseEvent(QEvent::Type type, const QPointF& localPos, const QPointF& windowPos, const QPointF& screenPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); +void delete_QMouseEvent(QMouseEvent* obj) { delete obj; } + Qt::MouseButton button(QMouseEvent* theWrappedObject) const; + Qt::MouseButtons buttons(QMouseEvent* theWrappedObject) const; + QPoint globalPos(QMouseEvent* theWrappedObject) const; + int globalX(QMouseEvent* theWrappedObject) const; + int globalY(QMouseEvent* theWrappedObject) const; + const QPointF* localPos(QMouseEvent* theWrappedObject) const; + QPoint pos(QMouseEvent* theWrappedObject) const; + const QPointF* screenPos(QMouseEvent* theWrappedObject) const; + const QPointF* windowPos(QMouseEvent* theWrappedObject) const; + int x(QMouseEvent* theWrappedObject) const; + int y(QMouseEvent* theWrappedObject) const; +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QMouseEventTransition : public QMouseEventTransition +{ +public: + PythonQtShell_QMouseEventTransition(QObject* object, QEvent::Type type, Qt::MouseButton button, QState* sourceState = 0):QMouseEventTransition(object, type, button, sourceState),_wrapper(NULL) {}; + PythonQtShell_QMouseEventTransition(QState* sourceState = 0):QMouseEventTransition(sourceState),_wrapper(NULL) {}; + + ~PythonQtShell_QMouseEventTransition(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool eventTest(QEvent* event); +virtual void onTransition(QEvent* event); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QMouseEventTransition : public QMouseEventTransition +{ public: +inline bool promoted_eventTest(QEvent* event) { return QMouseEventTransition::eventTest(event); } +inline void promoted_onTransition(QEvent* event) { QMouseEventTransition::onTransition(event); } +}; + +class PythonQtWrapper_QMouseEventTransition : public QObject +{ Q_OBJECT +public: +public slots: +QMouseEventTransition* new_QMouseEventTransition(QObject* object, QEvent::Type type, Qt::MouseButton button, QState* sourceState = 0); +QMouseEventTransition* new_QMouseEventTransition(QState* sourceState = 0); +void delete_QMouseEventTransition(QMouseEventTransition* obj) { delete obj; } + Qt::MouseButton button(QMouseEventTransition* theWrappedObject) const; + bool eventTest(QMouseEventTransition* theWrappedObject, QEvent* event); + QPainterPath hitTestPath(QMouseEventTransition* theWrappedObject) const; + Qt::KeyboardModifiers modifierMask(QMouseEventTransition* theWrappedObject) const; + void onTransition(QMouseEventTransition* theWrappedObject, QEvent* event); + void setButton(QMouseEventTransition* theWrappedObject, Qt::MouseButton button); + void setHitTestPath(QMouseEventTransition* theWrappedObject, const QPainterPath& path); + void setModifierMask(QMouseEventTransition* theWrappedObject, Qt::KeyboardModifiers modifiers); +}; + +#endif + + + +class PythonQtShell_QMoveEvent : public QMoveEvent +{ +public: + PythonQtShell_QMoveEvent(const QPoint& pos, const QPoint& oldPos):QMoveEvent(pos, oldPos),_wrapper(NULL) {}; + + ~PythonQtShell_QMoveEvent(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QMoveEvent : public QObject +{ Q_OBJECT +public: +public slots: +QMoveEvent* new_QMoveEvent(const QPoint& pos, const QPoint& oldPos); +void delete_QMoveEvent(QMoveEvent* obj) { delete obj; } + const QPoint* oldPos(QMoveEvent* theWrappedObject) const; + const QPoint* pos(QMoveEvent* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QMovie : public QMovie +{ +public: + PythonQtShell_QMovie(QIODevice* device, const QByteArray& format = QByteArray(), QObject* parent = 0):QMovie(device, format, parent),_wrapper(NULL) {}; + PythonQtShell_QMovie(QObject* parent = 0):QMovie(parent),_wrapper(NULL) {}; + PythonQtShell_QMovie(const QString& fileName, const QByteArray& format = QByteArray(), QObject* parent = 0):QMovie(fileName, format, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QMovie(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QMovie : public QObject +{ Q_OBJECT +public: +public slots: +QMovie* new_QMovie(QIODevice* device, const QByteArray& format = QByteArray(), QObject* parent = 0); +QMovie* new_QMovie(QObject* parent = 0); +QMovie* new_QMovie(const QString& fileName, const QByteArray& format = QByteArray(), QObject* parent = 0); +void delete_QMovie(QMovie* obj) { delete obj; } + QColor backgroundColor(QMovie* theWrappedObject) const; + QMovie::CacheMode cacheMode(QMovie* theWrappedObject) const; + int currentFrameNumber(QMovie* theWrappedObject) const; + QImage currentImage(QMovie* theWrappedObject) const; + QPixmap currentPixmap(QMovie* theWrappedObject) const; + QIODevice* device(QMovie* theWrappedObject) const; + QString fileName(QMovie* theWrappedObject) const; + QByteArray format(QMovie* theWrappedObject) const; + int frameCount(QMovie* theWrappedObject) const; + QRect frameRect(QMovie* theWrappedObject) const; + bool isValid(QMovie* theWrappedObject) const; + bool jumpToFrame(QMovie* theWrappedObject, int frameNumber); + int loopCount(QMovie* theWrappedObject) const; + int nextFrameDelay(QMovie* theWrappedObject) const; + QSize scaledSize(QMovie* theWrappedObject); + void setBackgroundColor(QMovie* theWrappedObject, const QColor& color); + void setCacheMode(QMovie* theWrappedObject, QMovie::CacheMode mode); + void setDevice(QMovie* theWrappedObject, QIODevice* device); + void setFileName(QMovie* theWrappedObject, const QString& fileName); + void setFormat(QMovie* theWrappedObject, const QByteArray& format); + void setScaledSize(QMovie* theWrappedObject, const QSize& size); + int speed(QMovie* theWrappedObject) const; + QMovie::MovieState state(QMovie* theWrappedObject) const; + QList static_QMovie_supportedFormats(); +}; + + + +#if defined(QT_PRINTSUPPORT_LIB) + +class PythonQtShell_QPageSetupDialog : public QPageSetupDialog +{ +public: + PythonQtShell_QPageSetupDialog(QPrinter* printer, QWidget* parent = 0):QPageSetupDialog(printer, parent),_wrapper(NULL) {}; + PythonQtShell_QPageSetupDialog(QWidget* parent = 0):QPageSetupDialog(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QPageSetupDialog(); + +virtual void accept(); +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void done(int result); +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual int exec(); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void open(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reject(); +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QPageSetupDialog : public QPageSetupDialog +{ public: +inline void promoted_done(int result) { QPageSetupDialog::done(result); } +inline int promoted_exec() { return QPageSetupDialog::exec(); } +inline void promoted_open() { QPageSetupDialog::open(); } +}; + +class PythonQtWrapper_QPageSetupDialog : public QObject +{ Q_OBJECT +public: +public slots: +QPageSetupDialog* new_QPageSetupDialog(QPrinter* printer, QWidget* parent = 0); +QPageSetupDialog* new_QPageSetupDialog(QWidget* parent = 0); +void delete_QPageSetupDialog(QPageSetupDialog* obj) { delete obj; } + void done(QPageSetupDialog* theWrappedObject, int result); + int exec(QPageSetupDialog* theWrappedObject); + void open(QPageSetupDialog* theWrappedObject); + void open(QPageSetupDialog* theWrappedObject, QObject* receiver, const char* member); + QPrinter* printer(QPageSetupDialog* theWrappedObject); +}; + +#endif + + + +class PythonQtShell_QPaintDevice : public QPaintDevice +{ +public: + PythonQtShell_QPaintDevice():QPaintDevice(),_wrapper(NULL) {}; + + ~PythonQtShell_QPaintDevice(); + +virtual int devType() const; +virtual void initPainter(QPainter* painter) const; +virtual int metric(QPaintDevice::PaintDeviceMetric metric) const; +virtual QPaintEngine* paintEngine() const; +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual QPainter* sharedPainter() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QPaintDevice : public QPaintDevice +{ public: +inline int promoted_devType() const { return QPaintDevice::devType(); } +inline void promoted_initPainter(QPainter* painter) const { QPaintDevice::initPainter(painter); } +inline int promoted_metric(QPaintDevice::PaintDeviceMetric metric) const { return QPaintDevice::metric(metric); } +inline QPaintDevice* promoted_redirected(QPoint* offset) const { return QPaintDevice::redirected(offset); } +inline QPainter* promoted_sharedPainter() const { return QPaintDevice::sharedPainter(); } +}; + +class PythonQtWrapper_QPaintDevice : public QObject +{ Q_OBJECT +public: +Q_ENUMS(PaintDeviceMetric ) +enum PaintDeviceMetric{ + PdmWidth = QPaintDevice::PdmWidth, PdmHeight = QPaintDevice::PdmHeight, PdmWidthMM = QPaintDevice::PdmWidthMM, PdmHeightMM = QPaintDevice::PdmHeightMM, PdmNumColors = QPaintDevice::PdmNumColors, PdmDepth = QPaintDevice::PdmDepth, PdmDpiX = QPaintDevice::PdmDpiX, PdmDpiY = QPaintDevice::PdmDpiY, PdmPhysicalDpiX = QPaintDevice::PdmPhysicalDpiX, PdmPhysicalDpiY = QPaintDevice::PdmPhysicalDpiY}; +public slots: +QPaintDevice* new_QPaintDevice(); +void delete_QPaintDevice(QPaintDevice* obj) { delete obj; } + int colorCount(QPaintDevice* theWrappedObject) const; + int depth(QPaintDevice* theWrappedObject) const; + int devType(QPaintDevice* theWrappedObject) const; + int height(QPaintDevice* theWrappedObject) const; + int heightMM(QPaintDevice* theWrappedObject) const; + void initPainter(QPaintDevice* theWrappedObject, QPainter* painter) const; + int logicalDpiX(QPaintDevice* theWrappedObject) const; + int logicalDpiY(QPaintDevice* theWrappedObject) const; + int metric(QPaintDevice* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const; + bool paintingActive(QPaintDevice* theWrappedObject) const; + int physicalDpiX(QPaintDevice* theWrappedObject) const; + int physicalDpiY(QPaintDevice* theWrappedObject) const; + QPaintDevice* redirected(QPaintDevice* theWrappedObject, QPoint* offset) const; + QPainter* sharedPainter(QPaintDevice* theWrappedObject) const; + int width(QPaintDevice* theWrappedObject) const; + int widthMM(QPaintDevice* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QPaintEngine : public QPaintEngine +{ +public: + PythonQtShell_QPaintEngine(QPaintEngine::PaintEngineFeatures features = 0):QPaintEngine(features),_wrapper(NULL) {}; + + ~PythonQtShell_QPaintEngine(); + +virtual bool begin(QPaintDevice* pdev); +virtual QPoint coordinateOffset() const; +virtual void drawEllipse(const QRect& r); +virtual void drawEllipse(const QRectF& r); +virtual void drawImage(const QRectF& r, const QImage& pm, const QRectF& sr, Qt::ImageConversionFlags flags = Qt::AutoColor); +virtual void drawLines(const QLine* lines, int lineCount); +virtual void drawLines(const QLineF* lines, int lineCount); +virtual void drawPath(const QPainterPath& path); +virtual void drawPixmap(const QRectF& r, const QPixmap& pm, const QRectF& sr); +virtual void drawPoints(const QPoint* points, int pointCount); +virtual void drawPoints(const QPointF* points, int pointCount); +virtual void drawPolygon(const QPoint* points, int pointCount, QPaintEngine::PolygonDrawMode mode); +virtual void drawPolygon(const QPointF* points, int pointCount, QPaintEngine::PolygonDrawMode mode); +virtual void drawRects(const QRect* rects, int rectCount); +virtual void drawRects(const QRectF* rects, int rectCount); +virtual void drawTextItem(const QPointF& p, const QTextItem& textItem); +virtual void drawTiledPixmap(const QRectF& r, const QPixmap& pixmap, const QPointF& s); +virtual bool end(); +virtual QPaintEngine::Type type() const; +virtual void updateState(const QPaintEngineState& state); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QPaintEngine : public QPaintEngine +{ public: +inline QPoint promoted_coordinateOffset() const { return QPaintEngine::coordinateOffset(); } +inline void promoted_drawEllipse(const QRect& r) { QPaintEngine::drawEllipse(r); } +inline void promoted_drawEllipse(const QRectF& r) { QPaintEngine::drawEllipse(r); } +inline void promoted_drawImage(const QRectF& r, const QImage& pm, const QRectF& sr, Qt::ImageConversionFlags flags = Qt::AutoColor) { QPaintEngine::drawImage(r, pm, sr, flags); } +inline void promoted_drawLines(const QLine* lines, int lineCount) { QPaintEngine::drawLines(lines, lineCount); } +inline void promoted_drawLines(const QLineF* lines, int lineCount) { QPaintEngine::drawLines(lines, lineCount); } +inline void promoted_drawPath(const QPainterPath& path) { QPaintEngine::drawPath(path); } +inline void promoted_drawPoints(const QPoint* points, int pointCount) { QPaintEngine::drawPoints(points, pointCount); } +inline void promoted_drawPoints(const QPointF* points, int pointCount) { QPaintEngine::drawPoints(points, pointCount); } +inline void promoted_drawPolygon(const QPoint* points, int pointCount, QPaintEngine::PolygonDrawMode mode) { QPaintEngine::drawPolygon(points, pointCount, mode); } +inline void promoted_drawPolygon(const QPointF* points, int pointCount, QPaintEngine::PolygonDrawMode mode) { QPaintEngine::drawPolygon(points, pointCount, mode); } +inline void promoted_drawRects(const QRect* rects, int rectCount) { QPaintEngine::drawRects(rects, rectCount); } +inline void promoted_drawRects(const QRectF* rects, int rectCount) { QPaintEngine::drawRects(rects, rectCount); } +inline void promoted_drawTextItem(const QPointF& p, const QTextItem& textItem) { QPaintEngine::drawTextItem(p, textItem); } +inline void promoted_drawTiledPixmap(const QRectF& r, const QPixmap& pixmap, const QPointF& s) { QPaintEngine::drawTiledPixmap(r, pixmap, s); } +}; + +class PythonQtWrapper_QPaintEngine : public QObject +{ Q_OBJECT +public: +Q_ENUMS(PolygonDrawMode Type DirtyFlag PaintEngineFeature ) +Q_FLAGS(DirtyFlags PaintEngineFeatures ) +enum PolygonDrawMode{ + OddEvenMode = QPaintEngine::OddEvenMode, WindingMode = QPaintEngine::WindingMode, ConvexMode = QPaintEngine::ConvexMode, PolylineMode = QPaintEngine::PolylineMode}; +enum Type{ + X11 = QPaintEngine::X11, Windows = QPaintEngine::Windows, QuickDraw = QPaintEngine::QuickDraw, CoreGraphics = QPaintEngine::CoreGraphics, MacPrinter = QPaintEngine::MacPrinter, QWindowSystem = QPaintEngine::QWindowSystem, PostScript = QPaintEngine::PostScript, OpenGL = QPaintEngine::OpenGL, Picture = QPaintEngine::Picture, SVG = QPaintEngine::SVG, Raster = QPaintEngine::Raster, Direct3D = QPaintEngine::Direct3D, Pdf = QPaintEngine::Pdf, OpenVG = QPaintEngine::OpenVG, OpenGL2 = QPaintEngine::OpenGL2, PaintBuffer = QPaintEngine::PaintBuffer, Blitter = QPaintEngine::Blitter, User = QPaintEngine::User, MaxUser = QPaintEngine::MaxUser}; +enum DirtyFlag{ + DirtyPen = QPaintEngine::DirtyPen, DirtyBrush = QPaintEngine::DirtyBrush, DirtyBrushOrigin = QPaintEngine::DirtyBrushOrigin, DirtyFont = QPaintEngine::DirtyFont, DirtyBackground = QPaintEngine::DirtyBackground, DirtyBackgroundMode = QPaintEngine::DirtyBackgroundMode, DirtyTransform = QPaintEngine::DirtyTransform, DirtyClipRegion = QPaintEngine::DirtyClipRegion, DirtyClipPath = QPaintEngine::DirtyClipPath, DirtyHints = QPaintEngine::DirtyHints, DirtyCompositionMode = QPaintEngine::DirtyCompositionMode, DirtyClipEnabled = QPaintEngine::DirtyClipEnabled, DirtyOpacity = QPaintEngine::DirtyOpacity, AllDirty = QPaintEngine::AllDirty}; +enum PaintEngineFeature{ + PrimitiveTransform = QPaintEngine::PrimitiveTransform, PatternTransform = QPaintEngine::PatternTransform, PixmapTransform = QPaintEngine::PixmapTransform, PatternBrush = QPaintEngine::PatternBrush, LinearGradientFill = QPaintEngine::LinearGradientFill, RadialGradientFill = QPaintEngine::RadialGradientFill, ConicalGradientFill = QPaintEngine::ConicalGradientFill, AlphaBlend = QPaintEngine::AlphaBlend, PorterDuff = QPaintEngine::PorterDuff, PainterPaths = QPaintEngine::PainterPaths, Antialiasing = QPaintEngine::Antialiasing, BrushStroke = QPaintEngine::BrushStroke, ConstantOpacity = QPaintEngine::ConstantOpacity, MaskedBrush = QPaintEngine::MaskedBrush, PerspectiveTransform = QPaintEngine::PerspectiveTransform, BlendModes = QPaintEngine::BlendModes, ObjectBoundingModeGradients = QPaintEngine::ObjectBoundingModeGradients, RasterOpModes = QPaintEngine::RasterOpModes, PaintOutsidePaintEvent = QPaintEngine::PaintOutsidePaintEvent, AllFeatures = QPaintEngine::AllFeatures}; +Q_DECLARE_FLAGS(DirtyFlags, DirtyFlag) +Q_DECLARE_FLAGS(PaintEngineFeatures, PaintEngineFeature) +public slots: +QPaintEngine* new_QPaintEngine(QPaintEngine::PaintEngineFeatures features = 0); +void delete_QPaintEngine(QPaintEngine* obj) { delete obj; } + void clearDirty(QPaintEngine* theWrappedObject, QPaintEngine::DirtyFlags df); + QPoint coordinateOffset(QPaintEngine* theWrappedObject) const; + void drawEllipse(QPaintEngine* theWrappedObject, const QRect& r); + void drawEllipse(QPaintEngine* theWrappedObject, const QRectF& r); + void drawImage(QPaintEngine* theWrappedObject, const QRectF& r, const QImage& pm, const QRectF& sr, Qt::ImageConversionFlags flags = Qt::AutoColor); + void drawLines(QPaintEngine* theWrappedObject, const QLine* lines, int lineCount); + void drawLines(QPaintEngine* theWrappedObject, const QLineF* lines, int lineCount); + void drawPath(QPaintEngine* theWrappedObject, const QPainterPath& path); + void drawPoints(QPaintEngine* theWrappedObject, const QPoint* points, int pointCount); + void drawPoints(QPaintEngine* theWrappedObject, const QPointF* points, int pointCount); + void drawPolygon(QPaintEngine* theWrappedObject, const QPoint* points, int pointCount, QPaintEngine::PolygonDrawMode mode); + void drawPolygon(QPaintEngine* theWrappedObject, const QPointF* points, int pointCount, QPaintEngine::PolygonDrawMode mode); + void drawRects(QPaintEngine* theWrappedObject, const QRect* rects, int rectCount); + void drawRects(QPaintEngine* theWrappedObject, const QRectF* rects, int rectCount); + void drawTextItem(QPaintEngine* theWrappedObject, const QPointF& p, const QTextItem& textItem); + void drawTiledPixmap(QPaintEngine* theWrappedObject, const QRectF& r, const QPixmap& pixmap, const QPointF& s); + bool hasFeature(QPaintEngine* theWrappedObject, QPaintEngine::PaintEngineFeatures feature) const; + bool isActive(QPaintEngine* theWrappedObject) const; + bool isExtended(QPaintEngine* theWrappedObject) const; + QPaintDevice* paintDevice(QPaintEngine* theWrappedObject) const; + QPainter* painter(QPaintEngine* theWrappedObject) const; + void setActive(QPaintEngine* theWrappedObject, bool newState); + void setDirty(QPaintEngine* theWrappedObject, QPaintEngine::DirtyFlags df); + void setSystemClip(QPaintEngine* theWrappedObject, const QRegion& baseClip); + void setSystemRect(QPaintEngine* theWrappedObject, const QRect& rect); + void syncState(QPaintEngine* theWrappedObject); + QRegion systemClip(QPaintEngine* theWrappedObject) const; + QRect systemRect(QPaintEngine* theWrappedObject) const; + bool testDirty(QPaintEngine* theWrappedObject, QPaintEngine::DirtyFlags df); +}; + + + + + +class PythonQtShell_QPaintEngineState : public QPaintEngineState +{ +public: + PythonQtShell_QPaintEngineState():QPaintEngineState(),_wrapper(NULL) {}; + + ~PythonQtShell_QPaintEngineState(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QPaintEngineState : public QObject +{ Q_OBJECT +public: +public slots: +QPaintEngineState* new_QPaintEngineState(); +void delete_QPaintEngineState(QPaintEngineState* obj) { delete obj; } + QBrush backgroundBrush(QPaintEngineState* theWrappedObject) const; + Qt::BGMode backgroundMode(QPaintEngineState* theWrappedObject) const; + QBrush brush(QPaintEngineState* theWrappedObject) const; + bool brushNeedsResolving(QPaintEngineState* theWrappedObject) const; + QPointF brushOrigin(QPaintEngineState* theWrappedObject) const; + Qt::ClipOperation clipOperation(QPaintEngineState* theWrappedObject) const; + QPainterPath clipPath(QPaintEngineState* theWrappedObject) const; + QRegion clipRegion(QPaintEngineState* theWrappedObject) const; + QPainter::CompositionMode compositionMode(QPaintEngineState* theWrappedObject) const; + QFont font(QPaintEngineState* theWrappedObject) const; + bool isClipEnabled(QPaintEngineState* theWrappedObject) const; + QMatrix matrix(QPaintEngineState* theWrappedObject) const; + qreal opacity(QPaintEngineState* theWrappedObject) const; + QPainter* painter(QPaintEngineState* theWrappedObject) const; + QPen pen(QPaintEngineState* theWrappedObject) const; + bool penNeedsResolving(QPaintEngineState* theWrappedObject) const; + QPainter::RenderHints renderHints(QPaintEngineState* theWrappedObject) const; + QPaintEngine::DirtyFlags state(QPaintEngineState* theWrappedObject) const; + QTransform transform(QPaintEngineState* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QPaintEvent : public QPaintEvent +{ +public: + PythonQtShell_QPaintEvent(const QRect& paintRect):QPaintEvent(paintRect),_wrapper(NULL) {}; + PythonQtShell_QPaintEvent(const QRegion& paintRegion):QPaintEvent(paintRegion),_wrapper(NULL) {}; + + ~PythonQtShell_QPaintEvent(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QPaintEvent : public QObject +{ Q_OBJECT +public: +public slots: +QPaintEvent* new_QPaintEvent(const QRect& paintRect); +QPaintEvent* new_QPaintEvent(const QRegion& paintRegion); +void delete_QPaintEvent(QPaintEvent* obj) { delete obj; } + const QRect* rect(QPaintEvent* theWrappedObject) const; + const QRegion* region(QPaintEvent* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QPainter : public QObject +{ Q_OBJECT +public: +Q_ENUMS(PixmapFragmentHint RenderHint CompositionMode ) +Q_FLAGS(RenderHints ) +enum PixmapFragmentHint{ + OpaqueHint = QPainter::OpaqueHint}; +enum RenderHint{ + Antialiasing = QPainter::Antialiasing, TextAntialiasing = QPainter::TextAntialiasing, SmoothPixmapTransform = QPainter::SmoothPixmapTransform, HighQualityAntialiasing = QPainter::HighQualityAntialiasing, NonCosmeticDefaultPen = QPainter::NonCosmeticDefaultPen, Qt4CompatiblePainting = QPainter::Qt4CompatiblePainting}; +enum CompositionMode{ + CompositionMode_SourceOver = QPainter::CompositionMode_SourceOver, CompositionMode_DestinationOver = QPainter::CompositionMode_DestinationOver, CompositionMode_Clear = QPainter::CompositionMode_Clear, CompositionMode_Source = QPainter::CompositionMode_Source, CompositionMode_Destination = QPainter::CompositionMode_Destination, CompositionMode_SourceIn = QPainter::CompositionMode_SourceIn, CompositionMode_DestinationIn = QPainter::CompositionMode_DestinationIn, CompositionMode_SourceOut = QPainter::CompositionMode_SourceOut, CompositionMode_DestinationOut = QPainter::CompositionMode_DestinationOut, CompositionMode_SourceAtop = QPainter::CompositionMode_SourceAtop, CompositionMode_DestinationAtop = QPainter::CompositionMode_DestinationAtop, CompositionMode_Xor = QPainter::CompositionMode_Xor, CompositionMode_Plus = QPainter::CompositionMode_Plus, CompositionMode_Multiply = QPainter::CompositionMode_Multiply, CompositionMode_Screen = QPainter::CompositionMode_Screen, CompositionMode_Overlay = QPainter::CompositionMode_Overlay, CompositionMode_Darken = QPainter::CompositionMode_Darken, CompositionMode_Lighten = QPainter::CompositionMode_Lighten, CompositionMode_ColorDodge = QPainter::CompositionMode_ColorDodge, CompositionMode_ColorBurn = QPainter::CompositionMode_ColorBurn, CompositionMode_HardLight = QPainter::CompositionMode_HardLight, CompositionMode_SoftLight = QPainter::CompositionMode_SoftLight, CompositionMode_Difference = QPainter::CompositionMode_Difference, CompositionMode_Exclusion = QPainter::CompositionMode_Exclusion, RasterOp_SourceOrDestination = QPainter::RasterOp_SourceOrDestination, RasterOp_SourceAndDestination = QPainter::RasterOp_SourceAndDestination, RasterOp_SourceXorDestination = QPainter::RasterOp_SourceXorDestination, RasterOp_NotSourceAndNotDestination = QPainter::RasterOp_NotSourceAndNotDestination, RasterOp_NotSourceOrNotDestination = QPainter::RasterOp_NotSourceOrNotDestination, RasterOp_NotSourceXorDestination = QPainter::RasterOp_NotSourceXorDestination, RasterOp_NotSource = QPainter::RasterOp_NotSource, RasterOp_NotSourceAndDestination = QPainter::RasterOp_NotSourceAndDestination, RasterOp_SourceAndNotDestination = QPainter::RasterOp_SourceAndNotDestination, RasterOp_NotSourceOrDestination = QPainter::RasterOp_NotSourceOrDestination, RasterOp_SourceOrNotDestination = QPainter::RasterOp_SourceOrNotDestination, RasterOp_ClearDestination = QPainter::RasterOp_ClearDestination, RasterOp_SetDestination = QPainter::RasterOp_SetDestination, RasterOp_NotDestination = QPainter::RasterOp_NotDestination}; +Q_DECLARE_FLAGS(RenderHints, RenderHint) +public slots: +QPainter* new_QPainter(); +void delete_QPainter(QPainter* obj) { delete obj; } + const QBrush* background(QPainter* theWrappedObject) const; + Qt::BGMode backgroundMode(QPainter* theWrappedObject) const; + bool begin(QPainter* theWrappedObject, QPaintDevice* arg__1); + void beginNativePainting(QPainter* theWrappedObject); + QRect boundingRect(QPainter* theWrappedObject, const QRect& rect, int flags, const QString& text); + QRectF boundingRect(QPainter* theWrappedObject, const QRectF& rect, const QString& text, const QTextOption& o = QTextOption()); + QRectF boundingRect(QPainter* theWrappedObject, const QRectF& rect, int flags, const QString& text); + QRect boundingRect(QPainter* theWrappedObject, int x, int y, int w, int h, int flags, const QString& text); + const QBrush* brush(QPainter* theWrappedObject) const; + QPoint brushOrigin(QPainter* theWrappedObject) const; + QRectF clipBoundingRect(QPainter* theWrappedObject) const; + QPainterPath clipPath(QPainter* theWrappedObject) const; + QRegion clipRegion(QPainter* theWrappedObject) const; + QMatrix combinedMatrix(QPainter* theWrappedObject) const; + QTransform combinedTransform(QPainter* theWrappedObject) const; + QPainter::CompositionMode compositionMode(QPainter* theWrappedObject) const; + QPaintDevice* device(QPainter* theWrappedObject) const; + const QMatrix* deviceMatrix(QPainter* theWrappedObject) const; + const QTransform* deviceTransform(QPainter* theWrappedObject) const; + void drawArc(QPainter* theWrappedObject, const QRect& arg__1, int a, int alen); + void drawArc(QPainter* theWrappedObject, const QRectF& rect, int a, int alen); + void drawArc(QPainter* theWrappedObject, int x, int y, int w, int h, int a, int alen); + void drawChord(QPainter* theWrappedObject, const QRect& arg__1, int a, int alen); + void drawChord(QPainter* theWrappedObject, const QRectF& rect, int a, int alen); + void drawChord(QPainter* theWrappedObject, int x, int y, int w, int h, int a, int alen); + void drawConvexPolygon(QPainter* theWrappedObject, const QPolygon& polygon); + void drawConvexPolygon(QPainter* theWrappedObject, const QPolygonF& polygon); + void drawEllipse(QPainter* theWrappedObject, const QPoint& center, int rx, int ry); + void drawEllipse(QPainter* theWrappedObject, const QPointF& center, qreal rx, qreal ry); + void drawEllipse(QPainter* theWrappedObject, const QRect& r); + void drawEllipse(QPainter* theWrappedObject, const QRectF& r); + void drawEllipse(QPainter* theWrappedObject, int x, int y, int w, int h); + void drawImage(QPainter* theWrappedObject, const QPoint& p, const QImage& image); + void drawImage(QPainter* theWrappedObject, const QPoint& p, const QImage& image, const QRect& sr, Qt::ImageConversionFlags flags = Qt::AutoColor); + void drawImage(QPainter* theWrappedObject, const QPointF& p, const QImage& image); + void drawImage(QPainter* theWrappedObject, const QPointF& p, const QImage& image, const QRectF& sr, Qt::ImageConversionFlags flags = Qt::AutoColor); + void drawImage(QPainter* theWrappedObject, const QRect& r, const QImage& image); + void drawImage(QPainter* theWrappedObject, const QRect& targetRect, const QImage& image, const QRect& sourceRect, Qt::ImageConversionFlags flags = Qt::AutoColor); + void drawImage(QPainter* theWrappedObject, const QRectF& r, const QImage& image); + void drawImage(QPainter* theWrappedObject, const QRectF& targetRect, const QImage& image, const QRectF& sourceRect, Qt::ImageConversionFlags flags = Qt::AutoColor); + void drawImage(QPainter* theWrappedObject, int x, int y, const QImage& image, int sx = 0, int sy = 0, int sw = -1, int sh = -1, Qt::ImageConversionFlags flags = Qt::AutoColor); + void drawLine(QPainter* theWrappedObject, const QLine& line); + void drawLine(QPainter* theWrappedObject, const QLineF& line); + void drawLine(QPainter* theWrappedObject, const QPoint& p1, const QPoint& p2); + void drawLine(QPainter* theWrappedObject, const QPointF& p1, const QPointF& p2); + void drawLine(QPainter* theWrappedObject, int x1, int y1, int x2, int y2); + void drawLines(QPainter* theWrappedObject, const QVector& lines); + void drawLines(QPainter* theWrappedObject, const QVector& lines); + void drawLines(QPainter* theWrappedObject, const QVector& pointPairs); + void drawLines(QPainter* theWrappedObject, const QVector& pointPairs); + void drawPath(QPainter* theWrappedObject, const QPainterPath& path); + void drawPicture(QPainter* theWrappedObject, const QPoint& p, const QPicture& picture); + void drawPicture(QPainter* theWrappedObject, const QPointF& p, const QPicture& picture); + void drawPicture(QPainter* theWrappedObject, int x, int y, const QPicture& picture); + void drawPie(QPainter* theWrappedObject, const QRect& arg__1, int a, int alen); + void drawPie(QPainter* theWrappedObject, const QRectF& rect, int a, int alen); + void drawPie(QPainter* theWrappedObject, int x, int y, int w, int h, int a, int alen); + void drawPixmap(QPainter* theWrappedObject, const QPoint& p, const QPixmap& pm); + void drawPixmap(QPainter* theWrappedObject, const QPoint& p, const QPixmap& pm, const QRect& sr); + void drawPixmap(QPainter* theWrappedObject, const QPointF& p, const QPixmap& pm); + void drawPixmap(QPainter* theWrappedObject, const QPointF& p, const QPixmap& pm, const QRectF& sr); + void drawPixmap(QPainter* theWrappedObject, const QRect& r, const QPixmap& pm); + void drawPixmap(QPainter* theWrappedObject, const QRect& targetRect, const QPixmap& pixmap, const QRect& sourceRect); + void drawPixmap(QPainter* theWrappedObject, const QRectF& targetRect, const QPixmap& pixmap, const QRectF& sourceRect); + void drawPixmap(QPainter* theWrappedObject, int x, int y, const QPixmap& pm); + void drawPixmap(QPainter* theWrappedObject, int x, int y, const QPixmap& pm, int sx, int sy, int sw, int sh); + void drawPixmap(QPainter* theWrappedObject, int x, int y, int w, int h, const QPixmap& pm); + void drawPixmap(QPainter* theWrappedObject, int x, int y, int w, int h, const QPixmap& pm, int sx, int sy, int sw, int sh); + void drawPoint(QPainter* theWrappedObject, const QPoint& p); + void drawPoint(QPainter* theWrappedObject, const QPointF& pt); + void drawPoint(QPainter* theWrappedObject, int x, int y); + void drawPoints(QPainter* theWrappedObject, const QPolygon& points); + void drawPoints(QPainter* theWrappedObject, const QPolygonF& points); + void drawPolygon(QPainter* theWrappedObject, const QPolygon& polygon, Qt::FillRule fillRule = Qt::OddEvenFill); + void drawPolygon(QPainter* theWrappedObject, const QPolygonF& polygon, Qt::FillRule fillRule = Qt::OddEvenFill); + void drawPolyline(QPainter* theWrappedObject, const QPolygon& polygon); + void drawPolyline(QPainter* theWrappedObject, const QPolygonF& polyline); + void drawRect(QPainter* theWrappedObject, const QRect& rect); + void drawRect(QPainter* theWrappedObject, const QRectF& rect); + void drawRect(QPainter* theWrappedObject, int x1, int y1, int w, int h); + void drawRects(QPainter* theWrappedObject, const QVector& rectangles); + void drawRects(QPainter* theWrappedObject, const QVector& rectangles); + void drawRoundRect(QPainter* theWrappedObject, const QRect& r, int xround = 25, int yround = 25); + void drawRoundRect(QPainter* theWrappedObject, const QRectF& r, int xround = 25, int yround = 25); + void drawRoundRect(QPainter* theWrappedObject, int x, int y, int w, int h, int arg__5 = 25, int arg__6 = 25); + void drawRoundedRect(QPainter* theWrappedObject, const QRect& rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize); + void drawRoundedRect(QPainter* theWrappedObject, const QRectF& rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize); + void drawRoundedRect(QPainter* theWrappedObject, int x, int y, int w, int h, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize); + void drawText(QPainter* theWrappedObject, const QPoint& p, const QString& s); + void drawText(QPainter* theWrappedObject, const QPointF& p, const QString& s); + void drawText(QPainter* theWrappedObject, const QRect& r, int flags, const QString& text, QRect* br = 0); + void drawText(QPainter* theWrappedObject, const QRectF& r, const QString& text, const QTextOption& o = QTextOption()); + void drawText(QPainter* theWrappedObject, const QRectF& r, int flags, const QString& text, QRectF* br = 0); + void drawText(QPainter* theWrappedObject, int x, int y, const QString& s); + void drawText(QPainter* theWrappedObject, int x, int y, int w, int h, int flags, const QString& text, QRect* br = 0); + void drawTextItem(QPainter* theWrappedObject, const QPoint& p, const QTextItem& ti); + void drawTextItem(QPainter* theWrappedObject, const QPointF& p, const QTextItem& ti); + void drawTextItem(QPainter* theWrappedObject, int x, int y, const QTextItem& ti); + void drawTiledPixmap(QPainter* theWrappedObject, const QRect& arg__1, const QPixmap& arg__2, const QPoint& arg__3 = QPoint()); + void drawTiledPixmap(QPainter* theWrappedObject, const QRectF& rect, const QPixmap& pm, const QPointF& offset = QPointF()); + void drawTiledPixmap(QPainter* theWrappedObject, int x, int y, int w, int h, const QPixmap& arg__5, int sx = 0, int sy = 0); + bool end(QPainter* theWrappedObject); + void endNativePainting(QPainter* theWrappedObject); + void eraseRect(QPainter* theWrappedObject, const QRect& arg__1); + void eraseRect(QPainter* theWrappedObject, const QRectF& arg__1); + void eraseRect(QPainter* theWrappedObject, int x, int y, int w, int h); + void fillPath(QPainter* theWrappedObject, const QPainterPath& path, const QBrush& brush); + void fillRect(QPainter* theWrappedObject, const QRect& arg__1, const QBrush& arg__2); + void fillRect(QPainter* theWrappedObject, const QRect& arg__1, const QColor& color); + void fillRect(QPainter* theWrappedObject, const QRect& r, Qt::BrushStyle style); + void fillRect(QPainter* theWrappedObject, const QRect& r, Qt::GlobalColor c); + void fillRect(QPainter* theWrappedObject, const QRectF& arg__1, const QBrush& arg__2); + void fillRect(QPainter* theWrappedObject, const QRectF& arg__1, const QColor& color); + void fillRect(QPainter* theWrappedObject, const QRectF& r, Qt::BrushStyle style); + void fillRect(QPainter* theWrappedObject, const QRectF& r, Qt::GlobalColor c); + void fillRect(QPainter* theWrappedObject, int x, int y, int w, int h, Qt::BrushStyle style); + void fillRect(QPainter* theWrappedObject, int x, int y, int w, int h, Qt::GlobalColor c); + void fillRect(QPainter* theWrappedObject, int x, int y, int w, int h, const QBrush& arg__5); + void fillRect(QPainter* theWrappedObject, int x, int y, int w, int h, const QColor& color); + const QFont* font(QPainter* theWrappedObject) const; + bool hasClipping(QPainter* theWrappedObject) const; + void initFrom(QPainter* theWrappedObject, const QPaintDevice* device); + bool isActive(QPainter* theWrappedObject) const; + Qt::LayoutDirection layoutDirection(QPainter* theWrappedObject) const; + qreal opacity(QPainter* theWrappedObject) const; + QPaintEngine* paintEngine(QPainter* theWrappedObject) const; + const QPen* pen(QPainter* theWrappedObject) const; + QPaintDevice* static_QPainter_redirected(const QPaintDevice* device, QPoint* offset = 0); + QPainter::RenderHints renderHints(QPainter* theWrappedObject) const; + void resetMatrix(QPainter* theWrappedObject); + void resetTransform(QPainter* theWrappedObject); + void restore(QPainter* theWrappedObject); + void static_QPainter_restoreRedirected(const QPaintDevice* device); + void rotate(QPainter* theWrappedObject, qreal a); + void save(QPainter* theWrappedObject); + void scale(QPainter* theWrappedObject, qreal sx, qreal sy); + void setBackground(QPainter* theWrappedObject, const QBrush& bg); + void setBackgroundMode(QPainter* theWrappedObject, Qt::BGMode mode); + void setBrush(QPainter* theWrappedObject, Qt::BrushStyle style); + void setBrush(QPainter* theWrappedObject, const QBrush& brush); + void setBrushOrigin(QPainter* theWrappedObject, const QPoint& arg__1); + void setBrushOrigin(QPainter* theWrappedObject, const QPointF& arg__1); + void setBrushOrigin(QPainter* theWrappedObject, int x, int y); + void setClipPath(QPainter* theWrappedObject, const QPainterPath& path, Qt::ClipOperation op = Qt::ReplaceClip); + void setClipRect(QPainter* theWrappedObject, const QRect& arg__1, Qt::ClipOperation op = Qt::ReplaceClip); + void setClipRect(QPainter* theWrappedObject, const QRectF& arg__1, Qt::ClipOperation op = Qt::ReplaceClip); + void setClipRect(QPainter* theWrappedObject, int x, int y, int w, int h, Qt::ClipOperation op = Qt::ReplaceClip); + void setClipRegion(QPainter* theWrappedObject, const QRegion& arg__1, Qt::ClipOperation op = Qt::ReplaceClip); + void setClipping(QPainter* theWrappedObject, bool enable); + void setCompositionMode(QPainter* theWrappedObject, QPainter::CompositionMode mode); + void setFont(QPainter* theWrappedObject, const QFont& f); + void setLayoutDirection(QPainter* theWrappedObject, Qt::LayoutDirection direction); + void setOpacity(QPainter* theWrappedObject, qreal opacity); + void setPen(QPainter* theWrappedObject, Qt::PenStyle style); + void setPen(QPainter* theWrappedObject, const QColor& color); + void setPen(QPainter* theWrappedObject, const QPen& pen); + void static_QPainter_setRedirected(const QPaintDevice* device, QPaintDevice* replacement, const QPoint& offset = QPoint()); + void setRenderHint(QPainter* theWrappedObject, QPainter::RenderHint hint, bool on = true); + void setRenderHints(QPainter* theWrappedObject, QPainter::RenderHints hints, bool on = true); + void setTransform(QPainter* theWrappedObject, const QTransform& transform, bool combine = false); + void setViewTransformEnabled(QPainter* theWrappedObject, bool enable); + void setViewport(QPainter* theWrappedObject, const QRect& viewport); + void setViewport(QPainter* theWrappedObject, int x, int y, int w, int h); + void setWindow(QPainter* theWrappedObject, const QRect& window); + void setWindow(QPainter* theWrappedObject, int x, int y, int w, int h); + void setWorldMatrix(QPainter* theWrappedObject, const QMatrix& matrix, bool combine = false); + void setWorldMatrixEnabled(QPainter* theWrappedObject, bool enabled); + void setWorldTransform(QPainter* theWrappedObject, const QTransform& matrix, bool combine = false); + void shear(QPainter* theWrappedObject, qreal sh, qreal sv); + void strokePath(QPainter* theWrappedObject, const QPainterPath& path, const QPen& pen); + bool testRenderHint(QPainter* theWrappedObject, QPainter::RenderHint hint) const; + const QTransform* transform(QPainter* theWrappedObject) const; + void translate(QPainter* theWrappedObject, const QPoint& offset); + void translate(QPainter* theWrappedObject, const QPointF& offset); + void translate(QPainter* theWrappedObject, qreal dx, qreal dy); + bool viewTransformEnabled(QPainter* theWrappedObject) const; + QRect viewport(QPainter* theWrappedObject) const; + QRect window(QPainter* theWrappedObject) const; + const QMatrix* worldMatrix(QPainter* theWrappedObject) const; + bool worldMatrixEnabled(QPainter* theWrappedObject) const; + const QTransform* worldTransform(QPainter* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QPainterPath : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ElementType ) +enum ElementType{ + MoveToElement = QPainterPath::MoveToElement, LineToElement = QPainterPath::LineToElement, CurveToElement = QPainterPath::CurveToElement, CurveToDataElement = QPainterPath::CurveToDataElement}; +public slots: +QPainterPath* new_QPainterPath(); +QPainterPath* new_QPainterPath(const QPainterPath& other); +QPainterPath* new_QPainterPath(const QPointF& startPoint); +void delete_QPainterPath(QPainterPath* obj) { delete obj; } + void addEllipse(QPainterPath* theWrappedObject, const QPointF& center, qreal rx, qreal ry); + void addEllipse(QPainterPath* theWrappedObject, const QRectF& rect); + void addEllipse(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h); + void addPath(QPainterPath* theWrappedObject, const QPainterPath& path); + void addPolygon(QPainterPath* theWrappedObject, const QPolygonF& polygon); + void addRect(QPainterPath* theWrappedObject, const QRectF& rect); + void addRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h); + void addRegion(QPainterPath* theWrappedObject, const QRegion& region); + void addRoundRect(QPainterPath* theWrappedObject, const QRectF& rect, int roundness); + void addRoundRect(QPainterPath* theWrappedObject, const QRectF& rect, int xRnd, int yRnd); + void addRoundRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int roundness); + void addRoundRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int xRnd, int yRnd); + void addRoundedRect(QPainterPath* theWrappedObject, const QRectF& rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize); + void addRoundedRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize); + void addText(QPainterPath* theWrappedObject, const QPointF& point, const QFont& f, const QString& text); + void addText(QPainterPath* theWrappedObject, qreal x, qreal y, const QFont& f, const QString& text); + qreal angleAtPercent(QPainterPath* theWrappedObject, qreal t) const; + void arcMoveTo(QPainterPath* theWrappedObject, const QRectF& rect, qreal angle); + void arcMoveTo(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, qreal angle); + void arcTo(QPainterPath* theWrappedObject, const QRectF& rect, qreal startAngle, qreal arcLength); + void arcTo(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, qreal startAngle, qreal arcLength); + QRectF boundingRect(QPainterPath* theWrappedObject) const; + void closeSubpath(QPainterPath* theWrappedObject); + void connectPath(QPainterPath* theWrappedObject, const QPainterPath& path); + bool contains(QPainterPath* theWrappedObject, const QPainterPath& p) const; + bool contains(QPainterPath* theWrappedObject, const QPointF& pt) const; + bool contains(QPainterPath* theWrappedObject, const QRectF& rect) const; + QRectF controlPointRect(QPainterPath* theWrappedObject) const; + void cubicTo(QPainterPath* theWrappedObject, const QPointF& ctrlPt1, const QPointF& ctrlPt2, const QPointF& endPt); + void cubicTo(QPainterPath* theWrappedObject, qreal ctrlPt1x, qreal ctrlPt1y, qreal ctrlPt2x, qreal ctrlPt2y, qreal endPtx, qreal endPty); + QPointF currentPosition(QPainterPath* theWrappedObject) const; + QPainterPath::Element elementAt(QPainterPath* theWrappedObject, int i) const; + int elementCount(QPainterPath* theWrappedObject) const; + Qt::FillRule fillRule(QPainterPath* theWrappedObject) const; + QPainterPath intersected(QPainterPath* theWrappedObject, const QPainterPath& r) const; + bool intersects(QPainterPath* theWrappedObject, const QPainterPath& p) const; + bool intersects(QPainterPath* theWrappedObject, const QRectF& rect) const; + bool isEmpty(QPainterPath* theWrappedObject) const; + qreal length(QPainterPath* theWrappedObject) const; + void lineTo(QPainterPath* theWrappedObject, const QPointF& p); + void lineTo(QPainterPath* theWrappedObject, qreal x, qreal y); + void moveTo(QPainterPath* theWrappedObject, const QPointF& p); + void moveTo(QPainterPath* theWrappedObject, qreal x, qreal y); + bool __ne__(QPainterPath* theWrappedObject, const QPainterPath& other) const; + QPainterPath __and__(QPainterPath* theWrappedObject, const QPainterPath& other) const; + QPainterPath* __iand__(QPainterPath* theWrappedObject, const QPainterPath& other); + QPainterPath __mul__(QPainterPath* theWrappedObject, const QMatrix& m); + QPainterPath __mul__(QPainterPath* theWrappedObject, const QTransform& m); + QPainterPath __add__(QPainterPath* theWrappedObject, const QPainterPath& other) const; + QPainterPath* __iadd__(QPainterPath* theWrappedObject, const QPainterPath& other); + QPainterPath __sub__(QPainterPath* theWrappedObject, const QPainterPath& other) const; + QPainterPath* __isub__(QPainterPath* theWrappedObject, const QPainterPath& other); + bool __eq__(QPainterPath* theWrappedObject, const QPainterPath& other) const; + QPainterPath __or__(QPainterPath* theWrappedObject, const QPainterPath& other) const; + QPainterPath* __ior__(QPainterPath* theWrappedObject, const QPainterPath& other); + qreal percentAtLength(QPainterPath* theWrappedObject, qreal t) const; + QPointF pointAtPercent(QPainterPath* theWrappedObject, qreal t) const; + void quadTo(QPainterPath* theWrappedObject, const QPointF& ctrlPt, const QPointF& endPt); + void quadTo(QPainterPath* theWrappedObject, qreal ctrlPtx, qreal ctrlPty, qreal endPtx, qreal endPty); + void setElementPositionAt(QPainterPath* theWrappedObject, int i, qreal x, qreal y); + void setFillRule(QPainterPath* theWrappedObject, Qt::FillRule fillRule); + QPainterPath simplified(QPainterPath* theWrappedObject) const; + qreal slopeAtPercent(QPainterPath* theWrappedObject, qreal t) const; + QPainterPath subtracted(QPainterPath* theWrappedObject, const QPainterPath& r) const; + QPainterPath subtractedInverted(QPainterPath* theWrappedObject, const QPainterPath& r) const; + void swap(QPainterPath* theWrappedObject, QPainterPath& other); + QPolygonF toFillPolygon(QPainterPath* theWrappedObject, const QMatrix& matrix = QMatrix()) const; + QPolygonF toFillPolygon(QPainterPath* theWrappedObject, const QTransform& matrix) const; + QList toFillPolygons(QPainterPath* theWrappedObject, const QMatrix& matrix = QMatrix()) const; + QList toFillPolygons(QPainterPath* theWrappedObject, const QTransform& matrix) const; + QPainterPath toReversed(QPainterPath* theWrappedObject) const; + QList toSubpathPolygons(QPainterPath* theWrappedObject, const QMatrix& matrix = QMatrix()) const; + QList toSubpathPolygons(QPainterPath* theWrappedObject, const QTransform& matrix) const; + void translate(QPainterPath* theWrappedObject, const QPointF& offset); + void translate(QPainterPath* theWrappedObject, qreal dx, qreal dy); + QPainterPath translated(QPainterPath* theWrappedObject, const QPointF& offset) const; + QPainterPath translated(QPainterPath* theWrappedObject, qreal dx, qreal dy) const; + QPainterPath united(QPainterPath* theWrappedObject, const QPainterPath& r) const; + QString py_toString(QPainterPath*); +}; + + + + + +class PythonQtWrapper_QPainterPathStroker : public QObject +{ Q_OBJECT +public: +public slots: +QPainterPathStroker* new_QPainterPathStroker(); +void delete_QPainterPathStroker(QPainterPathStroker* obj) { delete obj; } + Qt::PenCapStyle capStyle(QPainterPathStroker* theWrappedObject) const; + QPainterPath createStroke(QPainterPathStroker* theWrappedObject, const QPainterPath& path) const; + qreal curveThreshold(QPainterPathStroker* theWrappedObject) const; + qreal dashOffset(QPainterPathStroker* theWrappedObject) const; + QVector dashPattern(QPainterPathStroker* theWrappedObject) const; + Qt::PenJoinStyle joinStyle(QPainterPathStroker* theWrappedObject) const; + qreal miterLimit(QPainterPathStroker* theWrappedObject) const; + void setCapStyle(QPainterPathStroker* theWrappedObject, Qt::PenCapStyle style); + void setCurveThreshold(QPainterPathStroker* theWrappedObject, qreal threshold); + void setDashOffset(QPainterPathStroker* theWrappedObject, qreal offset); + void setDashPattern(QPainterPathStroker* theWrappedObject, Qt::PenStyle arg__1); + void setDashPattern(QPainterPathStroker* theWrappedObject, const QVector& dashPattern); + void setJoinStyle(QPainterPathStroker* theWrappedObject, Qt::PenJoinStyle style); + void setMiterLimit(QPainterPathStroker* theWrappedObject, qreal length); + void setWidth(QPainterPathStroker* theWrappedObject, qreal width); + qreal width(QPainterPathStroker* theWrappedObject) const; +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QPanGesture : public QPanGesture +{ +public: + PythonQtShell_QPanGesture(QObject* parent = 0):QPanGesture(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QPanGesture(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QPanGesture : public QObject +{ Q_OBJECT +public: +public slots: +QPanGesture* new_QPanGesture(QObject* parent = 0); +void delete_QPanGesture(QPanGesture* obj) { delete obj; } + qreal acceleration(QPanGesture* theWrappedObject) const; + QPointF delta(QPanGesture* theWrappedObject) const; + QPointF lastOffset(QPanGesture* theWrappedObject) const; + QPointF offset(QPanGesture* theWrappedObject) const; + void setAcceleration(QPanGesture* theWrappedObject, qreal value); + void setLastOffset(QPanGesture* theWrappedObject, const QPointF& value); + void setOffset(QPanGesture* theWrappedObject, const QPointF& value); +}; + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp new file mode 100644 index 00000000..b9d85298 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp @@ -0,0 +1,15473 @@ +#include "com_trolltech_qt_gui5.h" + +#include +#include +#include + +PythonQtShell_QPicture::~PythonQtShell_QPicture() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +int PythonQtShell_QPicture::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPicture::devType(); +} +void PythonQtShell_QPicture::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPicture::initPainter(painter); +} +int PythonQtShell_QPicture::metric(QPaintDevice::PaintDeviceMetric m) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&m}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPicture::metric(m); +} +QPaintEngine* PythonQtShell_QPicture::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPicture::paintEngine(); +} +QPaintDevice* PythonQtShell_QPicture::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPicture::redirected(offset); +} +void PythonQtShell_QPicture::setData(const char* data, uint size) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const char*" , "uint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&data, (void*)&size}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPicture::setData(data, size); +} +QPainter* PythonQtShell_QPicture::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPicture::sharedPainter(); +} +QPicture* PythonQtWrapper_QPicture::new_QPicture(const QPicture& arg__1) +{ +return new PythonQtShell_QPicture(arg__1); } + +QPicture* PythonQtWrapper_QPicture::new_QPicture(int formatVersion) +{ +return new PythonQtShell_QPicture(formatVersion); } + +QRect PythonQtWrapper_QPicture::boundingRect(QPicture* theWrappedObject) const +{ + return ( theWrappedObject->boundingRect()); +} + +const char* PythonQtWrapper_QPicture::data(QPicture* theWrappedObject) const +{ + return ( theWrappedObject->data()); +} + +int PythonQtWrapper_QPicture::devType(QPicture* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QPicture*)theWrappedObject)->promoted_devType()); +} + +bool PythonQtWrapper_QPicture::isNull(QPicture* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QPicture::load(QPicture* theWrappedObject, QIODevice* dev, const char* format) +{ + return ( theWrappedObject->load(dev, format)); +} + +bool PythonQtWrapper_QPicture::load(QPicture* theWrappedObject, const QString& fileName, const char* format) +{ + return ( theWrappedObject->load(fileName, format)); +} + +int PythonQtWrapper_QPicture::metric(QPicture* theWrappedObject, QPaintDevice::PaintDeviceMetric m) const +{ + return ( ((PythonQtPublicPromoter_QPicture*)theWrappedObject)->promoted_metric(m)); +} + +QPaintEngine* PythonQtWrapper_QPicture::paintEngine(QPicture* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QPicture*)theWrappedObject)->promoted_paintEngine()); +} + +bool PythonQtWrapper_QPicture::play(QPicture* theWrappedObject, QPainter* p) +{ + return ( theWrappedObject->play(p)); +} + +bool PythonQtWrapper_QPicture::save(QPicture* theWrappedObject, QIODevice* dev, const char* format) +{ + return ( theWrappedObject->save(dev, format)); +} + +bool PythonQtWrapper_QPicture::save(QPicture* theWrappedObject, const QString& fileName, const char* format) +{ + return ( theWrappedObject->save(fileName, format)); +} + +void PythonQtWrapper_QPicture::setBoundingRect(QPicture* theWrappedObject, const QRect& r) +{ + ( theWrappedObject->setBoundingRect(r)); +} + +uint PythonQtWrapper_QPicture::size(QPicture* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +void PythonQtWrapper_QPicture::swap(QPicture* theWrappedObject, QPicture& other) +{ + ( theWrappedObject->swap(other)); +} + + + +PythonQtShell_QPictureFormatPlugin::~PythonQtShell_QPictureFormatPlugin() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QPictureFormatPlugin::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPictureFormatPlugin::childEvent(arg__1); +} +void PythonQtShell_QPictureFormatPlugin::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPictureFormatPlugin::customEvent(arg__1); +} +bool PythonQtShell_QPictureFormatPlugin::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPictureFormatPlugin::event(arg__1); +} +bool PythonQtShell_QPictureFormatPlugin::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPictureFormatPlugin::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QPictureFormatPlugin::installIOHandler(const QString& format) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "installIOHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&format}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("installIOHandler", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QPictureFormatPlugin::loadPicture(const QString& format, const QString& filename, QPicture* pic) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "loadPicture"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "QPicture*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&format, (void*)&filename, (void*)&pic}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("loadPicture", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPictureFormatPlugin::loadPicture(format, filename, pic); +} +bool PythonQtShell_QPictureFormatPlugin::savePicture(const QString& format, const QString& filename, const QPicture& pic) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "savePicture"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QPicture&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&format, (void*)&filename, (void*)&pic}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("savePicture", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPictureFormatPlugin::savePicture(format, filename, pic); +} +void PythonQtShell_QPictureFormatPlugin::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPictureFormatPlugin::timerEvent(arg__1); +} +QPictureFormatPlugin* PythonQtWrapper_QPictureFormatPlugin::new_QPictureFormatPlugin(QObject* parent) +{ +return new PythonQtShell_QPictureFormatPlugin(parent); } + +bool PythonQtWrapper_QPictureFormatPlugin::loadPicture(QPictureFormatPlugin* theWrappedObject, const QString& format, const QString& filename, QPicture* pic) +{ + return ( ((PythonQtPublicPromoter_QPictureFormatPlugin*)theWrappedObject)->promoted_loadPicture(format, filename, pic)); +} + +bool PythonQtWrapper_QPictureFormatPlugin::savePicture(QPictureFormatPlugin* theWrappedObject, const QString& format, const QString& filename, const QPicture& pic) +{ + return ( ((PythonQtPublicPromoter_QPictureFormatPlugin*)theWrappedObject)->promoted_savePicture(format, filename, pic)); +} + + + +QPictureIO* PythonQtWrapper_QPictureIO::new_QPictureIO() +{ +return new QPictureIO(); } + +QPictureIO* PythonQtWrapper_QPictureIO::new_QPictureIO(QIODevice* ioDevice, const char* format) +{ +return new QPictureIO(ioDevice, format); } + +QPictureIO* PythonQtWrapper_QPictureIO::new_QPictureIO(const QString& fileName, const char* format) +{ +return new QPictureIO(fileName, format); } + +QString PythonQtWrapper_QPictureIO::description(QPictureIO* theWrappedObject) const +{ + return ( theWrappedObject->description()); +} + +QString PythonQtWrapper_QPictureIO::fileName(QPictureIO* theWrappedObject) const +{ + return ( theWrappedObject->fileName()); +} + +const char* PythonQtWrapper_QPictureIO::format(QPictureIO* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +float PythonQtWrapper_QPictureIO::gamma(QPictureIO* theWrappedObject) const +{ + return ( theWrappedObject->gamma()); +} + +QList PythonQtWrapper_QPictureIO::static_QPictureIO_inputFormats() +{ + return (QPictureIO::inputFormats()); +} + +QIODevice* PythonQtWrapper_QPictureIO::ioDevice(QPictureIO* theWrappedObject) const +{ + return ( theWrappedObject->ioDevice()); +} + +QList PythonQtWrapper_QPictureIO::static_QPictureIO_outputFormats() +{ + return (QPictureIO::outputFormats()); +} + +const char* PythonQtWrapper_QPictureIO::parameters(QPictureIO* theWrappedObject) const +{ + return ( theWrappedObject->parameters()); +} + +const QPicture* PythonQtWrapper_QPictureIO::picture(QPictureIO* theWrappedObject) const +{ + return &( theWrappedObject->picture()); +} + +QByteArray PythonQtWrapper_QPictureIO::static_QPictureIO_pictureFormat(QIODevice* arg__1) +{ + return (QPictureIO::pictureFormat(arg__1)); +} + +QByteArray PythonQtWrapper_QPictureIO::static_QPictureIO_pictureFormat(const QString& fileName) +{ + return (QPictureIO::pictureFormat(fileName)); +} + +int PythonQtWrapper_QPictureIO::quality(QPictureIO* theWrappedObject) const +{ + return ( theWrappedObject->quality()); +} + +bool PythonQtWrapper_QPictureIO::read(QPictureIO* theWrappedObject) +{ + return ( theWrappedObject->read()); +} + +void PythonQtWrapper_QPictureIO::setDescription(QPictureIO* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setDescription(arg__1)); +} + +void PythonQtWrapper_QPictureIO::setFileName(QPictureIO* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setFileName(arg__1)); +} + +void PythonQtWrapper_QPictureIO::setFormat(QPictureIO* theWrappedObject, const char* arg__1) +{ + ( theWrappedObject->setFormat(arg__1)); +} + +void PythonQtWrapper_QPictureIO::setGamma(QPictureIO* theWrappedObject, float arg__1) +{ + ( theWrappedObject->setGamma(arg__1)); +} + +void PythonQtWrapper_QPictureIO::setIODevice(QPictureIO* theWrappedObject, QIODevice* arg__1) +{ + ( theWrappedObject->setIODevice(arg__1)); +} + +void PythonQtWrapper_QPictureIO::setParameters(QPictureIO* theWrappedObject, const char* arg__1) +{ + ( theWrappedObject->setParameters(arg__1)); +} + +void PythonQtWrapper_QPictureIO::setPicture(QPictureIO* theWrappedObject, const QPicture& arg__1) +{ + ( theWrappedObject->setPicture(arg__1)); +} + +void PythonQtWrapper_QPictureIO::setQuality(QPictureIO* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setQuality(arg__1)); +} + +void PythonQtWrapper_QPictureIO::setStatus(QPictureIO* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setStatus(arg__1)); +} + +int PythonQtWrapper_QPictureIO::status(QPictureIO* theWrappedObject) const +{ + return ( theWrappedObject->status()); +} + +bool PythonQtWrapper_QPictureIO::write(QPictureIO* theWrappedObject) +{ + return ( theWrappedObject->write()); +} + + + +PythonQtShell_QPixmapCache::~PythonQtShell_QPixmapCache() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QPixmapCache* PythonQtWrapper_QPixmapCache::new_QPixmapCache() +{ +return new PythonQtShell_QPixmapCache(); } + +int PythonQtWrapper_QPixmapCache::static_QPixmapCache_cacheLimit() +{ + return (QPixmapCache::cacheLimit()); +} + +void PythonQtWrapper_QPixmapCache::static_QPixmapCache_clear() +{ + (QPixmapCache::clear()); +} + +bool PythonQtWrapper_QPixmapCache::static_QPixmapCache_find(const QPixmapCache::Key& key, QPixmap* pixmap) +{ + return (QPixmapCache::find(key, pixmap)); +} + +bool PythonQtWrapper_QPixmapCache::static_QPixmapCache_find(const QString& key, QPixmap& pixmap) +{ + return (QPixmapCache::find(key, pixmap)); +} + +QPixmapCache::Key PythonQtWrapper_QPixmapCache::static_QPixmapCache_insert(const QPixmap& pixmap) +{ + return (QPixmapCache::insert(pixmap)); +} + +bool PythonQtWrapper_QPixmapCache::static_QPixmapCache_insert(const QString& key, const QPixmap& pixmap) +{ + return (QPixmapCache::insert(key, pixmap)); +} + +void PythonQtWrapper_QPixmapCache::static_QPixmapCache_remove(const QPixmapCache::Key& key) +{ + (QPixmapCache::remove(key)); +} + +void PythonQtWrapper_QPixmapCache::static_QPixmapCache_remove(const QString& key) +{ + (QPixmapCache::remove(key)); +} + +bool PythonQtWrapper_QPixmapCache::static_QPixmapCache_replace(const QPixmapCache::Key& key, const QPixmap& pixmap) +{ + return (QPixmapCache::replace(key, pixmap)); +} + +void PythonQtWrapper_QPixmapCache::static_QPixmapCache_setCacheLimit(int arg__1) +{ + (QPixmapCache::setCacheLimit(arg__1)); +} + + + +QPixmapCache::Key* PythonQtWrapper_QPixmapCache_Key::new_QPixmapCache_Key() +{ +return new QPixmapCache::Key(); } + +QPixmapCache::Key* PythonQtWrapper_QPixmapCache_Key::new_QPixmapCache_Key(const QPixmapCache::Key& other) +{ +return new QPixmapCache::Key(other); } + +bool PythonQtWrapper_QPixmapCache_Key::__ne__(QPixmapCache::Key* theWrappedObject, const QPixmapCache::Key& key) const +{ + return ( (*theWrappedObject)!= key); +} + +QPixmapCache::Key* PythonQtWrapper_QPixmapCache_Key::operator_assign(QPixmapCache::Key* theWrappedObject, const QPixmapCache::Key& other) +{ + return &( (*theWrappedObject)= other); +} + +bool PythonQtWrapper_QPixmapCache_Key::__eq__(QPixmapCache::Key* theWrappedObject, const QPixmapCache::Key& key) const +{ + return ( (*theWrappedObject)== key); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QPlainTextDocumentLayout::~PythonQtShell_QPlainTextDocumentLayout() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QPlainTextDocumentLayout* PythonQtWrapper_QPlainTextDocumentLayout::new_QPlainTextDocumentLayout(QTextDocument* document) +{ +return new PythonQtShell_QPlainTextDocumentLayout(document); } + +QRectF PythonQtWrapper_QPlainTextDocumentLayout::blockBoundingRect(QPlainTextDocumentLayout* theWrappedObject, const QTextBlock& block) const +{ + return ( theWrappedObject->blockBoundingRect(block)); +} + +int PythonQtWrapper_QPlainTextDocumentLayout::cursorWidth(QPlainTextDocumentLayout* theWrappedObject) const +{ + return ( theWrappedObject->cursorWidth()); +} + +QSizeF PythonQtWrapper_QPlainTextDocumentLayout::documentSize(QPlainTextDocumentLayout* theWrappedObject) const +{ + return ( theWrappedObject->documentSize()); +} + +void PythonQtWrapper_QPlainTextDocumentLayout::draw(QPlainTextDocumentLayout* theWrappedObject, QPainter* arg__1, const QAbstractTextDocumentLayout::PaintContext& arg__2) +{ + ( theWrappedObject->draw(arg__1, arg__2)); +} + +void PythonQtWrapper_QPlainTextDocumentLayout::ensureBlockLayout(QPlainTextDocumentLayout* theWrappedObject, const QTextBlock& block) const +{ + ( theWrappedObject->ensureBlockLayout(block)); +} + +QRectF PythonQtWrapper_QPlainTextDocumentLayout::frameBoundingRect(QPlainTextDocumentLayout* theWrappedObject, QTextFrame* arg__1) const +{ + return ( theWrappedObject->frameBoundingRect(arg__1)); +} + +int PythonQtWrapper_QPlainTextDocumentLayout::hitTest(QPlainTextDocumentLayout* theWrappedObject, const QPointF& arg__1, Qt::HitTestAccuracy arg__2) const +{ + return ( theWrappedObject->hitTest(arg__1, arg__2)); +} + +int PythonQtWrapper_QPlainTextDocumentLayout::pageCount(QPlainTextDocumentLayout* theWrappedObject) const +{ + return ( theWrappedObject->pageCount()); +} + +void PythonQtWrapper_QPlainTextDocumentLayout::requestUpdate(QPlainTextDocumentLayout* theWrappedObject) +{ + ( theWrappedObject->requestUpdate()); +} + +void PythonQtWrapper_QPlainTextDocumentLayout::setCursorWidth(QPlainTextDocumentLayout* theWrappedObject, int width) +{ + ( theWrappedObject->setCursorWidth(width)); +} + + + +PythonQtShell_QPlainTextEdit::~PythonQtShell_QPlainTextEdit() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QPlainTextEdit::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::actionEvent(arg__1); +} +bool PythonQtShell_QPlainTextEdit::canInsertFromMimeData(const QMimeData* source) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canInsertFromMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&source}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canInsertFromMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPlainTextEdit::canInsertFromMimeData(source); +} +void PythonQtShell_QPlainTextEdit::changeEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::changeEvent(e); +} +void PythonQtShell_QPlainTextEdit::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::childEvent(arg__1); +} +void PythonQtShell_QPlainTextEdit::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::closeEvent(arg__1); +} +void PythonQtShell_QPlainTextEdit::contextMenuEvent(QContextMenuEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::contextMenuEvent(e); +} +QMimeData* PythonQtShell_QPlainTextEdit::createMimeDataFromSelection() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createMimeDataFromSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMimeData*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QMimeData* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createMimeDataFromSelection", methodInfo, result); + } else { + returnValue = *((QMimeData**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPlainTextEdit::createMimeDataFromSelection(); +} +void PythonQtShell_QPlainTextEdit::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::customEvent(arg__1); +} +int PythonQtShell_QPlainTextEdit::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPlainTextEdit::devType(); +} +void PythonQtShell_QPlainTextEdit::doSetTextCursor(const QTextCursor& cursor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doSetTextCursor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QTextCursor&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&cursor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::doSetTextCursor(cursor); +} +void PythonQtShell_QPlainTextEdit::dragEnterEvent(QDragEnterEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::dragEnterEvent(e); +} +void PythonQtShell_QPlainTextEdit::dragLeaveEvent(QDragLeaveEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::dragLeaveEvent(e); +} +void PythonQtShell_QPlainTextEdit::dragMoveEvent(QDragMoveEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::dragMoveEvent(e); +} +void PythonQtShell_QPlainTextEdit::dropEvent(QDropEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::dropEvent(e); +} +void PythonQtShell_QPlainTextEdit::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::enterEvent(arg__1); +} +bool PythonQtShell_QPlainTextEdit::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPlainTextEdit::event(e); +} +bool PythonQtShell_QPlainTextEdit::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPlainTextEdit::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QPlainTextEdit::focusInEvent(QFocusEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::focusInEvent(e); +} +bool PythonQtShell_QPlainTextEdit::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPlainTextEdit::focusNextPrevChild(next); +} +void PythonQtShell_QPlainTextEdit::focusOutEvent(QFocusEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::focusOutEvent(e); +} +bool PythonQtShell_QPlainTextEdit::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPlainTextEdit::hasHeightForWidth(); +} +int PythonQtShell_QPlainTextEdit::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPlainTextEdit::heightForWidth(arg__1); +} +void PythonQtShell_QPlainTextEdit::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::hideEvent(arg__1); +} +void PythonQtShell_QPlainTextEdit::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::initPainter(painter); +} +void PythonQtShell_QPlainTextEdit::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QPlainTextEdit::inputMethodQuery(Qt::InputMethodQuery property) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&property}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPlainTextEdit::inputMethodQuery(property); +} +void PythonQtShell_QPlainTextEdit::insertFromMimeData(const QMimeData* source) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertFromMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QMimeData*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&source}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::insertFromMimeData(source); +} +void PythonQtShell_QPlainTextEdit::keyPressEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::keyPressEvent(e); +} +void PythonQtShell_QPlainTextEdit::keyReleaseEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::keyReleaseEvent(e); +} +void PythonQtShell_QPlainTextEdit::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::leaveEvent(arg__1); +} +QVariant PythonQtShell_QPlainTextEdit::loadResource(int type, const QUrl& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "loadResource"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "int" , "const QUrl&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&type, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("loadResource", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPlainTextEdit::loadResource(type, name); +} +int PythonQtShell_QPlainTextEdit::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPlainTextEdit::metric(arg__1); +} +void PythonQtShell_QPlainTextEdit::mouseDoubleClickEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::mouseDoubleClickEvent(e); +} +void PythonQtShell_QPlainTextEdit::mouseMoveEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::mouseMoveEvent(e); +} +void PythonQtShell_QPlainTextEdit::mousePressEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::mousePressEvent(e); +} +void PythonQtShell_QPlainTextEdit::mouseReleaseEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::mouseReleaseEvent(e); +} +void PythonQtShell_QPlainTextEdit::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::moveEvent(arg__1); +} +bool PythonQtShell_QPlainTextEdit::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPlainTextEdit::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QPlainTextEdit::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPlainTextEdit::paintEngine(); +} +void PythonQtShell_QPlainTextEdit::paintEvent(QPaintEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::paintEvent(e); +} +QPaintDevice* PythonQtShell_QPlainTextEdit::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPlainTextEdit::redirected(offset); +} +void PythonQtShell_QPlainTextEdit::resizeEvent(QResizeEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::resizeEvent(e); +} +void PythonQtShell_QPlainTextEdit::scrollContentsBy(int dx, int dy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&dx, (void*)&dy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::scrollContentsBy(dx, dy); +} +void PythonQtShell_QPlainTextEdit::setupViewport(QWidget* viewport) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&viewport}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::setupViewport(viewport); +} +QPainter* PythonQtShell_QPlainTextEdit::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPlainTextEdit::sharedPainter(); +} +void PythonQtShell_QPlainTextEdit::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::showEvent(arg__1); +} +void PythonQtShell_QPlainTextEdit::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::tabletEvent(arg__1); +} +void PythonQtShell_QPlainTextEdit::timerEvent(QTimerEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::timerEvent(e); +} +bool PythonQtShell_QPlainTextEdit::viewportEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPlainTextEdit::viewportEvent(arg__1); +} +QSize PythonQtShell_QPlainTextEdit::viewportSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPlainTextEdit::viewportSizeHint(); +} +void PythonQtShell_QPlainTextEdit::wheelEvent(QWheelEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPlainTextEdit::wheelEvent(e); +} +QPlainTextEdit* PythonQtWrapper_QPlainTextEdit::new_QPlainTextEdit(QWidget* parent) +{ +return new PythonQtShell_QPlainTextEdit(parent); } + +QPlainTextEdit* PythonQtWrapper_QPlainTextEdit::new_QPlainTextEdit(const QString& text, QWidget* parent) +{ +return new PythonQtShell_QPlainTextEdit(text, parent); } + +QString PythonQtWrapper_QPlainTextEdit::anchorAt(QPlainTextEdit* theWrappedObject, const QPoint& pos) const +{ + return ( theWrappedObject->anchorAt(pos)); +} + +bool PythonQtWrapper_QPlainTextEdit::backgroundVisible(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->backgroundVisible()); +} + +int PythonQtWrapper_QPlainTextEdit::blockCount(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->blockCount()); +} + +bool PythonQtWrapper_QPlainTextEdit::canInsertFromMimeData(QPlainTextEdit* theWrappedObject, const QMimeData* source) const +{ + return ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_canInsertFromMimeData(source)); +} + +bool PythonQtWrapper_QPlainTextEdit::canPaste(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->canPaste()); +} + +bool PythonQtWrapper_QPlainTextEdit::centerOnScroll(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->centerOnScroll()); +} + +void PythonQtWrapper_QPlainTextEdit::changeEvent(QPlainTextEdit* theWrappedObject, QEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_changeEvent(e)); +} + +void PythonQtWrapper_QPlainTextEdit::contextMenuEvent(QPlainTextEdit* theWrappedObject, QContextMenuEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_contextMenuEvent(e)); +} + +QMimeData* PythonQtWrapper_QPlainTextEdit::createMimeDataFromSelection(QPlainTextEdit* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_createMimeDataFromSelection()); +} + +QMenu* PythonQtWrapper_QPlainTextEdit::createStandardContextMenu(QPlainTextEdit* theWrappedObject) +{ + return ( theWrappedObject->createStandardContextMenu()); +} + +QTextCharFormat PythonQtWrapper_QPlainTextEdit::currentCharFormat(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->currentCharFormat()); +} + +QTextCursor PythonQtWrapper_QPlainTextEdit::cursorForPosition(QPlainTextEdit* theWrappedObject, const QPoint& pos) const +{ + return ( theWrappedObject->cursorForPosition(pos)); +} + +QRect PythonQtWrapper_QPlainTextEdit::cursorRect(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->cursorRect()); +} + +QRect PythonQtWrapper_QPlainTextEdit::cursorRect(QPlainTextEdit* theWrappedObject, const QTextCursor& cursor) const +{ + return ( theWrappedObject->cursorRect(cursor)); +} + +int PythonQtWrapper_QPlainTextEdit::cursorWidth(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->cursorWidth()); +} + +void PythonQtWrapper_QPlainTextEdit::doSetTextCursor(QPlainTextEdit* theWrappedObject, const QTextCursor& cursor) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_doSetTextCursor(cursor)); +} + +QTextDocument* PythonQtWrapper_QPlainTextEdit::document(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->document()); +} + +QString PythonQtWrapper_QPlainTextEdit::documentTitle(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->documentTitle()); +} + +void PythonQtWrapper_QPlainTextEdit::dragEnterEvent(QPlainTextEdit* theWrappedObject, QDragEnterEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_dragEnterEvent(e)); +} + +void PythonQtWrapper_QPlainTextEdit::dragLeaveEvent(QPlainTextEdit* theWrappedObject, QDragLeaveEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_dragLeaveEvent(e)); +} + +void PythonQtWrapper_QPlainTextEdit::dragMoveEvent(QPlainTextEdit* theWrappedObject, QDragMoveEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_dragMoveEvent(e)); +} + +void PythonQtWrapper_QPlainTextEdit::dropEvent(QPlainTextEdit* theWrappedObject, QDropEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_dropEvent(e)); +} + +void PythonQtWrapper_QPlainTextEdit::ensureCursorVisible(QPlainTextEdit* theWrappedObject) +{ + ( theWrappedObject->ensureCursorVisible()); +} + +bool PythonQtWrapper_QPlainTextEdit::event(QPlainTextEdit* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_event(e)); +} + +QList PythonQtWrapper_QPlainTextEdit::extraSelections(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->extraSelections()); +} + +bool PythonQtWrapper_QPlainTextEdit::find(QPlainTextEdit* theWrappedObject, const QString& exp, QTextDocument::FindFlags options) +{ + return ( theWrappedObject->find(exp, options)); +} + +void PythonQtWrapper_QPlainTextEdit::focusInEvent(QPlainTextEdit* theWrappedObject, QFocusEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_focusInEvent(e)); +} + +bool PythonQtWrapper_QPlainTextEdit::focusNextPrevChild(QPlainTextEdit* theWrappedObject, bool next) +{ + return ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_focusNextPrevChild(next)); +} + +void PythonQtWrapper_QPlainTextEdit::focusOutEvent(QPlainTextEdit* theWrappedObject, QFocusEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_focusOutEvent(e)); +} + +void PythonQtWrapper_QPlainTextEdit::inputMethodEvent(QPlainTextEdit* theWrappedObject, QInputMethodEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_inputMethodEvent(arg__1)); +} + +QVariant PythonQtWrapper_QPlainTextEdit::inputMethodQuery(QPlainTextEdit* theWrappedObject, Qt::InputMethodQuery property) const +{ + return ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_inputMethodQuery(property)); +} + +void PythonQtWrapper_QPlainTextEdit::insertFromMimeData(QPlainTextEdit* theWrappedObject, const QMimeData* source) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_insertFromMimeData(source)); +} + +bool PythonQtWrapper_QPlainTextEdit::isReadOnly(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->isReadOnly()); +} + +bool PythonQtWrapper_QPlainTextEdit::isUndoRedoEnabled(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->isUndoRedoEnabled()); +} + +void PythonQtWrapper_QPlainTextEdit::keyPressEvent(QPlainTextEdit* theWrappedObject, QKeyEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_keyPressEvent(e)); +} + +void PythonQtWrapper_QPlainTextEdit::keyReleaseEvent(QPlainTextEdit* theWrappedObject, QKeyEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_keyReleaseEvent(e)); +} + +QPlainTextEdit::LineWrapMode PythonQtWrapper_QPlainTextEdit::lineWrapMode(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->lineWrapMode()); +} + +QVariant PythonQtWrapper_QPlainTextEdit::loadResource(QPlainTextEdit* theWrappedObject, int type, const QUrl& name) +{ + return ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_loadResource(type, name)); +} + +int PythonQtWrapper_QPlainTextEdit::maximumBlockCount(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->maximumBlockCount()); +} + +void PythonQtWrapper_QPlainTextEdit::mergeCurrentCharFormat(QPlainTextEdit* theWrappedObject, const QTextCharFormat& modifier) +{ + ( theWrappedObject->mergeCurrentCharFormat(modifier)); +} + +void PythonQtWrapper_QPlainTextEdit::mouseDoubleClickEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_mouseDoubleClickEvent(e)); +} + +void PythonQtWrapper_QPlainTextEdit::mouseMoveEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_mouseMoveEvent(e)); +} + +void PythonQtWrapper_QPlainTextEdit::mousePressEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_mousePressEvent(e)); +} + +void PythonQtWrapper_QPlainTextEdit::mouseReleaseEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_mouseReleaseEvent(e)); +} + +void PythonQtWrapper_QPlainTextEdit::moveCursor(QPlainTextEdit* theWrappedObject, QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode) +{ + ( theWrappedObject->moveCursor(operation, mode)); +} + +bool PythonQtWrapper_QPlainTextEdit::overwriteMode(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->overwriteMode()); +} + +void PythonQtWrapper_QPlainTextEdit::paintEvent(QPlainTextEdit* theWrappedObject, QPaintEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_paintEvent(e)); +} + +void PythonQtWrapper_QPlainTextEdit::resizeEvent(QPlainTextEdit* theWrappedObject, QResizeEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_resizeEvent(e)); +} + +void PythonQtWrapper_QPlainTextEdit::scrollContentsBy(QPlainTextEdit* theWrappedObject, int dx, int dy) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); +} + +void PythonQtWrapper_QPlainTextEdit::setBackgroundVisible(QPlainTextEdit* theWrappedObject, bool visible) +{ + ( theWrappedObject->setBackgroundVisible(visible)); +} + +void PythonQtWrapper_QPlainTextEdit::setCenterOnScroll(QPlainTextEdit* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setCenterOnScroll(enabled)); +} + +void PythonQtWrapper_QPlainTextEdit::setCurrentCharFormat(QPlainTextEdit* theWrappedObject, const QTextCharFormat& format) +{ + ( theWrappedObject->setCurrentCharFormat(format)); +} + +void PythonQtWrapper_QPlainTextEdit::setCursorWidth(QPlainTextEdit* theWrappedObject, int width) +{ + ( theWrappedObject->setCursorWidth(width)); +} + +void PythonQtWrapper_QPlainTextEdit::setDocument(QPlainTextEdit* theWrappedObject, QTextDocument* document) +{ + ( theWrappedObject->setDocument(document)); +} + +void PythonQtWrapper_QPlainTextEdit::setDocumentTitle(QPlainTextEdit* theWrappedObject, const QString& title) +{ + ( theWrappedObject->setDocumentTitle(title)); +} + +void PythonQtWrapper_QPlainTextEdit::setExtraSelections(QPlainTextEdit* theWrappedObject, const QList& selections) +{ + ( theWrappedObject->setExtraSelections(selections)); +} + +void PythonQtWrapper_QPlainTextEdit::setLineWrapMode(QPlainTextEdit* theWrappedObject, QPlainTextEdit::LineWrapMode mode) +{ + ( theWrappedObject->setLineWrapMode(mode)); +} + +void PythonQtWrapper_QPlainTextEdit::setMaximumBlockCount(QPlainTextEdit* theWrappedObject, int maximum) +{ + ( theWrappedObject->setMaximumBlockCount(maximum)); +} + +void PythonQtWrapper_QPlainTextEdit::setOverwriteMode(QPlainTextEdit* theWrappedObject, bool overwrite) +{ + ( theWrappedObject->setOverwriteMode(overwrite)); +} + +void PythonQtWrapper_QPlainTextEdit::setReadOnly(QPlainTextEdit* theWrappedObject, bool ro) +{ + ( theWrappedObject->setReadOnly(ro)); +} + +void PythonQtWrapper_QPlainTextEdit::setTabChangesFocus(QPlainTextEdit* theWrappedObject, bool b) +{ + ( theWrappedObject->setTabChangesFocus(b)); +} + +void PythonQtWrapper_QPlainTextEdit::setTabStopWidth(QPlainTextEdit* theWrappedObject, int width) +{ + ( theWrappedObject->setTabStopWidth(width)); +} + +void PythonQtWrapper_QPlainTextEdit::setTextCursor(QPlainTextEdit* theWrappedObject, const QTextCursor& cursor) +{ + ( theWrappedObject->setTextCursor(cursor)); +} + +void PythonQtWrapper_QPlainTextEdit::setTextInteractionFlags(QPlainTextEdit* theWrappedObject, Qt::TextInteractionFlags flags) +{ + ( theWrappedObject->setTextInteractionFlags(flags)); +} + +void PythonQtWrapper_QPlainTextEdit::setUndoRedoEnabled(QPlainTextEdit* theWrappedObject, bool enable) +{ + ( theWrappedObject->setUndoRedoEnabled(enable)); +} + +void PythonQtWrapper_QPlainTextEdit::setWordWrapMode(QPlainTextEdit* theWrappedObject, QTextOption::WrapMode policy) +{ + ( theWrappedObject->setWordWrapMode(policy)); +} + +void PythonQtWrapper_QPlainTextEdit::showEvent(QPlainTextEdit* theWrappedObject, QShowEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_showEvent(arg__1)); +} + +bool PythonQtWrapper_QPlainTextEdit::tabChangesFocus(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->tabChangesFocus()); +} + +int PythonQtWrapper_QPlainTextEdit::tabStopWidth(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->tabStopWidth()); +} + +QTextCursor PythonQtWrapper_QPlainTextEdit::textCursor(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->textCursor()); +} + +Qt::TextInteractionFlags PythonQtWrapper_QPlainTextEdit::textInteractionFlags(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->textInteractionFlags()); +} + +void PythonQtWrapper_QPlainTextEdit::timerEvent(QPlainTextEdit* theWrappedObject, QTimerEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_timerEvent(e)); +} + +QString PythonQtWrapper_QPlainTextEdit::toPlainText(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->toPlainText()); +} + +void PythonQtWrapper_QPlainTextEdit::wheelEvent(QPlainTextEdit* theWrappedObject, QWheelEvent* e) +{ + ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_wheelEvent(e)); +} + +QTextOption::WrapMode PythonQtWrapper_QPlainTextEdit::wordWrapMode(QPlainTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->wordWrapMode()); +} + +#endif + +QPolygonF* PythonQtWrapper_QPolygonF::new_QPolygonF() +{ +return new QPolygonF(); } + +QPolygonF* PythonQtWrapper_QPolygonF::new_QPolygonF(const QPolygon& a) +{ +return new QPolygonF(a); } + +QPolygonF* PythonQtWrapper_QPolygonF::new_QPolygonF(const QPolygonF& a) +{ +return new QPolygonF(a); } + +QPolygonF* PythonQtWrapper_QPolygonF::new_QPolygonF(const QRectF& r) +{ +return new QPolygonF(r); } + +QPolygonF* PythonQtWrapper_QPolygonF::new_QPolygonF(const QVector& v) +{ +return new QPolygonF(v); } + +QPolygonF* PythonQtWrapper_QPolygonF::new_QPolygonF(int size) +{ +return new QPolygonF(size); } + +void PythonQtWrapper_QPolygonF::append(QPolygonF* theWrappedObject, const QPointF& t) +{ + ( theWrappedObject->append(t)); +} + +const QPointF* PythonQtWrapper_QPolygonF::at(QPolygonF* theWrappedObject, int i) const +{ + return &( theWrappedObject->at(i)); +} + +QRectF PythonQtWrapper_QPolygonF::boundingRect(QPolygonF* theWrappedObject) const +{ + return ( theWrappedObject->boundingRect()); +} + +int PythonQtWrapper_QPolygonF::capacity(QPolygonF* theWrappedObject) const +{ + return ( theWrappedObject->capacity()); +} + +void PythonQtWrapper_QPolygonF::clear(QPolygonF* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +bool PythonQtWrapper_QPolygonF::contains(QPolygonF* theWrappedObject, const QPointF& t) const +{ + return ( theWrappedObject->contains(t)); +} + +bool PythonQtWrapper_QPolygonF::containsPoint(QPolygonF* theWrappedObject, const QPointF& pt, Qt::FillRule fillRule) const +{ + return ( theWrappedObject->containsPoint(pt, fillRule)); +} + +int PythonQtWrapper_QPolygonF::count(QPolygonF* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +int PythonQtWrapper_QPolygonF::count(QPolygonF* theWrappedObject, const QPointF& t) const +{ + return ( theWrappedObject->count(t)); +} + +bool PythonQtWrapper_QPolygonF::empty(QPolygonF* theWrappedObject) const +{ + return ( theWrappedObject->empty()); +} + +bool PythonQtWrapper_QPolygonF::endsWith(QPolygonF* theWrappedObject, const QPointF& t) const +{ + return ( theWrappedObject->endsWith(t)); +} + +QVector* PythonQtWrapper_QPolygonF::fill(QPolygonF* theWrappedObject, const QPointF& t, int size) +{ + return &( theWrappedObject->fill(t, size)); +} + +const QPointF* PythonQtWrapper_QPolygonF::first(QPolygonF* theWrappedObject) const +{ + return &( theWrappedObject->first()); +} + +QVector PythonQtWrapper_QPolygonF::static_QPolygonF_fromList(const QList& list) +{ + return (QPolygonF::fromList(list)); +} + +int PythonQtWrapper_QPolygonF::indexOf(QPolygonF* theWrappedObject, const QPointF& t, int from) const +{ + return ( theWrappedObject->indexOf(t, from)); +} + +QPolygonF PythonQtWrapper_QPolygonF::intersected(QPolygonF* theWrappedObject, const QPolygonF& r) const +{ + return ( theWrappedObject->intersected(r)); +} + +bool PythonQtWrapper_QPolygonF::isClosed(QPolygonF* theWrappedObject) const +{ + return ( theWrappedObject->isClosed()); +} + +bool PythonQtWrapper_QPolygonF::isEmpty(QPolygonF* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +bool PythonQtWrapper_QPolygonF::isSharedWith(QPolygonF* theWrappedObject, const QVector& other) const +{ + return ( theWrappedObject->isSharedWith(other)); +} + +const QPointF* PythonQtWrapper_QPolygonF::last(QPolygonF* theWrappedObject) const +{ + return &( theWrappedObject->last()); +} + +int PythonQtWrapper_QPolygonF::lastIndexOf(QPolygonF* theWrappedObject, const QPointF& t, int from) const +{ + return ( theWrappedObject->lastIndexOf(t, from)); +} + +QVector PythonQtWrapper_QPolygonF::mid(QPolygonF* theWrappedObject, int pos, int length) const +{ + return ( theWrappedObject->mid(pos, length)); +} + +bool PythonQtWrapper_QPolygonF::__ne__(QPolygonF* theWrappedObject, const QVector& v) const +{ + return ( (*theWrappedObject)!= v); +} + +QPolygonF PythonQtWrapper_QPolygonF::__mul__(QPolygonF* theWrappedObject, const QMatrix& m) +{ + return ( (*theWrappedObject)* m); +} + +QPolygonF PythonQtWrapper_QPolygonF::__mul__(QPolygonF* theWrappedObject, const QTransform& m) +{ + return ( (*theWrappedObject)* m); +} + +bool PythonQtWrapper_QPolygonF::__eq__(QPolygonF* theWrappedObject, const QVector& v) const +{ + return ( (*theWrappedObject)== v); +} + +void PythonQtWrapper_QPolygonF::pop_back(QPolygonF* theWrappedObject) +{ + ( theWrappedObject->pop_back()); +} + +void PythonQtWrapper_QPolygonF::pop_front(QPolygonF* theWrappedObject) +{ + ( theWrappedObject->pop_front()); +} + +void PythonQtWrapper_QPolygonF::prepend(QPolygonF* theWrappedObject, const QPointF& t) +{ + ( theWrappedObject->prepend(t)); +} + +void PythonQtWrapper_QPolygonF::push_back(QPolygonF* theWrappedObject, const QPointF& t) +{ + ( theWrappedObject->push_back(t)); +} + +void PythonQtWrapper_QPolygonF::push_front(QPolygonF* theWrappedObject, const QPointF& t) +{ + ( theWrappedObject->push_front(t)); +} + +void PythonQtWrapper_QPolygonF::remove(QPolygonF* theWrappedObject, int i) +{ + ( theWrappedObject->remove(i)); +} + +void PythonQtWrapper_QPolygonF::remove(QPolygonF* theWrappedObject, int i, int n) +{ + ( theWrappedObject->remove(i, n)); +} + +void PythonQtWrapper_QPolygonF::replace(QPolygonF* theWrappedObject, int i, const QPointF& t) +{ + ( theWrappedObject->replace(i, t)); +} + +void PythonQtWrapper_QPolygonF::reserve(QPolygonF* theWrappedObject, int size) +{ + ( theWrappedObject->reserve(size)); +} + +void PythonQtWrapper_QPolygonF::resize(QPolygonF* theWrappedObject, int size) +{ + ( theWrappedObject->resize(size)); +} + +void PythonQtWrapper_QPolygonF::setSharable(QPolygonF* theWrappedObject, bool sharable) +{ + ( theWrappedObject->setSharable(sharable)); +} + +int PythonQtWrapper_QPolygonF::size(QPolygonF* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +void PythonQtWrapper_QPolygonF::squeeze(QPolygonF* theWrappedObject) +{ + ( theWrappedObject->squeeze()); +} + +bool PythonQtWrapper_QPolygonF::startsWith(QPolygonF* theWrappedObject, const QPointF& t) const +{ + return ( theWrappedObject->startsWith(t)); +} + +QPolygonF PythonQtWrapper_QPolygonF::subtracted(QPolygonF* theWrappedObject, const QPolygonF& r) const +{ + return ( theWrappedObject->subtracted(r)); +} + +void PythonQtWrapper_QPolygonF::swap(QPolygonF* theWrappedObject, QPolygonF& other) +{ + ( theWrappedObject->swap(other)); +} + +QList PythonQtWrapper_QPolygonF::toList(QPolygonF* theWrappedObject) const +{ + return ( theWrappedObject->toList()); +} + +QPolygon PythonQtWrapper_QPolygonF::toPolygon(QPolygonF* theWrappedObject) const +{ + return ( theWrappedObject->toPolygon()); +} + +void PythonQtWrapper_QPolygonF::translate(QPolygonF* theWrappedObject, const QPointF& offset) +{ + ( theWrappedObject->translate(offset)); +} + +void PythonQtWrapper_QPolygonF::translate(QPolygonF* theWrappedObject, qreal dx, qreal dy) +{ + ( theWrappedObject->translate(dx, dy)); +} + +QPolygonF PythonQtWrapper_QPolygonF::translated(QPolygonF* theWrappedObject, const QPointF& offset) const +{ + return ( theWrappedObject->translated(offset)); +} + +QPolygonF PythonQtWrapper_QPolygonF::translated(QPolygonF* theWrappedObject, qreal dx, qreal dy) const +{ + return ( theWrappedObject->translated(dx, dy)); +} + +QPolygonF PythonQtWrapper_QPolygonF::united(QPolygonF* theWrappedObject, const QPolygonF& r) const +{ + return ( theWrappedObject->united(r)); +} + +QPointF PythonQtWrapper_QPolygonF::value(QPolygonF* theWrappedObject, int i) const +{ + return ( theWrappedObject->value(i)); +} + +QPointF PythonQtWrapper_QPolygonF::value(QPolygonF* theWrappedObject, int i, const QPointF& defaultValue) const +{ + return ( theWrappedObject->value(i, defaultValue)); +} + +QString PythonQtWrapper_QPolygonF::py_toString(QPolygonF* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + +#if defined(QT_PRINTSUPPORT_LIB) + +PythonQtShell_QPrintDialog::~PythonQtShell_QPrintDialog() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QPrintDialog::accept() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::accept(); +} +void PythonQtShell_QPrintDialog::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::actionEvent(arg__1); +} +void PythonQtShell_QPrintDialog::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::changeEvent(arg__1); +} +void PythonQtShell_QPrintDialog::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::childEvent(arg__1); +} +void PythonQtShell_QPrintDialog::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::closeEvent(arg__1); +} +void PythonQtShell_QPrintDialog::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::contextMenuEvent(arg__1); +} +void PythonQtShell_QPrintDialog::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::customEvent(arg__1); +} +int PythonQtShell_QPrintDialog::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintDialog::devType(); +} +void PythonQtShell_QPrintDialog::done(int result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::done(result); +} +void PythonQtShell_QPrintDialog::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::dragEnterEvent(arg__1); +} +void PythonQtShell_QPrintDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::dragLeaveEvent(arg__1); +} +void PythonQtShell_QPrintDialog::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::dragMoveEvent(arg__1); +} +void PythonQtShell_QPrintDialog::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::dropEvent(arg__1); +} +void PythonQtShell_QPrintDialog::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::enterEvent(arg__1); +} +bool PythonQtShell_QPrintDialog::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintDialog::event(arg__1); +} +bool PythonQtShell_QPrintDialog::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintDialog::eventFilter(arg__1, arg__2); +} +int PythonQtShell_QPrintDialog::exec() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintDialog::exec(); +} +void PythonQtShell_QPrintDialog::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::focusInEvent(arg__1); +} +bool PythonQtShell_QPrintDialog::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintDialog::focusNextPrevChild(next); +} +void PythonQtShell_QPrintDialog::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::focusOutEvent(arg__1); +} +bool PythonQtShell_QPrintDialog::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintDialog::hasHeightForWidth(); +} +int PythonQtShell_QPrintDialog::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintDialog::heightForWidth(arg__1); +} +void PythonQtShell_QPrintDialog::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::hideEvent(arg__1); +} +void PythonQtShell_QPrintDialog::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::initPainter(painter); +} +void PythonQtShell_QPrintDialog::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QPrintDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintDialog::inputMethodQuery(arg__1); +} +void PythonQtShell_QPrintDialog::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::keyPressEvent(arg__1); +} +void PythonQtShell_QPrintDialog::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::keyReleaseEvent(arg__1); +} +void PythonQtShell_QPrintDialog::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::leaveEvent(arg__1); +} +int PythonQtShell_QPrintDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintDialog::metric(arg__1); +} +void PythonQtShell_QPrintDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QPrintDialog::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::mouseMoveEvent(arg__1); +} +void PythonQtShell_QPrintDialog::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::mousePressEvent(arg__1); +} +void PythonQtShell_QPrintDialog::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QPrintDialog::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::moveEvent(arg__1); +} +bool PythonQtShell_QPrintDialog::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintDialog::nativeEvent(eventType, message, result); +} +void PythonQtShell_QPrintDialog::open() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::open(); +} +QPaintEngine* PythonQtShell_QPrintDialog::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintDialog::paintEngine(); +} +void PythonQtShell_QPrintDialog::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QPrintDialog::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintDialog::redirected(offset); +} +void PythonQtShell_QPrintDialog::reject() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::reject(); +} +void PythonQtShell_QPrintDialog::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QPrintDialog::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintDialog::sharedPainter(); +} +void PythonQtShell_QPrintDialog::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::showEvent(arg__1); +} +void PythonQtShell_QPrintDialog::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::tabletEvent(arg__1); +} +void PythonQtShell_QPrintDialog::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::timerEvent(arg__1); +} +void PythonQtShell_QPrintDialog::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintDialog::wheelEvent(arg__1); +} +QPrintDialog* PythonQtWrapper_QPrintDialog::new_QPrintDialog(QPrinter* printer, QWidget* parent) +{ +return new PythonQtShell_QPrintDialog(printer, parent); } + +QPrintDialog* PythonQtWrapper_QPrintDialog::new_QPrintDialog(QWidget* parent) +{ +return new PythonQtShell_QPrintDialog(parent); } + +void PythonQtWrapper_QPrintDialog::accept(QPrintDialog* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QPrintDialog*)theWrappedObject)->promoted_accept()); +} + +void PythonQtWrapper_QPrintDialog::accepted(QPrintDialog* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QPrintDialog*)theWrappedObject)->promoted_accepted()); +} + +void PythonQtWrapper_QPrintDialog::done(QPrintDialog* theWrappedObject, int result) +{ + ( ((PythonQtPublicPromoter_QPrintDialog*)theWrappedObject)->promoted_done(result)); +} + +int PythonQtWrapper_QPrintDialog::exec(QPrintDialog* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QPrintDialog*)theWrappedObject)->promoted_exec()); +} + +void PythonQtWrapper_QPrintDialog::open(QPrintDialog* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QPrintDialog*)theWrappedObject)->promoted_open()); +} + +void PythonQtWrapper_QPrintDialog::open(QPrintDialog* theWrappedObject, QObject* receiver, const char* member) +{ + ( theWrappedObject->open(receiver, member)); +} + +QAbstractPrintDialog::PrintDialogOptions PythonQtWrapper_QPrintDialog::options(QPrintDialog* theWrappedObject) const +{ + return ( theWrappedObject->options()); +} + +void PythonQtWrapper_QPrintDialog::setOption(QPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option, bool on) +{ + ( theWrappedObject->setOption(option, on)); +} + +void PythonQtWrapper_QPrintDialog::setOptions(QPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOptions options) +{ + ( theWrappedObject->setOptions(options)); +} + +void PythonQtWrapper_QPrintDialog::setVisible(QPrintDialog* theWrappedObject, bool visible) +{ + ( theWrappedObject->setVisible(visible)); +} + +bool PythonQtWrapper_QPrintDialog::testOption(QPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option) const +{ + return ( theWrappedObject->testOption(option)); +} + + + +PythonQtShell_QPrintEngine::~PythonQtShell_QPrintEngine() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QPrintEngine::abort() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "abort"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("abort", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +int PythonQtShell_QPrintEngine::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +bool PythonQtShell_QPrintEngine::newPage() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "newPage"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("newPage", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +QPrinter::PrinterState PythonQtShell_QPrintEngine::printerState() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "printerState"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPrinter::PrinterState"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPrinter::PrinterState returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("printerState", methodInfo, result); + } else { + returnValue = *((QPrinter::PrinterState*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrinter::PrinterState(); +} +QVariant PythonQtShell_QPrintEngine::property(QPrintEngine::PrintEnginePropertyKey key) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "property"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "QPrintEngine::PrintEnginePropertyKey"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&key}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("property", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVariant(); +} +void PythonQtShell_QPrintEngine::setProperty(QPrintEngine::PrintEnginePropertyKey key, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setProperty"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPrintEngine::PrintEnginePropertyKey" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&key, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +QPrintEngine* PythonQtWrapper_QPrintEngine::new_QPrintEngine() +{ +return new PythonQtShell_QPrintEngine(); } + + + +PythonQtShell_QPrintPreviewDialog::~PythonQtShell_QPrintPreviewDialog() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QPrintPreviewDialog::accept() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::accept(); +} +void PythonQtShell_QPrintPreviewDialog::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::actionEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::changeEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::childEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::closeEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::contextMenuEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::customEvent(arg__1); +} +int PythonQtShell_QPrintPreviewDialog::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewDialog::devType(); +} +void PythonQtShell_QPrintPreviewDialog::done(int result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::done(result); +} +void PythonQtShell_QPrintPreviewDialog::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::dragEnterEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::dragLeaveEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::dragMoveEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::dropEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::enterEvent(arg__1); +} +bool PythonQtShell_QPrintPreviewDialog::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewDialog::event(arg__1); +} +bool PythonQtShell_QPrintPreviewDialog::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewDialog::eventFilter(arg__1, arg__2); +} +int PythonQtShell_QPrintPreviewDialog::exec() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewDialog::exec(); +} +void PythonQtShell_QPrintPreviewDialog::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::focusInEvent(arg__1); +} +bool PythonQtShell_QPrintPreviewDialog::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewDialog::focusNextPrevChild(next); +} +void PythonQtShell_QPrintPreviewDialog::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::focusOutEvent(arg__1); +} +bool PythonQtShell_QPrintPreviewDialog::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewDialog::hasHeightForWidth(); +} +int PythonQtShell_QPrintPreviewDialog::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewDialog::heightForWidth(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::hideEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::initPainter(painter); +} +void PythonQtShell_QPrintPreviewDialog::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QPrintPreviewDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewDialog::inputMethodQuery(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::keyPressEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::keyReleaseEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::leaveEvent(arg__1); +} +int PythonQtShell_QPrintPreviewDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewDialog::metric(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::mouseMoveEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::mousePressEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::moveEvent(arg__1); +} +bool PythonQtShell_QPrintPreviewDialog::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewDialog::nativeEvent(eventType, message, result); +} +void PythonQtShell_QPrintPreviewDialog::open() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::open(); +} +QPaintEngine* PythonQtShell_QPrintPreviewDialog::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewDialog::paintEngine(); +} +void PythonQtShell_QPrintPreviewDialog::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QPrintPreviewDialog::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewDialog::redirected(offset); +} +void PythonQtShell_QPrintPreviewDialog::reject() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::reject(); +} +void PythonQtShell_QPrintPreviewDialog::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QPrintPreviewDialog::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewDialog::sharedPainter(); +} +void PythonQtShell_QPrintPreviewDialog::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::showEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::tabletEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::timerEvent(arg__1); +} +void PythonQtShell_QPrintPreviewDialog::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewDialog::wheelEvent(arg__1); +} +QPrintPreviewDialog* PythonQtWrapper_QPrintPreviewDialog::new_QPrintPreviewDialog(QPrinter* printer, QWidget* parent, Qt::WindowFlags flags) +{ +return new PythonQtShell_QPrintPreviewDialog(printer, parent, flags); } + +QPrintPreviewDialog* PythonQtWrapper_QPrintPreviewDialog::new_QPrintPreviewDialog(QWidget* parent, Qt::WindowFlags flags) +{ +return new PythonQtShell_QPrintPreviewDialog(parent, flags); } + +void PythonQtWrapper_QPrintPreviewDialog::done(QPrintPreviewDialog* theWrappedObject, int result) +{ + ( ((PythonQtPublicPromoter_QPrintPreviewDialog*)theWrappedObject)->promoted_done(result)); +} + +void PythonQtWrapper_QPrintPreviewDialog::open(QPrintPreviewDialog* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QPrintPreviewDialog*)theWrappedObject)->promoted_open()); +} + +void PythonQtWrapper_QPrintPreviewDialog::open(QPrintPreviewDialog* theWrappedObject, QObject* receiver, const char* member) +{ + ( theWrappedObject->open(receiver, member)); +} + +QPrinter* PythonQtWrapper_QPrintPreviewDialog::printer(QPrintPreviewDialog* theWrappedObject) +{ + return ( theWrappedObject->printer()); +} + +void PythonQtWrapper_QPrintPreviewDialog::setVisible(QPrintPreviewDialog* theWrappedObject, bool visible) +{ + ( theWrappedObject->setVisible(visible)); +} + + + +PythonQtShell_QPrintPreviewWidget::~PythonQtShell_QPrintPreviewWidget() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QPrintPreviewWidget::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::actionEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::changeEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::childEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::closeEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::contextMenuEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::customEvent(arg__1); +} +int PythonQtShell_QPrintPreviewWidget::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewWidget::devType(); +} +void PythonQtShell_QPrintPreviewWidget::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::dragEnterEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::dragLeaveEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::dragMoveEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::dropEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::enterEvent(arg__1); +} +bool PythonQtShell_QPrintPreviewWidget::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewWidget::event(arg__1); +} +bool PythonQtShell_QPrintPreviewWidget::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewWidget::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QPrintPreviewWidget::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::focusInEvent(arg__1); +} +bool PythonQtShell_QPrintPreviewWidget::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewWidget::focusNextPrevChild(next); +} +void PythonQtShell_QPrintPreviewWidget::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::focusOutEvent(arg__1); +} +bool PythonQtShell_QPrintPreviewWidget::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewWidget::hasHeightForWidth(); +} +int PythonQtShell_QPrintPreviewWidget::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewWidget::heightForWidth(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::hideEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::initPainter(painter); +} +void PythonQtShell_QPrintPreviewWidget::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QPrintPreviewWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewWidget::inputMethodQuery(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::keyPressEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::keyReleaseEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::leaveEvent(arg__1); +} +int PythonQtShell_QPrintPreviewWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewWidget::metric(arg__1); +} +QSize PythonQtShell_QPrintPreviewWidget::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewWidget::minimumSizeHint(); +} +void PythonQtShell_QPrintPreviewWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::mouseMoveEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::mousePressEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::moveEvent(arg__1); +} +bool PythonQtShell_QPrintPreviewWidget::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewWidget::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QPrintPreviewWidget::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewWidget::paintEngine(); +} +void PythonQtShell_QPrintPreviewWidget::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QPrintPreviewWidget::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewWidget::redirected(offset); +} +void PythonQtShell_QPrintPreviewWidget::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QPrintPreviewWidget::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewWidget::sharedPainter(); +} +void PythonQtShell_QPrintPreviewWidget::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::showEvent(arg__1); +} +QSize PythonQtShell_QPrintPreviewWidget::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPrintPreviewWidget::sizeHint(); +} +void PythonQtShell_QPrintPreviewWidget::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::tabletEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::timerEvent(arg__1); +} +void PythonQtShell_QPrintPreviewWidget::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPrintPreviewWidget::wheelEvent(arg__1); +} +QPrintPreviewWidget* PythonQtWrapper_QPrintPreviewWidget::new_QPrintPreviewWidget(QPrinter* printer, QWidget* parent, Qt::WindowFlags flags) +{ +return new PythonQtShell_QPrintPreviewWidget(printer, parent, flags); } + +QPrintPreviewWidget* PythonQtWrapper_QPrintPreviewWidget::new_QPrintPreviewWidget(QWidget* parent, Qt::WindowFlags flags) +{ +return new PythonQtShell_QPrintPreviewWidget(parent, flags); } + +int PythonQtWrapper_QPrintPreviewWidget::currentPage(QPrintPreviewWidget* theWrappedObject) const +{ + return ( theWrappedObject->currentPage()); +} + +QPrinter::Orientation PythonQtWrapper_QPrintPreviewWidget::orientation(QPrintPreviewWidget* theWrappedObject) const +{ + return ( theWrappedObject->orientation()); +} + +int PythonQtWrapper_QPrintPreviewWidget::pageCount(QPrintPreviewWidget* theWrappedObject) const +{ + return ( theWrappedObject->pageCount()); +} + +void PythonQtWrapper_QPrintPreviewWidget::setVisible(QPrintPreviewWidget* theWrappedObject, bool visible) +{ + ( theWrappedObject->setVisible(visible)); +} + +QPrintPreviewWidget::ViewMode PythonQtWrapper_QPrintPreviewWidget::viewMode(QPrintPreviewWidget* theWrappedObject) const +{ + return ( theWrappedObject->viewMode()); +} + +qreal PythonQtWrapper_QPrintPreviewWidget::zoomFactor(QPrintPreviewWidget* theWrappedObject) const +{ + return ( theWrappedObject->zoomFactor()); +} + +QPrintPreviewWidget::ZoomMode PythonQtWrapper_QPrintPreviewWidget::zoomMode(QPrintPreviewWidget* theWrappedObject) const +{ + return ( theWrappedObject->zoomMode()); +} + + + +PythonQtShell_QPrinter::~PythonQtShell_QPrinter() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QPrinter* PythonQtWrapper_QPrinter::new_QPrinter(QPrinter::PrinterMode mode) +{ +return new PythonQtShell_QPrinter(mode); } + +QPrinter* PythonQtWrapper_QPrinter::new_QPrinter(const QPrinterInfo& printer, QPrinter::PrinterMode mode) +{ +return new PythonQtShell_QPrinter(printer, mode); } + +bool PythonQtWrapper_QPrinter::abort(QPrinter* theWrappedObject) +{ + return ( theWrappedObject->abort()); +} + +int PythonQtWrapper_QPrinter::actualNumCopies(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->actualNumCopies()); +} + +bool PythonQtWrapper_QPrinter::collateCopies(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->collateCopies()); +} + +QPrinter::ColorMode PythonQtWrapper_QPrinter::colorMode(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->colorMode()); +} + +int PythonQtWrapper_QPrinter::copyCount(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->copyCount()); +} + +QString PythonQtWrapper_QPrinter::creator(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->creator()); +} + +int PythonQtWrapper_QPrinter::devType(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->devType()); +} + +QString PythonQtWrapper_QPrinter::docName(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->docName()); +} + +bool PythonQtWrapper_QPrinter::doubleSidedPrinting(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->doubleSidedPrinting()); +} + +QPrinter::DuplexMode PythonQtWrapper_QPrinter::duplex(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->duplex()); +} + +bool PythonQtWrapper_QPrinter::fontEmbeddingEnabled(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->fontEmbeddingEnabled()); +} + +int PythonQtWrapper_QPrinter::fromPage(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->fromPage()); +} + +bool PythonQtWrapper_QPrinter::fullPage(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->fullPage()); +} + +void PythonQtWrapper_QPrinter::getPageMargins(QPrinter* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom, QPrinter::Unit unit) const +{ + ( theWrappedObject->getPageMargins(left, top, right, bottom, unit)); +} + +bool PythonQtWrapper_QPrinter::isValid(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +bool PythonQtWrapper_QPrinter::newPage(QPrinter* theWrappedObject) +{ + return ( theWrappedObject->newPage()); +} + +int PythonQtWrapper_QPrinter::numCopies(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->numCopies()); +} + +QPrinter::Orientation PythonQtWrapper_QPrinter::orientation(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->orientation()); +} + +QString PythonQtWrapper_QPrinter::outputFileName(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->outputFileName()); +} + +QPrinter::OutputFormat PythonQtWrapper_QPrinter::outputFormat(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->outputFormat()); +} + +QPrinter::PageOrder PythonQtWrapper_QPrinter::pageOrder(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->pageOrder()); +} + +QRect PythonQtWrapper_QPrinter::pageRect(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->pageRect()); +} + +QRectF PythonQtWrapper_QPrinter::pageRect(QPrinter* theWrappedObject, QPrinter::Unit arg__1) const +{ + return ( theWrappedObject->pageRect(arg__1)); +} + +QPaintEngine* PythonQtWrapper_QPrinter::paintEngine(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->paintEngine()); +} + +QRect PythonQtWrapper_QPrinter::paperRect(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->paperRect()); +} + +QRectF PythonQtWrapper_QPrinter::paperRect(QPrinter* theWrappedObject, QPrinter::Unit arg__1) const +{ + return ( theWrappedObject->paperRect(arg__1)); +} + +QSizeF PythonQtWrapper_QPrinter::paperSize(QPrinter* theWrappedObject, QPrinter::Unit unit) const +{ + return ( theWrappedObject->paperSize(unit)); +} + +QPrinter::PaperSource PythonQtWrapper_QPrinter::paperSource(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->paperSource()); +} + +QPrintEngine* PythonQtWrapper_QPrinter::printEngine(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->printEngine()); +} + +QString PythonQtWrapper_QPrinter::printProgram(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->printProgram()); +} + +QPrinter::PrintRange PythonQtWrapper_QPrinter::printRange(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->printRange()); +} + +QString PythonQtWrapper_QPrinter::printerName(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->printerName()); +} + +QPrinter::PrinterState PythonQtWrapper_QPrinter::printerState(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->printerState()); +} + +int PythonQtWrapper_QPrinter::resolution(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->resolution()); +} + +void PythonQtWrapper_QPrinter::setCollateCopies(QPrinter* theWrappedObject, bool collate) +{ + ( theWrappedObject->setCollateCopies(collate)); +} + +void PythonQtWrapper_QPrinter::setColorMode(QPrinter* theWrappedObject, QPrinter::ColorMode arg__1) +{ + ( theWrappedObject->setColorMode(arg__1)); +} + +void PythonQtWrapper_QPrinter::setCopyCount(QPrinter* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setCopyCount(arg__1)); +} + +void PythonQtWrapper_QPrinter::setCreator(QPrinter* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setCreator(arg__1)); +} + +void PythonQtWrapper_QPrinter::setDocName(QPrinter* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setDocName(arg__1)); +} + +void PythonQtWrapper_QPrinter::setDoubleSidedPrinting(QPrinter* theWrappedObject, bool enable) +{ + ( theWrappedObject->setDoubleSidedPrinting(enable)); +} + +void PythonQtWrapper_QPrinter::setDuplex(QPrinter* theWrappedObject, QPrinter::DuplexMode duplex) +{ + ( theWrappedObject->setDuplex(duplex)); +} + +void PythonQtWrapper_QPrinter::setFontEmbeddingEnabled(QPrinter* theWrappedObject, bool enable) +{ + ( theWrappedObject->setFontEmbeddingEnabled(enable)); +} + +void PythonQtWrapper_QPrinter::setFromTo(QPrinter* theWrappedObject, int fromPage, int toPage) +{ + ( theWrappedObject->setFromTo(fromPage, toPage)); +} + +void PythonQtWrapper_QPrinter::setFullPage(QPrinter* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setFullPage(arg__1)); +} + +void PythonQtWrapper_QPrinter::setNumCopies(QPrinter* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setNumCopies(arg__1)); +} + +void PythonQtWrapper_QPrinter::setOrientation(QPrinter* theWrappedObject, QPrinter::Orientation arg__1) +{ + ( theWrappedObject->setOrientation(arg__1)); +} + +void PythonQtWrapper_QPrinter::setOutputFileName(QPrinter* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setOutputFileName(arg__1)); +} + +void PythonQtWrapper_QPrinter::setOutputFormat(QPrinter* theWrappedObject, QPrinter::OutputFormat format) +{ + ( theWrappedObject->setOutputFormat(format)); +} + +void PythonQtWrapper_QPrinter::setPageMargins(QPrinter* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom, QPrinter::Unit unit) +{ + ( theWrappedObject->setPageMargins(left, top, right, bottom, unit)); +} + +void PythonQtWrapper_QPrinter::setPageOrder(QPrinter* theWrappedObject, QPrinter::PageOrder arg__1) +{ + ( theWrappedObject->setPageOrder(arg__1)); +} + +void PythonQtWrapper_QPrinter::setPageSizeMM(QPrinter* theWrappedObject, const QSizeF& size) +{ + ( theWrappedObject->setPageSizeMM(size)); +} + +void PythonQtWrapper_QPrinter::setPaperSize(QPrinter* theWrappedObject, const QSizeF& paperSize, QPrinter::Unit unit) +{ + ( theWrappedObject->setPaperSize(paperSize, unit)); +} + +void PythonQtWrapper_QPrinter::setPaperSource(QPrinter* theWrappedObject, QPrinter::PaperSource arg__1) +{ + ( theWrappedObject->setPaperSource(arg__1)); +} + +void PythonQtWrapper_QPrinter::setPrintProgram(QPrinter* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setPrintProgram(arg__1)); +} + +void PythonQtWrapper_QPrinter::setPrintRange(QPrinter* theWrappedObject, QPrinter::PrintRange range) +{ + ( theWrappedObject->setPrintRange(range)); +} + +void PythonQtWrapper_QPrinter::setPrinterName(QPrinter* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setPrinterName(arg__1)); +} + +void PythonQtWrapper_QPrinter::setResolution(QPrinter* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setResolution(arg__1)); +} + +QList PythonQtWrapper_QPrinter::supportedResolutions(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->supportedResolutions()); +} + +bool PythonQtWrapper_QPrinter::supportsMultipleCopies(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->supportsMultipleCopies()); +} + +int PythonQtWrapper_QPrinter::toPage(QPrinter* theWrappedObject) const +{ + return ( theWrappedObject->toPage()); +} + +#endif + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QProgressBar::~PythonQtShell_QProgressBar() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QProgressBar::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::actionEvent(arg__1); +} +void PythonQtShell_QProgressBar::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::changeEvent(arg__1); +} +void PythonQtShell_QProgressBar::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::childEvent(arg__1); +} +void PythonQtShell_QProgressBar::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::closeEvent(arg__1); +} +void PythonQtShell_QProgressBar::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::contextMenuEvent(arg__1); +} +void PythonQtShell_QProgressBar::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::customEvent(arg__1); +} +int PythonQtShell_QProgressBar::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressBar::devType(); +} +void PythonQtShell_QProgressBar::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::dragEnterEvent(arg__1); +} +void PythonQtShell_QProgressBar::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::dragLeaveEvent(arg__1); +} +void PythonQtShell_QProgressBar::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::dragMoveEvent(arg__1); +} +void PythonQtShell_QProgressBar::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::dropEvent(arg__1); +} +void PythonQtShell_QProgressBar::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::enterEvent(arg__1); +} +bool PythonQtShell_QProgressBar::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressBar::event(e); +} +bool PythonQtShell_QProgressBar::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressBar::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QProgressBar::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::focusInEvent(arg__1); +} +bool PythonQtShell_QProgressBar::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressBar::focusNextPrevChild(next); +} +void PythonQtShell_QProgressBar::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::focusOutEvent(arg__1); +} +bool PythonQtShell_QProgressBar::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressBar::hasHeightForWidth(); +} +int PythonQtShell_QProgressBar::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressBar::heightForWidth(arg__1); +} +void PythonQtShell_QProgressBar::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::hideEvent(arg__1); +} +void PythonQtShell_QProgressBar::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::initPainter(painter); +} +void PythonQtShell_QProgressBar::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QProgressBar::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressBar::inputMethodQuery(arg__1); +} +void PythonQtShell_QProgressBar::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::keyPressEvent(arg__1); +} +void PythonQtShell_QProgressBar::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::keyReleaseEvent(arg__1); +} +void PythonQtShell_QProgressBar::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::leaveEvent(arg__1); +} +int PythonQtShell_QProgressBar::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressBar::metric(arg__1); +} +void PythonQtShell_QProgressBar::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QProgressBar::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::mouseMoveEvent(arg__1); +} +void PythonQtShell_QProgressBar::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::mousePressEvent(arg__1); +} +void PythonQtShell_QProgressBar::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QProgressBar::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::moveEvent(arg__1); +} +bool PythonQtShell_QProgressBar::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressBar::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QProgressBar::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressBar::paintEngine(); +} +void PythonQtShell_QProgressBar::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QProgressBar::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressBar::redirected(offset); +} +void PythonQtShell_QProgressBar::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QProgressBar::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressBar::sharedPainter(); +} +void PythonQtShell_QProgressBar::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::showEvent(arg__1); +} +void PythonQtShell_QProgressBar::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::tabletEvent(arg__1); +} +QString PythonQtShell_QProgressBar::text() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "text"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QString returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("text", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressBar::text(); +} +void PythonQtShell_QProgressBar::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::timerEvent(arg__1); +} +void PythonQtShell_QProgressBar::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressBar::wheelEvent(arg__1); +} +QProgressBar* PythonQtWrapper_QProgressBar::new_QProgressBar(QWidget* parent) +{ +return new PythonQtShell_QProgressBar(parent); } + +Qt::Alignment PythonQtWrapper_QProgressBar::alignment(QProgressBar* theWrappedObject) const +{ + return ( theWrappedObject->alignment()); +} + +bool PythonQtWrapper_QProgressBar::event(QProgressBar* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QProgressBar*)theWrappedObject)->promoted_event(e)); +} + +QString PythonQtWrapper_QProgressBar::format(QProgressBar* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +bool PythonQtWrapper_QProgressBar::invertedAppearance(QProgressBar* theWrappedObject) const +{ + return ( theWrappedObject->invertedAppearance()); +} + +bool PythonQtWrapper_QProgressBar::isTextVisible(QProgressBar* theWrappedObject) const +{ + return ( theWrappedObject->isTextVisible()); +} + +int PythonQtWrapper_QProgressBar::maximum(QProgressBar* theWrappedObject) const +{ + return ( theWrappedObject->maximum()); +} + +int PythonQtWrapper_QProgressBar::minimum(QProgressBar* theWrappedObject) const +{ + return ( theWrappedObject->minimum()); +} + +QSize PythonQtWrapper_QProgressBar::minimumSizeHint(QProgressBar* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +Qt::Orientation PythonQtWrapper_QProgressBar::orientation(QProgressBar* theWrappedObject) const +{ + return ( theWrappedObject->orientation()); +} + +void PythonQtWrapper_QProgressBar::paintEvent(QProgressBar* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QProgressBar*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +void PythonQtWrapper_QProgressBar::setAlignment(QProgressBar* theWrappedObject, Qt::Alignment alignment) +{ + ( theWrappedObject->setAlignment(alignment)); +} + +void PythonQtWrapper_QProgressBar::setFormat(QProgressBar* theWrappedObject, const QString& format) +{ + ( theWrappedObject->setFormat(format)); +} + +void PythonQtWrapper_QProgressBar::setInvertedAppearance(QProgressBar* theWrappedObject, bool invert) +{ + ( theWrappedObject->setInvertedAppearance(invert)); +} + +void PythonQtWrapper_QProgressBar::setTextDirection(QProgressBar* theWrappedObject, QProgressBar::Direction textDirection) +{ + ( theWrappedObject->setTextDirection(textDirection)); +} + +void PythonQtWrapper_QProgressBar::setTextVisible(QProgressBar* theWrappedObject, bool visible) +{ + ( theWrappedObject->setTextVisible(visible)); +} + +QSize PythonQtWrapper_QProgressBar::sizeHint(QProgressBar* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +QString PythonQtWrapper_QProgressBar::text(QProgressBar* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QProgressBar*)theWrappedObject)->promoted_text()); +} + +QProgressBar::Direction PythonQtWrapper_QProgressBar::textDirection(QProgressBar* theWrappedObject) const +{ + return ( theWrappedObject->textDirection()); +} + +int PythonQtWrapper_QProgressBar::value(QProgressBar* theWrappedObject) const +{ + return ( theWrappedObject->value()); +} + + + +PythonQtShell_QProgressDialog::~PythonQtShell_QProgressDialog() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QProgressDialog::accept() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::accept(); +} +void PythonQtShell_QProgressDialog::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::actionEvent(arg__1); +} +void PythonQtShell_QProgressDialog::changeEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::changeEvent(event); +} +void PythonQtShell_QProgressDialog::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::childEvent(arg__1); +} +void PythonQtShell_QProgressDialog::closeEvent(QCloseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::closeEvent(event); +} +void PythonQtShell_QProgressDialog::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::contextMenuEvent(arg__1); +} +void PythonQtShell_QProgressDialog::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::customEvent(arg__1); +} +int PythonQtShell_QProgressDialog::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressDialog::devType(); +} +void PythonQtShell_QProgressDialog::done(int arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::done(arg__1); +} +void PythonQtShell_QProgressDialog::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::dragEnterEvent(arg__1); +} +void PythonQtShell_QProgressDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::dragLeaveEvent(arg__1); +} +void PythonQtShell_QProgressDialog::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::dragMoveEvent(arg__1); +} +void PythonQtShell_QProgressDialog::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::dropEvent(arg__1); +} +void PythonQtShell_QProgressDialog::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::enterEvent(arg__1); +} +bool PythonQtShell_QProgressDialog::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressDialog::event(arg__1); +} +bool PythonQtShell_QProgressDialog::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressDialog::eventFilter(arg__1, arg__2); +} +int PythonQtShell_QProgressDialog::exec() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressDialog::exec(); +} +void PythonQtShell_QProgressDialog::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::focusInEvent(arg__1); +} +bool PythonQtShell_QProgressDialog::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressDialog::focusNextPrevChild(next); +} +void PythonQtShell_QProgressDialog::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::focusOutEvent(arg__1); +} +bool PythonQtShell_QProgressDialog::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressDialog::hasHeightForWidth(); +} +int PythonQtShell_QProgressDialog::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressDialog::heightForWidth(arg__1); +} +void PythonQtShell_QProgressDialog::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::hideEvent(arg__1); +} +void PythonQtShell_QProgressDialog::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::initPainter(painter); +} +void PythonQtShell_QProgressDialog::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QProgressDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressDialog::inputMethodQuery(arg__1); +} +void PythonQtShell_QProgressDialog::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::keyPressEvent(arg__1); +} +void PythonQtShell_QProgressDialog::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::keyReleaseEvent(arg__1); +} +void PythonQtShell_QProgressDialog::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::leaveEvent(arg__1); +} +int PythonQtShell_QProgressDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressDialog::metric(arg__1); +} +void PythonQtShell_QProgressDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QProgressDialog::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::mouseMoveEvent(arg__1); +} +void PythonQtShell_QProgressDialog::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::mousePressEvent(arg__1); +} +void PythonQtShell_QProgressDialog::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QProgressDialog::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::moveEvent(arg__1); +} +bool PythonQtShell_QProgressDialog::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressDialog::nativeEvent(eventType, message, result); +} +void PythonQtShell_QProgressDialog::open() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::open(); +} +QPaintEngine* PythonQtShell_QProgressDialog::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressDialog::paintEngine(); +} +void PythonQtShell_QProgressDialog::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QProgressDialog::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressDialog::redirected(offset); +} +void PythonQtShell_QProgressDialog::reject() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::reject(); +} +void PythonQtShell_QProgressDialog::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::resizeEvent(event); +} +QPainter* PythonQtShell_QProgressDialog::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QProgressDialog::sharedPainter(); +} +void PythonQtShell_QProgressDialog::showEvent(QShowEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::showEvent(event); +} +void PythonQtShell_QProgressDialog::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::tabletEvent(arg__1); +} +void PythonQtShell_QProgressDialog::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::timerEvent(arg__1); +} +void PythonQtShell_QProgressDialog::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QProgressDialog::wheelEvent(arg__1); +} +QProgressDialog* PythonQtWrapper_QProgressDialog::new_QProgressDialog(QWidget* parent, Qt::WindowFlags flags) +{ +return new PythonQtShell_QProgressDialog(parent, flags); } + +QProgressDialog* PythonQtWrapper_QProgressDialog::new_QProgressDialog(const QString& labelText, const QString& cancelButtonText, int minimum, int maximum, QWidget* parent, Qt::WindowFlags flags) +{ +return new PythonQtShell_QProgressDialog(labelText, cancelButtonText, minimum, maximum, parent, flags); } + +bool PythonQtWrapper_QProgressDialog::autoClose(QProgressDialog* theWrappedObject) const +{ + return ( theWrappedObject->autoClose()); +} + +bool PythonQtWrapper_QProgressDialog::autoReset(QProgressDialog* theWrappedObject) const +{ + return ( theWrappedObject->autoReset()); +} + +void PythonQtWrapper_QProgressDialog::changeEvent(QProgressDialog* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QProgressDialog*)theWrappedObject)->promoted_changeEvent(event)); +} + +void PythonQtWrapper_QProgressDialog::closeEvent(QProgressDialog* theWrappedObject, QCloseEvent* event) +{ + ( ((PythonQtPublicPromoter_QProgressDialog*)theWrappedObject)->promoted_closeEvent(event)); +} + +QString PythonQtWrapper_QProgressDialog::labelText(QProgressDialog* theWrappedObject) const +{ + return ( theWrappedObject->labelText()); +} + +int PythonQtWrapper_QProgressDialog::maximum(QProgressDialog* theWrappedObject) const +{ + return ( theWrappedObject->maximum()); +} + +int PythonQtWrapper_QProgressDialog::minimum(QProgressDialog* theWrappedObject) const +{ + return ( theWrappedObject->minimum()); +} + +int PythonQtWrapper_QProgressDialog::minimumDuration(QProgressDialog* theWrappedObject) const +{ + return ( theWrappedObject->minimumDuration()); +} + +void PythonQtWrapper_QProgressDialog::open(QProgressDialog* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QProgressDialog*)theWrappedObject)->promoted_open()); +} + +void PythonQtWrapper_QProgressDialog::open(QProgressDialog* theWrappedObject, QObject* receiver, const char* member) +{ + ( theWrappedObject->open(receiver, member)); +} + +void PythonQtWrapper_QProgressDialog::resizeEvent(QProgressDialog* theWrappedObject, QResizeEvent* event) +{ + ( ((PythonQtPublicPromoter_QProgressDialog*)theWrappedObject)->promoted_resizeEvent(event)); +} + +void PythonQtWrapper_QProgressDialog::setAutoClose(QProgressDialog* theWrappedObject, bool close) +{ + ( theWrappedObject->setAutoClose(close)); +} + +void PythonQtWrapper_QProgressDialog::setAutoReset(QProgressDialog* theWrappedObject, bool reset) +{ + ( theWrappedObject->setAutoReset(reset)); +} + +void PythonQtWrapper_QProgressDialog::setBar(QProgressDialog* theWrappedObject, QProgressBar* bar) +{ + ( theWrappedObject->setBar(bar)); +} + +void PythonQtWrapper_QProgressDialog::setCancelButton(QProgressDialog* theWrappedObject, QPushButton* button) +{ + ( theWrappedObject->setCancelButton(button)); +} + +void PythonQtWrapper_QProgressDialog::setLabel(QProgressDialog* theWrappedObject, QLabel* label) +{ + ( theWrappedObject->setLabel(label)); +} + +void PythonQtWrapper_QProgressDialog::showEvent(QProgressDialog* theWrappedObject, QShowEvent* event) +{ + ( ((PythonQtPublicPromoter_QProgressDialog*)theWrappedObject)->promoted_showEvent(event)); +} + +QSize PythonQtWrapper_QProgressDialog::sizeHint(QProgressDialog* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +int PythonQtWrapper_QProgressDialog::value(QProgressDialog* theWrappedObject) const +{ + return ( theWrappedObject->value()); +} + +bool PythonQtWrapper_QProgressDialog::wasCanceled(QProgressDialog* theWrappedObject) const +{ + return ( theWrappedObject->wasCanceled()); +} + + + +PythonQtShell_QPushButton::~PythonQtShell_QPushButton() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QPushButton::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::actionEvent(arg__1); +} +void PythonQtShell_QPushButton::changeEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::changeEvent(e); +} +void PythonQtShell_QPushButton::checkStateSet() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "checkStateSet"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::checkStateSet(); +} +void PythonQtShell_QPushButton::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::childEvent(arg__1); +} +void PythonQtShell_QPushButton::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::closeEvent(arg__1); +} +void PythonQtShell_QPushButton::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::contextMenuEvent(arg__1); +} +void PythonQtShell_QPushButton::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::customEvent(arg__1); +} +int PythonQtShell_QPushButton::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPushButton::devType(); +} +void PythonQtShell_QPushButton::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::dragEnterEvent(arg__1); +} +void PythonQtShell_QPushButton::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::dragLeaveEvent(arg__1); +} +void PythonQtShell_QPushButton::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::dragMoveEvent(arg__1); +} +void PythonQtShell_QPushButton::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::dropEvent(arg__1); +} +void PythonQtShell_QPushButton::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::enterEvent(arg__1); +} +bool PythonQtShell_QPushButton::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPushButton::event(e); +} +bool PythonQtShell_QPushButton::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPushButton::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QPushButton::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::focusInEvent(arg__1); +} +bool PythonQtShell_QPushButton::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPushButton::focusNextPrevChild(next); +} +void PythonQtShell_QPushButton::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::focusOutEvent(arg__1); +} +bool PythonQtShell_QPushButton::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPushButton::hasHeightForWidth(); +} +int PythonQtShell_QPushButton::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPushButton::heightForWidth(arg__1); +} +void PythonQtShell_QPushButton::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::hideEvent(arg__1); +} +bool PythonQtShell_QPushButton::hitButton(const QPoint& pos) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitButton"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPoint&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hitButton", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPushButton::hitButton(pos); +} +void PythonQtShell_QPushButton::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::initPainter(painter); +} +void PythonQtShell_QPushButton::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QPushButton::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPushButton::inputMethodQuery(arg__1); +} +void PythonQtShell_QPushButton::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::keyPressEvent(arg__1); +} +void PythonQtShell_QPushButton::keyReleaseEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::keyReleaseEvent(e); +} +void PythonQtShell_QPushButton::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::leaveEvent(arg__1); +} +int PythonQtShell_QPushButton::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPushButton::metric(arg__1); +} +void PythonQtShell_QPushButton::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QPushButton::mouseMoveEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::mouseMoveEvent(e); +} +void PythonQtShell_QPushButton::mousePressEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::mousePressEvent(e); +} +void PythonQtShell_QPushButton::mouseReleaseEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::mouseReleaseEvent(e); +} +void PythonQtShell_QPushButton::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::moveEvent(arg__1); +} +bool PythonQtShell_QPushButton::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPushButton::nativeEvent(eventType, message, result); +} +void PythonQtShell_QPushButton::nextCheckState() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextCheckState"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::nextCheckState(); +} +QPaintEngine* PythonQtShell_QPushButton::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPushButton::paintEngine(); +} +void PythonQtShell_QPushButton::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QPushButton::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPushButton::redirected(offset); +} +void PythonQtShell_QPushButton::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QPushButton::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPushButton::sharedPainter(); +} +void PythonQtShell_QPushButton::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::showEvent(arg__1); +} +void PythonQtShell_QPushButton::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::tabletEvent(arg__1); +} +void PythonQtShell_QPushButton::timerEvent(QTimerEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::timerEvent(e); +} +void PythonQtShell_QPushButton::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPushButton::wheelEvent(arg__1); +} +QPushButton* PythonQtWrapper_QPushButton::new_QPushButton(QWidget* parent) +{ +return new PythonQtShell_QPushButton(parent); } + +QPushButton* PythonQtWrapper_QPushButton::new_QPushButton(const QIcon& icon, const QString& text, QWidget* parent) +{ +return new PythonQtShell_QPushButton(icon, text, parent); } + +QPushButton* PythonQtWrapper_QPushButton::new_QPushButton(const QString& text, QWidget* parent) +{ +return new PythonQtShell_QPushButton(text, parent); } + +bool PythonQtWrapper_QPushButton::autoDefault(QPushButton* theWrappedObject) const +{ + return ( theWrappedObject->autoDefault()); +} + +bool PythonQtWrapper_QPushButton::event(QPushButton* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QPushButton*)theWrappedObject)->promoted_event(e)); +} + +void PythonQtWrapper_QPushButton::focusInEvent(QPushButton* theWrappedObject, QFocusEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QPushButton*)theWrappedObject)->promoted_focusInEvent(arg__1)); +} + +void PythonQtWrapper_QPushButton::focusOutEvent(QPushButton* theWrappedObject, QFocusEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QPushButton*)theWrappedObject)->promoted_focusOutEvent(arg__1)); +} + +bool PythonQtWrapper_QPushButton::isDefault(QPushButton* theWrappedObject) const +{ + return ( theWrappedObject->isDefault()); +} + +bool PythonQtWrapper_QPushButton::isFlat(QPushButton* theWrappedObject) const +{ + return ( theWrappedObject->isFlat()); +} + +void PythonQtWrapper_QPushButton::keyPressEvent(QPushButton* theWrappedObject, QKeyEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QPushButton*)theWrappedObject)->promoted_keyPressEvent(arg__1)); +} + +QMenu* PythonQtWrapper_QPushButton::menu(QPushButton* theWrappedObject) const +{ + return ( theWrappedObject->menu()); +} + +QSize PythonQtWrapper_QPushButton::minimumSizeHint(QPushButton* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +void PythonQtWrapper_QPushButton::paintEvent(QPushButton* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QPushButton*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +void PythonQtWrapper_QPushButton::setAutoDefault(QPushButton* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setAutoDefault(arg__1)); +} + +void PythonQtWrapper_QPushButton::setDefault(QPushButton* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setDefault(arg__1)); +} + +void PythonQtWrapper_QPushButton::setFlat(QPushButton* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setFlat(arg__1)); +} + +void PythonQtWrapper_QPushButton::setMenu(QPushButton* theWrappedObject, QMenu* menu) +{ + ( theWrappedObject->setMenu(menu)); +} + +QSize PythonQtWrapper_QPushButton::sizeHint(QPushButton* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +#endif + +QQuaternion* PythonQtWrapper_QQuaternion::new_QQuaternion() +{ +return new QQuaternion(); } + +QQuaternion* PythonQtWrapper_QQuaternion::new_QQuaternion(const QVector4D& vector) +{ +return new QQuaternion(vector); } + +QQuaternion* PythonQtWrapper_QQuaternion::new_QQuaternion(float scalar, const QVector3D& vector) +{ +return new QQuaternion(scalar, vector); } + +QQuaternion* PythonQtWrapper_QQuaternion::new_QQuaternion(float scalar, float xpos, float ypos, float zpos) +{ +return new QQuaternion(scalar, xpos, ypos, zpos); } + +QQuaternion PythonQtWrapper_QQuaternion::conjugate(QQuaternion* theWrappedObject) const +{ + return ( theWrappedObject->conjugate()); +} + +QQuaternion PythonQtWrapper_QQuaternion::static_QQuaternion_fromAxisAndAngle(const QVector3D& axis, float angle) +{ + return (QQuaternion::fromAxisAndAngle(axis, angle)); +} + +QQuaternion PythonQtWrapper_QQuaternion::static_QQuaternion_fromAxisAndAngle(float x, float y, float z, float angle) +{ + return (QQuaternion::fromAxisAndAngle(x, y, z, angle)); +} + +bool PythonQtWrapper_QQuaternion::isIdentity(QQuaternion* theWrappedObject) const +{ + return ( theWrappedObject->isIdentity()); +} + +bool PythonQtWrapper_QQuaternion::isNull(QQuaternion* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +float PythonQtWrapper_QQuaternion::length(QQuaternion* theWrappedObject) const +{ + return ( theWrappedObject->length()); +} + +float PythonQtWrapper_QQuaternion::lengthSquared(QQuaternion* theWrappedObject) const +{ + return ( theWrappedObject->lengthSquared()); +} + +QQuaternion PythonQtWrapper_QQuaternion::static_QQuaternion_nlerp(const QQuaternion& q1, const QQuaternion& q2, float t) +{ + return (QQuaternion::nlerp(q1, q2, t)); +} + +void PythonQtWrapper_QQuaternion::normalize(QQuaternion* theWrappedObject) +{ + ( theWrappedObject->normalize()); +} + +QQuaternion PythonQtWrapper_QQuaternion::normalized(QQuaternion* theWrappedObject) const +{ + return ( theWrappedObject->normalized()); +} + +const QQuaternion PythonQtWrapper_QQuaternion::__mul__(QQuaternion* theWrappedObject, const QQuaternion& q2) +{ + return ( (*theWrappedObject)* q2); +} + +const QQuaternion PythonQtWrapper_QQuaternion::__mul__(QQuaternion* theWrappedObject, float factor) +{ + return ( (*theWrappedObject)* factor); +} + +QQuaternion* PythonQtWrapper_QQuaternion::__imul__(QQuaternion* theWrappedObject, const QQuaternion& quaternion) +{ + return &( (*theWrappedObject)*= quaternion); +} + +QQuaternion* PythonQtWrapper_QQuaternion::__imul__(QQuaternion* theWrappedObject, float factor) +{ + return &( (*theWrappedObject)*= factor); +} + +const QQuaternion PythonQtWrapper_QQuaternion::__add__(QQuaternion* theWrappedObject, const QQuaternion& q2) +{ + return ( (*theWrappedObject)+ q2); +} + +QQuaternion* PythonQtWrapper_QQuaternion::__iadd__(QQuaternion* theWrappedObject, const QQuaternion& quaternion) +{ + return &( (*theWrappedObject)+= quaternion); +} + +const QQuaternion PythonQtWrapper_QQuaternion::__sub__(QQuaternion* theWrappedObject, const QQuaternion& q2) +{ + return ( (*theWrappedObject)- q2); +} + +QQuaternion* PythonQtWrapper_QQuaternion::__isub__(QQuaternion* theWrappedObject, const QQuaternion& quaternion) +{ + return &( (*theWrappedObject)-= quaternion); +} + +const QQuaternion PythonQtWrapper_QQuaternion::__div__(QQuaternion* theWrappedObject, float divisor) +{ + return ( (*theWrappedObject)/ divisor); +} + +QQuaternion* PythonQtWrapper_QQuaternion::__idiv__(QQuaternion* theWrappedObject, float divisor) +{ + return &( (*theWrappedObject)/= divisor); +} + +bool PythonQtWrapper_QQuaternion::__eq__(QQuaternion* theWrappedObject, const QQuaternion& q2) +{ + return ( (*theWrappedObject)== q2); +} + +QVector3D PythonQtWrapper_QQuaternion::rotatedVector(QQuaternion* theWrappedObject, const QVector3D& vector) const +{ + return ( theWrappedObject->rotatedVector(vector)); +} + +float PythonQtWrapper_QQuaternion::scalar(QQuaternion* theWrappedObject) const +{ + return ( theWrappedObject->scalar()); +} + +void PythonQtWrapper_QQuaternion::setScalar(QQuaternion* theWrappedObject, float scalar) +{ + ( theWrappedObject->setScalar(scalar)); +} + +void PythonQtWrapper_QQuaternion::setVector(QQuaternion* theWrappedObject, const QVector3D& vector) +{ + ( theWrappedObject->setVector(vector)); +} + +void PythonQtWrapper_QQuaternion::setVector(QQuaternion* theWrappedObject, float x, float y, float z) +{ + ( theWrappedObject->setVector(x, y, z)); +} + +void PythonQtWrapper_QQuaternion::setX(QQuaternion* theWrappedObject, float x) +{ + ( theWrappedObject->setX(x)); +} + +void PythonQtWrapper_QQuaternion::setY(QQuaternion* theWrappedObject, float y) +{ + ( theWrappedObject->setY(y)); +} + +void PythonQtWrapper_QQuaternion::setZ(QQuaternion* theWrappedObject, float z) +{ + ( theWrappedObject->setZ(z)); +} + +QQuaternion PythonQtWrapper_QQuaternion::static_QQuaternion_slerp(const QQuaternion& q1, const QQuaternion& q2, float t) +{ + return (QQuaternion::slerp(q1, q2, t)); +} + +QVector4D PythonQtWrapper_QQuaternion::toVector4D(QQuaternion* theWrappedObject) const +{ + return ( theWrappedObject->toVector4D()); +} + +QVector3D PythonQtWrapper_QQuaternion::vector(QQuaternion* theWrappedObject) const +{ + return ( theWrappedObject->vector()); +} + +float PythonQtWrapper_QQuaternion::x(QQuaternion* theWrappedObject) const +{ + return ( theWrappedObject->x()); +} + +float PythonQtWrapper_QQuaternion::y(QQuaternion* theWrappedObject) const +{ + return ( theWrappedObject->y()); +} + +float PythonQtWrapper_QQuaternion::z(QQuaternion* theWrappedObject) const +{ + return ( theWrappedObject->z()); +} + +QString PythonQtWrapper_QQuaternion::py_toString(QQuaternion* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QRadialGradient* PythonQtWrapper_QRadialGradient::new_QRadialGradient() +{ +return new QRadialGradient(); } + +QRadialGradient* PythonQtWrapper_QRadialGradient::new_QRadialGradient(const QPointF& center, qreal centerRadius, const QPointF& focalPoint, qreal focalRadius) +{ +return new QRadialGradient(center, centerRadius, focalPoint, focalRadius); } + +QRadialGradient* PythonQtWrapper_QRadialGradient::new_QRadialGradient(const QPointF& center, qreal radius) +{ +return new QRadialGradient(center, radius); } + +QRadialGradient* PythonQtWrapper_QRadialGradient::new_QRadialGradient(const QPointF& center, qreal radius, const QPointF& focalPoint) +{ +return new QRadialGradient(center, radius, focalPoint); } + +QRadialGradient* PythonQtWrapper_QRadialGradient::new_QRadialGradient(qreal cx, qreal cy, qreal centerRadius, qreal fx, qreal fy, qreal focalRadius) +{ +return new QRadialGradient(cx, cy, centerRadius, fx, fy, focalRadius); } + +QRadialGradient* PythonQtWrapper_QRadialGradient::new_QRadialGradient(qreal cx, qreal cy, qreal radius) +{ +return new QRadialGradient(cx, cy, radius); } + +QRadialGradient* PythonQtWrapper_QRadialGradient::new_QRadialGradient(qreal cx, qreal cy, qreal radius, qreal fx, qreal fy) +{ +return new QRadialGradient(cx, cy, radius, fx, fy); } + +QPointF PythonQtWrapper_QRadialGradient::center(QRadialGradient* theWrappedObject) const +{ + return ( theWrappedObject->center()); +} + +qreal PythonQtWrapper_QRadialGradient::centerRadius(QRadialGradient* theWrappedObject) const +{ + return ( theWrappedObject->centerRadius()); +} + +QPointF PythonQtWrapper_QRadialGradient::focalPoint(QRadialGradient* theWrappedObject) const +{ + return ( theWrappedObject->focalPoint()); +} + +qreal PythonQtWrapper_QRadialGradient::focalRadius(QRadialGradient* theWrappedObject) const +{ + return ( theWrappedObject->focalRadius()); +} + +qreal PythonQtWrapper_QRadialGradient::radius(QRadialGradient* theWrappedObject) const +{ + return ( theWrappedObject->radius()); +} + +void PythonQtWrapper_QRadialGradient::setCenter(QRadialGradient* theWrappedObject, const QPointF& center) +{ + ( theWrappedObject->setCenter(center)); +} + +void PythonQtWrapper_QRadialGradient::setCenter(QRadialGradient* theWrappedObject, qreal x, qreal y) +{ + ( theWrappedObject->setCenter(x, y)); +} + +void PythonQtWrapper_QRadialGradient::setCenterRadius(QRadialGradient* theWrappedObject, qreal radius) +{ + ( theWrappedObject->setCenterRadius(radius)); +} + +void PythonQtWrapper_QRadialGradient::setFocalPoint(QRadialGradient* theWrappedObject, const QPointF& focalPoint) +{ + ( theWrappedObject->setFocalPoint(focalPoint)); +} + +void PythonQtWrapper_QRadialGradient::setFocalPoint(QRadialGradient* theWrappedObject, qreal x, qreal y) +{ + ( theWrappedObject->setFocalPoint(x, y)); +} + +void PythonQtWrapper_QRadialGradient::setFocalRadius(QRadialGradient* theWrappedObject, qreal radius) +{ + ( theWrappedObject->setFocalRadius(radius)); +} + +void PythonQtWrapper_QRadialGradient::setRadius(QRadialGradient* theWrappedObject, qreal radius) +{ + ( theWrappedObject->setRadius(radius)); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QRadioButton::~PythonQtShell_QRadioButton() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QRadioButton::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::actionEvent(arg__1); +} +void PythonQtShell_QRadioButton::changeEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::changeEvent(e); +} +void PythonQtShell_QRadioButton::checkStateSet() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "checkStateSet"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::checkStateSet(); +} +void PythonQtShell_QRadioButton::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::childEvent(arg__1); +} +void PythonQtShell_QRadioButton::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::closeEvent(arg__1); +} +void PythonQtShell_QRadioButton::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::contextMenuEvent(arg__1); +} +void PythonQtShell_QRadioButton::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::customEvent(arg__1); +} +int PythonQtShell_QRadioButton::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRadioButton::devType(); +} +void PythonQtShell_QRadioButton::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::dragEnterEvent(arg__1); +} +void PythonQtShell_QRadioButton::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::dragLeaveEvent(arg__1); +} +void PythonQtShell_QRadioButton::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::dragMoveEvent(arg__1); +} +void PythonQtShell_QRadioButton::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::dropEvent(arg__1); +} +void PythonQtShell_QRadioButton::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::enterEvent(arg__1); +} +bool PythonQtShell_QRadioButton::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRadioButton::event(e); +} +bool PythonQtShell_QRadioButton::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRadioButton::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QRadioButton::focusInEvent(QFocusEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::focusInEvent(e); +} +bool PythonQtShell_QRadioButton::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRadioButton::focusNextPrevChild(next); +} +void PythonQtShell_QRadioButton::focusOutEvent(QFocusEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::focusOutEvent(e); +} +bool PythonQtShell_QRadioButton::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRadioButton::hasHeightForWidth(); +} +int PythonQtShell_QRadioButton::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRadioButton::heightForWidth(arg__1); +} +void PythonQtShell_QRadioButton::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::hideEvent(arg__1); +} +bool PythonQtShell_QRadioButton::hitButton(const QPoint& arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitButton"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPoint&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hitButton", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRadioButton::hitButton(arg__1); +} +void PythonQtShell_QRadioButton::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::initPainter(painter); +} +void PythonQtShell_QRadioButton::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QRadioButton::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRadioButton::inputMethodQuery(arg__1); +} +void PythonQtShell_QRadioButton::keyPressEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::keyPressEvent(e); +} +void PythonQtShell_QRadioButton::keyReleaseEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::keyReleaseEvent(e); +} +void PythonQtShell_QRadioButton::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::leaveEvent(arg__1); +} +int PythonQtShell_QRadioButton::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRadioButton::metric(arg__1); +} +void PythonQtShell_QRadioButton::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QRadioButton::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::mouseMoveEvent(arg__1); +} +void PythonQtShell_QRadioButton::mousePressEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::mousePressEvent(e); +} +void PythonQtShell_QRadioButton::mouseReleaseEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::mouseReleaseEvent(e); +} +void PythonQtShell_QRadioButton::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::moveEvent(arg__1); +} +bool PythonQtShell_QRadioButton::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRadioButton::nativeEvent(eventType, message, result); +} +void PythonQtShell_QRadioButton::nextCheckState() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextCheckState"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::nextCheckState(); +} +QPaintEngine* PythonQtShell_QRadioButton::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRadioButton::paintEngine(); +} +void PythonQtShell_QRadioButton::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QRadioButton::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRadioButton::redirected(offset); +} +void PythonQtShell_QRadioButton::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QRadioButton::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRadioButton::sharedPainter(); +} +void PythonQtShell_QRadioButton::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::showEvent(arg__1); +} +void PythonQtShell_QRadioButton::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::tabletEvent(arg__1); +} +void PythonQtShell_QRadioButton::timerEvent(QTimerEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::timerEvent(e); +} +void PythonQtShell_QRadioButton::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRadioButton::wheelEvent(arg__1); +} +QRadioButton* PythonQtWrapper_QRadioButton::new_QRadioButton(QWidget* parent) +{ +return new PythonQtShell_QRadioButton(parent); } + +QRadioButton* PythonQtWrapper_QRadioButton::new_QRadioButton(const QString& text, QWidget* parent) +{ +return new PythonQtShell_QRadioButton(text, parent); } + +bool PythonQtWrapper_QRadioButton::event(QRadioButton* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QRadioButton*)theWrappedObject)->promoted_event(e)); +} + +bool PythonQtWrapper_QRadioButton::hitButton(QRadioButton* theWrappedObject, const QPoint& arg__1) const +{ + return ( ((PythonQtPublicPromoter_QRadioButton*)theWrappedObject)->promoted_hitButton(arg__1)); +} + +QSize PythonQtWrapper_QRadioButton::minimumSizeHint(QRadioButton* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +void PythonQtWrapper_QRadioButton::mouseMoveEvent(QRadioButton* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QRadioButton*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); +} + +void PythonQtWrapper_QRadioButton::paintEvent(QRadioButton* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QRadioButton*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +QSize PythonQtWrapper_QRadioButton::sizeHint(QRadioButton* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +#endif + +PythonQtShell_QRegExpValidator::~PythonQtShell_QRegExpValidator() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QRegExpValidator::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRegExpValidator::childEvent(arg__1); +} +void PythonQtShell_QRegExpValidator::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRegExpValidator::customEvent(arg__1); +} +bool PythonQtShell_QRegExpValidator::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRegExpValidator::event(arg__1); +} +bool PythonQtShell_QRegExpValidator::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRegExpValidator::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QRegExpValidator::fixup(QString& arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRegExpValidator::fixup(arg__1); +} +void PythonQtShell_QRegExpValidator::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRegExpValidator::timerEvent(arg__1); +} +QValidator::State PythonQtShell_QRegExpValidator::validate(QString& input, int& pos) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QValidator::State" , "QString&" , "int&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QValidator::State returnValue; + void* args[3] = {NULL, (void*)&input, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); + } else { + returnValue = *((QValidator::State*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRegExpValidator::validate(input, pos); +} +QRegExpValidator* PythonQtWrapper_QRegExpValidator::new_QRegExpValidator(QObject* parent) +{ +return new PythonQtShell_QRegExpValidator(parent); } + +QRegExpValidator* PythonQtWrapper_QRegExpValidator::new_QRegExpValidator(const QRegExp& rx, QObject* parent) +{ +return new PythonQtShell_QRegExpValidator(rx, parent); } + +const QRegExp* PythonQtWrapper_QRegExpValidator::regExp(QRegExpValidator* theWrappedObject) const +{ + return &( theWrappedObject->regExp()); +} + +void PythonQtWrapper_QRegExpValidator::setRegExp(QRegExpValidator* theWrappedObject, const QRegExp& rx) +{ + ( theWrappedObject->setRegExp(rx)); +} + +QValidator::State PythonQtWrapper_QRegExpValidator::validate(QRegExpValidator* theWrappedObject, QString& input, int& pos) const +{ + return ( ((PythonQtPublicPromoter_QRegExpValidator*)theWrappedObject)->promoted_validate(input, pos)); +} + + + +PythonQtShell_QResizeEvent::~PythonQtShell_QResizeEvent() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QResizeEvent* PythonQtWrapper_QResizeEvent::new_QResizeEvent(const QSize& size, const QSize& oldSize) +{ +return new PythonQtShell_QResizeEvent(size, oldSize); } + +const QSize* PythonQtWrapper_QResizeEvent::oldSize(QResizeEvent* theWrappedObject) const +{ + return &( theWrappedObject->oldSize()); +} + +const QSize* PythonQtWrapper_QResizeEvent::size(QResizeEvent* theWrappedObject) const +{ + return &( theWrappedObject->size()); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QRubberBand::~PythonQtShell_QRubberBand() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QRubberBand::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::actionEvent(arg__1); +} +void PythonQtShell_QRubberBand::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::changeEvent(arg__1); +} +void PythonQtShell_QRubberBand::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::childEvent(arg__1); +} +void PythonQtShell_QRubberBand::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::closeEvent(arg__1); +} +void PythonQtShell_QRubberBand::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::contextMenuEvent(arg__1); +} +void PythonQtShell_QRubberBand::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::customEvent(arg__1); +} +int PythonQtShell_QRubberBand::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRubberBand::devType(); +} +void PythonQtShell_QRubberBand::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::dragEnterEvent(arg__1); +} +void PythonQtShell_QRubberBand::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::dragLeaveEvent(arg__1); +} +void PythonQtShell_QRubberBand::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::dragMoveEvent(arg__1); +} +void PythonQtShell_QRubberBand::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::dropEvent(arg__1); +} +void PythonQtShell_QRubberBand::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::enterEvent(arg__1); +} +bool PythonQtShell_QRubberBand::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRubberBand::event(e); +} +bool PythonQtShell_QRubberBand::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRubberBand::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QRubberBand::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::focusInEvent(arg__1); +} +bool PythonQtShell_QRubberBand::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRubberBand::focusNextPrevChild(next); +} +void PythonQtShell_QRubberBand::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::focusOutEvent(arg__1); +} +bool PythonQtShell_QRubberBand::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRubberBand::hasHeightForWidth(); +} +int PythonQtShell_QRubberBand::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRubberBand::heightForWidth(arg__1); +} +void PythonQtShell_QRubberBand::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::hideEvent(arg__1); +} +void PythonQtShell_QRubberBand::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::initPainter(painter); +} +void PythonQtShell_QRubberBand::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QRubberBand::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRubberBand::inputMethodQuery(arg__1); +} +void PythonQtShell_QRubberBand::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::keyPressEvent(arg__1); +} +void PythonQtShell_QRubberBand::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::keyReleaseEvent(arg__1); +} +void PythonQtShell_QRubberBand::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::leaveEvent(arg__1); +} +int PythonQtShell_QRubberBand::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRubberBand::metric(arg__1); +} +QSize PythonQtShell_QRubberBand::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRubberBand::minimumSizeHint(); +} +void PythonQtShell_QRubberBand::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QRubberBand::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::mouseMoveEvent(arg__1); +} +void PythonQtShell_QRubberBand::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::mousePressEvent(arg__1); +} +void PythonQtShell_QRubberBand::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QRubberBand::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::moveEvent(arg__1); +} +bool PythonQtShell_QRubberBand::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRubberBand::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QRubberBand::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRubberBand::paintEngine(); +} +void PythonQtShell_QRubberBand::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QRubberBand::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRubberBand::redirected(offset); +} +void PythonQtShell_QRubberBand::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QRubberBand::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRubberBand::sharedPainter(); +} +void PythonQtShell_QRubberBand::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::showEvent(arg__1); +} +QSize PythonQtShell_QRubberBand::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRubberBand::sizeHint(); +} +void PythonQtShell_QRubberBand::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::tabletEvent(arg__1); +} +void PythonQtShell_QRubberBand::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::timerEvent(arg__1); +} +void PythonQtShell_QRubberBand::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QRubberBand::wheelEvent(arg__1); +} +QRubberBand* PythonQtWrapper_QRubberBand::new_QRubberBand(QRubberBand::Shape arg__1, QWidget* arg__2) +{ +return new PythonQtShell_QRubberBand(arg__1, arg__2); } + +void PythonQtWrapper_QRubberBand::changeEvent(QRubberBand* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QRubberBand*)theWrappedObject)->promoted_changeEvent(arg__1)); +} + +bool PythonQtWrapper_QRubberBand::event(QRubberBand* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QRubberBand*)theWrappedObject)->promoted_event(e)); +} + +void PythonQtWrapper_QRubberBand::move(QRubberBand* theWrappedObject, const QPoint& p) +{ + ( theWrappedObject->move(p)); +} + +void PythonQtWrapper_QRubberBand::move(QRubberBand* theWrappedObject, int x, int y) +{ + ( theWrappedObject->move(x, y)); +} + +void PythonQtWrapper_QRubberBand::moveEvent(QRubberBand* theWrappedObject, QMoveEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QRubberBand*)theWrappedObject)->promoted_moveEvent(arg__1)); +} + +void PythonQtWrapper_QRubberBand::paintEvent(QRubberBand* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QRubberBand*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +void PythonQtWrapper_QRubberBand::resize(QRubberBand* theWrappedObject, const QSize& s) +{ + ( theWrappedObject->resize(s)); +} + +void PythonQtWrapper_QRubberBand::resize(QRubberBand* theWrappedObject, int w, int h) +{ + ( theWrappedObject->resize(w, h)); +} + +void PythonQtWrapper_QRubberBand::resizeEvent(QRubberBand* theWrappedObject, QResizeEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QRubberBand*)theWrappedObject)->promoted_resizeEvent(arg__1)); +} + +void PythonQtWrapper_QRubberBand::setGeometry(QRubberBand* theWrappedObject, const QRect& r) +{ + ( theWrappedObject->setGeometry(r)); +} + +void PythonQtWrapper_QRubberBand::setGeometry(QRubberBand* theWrappedObject, int x, int y, int w, int h) +{ + ( theWrappedObject->setGeometry(x, y, w, h)); +} + +QRubberBand::Shape PythonQtWrapper_QRubberBand::shape(QRubberBand* theWrappedObject) const +{ + return ( theWrappedObject->shape()); +} + +void PythonQtWrapper_QRubberBand::showEvent(QRubberBand* theWrappedObject, QShowEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QRubberBand*)theWrappedObject)->promoted_showEvent(arg__1)); +} + + + +PythonQtShell_QScrollArea::~PythonQtShell_QScrollArea() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QScrollArea::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::actionEvent(arg__1); +} +void PythonQtShell_QScrollArea::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::changeEvent(arg__1); +} +void PythonQtShell_QScrollArea::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::childEvent(arg__1); +} +void PythonQtShell_QScrollArea::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::closeEvent(arg__1); +} +void PythonQtShell_QScrollArea::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::contextMenuEvent(arg__1); +} +void PythonQtShell_QScrollArea::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::customEvent(arg__1); +} +int PythonQtShell_QScrollArea::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollArea::devType(); +} +void PythonQtShell_QScrollArea::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::dragEnterEvent(arg__1); +} +void PythonQtShell_QScrollArea::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::dragLeaveEvent(arg__1); +} +void PythonQtShell_QScrollArea::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::dragMoveEvent(arg__1); +} +void PythonQtShell_QScrollArea::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::dropEvent(arg__1); +} +void PythonQtShell_QScrollArea::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::enterEvent(arg__1); +} +bool PythonQtShell_QScrollArea::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollArea::event(arg__1); +} +bool PythonQtShell_QScrollArea::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollArea::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QScrollArea::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::focusInEvent(arg__1); +} +bool PythonQtShell_QScrollArea::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollArea::focusNextPrevChild(next); +} +void PythonQtShell_QScrollArea::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::focusOutEvent(arg__1); +} +bool PythonQtShell_QScrollArea::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollArea::hasHeightForWidth(); +} +int PythonQtShell_QScrollArea::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollArea::heightForWidth(arg__1); +} +void PythonQtShell_QScrollArea::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::hideEvent(arg__1); +} +void PythonQtShell_QScrollArea::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::initPainter(painter); +} +void PythonQtShell_QScrollArea::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QScrollArea::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollArea::inputMethodQuery(arg__1); +} +void PythonQtShell_QScrollArea::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::keyPressEvent(arg__1); +} +void PythonQtShell_QScrollArea::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::keyReleaseEvent(arg__1); +} +void PythonQtShell_QScrollArea::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::leaveEvent(arg__1); +} +int PythonQtShell_QScrollArea::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollArea::metric(arg__1); +} +void PythonQtShell_QScrollArea::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QScrollArea::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::mouseMoveEvent(arg__1); +} +void PythonQtShell_QScrollArea::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::mousePressEvent(arg__1); +} +void PythonQtShell_QScrollArea::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QScrollArea::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::moveEvent(arg__1); +} +bool PythonQtShell_QScrollArea::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollArea::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QScrollArea::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollArea::paintEngine(); +} +void PythonQtShell_QScrollArea::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QScrollArea::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollArea::redirected(offset); +} +void PythonQtShell_QScrollArea::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::resizeEvent(arg__1); +} +void PythonQtShell_QScrollArea::scrollContentsBy(int dx, int dy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&dx, (void*)&dy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::scrollContentsBy(dx, dy); +} +void PythonQtShell_QScrollArea::setupViewport(QWidget* viewport) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&viewport}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::setupViewport(viewport); +} +QPainter* PythonQtShell_QScrollArea::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollArea::sharedPainter(); +} +void PythonQtShell_QScrollArea::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::showEvent(arg__1); +} +void PythonQtShell_QScrollArea::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::tabletEvent(arg__1); +} +void PythonQtShell_QScrollArea::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::timerEvent(arg__1); +} +bool PythonQtShell_QScrollArea::viewportEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollArea::viewportEvent(arg__1); +} +QSize PythonQtShell_QScrollArea::viewportSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollArea::viewportSizeHint(); +} +void PythonQtShell_QScrollArea::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollArea::wheelEvent(arg__1); +} +QScrollArea* PythonQtWrapper_QScrollArea::new_QScrollArea(QWidget* parent) +{ +return new PythonQtShell_QScrollArea(parent); } + +Qt::Alignment PythonQtWrapper_QScrollArea::alignment(QScrollArea* theWrappedObject) const +{ + return ( theWrappedObject->alignment()); +} + +void PythonQtWrapper_QScrollArea::ensureVisible(QScrollArea* theWrappedObject, int x, int y, int xmargin, int ymargin) +{ + ( theWrappedObject->ensureVisible(x, y, xmargin, ymargin)); +} + +void PythonQtWrapper_QScrollArea::ensureWidgetVisible(QScrollArea* theWrappedObject, QWidget* childWidget, int xmargin, int ymargin) +{ + ( theWrappedObject->ensureWidgetVisible(childWidget, xmargin, ymargin)); +} + +bool PythonQtWrapper_QScrollArea::event(QScrollArea* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QScrollArea*)theWrappedObject)->promoted_event(arg__1)); +} + +bool PythonQtWrapper_QScrollArea::eventFilter(QScrollArea* theWrappedObject, QObject* arg__1, QEvent* arg__2) +{ + return ( ((PythonQtPublicPromoter_QScrollArea*)theWrappedObject)->promoted_eventFilter(arg__1, arg__2)); +} + +bool PythonQtWrapper_QScrollArea::focusNextPrevChild(QScrollArea* theWrappedObject, bool next) +{ + return ( ((PythonQtPublicPromoter_QScrollArea*)theWrappedObject)->promoted_focusNextPrevChild(next)); +} + +void PythonQtWrapper_QScrollArea::resizeEvent(QScrollArea* theWrappedObject, QResizeEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QScrollArea*)theWrappedObject)->promoted_resizeEvent(arg__1)); +} + +void PythonQtWrapper_QScrollArea::scrollContentsBy(QScrollArea* theWrappedObject, int dx, int dy) +{ + ( ((PythonQtPublicPromoter_QScrollArea*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); +} + +void PythonQtWrapper_QScrollArea::setAlignment(QScrollArea* theWrappedObject, Qt::Alignment arg__1) +{ + ( theWrappedObject->setAlignment(arg__1)); +} + +void PythonQtWrapper_QScrollArea::setWidget(QScrollArea* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->setWidget(widget)); +} + +void PythonQtWrapper_QScrollArea::setWidgetResizable(QScrollArea* theWrappedObject, bool resizable) +{ + ( theWrappedObject->setWidgetResizable(resizable)); +} + +QSize PythonQtWrapper_QScrollArea::sizeHint(QScrollArea* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +QWidget* PythonQtWrapper_QScrollArea::takeWidget(QScrollArea* theWrappedObject) +{ + return ( theWrappedObject->takeWidget()); +} + +QWidget* PythonQtWrapper_QScrollArea::widget(QScrollArea* theWrappedObject) const +{ + return ( theWrappedObject->widget()); +} + +bool PythonQtWrapper_QScrollArea::widgetResizable(QScrollArea* theWrappedObject) const +{ + return ( theWrappedObject->widgetResizable()); +} + + + +PythonQtShell_QScrollBar::~PythonQtShell_QScrollBar() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QScrollBar::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::actionEvent(arg__1); +} +void PythonQtShell_QScrollBar::changeEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::changeEvent(e); +} +void PythonQtShell_QScrollBar::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::childEvent(arg__1); +} +void PythonQtShell_QScrollBar::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::closeEvent(arg__1); +} +void PythonQtShell_QScrollBar::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::contextMenuEvent(arg__1); +} +void PythonQtShell_QScrollBar::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::customEvent(arg__1); +} +int PythonQtShell_QScrollBar::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollBar::devType(); +} +void PythonQtShell_QScrollBar::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::dragEnterEvent(arg__1); +} +void PythonQtShell_QScrollBar::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::dragLeaveEvent(arg__1); +} +void PythonQtShell_QScrollBar::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::dragMoveEvent(arg__1); +} +void PythonQtShell_QScrollBar::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::dropEvent(arg__1); +} +void PythonQtShell_QScrollBar::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::enterEvent(arg__1); +} +bool PythonQtShell_QScrollBar::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollBar::event(event); +} +bool PythonQtShell_QScrollBar::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollBar::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QScrollBar::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::focusInEvent(arg__1); +} +bool PythonQtShell_QScrollBar::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollBar::focusNextPrevChild(next); +} +void PythonQtShell_QScrollBar::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::focusOutEvent(arg__1); +} +bool PythonQtShell_QScrollBar::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollBar::hasHeightForWidth(); +} +int PythonQtShell_QScrollBar::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollBar::heightForWidth(arg__1); +} +void PythonQtShell_QScrollBar::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::hideEvent(arg__1); +} +void PythonQtShell_QScrollBar::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::initPainter(painter); +} +void PythonQtShell_QScrollBar::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QScrollBar::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollBar::inputMethodQuery(arg__1); +} +void PythonQtShell_QScrollBar::keyPressEvent(QKeyEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::keyPressEvent(ev); +} +void PythonQtShell_QScrollBar::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::keyReleaseEvent(arg__1); +} +void PythonQtShell_QScrollBar::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::leaveEvent(arg__1); +} +int PythonQtShell_QScrollBar::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollBar::metric(arg__1); +} +QSize PythonQtShell_QScrollBar::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollBar::minimumSizeHint(); +} +void PythonQtShell_QScrollBar::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QScrollBar::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::mouseMoveEvent(arg__1); +} +void PythonQtShell_QScrollBar::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::mousePressEvent(arg__1); +} +void PythonQtShell_QScrollBar::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QScrollBar::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::moveEvent(arg__1); +} +bool PythonQtShell_QScrollBar::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollBar::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QScrollBar::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollBar::paintEngine(); +} +void PythonQtShell_QScrollBar::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QScrollBar::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollBar::redirected(offset); +} +void PythonQtShell_QScrollBar::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QScrollBar::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QScrollBar::sharedPainter(); +} +void PythonQtShell_QScrollBar::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::showEvent(arg__1); +} +void PythonQtShell_QScrollBar::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::tabletEvent(arg__1); +} +void PythonQtShell_QScrollBar::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::timerEvent(arg__1); +} +void PythonQtShell_QScrollBar::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QScrollBar::wheelEvent(arg__1); +} +QScrollBar* PythonQtWrapper_QScrollBar::new_QScrollBar(QWidget* parent) +{ +return new PythonQtShell_QScrollBar(parent); } + +QScrollBar* PythonQtWrapper_QScrollBar::new_QScrollBar(Qt::Orientation arg__1, QWidget* parent) +{ +return new PythonQtShell_QScrollBar(arg__1, parent); } + +void PythonQtWrapper_QScrollBar::contextMenuEvent(QScrollBar* theWrappedObject, QContextMenuEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QScrollBar*)theWrappedObject)->promoted_contextMenuEvent(arg__1)); +} + +bool PythonQtWrapper_QScrollBar::event(QScrollBar* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QScrollBar*)theWrappedObject)->promoted_event(event)); +} + +void PythonQtWrapper_QScrollBar::hideEvent(QScrollBar* theWrappedObject, QHideEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QScrollBar*)theWrappedObject)->promoted_hideEvent(arg__1)); +} + +void PythonQtWrapper_QScrollBar::mouseMoveEvent(QScrollBar* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QScrollBar*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); +} + +void PythonQtWrapper_QScrollBar::mousePressEvent(QScrollBar* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QScrollBar*)theWrappedObject)->promoted_mousePressEvent(arg__1)); +} + +void PythonQtWrapper_QScrollBar::mouseReleaseEvent(QScrollBar* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QScrollBar*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); +} + +void PythonQtWrapper_QScrollBar::paintEvent(QScrollBar* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QScrollBar*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +QSize PythonQtWrapper_QScrollBar::sizeHint(QScrollBar* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +void PythonQtWrapper_QScrollBar::wheelEvent(QScrollBar* theWrappedObject, QWheelEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QScrollBar*)theWrappedObject)->promoted_wheelEvent(arg__1)); +} + +#endif + +bool PythonQtWrapper_QSessionManager::allowsErrorInteraction(QSessionManager* theWrappedObject) +{ + return ( theWrappedObject->allowsErrorInteraction()); +} + +bool PythonQtWrapper_QSessionManager::allowsInteraction(QSessionManager* theWrappedObject) +{ + return ( theWrappedObject->allowsInteraction()); +} + +void PythonQtWrapper_QSessionManager::cancel(QSessionManager* theWrappedObject) +{ + ( theWrappedObject->cancel()); +} + +QStringList PythonQtWrapper_QSessionManager::discardCommand(QSessionManager* theWrappedObject) const +{ + return ( theWrappedObject->discardCommand()); +} + +bool PythonQtWrapper_QSessionManager::isPhase2(QSessionManager* theWrappedObject) const +{ + return ( theWrappedObject->isPhase2()); +} + +void PythonQtWrapper_QSessionManager::release(QSessionManager* theWrappedObject) +{ + ( theWrappedObject->release()); +} + +void PythonQtWrapper_QSessionManager::requestPhase2(QSessionManager* theWrappedObject) +{ + ( theWrappedObject->requestPhase2()); +} + +QStringList PythonQtWrapper_QSessionManager::restartCommand(QSessionManager* theWrappedObject) const +{ + return ( theWrappedObject->restartCommand()); +} + +QSessionManager::RestartHint PythonQtWrapper_QSessionManager::restartHint(QSessionManager* theWrappedObject) const +{ + return ( theWrappedObject->restartHint()); +} + +QString PythonQtWrapper_QSessionManager::sessionId(QSessionManager* theWrappedObject) const +{ + return ( theWrappedObject->sessionId()); +} + +QString PythonQtWrapper_QSessionManager::sessionKey(QSessionManager* theWrappedObject) const +{ + return ( theWrappedObject->sessionKey()); +} + +void PythonQtWrapper_QSessionManager::setDiscardCommand(QSessionManager* theWrappedObject, const QStringList& arg__1) +{ + ( theWrappedObject->setDiscardCommand(arg__1)); +} + +void PythonQtWrapper_QSessionManager::setManagerProperty(QSessionManager* theWrappedObject, const QString& name, const QString& value) +{ + ( theWrappedObject->setManagerProperty(name, value)); +} + +void PythonQtWrapper_QSessionManager::setManagerProperty(QSessionManager* theWrappedObject, const QString& name, const QStringList& value) +{ + ( theWrappedObject->setManagerProperty(name, value)); +} + +void PythonQtWrapper_QSessionManager::setRestartCommand(QSessionManager* theWrappedObject, const QStringList& arg__1) +{ + ( theWrappedObject->setRestartCommand(arg__1)); +} + +void PythonQtWrapper_QSessionManager::setRestartHint(QSessionManager* theWrappedObject, QSessionManager::RestartHint arg__1) +{ + ( theWrappedObject->setRestartHint(arg__1)); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QShortcut::~PythonQtShell_QShortcut() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QShortcut::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QShortcut::childEvent(arg__1); +} +void PythonQtShell_QShortcut::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QShortcut::customEvent(arg__1); +} +bool PythonQtShell_QShortcut::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QShortcut::event(e); +} +bool PythonQtShell_QShortcut::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QShortcut::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QShortcut::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QShortcut::timerEvent(arg__1); +} +QShortcut* PythonQtWrapper_QShortcut::new_QShortcut(QWidget* parent) +{ +return new PythonQtShell_QShortcut(parent); } + +QShortcut* PythonQtWrapper_QShortcut::new_QShortcut(const QKeySequence& key, QWidget* parent, const char* member, const char* ambiguousMember, Qt::ShortcutContext context) +{ +return new PythonQtShell_QShortcut(key, parent, member, ambiguousMember, context); } + +bool PythonQtWrapper_QShortcut::autoRepeat(QShortcut* theWrappedObject) const +{ + return ( theWrappedObject->autoRepeat()); +} + +Qt::ShortcutContext PythonQtWrapper_QShortcut::context(QShortcut* theWrappedObject) const +{ + return ( theWrappedObject->context()); +} + +bool PythonQtWrapper_QShortcut::event(QShortcut* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QShortcut*)theWrappedObject)->promoted_event(e)); +} + +int PythonQtWrapper_QShortcut::id(QShortcut* theWrappedObject) const +{ + return ( theWrappedObject->id()); +} + +bool PythonQtWrapper_QShortcut::isEnabled(QShortcut* theWrappedObject) const +{ + return ( theWrappedObject->isEnabled()); +} + +QKeySequence PythonQtWrapper_QShortcut::key(QShortcut* theWrappedObject) const +{ + return ( theWrappedObject->key()); +} + +QWidget* PythonQtWrapper_QShortcut::parentWidget(QShortcut* theWrappedObject) const +{ + return ( theWrappedObject->parentWidget()); +} + +void PythonQtWrapper_QShortcut::setAutoRepeat(QShortcut* theWrappedObject, bool on) +{ + ( theWrappedObject->setAutoRepeat(on)); +} + +void PythonQtWrapper_QShortcut::setContext(QShortcut* theWrappedObject, Qt::ShortcutContext context) +{ + ( theWrappedObject->setContext(context)); +} + +void PythonQtWrapper_QShortcut::setEnabled(QShortcut* theWrappedObject, bool enable) +{ + ( theWrappedObject->setEnabled(enable)); +} + +void PythonQtWrapper_QShortcut::setKey(QShortcut* theWrappedObject, const QKeySequence& key) +{ + ( theWrappedObject->setKey(key)); +} + +void PythonQtWrapper_QShortcut::setWhatsThis(QShortcut* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setWhatsThis(text)); +} + +QString PythonQtWrapper_QShortcut::whatsThis(QShortcut* theWrappedObject) const +{ + return ( theWrappedObject->whatsThis()); +} + +#endif + +PythonQtShell_QShortcutEvent::~PythonQtShell_QShortcutEvent() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QShortcutEvent* PythonQtWrapper_QShortcutEvent::new_QShortcutEvent(const QKeySequence& key, int id, bool ambiguous) +{ +return new PythonQtShell_QShortcutEvent(key, id, ambiguous); } + +bool PythonQtWrapper_QShortcutEvent::isAmbiguous(QShortcutEvent* theWrappedObject) const +{ + return ( theWrappedObject->isAmbiguous()); +} + +const QKeySequence* PythonQtWrapper_QShortcutEvent::key(QShortcutEvent* theWrappedObject) const +{ + return &( theWrappedObject->key()); +} + +int PythonQtWrapper_QShortcutEvent::shortcutId(QShortcutEvent* theWrappedObject) const +{ + return ( theWrappedObject->shortcutId()); +} + + + +QShowEvent* PythonQtWrapper_QShowEvent::new_QShowEvent() +{ +return new QShowEvent(); } + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QSizeGrip::~PythonQtShell_QSizeGrip() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QSizeGrip::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::actionEvent(arg__1); +} +void PythonQtShell_QSizeGrip::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::changeEvent(arg__1); +} +void PythonQtShell_QSizeGrip::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::childEvent(arg__1); +} +void PythonQtShell_QSizeGrip::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::closeEvent(arg__1); +} +void PythonQtShell_QSizeGrip::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::contextMenuEvent(arg__1); +} +void PythonQtShell_QSizeGrip::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::customEvent(arg__1); +} +int PythonQtShell_QSizeGrip::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSizeGrip::devType(); +} +void PythonQtShell_QSizeGrip::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::dragEnterEvent(arg__1); +} +void PythonQtShell_QSizeGrip::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::dragLeaveEvent(arg__1); +} +void PythonQtShell_QSizeGrip::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::dragMoveEvent(arg__1); +} +void PythonQtShell_QSizeGrip::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::dropEvent(arg__1); +} +void PythonQtShell_QSizeGrip::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::enterEvent(arg__1); +} +bool PythonQtShell_QSizeGrip::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSizeGrip::event(arg__1); +} +bool PythonQtShell_QSizeGrip::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSizeGrip::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QSizeGrip::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::focusInEvent(arg__1); +} +bool PythonQtShell_QSizeGrip::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSizeGrip::focusNextPrevChild(next); +} +void PythonQtShell_QSizeGrip::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::focusOutEvent(arg__1); +} +bool PythonQtShell_QSizeGrip::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSizeGrip::hasHeightForWidth(); +} +int PythonQtShell_QSizeGrip::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSizeGrip::heightForWidth(arg__1); +} +void PythonQtShell_QSizeGrip::hideEvent(QHideEvent* hideEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&hideEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::hideEvent(hideEvent); +} +void PythonQtShell_QSizeGrip::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::initPainter(painter); +} +void PythonQtShell_QSizeGrip::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QSizeGrip::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSizeGrip::inputMethodQuery(arg__1); +} +void PythonQtShell_QSizeGrip::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::keyPressEvent(arg__1); +} +void PythonQtShell_QSizeGrip::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::keyReleaseEvent(arg__1); +} +void PythonQtShell_QSizeGrip::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::leaveEvent(arg__1); +} +int PythonQtShell_QSizeGrip::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSizeGrip::metric(arg__1); +} +QSize PythonQtShell_QSizeGrip::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSizeGrip::minimumSizeHint(); +} +void PythonQtShell_QSizeGrip::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QSizeGrip::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::mouseMoveEvent(arg__1); +} +void PythonQtShell_QSizeGrip::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::mousePressEvent(arg__1); +} +void PythonQtShell_QSizeGrip::mouseReleaseEvent(QMouseEvent* mouseEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&mouseEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::mouseReleaseEvent(mouseEvent); +} +void PythonQtShell_QSizeGrip::moveEvent(QMoveEvent* moveEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&moveEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::moveEvent(moveEvent); +} +bool PythonQtShell_QSizeGrip::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSizeGrip::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QSizeGrip::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSizeGrip::paintEngine(); +} +void PythonQtShell_QSizeGrip::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QSizeGrip::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSizeGrip::redirected(offset); +} +void PythonQtShell_QSizeGrip::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QSizeGrip::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSizeGrip::sharedPainter(); +} +void PythonQtShell_QSizeGrip::showEvent(QShowEvent* showEvent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&showEvent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::showEvent(showEvent); +} +void PythonQtShell_QSizeGrip::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::tabletEvent(arg__1); +} +void PythonQtShell_QSizeGrip::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::timerEvent(arg__1); +} +void PythonQtShell_QSizeGrip::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSizeGrip::wheelEvent(arg__1); +} +QSizeGrip* PythonQtWrapper_QSizeGrip::new_QSizeGrip(QWidget* parent) +{ +return new PythonQtShell_QSizeGrip(parent); } + +bool PythonQtWrapper_QSizeGrip::event(QSizeGrip* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_event(arg__1)); +} + +bool PythonQtWrapper_QSizeGrip::eventFilter(QSizeGrip* theWrappedObject, QObject* arg__1, QEvent* arg__2) +{ + return ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_eventFilter(arg__1, arg__2)); +} + +void PythonQtWrapper_QSizeGrip::hideEvent(QSizeGrip* theWrappedObject, QHideEvent* hideEvent) +{ + ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_hideEvent(hideEvent)); +} + +void PythonQtWrapper_QSizeGrip::mouseMoveEvent(QSizeGrip* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); +} + +void PythonQtWrapper_QSizeGrip::mousePressEvent(QSizeGrip* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_mousePressEvent(arg__1)); +} + +void PythonQtWrapper_QSizeGrip::mouseReleaseEvent(QSizeGrip* theWrappedObject, QMouseEvent* mouseEvent) +{ + ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_mouseReleaseEvent(mouseEvent)); +} + +void PythonQtWrapper_QSizeGrip::moveEvent(QSizeGrip* theWrappedObject, QMoveEvent* moveEvent) +{ + ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_moveEvent(moveEvent)); +} + +void PythonQtWrapper_QSizeGrip::paintEvent(QSizeGrip* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +void PythonQtWrapper_QSizeGrip::setVisible(QSizeGrip* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setVisible(arg__1)); +} + +void PythonQtWrapper_QSizeGrip::showEvent(QSizeGrip* theWrappedObject, QShowEvent* showEvent) +{ + ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_showEvent(showEvent)); +} + +QSize PythonQtWrapper_QSizeGrip::sizeHint(QSizeGrip* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + + + +PythonQtShell_QSlider::~PythonQtShell_QSlider() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QSlider::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::actionEvent(arg__1); +} +void PythonQtShell_QSlider::changeEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::changeEvent(e); +} +void PythonQtShell_QSlider::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::childEvent(arg__1); +} +void PythonQtShell_QSlider::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::closeEvent(arg__1); +} +void PythonQtShell_QSlider::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::contextMenuEvent(arg__1); +} +void PythonQtShell_QSlider::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::customEvent(arg__1); +} +int PythonQtShell_QSlider::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSlider::devType(); +} +void PythonQtShell_QSlider::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::dragEnterEvent(arg__1); +} +void PythonQtShell_QSlider::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::dragLeaveEvent(arg__1); +} +void PythonQtShell_QSlider::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::dragMoveEvent(arg__1); +} +void PythonQtShell_QSlider::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::dropEvent(arg__1); +} +void PythonQtShell_QSlider::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::enterEvent(arg__1); +} +bool PythonQtShell_QSlider::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSlider::event(event); +} +bool PythonQtShell_QSlider::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSlider::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QSlider::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::focusInEvent(arg__1); +} +bool PythonQtShell_QSlider::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSlider::focusNextPrevChild(next); +} +void PythonQtShell_QSlider::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::focusOutEvent(arg__1); +} +bool PythonQtShell_QSlider::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSlider::hasHeightForWidth(); +} +int PythonQtShell_QSlider::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSlider::heightForWidth(arg__1); +} +void PythonQtShell_QSlider::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::hideEvent(arg__1); +} +void PythonQtShell_QSlider::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::initPainter(painter); +} +void PythonQtShell_QSlider::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QSlider::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSlider::inputMethodQuery(arg__1); +} +void PythonQtShell_QSlider::keyPressEvent(QKeyEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::keyPressEvent(ev); +} +void PythonQtShell_QSlider::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::keyReleaseEvent(arg__1); +} +void PythonQtShell_QSlider::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::leaveEvent(arg__1); +} +int PythonQtShell_QSlider::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSlider::metric(arg__1); +} +void PythonQtShell_QSlider::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QSlider::mouseMoveEvent(QMouseEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::mouseMoveEvent(ev); +} +void PythonQtShell_QSlider::mousePressEvent(QMouseEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::mousePressEvent(ev); +} +void PythonQtShell_QSlider::mouseReleaseEvent(QMouseEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::mouseReleaseEvent(ev); +} +void PythonQtShell_QSlider::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::moveEvent(arg__1); +} +bool PythonQtShell_QSlider::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSlider::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QSlider::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSlider::paintEngine(); +} +void PythonQtShell_QSlider::paintEvent(QPaintEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::paintEvent(ev); +} +QPaintDevice* PythonQtShell_QSlider::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSlider::redirected(offset); +} +void PythonQtShell_QSlider::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QSlider::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSlider::sharedPainter(); +} +void PythonQtShell_QSlider::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::showEvent(arg__1); +} +void PythonQtShell_QSlider::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::tabletEvent(arg__1); +} +void PythonQtShell_QSlider::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::timerEvent(arg__1); +} +void PythonQtShell_QSlider::wheelEvent(QWheelEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSlider::wheelEvent(e); +} +QSlider* PythonQtWrapper_QSlider::new_QSlider(QWidget* parent) +{ +return new PythonQtShell_QSlider(parent); } + +QSlider* PythonQtWrapper_QSlider::new_QSlider(Qt::Orientation orientation, QWidget* parent) +{ +return new PythonQtShell_QSlider(orientation, parent); } + +bool PythonQtWrapper_QSlider::event(QSlider* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QSlider*)theWrappedObject)->promoted_event(event)); +} + +QSize PythonQtWrapper_QSlider::minimumSizeHint(QSlider* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +void PythonQtWrapper_QSlider::mouseMoveEvent(QSlider* theWrappedObject, QMouseEvent* ev) +{ + ( ((PythonQtPublicPromoter_QSlider*)theWrappedObject)->promoted_mouseMoveEvent(ev)); +} + +void PythonQtWrapper_QSlider::mousePressEvent(QSlider* theWrappedObject, QMouseEvent* ev) +{ + ( ((PythonQtPublicPromoter_QSlider*)theWrappedObject)->promoted_mousePressEvent(ev)); +} + +void PythonQtWrapper_QSlider::mouseReleaseEvent(QSlider* theWrappedObject, QMouseEvent* ev) +{ + ( ((PythonQtPublicPromoter_QSlider*)theWrappedObject)->promoted_mouseReleaseEvent(ev)); +} + +void PythonQtWrapper_QSlider::paintEvent(QSlider* theWrappedObject, QPaintEvent* ev) +{ + ( ((PythonQtPublicPromoter_QSlider*)theWrappedObject)->promoted_paintEvent(ev)); +} + +void PythonQtWrapper_QSlider::setTickInterval(QSlider* theWrappedObject, int ti) +{ + ( theWrappedObject->setTickInterval(ti)); +} + +void PythonQtWrapper_QSlider::setTickPosition(QSlider* theWrappedObject, QSlider::TickPosition position) +{ + ( theWrappedObject->setTickPosition(position)); +} + +QSize PythonQtWrapper_QSlider::sizeHint(QSlider* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +int PythonQtWrapper_QSlider::tickInterval(QSlider* theWrappedObject) const +{ + return ( theWrappedObject->tickInterval()); +} + +QSlider::TickPosition PythonQtWrapper_QSlider::tickPosition(QSlider* theWrappedObject) const +{ + return ( theWrappedObject->tickPosition()); +} + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui5.h b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui5.h new file mode 100644 index 00000000..17ca04b5 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui5.h @@ -0,0 +1,2043 @@ +#include + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined(QT_WIDGETS_LIB) +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif + +#if defined(QT_PRINTSUPPORT_LIB) +#include + +#include +#include +#include +#include +#include +#include +#endif + +class PythonQtShell_QPicture : public QPicture +{ +public: + PythonQtShell_QPicture(const QPicture& arg__1):QPicture(arg__1),_wrapper(NULL) {}; + PythonQtShell_QPicture(int formatVersion = -1):QPicture(formatVersion),_wrapper(NULL) {}; + + ~PythonQtShell_QPicture(); + +virtual int devType() const; +virtual void initPainter(QPainter* painter) const; +virtual int metric(QPaintDevice::PaintDeviceMetric m) const; +virtual QPaintEngine* paintEngine() const; +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void setData(const char* data, uint size); +virtual QPainter* sharedPainter() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QPicture : public QPicture +{ public: +inline int promoted_devType() const { return QPicture::devType(); } +inline int promoted_metric(QPaintDevice::PaintDeviceMetric m) const { return QPicture::metric(m); } +inline QPaintEngine* promoted_paintEngine() const { return QPicture::paintEngine(); } +}; + +class PythonQtWrapper_QPicture : public QObject +{ Q_OBJECT +public: +public slots: +QPicture* new_QPicture(const QPicture& arg__1); +QPicture* new_QPicture(int formatVersion = -1); +void delete_QPicture(QPicture* obj) { delete obj; } + QRect boundingRect(QPicture* theWrappedObject) const; + const char* data(QPicture* theWrappedObject) const; + int devType(QPicture* theWrappedObject) const; + bool isNull(QPicture* theWrappedObject) const; + bool load(QPicture* theWrappedObject, QIODevice* dev, const char* format = 0); + bool load(QPicture* theWrappedObject, const QString& fileName, const char* format = 0); + int metric(QPicture* theWrappedObject, QPaintDevice::PaintDeviceMetric m) const; + QPaintEngine* paintEngine(QPicture* theWrappedObject) const; + bool play(QPicture* theWrappedObject, QPainter* p); + bool save(QPicture* theWrappedObject, QIODevice* dev, const char* format = 0); + bool save(QPicture* theWrappedObject, const QString& fileName, const char* format = 0); + void setBoundingRect(QPicture* theWrappedObject, const QRect& r); + uint size(QPicture* theWrappedObject) const; + void swap(QPicture* theWrappedObject, QPicture& other); + bool __nonzero__(QPicture* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtShell_QPictureFormatPlugin : public QPictureFormatPlugin +{ +public: + PythonQtShell_QPictureFormatPlugin(QObject* parent = 0):QPictureFormatPlugin(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QPictureFormatPlugin(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool installIOHandler(const QString& format); +virtual bool loadPicture(const QString& format, const QString& filename, QPicture* pic); +virtual bool savePicture(const QString& format, const QString& filename, const QPicture& pic); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QPictureFormatPlugin : public QPictureFormatPlugin +{ public: +inline bool promoted_loadPicture(const QString& format, const QString& filename, QPicture* pic) { return QPictureFormatPlugin::loadPicture(format, filename, pic); } +inline bool promoted_savePicture(const QString& format, const QString& filename, const QPicture& pic) { return QPictureFormatPlugin::savePicture(format, filename, pic); } +}; + +class PythonQtWrapper_QPictureFormatPlugin : public QObject +{ Q_OBJECT +public: +public slots: +QPictureFormatPlugin* new_QPictureFormatPlugin(QObject* parent = 0); +void delete_QPictureFormatPlugin(QPictureFormatPlugin* obj) { delete obj; } + bool loadPicture(QPictureFormatPlugin* theWrappedObject, const QString& format, const QString& filename, QPicture* pic); + bool savePicture(QPictureFormatPlugin* theWrappedObject, const QString& format, const QString& filename, const QPicture& pic); +}; + + + + + +class PythonQtWrapper_QPictureIO : public QObject +{ Q_OBJECT +public: +public slots: +QPictureIO* new_QPictureIO(); +QPictureIO* new_QPictureIO(QIODevice* ioDevice, const char* format); +QPictureIO* new_QPictureIO(const QString& fileName, const char* format); +void delete_QPictureIO(QPictureIO* obj) { delete obj; } + QString description(QPictureIO* theWrappedObject) const; + QString fileName(QPictureIO* theWrappedObject) const; + const char* format(QPictureIO* theWrappedObject) const; + float gamma(QPictureIO* theWrappedObject) const; + QList static_QPictureIO_inputFormats(); + QIODevice* ioDevice(QPictureIO* theWrappedObject) const; + QList static_QPictureIO_outputFormats(); + const char* parameters(QPictureIO* theWrappedObject) const; + const QPicture* picture(QPictureIO* theWrappedObject) const; + QByteArray static_QPictureIO_pictureFormat(QIODevice* arg__1); + QByteArray static_QPictureIO_pictureFormat(const QString& fileName); + int quality(QPictureIO* theWrappedObject) const; + bool read(QPictureIO* theWrappedObject); + void setDescription(QPictureIO* theWrappedObject, const QString& arg__1); + void setFileName(QPictureIO* theWrappedObject, const QString& arg__1); + void setFormat(QPictureIO* theWrappedObject, const char* arg__1); + void setGamma(QPictureIO* theWrappedObject, float arg__1); + void setIODevice(QPictureIO* theWrappedObject, QIODevice* arg__1); + void setParameters(QPictureIO* theWrappedObject, const char* arg__1); + void setPicture(QPictureIO* theWrappedObject, const QPicture& arg__1); + void setQuality(QPictureIO* theWrappedObject, int arg__1); + void setStatus(QPictureIO* theWrappedObject, int arg__1); + int status(QPictureIO* theWrappedObject) const; + bool write(QPictureIO* theWrappedObject); +}; + + + + + +class PythonQtShell_QPixmapCache : public QPixmapCache +{ +public: + PythonQtShell_QPixmapCache():QPixmapCache(),_wrapper(NULL) {}; + + ~PythonQtShell_QPixmapCache(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QPixmapCache : public QObject +{ Q_OBJECT +public: +public slots: +QPixmapCache* new_QPixmapCache(); +void delete_QPixmapCache(QPixmapCache* obj) { delete obj; } + int static_QPixmapCache_cacheLimit(); + void static_QPixmapCache_clear(); + bool static_QPixmapCache_find(const QPixmapCache::Key& key, QPixmap* pixmap); + bool static_QPixmapCache_find(const QString& key, QPixmap& pixmap); + QPixmapCache::Key static_QPixmapCache_insert(const QPixmap& pixmap); + bool static_QPixmapCache_insert(const QString& key, const QPixmap& pixmap); + void static_QPixmapCache_remove(const QPixmapCache::Key& key); + void static_QPixmapCache_remove(const QString& key); + bool static_QPixmapCache_replace(const QPixmapCache::Key& key, const QPixmap& pixmap); + void static_QPixmapCache_setCacheLimit(int arg__1); +}; + + + + + +class PythonQtWrapper_QPixmapCache_Key : public QObject +{ Q_OBJECT +public: +public slots: +QPixmapCache::Key* new_QPixmapCache_Key(); +QPixmapCache::Key* new_QPixmapCache_Key(const QPixmapCache::Key& other); +void delete_QPixmapCache_Key(QPixmapCache::Key* obj) { delete obj; } + bool __ne__(QPixmapCache::Key* theWrappedObject, const QPixmapCache::Key& key) const; + QPixmapCache::Key* operator_assign(QPixmapCache::Key* theWrappedObject, const QPixmapCache::Key& other); + bool __eq__(QPixmapCache::Key* theWrappedObject, const QPixmapCache::Key& key) const; +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QPlainTextDocumentLayout : public QPlainTextDocumentLayout +{ +public: + PythonQtShell_QPlainTextDocumentLayout(QTextDocument* document):QPlainTextDocumentLayout(document),_wrapper(NULL) {}; + + ~PythonQtShell_QPlainTextDocumentLayout(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QPlainTextDocumentLayout : public QObject +{ Q_OBJECT +public: +public slots: +QPlainTextDocumentLayout* new_QPlainTextDocumentLayout(QTextDocument* document); +void delete_QPlainTextDocumentLayout(QPlainTextDocumentLayout* obj) { delete obj; } + QRectF blockBoundingRect(QPlainTextDocumentLayout* theWrappedObject, const QTextBlock& block) const; + int cursorWidth(QPlainTextDocumentLayout* theWrappedObject) const; + QSizeF documentSize(QPlainTextDocumentLayout* theWrappedObject) const; + void draw(QPlainTextDocumentLayout* theWrappedObject, QPainter* arg__1, const QAbstractTextDocumentLayout::PaintContext& arg__2); + void ensureBlockLayout(QPlainTextDocumentLayout* theWrappedObject, const QTextBlock& block) const; + QRectF frameBoundingRect(QPlainTextDocumentLayout* theWrappedObject, QTextFrame* arg__1) const; + int hitTest(QPlainTextDocumentLayout* theWrappedObject, const QPointF& arg__1, Qt::HitTestAccuracy arg__2) const; + int pageCount(QPlainTextDocumentLayout* theWrappedObject) const; + void requestUpdate(QPlainTextDocumentLayout* theWrappedObject); + void setCursorWidth(QPlainTextDocumentLayout* theWrappedObject, int width); +}; + + + + + +class PythonQtShell_QPlainTextEdit : public QPlainTextEdit +{ +public: + PythonQtShell_QPlainTextEdit(QWidget* parent = 0):QPlainTextEdit(parent),_wrapper(NULL) {}; + PythonQtShell_QPlainTextEdit(const QString& text, QWidget* parent = 0):QPlainTextEdit(text, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QPlainTextEdit(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual bool canInsertFromMimeData(const QMimeData* source) const; +virtual void changeEvent(QEvent* e); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* e); +virtual QMimeData* createMimeDataFromSelection() const; +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void doSetTextCursor(const QTextCursor& cursor); +virtual void dragEnterEvent(QDragEnterEvent* e); +virtual void dragLeaveEvent(QDragLeaveEvent* e); +virtual void dragMoveEvent(QDragMoveEvent* e); +virtual void dropEvent(QDropEvent* e); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* e); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* e); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery property) const; +virtual void insertFromMimeData(const QMimeData* source); +virtual void keyPressEvent(QKeyEvent* e); +virtual void keyReleaseEvent(QKeyEvent* e); +virtual void leaveEvent(QEvent* arg__1); +virtual QVariant loadResource(int type, const QUrl& name); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* e); +virtual void mouseMoveEvent(QMouseEvent* e); +virtual void mousePressEvent(QMouseEvent* e); +virtual void mouseReleaseEvent(QMouseEvent* e); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* e); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* e); +virtual void scrollContentsBy(int dx, int dy); +virtual void setupViewport(QWidget* viewport); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* e); +virtual bool viewportEvent(QEvent* arg__1); +virtual QSize viewportSizeHint() const; +virtual void wheelEvent(QWheelEvent* e); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QPlainTextEdit : public QPlainTextEdit +{ public: +inline bool promoted_canInsertFromMimeData(const QMimeData* source) const { return QPlainTextEdit::canInsertFromMimeData(source); } +inline void promoted_changeEvent(QEvent* e) { QPlainTextEdit::changeEvent(e); } +inline void promoted_contextMenuEvent(QContextMenuEvent* e) { QPlainTextEdit::contextMenuEvent(e); } +inline QMimeData* promoted_createMimeDataFromSelection() const { return QPlainTextEdit::createMimeDataFromSelection(); } +inline void promoted_doSetTextCursor(const QTextCursor& cursor) { QPlainTextEdit::doSetTextCursor(cursor); } +inline void promoted_dragEnterEvent(QDragEnterEvent* e) { QPlainTextEdit::dragEnterEvent(e); } +inline void promoted_dragLeaveEvent(QDragLeaveEvent* e) { QPlainTextEdit::dragLeaveEvent(e); } +inline void promoted_dragMoveEvent(QDragMoveEvent* e) { QPlainTextEdit::dragMoveEvent(e); } +inline void promoted_dropEvent(QDropEvent* e) { QPlainTextEdit::dropEvent(e); } +inline bool promoted_event(QEvent* e) { return QPlainTextEdit::event(e); } +inline void promoted_focusInEvent(QFocusEvent* e) { QPlainTextEdit::focusInEvent(e); } +inline bool promoted_focusNextPrevChild(bool next) { return QPlainTextEdit::focusNextPrevChild(next); } +inline void promoted_focusOutEvent(QFocusEvent* e) { QPlainTextEdit::focusOutEvent(e); } +inline void promoted_inputMethodEvent(QInputMethodEvent* arg__1) { QPlainTextEdit::inputMethodEvent(arg__1); } +inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery property) const { return QPlainTextEdit::inputMethodQuery(property); } +inline void promoted_insertFromMimeData(const QMimeData* source) { QPlainTextEdit::insertFromMimeData(source); } +inline void promoted_keyPressEvent(QKeyEvent* e) { QPlainTextEdit::keyPressEvent(e); } +inline void promoted_keyReleaseEvent(QKeyEvent* e) { QPlainTextEdit::keyReleaseEvent(e); } +inline QVariant promoted_loadResource(int type, const QUrl& name) { return QPlainTextEdit::loadResource(type, name); } +inline void promoted_mouseDoubleClickEvent(QMouseEvent* e) { QPlainTextEdit::mouseDoubleClickEvent(e); } +inline void promoted_mouseMoveEvent(QMouseEvent* e) { QPlainTextEdit::mouseMoveEvent(e); } +inline void promoted_mousePressEvent(QMouseEvent* e) { QPlainTextEdit::mousePressEvent(e); } +inline void promoted_mouseReleaseEvent(QMouseEvent* e) { QPlainTextEdit::mouseReleaseEvent(e); } +inline void promoted_paintEvent(QPaintEvent* e) { QPlainTextEdit::paintEvent(e); } +inline void promoted_resizeEvent(QResizeEvent* e) { QPlainTextEdit::resizeEvent(e); } +inline void promoted_scrollContentsBy(int dx, int dy) { QPlainTextEdit::scrollContentsBy(dx, dy); } +inline void promoted_showEvent(QShowEvent* arg__1) { QPlainTextEdit::showEvent(arg__1); } +inline void promoted_timerEvent(QTimerEvent* e) { QPlainTextEdit::timerEvent(e); } +inline void promoted_wheelEvent(QWheelEvent* e) { QPlainTextEdit::wheelEvent(e); } +}; + +class PythonQtWrapper_QPlainTextEdit : public QObject +{ Q_OBJECT +public: +public slots: +QPlainTextEdit* new_QPlainTextEdit(QWidget* parent = 0); +QPlainTextEdit* new_QPlainTextEdit(const QString& text, QWidget* parent = 0); +void delete_QPlainTextEdit(QPlainTextEdit* obj) { delete obj; } + QString anchorAt(QPlainTextEdit* theWrappedObject, const QPoint& pos) const; + bool backgroundVisible(QPlainTextEdit* theWrappedObject) const; + int blockCount(QPlainTextEdit* theWrappedObject) const; + bool canInsertFromMimeData(QPlainTextEdit* theWrappedObject, const QMimeData* source) const; + bool canPaste(QPlainTextEdit* theWrappedObject) const; + bool centerOnScroll(QPlainTextEdit* theWrappedObject) const; + void changeEvent(QPlainTextEdit* theWrappedObject, QEvent* e); + void contextMenuEvent(QPlainTextEdit* theWrappedObject, QContextMenuEvent* e); + QMimeData* createMimeDataFromSelection(QPlainTextEdit* theWrappedObject) const; + QMenu* createStandardContextMenu(QPlainTextEdit* theWrappedObject); + QTextCharFormat currentCharFormat(QPlainTextEdit* theWrappedObject) const; + QTextCursor cursorForPosition(QPlainTextEdit* theWrappedObject, const QPoint& pos) const; + QRect cursorRect(QPlainTextEdit* theWrappedObject) const; + QRect cursorRect(QPlainTextEdit* theWrappedObject, const QTextCursor& cursor) const; + int cursorWidth(QPlainTextEdit* theWrappedObject) const; + void doSetTextCursor(QPlainTextEdit* theWrappedObject, const QTextCursor& cursor); + QTextDocument* document(QPlainTextEdit* theWrappedObject) const; + QString documentTitle(QPlainTextEdit* theWrappedObject) const; + void dragEnterEvent(QPlainTextEdit* theWrappedObject, QDragEnterEvent* e); + void dragLeaveEvent(QPlainTextEdit* theWrappedObject, QDragLeaveEvent* e); + void dragMoveEvent(QPlainTextEdit* theWrappedObject, QDragMoveEvent* e); + void dropEvent(QPlainTextEdit* theWrappedObject, QDropEvent* e); + void ensureCursorVisible(QPlainTextEdit* theWrappedObject); + bool event(QPlainTextEdit* theWrappedObject, QEvent* e); + QList extraSelections(QPlainTextEdit* theWrappedObject) const; + bool find(QPlainTextEdit* theWrappedObject, const QString& exp, QTextDocument::FindFlags options = 0); + void focusInEvent(QPlainTextEdit* theWrappedObject, QFocusEvent* e); + bool focusNextPrevChild(QPlainTextEdit* theWrappedObject, bool next); + void focusOutEvent(QPlainTextEdit* theWrappedObject, QFocusEvent* e); + void inputMethodEvent(QPlainTextEdit* theWrappedObject, QInputMethodEvent* arg__1); + QVariant inputMethodQuery(QPlainTextEdit* theWrappedObject, Qt::InputMethodQuery property) const; + void insertFromMimeData(QPlainTextEdit* theWrappedObject, const QMimeData* source); + bool isReadOnly(QPlainTextEdit* theWrappedObject) const; + bool isUndoRedoEnabled(QPlainTextEdit* theWrappedObject) const; + void keyPressEvent(QPlainTextEdit* theWrappedObject, QKeyEvent* e); + void keyReleaseEvent(QPlainTextEdit* theWrappedObject, QKeyEvent* e); + QPlainTextEdit::LineWrapMode lineWrapMode(QPlainTextEdit* theWrappedObject) const; + QVariant loadResource(QPlainTextEdit* theWrappedObject, int type, const QUrl& name); + int maximumBlockCount(QPlainTextEdit* theWrappedObject) const; + void mergeCurrentCharFormat(QPlainTextEdit* theWrappedObject, const QTextCharFormat& modifier); + void mouseDoubleClickEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e); + void mouseMoveEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e); + void mousePressEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e); + void mouseReleaseEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e); + void moveCursor(QPlainTextEdit* theWrappedObject, QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor); + bool overwriteMode(QPlainTextEdit* theWrappedObject) const; + void paintEvent(QPlainTextEdit* theWrappedObject, QPaintEvent* e); + void resizeEvent(QPlainTextEdit* theWrappedObject, QResizeEvent* e); + void scrollContentsBy(QPlainTextEdit* theWrappedObject, int dx, int dy); + void setBackgroundVisible(QPlainTextEdit* theWrappedObject, bool visible); + void setCenterOnScroll(QPlainTextEdit* theWrappedObject, bool enabled); + void setCurrentCharFormat(QPlainTextEdit* theWrappedObject, const QTextCharFormat& format); + void setCursorWidth(QPlainTextEdit* theWrappedObject, int width); + void setDocument(QPlainTextEdit* theWrappedObject, QTextDocument* document); + void setDocumentTitle(QPlainTextEdit* theWrappedObject, const QString& title); + void setExtraSelections(QPlainTextEdit* theWrappedObject, const QList& selections); + void setLineWrapMode(QPlainTextEdit* theWrappedObject, QPlainTextEdit::LineWrapMode mode); + void setMaximumBlockCount(QPlainTextEdit* theWrappedObject, int maximum); + void setOverwriteMode(QPlainTextEdit* theWrappedObject, bool overwrite); + void setReadOnly(QPlainTextEdit* theWrappedObject, bool ro); + void setTabChangesFocus(QPlainTextEdit* theWrappedObject, bool b); + void setTabStopWidth(QPlainTextEdit* theWrappedObject, int width); + void setTextCursor(QPlainTextEdit* theWrappedObject, const QTextCursor& cursor); + void setTextInteractionFlags(QPlainTextEdit* theWrappedObject, Qt::TextInteractionFlags flags); + void setUndoRedoEnabled(QPlainTextEdit* theWrappedObject, bool enable); + void setWordWrapMode(QPlainTextEdit* theWrappedObject, QTextOption::WrapMode policy); + void showEvent(QPlainTextEdit* theWrappedObject, QShowEvent* arg__1); + bool tabChangesFocus(QPlainTextEdit* theWrappedObject) const; + int tabStopWidth(QPlainTextEdit* theWrappedObject) const; + QTextCursor textCursor(QPlainTextEdit* theWrappedObject) const; + Qt::TextInteractionFlags textInteractionFlags(QPlainTextEdit* theWrappedObject) const; + void timerEvent(QPlainTextEdit* theWrappedObject, QTimerEvent* e); + QString toPlainText(QPlainTextEdit* theWrappedObject) const; + void wheelEvent(QPlainTextEdit* theWrappedObject, QWheelEvent* e); + QTextOption::WrapMode wordWrapMode(QPlainTextEdit* theWrappedObject) const; +}; + +#endif + + + +class PythonQtWrapper_QPolygonF : public QObject +{ Q_OBJECT +public: +public slots: +QPolygonF* new_QPolygonF(); +QPolygonF* new_QPolygonF(const QPolygon& a); +QPolygonF* new_QPolygonF(const QPolygonF& a); +QPolygonF* new_QPolygonF(const QRectF& r); +QPolygonF* new_QPolygonF(const QVector& v); +QPolygonF* new_QPolygonF(int size); +void delete_QPolygonF(QPolygonF* obj) { delete obj; } + void append(QPolygonF* theWrappedObject, const QPointF& t); + const QPointF* at(QPolygonF* theWrappedObject, int i) const; + QRectF boundingRect(QPolygonF* theWrappedObject) const; + int capacity(QPolygonF* theWrappedObject) const; + void clear(QPolygonF* theWrappedObject); + bool contains(QPolygonF* theWrappedObject, const QPointF& t) const; + bool containsPoint(QPolygonF* theWrappedObject, const QPointF& pt, Qt::FillRule fillRule) const; + int count(QPolygonF* theWrappedObject) const; + int count(QPolygonF* theWrappedObject, const QPointF& t) const; + bool empty(QPolygonF* theWrappedObject) const; + bool endsWith(QPolygonF* theWrappedObject, const QPointF& t) const; + QVector* fill(QPolygonF* theWrappedObject, const QPointF& t, int size); + const QPointF* first(QPolygonF* theWrappedObject) const; + QVector static_QPolygonF_fromList(const QList& list); + int indexOf(QPolygonF* theWrappedObject, const QPointF& t, int from) const; + QPolygonF intersected(QPolygonF* theWrappedObject, const QPolygonF& r) const; + bool isClosed(QPolygonF* theWrappedObject) const; + bool isEmpty(QPolygonF* theWrappedObject) const; + bool isSharedWith(QPolygonF* theWrappedObject, const QVector& other) const; + const QPointF* last(QPolygonF* theWrappedObject) const; + int lastIndexOf(QPolygonF* theWrappedObject, const QPointF& t, int from) const; + QVector mid(QPolygonF* theWrappedObject, int pos, int length) const; + bool __ne__(QPolygonF* theWrappedObject, const QVector& v) const; + QPolygonF __mul__(QPolygonF* theWrappedObject, const QMatrix& m); + QPolygonF __mul__(QPolygonF* theWrappedObject, const QTransform& m); + bool __eq__(QPolygonF* theWrappedObject, const QVector& v) const; + void pop_back(QPolygonF* theWrappedObject); + void pop_front(QPolygonF* theWrappedObject); + void prepend(QPolygonF* theWrappedObject, const QPointF& t); + void push_back(QPolygonF* theWrappedObject, const QPointF& t); + void push_front(QPolygonF* theWrappedObject, const QPointF& t); + void remove(QPolygonF* theWrappedObject, int i); + void remove(QPolygonF* theWrappedObject, int i, int n); + void replace(QPolygonF* theWrappedObject, int i, const QPointF& t); + void reserve(QPolygonF* theWrappedObject, int size); + void resize(QPolygonF* theWrappedObject, int size); + void setSharable(QPolygonF* theWrappedObject, bool sharable); + int size(QPolygonF* theWrappedObject) const; + void squeeze(QPolygonF* theWrappedObject); + bool startsWith(QPolygonF* theWrappedObject, const QPointF& t) const; + QPolygonF subtracted(QPolygonF* theWrappedObject, const QPolygonF& r) const; + void swap(QPolygonF* theWrappedObject, QPolygonF& other); + QList toList(QPolygonF* theWrappedObject) const; + QPolygon toPolygon(QPolygonF* theWrappedObject) const; + void translate(QPolygonF* theWrappedObject, const QPointF& offset); + void translate(QPolygonF* theWrappedObject, qreal dx, qreal dy); + QPolygonF translated(QPolygonF* theWrappedObject, const QPointF& offset) const; + QPolygonF translated(QPolygonF* theWrappedObject, qreal dx, qreal dy) const; + QPolygonF united(QPolygonF* theWrappedObject, const QPolygonF& r) const; + QPointF value(QPolygonF* theWrappedObject, int i) const; + QPointF value(QPolygonF* theWrappedObject, int i, const QPointF& defaultValue) const; + QString py_toString(QPolygonF*); +}; + + + +#if defined(QT_PRINTSUPPORT_LIB) + +class PythonQtShell_QPrintDialog : public QPrintDialog +{ +public: + PythonQtShell_QPrintDialog(QPrinter* printer, QWidget* parent = 0):QPrintDialog(printer, parent),_wrapper(NULL) {}; + PythonQtShell_QPrintDialog(QWidget* parent = 0):QPrintDialog(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QPrintDialog(); + +virtual void accept(); +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void done(int result); +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual int exec(); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void open(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reject(); +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QPrintDialog : public QPrintDialog +{ public: +inline void promoted_accept() { QPrintDialog::accept(); } +inline void promoted_accepted() { QPrintDialog::accepted(); } +inline void promoted_done(int result) { QPrintDialog::done(result); } +inline int promoted_exec() { return QPrintDialog::exec(); } +inline void promoted_open() { QPrintDialog::open(); } +}; + +class PythonQtWrapper_QPrintDialog : public QObject +{ Q_OBJECT +public: +public slots: +QPrintDialog* new_QPrintDialog(QPrinter* printer, QWidget* parent = 0); +QPrintDialog* new_QPrintDialog(QWidget* parent = 0); +void delete_QPrintDialog(QPrintDialog* obj) { delete obj; } + void accept(QPrintDialog* theWrappedObject); + void accepted(QPrintDialog* theWrappedObject); + void done(QPrintDialog* theWrappedObject, int result); + int exec(QPrintDialog* theWrappedObject); + void open(QPrintDialog* theWrappedObject); + void open(QPrintDialog* theWrappedObject, QObject* receiver, const char* member); + QAbstractPrintDialog::PrintDialogOptions options(QPrintDialog* theWrappedObject) const; + void setOption(QPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option, bool on = true); + void setOptions(QPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOptions options); + void setVisible(QPrintDialog* theWrappedObject, bool visible); + bool testOption(QPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option) const; +}; + + + + + +class PythonQtShell_QPrintEngine : public QPrintEngine +{ +public: + PythonQtShell_QPrintEngine():QPrintEngine(),_wrapper(NULL) {}; + + ~PythonQtShell_QPrintEngine(); + +virtual bool abort(); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual bool newPage(); +virtual QPrinter::PrinterState printerState() const; +virtual QVariant property(QPrintEngine::PrintEnginePropertyKey key) const; +virtual void setProperty(QPrintEngine::PrintEnginePropertyKey key, const QVariant& value); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QPrintEngine : public QObject +{ Q_OBJECT +public: +Q_ENUMS(PrintEnginePropertyKey ) +enum PrintEnginePropertyKey{ + PPK_CollateCopies = QPrintEngine::PPK_CollateCopies, PPK_ColorMode = QPrintEngine::PPK_ColorMode, PPK_Creator = QPrintEngine::PPK_Creator, PPK_DocumentName = QPrintEngine::PPK_DocumentName, PPK_FullPage = QPrintEngine::PPK_FullPage, PPK_NumberOfCopies = QPrintEngine::PPK_NumberOfCopies, PPK_Orientation = QPrintEngine::PPK_Orientation, PPK_OutputFileName = QPrintEngine::PPK_OutputFileName, PPK_PageOrder = QPrintEngine::PPK_PageOrder, PPK_PageRect = QPrintEngine::PPK_PageRect, PPK_PageSize = QPrintEngine::PPK_PageSize, PPK_PaperRect = QPrintEngine::PPK_PaperRect, PPK_PaperSource = QPrintEngine::PPK_PaperSource, PPK_PrinterName = QPrintEngine::PPK_PrinterName, PPK_PrinterProgram = QPrintEngine::PPK_PrinterProgram, PPK_Resolution = QPrintEngine::PPK_Resolution, PPK_SelectionOption = QPrintEngine::PPK_SelectionOption, PPK_SupportedResolutions = QPrintEngine::PPK_SupportedResolutions, PPK_WindowsPageSize = QPrintEngine::PPK_WindowsPageSize, PPK_FontEmbedding = QPrintEngine::PPK_FontEmbedding, PPK_Duplex = QPrintEngine::PPK_Duplex, PPK_PaperSources = QPrintEngine::PPK_PaperSources, PPK_CustomPaperSize = QPrintEngine::PPK_CustomPaperSize, PPK_PageMargins = QPrintEngine::PPK_PageMargins, PPK_CopyCount = QPrintEngine::PPK_CopyCount, PPK_SupportsMultipleCopies = QPrintEngine::PPK_SupportsMultipleCopies, PPK_PaperSize = QPrintEngine::PPK_PaperSize, PPK_CustomBase = QPrintEngine::PPK_CustomBase}; +public slots: +QPrintEngine* new_QPrintEngine(); +void delete_QPrintEngine(QPrintEngine* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QPrintPreviewDialog : public QPrintPreviewDialog +{ +public: + PythonQtShell_QPrintPreviewDialog(QPrinter* printer, QWidget* parent = 0, Qt::WindowFlags flags = 0):QPrintPreviewDialog(printer, parent, flags),_wrapper(NULL) {}; + PythonQtShell_QPrintPreviewDialog(QWidget* parent = 0, Qt::WindowFlags flags = 0):QPrintPreviewDialog(parent, flags),_wrapper(NULL) {}; + + ~PythonQtShell_QPrintPreviewDialog(); + +virtual void accept(); +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void done(int result); +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual int exec(); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void open(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reject(); +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QPrintPreviewDialog : public QPrintPreviewDialog +{ public: +inline void promoted_done(int result) { QPrintPreviewDialog::done(result); } +inline void promoted_open() { QPrintPreviewDialog::open(); } +}; + +class PythonQtWrapper_QPrintPreviewDialog : public QObject +{ Q_OBJECT +public: +public slots: +QPrintPreviewDialog* new_QPrintPreviewDialog(QPrinter* printer, QWidget* parent = 0, Qt::WindowFlags flags = 0); +QPrintPreviewDialog* new_QPrintPreviewDialog(QWidget* parent = 0, Qt::WindowFlags flags = 0); +void delete_QPrintPreviewDialog(QPrintPreviewDialog* obj) { delete obj; } + void done(QPrintPreviewDialog* theWrappedObject, int result); + void open(QPrintPreviewDialog* theWrappedObject); + void open(QPrintPreviewDialog* theWrappedObject, QObject* receiver, const char* member); + QPrinter* printer(QPrintPreviewDialog* theWrappedObject); + void setVisible(QPrintPreviewDialog* theWrappedObject, bool visible); +}; + + + + + +class PythonQtShell_QPrintPreviewWidget : public QPrintPreviewWidget +{ +public: + PythonQtShell_QPrintPreviewWidget(QPrinter* printer, QWidget* parent = 0, Qt::WindowFlags flags = 0):QPrintPreviewWidget(printer, parent, flags),_wrapper(NULL) {}; + PythonQtShell_QPrintPreviewWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0):QPrintPreviewWidget(parent, flags),_wrapper(NULL) {}; + + ~PythonQtShell_QPrintPreviewWidget(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual QSize sizeHint() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QPrintPreviewWidget : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ViewMode ZoomMode ) +enum ViewMode{ + SinglePageView = QPrintPreviewWidget::SinglePageView, FacingPagesView = QPrintPreviewWidget::FacingPagesView, AllPagesView = QPrintPreviewWidget::AllPagesView}; +enum ZoomMode{ + CustomZoom = QPrintPreviewWidget::CustomZoom, FitToWidth = QPrintPreviewWidget::FitToWidth, FitInView = QPrintPreviewWidget::FitInView}; +public slots: +QPrintPreviewWidget* new_QPrintPreviewWidget(QPrinter* printer, QWidget* parent = 0, Qt::WindowFlags flags = 0); +QPrintPreviewWidget* new_QPrintPreviewWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0); +void delete_QPrintPreviewWidget(QPrintPreviewWidget* obj) { delete obj; } + int currentPage(QPrintPreviewWidget* theWrappedObject) const; + QPrinter::Orientation orientation(QPrintPreviewWidget* theWrappedObject) const; + int pageCount(QPrintPreviewWidget* theWrappedObject) const; + void setVisible(QPrintPreviewWidget* theWrappedObject, bool visible); + QPrintPreviewWidget::ViewMode viewMode(QPrintPreviewWidget* theWrappedObject) const; + qreal zoomFactor(QPrintPreviewWidget* theWrappedObject) const; + QPrintPreviewWidget::ZoomMode zoomMode(QPrintPreviewWidget* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QPrinter : public QPrinter +{ +public: + PythonQtShell_QPrinter(QPrinter::PrinterMode mode = QPrinter::ScreenResolution):QPrinter(mode),_wrapper(NULL) {}; + PythonQtShell_QPrinter(const QPrinterInfo& printer, QPrinter::PrinterMode mode = QPrinter::ScreenResolution):QPrinter(printer, mode),_wrapper(NULL) {}; + + ~PythonQtShell_QPrinter(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QPrinter : public QObject +{ Q_OBJECT +public: +Q_ENUMS(PrintRange PrinterMode OutputFormat Orientation PrinterState PageOrder DuplexMode PaperSource Unit ColorMode ) +enum PrintRange{ + AllPages = QPrinter::AllPages, Selection = QPrinter::Selection, PageRange = QPrinter::PageRange, CurrentPage = QPrinter::CurrentPage}; +enum PrinterMode{ + ScreenResolution = QPrinter::ScreenResolution, PrinterResolution = QPrinter::PrinterResolution, HighResolution = QPrinter::HighResolution}; +enum OutputFormat{ + NativeFormat = QPrinter::NativeFormat, PdfFormat = QPrinter::PdfFormat}; +enum Orientation{ + Portrait = QPrinter::Portrait, Landscape = QPrinter::Landscape}; +enum PrinterState{ + Idle = QPrinter::Idle, Active = QPrinter::Active, Aborted = QPrinter::Aborted, Error = QPrinter::Error}; +enum PageOrder{ + FirstPageFirst = QPrinter::FirstPageFirst, LastPageFirst = QPrinter::LastPageFirst}; +enum DuplexMode{ + DuplexNone = QPrinter::DuplexNone, DuplexAuto = QPrinter::DuplexAuto, DuplexLongSide = QPrinter::DuplexLongSide, DuplexShortSide = QPrinter::DuplexShortSide}; +enum PaperSource{ + OnlyOne = QPrinter::OnlyOne, Lower = QPrinter::Lower, Middle = QPrinter::Middle, Manual = QPrinter::Manual, Envelope = QPrinter::Envelope, EnvelopeManual = QPrinter::EnvelopeManual, Auto = QPrinter::Auto, Tractor = QPrinter::Tractor, SmallFormat = QPrinter::SmallFormat, LargeFormat = QPrinter::LargeFormat, LargeCapacity = QPrinter::LargeCapacity, Cassette = QPrinter::Cassette, FormSource = QPrinter::FormSource, MaxPageSource = QPrinter::MaxPageSource}; +enum Unit{ + Millimeter = QPrinter::Millimeter, Point = QPrinter::Point, Inch = QPrinter::Inch, Pica = QPrinter::Pica, Didot = QPrinter::Didot, Cicero = QPrinter::Cicero, DevicePixel = QPrinter::DevicePixel}; +enum ColorMode{ + GrayScale = QPrinter::GrayScale, Color = QPrinter::Color}; +public slots: +QPrinter* new_QPrinter(QPrinter::PrinterMode mode = QPrinter::ScreenResolution); +QPrinter* new_QPrinter(const QPrinterInfo& printer, QPrinter::PrinterMode mode = QPrinter::ScreenResolution); +void delete_QPrinter(QPrinter* obj) { delete obj; } + bool abort(QPrinter* theWrappedObject); + int actualNumCopies(QPrinter* theWrappedObject) const; + bool collateCopies(QPrinter* theWrappedObject) const; + QPrinter::ColorMode colorMode(QPrinter* theWrappedObject) const; + int copyCount(QPrinter* theWrappedObject) const; + QString creator(QPrinter* theWrappedObject) const; + int devType(QPrinter* theWrappedObject) const; + QString docName(QPrinter* theWrappedObject) const; + bool doubleSidedPrinting(QPrinter* theWrappedObject) const; + QPrinter::DuplexMode duplex(QPrinter* theWrappedObject) const; + bool fontEmbeddingEnabled(QPrinter* theWrappedObject) const; + int fromPage(QPrinter* theWrappedObject) const; + bool fullPage(QPrinter* theWrappedObject) const; + void getPageMargins(QPrinter* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom, QPrinter::Unit unit) const; + bool isValid(QPrinter* theWrappedObject) const; + bool newPage(QPrinter* theWrappedObject); + int numCopies(QPrinter* theWrappedObject) const; + QPrinter::Orientation orientation(QPrinter* theWrappedObject) const; + QString outputFileName(QPrinter* theWrappedObject) const; + QPrinter::OutputFormat outputFormat(QPrinter* theWrappedObject) const; + QPrinter::PageOrder pageOrder(QPrinter* theWrappedObject) const; + QRect pageRect(QPrinter* theWrappedObject) const; + QRectF pageRect(QPrinter* theWrappedObject, QPrinter::Unit arg__1) const; + QPaintEngine* paintEngine(QPrinter* theWrappedObject) const; + QRect paperRect(QPrinter* theWrappedObject) const; + QRectF paperRect(QPrinter* theWrappedObject, QPrinter::Unit arg__1) const; + QSizeF paperSize(QPrinter* theWrappedObject, QPrinter::Unit unit) const; + QPrinter::PaperSource paperSource(QPrinter* theWrappedObject) const; + QPrintEngine* printEngine(QPrinter* theWrappedObject) const; + QString printProgram(QPrinter* theWrappedObject) const; + QPrinter::PrintRange printRange(QPrinter* theWrappedObject) const; + QString printerName(QPrinter* theWrappedObject) const; + QPrinter::PrinterState printerState(QPrinter* theWrappedObject) const; + int resolution(QPrinter* theWrappedObject) const; + void setCollateCopies(QPrinter* theWrappedObject, bool collate); + void setColorMode(QPrinter* theWrappedObject, QPrinter::ColorMode arg__1); + void setCopyCount(QPrinter* theWrappedObject, int arg__1); + void setCreator(QPrinter* theWrappedObject, const QString& arg__1); + void setDocName(QPrinter* theWrappedObject, const QString& arg__1); + void setDoubleSidedPrinting(QPrinter* theWrappedObject, bool enable); + void setDuplex(QPrinter* theWrappedObject, QPrinter::DuplexMode duplex); + void setFontEmbeddingEnabled(QPrinter* theWrappedObject, bool enable); + void setFromTo(QPrinter* theWrappedObject, int fromPage, int toPage); + void setFullPage(QPrinter* theWrappedObject, bool arg__1); + void setNumCopies(QPrinter* theWrappedObject, int arg__1); + void setOrientation(QPrinter* theWrappedObject, QPrinter::Orientation arg__1); + void setOutputFileName(QPrinter* theWrappedObject, const QString& arg__1); + void setOutputFormat(QPrinter* theWrappedObject, QPrinter::OutputFormat format); + void setPageMargins(QPrinter* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom, QPrinter::Unit unit); + void setPageOrder(QPrinter* theWrappedObject, QPrinter::PageOrder arg__1); + void setPageSizeMM(QPrinter* theWrappedObject, const QSizeF& size); + void setPaperSize(QPrinter* theWrappedObject, const QSizeF& paperSize, QPrinter::Unit unit); + void setPaperSource(QPrinter* theWrappedObject, QPrinter::PaperSource arg__1); + void setPrintProgram(QPrinter* theWrappedObject, const QString& arg__1); + void setPrintRange(QPrinter* theWrappedObject, QPrinter::PrintRange range); + void setPrinterName(QPrinter* theWrappedObject, const QString& arg__1); + void setResolution(QPrinter* theWrappedObject, int arg__1); + QList supportedResolutions(QPrinter* theWrappedObject) const; + bool supportsMultipleCopies(QPrinter* theWrappedObject) const; + int toPage(QPrinter* theWrappedObject) const; +}; + +#endif + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QProgressBar : public QProgressBar +{ +public: + PythonQtShell_QProgressBar(QWidget* parent = 0):QProgressBar(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QProgressBar(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual QString text() const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QProgressBar : public QProgressBar +{ public: +inline bool promoted_event(QEvent* e) { return QProgressBar::event(e); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QProgressBar::paintEvent(arg__1); } +inline QString promoted_text() const { return QProgressBar::text(); } +}; + +class PythonQtWrapper_QProgressBar : public QObject +{ Q_OBJECT +public: +public slots: +QProgressBar* new_QProgressBar(QWidget* parent = 0); +void delete_QProgressBar(QProgressBar* obj) { delete obj; } + Qt::Alignment alignment(QProgressBar* theWrappedObject) const; + bool event(QProgressBar* theWrappedObject, QEvent* e); + QString format(QProgressBar* theWrappedObject) const; + bool invertedAppearance(QProgressBar* theWrappedObject) const; + bool isTextVisible(QProgressBar* theWrappedObject) const; + int maximum(QProgressBar* theWrappedObject) const; + int minimum(QProgressBar* theWrappedObject) const; + QSize minimumSizeHint(QProgressBar* theWrappedObject) const; + Qt::Orientation orientation(QProgressBar* theWrappedObject) const; + void paintEvent(QProgressBar* theWrappedObject, QPaintEvent* arg__1); + void setAlignment(QProgressBar* theWrappedObject, Qt::Alignment alignment); + void setFormat(QProgressBar* theWrappedObject, const QString& format); + void setInvertedAppearance(QProgressBar* theWrappedObject, bool invert); + void setTextDirection(QProgressBar* theWrappedObject, QProgressBar::Direction textDirection); + void setTextVisible(QProgressBar* theWrappedObject, bool visible); + QSize sizeHint(QProgressBar* theWrappedObject) const; + QString text(QProgressBar* theWrappedObject) const; + QProgressBar::Direction textDirection(QProgressBar* theWrappedObject) const; + int value(QProgressBar* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QProgressDialog : public QProgressDialog +{ +public: + PythonQtShell_QProgressDialog(QWidget* parent = 0, Qt::WindowFlags flags = 0):QProgressDialog(parent, flags),_wrapper(NULL) {}; + PythonQtShell_QProgressDialog(const QString& labelText, const QString& cancelButtonText, int minimum, int maximum, QWidget* parent = 0, Qt::WindowFlags flags = 0):QProgressDialog(labelText, cancelButtonText, minimum, maximum, parent, flags),_wrapper(NULL) {}; + + ~PythonQtShell_QProgressDialog(); + +virtual void accept(); +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* event); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* event); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void done(int arg__1); +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual int exec(); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void open(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reject(); +virtual void resizeEvent(QResizeEvent* event); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* event); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QProgressDialog : public QProgressDialog +{ public: +inline void promoted_changeEvent(QEvent* event) { QProgressDialog::changeEvent(event); } +inline void promoted_closeEvent(QCloseEvent* event) { QProgressDialog::closeEvent(event); } +inline void promoted_open() { QProgressDialog::open(); } +inline void promoted_resizeEvent(QResizeEvent* event) { QProgressDialog::resizeEvent(event); } +inline void promoted_showEvent(QShowEvent* event) { QProgressDialog::showEvent(event); } +}; + +class PythonQtWrapper_QProgressDialog : public QObject +{ Q_OBJECT +public: +public slots: +QProgressDialog* new_QProgressDialog(QWidget* parent = 0, Qt::WindowFlags flags = 0); +QProgressDialog* new_QProgressDialog(const QString& labelText, const QString& cancelButtonText, int minimum, int maximum, QWidget* parent = 0, Qt::WindowFlags flags = 0); +void delete_QProgressDialog(QProgressDialog* obj) { delete obj; } + bool autoClose(QProgressDialog* theWrappedObject) const; + bool autoReset(QProgressDialog* theWrappedObject) const; + void changeEvent(QProgressDialog* theWrappedObject, QEvent* event); + void closeEvent(QProgressDialog* theWrappedObject, QCloseEvent* event); + QString labelText(QProgressDialog* theWrappedObject) const; + int maximum(QProgressDialog* theWrappedObject) const; + int minimum(QProgressDialog* theWrappedObject) const; + int minimumDuration(QProgressDialog* theWrappedObject) const; + void open(QProgressDialog* theWrappedObject); + void open(QProgressDialog* theWrappedObject, QObject* receiver, const char* member); + void resizeEvent(QProgressDialog* theWrappedObject, QResizeEvent* event); + void setAutoClose(QProgressDialog* theWrappedObject, bool close); + void setAutoReset(QProgressDialog* theWrappedObject, bool reset); + void setBar(QProgressDialog* theWrappedObject, QProgressBar* bar); + void setCancelButton(QProgressDialog* theWrappedObject, QPushButton* button); + void setLabel(QProgressDialog* theWrappedObject, QLabel* label); + void showEvent(QProgressDialog* theWrappedObject, QShowEvent* event); + QSize sizeHint(QProgressDialog* theWrappedObject) const; + int value(QProgressDialog* theWrappedObject) const; + bool wasCanceled(QProgressDialog* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QPushButton : public QPushButton +{ +public: + PythonQtShell_QPushButton(QWidget* parent = 0):QPushButton(parent),_wrapper(NULL) {}; + PythonQtShell_QPushButton(const QIcon& icon, const QString& text, QWidget* parent = 0):QPushButton(icon, text, parent),_wrapper(NULL) {}; + PythonQtShell_QPushButton(const QString& text, QWidget* parent = 0):QPushButton(text, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QPushButton(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* e); +virtual void checkStateSet(); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual bool hitButton(const QPoint& pos) const; +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* e); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* e); +virtual void mousePressEvent(QMouseEvent* e); +virtual void mouseReleaseEvent(QMouseEvent* e); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void nextCheckState(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* e); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QPushButton : public QPushButton +{ public: +inline bool promoted_event(QEvent* e) { return QPushButton::event(e); } +inline void promoted_focusInEvent(QFocusEvent* arg__1) { QPushButton::focusInEvent(arg__1); } +inline void promoted_focusOutEvent(QFocusEvent* arg__1) { QPushButton::focusOutEvent(arg__1); } +inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QPushButton::keyPressEvent(arg__1); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QPushButton::paintEvent(arg__1); } +}; + +class PythonQtWrapper_QPushButton : public QObject +{ Q_OBJECT +public: +public slots: +QPushButton* new_QPushButton(QWidget* parent = 0); +QPushButton* new_QPushButton(const QIcon& icon, const QString& text, QWidget* parent = 0); +QPushButton* new_QPushButton(const QString& text, QWidget* parent = 0); +void delete_QPushButton(QPushButton* obj) { delete obj; } + bool autoDefault(QPushButton* theWrappedObject) const; + bool event(QPushButton* theWrappedObject, QEvent* e); + void focusInEvent(QPushButton* theWrappedObject, QFocusEvent* arg__1); + void focusOutEvent(QPushButton* theWrappedObject, QFocusEvent* arg__1); + bool isDefault(QPushButton* theWrappedObject) const; + bool isFlat(QPushButton* theWrappedObject) const; + void keyPressEvent(QPushButton* theWrappedObject, QKeyEvent* arg__1); + QMenu* menu(QPushButton* theWrappedObject) const; + QSize minimumSizeHint(QPushButton* theWrappedObject) const; + void paintEvent(QPushButton* theWrappedObject, QPaintEvent* arg__1); + void setAutoDefault(QPushButton* theWrappedObject, bool arg__1); + void setDefault(QPushButton* theWrappedObject, bool arg__1); + void setFlat(QPushButton* theWrappedObject, bool arg__1); + void setMenu(QPushButton* theWrappedObject, QMenu* menu); + QSize sizeHint(QPushButton* theWrappedObject) const; +}; + +#endif + + + +class PythonQtWrapper_QQuaternion : public QObject +{ Q_OBJECT +public: +public slots: +QQuaternion* new_QQuaternion(); +QQuaternion* new_QQuaternion(const QVector4D& vector); +QQuaternion* new_QQuaternion(float scalar, const QVector3D& vector); +QQuaternion* new_QQuaternion(float scalar, float xpos, float ypos, float zpos); +QQuaternion* new_QQuaternion(const QQuaternion& other) { +QQuaternion* a = new QQuaternion(); +*((QQuaternion*)a) = other; +return a; } +void delete_QQuaternion(QQuaternion* obj) { delete obj; } + QQuaternion conjugate(QQuaternion* theWrappedObject) const; + QQuaternion static_QQuaternion_fromAxisAndAngle(const QVector3D& axis, float angle); + QQuaternion static_QQuaternion_fromAxisAndAngle(float x, float y, float z, float angle); + bool isIdentity(QQuaternion* theWrappedObject) const; + bool isNull(QQuaternion* theWrappedObject) const; + float length(QQuaternion* theWrappedObject) const; + float lengthSquared(QQuaternion* theWrappedObject) const; + QQuaternion static_QQuaternion_nlerp(const QQuaternion& q1, const QQuaternion& q2, float t); + void normalize(QQuaternion* theWrappedObject); + QQuaternion normalized(QQuaternion* theWrappedObject) const; + const QQuaternion __mul__(QQuaternion* theWrappedObject, const QQuaternion& q2); + const QQuaternion __mul__(QQuaternion* theWrappedObject, float factor); + QQuaternion* __imul__(QQuaternion* theWrappedObject, const QQuaternion& quaternion); + QQuaternion* __imul__(QQuaternion* theWrappedObject, float factor); + const QQuaternion __add__(QQuaternion* theWrappedObject, const QQuaternion& q2); + QQuaternion* __iadd__(QQuaternion* theWrappedObject, const QQuaternion& quaternion); + const QQuaternion __sub__(QQuaternion* theWrappedObject, const QQuaternion& q2); + QQuaternion* __isub__(QQuaternion* theWrappedObject, const QQuaternion& quaternion); + const QQuaternion __div__(QQuaternion* theWrappedObject, float divisor); + QQuaternion* __idiv__(QQuaternion* theWrappedObject, float divisor); + bool __eq__(QQuaternion* theWrappedObject, const QQuaternion& q2); + QVector3D rotatedVector(QQuaternion* theWrappedObject, const QVector3D& vector) const; + float scalar(QQuaternion* theWrappedObject) const; + void setScalar(QQuaternion* theWrappedObject, float scalar); + void setVector(QQuaternion* theWrappedObject, const QVector3D& vector); + void setVector(QQuaternion* theWrappedObject, float x, float y, float z); + void setX(QQuaternion* theWrappedObject, float x); + void setY(QQuaternion* theWrappedObject, float y); + void setZ(QQuaternion* theWrappedObject, float z); + QQuaternion static_QQuaternion_slerp(const QQuaternion& q1, const QQuaternion& q2, float t); + QVector4D toVector4D(QQuaternion* theWrappedObject) const; + QVector3D vector(QQuaternion* theWrappedObject) const; + float x(QQuaternion* theWrappedObject) const; + float y(QQuaternion* theWrappedObject) const; + float z(QQuaternion* theWrappedObject) const; + QString py_toString(QQuaternion*); + bool __nonzero__(QQuaternion* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QRadialGradient : public QObject +{ Q_OBJECT +public: +public slots: +QRadialGradient* new_QRadialGradient(); +QRadialGradient* new_QRadialGradient(const QPointF& center, qreal centerRadius, const QPointF& focalPoint, qreal focalRadius); +QRadialGradient* new_QRadialGradient(const QPointF& center, qreal radius); +QRadialGradient* new_QRadialGradient(const QPointF& center, qreal radius, const QPointF& focalPoint); +QRadialGradient* new_QRadialGradient(qreal cx, qreal cy, qreal centerRadius, qreal fx, qreal fy, qreal focalRadius); +QRadialGradient* new_QRadialGradient(qreal cx, qreal cy, qreal radius); +QRadialGradient* new_QRadialGradient(qreal cx, qreal cy, qreal radius, qreal fx, qreal fy); +QRadialGradient* new_QRadialGradient(const QRadialGradient& other) { +QRadialGradient* a = new QRadialGradient(); +*((QRadialGradient*)a) = other; +return a; } +void delete_QRadialGradient(QRadialGradient* obj) { delete obj; } + QPointF center(QRadialGradient* theWrappedObject) const; + qreal centerRadius(QRadialGradient* theWrappedObject) const; + QPointF focalPoint(QRadialGradient* theWrappedObject) const; + qreal focalRadius(QRadialGradient* theWrappedObject) const; + qreal radius(QRadialGradient* theWrappedObject) const; + void setCenter(QRadialGradient* theWrappedObject, const QPointF& center); + void setCenter(QRadialGradient* theWrappedObject, qreal x, qreal y); + void setCenterRadius(QRadialGradient* theWrappedObject, qreal radius); + void setFocalPoint(QRadialGradient* theWrappedObject, const QPointF& focalPoint); + void setFocalPoint(QRadialGradient* theWrappedObject, qreal x, qreal y); + void setFocalRadius(QRadialGradient* theWrappedObject, qreal radius); + void setRadius(QRadialGradient* theWrappedObject, qreal radius); +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QRadioButton : public QRadioButton +{ +public: + PythonQtShell_QRadioButton(QWidget* parent = 0):QRadioButton(parent),_wrapper(NULL) {}; + PythonQtShell_QRadioButton(const QString& text, QWidget* parent = 0):QRadioButton(text, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QRadioButton(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* e); +virtual void checkStateSet(); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* e); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* e); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual bool hitButton(const QPoint& arg__1) const; +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* e); +virtual void keyReleaseEvent(QKeyEvent* e); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* e); +virtual void mouseReleaseEvent(QMouseEvent* e); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void nextCheckState(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* e); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QRadioButton : public QRadioButton +{ public: +inline bool promoted_event(QEvent* e) { return QRadioButton::event(e); } +inline bool promoted_hitButton(const QPoint& arg__1) const { return QRadioButton::hitButton(arg__1); } +inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QRadioButton::mouseMoveEvent(arg__1); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QRadioButton::paintEvent(arg__1); } +}; + +class PythonQtWrapper_QRadioButton : public QObject +{ Q_OBJECT +public: +public slots: +QRadioButton* new_QRadioButton(QWidget* parent = 0); +QRadioButton* new_QRadioButton(const QString& text, QWidget* parent = 0); +void delete_QRadioButton(QRadioButton* obj) { delete obj; } + bool event(QRadioButton* theWrappedObject, QEvent* e); + bool hitButton(QRadioButton* theWrappedObject, const QPoint& arg__1) const; + QSize minimumSizeHint(QRadioButton* theWrappedObject) const; + void mouseMoveEvent(QRadioButton* theWrappedObject, QMouseEvent* arg__1); + void paintEvent(QRadioButton* theWrappedObject, QPaintEvent* arg__1); + QSize sizeHint(QRadioButton* theWrappedObject) const; +}; + +#endif + + + +class PythonQtShell_QRegExpValidator : public QRegExpValidator +{ +public: + PythonQtShell_QRegExpValidator(QObject* parent = 0):QRegExpValidator(parent),_wrapper(NULL) {}; + PythonQtShell_QRegExpValidator(const QRegExp& rx, QObject* parent = 0):QRegExpValidator(rx, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QRegExpValidator(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fixup(QString& arg__1) const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual QValidator::State validate(QString& input, int& pos) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QRegExpValidator : public QRegExpValidator +{ public: +inline QValidator::State promoted_validate(QString& input, int& pos) const { return QRegExpValidator::validate(input, pos); } +}; + +class PythonQtWrapper_QRegExpValidator : public QObject +{ Q_OBJECT +public: +public slots: +QRegExpValidator* new_QRegExpValidator(QObject* parent = 0); +QRegExpValidator* new_QRegExpValidator(const QRegExp& rx, QObject* parent = 0); +void delete_QRegExpValidator(QRegExpValidator* obj) { delete obj; } + const QRegExp* regExp(QRegExpValidator* theWrappedObject) const; + void setRegExp(QRegExpValidator* theWrappedObject, const QRegExp& rx); + QValidator::State validate(QRegExpValidator* theWrappedObject, QString& input, int& pos) const; +}; + + + + + +class PythonQtShell_QResizeEvent : public QResizeEvent +{ +public: + PythonQtShell_QResizeEvent(const QSize& size, const QSize& oldSize):QResizeEvent(size, oldSize),_wrapper(NULL) {}; + + ~PythonQtShell_QResizeEvent(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QResizeEvent : public QObject +{ Q_OBJECT +public: +public slots: +QResizeEvent* new_QResizeEvent(const QSize& size, const QSize& oldSize); +void delete_QResizeEvent(QResizeEvent* obj) { delete obj; } + const QSize* oldSize(QResizeEvent* theWrappedObject) const; + const QSize* size(QResizeEvent* theWrappedObject) const; +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QRubberBand : public QRubberBand +{ +public: + PythonQtShell_QRubberBand(QRubberBand::Shape arg__1, QWidget* arg__2 = 0):QRubberBand(arg__1, arg__2),_wrapper(NULL) {}; + + ~PythonQtShell_QRubberBand(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual QSize sizeHint() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QRubberBand : public QRubberBand +{ public: +inline void promoted_changeEvent(QEvent* arg__1) { QRubberBand::changeEvent(arg__1); } +inline bool promoted_event(QEvent* e) { return QRubberBand::event(e); } +inline void promoted_moveEvent(QMoveEvent* arg__1) { QRubberBand::moveEvent(arg__1); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QRubberBand::paintEvent(arg__1); } +inline void promoted_resizeEvent(QResizeEvent* arg__1) { QRubberBand::resizeEvent(arg__1); } +inline void promoted_showEvent(QShowEvent* arg__1) { QRubberBand::showEvent(arg__1); } +}; + +class PythonQtWrapper_QRubberBand : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Shape ) +enum Shape{ + Line = QRubberBand::Line, Rectangle = QRubberBand::Rectangle}; +public slots: +QRubberBand* new_QRubberBand(QRubberBand::Shape arg__1, QWidget* arg__2 = 0); +void delete_QRubberBand(QRubberBand* obj) { delete obj; } + void changeEvent(QRubberBand* theWrappedObject, QEvent* arg__1); + bool event(QRubberBand* theWrappedObject, QEvent* e); + void move(QRubberBand* theWrappedObject, const QPoint& p); + void move(QRubberBand* theWrappedObject, int x, int y); + void moveEvent(QRubberBand* theWrappedObject, QMoveEvent* arg__1); + void paintEvent(QRubberBand* theWrappedObject, QPaintEvent* arg__1); + void resize(QRubberBand* theWrappedObject, const QSize& s); + void resize(QRubberBand* theWrappedObject, int w, int h); + void resizeEvent(QRubberBand* theWrappedObject, QResizeEvent* arg__1); + void setGeometry(QRubberBand* theWrappedObject, const QRect& r); + void setGeometry(QRubberBand* theWrappedObject, int x, int y, int w, int h); + QRubberBand::Shape shape(QRubberBand* theWrappedObject) const; + void showEvent(QRubberBand* theWrappedObject, QShowEvent* arg__1); +}; + + + + + +class PythonQtShell_QScrollArea : public QScrollArea +{ +public: + PythonQtShell_QScrollArea(QWidget* parent = 0):QScrollArea(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QScrollArea(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual void scrollContentsBy(int dx, int dy); +virtual void setupViewport(QWidget* viewport); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool viewportEvent(QEvent* arg__1); +virtual QSize viewportSizeHint() const; +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QScrollArea : public QScrollArea +{ public: +inline bool promoted_event(QEvent* arg__1) { return QScrollArea::event(arg__1); } +inline bool promoted_eventFilter(QObject* arg__1, QEvent* arg__2) { return QScrollArea::eventFilter(arg__1, arg__2); } +inline bool promoted_focusNextPrevChild(bool next) { return QScrollArea::focusNextPrevChild(next); } +inline void promoted_resizeEvent(QResizeEvent* arg__1) { QScrollArea::resizeEvent(arg__1); } +inline void promoted_scrollContentsBy(int dx, int dy) { QScrollArea::scrollContentsBy(dx, dy); } +}; + +class PythonQtWrapper_QScrollArea : public QObject +{ Q_OBJECT +public: +public slots: +QScrollArea* new_QScrollArea(QWidget* parent = 0); +void delete_QScrollArea(QScrollArea* obj) { delete obj; } + Qt::Alignment alignment(QScrollArea* theWrappedObject) const; + void ensureVisible(QScrollArea* theWrappedObject, int x, int y, int xmargin = 50, int ymargin = 50); + void ensureWidgetVisible(QScrollArea* theWrappedObject, QWidget* childWidget, int xmargin = 50, int ymargin = 50); + bool event(QScrollArea* theWrappedObject, QEvent* arg__1); + bool eventFilter(QScrollArea* theWrappedObject, QObject* arg__1, QEvent* arg__2); + bool focusNextPrevChild(QScrollArea* theWrappedObject, bool next); + void resizeEvent(QScrollArea* theWrappedObject, QResizeEvent* arg__1); + void scrollContentsBy(QScrollArea* theWrappedObject, int dx, int dy); + void setAlignment(QScrollArea* theWrappedObject, Qt::Alignment arg__1); + void setWidget(QScrollArea* theWrappedObject, QWidget* widget); + void setWidgetResizable(QScrollArea* theWrappedObject, bool resizable); + QSize sizeHint(QScrollArea* theWrappedObject) const; + QWidget* takeWidget(QScrollArea* theWrappedObject); + QWidget* widget(QScrollArea* theWrappedObject) const; + bool widgetResizable(QScrollArea* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QScrollBar : public QScrollBar +{ +public: + PythonQtShell_QScrollBar(QWidget* parent = 0):QScrollBar(parent),_wrapper(NULL) {}; + PythonQtShell_QScrollBar(Qt::Orientation arg__1, QWidget* parent = 0):QScrollBar(arg__1, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QScrollBar(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* e); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* ev); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QScrollBar : public QScrollBar +{ public: +inline void promoted_contextMenuEvent(QContextMenuEvent* arg__1) { QScrollBar::contextMenuEvent(arg__1); } +inline bool promoted_event(QEvent* event) { return QScrollBar::event(event); } +inline void promoted_hideEvent(QHideEvent* arg__1) { QScrollBar::hideEvent(arg__1); } +inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QScrollBar::mouseMoveEvent(arg__1); } +inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QScrollBar::mousePressEvent(arg__1); } +inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QScrollBar::mouseReleaseEvent(arg__1); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QScrollBar::paintEvent(arg__1); } +inline void promoted_wheelEvent(QWheelEvent* arg__1) { QScrollBar::wheelEvent(arg__1); } +}; + +class PythonQtWrapper_QScrollBar : public QObject +{ Q_OBJECT +public: +public slots: +QScrollBar* new_QScrollBar(QWidget* parent = 0); +QScrollBar* new_QScrollBar(Qt::Orientation arg__1, QWidget* parent = 0); +void delete_QScrollBar(QScrollBar* obj) { delete obj; } + void contextMenuEvent(QScrollBar* theWrappedObject, QContextMenuEvent* arg__1); + bool event(QScrollBar* theWrappedObject, QEvent* event); + void hideEvent(QScrollBar* theWrappedObject, QHideEvent* arg__1); + void mouseMoveEvent(QScrollBar* theWrappedObject, QMouseEvent* arg__1); + void mousePressEvent(QScrollBar* theWrappedObject, QMouseEvent* arg__1); + void mouseReleaseEvent(QScrollBar* theWrappedObject, QMouseEvent* arg__1); + void paintEvent(QScrollBar* theWrappedObject, QPaintEvent* arg__1); + QSize sizeHint(QScrollBar* theWrappedObject) const; + void wheelEvent(QScrollBar* theWrappedObject, QWheelEvent* arg__1); +}; + +#endif + + + +class PythonQtWrapper_QSessionManager : public QObject +{ Q_OBJECT +public: +Q_ENUMS(RestartHint ) +enum RestartHint{ + RestartIfRunning = QSessionManager::RestartIfRunning, RestartAnyway = QSessionManager::RestartAnyway, RestartImmediately = QSessionManager::RestartImmediately, RestartNever = QSessionManager::RestartNever}; +public slots: + bool allowsErrorInteraction(QSessionManager* theWrappedObject); + bool allowsInteraction(QSessionManager* theWrappedObject); + void cancel(QSessionManager* theWrappedObject); + QStringList discardCommand(QSessionManager* theWrappedObject) const; + bool isPhase2(QSessionManager* theWrappedObject) const; + void release(QSessionManager* theWrappedObject); + void requestPhase2(QSessionManager* theWrappedObject); + QStringList restartCommand(QSessionManager* theWrappedObject) const; + QSessionManager::RestartHint restartHint(QSessionManager* theWrappedObject) const; + QString sessionId(QSessionManager* theWrappedObject) const; + QString sessionKey(QSessionManager* theWrappedObject) const; + void setDiscardCommand(QSessionManager* theWrappedObject, const QStringList& arg__1); + void setManagerProperty(QSessionManager* theWrappedObject, const QString& name, const QString& value); + void setManagerProperty(QSessionManager* theWrappedObject, const QString& name, const QStringList& value); + void setRestartCommand(QSessionManager* theWrappedObject, const QStringList& arg__1); + void setRestartHint(QSessionManager* theWrappedObject, QSessionManager::RestartHint arg__1); +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QShortcut : public QShortcut +{ +public: + PythonQtShell_QShortcut(QWidget* parent):QShortcut(parent),_wrapper(NULL) {}; + PythonQtShell_QShortcut(const QKeySequence& key, QWidget* parent, const char* member = 0, const char* ambiguousMember = 0, Qt::ShortcutContext context = Qt::WindowShortcut):QShortcut(key, parent, member, ambiguousMember, context),_wrapper(NULL) {}; + + ~PythonQtShell_QShortcut(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QShortcut : public QShortcut +{ public: +inline bool promoted_event(QEvent* e) { return QShortcut::event(e); } +}; + +class PythonQtWrapper_QShortcut : public QObject +{ Q_OBJECT +public: +public slots: +QShortcut* new_QShortcut(QWidget* parent); +QShortcut* new_QShortcut(const QKeySequence& key, QWidget* parent, const char* member = 0, const char* ambiguousMember = 0, Qt::ShortcutContext context = Qt::WindowShortcut); +void delete_QShortcut(QShortcut* obj) { delete obj; } + bool autoRepeat(QShortcut* theWrappedObject) const; + Qt::ShortcutContext context(QShortcut* theWrappedObject) const; + bool event(QShortcut* theWrappedObject, QEvent* e); + int id(QShortcut* theWrappedObject) const; + bool isEnabled(QShortcut* theWrappedObject) const; + QKeySequence key(QShortcut* theWrappedObject) const; + QWidget* parentWidget(QShortcut* theWrappedObject) const; + void setAutoRepeat(QShortcut* theWrappedObject, bool on); + void setContext(QShortcut* theWrappedObject, Qt::ShortcutContext context); + void setEnabled(QShortcut* theWrappedObject, bool enable); + void setKey(QShortcut* theWrappedObject, const QKeySequence& key); + void setWhatsThis(QShortcut* theWrappedObject, const QString& text); + QString whatsThis(QShortcut* theWrappedObject) const; +}; + +#endif + + + +class PythonQtShell_QShortcutEvent : public QShortcutEvent +{ +public: + PythonQtShell_QShortcutEvent(const QKeySequence& key, int id, bool ambiguous = false):QShortcutEvent(key, id, ambiguous),_wrapper(NULL) {}; + + ~PythonQtShell_QShortcutEvent(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QShortcutEvent : public QObject +{ Q_OBJECT +public: +public slots: +QShortcutEvent* new_QShortcutEvent(const QKeySequence& key, int id, bool ambiguous = false); +void delete_QShortcutEvent(QShortcutEvent* obj) { delete obj; } + bool isAmbiguous(QShortcutEvent* theWrappedObject) const; + const QKeySequence* key(QShortcutEvent* theWrappedObject) const; + int shortcutId(QShortcutEvent* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QShowEvent : public QObject +{ Q_OBJECT +public: +public slots: +QShowEvent* new_QShowEvent(); +void delete_QShowEvent(QShowEvent* obj) { delete obj; } +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QSizeGrip : public QSizeGrip +{ +public: + PythonQtShell_QSizeGrip(QWidget* parent):QSizeGrip(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QSizeGrip(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* hideEvent); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* mouseEvent); +virtual void moveEvent(QMoveEvent* moveEvent); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* showEvent); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSizeGrip : public QSizeGrip +{ public: +inline bool promoted_event(QEvent* arg__1) { return QSizeGrip::event(arg__1); } +inline bool promoted_eventFilter(QObject* arg__1, QEvent* arg__2) { return QSizeGrip::eventFilter(arg__1, arg__2); } +inline void promoted_hideEvent(QHideEvent* hideEvent) { QSizeGrip::hideEvent(hideEvent); } +inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QSizeGrip::mouseMoveEvent(arg__1); } +inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QSizeGrip::mousePressEvent(arg__1); } +inline void promoted_mouseReleaseEvent(QMouseEvent* mouseEvent) { QSizeGrip::mouseReleaseEvent(mouseEvent); } +inline void promoted_moveEvent(QMoveEvent* moveEvent) { QSizeGrip::moveEvent(moveEvent); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QSizeGrip::paintEvent(arg__1); } +inline void promoted_showEvent(QShowEvent* showEvent) { QSizeGrip::showEvent(showEvent); } +}; + +class PythonQtWrapper_QSizeGrip : public QObject +{ Q_OBJECT +public: +public slots: +QSizeGrip* new_QSizeGrip(QWidget* parent); +void delete_QSizeGrip(QSizeGrip* obj) { delete obj; } + bool event(QSizeGrip* theWrappedObject, QEvent* arg__1); + bool eventFilter(QSizeGrip* theWrappedObject, QObject* arg__1, QEvent* arg__2); + void hideEvent(QSizeGrip* theWrappedObject, QHideEvent* hideEvent); + void mouseMoveEvent(QSizeGrip* theWrappedObject, QMouseEvent* arg__1); + void mousePressEvent(QSizeGrip* theWrappedObject, QMouseEvent* arg__1); + void mouseReleaseEvent(QSizeGrip* theWrappedObject, QMouseEvent* mouseEvent); + void moveEvent(QSizeGrip* theWrappedObject, QMoveEvent* moveEvent); + void paintEvent(QSizeGrip* theWrappedObject, QPaintEvent* arg__1); + void setVisible(QSizeGrip* theWrappedObject, bool arg__1); + void showEvent(QSizeGrip* theWrappedObject, QShowEvent* showEvent); + QSize sizeHint(QSizeGrip* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QSlider : public QSlider +{ +public: + PythonQtShell_QSlider(QWidget* parent = 0):QSlider(parent),_wrapper(NULL) {}; + PythonQtShell_QSlider(Qt::Orientation orientation, QWidget* parent = 0):QSlider(orientation, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QSlider(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* e); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* ev); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* ev); +virtual void mousePressEvent(QMouseEvent* ev); +virtual void mouseReleaseEvent(QMouseEvent* ev); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* ev); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* e); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSlider : public QSlider +{ public: +inline bool promoted_event(QEvent* event) { return QSlider::event(event); } +inline void promoted_mouseMoveEvent(QMouseEvent* ev) { QSlider::mouseMoveEvent(ev); } +inline void promoted_mousePressEvent(QMouseEvent* ev) { QSlider::mousePressEvent(ev); } +inline void promoted_mouseReleaseEvent(QMouseEvent* ev) { QSlider::mouseReleaseEvent(ev); } +inline void promoted_paintEvent(QPaintEvent* ev) { QSlider::paintEvent(ev); } +}; + +class PythonQtWrapper_QSlider : public QObject +{ Q_OBJECT +public: +public slots: +QSlider* new_QSlider(QWidget* parent = 0); +QSlider* new_QSlider(Qt::Orientation orientation, QWidget* parent = 0); +void delete_QSlider(QSlider* obj) { delete obj; } + bool event(QSlider* theWrappedObject, QEvent* event); + QSize minimumSizeHint(QSlider* theWrappedObject) const; + void mouseMoveEvent(QSlider* theWrappedObject, QMouseEvent* ev); + void mousePressEvent(QSlider* theWrappedObject, QMouseEvent* ev); + void mouseReleaseEvent(QSlider* theWrappedObject, QMouseEvent* ev); + void paintEvent(QSlider* theWrappedObject, QPaintEvent* ev); + void setTickInterval(QSlider* theWrappedObject, int ti); + void setTickPosition(QSlider* theWrappedObject, QSlider::TickPosition position); + QSize sizeHint(QSlider* theWrappedObject) const; + int tickInterval(QSlider* theWrappedObject) const; + QSlider::TickPosition tickPosition(QSlider* theWrappedObject) const; +}; + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp new file mode 100644 index 00000000..c0d8ff8b --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp @@ -0,0 +1,10876 @@ +#include "com_trolltech_qt_gui6.h" + +#include +#include +#include + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QSpacerItem::~PythonQtShell_QSpacerItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QSizePolicy::ControlTypes PythonQtShell_QSpacerItem::controlTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "controlTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSizePolicy::ControlTypes"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSizePolicy::ControlTypes returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("controlTypes", methodInfo, result); + } else { + returnValue = *((QSizePolicy::ControlTypes*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpacerItem::controlTypes(); +} +Qt::Orientations PythonQtShell_QSpacerItem::expandingDirections() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::Orientations"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::Orientations returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); + } else { + returnValue = *((Qt::Orientations*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpacerItem::expandingDirections(); +} +QRect PythonQtShell_QSpacerItem::geometry() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QRect returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpacerItem::geometry(); +} +bool PythonQtShell_QSpacerItem::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpacerItem::hasHeightForWidth(); +} +int PythonQtShell_QSpacerItem::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpacerItem::heightForWidth(arg__1); +} +void PythonQtShell_QSpacerItem::invalidate() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpacerItem::invalidate(); +} +bool PythonQtShell_QSpacerItem::isEmpty() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpacerItem::isEmpty(); +} +QLayout* PythonQtShell_QSpacerItem::layout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayout*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QLayout* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); + } else { + returnValue = *((QLayout**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpacerItem::layout(); +} +QSize PythonQtShell_QSpacerItem::maximumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpacerItem::maximumSize(); +} +int PythonQtShell_QSpacerItem::minimumHeightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("minimumHeightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpacerItem::minimumHeightForWidth(arg__1); +} +QSize PythonQtShell_QSpacerItem::minimumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpacerItem::minimumSize(); +} +void PythonQtShell_QSpacerItem::setGeometry(const QRect& arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpacerItem::setGeometry(arg__1); +} +QSize PythonQtShell_QSpacerItem::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpacerItem::sizeHint(); +} +QSpacerItem* PythonQtShell_QSpacerItem::spacerItem() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "spacerItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSpacerItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSpacerItem* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("spacerItem", methodInfo, result); + } else { + returnValue = *((QSpacerItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpacerItem::spacerItem(); +} +QWidget* PythonQtShell_QSpacerItem::widget() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widget"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QWidget* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("widget", methodInfo, result); + } else { + returnValue = *((QWidget**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpacerItem::widget(); +} +QSpacerItem* PythonQtWrapper_QSpacerItem::new_QSpacerItem(int w, int h, QSizePolicy::Policy hData, QSizePolicy::Policy vData) +{ +return new PythonQtShell_QSpacerItem(w, h, hData, vData); } + +void PythonQtWrapper_QSpacerItem::changeSize(QSpacerItem* theWrappedObject, int w, int h, QSizePolicy::Policy hData, QSizePolicy::Policy vData) +{ + ( theWrappedObject->changeSize(w, h, hData, vData)); +} + +Qt::Orientations PythonQtWrapper_QSpacerItem::expandingDirections(QSpacerItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSpacerItem*)theWrappedObject)->promoted_expandingDirections()); +} + +QRect PythonQtWrapper_QSpacerItem::geometry(QSpacerItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSpacerItem*)theWrappedObject)->promoted_geometry()); +} + +bool PythonQtWrapper_QSpacerItem::isEmpty(QSpacerItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSpacerItem*)theWrappedObject)->promoted_isEmpty()); +} + +QSize PythonQtWrapper_QSpacerItem::maximumSize(QSpacerItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSpacerItem*)theWrappedObject)->promoted_maximumSize()); +} + +QSize PythonQtWrapper_QSpacerItem::minimumSize(QSpacerItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSpacerItem*)theWrappedObject)->promoted_minimumSize()); +} + +void PythonQtWrapper_QSpacerItem::setGeometry(QSpacerItem* theWrappedObject, const QRect& arg__1) +{ + ( ((PythonQtPublicPromoter_QSpacerItem*)theWrappedObject)->promoted_setGeometry(arg__1)); +} + +QSize PythonQtWrapper_QSpacerItem::sizeHint(QSpacerItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSpacerItem*)theWrappedObject)->promoted_sizeHint()); +} + +QSpacerItem* PythonQtWrapper_QSpacerItem::spacerItem(QSpacerItem* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QSpacerItem*)theWrappedObject)->promoted_spacerItem()); +} + + + +PythonQtShell_QSpinBox::~PythonQtShell_QSpinBox() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QSpinBox::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::actionEvent(arg__1); +} +void PythonQtShell_QSpinBox::changeEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::changeEvent(event); +} +void PythonQtShell_QSpinBox::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::childEvent(arg__1); +} +void PythonQtShell_QSpinBox::clear() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::clear(); +} +void PythonQtShell_QSpinBox::closeEvent(QCloseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::closeEvent(event); +} +void PythonQtShell_QSpinBox::contextMenuEvent(QContextMenuEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::contextMenuEvent(event); +} +void PythonQtShell_QSpinBox::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::customEvent(arg__1); +} +int PythonQtShell_QSpinBox::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpinBox::devType(); +} +void PythonQtShell_QSpinBox::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::dragEnterEvent(arg__1); +} +void PythonQtShell_QSpinBox::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::dragLeaveEvent(arg__1); +} +void PythonQtShell_QSpinBox::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::dragMoveEvent(arg__1); +} +void PythonQtShell_QSpinBox::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::dropEvent(arg__1); +} +void PythonQtShell_QSpinBox::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::enterEvent(arg__1); +} +bool PythonQtShell_QSpinBox::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpinBox::event(event); +} +bool PythonQtShell_QSpinBox::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpinBox::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QSpinBox::fixup(QString& str) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&str}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::fixup(str); +} +void PythonQtShell_QSpinBox::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::focusInEvent(event); +} +bool PythonQtShell_QSpinBox::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpinBox::focusNextPrevChild(next); +} +void PythonQtShell_QSpinBox::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::focusOutEvent(event); +} +bool PythonQtShell_QSpinBox::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpinBox::hasHeightForWidth(); +} +int PythonQtShell_QSpinBox::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpinBox::heightForWidth(arg__1); +} +void PythonQtShell_QSpinBox::hideEvent(QHideEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::hideEvent(event); +} +void PythonQtShell_QSpinBox::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::initPainter(painter); +} +void PythonQtShell_QSpinBox::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QSpinBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpinBox::inputMethodQuery(arg__1); +} +void PythonQtShell_QSpinBox::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::keyPressEvent(event); +} +void PythonQtShell_QSpinBox::keyReleaseEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::keyReleaseEvent(event); +} +void PythonQtShell_QSpinBox::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::leaveEvent(arg__1); +} +int PythonQtShell_QSpinBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpinBox::metric(arg__1); +} +void PythonQtShell_QSpinBox::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QSpinBox::mouseMoveEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::mouseMoveEvent(event); +} +void PythonQtShell_QSpinBox::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::mousePressEvent(event); +} +void PythonQtShell_QSpinBox::mouseReleaseEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::mouseReleaseEvent(event); +} +void PythonQtShell_QSpinBox::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::moveEvent(arg__1); +} +bool PythonQtShell_QSpinBox::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpinBox::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QSpinBox::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpinBox::paintEngine(); +} +void PythonQtShell_QSpinBox::paintEvent(QPaintEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::paintEvent(event); +} +QPaintDevice* PythonQtShell_QSpinBox::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpinBox::redirected(offset); +} +void PythonQtShell_QSpinBox::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::resizeEvent(event); +} +QPainter* PythonQtShell_QSpinBox::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpinBox::sharedPainter(); +} +void PythonQtShell_QSpinBox::showEvent(QShowEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::showEvent(event); +} +void PythonQtShell_QSpinBox::stepBy(int steps) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&steps}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::stepBy(steps); +} +QAbstractSpinBox::StepEnabled PythonQtShell_QSpinBox::stepEnabled() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepEnabled"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QAbstractSpinBox::StepEnabled returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("stepEnabled", methodInfo, result); + } else { + returnValue = *((QAbstractSpinBox::StepEnabled*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpinBox::stepEnabled(); +} +void PythonQtShell_QSpinBox::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::tabletEvent(arg__1); +} +QString PythonQtShell_QSpinBox::textFromValue(int val) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "textFromValue"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QString returnValue; + void* args[2] = {NULL, (void*)&val}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("textFromValue", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpinBox::textFromValue(val); +} +void PythonQtShell_QSpinBox::timerEvent(QTimerEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::timerEvent(event); +} +QValidator::State PythonQtShell_QSpinBox::validate(QString& input, int& pos) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QValidator::State" , "QString&" , "int&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QValidator::State returnValue; + void* args[3] = {NULL, (void*)&input, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); + } else { + returnValue = *((QValidator::State*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpinBox::validate(input, pos); +} +int PythonQtShell_QSpinBox::valueFromText(const QString& text) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "valueFromText"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&text}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("valueFromText", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSpinBox::valueFromText(text); +} +void PythonQtShell_QSpinBox::wheelEvent(QWheelEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSpinBox::wheelEvent(event); +} +QSpinBox* PythonQtWrapper_QSpinBox::new_QSpinBox(QWidget* parent) +{ +return new PythonQtShell_QSpinBox(parent); } + +QString PythonQtWrapper_QSpinBox::cleanText(QSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->cleanText()); +} + +bool PythonQtWrapper_QSpinBox::event(QSpinBox* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QSpinBox*)theWrappedObject)->promoted_event(event)); +} + +void PythonQtWrapper_QSpinBox::fixup(QSpinBox* theWrappedObject, QString& str) const +{ + ( ((PythonQtPublicPromoter_QSpinBox*)theWrappedObject)->promoted_fixup(str)); +} + +int PythonQtWrapper_QSpinBox::maximum(QSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->maximum()); +} + +int PythonQtWrapper_QSpinBox::minimum(QSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->minimum()); +} + +QString PythonQtWrapper_QSpinBox::prefix(QSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->prefix()); +} + +void PythonQtWrapper_QSpinBox::setMaximum(QSpinBox* theWrappedObject, int max) +{ + ( theWrappedObject->setMaximum(max)); +} + +void PythonQtWrapper_QSpinBox::setMinimum(QSpinBox* theWrappedObject, int min) +{ + ( theWrappedObject->setMinimum(min)); +} + +void PythonQtWrapper_QSpinBox::setPrefix(QSpinBox* theWrappedObject, const QString& prefix) +{ + ( theWrappedObject->setPrefix(prefix)); +} + +void PythonQtWrapper_QSpinBox::setRange(QSpinBox* theWrappedObject, int min, int max) +{ + ( theWrappedObject->setRange(min, max)); +} + +void PythonQtWrapper_QSpinBox::setSingleStep(QSpinBox* theWrappedObject, int val) +{ + ( theWrappedObject->setSingleStep(val)); +} + +void PythonQtWrapper_QSpinBox::setSuffix(QSpinBox* theWrappedObject, const QString& suffix) +{ + ( theWrappedObject->setSuffix(suffix)); +} + +int PythonQtWrapper_QSpinBox::singleStep(QSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->singleStep()); +} + +QString PythonQtWrapper_QSpinBox::suffix(QSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->suffix()); +} + +QString PythonQtWrapper_QSpinBox::textFromValue(QSpinBox* theWrappedObject, int val) const +{ + return ( ((PythonQtPublicPromoter_QSpinBox*)theWrappedObject)->promoted_textFromValue(val)); +} + +QValidator::State PythonQtWrapper_QSpinBox::validate(QSpinBox* theWrappedObject, QString& input, int& pos) const +{ + return ( ((PythonQtPublicPromoter_QSpinBox*)theWrappedObject)->promoted_validate(input, pos)); +} + +int PythonQtWrapper_QSpinBox::value(QSpinBox* theWrappedObject) const +{ + return ( theWrappedObject->value()); +} + +int PythonQtWrapper_QSpinBox::valueFromText(QSpinBox* theWrappedObject, const QString& text) const +{ + return ( ((PythonQtPublicPromoter_QSpinBox*)theWrappedObject)->promoted_valueFromText(text)); +} + + + +PythonQtShell_QSplashScreen::~PythonQtShell_QSplashScreen() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QSplashScreen::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::actionEvent(arg__1); +} +void PythonQtShell_QSplashScreen::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::changeEvent(arg__1); +} +void PythonQtShell_QSplashScreen::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::childEvent(arg__1); +} +void PythonQtShell_QSplashScreen::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::closeEvent(arg__1); +} +void PythonQtShell_QSplashScreen::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::contextMenuEvent(arg__1); +} +void PythonQtShell_QSplashScreen::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::customEvent(arg__1); +} +int PythonQtShell_QSplashScreen::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplashScreen::devType(); +} +void PythonQtShell_QSplashScreen::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::dragEnterEvent(arg__1); +} +void PythonQtShell_QSplashScreen::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::dragLeaveEvent(arg__1); +} +void PythonQtShell_QSplashScreen::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::dragMoveEvent(arg__1); +} +void PythonQtShell_QSplashScreen::drawContents(QPainter* painter) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawContents"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::drawContents(painter); +} +void PythonQtShell_QSplashScreen::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::dropEvent(arg__1); +} +void PythonQtShell_QSplashScreen::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::enterEvent(arg__1); +} +bool PythonQtShell_QSplashScreen::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplashScreen::event(e); +} +bool PythonQtShell_QSplashScreen::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplashScreen::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QSplashScreen::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::focusInEvent(arg__1); +} +bool PythonQtShell_QSplashScreen::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplashScreen::focusNextPrevChild(next); +} +void PythonQtShell_QSplashScreen::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::focusOutEvent(arg__1); +} +bool PythonQtShell_QSplashScreen::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplashScreen::hasHeightForWidth(); +} +int PythonQtShell_QSplashScreen::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplashScreen::heightForWidth(arg__1); +} +void PythonQtShell_QSplashScreen::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::hideEvent(arg__1); +} +void PythonQtShell_QSplashScreen::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::initPainter(painter); +} +void PythonQtShell_QSplashScreen::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QSplashScreen::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplashScreen::inputMethodQuery(arg__1); +} +void PythonQtShell_QSplashScreen::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::keyPressEvent(arg__1); +} +void PythonQtShell_QSplashScreen::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::keyReleaseEvent(arg__1); +} +void PythonQtShell_QSplashScreen::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::leaveEvent(arg__1); +} +int PythonQtShell_QSplashScreen::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplashScreen::metric(arg__1); +} +QSize PythonQtShell_QSplashScreen::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplashScreen::minimumSizeHint(); +} +void PythonQtShell_QSplashScreen::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QSplashScreen::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::mouseMoveEvent(arg__1); +} +void PythonQtShell_QSplashScreen::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::mousePressEvent(arg__1); +} +void PythonQtShell_QSplashScreen::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QSplashScreen::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::moveEvent(arg__1); +} +bool PythonQtShell_QSplashScreen::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplashScreen::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QSplashScreen::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplashScreen::paintEngine(); +} +void PythonQtShell_QSplashScreen::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QSplashScreen::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplashScreen::redirected(offset); +} +void PythonQtShell_QSplashScreen::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QSplashScreen::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplashScreen::sharedPainter(); +} +void PythonQtShell_QSplashScreen::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::showEvent(arg__1); +} +QSize PythonQtShell_QSplashScreen::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplashScreen::sizeHint(); +} +void PythonQtShell_QSplashScreen::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::tabletEvent(arg__1); +} +void PythonQtShell_QSplashScreen::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::timerEvent(arg__1); +} +void PythonQtShell_QSplashScreen::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplashScreen::wheelEvent(arg__1); +} +QSplashScreen* PythonQtWrapper_QSplashScreen::new_QSplashScreen(QWidget* parent, const QPixmap& pixmap, Qt::WindowFlags f) +{ +return new PythonQtShell_QSplashScreen(parent, pixmap, f); } + +QSplashScreen* PythonQtWrapper_QSplashScreen::new_QSplashScreen(const QPixmap& pixmap, Qt::WindowFlags f) +{ +return new PythonQtShell_QSplashScreen(pixmap, f); } + +void PythonQtWrapper_QSplashScreen::drawContents(QSplashScreen* theWrappedObject, QPainter* painter) +{ + ( ((PythonQtPublicPromoter_QSplashScreen*)theWrappedObject)->promoted_drawContents(painter)); +} + +bool PythonQtWrapper_QSplashScreen::event(QSplashScreen* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QSplashScreen*)theWrappedObject)->promoted_event(e)); +} + +void PythonQtWrapper_QSplashScreen::finish(QSplashScreen* theWrappedObject, QWidget* w) +{ + ( theWrappedObject->finish(w)); +} + +void PythonQtWrapper_QSplashScreen::mousePressEvent(QSplashScreen* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QSplashScreen*)theWrappedObject)->promoted_mousePressEvent(arg__1)); +} + +const QPixmap PythonQtWrapper_QSplashScreen::pixmap(QSplashScreen* theWrappedObject) const +{ + return ( theWrappedObject->pixmap()); +} + +void PythonQtWrapper_QSplashScreen::setPixmap(QSplashScreen* theWrappedObject, const QPixmap& pixmap) +{ + ( theWrappedObject->setPixmap(pixmap)); +} + + + +PythonQtShell_QSplitter::~PythonQtShell_QSplitter() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QSplitter::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::actionEvent(arg__1); +} +void PythonQtShell_QSplitter::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::changeEvent(arg__1); +} +void PythonQtShell_QSplitter::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::childEvent(arg__1); +} +void PythonQtShell_QSplitter::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::closeEvent(arg__1); +} +void PythonQtShell_QSplitter::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::contextMenuEvent(arg__1); +} +QSplitterHandle* PythonQtShell_QSplitter::createHandle() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createHandle"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSplitterHandle*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSplitterHandle* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createHandle", methodInfo, result); + } else { + returnValue = *((QSplitterHandle**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitter::createHandle(); +} +void PythonQtShell_QSplitter::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::customEvent(arg__1); +} +int PythonQtShell_QSplitter::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitter::devType(); +} +void PythonQtShell_QSplitter::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::dragEnterEvent(arg__1); +} +void PythonQtShell_QSplitter::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::dragLeaveEvent(arg__1); +} +void PythonQtShell_QSplitter::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::dragMoveEvent(arg__1); +} +void PythonQtShell_QSplitter::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::dropEvent(arg__1); +} +void PythonQtShell_QSplitter::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::enterEvent(arg__1); +} +bool PythonQtShell_QSplitter::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitter::event(arg__1); +} +bool PythonQtShell_QSplitter::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitter::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QSplitter::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::focusInEvent(arg__1); +} +bool PythonQtShell_QSplitter::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitter::focusNextPrevChild(next); +} +void PythonQtShell_QSplitter::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::focusOutEvent(arg__1); +} +bool PythonQtShell_QSplitter::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitter::hasHeightForWidth(); +} +int PythonQtShell_QSplitter::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitter::heightForWidth(arg__1); +} +void PythonQtShell_QSplitter::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::hideEvent(arg__1); +} +void PythonQtShell_QSplitter::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::initPainter(painter); +} +void PythonQtShell_QSplitter::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QSplitter::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitter::inputMethodQuery(arg__1); +} +void PythonQtShell_QSplitter::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::keyPressEvent(arg__1); +} +void PythonQtShell_QSplitter::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::keyReleaseEvent(arg__1); +} +void PythonQtShell_QSplitter::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::leaveEvent(arg__1); +} +int PythonQtShell_QSplitter::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitter::metric(arg__1); +} +void PythonQtShell_QSplitter::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QSplitter::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::mouseMoveEvent(arg__1); +} +void PythonQtShell_QSplitter::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::mousePressEvent(arg__1); +} +void PythonQtShell_QSplitter::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QSplitter::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::moveEvent(arg__1); +} +bool PythonQtShell_QSplitter::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitter::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QSplitter::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitter::paintEngine(); +} +void PythonQtShell_QSplitter::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QSplitter::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitter::redirected(offset); +} +void PythonQtShell_QSplitter::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QSplitter::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitter::sharedPainter(); +} +void PythonQtShell_QSplitter::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::showEvent(arg__1); +} +void PythonQtShell_QSplitter::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::tabletEvent(arg__1); +} +void PythonQtShell_QSplitter::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::timerEvent(arg__1); +} +void PythonQtShell_QSplitter::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitter::wheelEvent(arg__1); +} +QSplitter* PythonQtWrapper_QSplitter::new_QSplitter(QWidget* parent) +{ +return new PythonQtShell_QSplitter(parent); } + +QSplitter* PythonQtWrapper_QSplitter::new_QSplitter(Qt::Orientation arg__1, QWidget* parent) +{ +return new PythonQtShell_QSplitter(arg__1, parent); } + +void PythonQtWrapper_QSplitter::addWidget(QSplitter* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->addWidget(widget)); +} + +void PythonQtWrapper_QSplitter::changeEvent(QSplitter* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QSplitter*)theWrappedObject)->promoted_changeEvent(arg__1)); +} + +void PythonQtWrapper_QSplitter::childEvent(QSplitter* theWrappedObject, QChildEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QSplitter*)theWrappedObject)->promoted_childEvent(arg__1)); +} + +bool PythonQtWrapper_QSplitter::childrenCollapsible(QSplitter* theWrappedObject) const +{ + return ( theWrappedObject->childrenCollapsible()); +} + +int PythonQtWrapper_QSplitter::count(QSplitter* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +QSplitterHandle* PythonQtWrapper_QSplitter::createHandle(QSplitter* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QSplitter*)theWrappedObject)->promoted_createHandle()); +} + +bool PythonQtWrapper_QSplitter::event(QSplitter* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QSplitter*)theWrappedObject)->promoted_event(arg__1)); +} + +void PythonQtWrapper_QSplitter::getRange(QSplitter* theWrappedObject, int index, int* arg__2, int* arg__3) const +{ + ( theWrappedObject->getRange(index, arg__2, arg__3)); +} + +QSplitterHandle* PythonQtWrapper_QSplitter::handle(QSplitter* theWrappedObject, int index) const +{ + return ( theWrappedObject->handle(index)); +} + +int PythonQtWrapper_QSplitter::handleWidth(QSplitter* theWrappedObject) const +{ + return ( theWrappedObject->handleWidth()); +} + +int PythonQtWrapper_QSplitter::indexOf(QSplitter* theWrappedObject, QWidget* w) const +{ + return ( theWrappedObject->indexOf(w)); +} + +void PythonQtWrapper_QSplitter::insertWidget(QSplitter* theWrappedObject, int index, QWidget* widget) +{ + ( theWrappedObject->insertWidget(index, widget)); +} + +bool PythonQtWrapper_QSplitter::isCollapsible(QSplitter* theWrappedObject, int index) const +{ + return ( theWrappedObject->isCollapsible(index)); +} + +QSize PythonQtWrapper_QSplitter::minimumSizeHint(QSplitter* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +bool PythonQtWrapper_QSplitter::opaqueResize(QSplitter* theWrappedObject) const +{ + return ( theWrappedObject->opaqueResize()); +} + +void PythonQtWrapper_QSplitter::writeTo(QSplitter* theWrappedObject, QTextStream& arg__1) +{ + arg__1 << (*theWrappedObject); +} + +void PythonQtWrapper_QSplitter::readFrom(QSplitter* theWrappedObject, QTextStream& arg__1) +{ + arg__1 >> (*theWrappedObject); +} + +Qt::Orientation PythonQtWrapper_QSplitter::orientation(QSplitter* theWrappedObject) const +{ + return ( theWrappedObject->orientation()); +} + +void PythonQtWrapper_QSplitter::refresh(QSplitter* theWrappedObject) +{ + ( theWrappedObject->refresh()); +} + +void PythonQtWrapper_QSplitter::resizeEvent(QSplitter* theWrappedObject, QResizeEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QSplitter*)theWrappedObject)->promoted_resizeEvent(arg__1)); +} + +bool PythonQtWrapper_QSplitter::restoreState(QSplitter* theWrappedObject, const QByteArray& state) +{ + return ( theWrappedObject->restoreState(state)); +} + +QByteArray PythonQtWrapper_QSplitter::saveState(QSplitter* theWrappedObject) const +{ + return ( theWrappedObject->saveState()); +} + +void PythonQtWrapper_QSplitter::setChildrenCollapsible(QSplitter* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setChildrenCollapsible(arg__1)); +} + +void PythonQtWrapper_QSplitter::setCollapsible(QSplitter* theWrappedObject, int index, bool arg__2) +{ + ( theWrappedObject->setCollapsible(index, arg__2)); +} + +void PythonQtWrapper_QSplitter::setHandleWidth(QSplitter* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setHandleWidth(arg__1)); +} + +void PythonQtWrapper_QSplitter::setOpaqueResize(QSplitter* theWrappedObject, bool opaque) +{ + ( theWrappedObject->setOpaqueResize(opaque)); +} + +void PythonQtWrapper_QSplitter::setOrientation(QSplitter* theWrappedObject, Qt::Orientation arg__1) +{ + ( theWrappedObject->setOrientation(arg__1)); +} + +void PythonQtWrapper_QSplitter::setSizes(QSplitter* theWrappedObject, const QList& list) +{ + ( theWrappedObject->setSizes(list)); +} + +void PythonQtWrapper_QSplitter::setStretchFactor(QSplitter* theWrappedObject, int index, int stretch) +{ + ( theWrappedObject->setStretchFactor(index, stretch)); +} + +QSize PythonQtWrapper_QSplitter::sizeHint(QSplitter* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +QList PythonQtWrapper_QSplitter::sizes(QSplitter* theWrappedObject) const +{ + return ( theWrappedObject->sizes()); +} + +QWidget* PythonQtWrapper_QSplitter::widget(QSplitter* theWrappedObject, int index) const +{ + return ( theWrappedObject->widget(index)); +} + + + +PythonQtShell_QSplitterHandle::~PythonQtShell_QSplitterHandle() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QSplitterHandle::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::actionEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::changeEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::childEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::closeEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::contextMenuEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::customEvent(arg__1); +} +int PythonQtShell_QSplitterHandle::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitterHandle::devType(); +} +void PythonQtShell_QSplitterHandle::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::dragEnterEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::dragLeaveEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::dragMoveEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::dropEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::enterEvent(arg__1); +} +bool PythonQtShell_QSplitterHandle::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitterHandle::event(arg__1); +} +bool PythonQtShell_QSplitterHandle::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitterHandle::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QSplitterHandle::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::focusInEvent(arg__1); +} +bool PythonQtShell_QSplitterHandle::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitterHandle::focusNextPrevChild(next); +} +void PythonQtShell_QSplitterHandle::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::focusOutEvent(arg__1); +} +bool PythonQtShell_QSplitterHandle::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitterHandle::hasHeightForWidth(); +} +int PythonQtShell_QSplitterHandle::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitterHandle::heightForWidth(arg__1); +} +void PythonQtShell_QSplitterHandle::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::hideEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::initPainter(painter); +} +void PythonQtShell_QSplitterHandle::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QSplitterHandle::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitterHandle::inputMethodQuery(arg__1); +} +void PythonQtShell_QSplitterHandle::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::keyPressEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::keyReleaseEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::leaveEvent(arg__1); +} +int PythonQtShell_QSplitterHandle::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitterHandle::metric(arg__1); +} +QSize PythonQtShell_QSplitterHandle::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitterHandle::minimumSizeHint(); +} +void PythonQtShell_QSplitterHandle::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::mouseMoveEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::mousePressEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::moveEvent(arg__1); +} +bool PythonQtShell_QSplitterHandle::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitterHandle::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QSplitterHandle::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitterHandle::paintEngine(); +} +void PythonQtShell_QSplitterHandle::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QSplitterHandle::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitterHandle::redirected(offset); +} +void PythonQtShell_QSplitterHandle::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QSplitterHandle::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSplitterHandle::sharedPainter(); +} +void PythonQtShell_QSplitterHandle::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::showEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::tabletEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::timerEvent(arg__1); +} +void PythonQtShell_QSplitterHandle::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSplitterHandle::wheelEvent(arg__1); +} +QSplitterHandle* PythonQtWrapper_QSplitterHandle::new_QSplitterHandle(Qt::Orientation o, QSplitter* parent) +{ +return new PythonQtShell_QSplitterHandle(o, parent); } + +bool PythonQtWrapper_QSplitterHandle::event(QSplitterHandle* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QSplitterHandle*)theWrappedObject)->promoted_event(arg__1)); +} + +void PythonQtWrapper_QSplitterHandle::mouseMoveEvent(QSplitterHandle* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QSplitterHandle*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); +} + +void PythonQtWrapper_QSplitterHandle::mousePressEvent(QSplitterHandle* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QSplitterHandle*)theWrappedObject)->promoted_mousePressEvent(arg__1)); +} + +void PythonQtWrapper_QSplitterHandle::mouseReleaseEvent(QSplitterHandle* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QSplitterHandle*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); +} + +bool PythonQtWrapper_QSplitterHandle::opaqueResize(QSplitterHandle* theWrappedObject) const +{ + return ( theWrappedObject->opaqueResize()); +} + +Qt::Orientation PythonQtWrapper_QSplitterHandle::orientation(QSplitterHandle* theWrappedObject) const +{ + return ( theWrappedObject->orientation()); +} + +void PythonQtWrapper_QSplitterHandle::paintEvent(QSplitterHandle* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QSplitterHandle*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +void PythonQtWrapper_QSplitterHandle::resizeEvent(QSplitterHandle* theWrappedObject, QResizeEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QSplitterHandle*)theWrappedObject)->promoted_resizeEvent(arg__1)); +} + +void PythonQtWrapper_QSplitterHandle::setOrientation(QSplitterHandle* theWrappedObject, Qt::Orientation o) +{ + ( theWrappedObject->setOrientation(o)); +} + +QSize PythonQtWrapper_QSplitterHandle::sizeHint(QSplitterHandle* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +QSplitter* PythonQtWrapper_QSplitterHandle::splitter(QSplitterHandle* theWrappedObject) const +{ + return ( theWrappedObject->splitter()); +} + + + +PythonQtShell_QStackedLayout::~PythonQtShell_QStackedLayout() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QStackedLayout::addItem(QLayoutItem* item) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "addItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QLayoutItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&item}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedLayout::addItem(item); +} +void PythonQtShell_QStackedLayout::childEvent(QChildEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedLayout::childEvent(e); +} +QSizePolicy::ControlTypes PythonQtShell_QStackedLayout::controlTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "controlTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSizePolicy::ControlTypes"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSizePolicy::ControlTypes returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("controlTypes", methodInfo, result); + } else { + returnValue = *((QSizePolicy::ControlTypes*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedLayout::controlTypes(); +} +int PythonQtShell_QStackedLayout::count() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedLayout::count(); +} +void PythonQtShell_QStackedLayout::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedLayout::customEvent(arg__1); +} +bool PythonQtShell_QStackedLayout::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedLayout::event(arg__1); +} +bool PythonQtShell_QStackedLayout::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedLayout::eventFilter(arg__1, arg__2); +} +Qt::Orientations PythonQtShell_QStackedLayout::expandingDirections() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::Orientations"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::Orientations returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); + } else { + returnValue = *((Qt::Orientations*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedLayout::expandingDirections(); +} +QRect PythonQtShell_QStackedLayout::geometry() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QRect returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedLayout::geometry(); +} +int PythonQtShell_QStackedLayout::indexOf(QWidget* arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOf"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexOf", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedLayout::indexOf(arg__1); +} +void PythonQtShell_QStackedLayout::invalidate() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedLayout::invalidate(); +} +bool PythonQtShell_QStackedLayout::isEmpty() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedLayout::isEmpty(); +} +QLayoutItem* PythonQtShell_QStackedLayout::itemAt(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); + } else { + returnValue = *((QLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedLayout::itemAt(arg__1); +} +QLayout* PythonQtShell_QStackedLayout::layout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayout*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QLayout* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); + } else { + returnValue = *((QLayout**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedLayout::layout(); +} +QSize PythonQtShell_QStackedLayout::maximumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedLayout::maximumSize(); +} +QSize PythonQtShell_QStackedLayout::minimumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedLayout::minimumSize(); +} +void PythonQtShell_QStackedLayout::setGeometry(const QRect& rect) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&rect}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedLayout::setGeometry(rect); +} +QLayoutItem* PythonQtShell_QStackedLayout::takeAt(int arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "takeAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("takeAt", methodInfo, result); + } else { + returnValue = *((QLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedLayout::takeAt(arg__1); +} +void PythonQtShell_QStackedLayout::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedLayout::timerEvent(arg__1); +} +QStackedLayout* PythonQtWrapper_QStackedLayout::new_QStackedLayout() +{ +return new PythonQtShell_QStackedLayout(); } + +QStackedLayout* PythonQtWrapper_QStackedLayout::new_QStackedLayout(QLayout* parentLayout) +{ +return new PythonQtShell_QStackedLayout(parentLayout); } + +QStackedLayout* PythonQtWrapper_QStackedLayout::new_QStackedLayout(QWidget* parent) +{ +return new PythonQtShell_QStackedLayout(parent); } + +void PythonQtWrapper_QStackedLayout::addItem(QStackedLayout* theWrappedObject, QLayoutItem* item) +{ + ( ((PythonQtPublicPromoter_QStackedLayout*)theWrappedObject)->promoted_addItem(item)); +} + +int PythonQtWrapper_QStackedLayout::addWidget(QStackedLayout* theWrappedObject, QWidget* w) +{ + return ( theWrappedObject->addWidget(w)); +} + +int PythonQtWrapper_QStackedLayout::count(QStackedLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QStackedLayout*)theWrappedObject)->promoted_count()); +} + +int PythonQtWrapper_QStackedLayout::currentIndex(QStackedLayout* theWrappedObject) const +{ + return ( theWrappedObject->currentIndex()); +} + +QWidget* PythonQtWrapper_QStackedLayout::currentWidget(QStackedLayout* theWrappedObject) const +{ + return ( theWrappedObject->currentWidget()); +} + +bool PythonQtWrapper_QStackedLayout::hasHeightForWidth(QStackedLayout* theWrappedObject) const +{ + return ( theWrappedObject->hasHeightForWidth()); +} + +int PythonQtWrapper_QStackedLayout::heightForWidth(QStackedLayout* theWrappedObject, int width) const +{ + return ( theWrappedObject->heightForWidth(width)); +} + +int PythonQtWrapper_QStackedLayout::insertWidget(QStackedLayout* theWrappedObject, int index, QWidget* w) +{ + return ( theWrappedObject->insertWidget(index, w)); +} + +QLayoutItem* PythonQtWrapper_QStackedLayout::itemAt(QStackedLayout* theWrappedObject, int arg__1) const +{ + return ( ((PythonQtPublicPromoter_QStackedLayout*)theWrappedObject)->promoted_itemAt(arg__1)); +} + +QSize PythonQtWrapper_QStackedLayout::minimumSize(QStackedLayout* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QStackedLayout*)theWrappedObject)->promoted_minimumSize()); +} + +void PythonQtWrapper_QStackedLayout::setGeometry(QStackedLayout* theWrappedObject, const QRect& rect) +{ + ( ((PythonQtPublicPromoter_QStackedLayout*)theWrappedObject)->promoted_setGeometry(rect)); +} + +void PythonQtWrapper_QStackedLayout::setStackingMode(QStackedLayout* theWrappedObject, QStackedLayout::StackingMode stackingMode) +{ + ( theWrappedObject->setStackingMode(stackingMode)); +} + +QSize PythonQtWrapper_QStackedLayout::sizeHint(QStackedLayout* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +QStackedLayout::StackingMode PythonQtWrapper_QStackedLayout::stackingMode(QStackedLayout* theWrappedObject) const +{ + return ( theWrappedObject->stackingMode()); +} + +QLayoutItem* PythonQtWrapper_QStackedLayout::takeAt(QStackedLayout* theWrappedObject, int arg__1) +{ + return ( ((PythonQtPublicPromoter_QStackedLayout*)theWrappedObject)->promoted_takeAt(arg__1)); +} + +QWidget* PythonQtWrapper_QStackedLayout::widget(QStackedLayout* theWrappedObject) +{ + return ( theWrappedObject->widget()); +} + +QWidget* PythonQtWrapper_QStackedLayout::widget(QStackedLayout* theWrappedObject, int arg__1) const +{ + return ( theWrappedObject->widget(arg__1)); +} + + + +PythonQtShell_QStackedWidget::~PythonQtShell_QStackedWidget() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QStackedWidget::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::actionEvent(arg__1); +} +void PythonQtShell_QStackedWidget::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::changeEvent(arg__1); +} +void PythonQtShell_QStackedWidget::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::childEvent(arg__1); +} +void PythonQtShell_QStackedWidget::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::closeEvent(arg__1); +} +void PythonQtShell_QStackedWidget::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::contextMenuEvent(arg__1); +} +void PythonQtShell_QStackedWidget::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::customEvent(arg__1); +} +int PythonQtShell_QStackedWidget::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedWidget::devType(); +} +void PythonQtShell_QStackedWidget::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::dragEnterEvent(arg__1); +} +void PythonQtShell_QStackedWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::dragLeaveEvent(arg__1); +} +void PythonQtShell_QStackedWidget::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::dragMoveEvent(arg__1); +} +void PythonQtShell_QStackedWidget::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::dropEvent(arg__1); +} +void PythonQtShell_QStackedWidget::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::enterEvent(arg__1); +} +bool PythonQtShell_QStackedWidget::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedWidget::event(e); +} +bool PythonQtShell_QStackedWidget::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedWidget::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QStackedWidget::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::focusInEvent(arg__1); +} +bool PythonQtShell_QStackedWidget::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedWidget::focusNextPrevChild(next); +} +void PythonQtShell_QStackedWidget::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::focusOutEvent(arg__1); +} +bool PythonQtShell_QStackedWidget::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedWidget::hasHeightForWidth(); +} +int PythonQtShell_QStackedWidget::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedWidget::heightForWidth(arg__1); +} +void PythonQtShell_QStackedWidget::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::hideEvent(arg__1); +} +void PythonQtShell_QStackedWidget::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::initPainter(painter); +} +void PythonQtShell_QStackedWidget::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QStackedWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedWidget::inputMethodQuery(arg__1); +} +void PythonQtShell_QStackedWidget::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::keyPressEvent(arg__1); +} +void PythonQtShell_QStackedWidget::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::keyReleaseEvent(arg__1); +} +void PythonQtShell_QStackedWidget::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::leaveEvent(arg__1); +} +int PythonQtShell_QStackedWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedWidget::metric(arg__1); +} +QSize PythonQtShell_QStackedWidget::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedWidget::minimumSizeHint(); +} +void PythonQtShell_QStackedWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QStackedWidget::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::mouseMoveEvent(arg__1); +} +void PythonQtShell_QStackedWidget::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::mousePressEvent(arg__1); +} +void PythonQtShell_QStackedWidget::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QStackedWidget::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::moveEvent(arg__1); +} +bool PythonQtShell_QStackedWidget::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedWidget::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QStackedWidget::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedWidget::paintEngine(); +} +void PythonQtShell_QStackedWidget::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QStackedWidget::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedWidget::redirected(offset); +} +void PythonQtShell_QStackedWidget::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QStackedWidget::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStackedWidget::sharedPainter(); +} +void PythonQtShell_QStackedWidget::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::showEvent(arg__1); +} +void PythonQtShell_QStackedWidget::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::tabletEvent(arg__1); +} +void PythonQtShell_QStackedWidget::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::timerEvent(arg__1); +} +void PythonQtShell_QStackedWidget::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStackedWidget::wheelEvent(arg__1); +} +QStackedWidget* PythonQtWrapper_QStackedWidget::new_QStackedWidget(QWidget* parent) +{ +return new PythonQtShell_QStackedWidget(parent); } + +int PythonQtWrapper_QStackedWidget::addWidget(QStackedWidget* theWrappedObject, QWidget* w) +{ + return ( theWrappedObject->addWidget(w)); +} + +int PythonQtWrapper_QStackedWidget::count(QStackedWidget* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +int PythonQtWrapper_QStackedWidget::currentIndex(QStackedWidget* theWrappedObject) const +{ + return ( theWrappedObject->currentIndex()); +} + +QWidget* PythonQtWrapper_QStackedWidget::currentWidget(QStackedWidget* theWrappedObject) const +{ + return ( theWrappedObject->currentWidget()); +} + +bool PythonQtWrapper_QStackedWidget::event(QStackedWidget* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QStackedWidget*)theWrappedObject)->promoted_event(e)); +} + +int PythonQtWrapper_QStackedWidget::indexOf(QStackedWidget* theWrappedObject, QWidget* arg__1) const +{ + return ( theWrappedObject->indexOf(arg__1)); +} + +int PythonQtWrapper_QStackedWidget::insertWidget(QStackedWidget* theWrappedObject, int index, QWidget* w) +{ + return ( theWrappedObject->insertWidget(index, w)); +} + +void PythonQtWrapper_QStackedWidget::removeWidget(QStackedWidget* theWrappedObject, QWidget* w) +{ + ( theWrappedObject->removeWidget(w)); +} + +QWidget* PythonQtWrapper_QStackedWidget::widget(QStackedWidget* theWrappedObject, int arg__1) const +{ + return ( theWrappedObject->widget(arg__1)); +} + +#endif + +PythonQtShell_QStandardItem::~PythonQtShell_QStandardItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStandardItem* PythonQtShell_QStandardItem::clone() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clone"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStandardItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStandardItem* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("clone", methodInfo, result); + } else { + returnValue = *((QStandardItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItem::clone(); +} +QVariant PythonQtShell_QStandardItem::data(int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItem::data(role); +} +bool PythonQtShell_QStandardItem::__lt__(const QStandardItem& other) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "__lt__"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QStandardItem&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&other}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("__lt__", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItem::operator<(other); +} +void PythonQtShell_QStandardItem::read(QDataStream& in) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "read"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDataStream&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&in}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStandardItem::read(in); +} +void PythonQtShell_QStandardItem::setData(const QVariant& value, int role) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QVariant&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&value, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStandardItem::setData(value, role); +} +int PythonQtShell_QStandardItem::type() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItem::type(); +} +void PythonQtShell_QStandardItem::write(QDataStream& out) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "write"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDataStream&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&out}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStandardItem::write(out); +} +QStandardItem* PythonQtWrapper_QStandardItem::new_QStandardItem() +{ +return new PythonQtShell_QStandardItem(); } + +QStandardItem* PythonQtWrapper_QStandardItem::new_QStandardItem(const QIcon& icon, const QString& text) +{ +return new PythonQtShell_QStandardItem(icon, text); } + +QStandardItem* PythonQtWrapper_QStandardItem::new_QStandardItem(const QString& text) +{ +return new PythonQtShell_QStandardItem(text); } + +QStandardItem* PythonQtWrapper_QStandardItem::new_QStandardItem(int rows, int columns) +{ +return new PythonQtShell_QStandardItem(rows, columns); } + +QString PythonQtWrapper_QStandardItem::accessibleDescription(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->accessibleDescription()); +} + +QString PythonQtWrapper_QStandardItem::accessibleText(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->accessibleText()); +} + +void PythonQtWrapper_QStandardItem::appendColumn(QStandardItem* theWrappedObject, const QList& items) +{ + ( theWrappedObject->appendColumn(items)); +} + +void PythonQtWrapper_QStandardItem::appendRow(QStandardItem* theWrappedObject, QStandardItem* item) +{ + ( theWrappedObject->appendRow(item)); +} + +void PythonQtWrapper_QStandardItem::appendRow(QStandardItem* theWrappedObject, const QList& items) +{ + ( theWrappedObject->appendRow(items)); +} + +void PythonQtWrapper_QStandardItem::appendRows(QStandardItem* theWrappedObject, const QList& items) +{ + ( theWrappedObject->appendRows(items)); +} + +QBrush PythonQtWrapper_QStandardItem::background(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->background()); +} + +Qt::CheckState PythonQtWrapper_QStandardItem::checkState(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->checkState()); +} + +QStandardItem* PythonQtWrapper_QStandardItem::child(QStandardItem* theWrappedObject, int row, int column) const +{ + return ( theWrappedObject->child(row, column)); +} + +QStandardItem* PythonQtWrapper_QStandardItem::clone(QStandardItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QStandardItem*)theWrappedObject)->promoted_clone()); +} + +int PythonQtWrapper_QStandardItem::column(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->column()); +} + +int PythonQtWrapper_QStandardItem::columnCount(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->columnCount()); +} + +QVariant PythonQtWrapper_QStandardItem::data(QStandardItem* theWrappedObject, int role) const +{ + return ( ((PythonQtPublicPromoter_QStandardItem*)theWrappedObject)->promoted_data(role)); +} + +Qt::ItemFlags PythonQtWrapper_QStandardItem::flags(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->flags()); +} + +QFont PythonQtWrapper_QStandardItem::font(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->font()); +} + +QBrush PythonQtWrapper_QStandardItem::foreground(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->foreground()); +} + +bool PythonQtWrapper_QStandardItem::hasChildren(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->hasChildren()); +} + +QIcon PythonQtWrapper_QStandardItem::icon(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->icon()); +} + +QModelIndex PythonQtWrapper_QStandardItem::index(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->index()); +} + +void PythonQtWrapper_QStandardItem::insertColumn(QStandardItem* theWrappedObject, int column, const QList& items) +{ + ( theWrappedObject->insertColumn(column, items)); +} + +void PythonQtWrapper_QStandardItem::insertColumns(QStandardItem* theWrappedObject, int column, int count) +{ + ( theWrappedObject->insertColumns(column, count)); +} + +void PythonQtWrapper_QStandardItem::insertRow(QStandardItem* theWrappedObject, int row, QStandardItem* item) +{ + ( theWrappedObject->insertRow(row, item)); +} + +void PythonQtWrapper_QStandardItem::insertRow(QStandardItem* theWrappedObject, int row, const QList& items) +{ + ( theWrappedObject->insertRow(row, items)); +} + +void PythonQtWrapper_QStandardItem::insertRows(QStandardItem* theWrappedObject, int row, const QList& items) +{ + ( theWrappedObject->insertRows(row, items)); +} + +void PythonQtWrapper_QStandardItem::insertRows(QStandardItem* theWrappedObject, int row, int count) +{ + ( theWrappedObject->insertRows(row, count)); +} + +bool PythonQtWrapper_QStandardItem::isCheckable(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->isCheckable()); +} + +bool PythonQtWrapper_QStandardItem::isDragEnabled(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->isDragEnabled()); +} + +bool PythonQtWrapper_QStandardItem::isDropEnabled(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->isDropEnabled()); +} + +bool PythonQtWrapper_QStandardItem::isEditable(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->isEditable()); +} + +bool PythonQtWrapper_QStandardItem::isEnabled(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->isEnabled()); +} + +bool PythonQtWrapper_QStandardItem::isSelectable(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->isSelectable()); +} + +bool PythonQtWrapper_QStandardItem::isTristate(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->isTristate()); +} + +QStandardItemModel* PythonQtWrapper_QStandardItem::model(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->model()); +} + +QStandardItem* PythonQtWrapper_QStandardItem::parent(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->parent()); +} + +void PythonQtWrapper_QStandardItem::removeColumn(QStandardItem* theWrappedObject, int column) +{ + ( theWrappedObject->removeColumn(column)); +} + +void PythonQtWrapper_QStandardItem::removeColumns(QStandardItem* theWrappedObject, int column, int count) +{ + ( theWrappedObject->removeColumns(column, count)); +} + +void PythonQtWrapper_QStandardItem::removeRow(QStandardItem* theWrappedObject, int row) +{ + ( theWrappedObject->removeRow(row)); +} + +void PythonQtWrapper_QStandardItem::removeRows(QStandardItem* theWrappedObject, int row, int count) +{ + ( theWrappedObject->removeRows(row, count)); +} + +int PythonQtWrapper_QStandardItem::row(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->row()); +} + +int PythonQtWrapper_QStandardItem::rowCount(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->rowCount()); +} + +void PythonQtWrapper_QStandardItem::setAccessibleDescription(QStandardItem* theWrappedObject, const QString& accessibleDescription) +{ + ( theWrappedObject->setAccessibleDescription(accessibleDescription)); +} + +void PythonQtWrapper_QStandardItem::setAccessibleText(QStandardItem* theWrappedObject, const QString& accessibleText) +{ + ( theWrappedObject->setAccessibleText(accessibleText)); +} + +void PythonQtWrapper_QStandardItem::setBackground(QStandardItem* theWrappedObject, const QBrush& brush) +{ + ( theWrappedObject->setBackground(brush)); +} + +void PythonQtWrapper_QStandardItem::setCheckState(QStandardItem* theWrappedObject, Qt::CheckState checkState) +{ + ( theWrappedObject->setCheckState(checkState)); +} + +void PythonQtWrapper_QStandardItem::setCheckable(QStandardItem* theWrappedObject, bool checkable) +{ + ( theWrappedObject->setCheckable(checkable)); +} + +void PythonQtWrapper_QStandardItem::setChild(QStandardItem* theWrappedObject, int row, QStandardItem* item) +{ + ( theWrappedObject->setChild(row, item)); +} + +void PythonQtWrapper_QStandardItem::setChild(QStandardItem* theWrappedObject, int row, int column, QStandardItem* item) +{ + ( theWrappedObject->setChild(row, column, item)); +} + +void PythonQtWrapper_QStandardItem::setColumnCount(QStandardItem* theWrappedObject, int columns) +{ + ( theWrappedObject->setColumnCount(columns)); +} + +void PythonQtWrapper_QStandardItem::setData(QStandardItem* theWrappedObject, const QVariant& value, int role) +{ + ( ((PythonQtPublicPromoter_QStandardItem*)theWrappedObject)->promoted_setData(value, role)); +} + +void PythonQtWrapper_QStandardItem::setDragEnabled(QStandardItem* theWrappedObject, bool dragEnabled) +{ + ( theWrappedObject->setDragEnabled(dragEnabled)); +} + +void PythonQtWrapper_QStandardItem::setDropEnabled(QStandardItem* theWrappedObject, bool dropEnabled) +{ + ( theWrappedObject->setDropEnabled(dropEnabled)); +} + +void PythonQtWrapper_QStandardItem::setEditable(QStandardItem* theWrappedObject, bool editable) +{ + ( theWrappedObject->setEditable(editable)); +} + +void PythonQtWrapper_QStandardItem::setEnabled(QStandardItem* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setEnabled(enabled)); +} + +void PythonQtWrapper_QStandardItem::setFlags(QStandardItem* theWrappedObject, Qt::ItemFlags flags) +{ + ( theWrappedObject->setFlags(flags)); +} + +void PythonQtWrapper_QStandardItem::setFont(QStandardItem* theWrappedObject, const QFont& font) +{ + ( theWrappedObject->setFont(font)); +} + +void PythonQtWrapper_QStandardItem::setForeground(QStandardItem* theWrappedObject, const QBrush& brush) +{ + ( theWrappedObject->setForeground(brush)); +} + +void PythonQtWrapper_QStandardItem::setIcon(QStandardItem* theWrappedObject, const QIcon& icon) +{ + ( theWrappedObject->setIcon(icon)); +} + +void PythonQtWrapper_QStandardItem::setRowCount(QStandardItem* theWrappedObject, int rows) +{ + ( theWrappedObject->setRowCount(rows)); +} + +void PythonQtWrapper_QStandardItem::setSelectable(QStandardItem* theWrappedObject, bool selectable) +{ + ( theWrappedObject->setSelectable(selectable)); +} + +void PythonQtWrapper_QStandardItem::setSizeHint(QStandardItem* theWrappedObject, const QSize& sizeHint) +{ + ( theWrappedObject->setSizeHint(sizeHint)); +} + +void PythonQtWrapper_QStandardItem::setStatusTip(QStandardItem* theWrappedObject, const QString& statusTip) +{ + ( theWrappedObject->setStatusTip(statusTip)); +} + +void PythonQtWrapper_QStandardItem::setText(QStandardItem* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setText(text)); +} + +void PythonQtWrapper_QStandardItem::setTextAlignment(QStandardItem* theWrappedObject, Qt::Alignment textAlignment) +{ + ( theWrappedObject->setTextAlignment(textAlignment)); +} + +void PythonQtWrapper_QStandardItem::setToolTip(QStandardItem* theWrappedObject, const QString& toolTip) +{ + ( theWrappedObject->setToolTip(toolTip)); +} + +void PythonQtWrapper_QStandardItem::setTristate(QStandardItem* theWrappedObject, bool tristate) +{ + ( theWrappedObject->setTristate(tristate)); +} + +void PythonQtWrapper_QStandardItem::setWhatsThis(QStandardItem* theWrappedObject, const QString& whatsThis) +{ + ( theWrappedObject->setWhatsThis(whatsThis)); +} + +QSize PythonQtWrapper_QStandardItem::sizeHint(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +void PythonQtWrapper_QStandardItem::sortChildren(QStandardItem* theWrappedObject, int column, Qt::SortOrder order) +{ + ( theWrappedObject->sortChildren(column, order)); +} + +QString PythonQtWrapper_QStandardItem::statusTip(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->statusTip()); +} + +QStandardItem* PythonQtWrapper_QStandardItem::takeChild(QStandardItem* theWrappedObject, int row, int column) +{ + return ( theWrappedObject->takeChild(row, column)); +} + +QList PythonQtWrapper_QStandardItem::takeColumn(QStandardItem* theWrappedObject, int column) +{ + return ( theWrappedObject->takeColumn(column)); +} + +QList PythonQtWrapper_QStandardItem::takeRow(QStandardItem* theWrappedObject, int row) +{ + return ( theWrappedObject->takeRow(row)); +} + +QString PythonQtWrapper_QStandardItem::text(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + +Qt::Alignment PythonQtWrapper_QStandardItem::textAlignment(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->textAlignment()); +} + +QString PythonQtWrapper_QStandardItem::toolTip(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->toolTip()); +} + +int PythonQtWrapper_QStandardItem::type(QStandardItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QStandardItem*)theWrappedObject)->promoted_type()); +} + +QString PythonQtWrapper_QStandardItem::whatsThis(QStandardItem* theWrappedObject) const +{ + return ( theWrappedObject->whatsThis()); +} + + + +PythonQtShell_QStandardItemModel::~PythonQtShell_QStandardItemModel() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QModelIndex PythonQtShell_QStandardItemModel::buddy(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "buddy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("buddy", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::buddy(index); +} +bool PythonQtShell_QStandardItemModel::canDropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canDropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canDropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::canDropMimeData(data, action, row, column, parent); +} +bool PythonQtShell_QStandardItemModel::canFetchMore(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canFetchMore"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canFetchMore", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::canFetchMore(parent); +} +void PythonQtShell_QStandardItemModel::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStandardItemModel::childEvent(arg__1); +} +int PythonQtShell_QStandardItemModel::columnCount(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "columnCount"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("columnCount", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::columnCount(parent); +} +void PythonQtShell_QStandardItemModel::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStandardItemModel::customEvent(arg__1); +} +QVariant PythonQtShell_QStandardItemModel::data(const QModelIndex& index, int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::data(index, role); +} +bool PythonQtShell_QStandardItemModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::dropMimeData(data, action, row, column, parent); +} +bool PythonQtShell_QStandardItemModel::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::event(arg__1); +} +bool PythonQtShell_QStandardItemModel::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QStandardItemModel::fetchMore(const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchMore"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStandardItemModel::fetchMore(parent); +} +Qt::ItemFlags PythonQtShell_QStandardItemModel::flags(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "flags"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + Qt::ItemFlags returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("flags", methodInfo, result); + } else { + returnValue = *((Qt::ItemFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::flags(index); +} +bool PythonQtShell_QStandardItemModel::hasChildren(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasChildren"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasChildren", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::hasChildren(parent); +} +QVariant PythonQtShell_QStandardItemModel::headerData(int section, Qt::Orientation orientation, int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "headerData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "int" , "Qt::Orientation" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QVariant returnValue; + void* args[4] = {NULL, (void*)§ion, (void*)&orientation, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("headerData", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::headerData(section, orientation, role); +} +QModelIndex PythonQtShell_QStandardItemModel::index(int row, int column, const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "index"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QModelIndex returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("index", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::index(row, column, parent); +} +bool PythonQtShell_QStandardItemModel::insertColumns(int column, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::insertColumns(column, count, parent); +} +bool PythonQtShell_QStandardItemModel::insertRows(int row, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::insertRows(row, count, parent); +} +QMap PythonQtShell_QStandardItemModel::itemData(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMap" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMap returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemData", methodInfo, result); + } else { + returnValue = *((QMap*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::itemData(index); +} +QList PythonQtShell_QStandardItemModel::match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "match"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList" , "const QModelIndex&" , "int" , "const QVariant&" , "int" , "Qt::MatchFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + QList returnValue; + void* args[6] = {NULL, (void*)&start, (void*)&role, (void*)&value, (void*)&hits, (void*)&flags}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("match", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::match(start, role, value, hits, flags); +} +QMimeData* PythonQtShell_QStandardItemModel::mimeData(const QList& indexes) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMimeData*" , "const QList&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMimeData* returnValue; + void* args[2] = {NULL, (void*)&indexes}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); + } else { + returnValue = *((QMimeData**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::mimeData(indexes); +} +QStringList PythonQtShell_QStandardItemModel::mimeTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStringList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStringList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); + } else { + returnValue = *((QStringList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::mimeTypes(); +} +bool PythonQtShell_QStandardItemModel::moveColumns(const QModelIndex& sourceParent, int sourceColumn, int count, const QModelIndex& destinationParent, int destinationChild) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "int" , "int" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&sourceParent, (void*)&sourceColumn, (void*)&count, (void*)&destinationParent, (void*)&destinationChild}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("moveColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); +} +bool PythonQtShell_QStandardItemModel::moveRows(const QModelIndex& sourceParent, int sourceRow, int count, const QModelIndex& destinationParent, int destinationChild) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "int" , "int" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&sourceParent, (void*)&sourceRow, (void*)&count, (void*)&destinationParent, (void*)&destinationChild}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("moveRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); +} +QModelIndex PythonQtShell_QStandardItemModel::parent(const QModelIndex& child) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "parent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&child}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("parent", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::parent(child); +} +bool PythonQtShell_QStandardItemModel::removeColumns(int column, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("removeColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::removeColumns(column, count, parent); +} +bool PythonQtShell_QStandardItemModel::removeRows(int row, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("removeRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::removeRows(row, count, parent); +} +void PythonQtShell_QStandardItemModel::revert() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "revert"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStandardItemModel::revert(); +} +QHash PythonQtShell_QStandardItemModel::roleNames() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "roleNames"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QHash"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QHash returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("roleNames", methodInfo, result); + } else { + returnValue = *((QHash*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::roleNames(); +} +int PythonQtShell_QStandardItemModel::rowCount(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowCount"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("rowCount", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::rowCount(parent); +} +bool PythonQtShell_QStandardItemModel::setData(const QModelIndex& index, const QVariant& value, int role) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::setData(index, value, role); +} +bool PythonQtShell_QStandardItemModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setHeaderData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setHeaderData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::setHeaderData(section, orientation, value, role); +} +bool PythonQtShell_QStandardItemModel::setItemData(const QModelIndex& index, const QMap& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setItemData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setItemData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::setItemData(index, roles); +} +QModelIndex PythonQtShell_QStandardItemModel::sibling(int row, int column, const QModelIndex& idx) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sibling"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QModelIndex returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&idx}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sibling", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::sibling(row, column, idx); +} +void PythonQtShell_QStandardItemModel::sort(int column, Qt::SortOrder order) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sort"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "Qt::SortOrder"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&column, (void*)&order}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStandardItemModel::sort(column, order); +} +QSize PythonQtShell_QStandardItemModel::span(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "span"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QSize returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("span", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::span(index); +} +bool PythonQtShell_QStandardItemModel::submit() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "submit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("submit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::submit(); +} +Qt::DropActions PythonQtShell_QStandardItemModel::supportedDragActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDragActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDragActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::supportedDragActions(); +} +Qt::DropActions PythonQtShell_QStandardItemModel::supportedDropActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStandardItemModel::supportedDropActions(); +} +void PythonQtShell_QStandardItemModel::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStandardItemModel::timerEvent(arg__1); +} +QStandardItemModel* PythonQtWrapper_QStandardItemModel::new_QStandardItemModel(QObject* parent) +{ +return new PythonQtShell_QStandardItemModel(parent); } + +QStandardItemModel* PythonQtWrapper_QStandardItemModel::new_QStandardItemModel(int rows, int columns, QObject* parent) +{ +return new PythonQtShell_QStandardItemModel(rows, columns, parent); } + +void PythonQtWrapper_QStandardItemModel::appendColumn(QStandardItemModel* theWrappedObject, const QList& items) +{ + ( theWrappedObject->appendColumn(items)); +} + +void PythonQtWrapper_QStandardItemModel::appendRow(QStandardItemModel* theWrappedObject, QStandardItem* item) +{ + ( theWrappedObject->appendRow(item)); +} + +void PythonQtWrapper_QStandardItemModel::appendRow(QStandardItemModel* theWrappedObject, const QList& items) +{ + ( theWrappedObject->appendRow(items)); +} + +void PythonQtWrapper_QStandardItemModel::clear(QStandardItemModel* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +int PythonQtWrapper_QStandardItemModel::columnCount(QStandardItemModel* theWrappedObject, const QModelIndex& parent) const +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_columnCount(parent)); +} + +QVariant PythonQtWrapper_QStandardItemModel::data(QStandardItemModel* theWrappedObject, const QModelIndex& index, int role) const +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_data(index, role)); +} + +bool PythonQtWrapper_QStandardItemModel::dropMimeData(QStandardItemModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_dropMimeData(data, action, row, column, parent)); +} + +QList PythonQtWrapper_QStandardItemModel::findItems(QStandardItemModel* theWrappedObject, const QString& text, Qt::MatchFlags flags, int column) const +{ + return ( theWrappedObject->findItems(text, flags, column)); +} + +Qt::ItemFlags PythonQtWrapper_QStandardItemModel::flags(QStandardItemModel* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_flags(index)); +} + +bool PythonQtWrapper_QStandardItemModel::hasChildren(QStandardItemModel* theWrappedObject, const QModelIndex& parent) const +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_hasChildren(parent)); +} + +QVariant PythonQtWrapper_QStandardItemModel::headerData(QStandardItemModel* theWrappedObject, int section, Qt::Orientation orientation, int role) const +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_headerData(section, orientation, role)); +} + +QStandardItem* PythonQtWrapper_QStandardItemModel::horizontalHeaderItem(QStandardItemModel* theWrappedObject, int column) const +{ + return ( theWrappedObject->horizontalHeaderItem(column)); +} + +QModelIndex PythonQtWrapper_QStandardItemModel::index(QStandardItemModel* theWrappedObject, int row, int column, const QModelIndex& parent) const +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_index(row, column, parent)); +} + +QModelIndex PythonQtWrapper_QStandardItemModel::indexFromItem(QStandardItemModel* theWrappedObject, const QStandardItem* item) const +{ + return ( theWrappedObject->indexFromItem(item)); +} + +void PythonQtWrapper_QStandardItemModel::insertColumn(QStandardItemModel* theWrappedObject, int column, const QList& items) +{ + ( theWrappedObject->insertColumn(column, items)); +} + +bool PythonQtWrapper_QStandardItemModel::insertColumns(QStandardItemModel* theWrappedObject, int column, int count, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_insertColumns(column, count, parent)); +} + +void PythonQtWrapper_QStandardItemModel::insertRow(QStandardItemModel* theWrappedObject, int row, QStandardItem* item) +{ + ( theWrappedObject->insertRow(row, item)); +} + +void PythonQtWrapper_QStandardItemModel::insertRow(QStandardItemModel* theWrappedObject, int row, const QList& items) +{ + ( theWrappedObject->insertRow(row, items)); +} + +bool PythonQtWrapper_QStandardItemModel::insertRows(QStandardItemModel* theWrappedObject, int row, int count, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_insertRows(row, count, parent)); +} + +QStandardItem* PythonQtWrapper_QStandardItemModel::invisibleRootItem(QStandardItemModel* theWrappedObject) const +{ + return ( theWrappedObject->invisibleRootItem()); +} + +QStandardItem* PythonQtWrapper_QStandardItemModel::item(QStandardItemModel* theWrappedObject, int row, int column) const +{ + return ( theWrappedObject->item(row, column)); +} + +QMap PythonQtWrapper_QStandardItemModel::itemData(QStandardItemModel* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_itemData(index)); +} + +QStandardItem* PythonQtWrapper_QStandardItemModel::itemFromIndex(QStandardItemModel* theWrappedObject, const QModelIndex& index) const +{ + return ( theWrappedObject->itemFromIndex(index)); +} + +const QStandardItem* PythonQtWrapper_QStandardItemModel::itemPrototype(QStandardItemModel* theWrappedObject) const +{ + return ( theWrappedObject->itemPrototype()); +} + +QMimeData* PythonQtWrapper_QStandardItemModel::mimeData(QStandardItemModel* theWrappedObject, const QList& indexes) const +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_mimeData(indexes)); +} + +QStringList PythonQtWrapper_QStandardItemModel::mimeTypes(QStandardItemModel* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_mimeTypes()); +} + +QModelIndex PythonQtWrapper_QStandardItemModel::parent(QStandardItemModel* theWrappedObject, const QModelIndex& child) const +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_parent(child)); +} + +bool PythonQtWrapper_QStandardItemModel::removeColumns(QStandardItemModel* theWrappedObject, int column, int count, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_removeColumns(column, count, parent)); +} + +bool PythonQtWrapper_QStandardItemModel::removeRows(QStandardItemModel* theWrappedObject, int row, int count, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_removeRows(row, count, parent)); +} + +int PythonQtWrapper_QStandardItemModel::rowCount(QStandardItemModel* theWrappedObject, const QModelIndex& parent) const +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_rowCount(parent)); +} + +void PythonQtWrapper_QStandardItemModel::setColumnCount(QStandardItemModel* theWrappedObject, int columns) +{ + ( theWrappedObject->setColumnCount(columns)); +} + +bool PythonQtWrapper_QStandardItemModel::setData(QStandardItemModel* theWrappedObject, const QModelIndex& index, const QVariant& value, int role) +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_setData(index, value, role)); +} + +bool PythonQtWrapper_QStandardItemModel::setHeaderData(QStandardItemModel* theWrappedObject, int section, Qt::Orientation orientation, const QVariant& value, int role) +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_setHeaderData(section, orientation, value, role)); +} + +void PythonQtWrapper_QStandardItemModel::setHorizontalHeaderItem(QStandardItemModel* theWrappedObject, int column, QStandardItem* item) +{ + ( theWrappedObject->setHorizontalHeaderItem(column, item)); +} + +void PythonQtWrapper_QStandardItemModel::setHorizontalHeaderLabels(QStandardItemModel* theWrappedObject, const QStringList& labels) +{ + ( theWrappedObject->setHorizontalHeaderLabels(labels)); +} + +void PythonQtWrapper_QStandardItemModel::setItem(QStandardItemModel* theWrappedObject, int row, QStandardItem* item) +{ + ( theWrappedObject->setItem(row, item)); +} + +void PythonQtWrapper_QStandardItemModel::setItem(QStandardItemModel* theWrappedObject, int row, int column, QStandardItem* item) +{ + ( theWrappedObject->setItem(row, column, item)); +} + +bool PythonQtWrapper_QStandardItemModel::setItemData(QStandardItemModel* theWrappedObject, const QModelIndex& index, const QMap& roles) +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_setItemData(index, roles)); +} + +void PythonQtWrapper_QStandardItemModel::setItemPrototype(QStandardItemModel* theWrappedObject, const QStandardItem* item) +{ + ( theWrappedObject->setItemPrototype(item)); +} + +void PythonQtWrapper_QStandardItemModel::setItemRoleNames(QStandardItemModel* theWrappedObject, const QHash& roleNames) +{ + ( theWrappedObject->setItemRoleNames(roleNames)); +} + +void PythonQtWrapper_QStandardItemModel::setRowCount(QStandardItemModel* theWrappedObject, int rows) +{ + ( theWrappedObject->setRowCount(rows)); +} + +void PythonQtWrapper_QStandardItemModel::setSortRole(QStandardItemModel* theWrappedObject, int role) +{ + ( theWrappedObject->setSortRole(role)); +} + +void PythonQtWrapper_QStandardItemModel::setVerticalHeaderItem(QStandardItemModel* theWrappedObject, int row, QStandardItem* item) +{ + ( theWrappedObject->setVerticalHeaderItem(row, item)); +} + +void PythonQtWrapper_QStandardItemModel::setVerticalHeaderLabels(QStandardItemModel* theWrappedObject, const QStringList& labels) +{ + ( theWrappedObject->setVerticalHeaderLabels(labels)); +} + +QModelIndex PythonQtWrapper_QStandardItemModel::sibling(QStandardItemModel* theWrappedObject, int row, int column, const QModelIndex& idx) const +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_sibling(row, column, idx)); +} + +void PythonQtWrapper_QStandardItemModel::sort(QStandardItemModel* theWrappedObject, int column, Qt::SortOrder order) +{ + ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_sort(column, order)); +} + +int PythonQtWrapper_QStandardItemModel::sortRole(QStandardItemModel* theWrappedObject) const +{ + return ( theWrappedObject->sortRole()); +} + +Qt::DropActions PythonQtWrapper_QStandardItemModel::supportedDropActions(QStandardItemModel* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_supportedDropActions()); +} + +QList PythonQtWrapper_QStandardItemModel::takeColumn(QStandardItemModel* theWrappedObject, int column) +{ + return ( theWrappedObject->takeColumn(column)); +} + +QStandardItem* PythonQtWrapper_QStandardItemModel::takeHorizontalHeaderItem(QStandardItemModel* theWrappedObject, int column) +{ + return ( theWrappedObject->takeHorizontalHeaderItem(column)); +} + +QStandardItem* PythonQtWrapper_QStandardItemModel::takeItem(QStandardItemModel* theWrappedObject, int row, int column) +{ + return ( theWrappedObject->takeItem(row, column)); +} + +QList PythonQtWrapper_QStandardItemModel::takeRow(QStandardItemModel* theWrappedObject, int row) +{ + return ( theWrappedObject->takeRow(row)); +} + +QStandardItem* PythonQtWrapper_QStandardItemModel::takeVerticalHeaderItem(QStandardItemModel* theWrappedObject, int row) +{ + return ( theWrappedObject->takeVerticalHeaderItem(row)); +} + +QStandardItem* PythonQtWrapper_QStandardItemModel::verticalHeaderItem(QStandardItemModel* theWrappedObject, int row) const +{ + return ( theWrappedObject->verticalHeaderItem(row)); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QStatusBar::~PythonQtShell_QStatusBar() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QStatusBar::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::actionEvent(arg__1); +} +void PythonQtShell_QStatusBar::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::changeEvent(arg__1); +} +void PythonQtShell_QStatusBar::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::childEvent(arg__1); +} +void PythonQtShell_QStatusBar::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::closeEvent(arg__1); +} +void PythonQtShell_QStatusBar::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::contextMenuEvent(arg__1); +} +void PythonQtShell_QStatusBar::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::customEvent(arg__1); +} +int PythonQtShell_QStatusBar::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStatusBar::devType(); +} +void PythonQtShell_QStatusBar::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::dragEnterEvent(arg__1); +} +void PythonQtShell_QStatusBar::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::dragLeaveEvent(arg__1); +} +void PythonQtShell_QStatusBar::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::dragMoveEvent(arg__1); +} +void PythonQtShell_QStatusBar::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::dropEvent(arg__1); +} +void PythonQtShell_QStatusBar::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::enterEvent(arg__1); +} +bool PythonQtShell_QStatusBar::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStatusBar::event(arg__1); +} +bool PythonQtShell_QStatusBar::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStatusBar::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QStatusBar::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::focusInEvent(arg__1); +} +bool PythonQtShell_QStatusBar::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStatusBar::focusNextPrevChild(next); +} +void PythonQtShell_QStatusBar::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::focusOutEvent(arg__1); +} +bool PythonQtShell_QStatusBar::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStatusBar::hasHeightForWidth(); +} +int PythonQtShell_QStatusBar::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStatusBar::heightForWidth(arg__1); +} +void PythonQtShell_QStatusBar::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::hideEvent(arg__1); +} +void PythonQtShell_QStatusBar::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::initPainter(painter); +} +void PythonQtShell_QStatusBar::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QStatusBar::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStatusBar::inputMethodQuery(arg__1); +} +void PythonQtShell_QStatusBar::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::keyPressEvent(arg__1); +} +void PythonQtShell_QStatusBar::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::keyReleaseEvent(arg__1); +} +void PythonQtShell_QStatusBar::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::leaveEvent(arg__1); +} +int PythonQtShell_QStatusBar::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStatusBar::metric(arg__1); +} +QSize PythonQtShell_QStatusBar::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStatusBar::minimumSizeHint(); +} +void PythonQtShell_QStatusBar::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QStatusBar::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::mouseMoveEvent(arg__1); +} +void PythonQtShell_QStatusBar::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::mousePressEvent(arg__1); +} +void PythonQtShell_QStatusBar::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QStatusBar::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::moveEvent(arg__1); +} +bool PythonQtShell_QStatusBar::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStatusBar::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QStatusBar::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStatusBar::paintEngine(); +} +void PythonQtShell_QStatusBar::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QStatusBar::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStatusBar::redirected(offset); +} +void PythonQtShell_QStatusBar::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QStatusBar::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStatusBar::sharedPainter(); +} +void PythonQtShell_QStatusBar::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::showEvent(arg__1); +} +QSize PythonQtShell_QStatusBar::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStatusBar::sizeHint(); +} +void PythonQtShell_QStatusBar::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::tabletEvent(arg__1); +} +void PythonQtShell_QStatusBar::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::timerEvent(arg__1); +} +void PythonQtShell_QStatusBar::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStatusBar::wheelEvent(arg__1); +} +QStatusBar* PythonQtWrapper_QStatusBar::new_QStatusBar(QWidget* parent) +{ +return new PythonQtShell_QStatusBar(parent); } + +void PythonQtWrapper_QStatusBar::addPermanentWidget(QStatusBar* theWrappedObject, QWidget* widget, int stretch) +{ + ( theWrappedObject->addPermanentWidget(widget, stretch)); +} + +void PythonQtWrapper_QStatusBar::addWidget(QStatusBar* theWrappedObject, QWidget* widget, int stretch) +{ + ( theWrappedObject->addWidget(widget, stretch)); +} + +QString PythonQtWrapper_QStatusBar::currentMessage(QStatusBar* theWrappedObject) const +{ + return ( theWrappedObject->currentMessage()); +} + +bool PythonQtWrapper_QStatusBar::event(QStatusBar* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QStatusBar*)theWrappedObject)->promoted_event(arg__1)); +} + +int PythonQtWrapper_QStatusBar::insertPermanentWidget(QStatusBar* theWrappedObject, int index, QWidget* widget, int stretch) +{ + return ( theWrappedObject->insertPermanentWidget(index, widget, stretch)); +} + +int PythonQtWrapper_QStatusBar::insertWidget(QStatusBar* theWrappedObject, int index, QWidget* widget, int stretch) +{ + return ( theWrappedObject->insertWidget(index, widget, stretch)); +} + +bool PythonQtWrapper_QStatusBar::isSizeGripEnabled(QStatusBar* theWrappedObject) const +{ + return ( theWrappedObject->isSizeGripEnabled()); +} + +void PythonQtWrapper_QStatusBar::paintEvent(QStatusBar* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QStatusBar*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +void PythonQtWrapper_QStatusBar::removeWidget(QStatusBar* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->removeWidget(widget)); +} + +void PythonQtWrapper_QStatusBar::resizeEvent(QStatusBar* theWrappedObject, QResizeEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QStatusBar*)theWrappedObject)->promoted_resizeEvent(arg__1)); +} + +void PythonQtWrapper_QStatusBar::setSizeGripEnabled(QStatusBar* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setSizeGripEnabled(arg__1)); +} + +void PythonQtWrapper_QStatusBar::showEvent(QStatusBar* theWrappedObject, QShowEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QStatusBar*)theWrappedObject)->promoted_showEvent(arg__1)); +} + +#endif + +QStatusTipEvent* PythonQtWrapper_QStatusTipEvent::new_QStatusTipEvent(const QString& tip) +{ +return new QStatusTipEvent(tip); } + +QString PythonQtWrapper_QStatusTipEvent::tip(QStatusTipEvent* theWrappedObject) const +{ + return ( theWrappedObject->tip()); +} + + + +PythonQtShell_QStringListModel::~PythonQtShell_QStringListModel() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QModelIndex PythonQtShell_QStringListModel::buddy(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "buddy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("buddy", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::buddy(index); +} +bool PythonQtShell_QStringListModel::canDropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canDropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canDropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::canDropMimeData(data, action, row, column, parent); +} +bool PythonQtShell_QStringListModel::canFetchMore(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canFetchMore"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canFetchMore", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::canFetchMore(parent); +} +void PythonQtShell_QStringListModel::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStringListModel::childEvent(arg__1); +} +void PythonQtShell_QStringListModel::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStringListModel::customEvent(arg__1); +} +QVariant PythonQtShell_QStringListModel::data(const QModelIndex& index, int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::data(index, role); +} +bool PythonQtShell_QStringListModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::dropMimeData(data, action, row, column, parent); +} +bool PythonQtShell_QStringListModel::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::event(arg__1); +} +bool PythonQtShell_QStringListModel::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QStringListModel::fetchMore(const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchMore"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStringListModel::fetchMore(parent); +} +Qt::ItemFlags PythonQtShell_QStringListModel::flags(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "flags"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + Qt::ItemFlags returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("flags", methodInfo, result); + } else { + returnValue = *((Qt::ItemFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::flags(index); +} +QVariant PythonQtShell_QStringListModel::headerData(int section, Qt::Orientation orientation, int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "headerData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "int" , "Qt::Orientation" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QVariant returnValue; + void* args[4] = {NULL, (void*)§ion, (void*)&orientation, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("headerData", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::headerData(section, orientation, role); +} +QModelIndex PythonQtShell_QStringListModel::index(int row, int column, const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "index"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QModelIndex returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("index", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::index(row, column, parent); +} +bool PythonQtShell_QStringListModel::insertColumns(int column, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::insertColumns(column, count, parent); +} +bool PythonQtShell_QStringListModel::insertRows(int row, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::insertRows(row, count, parent); +} +QMap PythonQtShell_QStringListModel::itemData(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMap" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMap returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemData", methodInfo, result); + } else { + returnValue = *((QMap*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::itemData(index); +} +QList PythonQtShell_QStringListModel::match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "match"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList" , "const QModelIndex&" , "int" , "const QVariant&" , "int" , "Qt::MatchFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + QList returnValue; + void* args[6] = {NULL, (void*)&start, (void*)&role, (void*)&value, (void*)&hits, (void*)&flags}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("match", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::match(start, role, value, hits, flags); +} +QMimeData* PythonQtShell_QStringListModel::mimeData(const QList& indexes) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMimeData*" , "const QList&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMimeData* returnValue; + void* args[2] = {NULL, (void*)&indexes}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); + } else { + returnValue = *((QMimeData**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::mimeData(indexes); +} +QStringList PythonQtShell_QStringListModel::mimeTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStringList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStringList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); + } else { + returnValue = *((QStringList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::mimeTypes(); +} +bool PythonQtShell_QStringListModel::moveColumns(const QModelIndex& sourceParent, int sourceColumn, int count, const QModelIndex& destinationParent, int destinationChild) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "int" , "int" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&sourceParent, (void*)&sourceColumn, (void*)&count, (void*)&destinationParent, (void*)&destinationChild}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("moveColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); +} +bool PythonQtShell_QStringListModel::moveRows(const QModelIndex& sourceParent, int sourceRow, int count, const QModelIndex& destinationParent, int destinationChild) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "int" , "int" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&sourceParent, (void*)&sourceRow, (void*)&count, (void*)&destinationParent, (void*)&destinationChild}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("moveRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); +} +bool PythonQtShell_QStringListModel::removeColumns(int column, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("removeColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::removeColumns(column, count, parent); +} +bool PythonQtShell_QStringListModel::removeRows(int row, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("removeRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::removeRows(row, count, parent); +} +void PythonQtShell_QStringListModel::revert() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "revert"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStringListModel::revert(); +} +QHash PythonQtShell_QStringListModel::roleNames() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "roleNames"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QHash"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QHash returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("roleNames", methodInfo, result); + } else { + returnValue = *((QHash*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::roleNames(); +} +int PythonQtShell_QStringListModel::rowCount(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowCount"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("rowCount", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::rowCount(parent); +} +bool PythonQtShell_QStringListModel::setData(const QModelIndex& index, const QVariant& value, int role) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::setData(index, value, role); +} +bool PythonQtShell_QStringListModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setHeaderData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setHeaderData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::setHeaderData(section, orientation, value, role); +} +bool PythonQtShell_QStringListModel::setItemData(const QModelIndex& index, const QMap& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setItemData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setItemData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::setItemData(index, roles); +} +QModelIndex PythonQtShell_QStringListModel::sibling(int row, int column, const QModelIndex& idx) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sibling"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QModelIndex returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&idx}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sibling", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::sibling(row, column, idx); +} +void PythonQtShell_QStringListModel::sort(int column, Qt::SortOrder order) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sort"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "Qt::SortOrder"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&column, (void*)&order}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStringListModel::sort(column, order); +} +QSize PythonQtShell_QStringListModel::span(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "span"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QSize returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("span", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::span(index); +} +bool PythonQtShell_QStringListModel::submit() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "submit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("submit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::submit(); +} +Qt::DropActions PythonQtShell_QStringListModel::supportedDragActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDragActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDragActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::supportedDragActions(); +} +Qt::DropActions PythonQtShell_QStringListModel::supportedDropActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStringListModel::supportedDropActions(); +} +void PythonQtShell_QStringListModel::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStringListModel::timerEvent(arg__1); +} +QStringListModel* PythonQtWrapper_QStringListModel::new_QStringListModel(QObject* parent) +{ +return new PythonQtShell_QStringListModel(parent); } + +QStringListModel* PythonQtWrapper_QStringListModel::new_QStringListModel(const QStringList& strings, QObject* parent) +{ +return new PythonQtShell_QStringListModel(strings, parent); } + +QVariant PythonQtWrapper_QStringListModel::data(QStringListModel* theWrappedObject, const QModelIndex& index, int role) const +{ + return ( ((PythonQtPublicPromoter_QStringListModel*)theWrappedObject)->promoted_data(index, role)); +} + +Qt::ItemFlags PythonQtWrapper_QStringListModel::flags(QStringListModel* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QStringListModel*)theWrappedObject)->promoted_flags(index)); +} + +bool PythonQtWrapper_QStringListModel::insertRows(QStringListModel* theWrappedObject, int row, int count, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QStringListModel*)theWrappedObject)->promoted_insertRows(row, count, parent)); +} + +bool PythonQtWrapper_QStringListModel::removeRows(QStringListModel* theWrappedObject, int row, int count, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QStringListModel*)theWrappedObject)->promoted_removeRows(row, count, parent)); +} + +int PythonQtWrapper_QStringListModel::rowCount(QStringListModel* theWrappedObject, const QModelIndex& parent) const +{ + return ( ((PythonQtPublicPromoter_QStringListModel*)theWrappedObject)->promoted_rowCount(parent)); +} + +bool PythonQtWrapper_QStringListModel::setData(QStringListModel* theWrappedObject, const QModelIndex& index, const QVariant& value, int role) +{ + return ( ((PythonQtPublicPromoter_QStringListModel*)theWrappedObject)->promoted_setData(index, value, role)); +} + +void PythonQtWrapper_QStringListModel::setStringList(QStringListModel* theWrappedObject, const QStringList& strings) +{ + ( theWrappedObject->setStringList(strings)); +} + +QModelIndex PythonQtWrapper_QStringListModel::sibling(QStringListModel* theWrappedObject, int row, int column, const QModelIndex& idx) const +{ + return ( ((PythonQtPublicPromoter_QStringListModel*)theWrappedObject)->promoted_sibling(row, column, idx)); +} + +void PythonQtWrapper_QStringListModel::sort(QStringListModel* theWrappedObject, int column, Qt::SortOrder order) +{ + ( ((PythonQtPublicPromoter_QStringListModel*)theWrappedObject)->promoted_sort(column, order)); +} + +QStringList PythonQtWrapper_QStringListModel::stringList(QStringListModel* theWrappedObject) const +{ + return ( theWrappedObject->stringList()); +} + +Qt::DropActions PythonQtWrapper_QStringListModel::supportedDropActions(QStringListModel* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QStringListModel*)theWrappedObject)->promoted_supportedDropActions()); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QStyle::~PythonQtShell_QStyle() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QStyle::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyle::childEvent(arg__1); +} +void PythonQtShell_QStyle::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyle::customEvent(arg__1); +} +void PythonQtShell_QStyle::drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* widget) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawComplexControl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QPainter*" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&p, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QStyle::drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawControl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QStyle::ControlElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&element, (void*)&opt, (void*)&p, (void*)&w}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QStyle::drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemPixmap"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPixmap&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&painter, (void*)&rect, (void*)&alignment, (void*)&pixmap}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyle::drawItemPixmap(painter, rect, alignment, pixmap); +} +void PythonQtShell_QStyle::drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemText"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPalette&" , "bool" , "const QString&" , "QPalette::ColorRole"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(8, argumentList); + void* args[8] = {NULL, (void*)&painter, (void*)&rect, (void*)&flags, (void*)&pal, (void*)&enabled, (void*)&text, (void*)&textRole}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); +} +void PythonQtShell_QStyle::drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPrimitive"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QStyle::PrimitiveElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&pe, (void*)&opt, (void*)&p, (void*)&w}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +bool PythonQtShell_QStyle::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStyle::event(arg__1); +} +bool PythonQtShell_QStyle::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStyle::eventFilter(arg__1, arg__2); +} +QPixmap PythonQtShell_QStyle::generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "generatedIconPixmap"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPixmap" , "QIcon::Mode" , "const QPixmap&" , "const QStyleOption*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QPixmap returnValue; + void* args[4] = {NULL, (void*)&iconMode, (void*)&pixmap, (void*)&opt}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("generatedIconPixmap", methodInfo, result); + } else { + returnValue = *((QPixmap*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPixmap(); +} +QStyle::SubControl PythonQtShell_QStyle::hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* widget) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitTestComplexControl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStyle::SubControl" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "const QPoint&" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + QStyle::SubControl returnValue; + void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&pt, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hitTestComplexControl", methodInfo, result); + } else { + returnValue = *((QStyle::SubControl*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStyle::SubControl(); +} +QRect PythonQtShell_QStyle::itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemPixmapRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect" , "const QRect&" , "int" , "const QPixmap&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QRect returnValue; + void* args[4] = {NULL, (void*)&r, (void*)&flags, (void*)&pixmap}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemPixmapRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStyle::itemPixmapRect(r, flags, pixmap); +} +QRect PythonQtShell_QStyle::itemTextRect(const QFontMetrics& fm, const QRect& r, int flags, bool enabled, const QString& text) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemTextRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect" , "const QFontMetrics&" , "const QRect&" , "int" , "bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + QRect returnValue; + void* args[6] = {NULL, (void*)&fm, (void*)&r, (void*)&flags, (void*)&enabled, (void*)&text}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemTextRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStyle::itemTextRect(fm, r, flags, enabled, text); +} +int PythonQtShell_QStyle::layoutSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption* option, const QWidget* widget) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layoutSpacing"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QSizePolicy::ControlType" , "QSizePolicy::ControlType" , "Qt::Orientation" , "const QStyleOption*" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + int returnValue; + void* args[6] = {NULL, (void*)&control1, (void*)&control2, (void*)&orientation, (void*)&option, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("layoutSpacing", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +int PythonQtShell_QStyle::pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option, const QWidget* widget) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pixelMetric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + int returnValue; + void* args[4] = {NULL, (void*)&metric, (void*)&option, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("pixelMetric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +void PythonQtShell_QStyle::polish(QApplication* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QApplication*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyle::polish(arg__1); +} +void PythonQtShell_QStyle::polish(QPalette& arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPalette&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyle::polish(arg__1); +} +void PythonQtShell_QStyle::polish(QWidget* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyle::polish(arg__1); +} +QSize PythonQtShell_QStyle::sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* w) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeFromContents"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize" , "QStyle::ContentsType" , "const QStyleOption*" , "const QSize&" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + QSize returnValue; + void* args[5] = {NULL, (void*)&ct, (void*)&opt, (void*)&contentsSize, (void*)&w}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeFromContents", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSize(); +} +QIcon PythonQtShell_QStyle::standardIcon(QStyle::StandardPixmap standardIcon, const QStyleOption* option, const QWidget* widget) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardIcon"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QIcon" , "QStyle::StandardPixmap" , "const QStyleOption*" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QIcon returnValue; + void* args[4] = {NULL, (void*)&standardIcon, (void*)&option, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("standardIcon", methodInfo, result); + } else { + returnValue = *((QIcon*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QIcon(); +} +QPalette PythonQtShell_QStyle::standardPalette() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPalette"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPalette"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPalette returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("standardPalette", methodInfo, result); + } else { + returnValue = *((QPalette*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStyle::standardPalette(); +} +QPixmap PythonQtShell_QStyle::standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPixmap"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPixmap" , "QStyle::StandardPixmap" , "const QStyleOption*" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QPixmap returnValue; + void* args[4] = {NULL, (void*)&standardPixmap, (void*)&opt, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("standardPixmap", methodInfo, result); + } else { + returnValue = *((QPixmap*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPixmap(); +} +int PythonQtShell_QStyle::styleHint(QStyle::StyleHint stylehint, const QStyleOption* opt, const QWidget* widget, QStyleHintReturn* returnData) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "styleHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + int returnValue; + void* args[5] = {NULL, (void*)&stylehint, (void*)&opt, (void*)&widget, (void*)&returnData}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("styleHint", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +QRect PythonQtShell_QStyle::subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subControlRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QStyle::SubControl" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + QRect returnValue; + void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&sc, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("subControlRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRect(); +} +QRect PythonQtShell_QStyle::subElementRect(QStyle::SubElement subElement, const QStyleOption* option, const QWidget* widget) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subElementRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect" , "QStyle::SubElement" , "const QStyleOption*" , "const QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QRect returnValue; + void* args[4] = {NULL, (void*)&subElement, (void*)&option, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("subElementRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QRect(); +} +void PythonQtShell_QStyle::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyle::timerEvent(arg__1); +} +void PythonQtShell_QStyle::unpolish(QApplication* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QApplication*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyle::unpolish(arg__1); +} +void PythonQtShell_QStyle::unpolish(QWidget* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyle::unpolish(arg__1); +} +QStyle* PythonQtWrapper_QStyle::new_QStyle() +{ +return new PythonQtShell_QStyle(); } + +QRect PythonQtWrapper_QStyle::static_QStyle_alignedRect(Qt::LayoutDirection direction, Qt::Alignment alignment, const QSize& size, const QRect& rectangle) +{ + return (QStyle::alignedRect(direction, alignment, size, rectangle)); +} + +int PythonQtWrapper_QStyle::combinedLayoutSpacing(QStyle* theWrappedObject, QSizePolicy::ControlTypes controls1, QSizePolicy::ControlTypes controls2, Qt::Orientation orientation, QStyleOption* option, QWidget* widget) const +{ + return ( theWrappedObject->combinedLayoutSpacing(controls1, controls2, orientation, option, widget)); +} + +void PythonQtWrapper_QStyle::drawItemPixmap(QStyle* theWrappedObject, QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const +{ + ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_drawItemPixmap(painter, rect, alignment, pixmap)); +} + +void PythonQtWrapper_QStyle::drawItemText(QStyle* theWrappedObject, QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const +{ + ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_drawItemText(painter, rect, flags, pal, enabled, text, textRole)); +} + +QRect PythonQtWrapper_QStyle::itemPixmapRect(QStyle* theWrappedObject, const QRect& r, int flags, const QPixmap& pixmap) const +{ + return ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_itemPixmapRect(r, flags, pixmap)); +} + +void PythonQtWrapper_QStyle::polish(QStyle* theWrappedObject, QApplication* arg__1) +{ + ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_polish(arg__1)); +} + +void PythonQtWrapper_QStyle::polish(QStyle* theWrappedObject, QPalette& arg__1) +{ + ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_polish(arg__1)); +} + +void PythonQtWrapper_QStyle::polish(QStyle* theWrappedObject, QWidget* arg__1) +{ + ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_polish(arg__1)); +} + +const QStyle* PythonQtWrapper_QStyle::proxy(QStyle* theWrappedObject) const +{ + return ( theWrappedObject->proxy()); +} + +int PythonQtWrapper_QStyle::static_QStyle_sliderPositionFromValue(int min, int max, int val, int space, bool upsideDown) +{ + return (QStyle::sliderPositionFromValue(min, max, val, space, upsideDown)); +} + +int PythonQtWrapper_QStyle::static_QStyle_sliderValueFromPosition(int min, int max, int pos, int space, bool upsideDown) +{ + return (QStyle::sliderValueFromPosition(min, max, pos, space, upsideDown)); +} + +QPalette PythonQtWrapper_QStyle::standardPalette(QStyle* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_standardPalette()); +} + +void PythonQtWrapper_QStyle::unpolish(QStyle* theWrappedObject, QApplication* arg__1) +{ + ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_unpolish(arg__1)); +} + +void PythonQtWrapper_QStyle::unpolish(QStyle* theWrappedObject, QWidget* arg__1) +{ + ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_unpolish(arg__1)); +} + +Qt::Alignment PythonQtWrapper_QStyle::static_QStyle_visualAlignment(Qt::LayoutDirection direction, Qt::Alignment alignment) +{ + return (QStyle::visualAlignment(direction, alignment)); +} + +QPoint PythonQtWrapper_QStyle::static_QStyle_visualPos(Qt::LayoutDirection direction, const QRect& boundingRect, const QPoint& logicalPos) +{ + return (QStyle::visualPos(direction, boundingRect, logicalPos)); +} + +QRect PythonQtWrapper_QStyle::static_QStyle_visualRect(Qt::LayoutDirection direction, const QRect& boundingRect, const QRect& logicalRect) +{ + return (QStyle::visualRect(direction, boundingRect, logicalRect)); +} + + + +PythonQtShell_QStyleFactory::~PythonQtShell_QStyleFactory() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleFactory* PythonQtWrapper_QStyleFactory::new_QStyleFactory() +{ +return new PythonQtShell_QStyleFactory(); } + +QStyle* PythonQtWrapper_QStyleFactory::static_QStyleFactory_create(const QString& arg__1) +{ + return (QStyleFactory::create(arg__1)); +} + +QStringList PythonQtWrapper_QStyleFactory::static_QStyleFactory_keys() +{ + return (QStyleFactory::keys()); +} + + + +PythonQtShell_QStyleHintReturn::~PythonQtShell_QStyleHintReturn() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleHintReturn* PythonQtWrapper_QStyleHintReturn::new_QStyleHintReturn(int version, int type) +{ +return new PythonQtShell_QStyleHintReturn(version, type); } + + + +PythonQtShell_QStyleHintReturnMask::~PythonQtShell_QStyleHintReturnMask() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleHintReturnMask* PythonQtWrapper_QStyleHintReturnMask::new_QStyleHintReturnMask() +{ +return new PythonQtShell_QStyleHintReturnMask(); } + + + +PythonQtShell_QStyleHintReturnVariant::~PythonQtShell_QStyleHintReturnVariant() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleHintReturnVariant* PythonQtWrapper_QStyleHintReturnVariant::new_QStyleHintReturnVariant() +{ +return new PythonQtShell_QStyleHintReturnVariant(); } + + + +PythonQtShell_QStyleOption::~PythonQtShell_QStyleOption() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOption* PythonQtWrapper_QStyleOption::new_QStyleOption(const QStyleOption& other) +{ +return new PythonQtShell_QStyleOption(other); } + +QStyleOption* PythonQtWrapper_QStyleOption::new_QStyleOption(int version, int type) +{ +return new PythonQtShell_QStyleOption(version, type); } + +void PythonQtWrapper_QStyleOption::initFrom(QStyleOption* theWrappedObject, const QWidget* w) +{ + ( theWrappedObject->initFrom(w)); +} + +QString PythonQtWrapper_QStyleOption::py_toString(QStyleOption* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +PythonQtShell_QStyleOptionButton::~PythonQtShell_QStyleOptionButton() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionButton* PythonQtWrapper_QStyleOptionButton::new_QStyleOptionButton() +{ +return new PythonQtShell_QStyleOptionButton(); } + +QStyleOptionButton* PythonQtWrapper_QStyleOptionButton::new_QStyleOptionButton(const QStyleOptionButton& other) +{ +return new PythonQtShell_QStyleOptionButton(other); } + + + +PythonQtShell_QStyleOptionComboBox::~PythonQtShell_QStyleOptionComboBox() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionComboBox* PythonQtWrapper_QStyleOptionComboBox::new_QStyleOptionComboBox() +{ +return new PythonQtShell_QStyleOptionComboBox(); } + +QStyleOptionComboBox* PythonQtWrapper_QStyleOptionComboBox::new_QStyleOptionComboBox(const QStyleOptionComboBox& other) +{ +return new PythonQtShell_QStyleOptionComboBox(other); } + + + +PythonQtShell_QStyleOptionDockWidget::~PythonQtShell_QStyleOptionDockWidget() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionDockWidget* PythonQtWrapper_QStyleOptionDockWidget::new_QStyleOptionDockWidget() +{ +return new PythonQtShell_QStyleOptionDockWidget(); } + +QStyleOptionDockWidget* PythonQtWrapper_QStyleOptionDockWidget::new_QStyleOptionDockWidget(const QStyleOptionDockWidget& other) +{ +return new PythonQtShell_QStyleOptionDockWidget(other); } + + + +PythonQtShell_QStyleOptionFocusRect::~PythonQtShell_QStyleOptionFocusRect() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionFocusRect* PythonQtWrapper_QStyleOptionFocusRect::new_QStyleOptionFocusRect() +{ +return new PythonQtShell_QStyleOptionFocusRect(); } + +QStyleOptionFocusRect* PythonQtWrapper_QStyleOptionFocusRect::new_QStyleOptionFocusRect(const QStyleOptionFocusRect& other) +{ +return new PythonQtShell_QStyleOptionFocusRect(other); } + + + +PythonQtShell_QStyleOptionFrame::~PythonQtShell_QStyleOptionFrame() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionFrame* PythonQtWrapper_QStyleOptionFrame::new_QStyleOptionFrame() +{ +return new PythonQtShell_QStyleOptionFrame(); } + +QStyleOptionFrame* PythonQtWrapper_QStyleOptionFrame::new_QStyleOptionFrame(const QStyleOptionFrame& other) +{ +return new PythonQtShell_QStyleOptionFrame(other); } + + + +PythonQtShell_QStyleOptionGraphicsItem::~PythonQtShell_QStyleOptionGraphicsItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionGraphicsItem* PythonQtWrapper_QStyleOptionGraphicsItem::new_QStyleOptionGraphicsItem() +{ +return new PythonQtShell_QStyleOptionGraphicsItem(); } + +QStyleOptionGraphicsItem* PythonQtWrapper_QStyleOptionGraphicsItem::new_QStyleOptionGraphicsItem(const QStyleOptionGraphicsItem& other) +{ +return new PythonQtShell_QStyleOptionGraphicsItem(other); } + +qreal PythonQtWrapper_QStyleOptionGraphicsItem::static_QStyleOptionGraphicsItem_levelOfDetailFromTransform(const QTransform& worldTransform) +{ + return (QStyleOptionGraphicsItem::levelOfDetailFromTransform(worldTransform)); +} + + + +PythonQtShell_QStyleOptionGroupBox::~PythonQtShell_QStyleOptionGroupBox() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionGroupBox* PythonQtWrapper_QStyleOptionGroupBox::new_QStyleOptionGroupBox() +{ +return new PythonQtShell_QStyleOptionGroupBox(); } + +QStyleOptionGroupBox* PythonQtWrapper_QStyleOptionGroupBox::new_QStyleOptionGroupBox(const QStyleOptionGroupBox& other) +{ +return new PythonQtShell_QStyleOptionGroupBox(other); } + + + +PythonQtShell_QStyleOptionHeader::~PythonQtShell_QStyleOptionHeader() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionHeader* PythonQtWrapper_QStyleOptionHeader::new_QStyleOptionHeader() +{ +return new PythonQtShell_QStyleOptionHeader(); } + +QStyleOptionHeader* PythonQtWrapper_QStyleOptionHeader::new_QStyleOptionHeader(const QStyleOptionHeader& other) +{ +return new PythonQtShell_QStyleOptionHeader(other); } + + + +PythonQtShell_QStyleOptionMenuItem::~PythonQtShell_QStyleOptionMenuItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionMenuItem* PythonQtWrapper_QStyleOptionMenuItem::new_QStyleOptionMenuItem() +{ +return new PythonQtShell_QStyleOptionMenuItem(); } + +QStyleOptionMenuItem* PythonQtWrapper_QStyleOptionMenuItem::new_QStyleOptionMenuItem(const QStyleOptionMenuItem& other) +{ +return new PythonQtShell_QStyleOptionMenuItem(other); } + + + +PythonQtShell_QStyleOptionProgressBar::~PythonQtShell_QStyleOptionProgressBar() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionProgressBar* PythonQtWrapper_QStyleOptionProgressBar::new_QStyleOptionProgressBar() +{ +return new PythonQtShell_QStyleOptionProgressBar(); } + +QStyleOptionProgressBar* PythonQtWrapper_QStyleOptionProgressBar::new_QStyleOptionProgressBar(const QStyleOptionProgressBar& other) +{ +return new PythonQtShell_QStyleOptionProgressBar(other); } + + + +PythonQtShell_QStyleOptionRubberBand::~PythonQtShell_QStyleOptionRubberBand() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionRubberBand* PythonQtWrapper_QStyleOptionRubberBand::new_QStyleOptionRubberBand() +{ +return new PythonQtShell_QStyleOptionRubberBand(); } + +QStyleOptionRubberBand* PythonQtWrapper_QStyleOptionRubberBand::new_QStyleOptionRubberBand(const QStyleOptionRubberBand& other) +{ +return new PythonQtShell_QStyleOptionRubberBand(other); } + + + +PythonQtShell_QStyleOptionSizeGrip::~PythonQtShell_QStyleOptionSizeGrip() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionSizeGrip* PythonQtWrapper_QStyleOptionSizeGrip::new_QStyleOptionSizeGrip() +{ +return new PythonQtShell_QStyleOptionSizeGrip(); } + +QStyleOptionSizeGrip* PythonQtWrapper_QStyleOptionSizeGrip::new_QStyleOptionSizeGrip(const QStyleOptionSizeGrip& other) +{ +return new PythonQtShell_QStyleOptionSizeGrip(other); } + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui6.h b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui6.h new file mode 100644 index 00000000..8628ee9d --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui6.h @@ -0,0 +1,1888 @@ +#include + +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined(QT_WIDGETS_LIB) +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QSpacerItem : public QSpacerItem +{ +public: + PythonQtShell_QSpacerItem(int w, int h, QSizePolicy::Policy hData = QSizePolicy::Minimum, QSizePolicy::Policy vData = QSizePolicy::Minimum):QSpacerItem(w, h, hData, vData),_wrapper(NULL) {}; + + ~PythonQtShell_QSpacerItem(); + +virtual QSizePolicy::ControlTypes controlTypes() const; +virtual Qt::Orientations expandingDirections() const; +virtual QRect geometry() const; +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void invalidate(); +virtual bool isEmpty() const; +virtual QLayout* layout(); +virtual QSize maximumSize() const; +virtual int minimumHeightForWidth(int arg__1) const; +virtual QSize minimumSize() const; +virtual void setGeometry(const QRect& arg__1); +virtual QSize sizeHint() const; +virtual QSpacerItem* spacerItem(); +virtual QWidget* widget(); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSpacerItem : public QSpacerItem +{ public: +inline Qt::Orientations promoted_expandingDirections() const { return QSpacerItem::expandingDirections(); } +inline QRect promoted_geometry() const { return QSpacerItem::geometry(); } +inline bool promoted_isEmpty() const { return QSpacerItem::isEmpty(); } +inline QSize promoted_maximumSize() const { return QSpacerItem::maximumSize(); } +inline QSize promoted_minimumSize() const { return QSpacerItem::minimumSize(); } +inline void promoted_setGeometry(const QRect& arg__1) { QSpacerItem::setGeometry(arg__1); } +inline QSize promoted_sizeHint() const { return QSpacerItem::sizeHint(); } +inline QSpacerItem* promoted_spacerItem() { return QSpacerItem::spacerItem(); } +}; + +class PythonQtWrapper_QSpacerItem : public QObject +{ Q_OBJECT +public: +public slots: +QSpacerItem* new_QSpacerItem(int w, int h, QSizePolicy::Policy hData = QSizePolicy::Minimum, QSizePolicy::Policy vData = QSizePolicy::Minimum); +void delete_QSpacerItem(QSpacerItem* obj) { delete obj; } + void changeSize(QSpacerItem* theWrappedObject, int w, int h, QSizePolicy::Policy hData = QSizePolicy::Minimum, QSizePolicy::Policy vData = QSizePolicy::Minimum); + Qt::Orientations expandingDirections(QSpacerItem* theWrappedObject) const; + QRect geometry(QSpacerItem* theWrappedObject) const; + bool isEmpty(QSpacerItem* theWrappedObject) const; + QSize maximumSize(QSpacerItem* theWrappedObject) const; + QSize minimumSize(QSpacerItem* theWrappedObject) const; + void setGeometry(QSpacerItem* theWrappedObject, const QRect& arg__1); + QSize sizeHint(QSpacerItem* theWrappedObject) const; + QSpacerItem* spacerItem(QSpacerItem* theWrappedObject); +}; + + + + + +class PythonQtShell_QSpinBox : public QSpinBox +{ +public: + PythonQtShell_QSpinBox(QWidget* parent = 0):QSpinBox(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QSpinBox(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* event); +virtual void childEvent(QChildEvent* arg__1); +virtual void clear(); +virtual void closeEvent(QCloseEvent* event); +virtual void contextMenuEvent(QContextMenuEvent* event); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fixup(QString& str) const; +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* event); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* event); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* event); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* event); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* event); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* event); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* event); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* event); +virtual void stepBy(int steps); +virtual QAbstractSpinBox::StepEnabled stepEnabled() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual QString textFromValue(int val) const; +virtual void timerEvent(QTimerEvent* event); +virtual QValidator::State validate(QString& input, int& pos) const; +virtual int valueFromText(const QString& text) const; +virtual void wheelEvent(QWheelEvent* event); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSpinBox : public QSpinBox +{ public: +inline bool promoted_event(QEvent* event) { return QSpinBox::event(event); } +inline void promoted_fixup(QString& str) const { QSpinBox::fixup(str); } +inline QString promoted_textFromValue(int val) const { return QSpinBox::textFromValue(val); } +inline QValidator::State promoted_validate(QString& input, int& pos) const { return QSpinBox::validate(input, pos); } +inline int promoted_valueFromText(const QString& text) const { return QSpinBox::valueFromText(text); } +}; + +class PythonQtWrapper_QSpinBox : public QObject +{ Q_OBJECT +public: +public slots: +QSpinBox* new_QSpinBox(QWidget* parent = 0); +void delete_QSpinBox(QSpinBox* obj) { delete obj; } + QString cleanText(QSpinBox* theWrappedObject) const; + bool event(QSpinBox* theWrappedObject, QEvent* event); + void fixup(QSpinBox* theWrappedObject, QString& str) const; + int maximum(QSpinBox* theWrappedObject) const; + int minimum(QSpinBox* theWrappedObject) const; + QString prefix(QSpinBox* theWrappedObject) const; + void setMaximum(QSpinBox* theWrappedObject, int max); + void setMinimum(QSpinBox* theWrappedObject, int min); + void setPrefix(QSpinBox* theWrappedObject, const QString& prefix); + void setRange(QSpinBox* theWrappedObject, int min, int max); + void setSingleStep(QSpinBox* theWrappedObject, int val); + void setSuffix(QSpinBox* theWrappedObject, const QString& suffix); + int singleStep(QSpinBox* theWrappedObject) const; + QString suffix(QSpinBox* theWrappedObject) const; + QString textFromValue(QSpinBox* theWrappedObject, int val) const; + QValidator::State validate(QSpinBox* theWrappedObject, QString& input, int& pos) const; + int value(QSpinBox* theWrappedObject) const; + int valueFromText(QSpinBox* theWrappedObject, const QString& text) const; +}; + + + + + +class PythonQtShell_QSplashScreen : public QSplashScreen +{ +public: + PythonQtShell_QSplashScreen(QWidget* parent, const QPixmap& pixmap = QPixmap(), Qt::WindowFlags f = 0):QSplashScreen(parent, pixmap, f),_wrapper(NULL) {}; + PythonQtShell_QSplashScreen(const QPixmap& pixmap = QPixmap(), Qt::WindowFlags f = 0):QSplashScreen(pixmap, f),_wrapper(NULL) {}; + + ~PythonQtShell_QSplashScreen(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void drawContents(QPainter* painter); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual QSize sizeHint() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSplashScreen : public QSplashScreen +{ public: +inline void promoted_drawContents(QPainter* painter) { QSplashScreen::drawContents(painter); } +inline bool promoted_event(QEvent* e) { return QSplashScreen::event(e); } +inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QSplashScreen::mousePressEvent(arg__1); } +}; + +class PythonQtWrapper_QSplashScreen : public QObject +{ Q_OBJECT +public: +public slots: +QSplashScreen* new_QSplashScreen(QWidget* parent, const QPixmap& pixmap = QPixmap(), Qt::WindowFlags f = 0); +QSplashScreen* new_QSplashScreen(const QPixmap& pixmap = QPixmap(), Qt::WindowFlags f = 0); +void delete_QSplashScreen(QSplashScreen* obj) { delete obj; } + void drawContents(QSplashScreen* theWrappedObject, QPainter* painter); + bool event(QSplashScreen* theWrappedObject, QEvent* e); + void finish(QSplashScreen* theWrappedObject, QWidget* w); + void mousePressEvent(QSplashScreen* theWrappedObject, QMouseEvent* arg__1); + const QPixmap pixmap(QSplashScreen* theWrappedObject) const; + void setPixmap(QSplashScreen* theWrappedObject, const QPixmap& pixmap); +}; + + + + + +class PythonQtShell_QSplitter : public QSplitter +{ +public: + PythonQtShell_QSplitter(QWidget* parent = 0):QSplitter(parent),_wrapper(NULL) {}; + PythonQtShell_QSplitter(Qt::Orientation arg__1, QWidget* parent = 0):QSplitter(arg__1, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QSplitter(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual QSplitterHandle* createHandle(); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSplitter : public QSplitter +{ public: +inline void promoted_changeEvent(QEvent* arg__1) { QSplitter::changeEvent(arg__1); } +inline void promoted_childEvent(QChildEvent* arg__1) { QSplitter::childEvent(arg__1); } +inline QSplitterHandle* promoted_createHandle() { return QSplitter::createHandle(); } +inline bool promoted_event(QEvent* arg__1) { return QSplitter::event(arg__1); } +inline void promoted_resizeEvent(QResizeEvent* arg__1) { QSplitter::resizeEvent(arg__1); } +}; + +class PythonQtWrapper_QSplitter : public QObject +{ Q_OBJECT +public: +public slots: +QSplitter* new_QSplitter(QWidget* parent = 0); +QSplitter* new_QSplitter(Qt::Orientation arg__1, QWidget* parent = 0); +void delete_QSplitter(QSplitter* obj) { delete obj; } + void addWidget(QSplitter* theWrappedObject, QWidget* widget); + void changeEvent(QSplitter* theWrappedObject, QEvent* arg__1); + void childEvent(QSplitter* theWrappedObject, QChildEvent* arg__1); + bool childrenCollapsible(QSplitter* theWrappedObject) const; + int count(QSplitter* theWrappedObject) const; + QSplitterHandle* createHandle(QSplitter* theWrappedObject); + bool event(QSplitter* theWrappedObject, QEvent* arg__1); + void getRange(QSplitter* theWrappedObject, int index, int* arg__2, int* arg__3) const; + QSplitterHandle* handle(QSplitter* theWrappedObject, int index) const; + int handleWidth(QSplitter* theWrappedObject) const; + int indexOf(QSplitter* theWrappedObject, QWidget* w) const; + void insertWidget(QSplitter* theWrappedObject, int index, QWidget* widget); + bool isCollapsible(QSplitter* theWrappedObject, int index) const; + QSize minimumSizeHint(QSplitter* theWrappedObject) const; + bool opaqueResize(QSplitter* theWrappedObject) const; + void writeTo(QSplitter* theWrappedObject, QTextStream& arg__1); + void readFrom(QSplitter* theWrappedObject, QTextStream& arg__1); + Qt::Orientation orientation(QSplitter* theWrappedObject) const; + void refresh(QSplitter* theWrappedObject); + void resizeEvent(QSplitter* theWrappedObject, QResizeEvent* arg__1); + bool restoreState(QSplitter* theWrappedObject, const QByteArray& state); + QByteArray saveState(QSplitter* theWrappedObject) const; + void setChildrenCollapsible(QSplitter* theWrappedObject, bool arg__1); + void setCollapsible(QSplitter* theWrappedObject, int index, bool arg__2); + void setHandleWidth(QSplitter* theWrappedObject, int arg__1); + void setOpaqueResize(QSplitter* theWrappedObject, bool opaque = true); + void setOrientation(QSplitter* theWrappedObject, Qt::Orientation arg__1); + void setSizes(QSplitter* theWrappedObject, const QList& list); + void setStretchFactor(QSplitter* theWrappedObject, int index, int stretch); + QSize sizeHint(QSplitter* theWrappedObject) const; + QList sizes(QSplitter* theWrappedObject) const; + QWidget* widget(QSplitter* theWrappedObject, int index) const; +}; + + + + + +class PythonQtShell_QSplitterHandle : public QSplitterHandle +{ +public: + PythonQtShell_QSplitterHandle(Qt::Orientation o, QSplitter* parent):QSplitterHandle(o, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QSplitterHandle(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSplitterHandle : public QSplitterHandle +{ public: +inline bool promoted_event(QEvent* arg__1) { return QSplitterHandle::event(arg__1); } +inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QSplitterHandle::mouseMoveEvent(arg__1); } +inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QSplitterHandle::mousePressEvent(arg__1); } +inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QSplitterHandle::mouseReleaseEvent(arg__1); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QSplitterHandle::paintEvent(arg__1); } +inline void promoted_resizeEvent(QResizeEvent* arg__1) { QSplitterHandle::resizeEvent(arg__1); } +}; + +class PythonQtWrapper_QSplitterHandle : public QObject +{ Q_OBJECT +public: +public slots: +QSplitterHandle* new_QSplitterHandle(Qt::Orientation o, QSplitter* parent); +void delete_QSplitterHandle(QSplitterHandle* obj) { delete obj; } + bool event(QSplitterHandle* theWrappedObject, QEvent* arg__1); + void mouseMoveEvent(QSplitterHandle* theWrappedObject, QMouseEvent* arg__1); + void mousePressEvent(QSplitterHandle* theWrappedObject, QMouseEvent* arg__1); + void mouseReleaseEvent(QSplitterHandle* theWrappedObject, QMouseEvent* arg__1); + bool opaqueResize(QSplitterHandle* theWrappedObject) const; + Qt::Orientation orientation(QSplitterHandle* theWrappedObject) const; + void paintEvent(QSplitterHandle* theWrappedObject, QPaintEvent* arg__1); + void resizeEvent(QSplitterHandle* theWrappedObject, QResizeEvent* arg__1); + void setOrientation(QSplitterHandle* theWrappedObject, Qt::Orientation o); + QSize sizeHint(QSplitterHandle* theWrappedObject) const; + QSplitter* splitter(QSplitterHandle* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QStackedLayout : public QStackedLayout +{ +public: + PythonQtShell_QStackedLayout():QStackedLayout(),_wrapper(NULL) {}; + PythonQtShell_QStackedLayout(QLayout* parentLayout):QStackedLayout(parentLayout),_wrapper(NULL) {}; + PythonQtShell_QStackedLayout(QWidget* parent):QStackedLayout(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QStackedLayout(); + +virtual void addItem(QLayoutItem* item); +virtual void childEvent(QChildEvent* e); +virtual QSizePolicy::ControlTypes controlTypes() const; +virtual int count() const; +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual Qt::Orientations expandingDirections() const; +virtual QRect geometry() const; +virtual int indexOf(QWidget* arg__1) const; +virtual void invalidate(); +virtual bool isEmpty() const; +virtual QLayoutItem* itemAt(int arg__1) const; +virtual QLayout* layout(); +virtual QSize maximumSize() const; +virtual QSize minimumSize() const; +virtual void setGeometry(const QRect& rect); +virtual QLayoutItem* takeAt(int arg__1); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QStackedLayout : public QStackedLayout +{ public: +inline void promoted_addItem(QLayoutItem* item) { QStackedLayout::addItem(item); } +inline int promoted_count() const { return QStackedLayout::count(); } +inline QLayoutItem* promoted_itemAt(int arg__1) const { return QStackedLayout::itemAt(arg__1); } +inline QSize promoted_minimumSize() const { return QStackedLayout::minimumSize(); } +inline void promoted_setGeometry(const QRect& rect) { QStackedLayout::setGeometry(rect); } +inline QLayoutItem* promoted_takeAt(int arg__1) { return QStackedLayout::takeAt(arg__1); } +}; + +class PythonQtWrapper_QStackedLayout : public QObject +{ Q_OBJECT +public: +public slots: +QStackedLayout* new_QStackedLayout(); +QStackedLayout* new_QStackedLayout(QLayout* parentLayout); +QStackedLayout* new_QStackedLayout(QWidget* parent); +void delete_QStackedLayout(QStackedLayout* obj) { delete obj; } + void addItem(QStackedLayout* theWrappedObject, QLayoutItem* item); + int addWidget(QStackedLayout* theWrappedObject, QWidget* w); + int count(QStackedLayout* theWrappedObject) const; + int currentIndex(QStackedLayout* theWrappedObject) const; + QWidget* currentWidget(QStackedLayout* theWrappedObject) const; + bool hasHeightForWidth(QStackedLayout* theWrappedObject) const; + int heightForWidth(QStackedLayout* theWrappedObject, int width) const; + int insertWidget(QStackedLayout* theWrappedObject, int index, QWidget* w); + QLayoutItem* itemAt(QStackedLayout* theWrappedObject, int arg__1) const; + QSize minimumSize(QStackedLayout* theWrappedObject) const; + void setGeometry(QStackedLayout* theWrappedObject, const QRect& rect); + void setStackingMode(QStackedLayout* theWrappedObject, QStackedLayout::StackingMode stackingMode); + QSize sizeHint(QStackedLayout* theWrappedObject) const; + QStackedLayout::StackingMode stackingMode(QStackedLayout* theWrappedObject) const; + QLayoutItem* takeAt(QStackedLayout* theWrappedObject, int arg__1); + QWidget* widget(QStackedLayout* theWrappedObject); + QWidget* widget(QStackedLayout* theWrappedObject, int arg__1) const; +}; + + + + + +class PythonQtShell_QStackedWidget : public QStackedWidget +{ +public: + PythonQtShell_QStackedWidget(QWidget* parent = 0):QStackedWidget(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QStackedWidget(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QStackedWidget : public QStackedWidget +{ public: +inline bool promoted_event(QEvent* e) { return QStackedWidget::event(e); } +}; + +class PythonQtWrapper_QStackedWidget : public QObject +{ Q_OBJECT +public: +public slots: +QStackedWidget* new_QStackedWidget(QWidget* parent = 0); +void delete_QStackedWidget(QStackedWidget* obj) { delete obj; } + int addWidget(QStackedWidget* theWrappedObject, QWidget* w); + int count(QStackedWidget* theWrappedObject) const; + int currentIndex(QStackedWidget* theWrappedObject) const; + QWidget* currentWidget(QStackedWidget* theWrappedObject) const; + bool event(QStackedWidget* theWrappedObject, QEvent* e); + int indexOf(QStackedWidget* theWrappedObject, QWidget* arg__1) const; + int insertWidget(QStackedWidget* theWrappedObject, int index, QWidget* w); + void removeWidget(QStackedWidget* theWrappedObject, QWidget* w); + QWidget* widget(QStackedWidget* theWrappedObject, int arg__1) const; +}; + +#endif + + + +class PythonQtShell_QStandardItem : public QStandardItem +{ +public: + PythonQtShell_QStandardItem():QStandardItem(),_wrapper(NULL) {}; + PythonQtShell_QStandardItem(const QIcon& icon, const QString& text):QStandardItem(icon, text),_wrapper(NULL) {}; + PythonQtShell_QStandardItem(const QStandardItem& other):QStandardItem(other),_wrapper(NULL) {}; + PythonQtShell_QStandardItem(const QString& text):QStandardItem(text),_wrapper(NULL) {}; + PythonQtShell_QStandardItem(int rows, int columns = 1):QStandardItem(rows, columns),_wrapper(NULL) {}; + + ~PythonQtShell_QStandardItem(); + +virtual QStandardItem* clone() const; +virtual QVariant data(int role = Qt::UserRole + 1) const; +virtual bool __lt__(const QStandardItem& other) const; +virtual void read(QDataStream& in); +virtual void setData(const QVariant& value, int role = Qt::UserRole + 1); +virtual int type() const; +virtual void write(QDataStream& out) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QStandardItem : public QStandardItem +{ public: +inline QStandardItem* promoted_clone() const { return QStandardItem::clone(); } +inline QVariant promoted_data(int role = Qt::UserRole + 1) const { return QStandardItem::data(role); } +inline void promoted_setData(const QVariant& value, int role = Qt::UserRole + 1) { QStandardItem::setData(value, role); } +inline int promoted_type() const { return QStandardItem::type(); } +}; + +class PythonQtWrapper_QStandardItem : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ItemType ) +enum ItemType{ + Type = QStandardItem::Type, UserType = QStandardItem::UserType}; +public slots: +QStandardItem* new_QStandardItem(); +QStandardItem* new_QStandardItem(const QIcon& icon, const QString& text); +QStandardItem* new_QStandardItem(const QString& text); +QStandardItem* new_QStandardItem(int rows, int columns = 1); +void delete_QStandardItem(QStandardItem* obj) { delete obj; } + QString accessibleDescription(QStandardItem* theWrappedObject) const; + QString accessibleText(QStandardItem* theWrappedObject) const; + void appendColumn(QStandardItem* theWrappedObject, const QList& items); + void appendRow(QStandardItem* theWrappedObject, QStandardItem* item); + void appendRow(QStandardItem* theWrappedObject, const QList& items); + void appendRows(QStandardItem* theWrappedObject, const QList& items); + QBrush background(QStandardItem* theWrappedObject) const; + Qt::CheckState checkState(QStandardItem* theWrappedObject) const; + QStandardItem* child(QStandardItem* theWrappedObject, int row, int column = 0) const; + QStandardItem* clone(QStandardItem* theWrappedObject) const; + int column(QStandardItem* theWrappedObject) const; + int columnCount(QStandardItem* theWrappedObject) const; + QVariant data(QStandardItem* theWrappedObject, int role = Qt::UserRole + 1) const; + Qt::ItemFlags flags(QStandardItem* theWrappedObject) const; + QFont font(QStandardItem* theWrappedObject) const; + QBrush foreground(QStandardItem* theWrappedObject) const; + bool hasChildren(QStandardItem* theWrappedObject) const; + QIcon icon(QStandardItem* theWrappedObject) const; + QModelIndex index(QStandardItem* theWrappedObject) const; + void insertColumn(QStandardItem* theWrappedObject, int column, const QList& items); + void insertColumns(QStandardItem* theWrappedObject, int column, int count); + void insertRow(QStandardItem* theWrappedObject, int row, QStandardItem* item); + void insertRow(QStandardItem* theWrappedObject, int row, const QList& items); + void insertRows(QStandardItem* theWrappedObject, int row, const QList& items); + void insertRows(QStandardItem* theWrappedObject, int row, int count); + bool isCheckable(QStandardItem* theWrappedObject) const; + bool isDragEnabled(QStandardItem* theWrappedObject) const; + bool isDropEnabled(QStandardItem* theWrappedObject) const; + bool isEditable(QStandardItem* theWrappedObject) const; + bool isEnabled(QStandardItem* theWrappedObject) const; + bool isSelectable(QStandardItem* theWrappedObject) const; + bool isTristate(QStandardItem* theWrappedObject) const; + QStandardItemModel* model(QStandardItem* theWrappedObject) const; + QStandardItem* parent(QStandardItem* theWrappedObject) const; + void removeColumn(QStandardItem* theWrappedObject, int column); + void removeColumns(QStandardItem* theWrappedObject, int column, int count); + void removeRow(QStandardItem* theWrappedObject, int row); + void removeRows(QStandardItem* theWrappedObject, int row, int count); + int row(QStandardItem* theWrappedObject) const; + int rowCount(QStandardItem* theWrappedObject) const; + void setAccessibleDescription(QStandardItem* theWrappedObject, const QString& accessibleDescription); + void setAccessibleText(QStandardItem* theWrappedObject, const QString& accessibleText); + void setBackground(QStandardItem* theWrappedObject, const QBrush& brush); + void setCheckState(QStandardItem* theWrappedObject, Qt::CheckState checkState); + void setCheckable(QStandardItem* theWrappedObject, bool checkable); + void setChild(QStandardItem* theWrappedObject, int row, QStandardItem* item); + void setChild(QStandardItem* theWrappedObject, int row, int column, QStandardItem* item); + void setColumnCount(QStandardItem* theWrappedObject, int columns); + void setData(QStandardItem* theWrappedObject, const QVariant& value, int role = Qt::UserRole + 1); + void setDragEnabled(QStandardItem* theWrappedObject, bool dragEnabled); + void setDropEnabled(QStandardItem* theWrappedObject, bool dropEnabled); + void setEditable(QStandardItem* theWrappedObject, bool editable); + void setEnabled(QStandardItem* theWrappedObject, bool enabled); + void setFlags(QStandardItem* theWrappedObject, Qt::ItemFlags flags); + void setFont(QStandardItem* theWrappedObject, const QFont& font); + void setForeground(QStandardItem* theWrappedObject, const QBrush& brush); + void setIcon(QStandardItem* theWrappedObject, const QIcon& icon); + void setRowCount(QStandardItem* theWrappedObject, int rows); + void setSelectable(QStandardItem* theWrappedObject, bool selectable); + void setSizeHint(QStandardItem* theWrappedObject, const QSize& sizeHint); + void setStatusTip(QStandardItem* theWrappedObject, const QString& statusTip); + void setText(QStandardItem* theWrappedObject, const QString& text); + void setTextAlignment(QStandardItem* theWrappedObject, Qt::Alignment textAlignment); + void setToolTip(QStandardItem* theWrappedObject, const QString& toolTip); + void setTristate(QStandardItem* theWrappedObject, bool tristate); + void setWhatsThis(QStandardItem* theWrappedObject, const QString& whatsThis); + QSize sizeHint(QStandardItem* theWrappedObject) const; + void sortChildren(QStandardItem* theWrappedObject, int column, Qt::SortOrder order = Qt::AscendingOrder); + QString statusTip(QStandardItem* theWrappedObject) const; + QStandardItem* takeChild(QStandardItem* theWrappedObject, int row, int column = 0); + QList takeColumn(QStandardItem* theWrappedObject, int column); + QList takeRow(QStandardItem* theWrappedObject, int row); + QString text(QStandardItem* theWrappedObject) const; + Qt::Alignment textAlignment(QStandardItem* theWrappedObject) const; + QString toolTip(QStandardItem* theWrappedObject) const; + int type(QStandardItem* theWrappedObject) const; + QString whatsThis(QStandardItem* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QStandardItemModel : public QStandardItemModel +{ +public: + PythonQtShell_QStandardItemModel(QObject* parent = 0):QStandardItemModel(parent),_wrapper(NULL) {}; + PythonQtShell_QStandardItemModel(int rows, int columns, QObject* parent = 0):QStandardItemModel(rows, columns, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QStandardItemModel(); + +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 childEvent(QChildEvent* arg__1); +virtual int columnCount(const QModelIndex& parent = QModelIndex()) const; +virtual void customEvent(QEvent* arg__1); +virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; +virtual bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fetchMore(const QModelIndex& parent); +virtual Qt::ItemFlags flags(const QModelIndex& index) const; +virtual bool hasChildren(const QModelIndex& parent = QModelIndex()) const; +virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; +virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const; +virtual bool insertColumns(int column, int count, const QModelIndex& parent = QModelIndex()); +virtual bool insertRows(int row, int count, const QModelIndex& parent = QModelIndex()); +virtual QMap itemData(const QModelIndex& index) const; +virtual QList match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const; +virtual QMimeData* mimeData(const QList& 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& child) const; +virtual bool removeColumns(int column, int count, const QModelIndex& parent = QModelIndex()); +virtual bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex()); +virtual void revert(); +virtual QHash roleNames() const; +virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; +virtual bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); +virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role = Qt::EditRole); +virtual bool setItemData(const QModelIndex& index, const QMap& roles); +virtual QModelIndex sibling(int row, int column, const QModelIndex& idx) const; +virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder); +virtual QSize span(const QModelIndex& index) const; +virtual bool submit(); +virtual Qt::DropActions supportedDragActions() const; +virtual Qt::DropActions supportedDropActions() const; +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QStandardItemModel : public QStandardItemModel +{ public: +inline int promoted_columnCount(const QModelIndex& parent = QModelIndex()) const { return QStandardItemModel::columnCount(parent); } +inline QVariant promoted_data(const QModelIndex& index, int role = Qt::DisplayRole) const { return QStandardItemModel::data(index, role); } +inline bool promoted_dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) { return QStandardItemModel::dropMimeData(data, action, row, column, parent); } +inline Qt::ItemFlags promoted_flags(const QModelIndex& index) const { return QStandardItemModel::flags(index); } +inline bool promoted_hasChildren(const QModelIndex& parent = QModelIndex()) const { return QStandardItemModel::hasChildren(parent); } +inline QVariant promoted_headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const { return QStandardItemModel::headerData(section, orientation, role); } +inline QModelIndex promoted_index(int row, int column, const QModelIndex& parent = QModelIndex()) const { return QStandardItemModel::index(row, column, parent); } +inline bool promoted_insertColumns(int column, int count, const QModelIndex& parent = QModelIndex()) { return QStandardItemModel::insertColumns(column, count, parent); } +inline bool promoted_insertRows(int row, int count, const QModelIndex& parent = QModelIndex()) { return QStandardItemModel::insertRows(row, count, parent); } +inline QMap promoted_itemData(const QModelIndex& index) const { return QStandardItemModel::itemData(index); } +inline QMimeData* promoted_mimeData(const QList& indexes) const { return QStandardItemModel::mimeData(indexes); } +inline QStringList promoted_mimeTypes() const { return QStandardItemModel::mimeTypes(); } +inline QModelIndex promoted_parent(const QModelIndex& child) const { return QStandardItemModel::parent(child); } +inline bool promoted_removeColumns(int column, int count, const QModelIndex& parent = QModelIndex()) { return QStandardItemModel::removeColumns(column, count, parent); } +inline bool promoted_removeRows(int row, int count, const QModelIndex& parent = QModelIndex()) { return QStandardItemModel::removeRows(row, count, parent); } +inline int promoted_rowCount(const QModelIndex& parent = QModelIndex()) const { return QStandardItemModel::rowCount(parent); } +inline bool promoted_setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) { return QStandardItemModel::setData(index, value, role); } +inline bool promoted_setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role = Qt::EditRole) { return QStandardItemModel::setHeaderData(section, orientation, value, role); } +inline bool promoted_setItemData(const QModelIndex& index, const QMap& roles) { return QStandardItemModel::setItemData(index, roles); } +inline QModelIndex promoted_sibling(int row, int column, const QModelIndex& idx) const { return QStandardItemModel::sibling(row, column, idx); } +inline void promoted_sort(int column, Qt::SortOrder order = Qt::AscendingOrder) { QStandardItemModel::sort(column, order); } +inline Qt::DropActions promoted_supportedDropActions() const { return QStandardItemModel::supportedDropActions(); } +}; + +class PythonQtWrapper_QStandardItemModel : public QObject +{ Q_OBJECT +public: +public slots: +QStandardItemModel* new_QStandardItemModel(QObject* parent = 0); +QStandardItemModel* new_QStandardItemModel(int rows, int columns, QObject* parent = 0); +void delete_QStandardItemModel(QStandardItemModel* obj) { delete obj; } + void appendColumn(QStandardItemModel* theWrappedObject, const QList& items); + void appendRow(QStandardItemModel* theWrappedObject, QStandardItem* item); + void appendRow(QStandardItemModel* theWrappedObject, const QList& items); + void clear(QStandardItemModel* theWrappedObject); + int columnCount(QStandardItemModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const; + QVariant data(QStandardItemModel* theWrappedObject, const QModelIndex& index, int role = Qt::DisplayRole) const; + bool dropMimeData(QStandardItemModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); + QList findItems(QStandardItemModel* theWrappedObject, const QString& text, Qt::MatchFlags flags = Qt::MatchExactly, int column = 0) const; + Qt::ItemFlags flags(QStandardItemModel* theWrappedObject, const QModelIndex& index) const; + bool hasChildren(QStandardItemModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const; + QVariant headerData(QStandardItemModel* theWrappedObject, int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; + QStandardItem* horizontalHeaderItem(QStandardItemModel* theWrappedObject, int column) const; + QModelIndex index(QStandardItemModel* theWrappedObject, int row, int column, const QModelIndex& parent = QModelIndex()) const; + QModelIndex indexFromItem(QStandardItemModel* theWrappedObject, const QStandardItem* item) const; + void insertColumn(QStandardItemModel* theWrappedObject, int column, const QList& items); + bool insertColumns(QStandardItemModel* theWrappedObject, int column, int count, const QModelIndex& parent = QModelIndex()); + void insertRow(QStandardItemModel* theWrappedObject, int row, QStandardItem* item); + void insertRow(QStandardItemModel* theWrappedObject, int row, const QList& items); + bool insertRows(QStandardItemModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex()); + QStandardItem* invisibleRootItem(QStandardItemModel* theWrappedObject) const; + QStandardItem* item(QStandardItemModel* theWrappedObject, int row, int column = 0) const; + QMap itemData(QStandardItemModel* theWrappedObject, const QModelIndex& index) const; + QStandardItem* itemFromIndex(QStandardItemModel* theWrappedObject, const QModelIndex& index) const; + const QStandardItem* itemPrototype(QStandardItemModel* theWrappedObject) const; + QMimeData* mimeData(QStandardItemModel* theWrappedObject, const QList& indexes) const; + QStringList mimeTypes(QStandardItemModel* theWrappedObject) const; + QModelIndex parent(QStandardItemModel* theWrappedObject, const QModelIndex& child) const; + bool removeColumns(QStandardItemModel* theWrappedObject, int column, int count, const QModelIndex& parent = QModelIndex()); + bool removeRows(QStandardItemModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex()); + int rowCount(QStandardItemModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const; + void setColumnCount(QStandardItemModel* theWrappedObject, int columns); + bool setData(QStandardItemModel* theWrappedObject, const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); + bool setHeaderData(QStandardItemModel* theWrappedObject, int section, Qt::Orientation orientation, const QVariant& value, int role = Qt::EditRole); + void setHorizontalHeaderItem(QStandardItemModel* theWrappedObject, int column, QStandardItem* item); + void setHorizontalHeaderLabels(QStandardItemModel* theWrappedObject, const QStringList& labels); + void setItem(QStandardItemModel* theWrappedObject, int row, QStandardItem* item); + void setItem(QStandardItemModel* theWrappedObject, int row, int column, QStandardItem* item); + bool setItemData(QStandardItemModel* theWrappedObject, const QModelIndex& index, const QMap& roles); + void setItemPrototype(QStandardItemModel* theWrappedObject, const QStandardItem* item); + void setItemRoleNames(QStandardItemModel* theWrappedObject, const QHash& roleNames); + void setRowCount(QStandardItemModel* theWrappedObject, int rows); + void setSortRole(QStandardItemModel* theWrappedObject, int role); + void setVerticalHeaderItem(QStandardItemModel* theWrappedObject, int row, QStandardItem* item); + void setVerticalHeaderLabels(QStandardItemModel* theWrappedObject, const QStringList& labels); + QModelIndex sibling(QStandardItemModel* theWrappedObject, int row, int column, const QModelIndex& idx) const; + void sort(QStandardItemModel* theWrappedObject, int column, Qt::SortOrder order = Qt::AscendingOrder); + int sortRole(QStandardItemModel* theWrappedObject) const; + Qt::DropActions supportedDropActions(QStandardItemModel* theWrappedObject) const; + QList takeColumn(QStandardItemModel* theWrappedObject, int column); + QStandardItem* takeHorizontalHeaderItem(QStandardItemModel* theWrappedObject, int column); + QStandardItem* takeItem(QStandardItemModel* theWrappedObject, int row, int column = 0); + QList takeRow(QStandardItemModel* theWrappedObject, int row); + QStandardItem* takeVerticalHeaderItem(QStandardItemModel* theWrappedObject, int row); + QStandardItem* verticalHeaderItem(QStandardItemModel* theWrappedObject, int row) const; +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QStatusBar : public QStatusBar +{ +public: + PythonQtShell_QStatusBar(QWidget* parent = 0):QStatusBar(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QStatusBar(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual QSize sizeHint() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QStatusBar : public QStatusBar +{ public: +inline bool promoted_event(QEvent* arg__1) { return QStatusBar::event(arg__1); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QStatusBar::paintEvent(arg__1); } +inline void promoted_resizeEvent(QResizeEvent* arg__1) { QStatusBar::resizeEvent(arg__1); } +inline void promoted_showEvent(QShowEvent* arg__1) { QStatusBar::showEvent(arg__1); } +}; + +class PythonQtWrapper_QStatusBar : public QObject +{ Q_OBJECT +public: +public slots: +QStatusBar* new_QStatusBar(QWidget* parent = 0); +void delete_QStatusBar(QStatusBar* obj) { delete obj; } + void addPermanentWidget(QStatusBar* theWrappedObject, QWidget* widget, int stretch = 0); + void addWidget(QStatusBar* theWrappedObject, QWidget* widget, int stretch = 0); + QString currentMessage(QStatusBar* theWrappedObject) const; + bool event(QStatusBar* theWrappedObject, QEvent* arg__1); + int insertPermanentWidget(QStatusBar* theWrappedObject, int index, QWidget* widget, int stretch = 0); + int insertWidget(QStatusBar* theWrappedObject, int index, QWidget* widget, int stretch = 0); + bool isSizeGripEnabled(QStatusBar* theWrappedObject) const; + void paintEvent(QStatusBar* theWrappedObject, QPaintEvent* arg__1); + void removeWidget(QStatusBar* theWrappedObject, QWidget* widget); + void resizeEvent(QStatusBar* theWrappedObject, QResizeEvent* arg__1); + void setSizeGripEnabled(QStatusBar* theWrappedObject, bool arg__1); + void showEvent(QStatusBar* theWrappedObject, QShowEvent* arg__1); +}; + +#endif + + + +class PythonQtWrapper_QStatusTipEvent : public QObject +{ Q_OBJECT +public: +public slots: +QStatusTipEvent* new_QStatusTipEvent(const QString& tip); +void delete_QStatusTipEvent(QStatusTipEvent* obj) { delete obj; } + QString tip(QStatusTipEvent* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QStringListModel : public QStringListModel +{ +public: + PythonQtShell_QStringListModel(QObject* parent = 0):QStringListModel(parent),_wrapper(NULL) {}; + PythonQtShell_QStringListModel(const QStringList& strings, QObject* parent = 0):QStringListModel(strings, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QStringListModel(); + +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 childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +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 bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fetchMore(const QModelIndex& parent); +virtual Qt::ItemFlags flags(const QModelIndex& index) 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 = QModelIndex()); +virtual QMap itemData(const QModelIndex& index) const; +virtual QList match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const; +virtual QMimeData* mimeData(const QList& 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 = QModelIndex()); +virtual void revert(); +virtual QHash roleNames() const; +virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; +virtual bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); +virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role); +virtual bool setItemData(const QModelIndex& index, const QMap& roles); +virtual QModelIndex sibling(int row, int column, const QModelIndex& idx) const; +virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder); +virtual QSize span(const QModelIndex& index) const; +virtual bool submit(); +virtual Qt::DropActions supportedDragActions() const; +virtual Qt::DropActions supportedDropActions() const; +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QStringListModel : public QStringListModel +{ public: +inline QVariant promoted_data(const QModelIndex& index, int role) const { return QStringListModel::data(index, role); } +inline Qt::ItemFlags promoted_flags(const QModelIndex& index) const { return QStringListModel::flags(index); } +inline bool promoted_insertRows(int row, int count, const QModelIndex& parent = QModelIndex()) { return QStringListModel::insertRows(row, count, parent); } +inline bool promoted_removeRows(int row, int count, const QModelIndex& parent = QModelIndex()) { return QStringListModel::removeRows(row, count, parent); } +inline int promoted_rowCount(const QModelIndex& parent = QModelIndex()) const { return QStringListModel::rowCount(parent); } +inline bool promoted_setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) { return QStringListModel::setData(index, value, role); } +inline QModelIndex promoted_sibling(int row, int column, const QModelIndex& idx) const { return QStringListModel::sibling(row, column, idx); } +inline void promoted_sort(int column, Qt::SortOrder order = Qt::AscendingOrder) { QStringListModel::sort(column, order); } +inline Qt::DropActions promoted_supportedDropActions() const { return QStringListModel::supportedDropActions(); } +}; + +class PythonQtWrapper_QStringListModel : public QObject +{ Q_OBJECT +public: +public slots: +QStringListModel* new_QStringListModel(QObject* parent = 0); +QStringListModel* new_QStringListModel(const QStringList& strings, QObject* parent = 0); +void delete_QStringListModel(QStringListModel* obj) { delete obj; } + QVariant data(QStringListModel* theWrappedObject, const QModelIndex& index, int role) const; + Qt::ItemFlags flags(QStringListModel* theWrappedObject, const QModelIndex& index) const; + bool insertRows(QStringListModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex()); + bool removeRows(QStringListModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex()); + int rowCount(QStringListModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const; + bool setData(QStringListModel* theWrappedObject, const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); + void setStringList(QStringListModel* theWrappedObject, const QStringList& strings); + QModelIndex sibling(QStringListModel* theWrappedObject, int row, int column, const QModelIndex& idx) const; + void sort(QStringListModel* theWrappedObject, int column, Qt::SortOrder order = Qt::AscendingOrder); + QStringList stringList(QStringListModel* theWrappedObject) const; + Qt::DropActions supportedDropActions(QStringListModel* theWrappedObject) const; +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QStyle : public QStyle +{ +public: + PythonQtShell_QStyle():QStyle(),_wrapper(NULL) {}; + + ~PythonQtShell_QStyle(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual void drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* widget = 0) const; +virtual void drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; +virtual void drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const; +virtual void drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole = QPalette::NoRole) const; +virtual void drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const; +virtual QStyle::SubControl hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* widget = 0) const; +virtual QRect itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const; +virtual QRect itemTextRect(const QFontMetrics& fm, const QRect& r, int flags, bool enabled, const QString& text) const; +virtual int layoutSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption* option = 0, const QWidget* widget = 0) const; +virtual int pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option = 0, const QWidget* widget = 0) const; +virtual void polish(QApplication* arg__1); +virtual void polish(QPalette& arg__1); +virtual void polish(QWidget* arg__1); +virtual QSize sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* w = 0) const; +virtual QIcon standardIcon(QStyle::StandardPixmap standardIcon, const QStyleOption* option = 0, const QWidget* widget = 0) const; +virtual QPalette standardPalette() const; +virtual QPixmap standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt = 0, const QWidget* widget = 0) const; +virtual int styleHint(QStyle::StyleHint stylehint, const QStyleOption* opt = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const; +virtual QRect subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget = 0) const; +virtual QRect subElementRect(QStyle::SubElement subElement, const QStyleOption* option, const QWidget* widget = 0) const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual void unpolish(QApplication* arg__1); +virtual void unpolish(QWidget* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QStyle : public QStyle +{ public: +inline void promoted_drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const { QStyle::drawItemPixmap(painter, rect, alignment, pixmap); } +inline void promoted_drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole = QPalette::NoRole) const { QStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); } +inline QRect promoted_itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const { return QStyle::itemPixmapRect(r, flags, pixmap); } +inline void promoted_polish(QApplication* arg__1) { QStyle::polish(arg__1); } +inline void promoted_polish(QPalette& arg__1) { QStyle::polish(arg__1); } +inline void promoted_polish(QWidget* arg__1) { QStyle::polish(arg__1); } +inline QPalette promoted_standardPalette() const { return QStyle::standardPalette(); } +inline void promoted_unpolish(QApplication* arg__1) { QStyle::unpolish(arg__1); } +inline void promoted_unpolish(QWidget* arg__1) { QStyle::unpolish(arg__1); } +}; + +class PythonQtWrapper_QStyle : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ControlElement StyleHint StateFlag SubElement ContentsType StandardPixmap PrimitiveElement ComplexControl PixelMetric SubControl RequestSoftwareInputPanel ) +Q_FLAGS(State SubControls ) +enum ControlElement{ + CE_PushButton = QStyle::CE_PushButton, CE_PushButtonBevel = QStyle::CE_PushButtonBevel, CE_PushButtonLabel = QStyle::CE_PushButtonLabel, CE_CheckBox = QStyle::CE_CheckBox, CE_CheckBoxLabel = QStyle::CE_CheckBoxLabel, CE_RadioButton = QStyle::CE_RadioButton, CE_RadioButtonLabel = QStyle::CE_RadioButtonLabel, CE_TabBarTab = QStyle::CE_TabBarTab, CE_TabBarTabShape = QStyle::CE_TabBarTabShape, CE_TabBarTabLabel = QStyle::CE_TabBarTabLabel, CE_ProgressBar = QStyle::CE_ProgressBar, CE_ProgressBarGroove = QStyle::CE_ProgressBarGroove, CE_ProgressBarContents = QStyle::CE_ProgressBarContents, CE_ProgressBarLabel = QStyle::CE_ProgressBarLabel, CE_MenuItem = QStyle::CE_MenuItem, CE_MenuScroller = QStyle::CE_MenuScroller, CE_MenuVMargin = QStyle::CE_MenuVMargin, CE_MenuHMargin = QStyle::CE_MenuHMargin, CE_MenuTearoff = QStyle::CE_MenuTearoff, CE_MenuEmptyArea = QStyle::CE_MenuEmptyArea, CE_MenuBarItem = QStyle::CE_MenuBarItem, CE_MenuBarEmptyArea = QStyle::CE_MenuBarEmptyArea, CE_ToolButtonLabel = QStyle::CE_ToolButtonLabel, CE_Header = QStyle::CE_Header, CE_HeaderSection = QStyle::CE_HeaderSection, CE_HeaderLabel = QStyle::CE_HeaderLabel, CE_ToolBoxTab = QStyle::CE_ToolBoxTab, CE_SizeGrip = QStyle::CE_SizeGrip, CE_Splitter = QStyle::CE_Splitter, CE_RubberBand = QStyle::CE_RubberBand, CE_DockWidgetTitle = QStyle::CE_DockWidgetTitle, CE_ScrollBarAddLine = QStyle::CE_ScrollBarAddLine, CE_ScrollBarSubLine = QStyle::CE_ScrollBarSubLine, CE_ScrollBarAddPage = QStyle::CE_ScrollBarAddPage, CE_ScrollBarSubPage = QStyle::CE_ScrollBarSubPage, CE_ScrollBarSlider = QStyle::CE_ScrollBarSlider, CE_ScrollBarFirst = QStyle::CE_ScrollBarFirst, CE_ScrollBarLast = QStyle::CE_ScrollBarLast, CE_FocusFrame = QStyle::CE_FocusFrame, CE_ComboBoxLabel = QStyle::CE_ComboBoxLabel, CE_ToolBar = QStyle::CE_ToolBar, CE_ToolBoxTabShape = QStyle::CE_ToolBoxTabShape, CE_ToolBoxTabLabel = QStyle::CE_ToolBoxTabLabel, CE_HeaderEmptyArea = QStyle::CE_HeaderEmptyArea, CE_ColumnViewGrip = QStyle::CE_ColumnViewGrip, CE_ItemViewItem = QStyle::CE_ItemViewItem, CE_ShapedFrame = QStyle::CE_ShapedFrame, CE_CustomBase = QStyle::CE_CustomBase}; +enum StyleHint{ + SH_EtchDisabledText = QStyle::SH_EtchDisabledText, SH_DitherDisabledText = QStyle::SH_DitherDisabledText, SH_ScrollBar_MiddleClickAbsolutePosition = QStyle::SH_ScrollBar_MiddleClickAbsolutePosition, SH_ScrollBar_ScrollWhenPointerLeavesControl = QStyle::SH_ScrollBar_ScrollWhenPointerLeavesControl, SH_TabBar_SelectMouseType = QStyle::SH_TabBar_SelectMouseType, SH_TabBar_Alignment = QStyle::SH_TabBar_Alignment, SH_Header_ArrowAlignment = QStyle::SH_Header_ArrowAlignment, SH_Slider_SnapToValue = QStyle::SH_Slider_SnapToValue, SH_Slider_SloppyKeyEvents = QStyle::SH_Slider_SloppyKeyEvents, SH_ProgressDialog_CenterCancelButton = QStyle::SH_ProgressDialog_CenterCancelButton, SH_ProgressDialog_TextLabelAlignment = QStyle::SH_ProgressDialog_TextLabelAlignment, SH_PrintDialog_RightAlignButtons = QStyle::SH_PrintDialog_RightAlignButtons, SH_MainWindow_SpaceBelowMenuBar = QStyle::SH_MainWindow_SpaceBelowMenuBar, SH_FontDialog_SelectAssociatedText = QStyle::SH_FontDialog_SelectAssociatedText, SH_Menu_AllowActiveAndDisabled = QStyle::SH_Menu_AllowActiveAndDisabled, SH_Menu_SpaceActivatesItem = QStyle::SH_Menu_SpaceActivatesItem, SH_Menu_SubMenuPopupDelay = QStyle::SH_Menu_SubMenuPopupDelay, SH_ScrollView_FrameOnlyAroundContents = QStyle::SH_ScrollView_FrameOnlyAroundContents, SH_MenuBar_AltKeyNavigation = QStyle::SH_MenuBar_AltKeyNavigation, SH_ComboBox_ListMouseTracking = QStyle::SH_ComboBox_ListMouseTracking, SH_Menu_MouseTracking = QStyle::SH_Menu_MouseTracking, SH_MenuBar_MouseTracking = QStyle::SH_MenuBar_MouseTracking, SH_ItemView_ChangeHighlightOnFocus = QStyle::SH_ItemView_ChangeHighlightOnFocus, SH_Widget_ShareActivation = QStyle::SH_Widget_ShareActivation, SH_Workspace_FillSpaceOnMaximize = QStyle::SH_Workspace_FillSpaceOnMaximize, SH_ComboBox_Popup = QStyle::SH_ComboBox_Popup, SH_TitleBar_NoBorder = QStyle::SH_TitleBar_NoBorder, SH_Slider_StopMouseOverSlider = QStyle::SH_Slider_StopMouseOverSlider, SH_ScrollBar_StopMouseOverSlider = QStyle::SH_ScrollBar_StopMouseOverSlider, SH_BlinkCursorWhenTextSelected = QStyle::SH_BlinkCursorWhenTextSelected, SH_RichText_FullWidthSelection = QStyle::SH_RichText_FullWidthSelection, SH_Menu_Scrollable = QStyle::SH_Menu_Scrollable, SH_GroupBox_TextLabelVerticalAlignment = QStyle::SH_GroupBox_TextLabelVerticalAlignment, SH_GroupBox_TextLabelColor = QStyle::SH_GroupBox_TextLabelColor, SH_Menu_SloppySubMenus = QStyle::SH_Menu_SloppySubMenus, SH_Table_GridLineColor = QStyle::SH_Table_GridLineColor, SH_LineEdit_PasswordCharacter = QStyle::SH_LineEdit_PasswordCharacter, SH_DialogButtons_DefaultButton = QStyle::SH_DialogButtons_DefaultButton, SH_ToolBox_SelectedPageTitleBold = QStyle::SH_ToolBox_SelectedPageTitleBold, SH_TabBar_PreferNoArrows = QStyle::SH_TabBar_PreferNoArrows, SH_ScrollBar_LeftClickAbsolutePosition = QStyle::SH_ScrollBar_LeftClickAbsolutePosition, SH_ListViewExpand_SelectMouseType = QStyle::SH_ListViewExpand_SelectMouseType, SH_UnderlineShortcut = QStyle::SH_UnderlineShortcut, SH_SpinBox_AnimateButton = QStyle::SH_SpinBox_AnimateButton, SH_SpinBox_KeyPressAutoRepeatRate = QStyle::SH_SpinBox_KeyPressAutoRepeatRate, SH_SpinBox_ClickAutoRepeatRate = QStyle::SH_SpinBox_ClickAutoRepeatRate, SH_Menu_FillScreenWithScroll = QStyle::SH_Menu_FillScreenWithScroll, SH_ToolTipLabel_Opacity = QStyle::SH_ToolTipLabel_Opacity, SH_DrawMenuBarSeparator = QStyle::SH_DrawMenuBarSeparator, SH_TitleBar_ModifyNotification = QStyle::SH_TitleBar_ModifyNotification, SH_Button_FocusPolicy = QStyle::SH_Button_FocusPolicy, SH_MessageBox_UseBorderForButtonSpacing = QStyle::SH_MessageBox_UseBorderForButtonSpacing, SH_TitleBar_AutoRaise = QStyle::SH_TitleBar_AutoRaise, SH_ToolButton_PopupDelay = QStyle::SH_ToolButton_PopupDelay, SH_FocusFrame_Mask = QStyle::SH_FocusFrame_Mask, SH_RubberBand_Mask = QStyle::SH_RubberBand_Mask, SH_WindowFrame_Mask = QStyle::SH_WindowFrame_Mask, SH_SpinControls_DisableOnBounds = QStyle::SH_SpinControls_DisableOnBounds, SH_Dial_BackgroundRole = QStyle::SH_Dial_BackgroundRole, SH_ComboBox_LayoutDirection = QStyle::SH_ComboBox_LayoutDirection, SH_ItemView_EllipsisLocation = QStyle::SH_ItemView_EllipsisLocation, SH_ItemView_ShowDecorationSelected = QStyle::SH_ItemView_ShowDecorationSelected, SH_ItemView_ActivateItemOnSingleClick = QStyle::SH_ItemView_ActivateItemOnSingleClick, SH_ScrollBar_ContextMenu = QStyle::SH_ScrollBar_ContextMenu, SH_ScrollBar_RollBetweenButtons = QStyle::SH_ScrollBar_RollBetweenButtons, SH_Slider_AbsoluteSetButtons = QStyle::SH_Slider_AbsoluteSetButtons, SH_Slider_PageSetButtons = QStyle::SH_Slider_PageSetButtons, SH_Menu_KeyboardSearch = QStyle::SH_Menu_KeyboardSearch, SH_TabBar_ElideMode = QStyle::SH_TabBar_ElideMode, SH_DialogButtonLayout = QStyle::SH_DialogButtonLayout, SH_ComboBox_PopupFrameStyle = QStyle::SH_ComboBox_PopupFrameStyle, SH_MessageBox_TextInteractionFlags = QStyle::SH_MessageBox_TextInteractionFlags, SH_DialogButtonBox_ButtonsHaveIcons = QStyle::SH_DialogButtonBox_ButtonsHaveIcons, SH_SpellCheckUnderlineStyle = QStyle::SH_SpellCheckUnderlineStyle, SH_MessageBox_CenterButtons = QStyle::SH_MessageBox_CenterButtons, SH_Menu_SelectionWrap = QStyle::SH_Menu_SelectionWrap, SH_ItemView_MovementWithoutUpdatingSelection = QStyle::SH_ItemView_MovementWithoutUpdatingSelection, SH_ToolTip_Mask = QStyle::SH_ToolTip_Mask, SH_FocusFrame_AboveWidget = QStyle::SH_FocusFrame_AboveWidget, SH_TextControl_FocusIndicatorTextCharFormat = QStyle::SH_TextControl_FocusIndicatorTextCharFormat, SH_WizardStyle = QStyle::SH_WizardStyle, SH_ItemView_ArrowKeysNavigateIntoChildren = QStyle::SH_ItemView_ArrowKeysNavigateIntoChildren, SH_Menu_Mask = QStyle::SH_Menu_Mask, SH_Menu_FlashTriggeredItem = QStyle::SH_Menu_FlashTriggeredItem, SH_Menu_FadeOutOnHide = QStyle::SH_Menu_FadeOutOnHide, SH_SpinBox_ClickAutoRepeatThreshold = QStyle::SH_SpinBox_ClickAutoRepeatThreshold, SH_ItemView_PaintAlternatingRowColorsForEmptyArea = QStyle::SH_ItemView_PaintAlternatingRowColorsForEmptyArea, SH_FormLayoutWrapPolicy = QStyle::SH_FormLayoutWrapPolicy, SH_TabWidget_DefaultTabPosition = QStyle::SH_TabWidget_DefaultTabPosition, SH_ToolBar_Movable = QStyle::SH_ToolBar_Movable, SH_FormLayoutFieldGrowthPolicy = QStyle::SH_FormLayoutFieldGrowthPolicy, SH_FormLayoutFormAlignment = QStyle::SH_FormLayoutFormAlignment, SH_FormLayoutLabelAlignment = QStyle::SH_FormLayoutLabelAlignment, SH_ItemView_DrawDelegateFrame = QStyle::SH_ItemView_DrawDelegateFrame, SH_TabBar_CloseButtonPosition = QStyle::SH_TabBar_CloseButtonPosition, SH_DockWidget_ButtonsHaveFrame = QStyle::SH_DockWidget_ButtonsHaveFrame, SH_ToolButtonStyle = QStyle::SH_ToolButtonStyle, SH_RequestSoftwareInputPanel = QStyle::SH_RequestSoftwareInputPanel, SH_ScrollBar_Transient = QStyle::SH_ScrollBar_Transient, SH_CustomBase = QStyle::SH_CustomBase}; +enum StateFlag{ + State_None = QStyle::State_None, State_Enabled = QStyle::State_Enabled, State_Raised = QStyle::State_Raised, State_Sunken = QStyle::State_Sunken, State_Off = QStyle::State_Off, State_NoChange = QStyle::State_NoChange, State_On = QStyle::State_On, State_DownArrow = QStyle::State_DownArrow, State_Horizontal = QStyle::State_Horizontal, State_HasFocus = QStyle::State_HasFocus, State_Top = QStyle::State_Top, State_Bottom = QStyle::State_Bottom, State_FocusAtBorder = QStyle::State_FocusAtBorder, State_AutoRaise = QStyle::State_AutoRaise, State_MouseOver = QStyle::State_MouseOver, State_UpArrow = QStyle::State_UpArrow, State_Selected = QStyle::State_Selected, State_Active = QStyle::State_Active, State_Window = QStyle::State_Window, State_Open = QStyle::State_Open, State_Children = QStyle::State_Children, State_Item = QStyle::State_Item, State_Sibling = QStyle::State_Sibling, State_Editing = QStyle::State_Editing, State_KeyboardFocusChange = QStyle::State_KeyboardFocusChange, State_ReadOnly = QStyle::State_ReadOnly, State_Small = QStyle::State_Small, State_Mini = QStyle::State_Mini}; +enum SubElement{ + SE_PushButtonContents = QStyle::SE_PushButtonContents, SE_PushButtonFocusRect = QStyle::SE_PushButtonFocusRect, SE_CheckBoxIndicator = QStyle::SE_CheckBoxIndicator, SE_CheckBoxContents = QStyle::SE_CheckBoxContents, SE_CheckBoxFocusRect = QStyle::SE_CheckBoxFocusRect, SE_CheckBoxClickRect = QStyle::SE_CheckBoxClickRect, SE_RadioButtonIndicator = QStyle::SE_RadioButtonIndicator, SE_RadioButtonContents = QStyle::SE_RadioButtonContents, SE_RadioButtonFocusRect = QStyle::SE_RadioButtonFocusRect, SE_RadioButtonClickRect = QStyle::SE_RadioButtonClickRect, SE_ComboBoxFocusRect = QStyle::SE_ComboBoxFocusRect, SE_SliderFocusRect = QStyle::SE_SliderFocusRect, SE_ProgressBarGroove = QStyle::SE_ProgressBarGroove, SE_ProgressBarContents = QStyle::SE_ProgressBarContents, SE_ProgressBarLabel = QStyle::SE_ProgressBarLabel, SE_ToolBoxTabContents = QStyle::SE_ToolBoxTabContents, SE_HeaderLabel = QStyle::SE_HeaderLabel, SE_HeaderArrow = QStyle::SE_HeaderArrow, SE_TabWidgetTabBar = QStyle::SE_TabWidgetTabBar, SE_TabWidgetTabPane = QStyle::SE_TabWidgetTabPane, SE_TabWidgetTabContents = QStyle::SE_TabWidgetTabContents, SE_TabWidgetLeftCorner = QStyle::SE_TabWidgetLeftCorner, SE_TabWidgetRightCorner = QStyle::SE_TabWidgetRightCorner, SE_ViewItemCheckIndicator = QStyle::SE_ViewItemCheckIndicator, SE_ItemViewItemCheckIndicator = QStyle::SE_ItemViewItemCheckIndicator, SE_TabBarTearIndicator = QStyle::SE_TabBarTearIndicator, SE_TreeViewDisclosureItem = QStyle::SE_TreeViewDisclosureItem, SE_LineEditContents = QStyle::SE_LineEditContents, SE_FrameContents = QStyle::SE_FrameContents, SE_DockWidgetCloseButton = QStyle::SE_DockWidgetCloseButton, SE_DockWidgetFloatButton = QStyle::SE_DockWidgetFloatButton, SE_DockWidgetTitleBarText = QStyle::SE_DockWidgetTitleBarText, SE_DockWidgetIcon = QStyle::SE_DockWidgetIcon, SE_CheckBoxLayoutItem = QStyle::SE_CheckBoxLayoutItem, SE_ComboBoxLayoutItem = QStyle::SE_ComboBoxLayoutItem, SE_DateTimeEditLayoutItem = QStyle::SE_DateTimeEditLayoutItem, SE_DialogButtonBoxLayoutItem = QStyle::SE_DialogButtonBoxLayoutItem, SE_LabelLayoutItem = QStyle::SE_LabelLayoutItem, SE_ProgressBarLayoutItem = QStyle::SE_ProgressBarLayoutItem, SE_PushButtonLayoutItem = QStyle::SE_PushButtonLayoutItem, SE_RadioButtonLayoutItem = QStyle::SE_RadioButtonLayoutItem, SE_SliderLayoutItem = QStyle::SE_SliderLayoutItem, SE_SpinBoxLayoutItem = QStyle::SE_SpinBoxLayoutItem, SE_ToolButtonLayoutItem = QStyle::SE_ToolButtonLayoutItem, SE_FrameLayoutItem = QStyle::SE_FrameLayoutItem, SE_GroupBoxLayoutItem = QStyle::SE_GroupBoxLayoutItem, SE_TabWidgetLayoutItem = QStyle::SE_TabWidgetLayoutItem, SE_ItemViewItemDecoration = QStyle::SE_ItemViewItemDecoration, SE_ItemViewItemText = QStyle::SE_ItemViewItemText, SE_ItemViewItemFocusRect = QStyle::SE_ItemViewItemFocusRect, SE_TabBarTabLeftButton = QStyle::SE_TabBarTabLeftButton, SE_TabBarTabRightButton = QStyle::SE_TabBarTabRightButton, SE_TabBarTabText = QStyle::SE_TabBarTabText, SE_ShapedFrameContents = QStyle::SE_ShapedFrameContents, SE_ToolBarHandle = QStyle::SE_ToolBarHandle, SE_CustomBase = QStyle::SE_CustomBase}; +enum ContentsType{ + CT_PushButton = QStyle::CT_PushButton, CT_CheckBox = QStyle::CT_CheckBox, CT_RadioButton = QStyle::CT_RadioButton, CT_ToolButton = QStyle::CT_ToolButton, CT_ComboBox = QStyle::CT_ComboBox, CT_Splitter = QStyle::CT_Splitter, CT_ProgressBar = QStyle::CT_ProgressBar, CT_MenuItem = QStyle::CT_MenuItem, CT_MenuBarItem = QStyle::CT_MenuBarItem, CT_MenuBar = QStyle::CT_MenuBar, CT_Menu = QStyle::CT_Menu, CT_TabBarTab = QStyle::CT_TabBarTab, CT_Slider = QStyle::CT_Slider, CT_ScrollBar = QStyle::CT_ScrollBar, CT_LineEdit = QStyle::CT_LineEdit, CT_SpinBox = QStyle::CT_SpinBox, CT_SizeGrip = QStyle::CT_SizeGrip, CT_TabWidget = QStyle::CT_TabWidget, CT_DialogButtons = QStyle::CT_DialogButtons, CT_HeaderSection = QStyle::CT_HeaderSection, CT_GroupBox = QStyle::CT_GroupBox, CT_MdiControls = QStyle::CT_MdiControls, CT_ItemViewItem = QStyle::CT_ItemViewItem, CT_CustomBase = QStyle::CT_CustomBase}; +enum StandardPixmap{ + SP_TitleBarMenuButton = QStyle::SP_TitleBarMenuButton, SP_TitleBarMinButton = QStyle::SP_TitleBarMinButton, SP_TitleBarMaxButton = QStyle::SP_TitleBarMaxButton, SP_TitleBarCloseButton = QStyle::SP_TitleBarCloseButton, SP_TitleBarNormalButton = QStyle::SP_TitleBarNormalButton, SP_TitleBarShadeButton = QStyle::SP_TitleBarShadeButton, SP_TitleBarUnshadeButton = QStyle::SP_TitleBarUnshadeButton, SP_TitleBarContextHelpButton = QStyle::SP_TitleBarContextHelpButton, SP_DockWidgetCloseButton = QStyle::SP_DockWidgetCloseButton, SP_MessageBoxInformation = QStyle::SP_MessageBoxInformation, SP_MessageBoxWarning = QStyle::SP_MessageBoxWarning, SP_MessageBoxCritical = QStyle::SP_MessageBoxCritical, SP_MessageBoxQuestion = QStyle::SP_MessageBoxQuestion, SP_DesktopIcon = QStyle::SP_DesktopIcon, SP_TrashIcon = QStyle::SP_TrashIcon, SP_ComputerIcon = QStyle::SP_ComputerIcon, SP_DriveFDIcon = QStyle::SP_DriveFDIcon, SP_DriveHDIcon = QStyle::SP_DriveHDIcon, SP_DriveCDIcon = QStyle::SP_DriveCDIcon, SP_DriveDVDIcon = QStyle::SP_DriveDVDIcon, SP_DriveNetIcon = QStyle::SP_DriveNetIcon, SP_DirOpenIcon = QStyle::SP_DirOpenIcon, SP_DirClosedIcon = QStyle::SP_DirClosedIcon, SP_DirLinkIcon = QStyle::SP_DirLinkIcon, SP_DirLinkOpenIcon = QStyle::SP_DirLinkOpenIcon, SP_FileIcon = QStyle::SP_FileIcon, SP_FileLinkIcon = QStyle::SP_FileLinkIcon, SP_ToolBarHorizontalExtensionButton = QStyle::SP_ToolBarHorizontalExtensionButton, SP_ToolBarVerticalExtensionButton = QStyle::SP_ToolBarVerticalExtensionButton, SP_FileDialogStart = QStyle::SP_FileDialogStart, SP_FileDialogEnd = QStyle::SP_FileDialogEnd, SP_FileDialogToParent = QStyle::SP_FileDialogToParent, SP_FileDialogNewFolder = QStyle::SP_FileDialogNewFolder, SP_FileDialogDetailedView = QStyle::SP_FileDialogDetailedView, SP_FileDialogInfoView = QStyle::SP_FileDialogInfoView, SP_FileDialogContentsView = QStyle::SP_FileDialogContentsView, SP_FileDialogListView = QStyle::SP_FileDialogListView, SP_FileDialogBack = QStyle::SP_FileDialogBack, SP_DirIcon = QStyle::SP_DirIcon, SP_DialogOkButton = QStyle::SP_DialogOkButton, SP_DialogCancelButton = QStyle::SP_DialogCancelButton, SP_DialogHelpButton = QStyle::SP_DialogHelpButton, SP_DialogOpenButton = QStyle::SP_DialogOpenButton, SP_DialogSaveButton = QStyle::SP_DialogSaveButton, SP_DialogCloseButton = QStyle::SP_DialogCloseButton, SP_DialogApplyButton = QStyle::SP_DialogApplyButton, SP_DialogResetButton = QStyle::SP_DialogResetButton, SP_DialogDiscardButton = QStyle::SP_DialogDiscardButton, SP_DialogYesButton = QStyle::SP_DialogYesButton, SP_DialogNoButton = QStyle::SP_DialogNoButton, SP_ArrowUp = QStyle::SP_ArrowUp, SP_ArrowDown = QStyle::SP_ArrowDown, SP_ArrowLeft = QStyle::SP_ArrowLeft, SP_ArrowRight = QStyle::SP_ArrowRight, SP_ArrowBack = QStyle::SP_ArrowBack, SP_ArrowForward = QStyle::SP_ArrowForward, SP_DirHomeIcon = QStyle::SP_DirHomeIcon, SP_CommandLink = QStyle::SP_CommandLink, SP_VistaShield = QStyle::SP_VistaShield, SP_BrowserReload = QStyle::SP_BrowserReload, SP_BrowserStop = QStyle::SP_BrowserStop, SP_MediaPlay = QStyle::SP_MediaPlay, SP_MediaStop = QStyle::SP_MediaStop, SP_MediaPause = QStyle::SP_MediaPause, SP_MediaSkipForward = QStyle::SP_MediaSkipForward, SP_MediaSkipBackward = QStyle::SP_MediaSkipBackward, SP_MediaSeekForward = QStyle::SP_MediaSeekForward, SP_MediaSeekBackward = QStyle::SP_MediaSeekBackward, SP_MediaVolume = QStyle::SP_MediaVolume, SP_MediaVolumeMuted = QStyle::SP_MediaVolumeMuted, SP_CustomBase = QStyle::SP_CustomBase}; +enum PrimitiveElement{ + PE_Frame = QStyle::PE_Frame, PE_FrameDefaultButton = QStyle::PE_FrameDefaultButton, PE_FrameDockWidget = QStyle::PE_FrameDockWidget, PE_FrameFocusRect = QStyle::PE_FrameFocusRect, PE_FrameGroupBox = QStyle::PE_FrameGroupBox, PE_FrameLineEdit = QStyle::PE_FrameLineEdit, PE_FrameMenu = QStyle::PE_FrameMenu, PE_FrameStatusBar = QStyle::PE_FrameStatusBar, PE_FrameStatusBarItem = QStyle::PE_FrameStatusBarItem, PE_FrameTabWidget = QStyle::PE_FrameTabWidget, PE_FrameWindow = QStyle::PE_FrameWindow, PE_FrameButtonBevel = QStyle::PE_FrameButtonBevel, PE_FrameButtonTool = QStyle::PE_FrameButtonTool, PE_FrameTabBarBase = QStyle::PE_FrameTabBarBase, PE_PanelButtonCommand = QStyle::PE_PanelButtonCommand, PE_PanelButtonBevel = QStyle::PE_PanelButtonBevel, PE_PanelButtonTool = QStyle::PE_PanelButtonTool, PE_PanelMenuBar = QStyle::PE_PanelMenuBar, PE_PanelToolBar = QStyle::PE_PanelToolBar, PE_PanelLineEdit = QStyle::PE_PanelLineEdit, PE_IndicatorArrowDown = QStyle::PE_IndicatorArrowDown, PE_IndicatorArrowLeft = QStyle::PE_IndicatorArrowLeft, PE_IndicatorArrowRight = QStyle::PE_IndicatorArrowRight, PE_IndicatorArrowUp = QStyle::PE_IndicatorArrowUp, PE_IndicatorBranch = QStyle::PE_IndicatorBranch, PE_IndicatorButtonDropDown = QStyle::PE_IndicatorButtonDropDown, PE_IndicatorViewItemCheck = QStyle::PE_IndicatorViewItemCheck, PE_IndicatorItemViewItemCheck = QStyle::PE_IndicatorItemViewItemCheck, PE_IndicatorCheckBox = QStyle::PE_IndicatorCheckBox, PE_IndicatorDockWidgetResizeHandle = QStyle::PE_IndicatorDockWidgetResizeHandle, PE_IndicatorHeaderArrow = QStyle::PE_IndicatorHeaderArrow, PE_IndicatorMenuCheckMark = QStyle::PE_IndicatorMenuCheckMark, PE_IndicatorProgressChunk = QStyle::PE_IndicatorProgressChunk, PE_IndicatorRadioButton = QStyle::PE_IndicatorRadioButton, PE_IndicatorSpinDown = QStyle::PE_IndicatorSpinDown, PE_IndicatorSpinMinus = QStyle::PE_IndicatorSpinMinus, PE_IndicatorSpinPlus = QStyle::PE_IndicatorSpinPlus, PE_IndicatorSpinUp = QStyle::PE_IndicatorSpinUp, PE_IndicatorToolBarHandle = QStyle::PE_IndicatorToolBarHandle, PE_IndicatorToolBarSeparator = QStyle::PE_IndicatorToolBarSeparator, PE_PanelTipLabel = QStyle::PE_PanelTipLabel, PE_IndicatorTabTear = QStyle::PE_IndicatorTabTear, PE_PanelScrollAreaCorner = QStyle::PE_PanelScrollAreaCorner, PE_Widget = QStyle::PE_Widget, PE_IndicatorColumnViewArrow = QStyle::PE_IndicatorColumnViewArrow, PE_IndicatorItemViewItemDrop = QStyle::PE_IndicatorItemViewItemDrop, PE_PanelItemViewItem = QStyle::PE_PanelItemViewItem, PE_PanelItemViewRow = QStyle::PE_PanelItemViewRow, PE_PanelStatusBar = QStyle::PE_PanelStatusBar, PE_IndicatorTabClose = QStyle::PE_IndicatorTabClose, PE_PanelMenu = QStyle::PE_PanelMenu, PE_CustomBase = QStyle::PE_CustomBase}; +enum ComplexControl{ + CC_SpinBox = QStyle::CC_SpinBox, CC_ComboBox = QStyle::CC_ComboBox, CC_ScrollBar = QStyle::CC_ScrollBar, CC_Slider = QStyle::CC_Slider, CC_ToolButton = QStyle::CC_ToolButton, CC_TitleBar = QStyle::CC_TitleBar, CC_Dial = QStyle::CC_Dial, CC_GroupBox = QStyle::CC_GroupBox, CC_MdiControls = QStyle::CC_MdiControls, CC_CustomBase = QStyle::CC_CustomBase}; +enum PixelMetric{ + PM_ButtonMargin = QStyle::PM_ButtonMargin, PM_ButtonDefaultIndicator = QStyle::PM_ButtonDefaultIndicator, PM_MenuButtonIndicator = QStyle::PM_MenuButtonIndicator, PM_ButtonShiftHorizontal = QStyle::PM_ButtonShiftHorizontal, PM_ButtonShiftVertical = QStyle::PM_ButtonShiftVertical, PM_DefaultFrameWidth = QStyle::PM_DefaultFrameWidth, PM_SpinBoxFrameWidth = QStyle::PM_SpinBoxFrameWidth, PM_ComboBoxFrameWidth = QStyle::PM_ComboBoxFrameWidth, PM_MaximumDragDistance = QStyle::PM_MaximumDragDistance, PM_ScrollBarExtent = QStyle::PM_ScrollBarExtent, PM_ScrollBarSliderMin = QStyle::PM_ScrollBarSliderMin, PM_SliderThickness = QStyle::PM_SliderThickness, PM_SliderControlThickness = QStyle::PM_SliderControlThickness, PM_SliderLength = QStyle::PM_SliderLength, PM_SliderTickmarkOffset = QStyle::PM_SliderTickmarkOffset, PM_SliderSpaceAvailable = QStyle::PM_SliderSpaceAvailable, PM_DockWidgetSeparatorExtent = QStyle::PM_DockWidgetSeparatorExtent, PM_DockWidgetHandleExtent = QStyle::PM_DockWidgetHandleExtent, PM_DockWidgetFrameWidth = QStyle::PM_DockWidgetFrameWidth, PM_TabBarTabOverlap = QStyle::PM_TabBarTabOverlap, PM_TabBarTabHSpace = QStyle::PM_TabBarTabHSpace, PM_TabBarTabVSpace = QStyle::PM_TabBarTabVSpace, PM_TabBarBaseHeight = QStyle::PM_TabBarBaseHeight, PM_TabBarBaseOverlap = QStyle::PM_TabBarBaseOverlap, PM_ProgressBarChunkWidth = QStyle::PM_ProgressBarChunkWidth, PM_SplitterWidth = QStyle::PM_SplitterWidth, PM_TitleBarHeight = QStyle::PM_TitleBarHeight, PM_MenuScrollerHeight = QStyle::PM_MenuScrollerHeight, PM_MenuHMargin = QStyle::PM_MenuHMargin, PM_MenuVMargin = QStyle::PM_MenuVMargin, PM_MenuPanelWidth = QStyle::PM_MenuPanelWidth, PM_MenuTearoffHeight = QStyle::PM_MenuTearoffHeight, PM_MenuDesktopFrameWidth = QStyle::PM_MenuDesktopFrameWidth, PM_MenuBarPanelWidth = QStyle::PM_MenuBarPanelWidth, PM_MenuBarItemSpacing = QStyle::PM_MenuBarItemSpacing, PM_MenuBarVMargin = QStyle::PM_MenuBarVMargin, PM_MenuBarHMargin = QStyle::PM_MenuBarHMargin, PM_IndicatorWidth = QStyle::PM_IndicatorWidth, PM_IndicatorHeight = QStyle::PM_IndicatorHeight, PM_ExclusiveIndicatorWidth = QStyle::PM_ExclusiveIndicatorWidth, PM_ExclusiveIndicatorHeight = QStyle::PM_ExclusiveIndicatorHeight, PM_DialogButtonsSeparator = QStyle::PM_DialogButtonsSeparator, PM_DialogButtonsButtonWidth = QStyle::PM_DialogButtonsButtonWidth, PM_DialogButtonsButtonHeight = QStyle::PM_DialogButtonsButtonHeight, PM_MdiSubWindowFrameWidth = QStyle::PM_MdiSubWindowFrameWidth, PM_MDIFrameWidth = QStyle::PM_MDIFrameWidth, PM_MdiSubWindowMinimizedWidth = QStyle::PM_MdiSubWindowMinimizedWidth, PM_MDIMinimizedWidth = QStyle::PM_MDIMinimizedWidth, PM_HeaderMargin = QStyle::PM_HeaderMargin, PM_HeaderMarkSize = QStyle::PM_HeaderMarkSize, PM_HeaderGripMargin = QStyle::PM_HeaderGripMargin, PM_TabBarTabShiftHorizontal = QStyle::PM_TabBarTabShiftHorizontal, PM_TabBarTabShiftVertical = QStyle::PM_TabBarTabShiftVertical, PM_TabBarScrollButtonWidth = QStyle::PM_TabBarScrollButtonWidth, PM_ToolBarFrameWidth = QStyle::PM_ToolBarFrameWidth, PM_ToolBarHandleExtent = QStyle::PM_ToolBarHandleExtent, PM_ToolBarItemSpacing = QStyle::PM_ToolBarItemSpacing, PM_ToolBarItemMargin = QStyle::PM_ToolBarItemMargin, PM_ToolBarSeparatorExtent = QStyle::PM_ToolBarSeparatorExtent, PM_ToolBarExtensionExtent = QStyle::PM_ToolBarExtensionExtent, PM_SpinBoxSliderHeight = QStyle::PM_SpinBoxSliderHeight, PM_DefaultTopLevelMargin = QStyle::PM_DefaultTopLevelMargin, PM_DefaultChildMargin = QStyle::PM_DefaultChildMargin, PM_DefaultLayoutSpacing = QStyle::PM_DefaultLayoutSpacing, PM_ToolBarIconSize = QStyle::PM_ToolBarIconSize, PM_ListViewIconSize = QStyle::PM_ListViewIconSize, PM_IconViewIconSize = QStyle::PM_IconViewIconSize, PM_SmallIconSize = QStyle::PM_SmallIconSize, PM_LargeIconSize = QStyle::PM_LargeIconSize, PM_FocusFrameVMargin = QStyle::PM_FocusFrameVMargin, PM_FocusFrameHMargin = QStyle::PM_FocusFrameHMargin, PM_ToolTipLabelFrameWidth = QStyle::PM_ToolTipLabelFrameWidth, PM_CheckBoxLabelSpacing = QStyle::PM_CheckBoxLabelSpacing, PM_TabBarIconSize = QStyle::PM_TabBarIconSize, PM_SizeGripSize = QStyle::PM_SizeGripSize, PM_DockWidgetTitleMargin = QStyle::PM_DockWidgetTitleMargin, PM_MessageBoxIconSize = QStyle::PM_MessageBoxIconSize, PM_ButtonIconSize = QStyle::PM_ButtonIconSize, PM_DockWidgetTitleBarButtonMargin = QStyle::PM_DockWidgetTitleBarButtonMargin, PM_RadioButtonLabelSpacing = QStyle::PM_RadioButtonLabelSpacing, PM_LayoutLeftMargin = QStyle::PM_LayoutLeftMargin, PM_LayoutTopMargin = QStyle::PM_LayoutTopMargin, PM_LayoutRightMargin = QStyle::PM_LayoutRightMargin, PM_LayoutBottomMargin = QStyle::PM_LayoutBottomMargin, PM_LayoutHorizontalSpacing = QStyle::PM_LayoutHorizontalSpacing, PM_LayoutVerticalSpacing = QStyle::PM_LayoutVerticalSpacing, PM_TabBar_ScrollButtonOverlap = QStyle::PM_TabBar_ScrollButtonOverlap, PM_TextCursorWidth = QStyle::PM_TextCursorWidth, PM_TabCloseIndicatorWidth = QStyle::PM_TabCloseIndicatorWidth, PM_TabCloseIndicatorHeight = QStyle::PM_TabCloseIndicatorHeight, PM_ScrollView_ScrollBarSpacing = QStyle::PM_ScrollView_ScrollBarSpacing, PM_ScrollView_ScrollBarOverlap = QStyle::PM_ScrollView_ScrollBarOverlap, PM_SubMenuOverlap = QStyle::PM_SubMenuOverlap, PM_CustomBase = QStyle::PM_CustomBase}; +enum SubControl{ + SC_None = QStyle::SC_None, SC_ScrollBarAddLine = QStyle::SC_ScrollBarAddLine, SC_ScrollBarSubLine = QStyle::SC_ScrollBarSubLine, SC_ScrollBarAddPage = QStyle::SC_ScrollBarAddPage, SC_ScrollBarSubPage = QStyle::SC_ScrollBarSubPage, SC_ScrollBarFirst = QStyle::SC_ScrollBarFirst, SC_ScrollBarLast = QStyle::SC_ScrollBarLast, SC_ScrollBarSlider = QStyle::SC_ScrollBarSlider, SC_ScrollBarGroove = QStyle::SC_ScrollBarGroove, SC_SpinBoxUp = QStyle::SC_SpinBoxUp, SC_SpinBoxDown = QStyle::SC_SpinBoxDown, SC_SpinBoxFrame = QStyle::SC_SpinBoxFrame, SC_SpinBoxEditField = QStyle::SC_SpinBoxEditField, SC_ComboBoxFrame = QStyle::SC_ComboBoxFrame, SC_ComboBoxEditField = QStyle::SC_ComboBoxEditField, SC_ComboBoxArrow = QStyle::SC_ComboBoxArrow, SC_ComboBoxListBoxPopup = QStyle::SC_ComboBoxListBoxPopup, SC_SliderGroove = QStyle::SC_SliderGroove, SC_SliderHandle = QStyle::SC_SliderHandle, SC_SliderTickmarks = QStyle::SC_SliderTickmarks, SC_ToolButton = QStyle::SC_ToolButton, SC_ToolButtonMenu = QStyle::SC_ToolButtonMenu, SC_TitleBarSysMenu = QStyle::SC_TitleBarSysMenu, SC_TitleBarMinButton = QStyle::SC_TitleBarMinButton, SC_TitleBarMaxButton = QStyle::SC_TitleBarMaxButton, SC_TitleBarCloseButton = QStyle::SC_TitleBarCloseButton, SC_TitleBarNormalButton = QStyle::SC_TitleBarNormalButton, SC_TitleBarShadeButton = QStyle::SC_TitleBarShadeButton, SC_TitleBarUnshadeButton = QStyle::SC_TitleBarUnshadeButton, SC_TitleBarContextHelpButton = QStyle::SC_TitleBarContextHelpButton, SC_TitleBarLabel = QStyle::SC_TitleBarLabel, SC_DialGroove = QStyle::SC_DialGroove, SC_DialHandle = QStyle::SC_DialHandle, SC_DialTickmarks = QStyle::SC_DialTickmarks, SC_GroupBoxCheckBox = QStyle::SC_GroupBoxCheckBox, SC_GroupBoxLabel = QStyle::SC_GroupBoxLabel, SC_GroupBoxContents = QStyle::SC_GroupBoxContents, SC_GroupBoxFrame = QStyle::SC_GroupBoxFrame, SC_MdiMinButton = QStyle::SC_MdiMinButton, SC_MdiNormalButton = QStyle::SC_MdiNormalButton, SC_MdiCloseButton = QStyle::SC_MdiCloseButton, SC_CustomBase = QStyle::SC_CustomBase, SC_All = QStyle::SC_All}; +enum RequestSoftwareInputPanel{ + RSIP_OnMouseClickAndAlreadyFocused = QStyle::RSIP_OnMouseClickAndAlreadyFocused, RSIP_OnMouseClick = QStyle::RSIP_OnMouseClick}; +Q_DECLARE_FLAGS(State, StateFlag) +Q_DECLARE_FLAGS(SubControls, SubControl) +public slots: +QStyle* new_QStyle(); +void delete_QStyle(QStyle* obj) { delete obj; } + QRect static_QStyle_alignedRect(Qt::LayoutDirection direction, Qt::Alignment alignment, const QSize& size, const QRect& rectangle); + int combinedLayoutSpacing(QStyle* theWrappedObject, QSizePolicy::ControlTypes controls1, QSizePolicy::ControlTypes controls2, Qt::Orientation orientation, QStyleOption* option = 0, QWidget* widget = 0) const; + void drawItemPixmap(QStyle* theWrappedObject, QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const; + void drawItemText(QStyle* theWrappedObject, QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole = QPalette::NoRole) const; + QRect itemPixmapRect(QStyle* theWrappedObject, const QRect& r, int flags, const QPixmap& pixmap) const; + void polish(QStyle* theWrappedObject, QApplication* arg__1); + void polish(QStyle* theWrappedObject, QPalette& arg__1); + void polish(QStyle* theWrappedObject, QWidget* arg__1); + const QStyle* proxy(QStyle* theWrappedObject) const; + int static_QStyle_sliderPositionFromValue(int min, int max, int val, int space, bool upsideDown = false); + int static_QStyle_sliderValueFromPosition(int min, int max, int pos, int space, bool upsideDown = false); + QPalette standardPalette(QStyle* theWrappedObject) const; + void unpolish(QStyle* theWrappedObject, QApplication* arg__1); + void unpolish(QStyle* theWrappedObject, QWidget* arg__1); + Qt::Alignment static_QStyle_visualAlignment(Qt::LayoutDirection direction, Qt::Alignment alignment); + QPoint static_QStyle_visualPos(Qt::LayoutDirection direction, const QRect& boundingRect, const QPoint& logicalPos); + QRect static_QStyle_visualRect(Qt::LayoutDirection direction, const QRect& boundingRect, const QRect& logicalRect); +}; + + + + + +class PythonQtShell_QStyleFactory : public QStyleFactory +{ +public: + PythonQtShell_QStyleFactory():QStyleFactory(),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleFactory(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleFactory : public QObject +{ Q_OBJECT +public: +public slots: +QStyleFactory* new_QStyleFactory(); +void delete_QStyleFactory(QStyleFactory* obj) { delete obj; } + QStyle* static_QStyleFactory_create(const QString& arg__1); + QStringList static_QStyleFactory_keys(); +}; + + + + + +class PythonQtShell_QStyleHintReturn : public QStyleHintReturn +{ +public: + PythonQtShell_QStyleHintReturn(int version = QStyleOption::Version, int type = SH_Default):QStyleHintReturn(version, type),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleHintReturn(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleHintReturn : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType HintReturnType ) +enum StyleOptionVersion{ + Version = QStyleHintReturn::Version}; +enum StyleOptionType{ + Type = QStyleHintReturn::Type}; +enum HintReturnType{ + SH_Default = QStyleHintReturn::SH_Default, SH_Mask = QStyleHintReturn::SH_Mask, SH_Variant = QStyleHintReturn::SH_Variant}; +public slots: +QStyleHintReturn* new_QStyleHintReturn(int version = QStyleOption::Version, int type = SH_Default); +void delete_QStyleHintReturn(QStyleHintReturn* obj) { delete obj; } +void py_set_type(QStyleHintReturn* theWrappedObject, int type){ theWrappedObject->type = type; } +int py_get_type(QStyleHintReturn* theWrappedObject){ return theWrappedObject->type; } +void py_set_version(QStyleHintReturn* theWrappedObject, int version){ theWrappedObject->version = version; } +int py_get_version(QStyleHintReturn* theWrappedObject){ return theWrappedObject->version; } +}; + + + + + +class PythonQtShell_QStyleHintReturnMask : public QStyleHintReturnMask +{ +public: + PythonQtShell_QStyleHintReturnMask():QStyleHintReturnMask(),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleHintReturnMask(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleHintReturnMask : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType ) +enum StyleOptionVersion{ + Version = QStyleHintReturnMask::Version}; +enum StyleOptionType{ + Type = QStyleHintReturnMask::Type}; +public slots: +QStyleHintReturnMask* new_QStyleHintReturnMask(); +void delete_QStyleHintReturnMask(QStyleHintReturnMask* obj) { delete obj; } +void py_set_region(QStyleHintReturnMask* theWrappedObject, QRegion region){ theWrappedObject->region = region; } +QRegion py_get_region(QStyleHintReturnMask* theWrappedObject){ return theWrappedObject->region; } +}; + + + + + +class PythonQtShell_QStyleHintReturnVariant : public QStyleHintReturnVariant +{ +public: + PythonQtShell_QStyleHintReturnVariant():QStyleHintReturnVariant(),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleHintReturnVariant(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleHintReturnVariant : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType ) +enum StyleOptionVersion{ + Version = QStyleHintReturnVariant::Version}; +enum StyleOptionType{ + Type = QStyleHintReturnVariant::Type}; +public slots: +QStyleHintReturnVariant* new_QStyleHintReturnVariant(); +void delete_QStyleHintReturnVariant(QStyleHintReturnVariant* obj) { delete obj; } +void py_set_variant(QStyleHintReturnVariant* theWrappedObject, QVariant variant){ theWrappedObject->variant = variant; } +QVariant py_get_variant(QStyleHintReturnVariant* theWrappedObject){ return theWrappedObject->variant; } +}; + + + + + +class PythonQtShell_QStyleOption : public QStyleOption +{ +public: + PythonQtShell_QStyleOption(const QStyleOption& other):QStyleOption(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOption(int version = QStyleOption::Version, int type = SO_Default):QStyleOption(version, type),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOption(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOption : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType OptionType ) +enum StyleOptionVersion{ + Version = QStyleOption::Version}; +enum StyleOptionType{ + Type = QStyleOption::Type}; +enum OptionType{ + SO_Default = QStyleOption::SO_Default, SO_FocusRect = QStyleOption::SO_FocusRect, SO_Button = QStyleOption::SO_Button, SO_Tab = QStyleOption::SO_Tab, SO_MenuItem = QStyleOption::SO_MenuItem, SO_Frame = QStyleOption::SO_Frame, SO_ProgressBar = QStyleOption::SO_ProgressBar, SO_ToolBox = QStyleOption::SO_ToolBox, SO_Header = QStyleOption::SO_Header, SO_DockWidget = QStyleOption::SO_DockWidget, SO_ViewItem = QStyleOption::SO_ViewItem, SO_TabWidgetFrame = QStyleOption::SO_TabWidgetFrame, SO_TabBarBase = QStyleOption::SO_TabBarBase, SO_RubberBand = QStyleOption::SO_RubberBand, SO_ToolBar = QStyleOption::SO_ToolBar, SO_GraphicsItem = QStyleOption::SO_GraphicsItem, SO_Complex = QStyleOption::SO_Complex, SO_Slider = QStyleOption::SO_Slider, SO_SpinBox = QStyleOption::SO_SpinBox, SO_ToolButton = QStyleOption::SO_ToolButton, SO_ComboBox = QStyleOption::SO_ComboBox, SO_TitleBar = QStyleOption::SO_TitleBar, SO_GroupBox = QStyleOption::SO_GroupBox, SO_SizeGrip = QStyleOption::SO_SizeGrip, SO_CustomBase = QStyleOption::SO_CustomBase, SO_ComplexCustomBase = QStyleOption::SO_ComplexCustomBase}; +public slots: +QStyleOption* new_QStyleOption(const QStyleOption& other); +QStyleOption* new_QStyleOption(int version = QStyleOption::Version, int type = SO_Default); +void delete_QStyleOption(QStyleOption* obj) { delete obj; } + void initFrom(QStyleOption* theWrappedObject, const QWidget* w); + QString py_toString(QStyleOption*); +void py_set_palette(QStyleOption* theWrappedObject, QPalette palette){ theWrappedObject->palette = palette; } +QPalette py_get_palette(QStyleOption* theWrappedObject){ return theWrappedObject->palette; } +void py_set_rect(QStyleOption* theWrappedObject, QRect rect){ theWrappedObject->rect = rect; } +QRect py_get_rect(QStyleOption* theWrappedObject){ return theWrappedObject->rect; } +void py_set_styleObject(QStyleOption* theWrappedObject, QObject* styleObject){ theWrappedObject->styleObject = styleObject; } +QObject* py_get_styleObject(QStyleOption* theWrappedObject){ return theWrappedObject->styleObject; } +void py_set_type(QStyleOption* theWrappedObject, int type){ theWrappedObject->type = type; } +int py_get_type(QStyleOption* theWrappedObject){ return theWrappedObject->type; } +void py_set_fontMetrics(QStyleOption* theWrappedObject, QFontMetrics fontMetrics){ theWrappedObject->fontMetrics = fontMetrics; } +QFontMetrics py_get_fontMetrics(QStyleOption* theWrappedObject){ return theWrappedObject->fontMetrics; } +void py_set_direction(QStyleOption* theWrappedObject, Qt::LayoutDirection direction){ theWrappedObject->direction = direction; } +Qt::LayoutDirection py_get_direction(QStyleOption* theWrappedObject){ return theWrappedObject->direction; } +void py_set_state(QStyleOption* theWrappedObject, QStyle::State state){ theWrappedObject->state = state; } +QStyle::State py_get_state(QStyleOption* theWrappedObject){ return theWrappedObject->state; } +void py_set_version(QStyleOption* theWrappedObject, int version){ theWrappedObject->version = version; } +int py_get_version(QStyleOption* theWrappedObject){ return theWrappedObject->version; } +}; + + + + + +class PythonQtShell_QStyleOptionButton : public QStyleOptionButton +{ +public: + PythonQtShell_QStyleOptionButton():QStyleOptionButton(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionButton(const QStyleOptionButton& other):QStyleOptionButton(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionButton(int version):QStyleOptionButton(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionButton(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionButton : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion ButtonFeature StyleOptionType ) +Q_FLAGS(ButtonFeatures ) +enum StyleOptionVersion{ + Version = QStyleOptionButton::Version}; +enum ButtonFeature{ + None = QStyleOptionButton::None, Flat = QStyleOptionButton::Flat, HasMenu = QStyleOptionButton::HasMenu, DefaultButton = QStyleOptionButton::DefaultButton, AutoDefaultButton = QStyleOptionButton::AutoDefaultButton, CommandLinkButton = QStyleOptionButton::CommandLinkButton}; +enum StyleOptionType{ + Type = QStyleOptionButton::Type}; +Q_DECLARE_FLAGS(ButtonFeatures, ButtonFeature) +public slots: +QStyleOptionButton* new_QStyleOptionButton(); +QStyleOptionButton* new_QStyleOptionButton(const QStyleOptionButton& other); +void delete_QStyleOptionButton(QStyleOptionButton* obj) { delete obj; } +void py_set_features(QStyleOptionButton* theWrappedObject, QStyleOptionButton::ButtonFeatures features){ theWrappedObject->features = features; } +QStyleOptionButton::ButtonFeatures py_get_features(QStyleOptionButton* theWrappedObject){ return theWrappedObject->features; } +void py_set_text(QStyleOptionButton* theWrappedObject, QString text){ theWrappedObject->text = text; } +QString py_get_text(QStyleOptionButton* theWrappedObject){ return theWrappedObject->text; } +void py_set_iconSize(QStyleOptionButton* theWrappedObject, QSize iconSize){ theWrappedObject->iconSize = iconSize; } +QSize py_get_iconSize(QStyleOptionButton* theWrappedObject){ return theWrappedObject->iconSize; } +void py_set_icon(QStyleOptionButton* theWrappedObject, QIcon icon){ theWrappedObject->icon = icon; } +QIcon py_get_icon(QStyleOptionButton* theWrappedObject){ return theWrappedObject->icon; } +}; + + + + + +class PythonQtShell_QStyleOptionComboBox : public QStyleOptionComboBox +{ +public: + PythonQtShell_QStyleOptionComboBox():QStyleOptionComboBox(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionComboBox(const QStyleOptionComboBox& other):QStyleOptionComboBox(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionComboBox(int version):QStyleOptionComboBox(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionComboBox(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionComboBox : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType ) +enum StyleOptionVersion{ + Version = QStyleOptionComboBox::Version}; +enum StyleOptionType{ + Type = QStyleOptionComboBox::Type}; +public slots: +QStyleOptionComboBox* new_QStyleOptionComboBox(); +QStyleOptionComboBox* new_QStyleOptionComboBox(const QStyleOptionComboBox& other); +void delete_QStyleOptionComboBox(QStyleOptionComboBox* obj) { delete obj; } +void py_set_editable(QStyleOptionComboBox* theWrappedObject, bool editable){ theWrappedObject->editable = editable; } +bool py_get_editable(QStyleOptionComboBox* theWrappedObject){ return theWrappedObject->editable; } +void py_set_currentIcon(QStyleOptionComboBox* theWrappedObject, QIcon currentIcon){ theWrappedObject->currentIcon = currentIcon; } +QIcon py_get_currentIcon(QStyleOptionComboBox* theWrappedObject){ return theWrappedObject->currentIcon; } +void py_set_frame(QStyleOptionComboBox* theWrappedObject, bool frame){ theWrappedObject->frame = frame; } +bool py_get_frame(QStyleOptionComboBox* theWrappedObject){ return theWrappedObject->frame; } +void py_set_iconSize(QStyleOptionComboBox* theWrappedObject, QSize iconSize){ theWrappedObject->iconSize = iconSize; } +QSize py_get_iconSize(QStyleOptionComboBox* theWrappedObject){ return theWrappedObject->iconSize; } +void py_set_currentText(QStyleOptionComboBox* theWrappedObject, QString currentText){ theWrappedObject->currentText = currentText; } +QString py_get_currentText(QStyleOptionComboBox* theWrappedObject){ return theWrappedObject->currentText; } +void py_set_popupRect(QStyleOptionComboBox* theWrappedObject, QRect popupRect){ theWrappedObject->popupRect = popupRect; } +QRect py_get_popupRect(QStyleOptionComboBox* theWrappedObject){ return theWrappedObject->popupRect; } +}; + + + + + +class PythonQtShell_QStyleOptionDockWidget : public QStyleOptionDockWidget +{ +public: + PythonQtShell_QStyleOptionDockWidget():QStyleOptionDockWidget(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionDockWidget(const QStyleOptionDockWidget& other):QStyleOptionDockWidget(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionDockWidget(int version):QStyleOptionDockWidget(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionDockWidget(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionDockWidget : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType ) +enum StyleOptionVersion{ + Version = QStyleOptionDockWidget::Version}; +enum StyleOptionType{ + Type = QStyleOptionDockWidget::Type}; +public slots: +QStyleOptionDockWidget* new_QStyleOptionDockWidget(); +QStyleOptionDockWidget* new_QStyleOptionDockWidget(const QStyleOptionDockWidget& other); +void delete_QStyleOptionDockWidget(QStyleOptionDockWidget* obj) { delete obj; } +void py_set_movable(QStyleOptionDockWidget* theWrappedObject, bool movable){ theWrappedObject->movable = movable; } +bool py_get_movable(QStyleOptionDockWidget* theWrappedObject){ return theWrappedObject->movable; } +void py_set_floatable(QStyleOptionDockWidget* theWrappedObject, bool floatable){ theWrappedObject->floatable = floatable; } +bool py_get_floatable(QStyleOptionDockWidget* theWrappedObject){ return theWrappedObject->floatable; } +void py_set_title(QStyleOptionDockWidget* theWrappedObject, QString title){ theWrappedObject->title = title; } +QString py_get_title(QStyleOptionDockWidget* theWrappedObject){ return theWrappedObject->title; } +void py_set_closable(QStyleOptionDockWidget* theWrappedObject, bool closable){ theWrappedObject->closable = closable; } +bool py_get_closable(QStyleOptionDockWidget* theWrappedObject){ return theWrappedObject->closable; } +void py_set_verticalTitleBar(QStyleOptionDockWidget* theWrappedObject, bool verticalTitleBar){ theWrappedObject->verticalTitleBar = verticalTitleBar; } +bool py_get_verticalTitleBar(QStyleOptionDockWidget* theWrappedObject){ return theWrappedObject->verticalTitleBar; } +}; + + + + + +class PythonQtShell_QStyleOptionFocusRect : public QStyleOptionFocusRect +{ +public: + PythonQtShell_QStyleOptionFocusRect():QStyleOptionFocusRect(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionFocusRect(const QStyleOptionFocusRect& other):QStyleOptionFocusRect(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionFocusRect(int version):QStyleOptionFocusRect(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionFocusRect(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionFocusRect : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType ) +enum StyleOptionVersion{ + Version = QStyleOptionFocusRect::Version}; +enum StyleOptionType{ + Type = QStyleOptionFocusRect::Type}; +public slots: +QStyleOptionFocusRect* new_QStyleOptionFocusRect(); +QStyleOptionFocusRect* new_QStyleOptionFocusRect(const QStyleOptionFocusRect& other); +void delete_QStyleOptionFocusRect(QStyleOptionFocusRect* obj) { delete obj; } +void py_set_backgroundColor(QStyleOptionFocusRect* theWrappedObject, QColor backgroundColor){ theWrappedObject->backgroundColor = backgroundColor; } +QColor py_get_backgroundColor(QStyleOptionFocusRect* theWrappedObject){ return theWrappedObject->backgroundColor; } +}; + + + + + +class PythonQtShell_QStyleOptionFrame : public QStyleOptionFrame +{ +public: + PythonQtShell_QStyleOptionFrame():QStyleOptionFrame(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionFrame(const QStyleOptionFrame& other):QStyleOptionFrame(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionFrame(int version):QStyleOptionFrame(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionFrame(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionFrame : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion FrameFeature StyleOptionType ) +Q_FLAGS(FrameFeatures ) +enum StyleOptionVersion{ + Version = QStyleOptionFrame::Version}; +enum FrameFeature{ + None = QStyleOptionFrame::None, Flat = QStyleOptionFrame::Flat, Rounded = QStyleOptionFrame::Rounded}; +enum StyleOptionType{ + Type = QStyleOptionFrame::Type}; +Q_DECLARE_FLAGS(FrameFeatures, FrameFeature) +public slots: +QStyleOptionFrame* new_QStyleOptionFrame(); +QStyleOptionFrame* new_QStyleOptionFrame(const QStyleOptionFrame& other); +void delete_QStyleOptionFrame(QStyleOptionFrame* obj) { delete obj; } +void py_set_features(QStyleOptionFrame* theWrappedObject, QStyleOptionFrame::FrameFeatures features){ theWrappedObject->features = features; } +QStyleOptionFrame::FrameFeatures py_get_features(QStyleOptionFrame* theWrappedObject){ return theWrappedObject->features; } +void py_set_frameShape(QStyleOptionFrame* theWrappedObject, QFrame::Shape frameShape){ theWrappedObject->frameShape = frameShape; } +QFrame::Shape py_get_frameShape(QStyleOptionFrame* theWrappedObject){ return theWrappedObject->frameShape; } +void py_set_midLineWidth(QStyleOptionFrame* theWrappedObject, int midLineWidth){ theWrappedObject->midLineWidth = midLineWidth; } +int py_get_midLineWidth(QStyleOptionFrame* theWrappedObject){ return theWrappedObject->midLineWidth; } +void py_set_lineWidth(QStyleOptionFrame* theWrappedObject, int lineWidth){ theWrappedObject->lineWidth = lineWidth; } +int py_get_lineWidth(QStyleOptionFrame* theWrappedObject){ return theWrappedObject->lineWidth; } +}; + + + + + +class PythonQtShell_QStyleOptionGraphicsItem : public QStyleOptionGraphicsItem +{ +public: + PythonQtShell_QStyleOptionGraphicsItem():QStyleOptionGraphicsItem(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionGraphicsItem(const QStyleOptionGraphicsItem& other):QStyleOptionGraphicsItem(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionGraphicsItem(int version):QStyleOptionGraphicsItem(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionGraphicsItem(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionGraphicsItem : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType ) +enum StyleOptionVersion{ + Version = QStyleOptionGraphicsItem::Version}; +enum StyleOptionType{ + Type = QStyleOptionGraphicsItem::Type}; +public slots: +QStyleOptionGraphicsItem* new_QStyleOptionGraphicsItem(); +QStyleOptionGraphicsItem* new_QStyleOptionGraphicsItem(const QStyleOptionGraphicsItem& other); +void delete_QStyleOptionGraphicsItem(QStyleOptionGraphicsItem* obj) { delete obj; } + qreal static_QStyleOptionGraphicsItem_levelOfDetailFromTransform(const QTransform& worldTransform); +void py_set_levelOfDetail(QStyleOptionGraphicsItem* theWrappedObject, qreal levelOfDetail){ theWrappedObject->levelOfDetail = levelOfDetail; } +qreal py_get_levelOfDetail(QStyleOptionGraphicsItem* theWrappedObject){ return theWrappedObject->levelOfDetail; } +void py_set_matrix(QStyleOptionGraphicsItem* theWrappedObject, QMatrix matrix){ theWrappedObject->matrix = matrix; } +QMatrix py_get_matrix(QStyleOptionGraphicsItem* theWrappedObject){ return theWrappedObject->matrix; } +void py_set_exposedRect(QStyleOptionGraphicsItem* theWrappedObject, QRectF exposedRect){ theWrappedObject->exposedRect = exposedRect; } +QRectF py_get_exposedRect(QStyleOptionGraphicsItem* theWrappedObject){ return theWrappedObject->exposedRect; } +}; + + + + + +class PythonQtShell_QStyleOptionGroupBox : public QStyleOptionGroupBox +{ +public: + PythonQtShell_QStyleOptionGroupBox():QStyleOptionGroupBox(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionGroupBox(const QStyleOptionGroupBox& other):QStyleOptionGroupBox(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionGroupBox(int version):QStyleOptionGroupBox(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionGroupBox(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionGroupBox : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType ) +enum StyleOptionVersion{ + Version = QStyleOptionGroupBox::Version}; +enum StyleOptionType{ + Type = QStyleOptionGroupBox::Type}; +public slots: +QStyleOptionGroupBox* new_QStyleOptionGroupBox(); +QStyleOptionGroupBox* new_QStyleOptionGroupBox(const QStyleOptionGroupBox& other); +void delete_QStyleOptionGroupBox(QStyleOptionGroupBox* obj) { delete obj; } +void py_set_textColor(QStyleOptionGroupBox* theWrappedObject, QColor textColor){ theWrappedObject->textColor = textColor; } +QColor py_get_textColor(QStyleOptionGroupBox* theWrappedObject){ return theWrappedObject->textColor; } +void py_set_text(QStyleOptionGroupBox* theWrappedObject, QString text){ theWrappedObject->text = text; } +QString py_get_text(QStyleOptionGroupBox* theWrappedObject){ return theWrappedObject->text; } +void py_set_midLineWidth(QStyleOptionGroupBox* theWrappedObject, int midLineWidth){ theWrappedObject->midLineWidth = midLineWidth; } +int py_get_midLineWidth(QStyleOptionGroupBox* theWrappedObject){ return theWrappedObject->midLineWidth; } +void py_set_lineWidth(QStyleOptionGroupBox* theWrappedObject, int lineWidth){ theWrappedObject->lineWidth = lineWidth; } +int py_get_lineWidth(QStyleOptionGroupBox* theWrappedObject){ return theWrappedObject->lineWidth; } +void py_set_textAlignment(QStyleOptionGroupBox* theWrappedObject, Qt::Alignment textAlignment){ theWrappedObject->textAlignment = textAlignment; } +Qt::Alignment py_get_textAlignment(QStyleOptionGroupBox* theWrappedObject){ return theWrappedObject->textAlignment; } +}; + + + + + +class PythonQtShell_QStyleOptionHeader : public QStyleOptionHeader +{ +public: + PythonQtShell_QStyleOptionHeader():QStyleOptionHeader(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionHeader(const QStyleOptionHeader& other):QStyleOptionHeader(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionHeader(int version):QStyleOptionHeader(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionHeader(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionHeader : public QObject +{ Q_OBJECT +public: +Q_ENUMS(SelectedPosition StyleOptionVersion StyleOptionType SortIndicator SectionPosition ) +enum SelectedPosition{ + NotAdjacent = QStyleOptionHeader::NotAdjacent, NextIsSelected = QStyleOptionHeader::NextIsSelected, PreviousIsSelected = QStyleOptionHeader::PreviousIsSelected, NextAndPreviousAreSelected = QStyleOptionHeader::NextAndPreviousAreSelected}; +enum StyleOptionVersion{ + Version = QStyleOptionHeader::Version}; +enum StyleOptionType{ + Type = QStyleOptionHeader::Type}; +enum SortIndicator{ + None = QStyleOptionHeader::None, SortUp = QStyleOptionHeader::SortUp, SortDown = QStyleOptionHeader::SortDown}; +enum SectionPosition{ + Beginning = QStyleOptionHeader::Beginning, Middle = QStyleOptionHeader::Middle, End = QStyleOptionHeader::End, OnlyOneSection = QStyleOptionHeader::OnlyOneSection}; +public slots: +QStyleOptionHeader* new_QStyleOptionHeader(); +QStyleOptionHeader* new_QStyleOptionHeader(const QStyleOptionHeader& other); +void delete_QStyleOptionHeader(QStyleOptionHeader* obj) { delete obj; } +void py_set_text(QStyleOptionHeader* theWrappedObject, QString text){ theWrappedObject->text = text; } +QString py_get_text(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->text; } +void py_set_section(QStyleOptionHeader* theWrappedObject, int section){ theWrappedObject->section = section; } +int py_get_section(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->section; } +void py_set_sortIndicator(QStyleOptionHeader* theWrappedObject, QStyleOptionHeader::SortIndicator sortIndicator){ theWrappedObject->sortIndicator = sortIndicator; } +QStyleOptionHeader::SortIndicator py_get_sortIndicator(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->sortIndicator; } +void py_set_orientation(QStyleOptionHeader* theWrappedObject, Qt::Orientation orientation){ theWrappedObject->orientation = orientation; } +Qt::Orientation py_get_orientation(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->orientation; } +void py_set_iconAlignment(QStyleOptionHeader* theWrappedObject, Qt::Alignment iconAlignment){ theWrappedObject->iconAlignment = iconAlignment; } +Qt::Alignment py_get_iconAlignment(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->iconAlignment; } +void py_set_selectedPosition(QStyleOptionHeader* theWrappedObject, QStyleOptionHeader::SelectedPosition selectedPosition){ theWrappedObject->selectedPosition = selectedPosition; } +QStyleOptionHeader::SelectedPosition py_get_selectedPosition(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->selectedPosition; } +void py_set_position(QStyleOptionHeader* theWrappedObject, QStyleOptionHeader::SectionPosition position){ theWrappedObject->position = position; } +QStyleOptionHeader::SectionPosition py_get_position(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->position; } +void py_set_textAlignment(QStyleOptionHeader* theWrappedObject, Qt::Alignment textAlignment){ theWrappedObject->textAlignment = textAlignment; } +Qt::Alignment py_get_textAlignment(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->textAlignment; } +void py_set_icon(QStyleOptionHeader* theWrappedObject, QIcon icon){ theWrappedObject->icon = icon; } +QIcon py_get_icon(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->icon; } +}; + + + + + +class PythonQtShell_QStyleOptionMenuItem : public QStyleOptionMenuItem +{ +public: + PythonQtShell_QStyleOptionMenuItem():QStyleOptionMenuItem(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionMenuItem(const QStyleOptionMenuItem& other):QStyleOptionMenuItem(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionMenuItem(int version):QStyleOptionMenuItem(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionMenuItem(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionMenuItem : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion CheckType MenuItemType StyleOptionType ) +enum StyleOptionVersion{ + Version = QStyleOptionMenuItem::Version}; +enum CheckType{ + NotCheckable = QStyleOptionMenuItem::NotCheckable, Exclusive = QStyleOptionMenuItem::Exclusive, NonExclusive = QStyleOptionMenuItem::NonExclusive}; +enum MenuItemType{ + Normal = QStyleOptionMenuItem::Normal, DefaultItem = QStyleOptionMenuItem::DefaultItem, Separator = QStyleOptionMenuItem::Separator, SubMenu = QStyleOptionMenuItem::SubMenu, Scroller = QStyleOptionMenuItem::Scroller, TearOff = QStyleOptionMenuItem::TearOff, Margin = QStyleOptionMenuItem::Margin, EmptyArea = QStyleOptionMenuItem::EmptyArea}; +enum StyleOptionType{ + Type = QStyleOptionMenuItem::Type}; +public slots: +QStyleOptionMenuItem* new_QStyleOptionMenuItem(); +QStyleOptionMenuItem* new_QStyleOptionMenuItem(const QStyleOptionMenuItem& other); +void delete_QStyleOptionMenuItem(QStyleOptionMenuItem* obj) { delete obj; } +void py_set_menuRect(QStyleOptionMenuItem* theWrappedObject, QRect menuRect){ theWrappedObject->menuRect = menuRect; } +QRect py_get_menuRect(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->menuRect; } +void py_set_maxIconWidth(QStyleOptionMenuItem* theWrappedObject, int maxIconWidth){ theWrappedObject->maxIconWidth = maxIconWidth; } +int py_get_maxIconWidth(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->maxIconWidth; } +void py_set_text(QStyleOptionMenuItem* theWrappedObject, QString text){ theWrappedObject->text = text; } +QString py_get_text(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->text; } +void py_set_tabWidth(QStyleOptionMenuItem* theWrappedObject, int tabWidth){ theWrappedObject->tabWidth = tabWidth; } +int py_get_tabWidth(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->tabWidth; } +void py_set_checked(QStyleOptionMenuItem* theWrappedObject, bool checked){ theWrappedObject->checked = checked; } +bool py_get_checked(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->checked; } +void py_set_font(QStyleOptionMenuItem* theWrappedObject, QFont font){ theWrappedObject->font = font; } +QFont py_get_font(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->font; } +void py_set_checkType(QStyleOptionMenuItem* theWrappedObject, QStyleOptionMenuItem::CheckType checkType){ theWrappedObject->checkType = checkType; } +QStyleOptionMenuItem::CheckType py_get_checkType(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->checkType; } +void py_set_menuHasCheckableItems(QStyleOptionMenuItem* theWrappedObject, bool menuHasCheckableItems){ theWrappedObject->menuHasCheckableItems = menuHasCheckableItems; } +bool py_get_menuHasCheckableItems(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->menuHasCheckableItems; } +void py_set_icon(QStyleOptionMenuItem* theWrappedObject, QIcon icon){ theWrappedObject->icon = icon; } +QIcon py_get_icon(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->icon; } +void py_set_menuItemType(QStyleOptionMenuItem* theWrappedObject, QStyleOptionMenuItem::MenuItemType menuItemType){ theWrappedObject->menuItemType = menuItemType; } +QStyleOptionMenuItem::MenuItemType py_get_menuItemType(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->menuItemType; } +}; + + + + + +class PythonQtShell_QStyleOptionProgressBar : public QStyleOptionProgressBar +{ +public: + PythonQtShell_QStyleOptionProgressBar():QStyleOptionProgressBar(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionProgressBar(const QStyleOptionProgressBar& other):QStyleOptionProgressBar(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionProgressBar(int version):QStyleOptionProgressBar(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionProgressBar(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionProgressBar : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType ) +enum StyleOptionVersion{ + Version = QStyleOptionProgressBar::Version}; +enum StyleOptionType{ + Type = QStyleOptionProgressBar::Type}; +public slots: +QStyleOptionProgressBar* new_QStyleOptionProgressBar(); +QStyleOptionProgressBar* new_QStyleOptionProgressBar(const QStyleOptionProgressBar& other); +void delete_QStyleOptionProgressBar(QStyleOptionProgressBar* obj) { delete obj; } +void py_set_text(QStyleOptionProgressBar* theWrappedObject, QString text){ theWrappedObject->text = text; } +QString py_get_text(QStyleOptionProgressBar* theWrappedObject){ return theWrappedObject->text; } +void py_set_orientation(QStyleOptionProgressBar* theWrappedObject, Qt::Orientation orientation){ theWrappedObject->orientation = orientation; } +Qt::Orientation py_get_orientation(QStyleOptionProgressBar* theWrappedObject){ return theWrappedObject->orientation; } +void py_set_textVisible(QStyleOptionProgressBar* theWrappedObject, bool textVisible){ theWrappedObject->textVisible = textVisible; } +bool py_get_textVisible(QStyleOptionProgressBar* theWrappedObject){ return theWrappedObject->textVisible; } +void py_set_progress(QStyleOptionProgressBar* theWrappedObject, int progress){ theWrappedObject->progress = progress; } +int py_get_progress(QStyleOptionProgressBar* theWrappedObject){ return theWrappedObject->progress; } +void py_set_invertedAppearance(QStyleOptionProgressBar* theWrappedObject, bool invertedAppearance){ theWrappedObject->invertedAppearance = invertedAppearance; } +bool py_get_invertedAppearance(QStyleOptionProgressBar* theWrappedObject){ return theWrappedObject->invertedAppearance; } +void py_set_minimum(QStyleOptionProgressBar* theWrappedObject, int minimum){ theWrappedObject->minimum = minimum; } +int py_get_minimum(QStyleOptionProgressBar* theWrappedObject){ return theWrappedObject->minimum; } +void py_set_maximum(QStyleOptionProgressBar* theWrappedObject, int maximum){ theWrappedObject->maximum = maximum; } +int py_get_maximum(QStyleOptionProgressBar* theWrappedObject){ return theWrappedObject->maximum; } +void py_set_bottomToTop(QStyleOptionProgressBar* theWrappedObject, bool bottomToTop){ theWrappedObject->bottomToTop = bottomToTop; } +bool py_get_bottomToTop(QStyleOptionProgressBar* theWrappedObject){ return theWrappedObject->bottomToTop; } +void py_set_textAlignment(QStyleOptionProgressBar* theWrappedObject, Qt::Alignment textAlignment){ theWrappedObject->textAlignment = textAlignment; } +Qt::Alignment py_get_textAlignment(QStyleOptionProgressBar* theWrappedObject){ return theWrappedObject->textAlignment; } +}; + + + + + +class PythonQtShell_QStyleOptionRubberBand : public QStyleOptionRubberBand +{ +public: + PythonQtShell_QStyleOptionRubberBand():QStyleOptionRubberBand(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionRubberBand(const QStyleOptionRubberBand& other):QStyleOptionRubberBand(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionRubberBand(int version):QStyleOptionRubberBand(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionRubberBand(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionRubberBand : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType ) +enum StyleOptionVersion{ + Version = QStyleOptionRubberBand::Version}; +enum StyleOptionType{ + Type = QStyleOptionRubberBand::Type}; +public slots: +QStyleOptionRubberBand* new_QStyleOptionRubberBand(); +QStyleOptionRubberBand* new_QStyleOptionRubberBand(const QStyleOptionRubberBand& other); +void delete_QStyleOptionRubberBand(QStyleOptionRubberBand* obj) { delete obj; } +void py_set_shape(QStyleOptionRubberBand* theWrappedObject, QRubberBand::Shape shape){ theWrappedObject->shape = shape; } +QRubberBand::Shape py_get_shape(QStyleOptionRubberBand* theWrappedObject){ return theWrappedObject->shape; } +void py_set_opaque(QStyleOptionRubberBand* theWrappedObject, bool opaque){ theWrappedObject->opaque = opaque; } +bool py_get_opaque(QStyleOptionRubberBand* theWrappedObject){ return theWrappedObject->opaque; } +}; + + + + + +class PythonQtShell_QStyleOptionSizeGrip : public QStyleOptionSizeGrip +{ +public: + PythonQtShell_QStyleOptionSizeGrip():QStyleOptionSizeGrip(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionSizeGrip(const QStyleOptionSizeGrip& other):QStyleOptionSizeGrip(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionSizeGrip(int version):QStyleOptionSizeGrip(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionSizeGrip(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionSizeGrip : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType ) +enum StyleOptionVersion{ + Version = QStyleOptionSizeGrip::Version}; +enum StyleOptionType{ + Type = QStyleOptionSizeGrip::Type}; +public slots: +QStyleOptionSizeGrip* new_QStyleOptionSizeGrip(); +QStyleOptionSizeGrip* new_QStyleOptionSizeGrip(const QStyleOptionSizeGrip& other); +void delete_QStyleOptionSizeGrip(QStyleOptionSizeGrip* obj) { delete obj; } +void py_set_corner(QStyleOptionSizeGrip* theWrappedObject, Qt::Corner corner){ theWrappedObject->corner = corner; } +Qt::Corner py_get_corner(QStyleOptionSizeGrip* theWrappedObject){ return theWrappedObject->corner; } +}; + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp new file mode 100644 index 00000000..50d08029 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp @@ -0,0 +1,10642 @@ +#include "com_trolltech_qt_gui7.h" + +#include +#include +#include + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QStyleOptionSlider::~PythonQtShell_QStyleOptionSlider() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionSlider* PythonQtWrapper_QStyleOptionSlider::new_QStyleOptionSlider() +{ +return new PythonQtShell_QStyleOptionSlider(); } + +QStyleOptionSlider* PythonQtWrapper_QStyleOptionSlider::new_QStyleOptionSlider(const QStyleOptionSlider& other) +{ +return new PythonQtShell_QStyleOptionSlider(other); } + + + +PythonQtShell_QStyleOptionSpinBox::~PythonQtShell_QStyleOptionSpinBox() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionSpinBox* PythonQtWrapper_QStyleOptionSpinBox::new_QStyleOptionSpinBox() +{ +return new PythonQtShell_QStyleOptionSpinBox(); } + +QStyleOptionSpinBox* PythonQtWrapper_QStyleOptionSpinBox::new_QStyleOptionSpinBox(const QStyleOptionSpinBox& other) +{ +return new PythonQtShell_QStyleOptionSpinBox(other); } + + + +PythonQtShell_QStyleOptionTab::~PythonQtShell_QStyleOptionTab() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionTab* PythonQtWrapper_QStyleOptionTab::new_QStyleOptionTab() +{ +return new PythonQtShell_QStyleOptionTab(); } + +QStyleOptionTab* PythonQtWrapper_QStyleOptionTab::new_QStyleOptionTab(const QStyleOptionTab& other) +{ +return new PythonQtShell_QStyleOptionTab(other); } + + + +PythonQtShell_QStyleOptionTabBarBase::~PythonQtShell_QStyleOptionTabBarBase() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionTabBarBase* PythonQtWrapper_QStyleOptionTabBarBase::new_QStyleOptionTabBarBase() +{ +return new PythonQtShell_QStyleOptionTabBarBase(); } + +QStyleOptionTabBarBase* PythonQtWrapper_QStyleOptionTabBarBase::new_QStyleOptionTabBarBase(const QStyleOptionTabBarBase& other) +{ +return new PythonQtShell_QStyleOptionTabBarBase(other); } + + + +PythonQtShell_QStyleOptionTabWidgetFrame::~PythonQtShell_QStyleOptionTabWidgetFrame() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionTabWidgetFrame* PythonQtWrapper_QStyleOptionTabWidgetFrame::new_QStyleOptionTabWidgetFrame() +{ +return new PythonQtShell_QStyleOptionTabWidgetFrame(); } + +QStyleOptionTabWidgetFrame* PythonQtWrapper_QStyleOptionTabWidgetFrame::new_QStyleOptionTabWidgetFrame(const QStyleOptionTabWidgetFrame& other) +{ +return new PythonQtShell_QStyleOptionTabWidgetFrame(other); } + + + +PythonQtShell_QStyleOptionTitleBar::~PythonQtShell_QStyleOptionTitleBar() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionTitleBar* PythonQtWrapper_QStyleOptionTitleBar::new_QStyleOptionTitleBar() +{ +return new PythonQtShell_QStyleOptionTitleBar(); } + +QStyleOptionTitleBar* PythonQtWrapper_QStyleOptionTitleBar::new_QStyleOptionTitleBar(const QStyleOptionTitleBar& other) +{ +return new PythonQtShell_QStyleOptionTitleBar(other); } + + + +PythonQtShell_QStyleOptionToolBar::~PythonQtShell_QStyleOptionToolBar() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionToolBar* PythonQtWrapper_QStyleOptionToolBar::new_QStyleOptionToolBar() +{ +return new PythonQtShell_QStyleOptionToolBar(); } + +QStyleOptionToolBar* PythonQtWrapper_QStyleOptionToolBar::new_QStyleOptionToolBar(const QStyleOptionToolBar& other) +{ +return new PythonQtShell_QStyleOptionToolBar(other); } + + + +PythonQtShell_QStyleOptionToolBox::~PythonQtShell_QStyleOptionToolBox() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionToolBox* PythonQtWrapper_QStyleOptionToolBox::new_QStyleOptionToolBox() +{ +return new PythonQtShell_QStyleOptionToolBox(); } + +QStyleOptionToolBox* PythonQtWrapper_QStyleOptionToolBox::new_QStyleOptionToolBox(const QStyleOptionToolBox& other) +{ +return new PythonQtShell_QStyleOptionToolBox(other); } + + + +PythonQtShell_QStyleOptionToolButton::~PythonQtShell_QStyleOptionToolButton() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionToolButton* PythonQtWrapper_QStyleOptionToolButton::new_QStyleOptionToolButton() +{ +return new PythonQtShell_QStyleOptionToolButton(); } + +QStyleOptionToolButton* PythonQtWrapper_QStyleOptionToolButton::new_QStyleOptionToolButton(const QStyleOptionToolButton& other) +{ +return new PythonQtShell_QStyleOptionToolButton(other); } + + + +PythonQtShell_QStyleOptionViewItem::~PythonQtShell_QStyleOptionViewItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QStyleOptionViewItem* PythonQtWrapper_QStyleOptionViewItem::new_QStyleOptionViewItem() +{ +return new PythonQtShell_QStyleOptionViewItem(); } + +QStyleOptionViewItem* PythonQtWrapper_QStyleOptionViewItem::new_QStyleOptionViewItem(const QStyleOptionViewItem& other) +{ +return new PythonQtShell_QStyleOptionViewItem(other); } + + + +QStylePainter* PythonQtWrapper_QStylePainter::new_QStylePainter() +{ +return new QStylePainter(); } + +QStylePainter* PythonQtWrapper_QStylePainter::new_QStylePainter(QPaintDevice* pd, QWidget* w) +{ +return new QStylePainter(pd, w); } + +QStylePainter* PythonQtWrapper_QStylePainter::new_QStylePainter(QWidget* w) +{ +return new QStylePainter(w); } + +bool PythonQtWrapper_QStylePainter::begin(QStylePainter* theWrappedObject, QPaintDevice* pd, QWidget* w) +{ + return ( theWrappedObject->begin(pd, w)); +} + +bool PythonQtWrapper_QStylePainter::begin(QStylePainter* theWrappedObject, QWidget* w) +{ + return ( theWrappedObject->begin(w)); +} + +void PythonQtWrapper_QStylePainter::drawComplexControl(QStylePainter* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex& opt) +{ + ( theWrappedObject->drawComplexControl(cc, opt)); +} + +void PythonQtWrapper_QStylePainter::drawControl(QStylePainter* theWrappedObject, QStyle::ControlElement ce, const QStyleOption& opt) +{ + ( theWrappedObject->drawControl(ce, opt)); +} + +void PythonQtWrapper_QStylePainter::drawItemPixmap(QStylePainter* theWrappedObject, const QRect& r, int flags, const QPixmap& pixmap) +{ + ( theWrappedObject->drawItemPixmap(r, flags, pixmap)); +} + +void PythonQtWrapper_QStylePainter::drawItemText(QStylePainter* theWrappedObject, const QRect& r, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) +{ + ( theWrappedObject->drawItemText(r, flags, pal, enabled, text, textRole)); +} + +void PythonQtWrapper_QStylePainter::drawPrimitive(QStylePainter* theWrappedObject, QStyle::PrimitiveElement pe, const QStyleOption& opt) +{ + ( theWrappedObject->drawPrimitive(pe, opt)); +} + +QStyle* PythonQtWrapper_QStylePainter::style(QStylePainter* theWrappedObject) const +{ + return ( theWrappedObject->style()); +} + + + +PythonQtShell_QStylePlugin::~PythonQtShell_QStylePlugin() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QStylePlugin::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStylePlugin::childEvent(arg__1); +} +QStyle* PythonQtShell_QStylePlugin::create(const QString& key) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "create"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStyle*" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QStyle* returnValue; + void* args[2] = {NULL, (void*)&key}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("create", methodInfo, result); + } else { + returnValue = *((QStyle**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +void PythonQtShell_QStylePlugin::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStylePlugin::customEvent(arg__1); +} +bool PythonQtShell_QStylePlugin::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStylePlugin::event(arg__1); +} +bool PythonQtShell_QStylePlugin::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStylePlugin::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QStylePlugin::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStylePlugin::timerEvent(arg__1); +} +QStylePlugin* PythonQtWrapper_QStylePlugin::new_QStylePlugin(QObject* parent) +{ +return new PythonQtShell_QStylePlugin(parent); } + + + +PythonQtShell_QStyledItemDelegate::~PythonQtShell_QStyledItemDelegate() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QStyledItemDelegate::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyledItemDelegate::childEvent(arg__1); +} +QWidget* PythonQtShell_QStyledItemDelegate::createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createEditor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QWidget*" , "QWidget*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QWidget* returnValue; + void* args[4] = {NULL, (void*)&parent, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createEditor", methodInfo, result); + } else { + returnValue = *((QWidget**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStyledItemDelegate::createEditor(parent, option, index); +} +void PythonQtShell_QStyledItemDelegate::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyledItemDelegate::customEvent(arg__1); +} +void PythonQtShell_QStyledItemDelegate::destroyEditor(QWidget* editor, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "destroyEditor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&editor, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyledItemDelegate::destroyEditor(editor, index); +} +QString PythonQtShell_QStyledItemDelegate::displayText(const QVariant& value, const QLocale& locale) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "displayText"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "const QVariant&" , "const QLocale&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QString returnValue; + void* args[3] = {NULL, (void*)&value, (void*)&locale}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("displayText", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStyledItemDelegate::displayText(value, locale); +} +bool PythonQtShell_QStyledItemDelegate::editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*" , "QAbstractItemModel*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)&event, (void*)&model, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("editorEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStyledItemDelegate::editorEvent(event, model, option, index); +} +bool PythonQtShell_QStyledItemDelegate::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStyledItemDelegate::event(arg__1); +} +bool PythonQtShell_QStyledItemDelegate::eventFilter(QObject* object, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&object, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStyledItemDelegate::eventFilter(object, event); +} +bool PythonQtShell_QStyledItemDelegate::helpEvent(QHelpEvent* event, QAbstractItemView* view, const QStyleOptionViewItem& option, const QModelIndex& index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "helpEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QHelpEvent*" , "QAbstractItemView*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)&event, (void*)&view, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("helpEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStyledItemDelegate::helpEvent(event, view, option, index); +} +void PythonQtShell_QStyledItemDelegate::initStyleOption(QStyleOptionViewItem* option, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initStyleOption"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QStyleOptionViewItem*" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyledItemDelegate::initStyleOption(option, index); +} +void PythonQtShell_QStyledItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyledItemDelegate::paint(painter, option, index); +} +QVector PythonQtShell_QStyledItemDelegate::paintingRoles() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintingRoles"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVector"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QVector returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintingRoles", methodInfo, result); + } else { + returnValue = *((QVector*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStyledItemDelegate::paintingRoles(); +} +void PythonQtShell_QStyledItemDelegate::setEditorData(QWidget* editor, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setEditorData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&editor, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyledItemDelegate::setEditorData(editor, index); +} +void PythonQtShell_QStyledItemDelegate::setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModelData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemModel*" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&editor, (void*)&model, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyledItemDelegate::setModelData(editor, model, index); +} +QSize PythonQtShell_QStyledItemDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QSize returnValue; + void* args[3] = {NULL, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QStyledItemDelegate::sizeHint(option, index); +} +void PythonQtShell_QStyledItemDelegate::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyledItemDelegate::timerEvent(arg__1); +} +void PythonQtShell_QStyledItemDelegate::updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&editor, (void*)&option, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QStyledItemDelegate::updateEditorGeometry(editor, option, index); +} +QStyledItemDelegate* PythonQtWrapper_QStyledItemDelegate::new_QStyledItemDelegate(QObject* parent) +{ +return new PythonQtShell_QStyledItemDelegate(parent); } + +QWidget* PythonQtWrapper_QStyledItemDelegate::createEditor(QStyledItemDelegate* theWrappedObject, QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_createEditor(parent, option, index)); +} + +QString PythonQtWrapper_QStyledItemDelegate::displayText(QStyledItemDelegate* theWrappedObject, const QVariant& value, const QLocale& locale) const +{ + return ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_displayText(value, locale)); +} + +bool PythonQtWrapper_QStyledItemDelegate::editorEvent(QStyledItemDelegate* theWrappedObject, QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) +{ + return ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_editorEvent(event, model, option, index)); +} + +bool PythonQtWrapper_QStyledItemDelegate::eventFilter(QStyledItemDelegate* theWrappedObject, QObject* object, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_eventFilter(object, event)); +} + +void PythonQtWrapper_QStyledItemDelegate::initStyleOption(QStyledItemDelegate* theWrappedObject, QStyleOptionViewItem* option, const QModelIndex& index) const +{ + ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_initStyleOption(option, index)); +} + +QItemEditorFactory* PythonQtWrapper_QStyledItemDelegate::itemEditorFactory(QStyledItemDelegate* theWrappedObject) const +{ + return ( theWrappedObject->itemEditorFactory()); +} + +void PythonQtWrapper_QStyledItemDelegate::paint(QStyledItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ + ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_paint(painter, option, index)); +} + +void PythonQtWrapper_QStyledItemDelegate::setEditorData(QStyledItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const +{ + ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_setEditorData(editor, index)); +} + +void PythonQtWrapper_QStyledItemDelegate::setItemEditorFactory(QStyledItemDelegate* theWrappedObject, QItemEditorFactory* factory) +{ + ( theWrappedObject->setItemEditorFactory(factory)); +} + +void PythonQtWrapper_QStyledItemDelegate::setModelData(QStyledItemDelegate* theWrappedObject, QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const +{ + ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_setModelData(editor, model, index)); +} + +QSize PythonQtWrapper_QStyledItemDelegate::sizeHint(QStyledItemDelegate* theWrappedObject, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_sizeHint(option, index)); +} + +void PythonQtWrapper_QStyledItemDelegate::updateEditorGeometry(QStyledItemDelegate* theWrappedObject, QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const +{ + ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_updateEditorGeometry(editor, option, index)); +} + + + +PythonQtShell_QSwipeGesture::~PythonQtShell_QSwipeGesture() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QSwipeGesture::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSwipeGesture::childEvent(arg__1); +} +void PythonQtShell_QSwipeGesture::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSwipeGesture::customEvent(arg__1); +} +bool PythonQtShell_QSwipeGesture::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSwipeGesture::event(arg__1); +} +bool PythonQtShell_QSwipeGesture::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSwipeGesture::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QSwipeGesture::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSwipeGesture::timerEvent(arg__1); +} +QSwipeGesture* PythonQtWrapper_QSwipeGesture::new_QSwipeGesture(QObject* parent) +{ +return new PythonQtShell_QSwipeGesture(parent); } + +QSwipeGesture::SwipeDirection PythonQtWrapper_QSwipeGesture::horizontalDirection(QSwipeGesture* theWrappedObject) const +{ + return ( theWrappedObject->horizontalDirection()); +} + +void PythonQtWrapper_QSwipeGesture::setSwipeAngle(QSwipeGesture* theWrappedObject, qreal value) +{ + ( theWrappedObject->setSwipeAngle(value)); +} + +qreal PythonQtWrapper_QSwipeGesture::swipeAngle(QSwipeGesture* theWrappedObject) const +{ + return ( theWrappedObject->swipeAngle()); +} + +QSwipeGesture::SwipeDirection PythonQtWrapper_QSwipeGesture::verticalDirection(QSwipeGesture* theWrappedObject) const +{ + return ( theWrappedObject->verticalDirection()); +} + +#endif + +PythonQtShell_QSyntaxHighlighter::~PythonQtShell_QSyntaxHighlighter() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QSyntaxHighlighter::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSyntaxHighlighter::childEvent(arg__1); +} +void PythonQtShell_QSyntaxHighlighter::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSyntaxHighlighter::customEvent(arg__1); +} +bool PythonQtShell_QSyntaxHighlighter::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSyntaxHighlighter::event(arg__1); +} +bool PythonQtShell_QSyntaxHighlighter::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSyntaxHighlighter::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QSyntaxHighlighter::highlightBlock(const QString& text) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "highlightBlock"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&text}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QSyntaxHighlighter::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSyntaxHighlighter::timerEvent(arg__1); +} +QSyntaxHighlighter* PythonQtWrapper_QSyntaxHighlighter::new_QSyntaxHighlighter(QObject* parent) +{ +return new PythonQtShell_QSyntaxHighlighter(parent); } + +QSyntaxHighlighter* PythonQtWrapper_QSyntaxHighlighter::new_QSyntaxHighlighter(QTextDocument* parent) +{ +return new PythonQtShell_QSyntaxHighlighter(parent); } + +QTextDocument* PythonQtWrapper_QSyntaxHighlighter::document(QSyntaxHighlighter* theWrappedObject) const +{ + return ( theWrappedObject->document()); +} + +void PythonQtWrapper_QSyntaxHighlighter::setDocument(QSyntaxHighlighter* theWrappedObject, QTextDocument* doc) +{ + ( theWrappedObject->setDocument(doc)); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QSystemTrayIcon::~PythonQtShell_QSystemTrayIcon() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QSystemTrayIcon::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSystemTrayIcon::childEvent(arg__1); +} +void PythonQtShell_QSystemTrayIcon::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSystemTrayIcon::customEvent(arg__1); +} +bool PythonQtShell_QSystemTrayIcon::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSystemTrayIcon::event(event); +} +bool PythonQtShell_QSystemTrayIcon::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSystemTrayIcon::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QSystemTrayIcon::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSystemTrayIcon::timerEvent(arg__1); +} +QSystemTrayIcon* PythonQtWrapper_QSystemTrayIcon::new_QSystemTrayIcon(QObject* parent) +{ +return new PythonQtShell_QSystemTrayIcon(parent); } + +QSystemTrayIcon* PythonQtWrapper_QSystemTrayIcon::new_QSystemTrayIcon(const QIcon& icon, QObject* parent) +{ +return new PythonQtShell_QSystemTrayIcon(icon, parent); } + +QMenu* PythonQtWrapper_QSystemTrayIcon::contextMenu(QSystemTrayIcon* theWrappedObject) const +{ + return ( theWrappedObject->contextMenu()); +} + +bool PythonQtWrapper_QSystemTrayIcon::event(QSystemTrayIcon* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QSystemTrayIcon*)theWrappedObject)->promoted_event(event)); +} + +QRect PythonQtWrapper_QSystemTrayIcon::geometry(QSystemTrayIcon* theWrappedObject) const +{ + return ( theWrappedObject->geometry()); +} + +QIcon PythonQtWrapper_QSystemTrayIcon::icon(QSystemTrayIcon* theWrappedObject) const +{ + return ( theWrappedObject->icon()); +} + +bool PythonQtWrapper_QSystemTrayIcon::static_QSystemTrayIcon_isSystemTrayAvailable() +{ + return (QSystemTrayIcon::isSystemTrayAvailable()); +} + +bool PythonQtWrapper_QSystemTrayIcon::isVisible(QSystemTrayIcon* theWrappedObject) const +{ + return ( theWrappedObject->isVisible()); +} + +void PythonQtWrapper_QSystemTrayIcon::setContextMenu(QSystemTrayIcon* theWrappedObject, QMenu* menu) +{ + ( theWrappedObject->setContextMenu(menu)); +} + +void PythonQtWrapper_QSystemTrayIcon::setIcon(QSystemTrayIcon* theWrappedObject, const QIcon& icon) +{ + ( theWrappedObject->setIcon(icon)); +} + +void PythonQtWrapper_QSystemTrayIcon::setToolTip(QSystemTrayIcon* theWrappedObject, const QString& tip) +{ + ( theWrappedObject->setToolTip(tip)); +} + +void PythonQtWrapper_QSystemTrayIcon::showMessage(QSystemTrayIcon* theWrappedObject, const QString& title, const QString& msg, QSystemTrayIcon::MessageIcon icon, int msecs) +{ + ( theWrappedObject->showMessage(title, msg, icon, msecs)); +} + +bool PythonQtWrapper_QSystemTrayIcon::static_QSystemTrayIcon_supportsMessages() +{ + return (QSystemTrayIcon::supportsMessages()); +} + +QString PythonQtWrapper_QSystemTrayIcon::toolTip(QSystemTrayIcon* theWrappedObject) const +{ + return ( theWrappedObject->toolTip()); +} + + + +PythonQtShell_QTabBar::~PythonQtShell_QTabBar() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTabBar::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::actionEvent(arg__1); +} +void PythonQtShell_QTabBar::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::changeEvent(arg__1); +} +void PythonQtShell_QTabBar::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::childEvent(arg__1); +} +void PythonQtShell_QTabBar::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::closeEvent(arg__1); +} +void PythonQtShell_QTabBar::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::contextMenuEvent(arg__1); +} +void PythonQtShell_QTabBar::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::customEvent(arg__1); +} +int PythonQtShell_QTabBar::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabBar::devType(); +} +void PythonQtShell_QTabBar::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::dragEnterEvent(arg__1); +} +void PythonQtShell_QTabBar::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::dragLeaveEvent(arg__1); +} +void PythonQtShell_QTabBar::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::dragMoveEvent(arg__1); +} +void PythonQtShell_QTabBar::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::dropEvent(arg__1); +} +void PythonQtShell_QTabBar::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::enterEvent(arg__1); +} +bool PythonQtShell_QTabBar::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabBar::event(arg__1); +} +bool PythonQtShell_QTabBar::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabBar::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QTabBar::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::focusInEvent(arg__1); +} +bool PythonQtShell_QTabBar::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabBar::focusNextPrevChild(next); +} +void PythonQtShell_QTabBar::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::focusOutEvent(arg__1); +} +bool PythonQtShell_QTabBar::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabBar::hasHeightForWidth(); +} +int PythonQtShell_QTabBar::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabBar::heightForWidth(arg__1); +} +void PythonQtShell_QTabBar::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::hideEvent(arg__1); +} +void PythonQtShell_QTabBar::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::initPainter(painter); +} +void PythonQtShell_QTabBar::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QTabBar::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabBar::inputMethodQuery(arg__1); +} +void PythonQtShell_QTabBar::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::keyPressEvent(arg__1); +} +void PythonQtShell_QTabBar::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::keyReleaseEvent(arg__1); +} +void PythonQtShell_QTabBar::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::leaveEvent(arg__1); +} +int PythonQtShell_QTabBar::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabBar::metric(arg__1); +} +QSize PythonQtShell_QTabBar::minimumTabSizeHint(int index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumTabSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QSize returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("minimumTabSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabBar::minimumTabSizeHint(index); +} +void PythonQtShell_QTabBar::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QTabBar::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::mouseMoveEvent(arg__1); +} +void PythonQtShell_QTabBar::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::mousePressEvent(arg__1); +} +void PythonQtShell_QTabBar::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QTabBar::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::moveEvent(arg__1); +} +bool PythonQtShell_QTabBar::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabBar::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QTabBar::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabBar::paintEngine(); +} +void PythonQtShell_QTabBar::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QTabBar::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabBar::redirected(offset); +} +void PythonQtShell_QTabBar::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QTabBar::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabBar::sharedPainter(); +} +void PythonQtShell_QTabBar::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::showEvent(arg__1); +} +void PythonQtShell_QTabBar::tabInserted(int index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabInserted"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::tabInserted(index); +} +void PythonQtShell_QTabBar::tabLayoutChange() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabLayoutChange"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::tabLayoutChange(); +} +void PythonQtShell_QTabBar::tabRemoved(int index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabRemoved"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::tabRemoved(index); +} +QSize PythonQtShell_QTabBar::tabSizeHint(int index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QSize returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("tabSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabBar::tabSizeHint(index); +} +void PythonQtShell_QTabBar::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::tabletEvent(arg__1); +} +void PythonQtShell_QTabBar::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::timerEvent(arg__1); +} +void PythonQtShell_QTabBar::wheelEvent(QWheelEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabBar::wheelEvent(event); +} +QTabBar* PythonQtWrapper_QTabBar::new_QTabBar(QWidget* parent) +{ +return new PythonQtShell_QTabBar(parent); } + +int PythonQtWrapper_QTabBar::addTab(QTabBar* theWrappedObject, const QIcon& icon, const QString& text) +{ + return ( theWrappedObject->addTab(icon, text)); +} + +int PythonQtWrapper_QTabBar::addTab(QTabBar* theWrappedObject, const QString& text) +{ + return ( theWrappedObject->addTab(text)); +} + +void PythonQtWrapper_QTabBar::changeEvent(QTabBar* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_changeEvent(arg__1)); +} + +int PythonQtWrapper_QTabBar::count(QTabBar* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +int PythonQtWrapper_QTabBar::currentIndex(QTabBar* theWrappedObject) const +{ + return ( theWrappedObject->currentIndex()); +} + +bool PythonQtWrapper_QTabBar::documentMode(QTabBar* theWrappedObject) const +{ + return ( theWrappedObject->documentMode()); +} + +bool PythonQtWrapper_QTabBar::drawBase(QTabBar* theWrappedObject) const +{ + return ( theWrappedObject->drawBase()); +} + +Qt::TextElideMode PythonQtWrapper_QTabBar::elideMode(QTabBar* theWrappedObject) const +{ + return ( theWrappedObject->elideMode()); +} + +bool PythonQtWrapper_QTabBar::event(QTabBar* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_event(arg__1)); +} + +bool PythonQtWrapper_QTabBar::expanding(QTabBar* theWrappedObject) const +{ + return ( theWrappedObject->expanding()); +} + +void PythonQtWrapper_QTabBar::hideEvent(QTabBar* theWrappedObject, QHideEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_hideEvent(arg__1)); +} + +QSize PythonQtWrapper_QTabBar::iconSize(QTabBar* theWrappedObject) const +{ + return ( theWrappedObject->iconSize()); +} + +int PythonQtWrapper_QTabBar::insertTab(QTabBar* theWrappedObject, int index, const QIcon& icon, const QString& text) +{ + return ( theWrappedObject->insertTab(index, icon, text)); +} + +int PythonQtWrapper_QTabBar::insertTab(QTabBar* theWrappedObject, int index, const QString& text) +{ + return ( theWrappedObject->insertTab(index, text)); +} + +bool PythonQtWrapper_QTabBar::isMovable(QTabBar* theWrappedObject) const +{ + return ( theWrappedObject->isMovable()); +} + +bool PythonQtWrapper_QTabBar::isTabEnabled(QTabBar* theWrappedObject, int index) const +{ + return ( theWrappedObject->isTabEnabled(index)); +} + +void PythonQtWrapper_QTabBar::keyPressEvent(QTabBar* theWrappedObject, QKeyEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_keyPressEvent(arg__1)); +} + +QSize PythonQtWrapper_QTabBar::minimumSizeHint(QTabBar* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +QSize PythonQtWrapper_QTabBar::minimumTabSizeHint(QTabBar* theWrappedObject, int index) const +{ + return ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_minimumTabSizeHint(index)); +} + +void PythonQtWrapper_QTabBar::mouseMoveEvent(QTabBar* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); +} + +void PythonQtWrapper_QTabBar::mousePressEvent(QTabBar* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_mousePressEvent(arg__1)); +} + +void PythonQtWrapper_QTabBar::mouseReleaseEvent(QTabBar* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); +} + +void PythonQtWrapper_QTabBar::moveTab(QTabBar* theWrappedObject, int from, int to) +{ + ( theWrappedObject->moveTab(from, to)); +} + +void PythonQtWrapper_QTabBar::paintEvent(QTabBar* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +void PythonQtWrapper_QTabBar::removeTab(QTabBar* theWrappedObject, int index) +{ + ( theWrappedObject->removeTab(index)); +} + +void PythonQtWrapper_QTabBar::resizeEvent(QTabBar* theWrappedObject, QResizeEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_resizeEvent(arg__1)); +} + +QTabBar::SelectionBehavior PythonQtWrapper_QTabBar::selectionBehaviorOnRemove(QTabBar* theWrappedObject) const +{ + return ( theWrappedObject->selectionBehaviorOnRemove()); +} + +void PythonQtWrapper_QTabBar::setDocumentMode(QTabBar* theWrappedObject, bool set) +{ + ( theWrappedObject->setDocumentMode(set)); +} + +void PythonQtWrapper_QTabBar::setDrawBase(QTabBar* theWrappedObject, bool drawTheBase) +{ + ( theWrappedObject->setDrawBase(drawTheBase)); +} + +void PythonQtWrapper_QTabBar::setElideMode(QTabBar* theWrappedObject, Qt::TextElideMode arg__1) +{ + ( theWrappedObject->setElideMode(arg__1)); +} + +void PythonQtWrapper_QTabBar::setExpanding(QTabBar* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setExpanding(enabled)); +} + +void PythonQtWrapper_QTabBar::setIconSize(QTabBar* theWrappedObject, const QSize& size) +{ + ( theWrappedObject->setIconSize(size)); +} + +void PythonQtWrapper_QTabBar::setMovable(QTabBar* theWrappedObject, bool movable) +{ + ( theWrappedObject->setMovable(movable)); +} + +void PythonQtWrapper_QTabBar::setSelectionBehaviorOnRemove(QTabBar* theWrappedObject, QTabBar::SelectionBehavior behavior) +{ + ( theWrappedObject->setSelectionBehaviorOnRemove(behavior)); +} + +void PythonQtWrapper_QTabBar::setShape(QTabBar* theWrappedObject, QTabBar::Shape shape) +{ + ( theWrappedObject->setShape(shape)); +} + +void PythonQtWrapper_QTabBar::setTabButton(QTabBar* theWrappedObject, int index, QTabBar::ButtonPosition position, QWidget* widget) +{ + ( theWrappedObject->setTabButton(index, position, widget)); +} + +void PythonQtWrapper_QTabBar::setTabData(QTabBar* theWrappedObject, int index, const QVariant& data) +{ + ( theWrappedObject->setTabData(index, data)); +} + +void PythonQtWrapper_QTabBar::setTabEnabled(QTabBar* theWrappedObject, int index, bool arg__2) +{ + ( theWrappedObject->setTabEnabled(index, arg__2)); +} + +void PythonQtWrapper_QTabBar::setTabIcon(QTabBar* theWrappedObject, int index, const QIcon& icon) +{ + ( theWrappedObject->setTabIcon(index, icon)); +} + +void PythonQtWrapper_QTabBar::setTabText(QTabBar* theWrappedObject, int index, const QString& text) +{ + ( theWrappedObject->setTabText(index, text)); +} + +void PythonQtWrapper_QTabBar::setTabTextColor(QTabBar* theWrappedObject, int index, const QColor& color) +{ + ( theWrappedObject->setTabTextColor(index, color)); +} + +void PythonQtWrapper_QTabBar::setTabToolTip(QTabBar* theWrappedObject, int index, const QString& tip) +{ + ( theWrappedObject->setTabToolTip(index, tip)); +} + +void PythonQtWrapper_QTabBar::setTabWhatsThis(QTabBar* theWrappedObject, int index, const QString& text) +{ + ( theWrappedObject->setTabWhatsThis(index, text)); +} + +void PythonQtWrapper_QTabBar::setTabsClosable(QTabBar* theWrappedObject, bool closable) +{ + ( theWrappedObject->setTabsClosable(closable)); +} + +void PythonQtWrapper_QTabBar::setUsesScrollButtons(QTabBar* theWrappedObject, bool useButtons) +{ + ( theWrappedObject->setUsesScrollButtons(useButtons)); +} + +QTabBar::Shape PythonQtWrapper_QTabBar::shape(QTabBar* theWrappedObject) const +{ + return ( theWrappedObject->shape()); +} + +void PythonQtWrapper_QTabBar::showEvent(QTabBar* theWrappedObject, QShowEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_showEvent(arg__1)); +} + +QSize PythonQtWrapper_QTabBar::sizeHint(QTabBar* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +int PythonQtWrapper_QTabBar::tabAt(QTabBar* theWrappedObject, const QPoint& pos) const +{ + return ( theWrappedObject->tabAt(pos)); +} + +QWidget* PythonQtWrapper_QTabBar::tabButton(QTabBar* theWrappedObject, int index, QTabBar::ButtonPosition position) const +{ + return ( theWrappedObject->tabButton(index, position)); +} + +QVariant PythonQtWrapper_QTabBar::tabData(QTabBar* theWrappedObject, int index) const +{ + return ( theWrappedObject->tabData(index)); +} + +QIcon PythonQtWrapper_QTabBar::tabIcon(QTabBar* theWrappedObject, int index) const +{ + return ( theWrappedObject->tabIcon(index)); +} + +void PythonQtWrapper_QTabBar::tabInserted(QTabBar* theWrappedObject, int index) +{ + ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_tabInserted(index)); +} + +void PythonQtWrapper_QTabBar::tabLayoutChange(QTabBar* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_tabLayoutChange()); +} + +QRect PythonQtWrapper_QTabBar::tabRect(QTabBar* theWrappedObject, int index) const +{ + return ( theWrappedObject->tabRect(index)); +} + +void PythonQtWrapper_QTabBar::tabRemoved(QTabBar* theWrappedObject, int index) +{ + ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_tabRemoved(index)); +} + +QSize PythonQtWrapper_QTabBar::tabSizeHint(QTabBar* theWrappedObject, int index) const +{ + return ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_tabSizeHint(index)); +} + +QString PythonQtWrapper_QTabBar::tabText(QTabBar* theWrappedObject, int index) const +{ + return ( theWrappedObject->tabText(index)); +} + +QColor PythonQtWrapper_QTabBar::tabTextColor(QTabBar* theWrappedObject, int index) const +{ + return ( theWrappedObject->tabTextColor(index)); +} + +QString PythonQtWrapper_QTabBar::tabToolTip(QTabBar* theWrappedObject, int index) const +{ + return ( theWrappedObject->tabToolTip(index)); +} + +QString PythonQtWrapper_QTabBar::tabWhatsThis(QTabBar* theWrappedObject, int index) const +{ + return ( theWrappedObject->tabWhatsThis(index)); +} + +bool PythonQtWrapper_QTabBar::tabsClosable(QTabBar* theWrappedObject) const +{ + return ( theWrappedObject->tabsClosable()); +} + +bool PythonQtWrapper_QTabBar::usesScrollButtons(QTabBar* theWrappedObject) const +{ + return ( theWrappedObject->usesScrollButtons()); +} + +void PythonQtWrapper_QTabBar::wheelEvent(QTabBar* theWrappedObject, QWheelEvent* event) +{ + ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_wheelEvent(event)); +} + + + +PythonQtShell_QTabWidget::~PythonQtShell_QTabWidget() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTabWidget::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::actionEvent(arg__1); +} +void PythonQtShell_QTabWidget::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::changeEvent(arg__1); +} +void PythonQtShell_QTabWidget::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::childEvent(arg__1); +} +void PythonQtShell_QTabWidget::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::closeEvent(arg__1); +} +void PythonQtShell_QTabWidget::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::contextMenuEvent(arg__1); +} +void PythonQtShell_QTabWidget::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::customEvent(arg__1); +} +int PythonQtShell_QTabWidget::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabWidget::devType(); +} +void PythonQtShell_QTabWidget::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::dragEnterEvent(arg__1); +} +void PythonQtShell_QTabWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::dragLeaveEvent(arg__1); +} +void PythonQtShell_QTabWidget::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::dragMoveEvent(arg__1); +} +void PythonQtShell_QTabWidget::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::dropEvent(arg__1); +} +void PythonQtShell_QTabWidget::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::enterEvent(arg__1); +} +bool PythonQtShell_QTabWidget::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabWidget::event(arg__1); +} +bool PythonQtShell_QTabWidget::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabWidget::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QTabWidget::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::focusInEvent(arg__1); +} +bool PythonQtShell_QTabWidget::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabWidget::focusNextPrevChild(next); +} +void PythonQtShell_QTabWidget::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::focusOutEvent(arg__1); +} +bool PythonQtShell_QTabWidget::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabWidget::hasHeightForWidth(); +} +int PythonQtShell_QTabWidget::heightForWidth(int width) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&width}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabWidget::heightForWidth(width); +} +void PythonQtShell_QTabWidget::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::hideEvent(arg__1); +} +void PythonQtShell_QTabWidget::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::initPainter(painter); +} +void PythonQtShell_QTabWidget::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QTabWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabWidget::inputMethodQuery(arg__1); +} +void PythonQtShell_QTabWidget::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::keyPressEvent(arg__1); +} +void PythonQtShell_QTabWidget::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::keyReleaseEvent(arg__1); +} +void PythonQtShell_QTabWidget::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::leaveEvent(arg__1); +} +int PythonQtShell_QTabWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabWidget::metric(arg__1); +} +void PythonQtShell_QTabWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QTabWidget::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::mouseMoveEvent(arg__1); +} +void PythonQtShell_QTabWidget::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::mousePressEvent(arg__1); +} +void PythonQtShell_QTabWidget::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QTabWidget::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::moveEvent(arg__1); +} +bool PythonQtShell_QTabWidget::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabWidget::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QTabWidget::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabWidget::paintEngine(); +} +void PythonQtShell_QTabWidget::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QTabWidget::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabWidget::redirected(offset); +} +void PythonQtShell_QTabWidget::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QTabWidget::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTabWidget::sharedPainter(); +} +void PythonQtShell_QTabWidget::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::showEvent(arg__1); +} +void PythonQtShell_QTabWidget::tabInserted(int index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabInserted"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::tabInserted(index); +} +void PythonQtShell_QTabWidget::tabRemoved(int index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabRemoved"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::tabRemoved(index); +} +void PythonQtShell_QTabWidget::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::tabletEvent(arg__1); +} +void PythonQtShell_QTabWidget::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::timerEvent(arg__1); +} +void PythonQtShell_QTabWidget::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTabWidget::wheelEvent(arg__1); +} +QTabWidget* PythonQtWrapper_QTabWidget::new_QTabWidget(QWidget* parent) +{ +return new PythonQtShell_QTabWidget(parent); } + +int PythonQtWrapper_QTabWidget::addTab(QTabWidget* theWrappedObject, QWidget* widget, const QIcon& icon, const QString& label) +{ + return ( theWrappedObject->addTab(widget, icon, label)); +} + +int PythonQtWrapper_QTabWidget::addTab(QTabWidget* theWrappedObject, QWidget* widget, const QString& arg__2) +{ + return ( theWrappedObject->addTab(widget, arg__2)); +} + +void PythonQtWrapper_QTabWidget::changeEvent(QTabWidget* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_changeEvent(arg__1)); +} + +void PythonQtWrapper_QTabWidget::clear(QTabWidget* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +QWidget* PythonQtWrapper_QTabWidget::cornerWidget(QTabWidget* theWrappedObject, Qt::Corner corner) const +{ + return ( theWrappedObject->cornerWidget(corner)); +} + +int PythonQtWrapper_QTabWidget::count(QTabWidget* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +int PythonQtWrapper_QTabWidget::currentIndex(QTabWidget* theWrappedObject) const +{ + return ( theWrappedObject->currentIndex()); +} + +QWidget* PythonQtWrapper_QTabWidget::currentWidget(QTabWidget* theWrappedObject) const +{ + return ( theWrappedObject->currentWidget()); +} + +bool PythonQtWrapper_QTabWidget::documentMode(QTabWidget* theWrappedObject) const +{ + return ( theWrappedObject->documentMode()); +} + +Qt::TextElideMode PythonQtWrapper_QTabWidget::elideMode(QTabWidget* theWrappedObject) const +{ + return ( theWrappedObject->elideMode()); +} + +bool PythonQtWrapper_QTabWidget::event(QTabWidget* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_event(arg__1)); +} + +bool PythonQtWrapper_QTabWidget::hasHeightForWidth(QTabWidget* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_hasHeightForWidth()); +} + +int PythonQtWrapper_QTabWidget::heightForWidth(QTabWidget* theWrappedObject, int width) const +{ + return ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_heightForWidth(width)); +} + +QSize PythonQtWrapper_QTabWidget::iconSize(QTabWidget* theWrappedObject) const +{ + return ( theWrappedObject->iconSize()); +} + +int PythonQtWrapper_QTabWidget::indexOf(QTabWidget* theWrappedObject, QWidget* widget) const +{ + return ( theWrappedObject->indexOf(widget)); +} + +int PythonQtWrapper_QTabWidget::insertTab(QTabWidget* theWrappedObject, int index, QWidget* widget, const QIcon& icon, const QString& label) +{ + return ( theWrappedObject->insertTab(index, widget, icon, label)); +} + +int PythonQtWrapper_QTabWidget::insertTab(QTabWidget* theWrappedObject, int index, QWidget* widget, const QString& arg__3) +{ + return ( theWrappedObject->insertTab(index, widget, arg__3)); +} + +bool PythonQtWrapper_QTabWidget::isMovable(QTabWidget* theWrappedObject) const +{ + return ( theWrappedObject->isMovable()); +} + +bool PythonQtWrapper_QTabWidget::isTabEnabled(QTabWidget* theWrappedObject, int index) const +{ + return ( theWrappedObject->isTabEnabled(index)); +} + +void PythonQtWrapper_QTabWidget::keyPressEvent(QTabWidget* theWrappedObject, QKeyEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_keyPressEvent(arg__1)); +} + +QSize PythonQtWrapper_QTabWidget::minimumSizeHint(QTabWidget* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +void PythonQtWrapper_QTabWidget::paintEvent(QTabWidget* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +void PythonQtWrapper_QTabWidget::removeTab(QTabWidget* theWrappedObject, int index) +{ + ( theWrappedObject->removeTab(index)); +} + +void PythonQtWrapper_QTabWidget::resizeEvent(QTabWidget* theWrappedObject, QResizeEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_resizeEvent(arg__1)); +} + +void PythonQtWrapper_QTabWidget::setCornerWidget(QTabWidget* theWrappedObject, QWidget* w, Qt::Corner corner) +{ + ( theWrappedObject->setCornerWidget(w, corner)); +} + +void PythonQtWrapper_QTabWidget::setDocumentMode(QTabWidget* theWrappedObject, bool set) +{ + ( theWrappedObject->setDocumentMode(set)); +} + +void PythonQtWrapper_QTabWidget::setElideMode(QTabWidget* theWrappedObject, Qt::TextElideMode arg__1) +{ + ( theWrappedObject->setElideMode(arg__1)); +} + +void PythonQtWrapper_QTabWidget::setIconSize(QTabWidget* theWrappedObject, const QSize& size) +{ + ( theWrappedObject->setIconSize(size)); +} + +void PythonQtWrapper_QTabWidget::setMovable(QTabWidget* theWrappedObject, bool movable) +{ + ( theWrappedObject->setMovable(movable)); +} + +void PythonQtWrapper_QTabWidget::setTabEnabled(QTabWidget* theWrappedObject, int index, bool arg__2) +{ + ( theWrappedObject->setTabEnabled(index, arg__2)); +} + +void PythonQtWrapper_QTabWidget::setTabIcon(QTabWidget* theWrappedObject, int index, const QIcon& icon) +{ + ( theWrappedObject->setTabIcon(index, icon)); +} + +void PythonQtWrapper_QTabWidget::setTabPosition(QTabWidget* theWrappedObject, QTabWidget::TabPosition arg__1) +{ + ( theWrappedObject->setTabPosition(arg__1)); +} + +void PythonQtWrapper_QTabWidget::setTabShape(QTabWidget* theWrappedObject, QTabWidget::TabShape s) +{ + ( theWrappedObject->setTabShape(s)); +} + +void PythonQtWrapper_QTabWidget::setTabText(QTabWidget* theWrappedObject, int index, const QString& arg__2) +{ + ( theWrappedObject->setTabText(index, arg__2)); +} + +void PythonQtWrapper_QTabWidget::setTabToolTip(QTabWidget* theWrappedObject, int index, const QString& tip) +{ + ( theWrappedObject->setTabToolTip(index, tip)); +} + +void PythonQtWrapper_QTabWidget::setTabWhatsThis(QTabWidget* theWrappedObject, int index, const QString& text) +{ + ( theWrappedObject->setTabWhatsThis(index, text)); +} + +void PythonQtWrapper_QTabWidget::setTabsClosable(QTabWidget* theWrappedObject, bool closeable) +{ + ( theWrappedObject->setTabsClosable(closeable)); +} + +void PythonQtWrapper_QTabWidget::setUsesScrollButtons(QTabWidget* theWrappedObject, bool useButtons) +{ + ( theWrappedObject->setUsesScrollButtons(useButtons)); +} + +void PythonQtWrapper_QTabWidget::showEvent(QTabWidget* theWrappedObject, QShowEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_showEvent(arg__1)); +} + +QSize PythonQtWrapper_QTabWidget::sizeHint(QTabWidget* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +QTabBar* PythonQtWrapper_QTabWidget::tabBar(QTabWidget* theWrappedObject) const +{ + return ( theWrappedObject->tabBar()); +} + +QIcon PythonQtWrapper_QTabWidget::tabIcon(QTabWidget* theWrappedObject, int index) const +{ + return ( theWrappedObject->tabIcon(index)); +} + +void PythonQtWrapper_QTabWidget::tabInserted(QTabWidget* theWrappedObject, int index) +{ + ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_tabInserted(index)); +} + +QTabWidget::TabPosition PythonQtWrapper_QTabWidget::tabPosition(QTabWidget* theWrappedObject) const +{ + return ( theWrappedObject->tabPosition()); +} + +void PythonQtWrapper_QTabWidget::tabRemoved(QTabWidget* theWrappedObject, int index) +{ + ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_tabRemoved(index)); +} + +QTabWidget::TabShape PythonQtWrapper_QTabWidget::tabShape(QTabWidget* theWrappedObject) const +{ + return ( theWrappedObject->tabShape()); +} + +QString PythonQtWrapper_QTabWidget::tabText(QTabWidget* theWrappedObject, int index) const +{ + return ( theWrappedObject->tabText(index)); +} + +QString PythonQtWrapper_QTabWidget::tabToolTip(QTabWidget* theWrappedObject, int index) const +{ + return ( theWrappedObject->tabToolTip(index)); +} + +QString PythonQtWrapper_QTabWidget::tabWhatsThis(QTabWidget* theWrappedObject, int index) const +{ + return ( theWrappedObject->tabWhatsThis(index)); +} + +bool PythonQtWrapper_QTabWidget::tabsClosable(QTabWidget* theWrappedObject) const +{ + return ( theWrappedObject->tabsClosable()); +} + +bool PythonQtWrapper_QTabWidget::usesScrollButtons(QTabWidget* theWrappedObject) const +{ + return ( theWrappedObject->usesScrollButtons()); +} + +QWidget* PythonQtWrapper_QTabWidget::widget(QTabWidget* theWrappedObject, int index) const +{ + return ( theWrappedObject->widget(index)); +} + + + +PythonQtShell_QTableView::~PythonQtShell_QTableView() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTableView::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::actionEvent(arg__1); +} +void PythonQtShell_QTableView::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::changeEvent(arg__1); +} +void PythonQtShell_QTableView::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::childEvent(arg__1); +} +void PythonQtShell_QTableView::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&editor, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::closeEditor(editor, hint); +} +void PythonQtShell_QTableView::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::closeEvent(arg__1); +} +void PythonQtShell_QTableView::commitData(QWidget* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::commitData(editor); +} +void PythonQtShell_QTableView::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::contextMenuEvent(arg__1); +} +void PythonQtShell_QTableView::currentChanged(const QModelIndex& current, const QModelIndex& previous) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)¤t, (void*)&previous}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::currentChanged(current, previous); +} +void PythonQtShell_QTableView::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::customEvent(arg__1); +} +void PythonQtShell_QTableView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&" , "const QVector&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&topLeft, (void*)&bottomRight, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::dataChanged(topLeft, bottomRight, roles); +} +int PythonQtShell_QTableView::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::devType(); +} +void PythonQtShell_QTableView::doItemsLayout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::doItemsLayout(); +} +void PythonQtShell_QTableView::dragEnterEvent(QDragEnterEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::dragEnterEvent(event); +} +void PythonQtShell_QTableView::dragLeaveEvent(QDragLeaveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::dragLeaveEvent(event); +} +void PythonQtShell_QTableView::dragMoveEvent(QDragMoveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::dragMoveEvent(event); +} +void PythonQtShell_QTableView::dropEvent(QDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::dropEvent(event); +} +bool PythonQtShell_QTableView::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::edit(index, trigger, event); +} +void PythonQtShell_QTableView::editorDestroyed(QObject* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QObject*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::editorDestroyed(editor); +} +void PythonQtShell_QTableView::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::enterEvent(arg__1); +} +bool PythonQtShell_QTableView::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::event(event); +} +bool PythonQtShell_QTableView::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QTableView::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::focusInEvent(event); +} +bool PythonQtShell_QTableView::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::focusNextPrevChild(next); +} +void PythonQtShell_QTableView::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::focusOutEvent(event); +} +bool PythonQtShell_QTableView::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::hasHeightForWidth(); +} +int PythonQtShell_QTableView::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::heightForWidth(arg__1); +} +void PythonQtShell_QTableView::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::hideEvent(arg__1); +} +int PythonQtShell_QTableView::horizontalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::horizontalOffset(); +} +void PythonQtShell_QTableView::horizontalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::horizontalScrollbarAction(action); +} +void PythonQtShell_QTableView::horizontalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::horizontalScrollbarValueChanged(value); +} +QModelIndex PythonQtShell_QTableView::indexAt(const QPoint& p) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&p}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::indexAt(p); +} +void PythonQtShell_QTableView::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::initPainter(painter); +} +void PythonQtShell_QTableView::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::inputMethodEvent(event); +} +QVariant PythonQtShell_QTableView::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::inputMethodQuery(query); +} +bool PythonQtShell_QTableView::isIndexHidden(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::isIndexHidden(index); +} +void PythonQtShell_QTableView::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::keyPressEvent(event); +} +void PythonQtShell_QTableView::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::keyReleaseEvent(arg__1); +} +void PythonQtShell_QTableView::keyboardSearch(const QString& search) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&search}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::keyboardSearch(search); +} +void PythonQtShell_QTableView::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::leaveEvent(arg__1); +} +int PythonQtShell_QTableView::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::metric(arg__1); +} +void PythonQtShell_QTableView::mouseDoubleClickEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::mouseDoubleClickEvent(event); +} +void PythonQtShell_QTableView::mouseMoveEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::mouseMoveEvent(event); +} +void PythonQtShell_QTableView::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::mousePressEvent(event); +} +void PythonQtShell_QTableView::mouseReleaseEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::mouseReleaseEvent(event); +} +void PythonQtShell_QTableView::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::moveEvent(arg__1); +} +bool PythonQtShell_QTableView::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QTableView::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::paintEngine(); +} +void PythonQtShell_QTableView::paintEvent(QPaintEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::paintEvent(e); +} +QPaintDevice* PythonQtShell_QTableView::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::redirected(offset); +} +void PythonQtShell_QTableView::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::reset(); +} +void PythonQtShell_QTableView::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::resizeEvent(event); +} +void PythonQtShell_QTableView::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::rowsAboutToBeRemoved(parent, start, end); +} +void PythonQtShell_QTableView::rowsInserted(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::rowsInserted(parent, start, end); +} +void PythonQtShell_QTableView::scrollContentsBy(int dx, int dy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&dx, (void*)&dy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::scrollContentsBy(dx, dy); +} +void PythonQtShell_QTableView::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&index, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::scrollTo(index, hint); +} +void PythonQtShell_QTableView::selectAll() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::selectAll(); +} +QList PythonQtShell_QTableView::selectedIndexes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::selectedIndexes(); +} +void PythonQtShell_QTableView::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::selectionChanged(selected, deselected); +} +QItemSelectionModel::SelectionFlags PythonQtShell_QTableView::selectionCommand(const QModelIndex& index, const QEvent* event) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QItemSelectionModel::SelectionFlags returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); + } else { + returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::selectionCommand(index, event); +} +void PythonQtShell_QTableView::setModel(QAbstractItemModel* model) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractItemModel*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&model}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::setModel(model); +} +void PythonQtShell_QTableView::setRootIndex(const QModelIndex& index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::setRootIndex(index); +} +void PythonQtShell_QTableView::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&rect, (void*)&command}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::setSelection(rect, command); +} +void PythonQtShell_QTableView::setSelectionModel(QItemSelectionModel* selectionModel) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QItemSelectionModel*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&selectionModel}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::setSelectionModel(selectionModel); +} +void PythonQtShell_QTableView::setupViewport(QWidget* viewport) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&viewport}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::setupViewport(viewport); +} +QPainter* PythonQtShell_QTableView::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::sharedPainter(); +} +void PythonQtShell_QTableView::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::showEvent(arg__1); +} +int PythonQtShell_QTableView::sizeHintForColumn(int column) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&column}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::sizeHintForColumn(column); +} +int PythonQtShell_QTableView::sizeHintForRow(int row) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&row}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::sizeHintForRow(row); +} +void PythonQtShell_QTableView::startDrag(Qt::DropActions supportedActions) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&supportedActions}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::startDrag(supportedActions); +} +void PythonQtShell_QTableView::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::tabletEvent(arg__1); +} +void PythonQtShell_QTableView::timerEvent(QTimerEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::timerEvent(event); +} +void PythonQtShell_QTableView::updateEditorData() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::updateEditorData(); +} +void PythonQtShell_QTableView::updateEditorGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::updateEditorGeometries(); +} +void PythonQtShell_QTableView::updateGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::updateGeometries(); +} +int PythonQtShell_QTableView::verticalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::verticalOffset(); +} +void PythonQtShell_QTableView::verticalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::verticalScrollbarAction(action); +} +void PythonQtShell_QTableView::verticalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::verticalScrollbarValueChanged(value); +} +QStyleOptionViewItem PythonQtShell_QTableView::viewOptions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStyleOptionViewItem"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStyleOptionViewItem returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); + } else { + returnValue = *((QStyleOptionViewItem*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::viewOptions(); +} +bool PythonQtShell_QTableView::viewportEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::viewportEvent(event); +} +QSize PythonQtShell_QTableView::viewportSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::viewportSizeHint(); +} +QRect PythonQtShell_QTableView::visualRect(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRect returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::visualRect(index); +} +QRegion PythonQtShell_QTableView::visualRegionForSelection(const QItemSelection& selection) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRegion returnValue; + void* args[2] = {NULL, (void*)&selection}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); + } else { + returnValue = *((QRegion*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableView::visualRegionForSelection(selection); +} +void PythonQtShell_QTableView::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableView::wheelEvent(arg__1); +} +QTableView* PythonQtWrapper_QTableView::new_QTableView(QWidget* parent) +{ +return new PythonQtShell_QTableView(parent); } + +void PythonQtWrapper_QTableView::clearSpans(QTableView* theWrappedObject) +{ + ( theWrappedObject->clearSpans()); +} + +int PythonQtWrapper_QTableView::columnAt(QTableView* theWrappedObject, int x) const +{ + return ( theWrappedObject->columnAt(x)); +} + +int PythonQtWrapper_QTableView::columnSpan(QTableView* theWrappedObject, int row, int column) const +{ + return ( theWrappedObject->columnSpan(row, column)); +} + +int PythonQtWrapper_QTableView::columnViewportPosition(QTableView* theWrappedObject, int column) const +{ + return ( theWrappedObject->columnViewportPosition(column)); +} + +int PythonQtWrapper_QTableView::columnWidth(QTableView* theWrappedObject, int column) const +{ + return ( theWrappedObject->columnWidth(column)); +} + +void PythonQtWrapper_QTableView::currentChanged(QTableView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous) +{ + ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_currentChanged(current, previous)); +} + +void PythonQtWrapper_QTableView::doItemsLayout(QTableView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_doItemsLayout()); +} + +Qt::PenStyle PythonQtWrapper_QTableView::gridStyle(QTableView* theWrappedObject) const +{ + return ( theWrappedObject->gridStyle()); +} + +QHeaderView* PythonQtWrapper_QTableView::horizontalHeader(QTableView* theWrappedObject) const +{ + return ( theWrappedObject->horizontalHeader()); +} + +int PythonQtWrapper_QTableView::horizontalOffset(QTableView* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_horizontalOffset()); +} + +void PythonQtWrapper_QTableView::horizontalScrollbarAction(QTableView* theWrappedObject, int action) +{ + ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_horizontalScrollbarAction(action)); +} + +QModelIndex PythonQtWrapper_QTableView::indexAt(QTableView* theWrappedObject, const QPoint& p) const +{ + return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_indexAt(p)); +} + +bool PythonQtWrapper_QTableView::isColumnHidden(QTableView* theWrappedObject, int column) const +{ + return ( theWrappedObject->isColumnHidden(column)); +} + +bool PythonQtWrapper_QTableView::isCornerButtonEnabled(QTableView* theWrappedObject) const +{ + return ( theWrappedObject->isCornerButtonEnabled()); +} + +bool PythonQtWrapper_QTableView::isIndexHidden(QTableView* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_isIndexHidden(index)); +} + +bool PythonQtWrapper_QTableView::isRowHidden(QTableView* theWrappedObject, int row) const +{ + return ( theWrappedObject->isRowHidden(row)); +} + +bool PythonQtWrapper_QTableView::isSortingEnabled(QTableView* theWrappedObject) const +{ + return ( theWrappedObject->isSortingEnabled()); +} + +void PythonQtWrapper_QTableView::paintEvent(QTableView* theWrappedObject, QPaintEvent* e) +{ + ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_paintEvent(e)); +} + +int PythonQtWrapper_QTableView::rowAt(QTableView* theWrappedObject, int y) const +{ + return ( theWrappedObject->rowAt(y)); +} + +int PythonQtWrapper_QTableView::rowHeight(QTableView* theWrappedObject, int row) const +{ + return ( theWrappedObject->rowHeight(row)); +} + +int PythonQtWrapper_QTableView::rowSpan(QTableView* theWrappedObject, int row, int column) const +{ + return ( theWrappedObject->rowSpan(row, column)); +} + +int PythonQtWrapper_QTableView::rowViewportPosition(QTableView* theWrappedObject, int row) const +{ + return ( theWrappedObject->rowViewportPosition(row)); +} + +void PythonQtWrapper_QTableView::scrollContentsBy(QTableView* theWrappedObject, int dx, int dy) +{ + ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); +} + +void PythonQtWrapper_QTableView::scrollTo(QTableView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint) +{ + ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_scrollTo(index, hint)); +} + +QList PythonQtWrapper_QTableView::selectedIndexes(QTableView* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_selectedIndexes()); +} + +void PythonQtWrapper_QTableView::selectionChanged(QTableView* theWrappedObject, const QItemSelection& selected, const QItemSelection& deselected) +{ + ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_selectionChanged(selected, deselected)); +} + +void PythonQtWrapper_QTableView::setColumnHidden(QTableView* theWrappedObject, int column, bool hide) +{ + ( theWrappedObject->setColumnHidden(column, hide)); +} + +void PythonQtWrapper_QTableView::setColumnWidth(QTableView* theWrappedObject, int column, int width) +{ + ( theWrappedObject->setColumnWidth(column, width)); +} + +void PythonQtWrapper_QTableView::setCornerButtonEnabled(QTableView* theWrappedObject, bool enable) +{ + ( theWrappedObject->setCornerButtonEnabled(enable)); +} + +void PythonQtWrapper_QTableView::setGridStyle(QTableView* theWrappedObject, Qt::PenStyle style) +{ + ( theWrappedObject->setGridStyle(style)); +} + +void PythonQtWrapper_QTableView::setHorizontalHeader(QTableView* theWrappedObject, QHeaderView* header) +{ + ( theWrappedObject->setHorizontalHeader(header)); +} + +void PythonQtWrapper_QTableView::setModel(QTableView* theWrappedObject, QAbstractItemModel* model) +{ + ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_setModel(model)); +} + +void PythonQtWrapper_QTableView::setRootIndex(QTableView* theWrappedObject, const QModelIndex& index) +{ + ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_setRootIndex(index)); +} + +void PythonQtWrapper_QTableView::setRowHeight(QTableView* theWrappedObject, int row, int height) +{ + ( theWrappedObject->setRowHeight(row, height)); +} + +void PythonQtWrapper_QTableView::setRowHidden(QTableView* theWrappedObject, int row, bool hide) +{ + ( theWrappedObject->setRowHidden(row, hide)); +} + +void PythonQtWrapper_QTableView::setSelection(QTableView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command) +{ + ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_setSelection(rect, command)); +} + +void PythonQtWrapper_QTableView::setSelectionModel(QTableView* theWrappedObject, QItemSelectionModel* selectionModel) +{ + ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_setSelectionModel(selectionModel)); +} + +void PythonQtWrapper_QTableView::setSortingEnabled(QTableView* theWrappedObject, bool enable) +{ + ( theWrappedObject->setSortingEnabled(enable)); +} + +void PythonQtWrapper_QTableView::setSpan(QTableView* theWrappedObject, int row, int column, int rowSpan, int columnSpan) +{ + ( theWrappedObject->setSpan(row, column, rowSpan, columnSpan)); +} + +void PythonQtWrapper_QTableView::setVerticalHeader(QTableView* theWrappedObject, QHeaderView* header) +{ + ( theWrappedObject->setVerticalHeader(header)); +} + +void PythonQtWrapper_QTableView::setWordWrap(QTableView* theWrappedObject, bool on) +{ + ( theWrappedObject->setWordWrap(on)); +} + +bool PythonQtWrapper_QTableView::showGrid(QTableView* theWrappedObject) const +{ + return ( theWrappedObject->showGrid()); +} + +int PythonQtWrapper_QTableView::sizeHintForColumn(QTableView* theWrappedObject, int column) const +{ + return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_sizeHintForColumn(column)); +} + +int PythonQtWrapper_QTableView::sizeHintForRow(QTableView* theWrappedObject, int row) const +{ + return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_sizeHintForRow(row)); +} + +void PythonQtWrapper_QTableView::sortByColumn(QTableView* theWrappedObject, int column, Qt::SortOrder order) +{ + ( theWrappedObject->sortByColumn(column, order)); +} + +void PythonQtWrapper_QTableView::timerEvent(QTableView* theWrappedObject, QTimerEvent* event) +{ + ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_timerEvent(event)); +} + +void PythonQtWrapper_QTableView::updateGeometries(QTableView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_updateGeometries()); +} + +QHeaderView* PythonQtWrapper_QTableView::verticalHeader(QTableView* theWrappedObject) const +{ + return ( theWrappedObject->verticalHeader()); +} + +int PythonQtWrapper_QTableView::verticalOffset(QTableView* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_verticalOffset()); +} + +void PythonQtWrapper_QTableView::verticalScrollbarAction(QTableView* theWrappedObject, int action) +{ + ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_verticalScrollbarAction(action)); +} + +QStyleOptionViewItem PythonQtWrapper_QTableView::viewOptions(QTableView* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_viewOptions()); +} + +QRect PythonQtWrapper_QTableView::visualRect(QTableView* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_visualRect(index)); +} + +QRegion PythonQtWrapper_QTableView::visualRegionForSelection(QTableView* theWrappedObject, const QItemSelection& selection) const +{ + return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_visualRegionForSelection(selection)); +} + +bool PythonQtWrapper_QTableView::wordWrap(QTableView* theWrappedObject) const +{ + return ( theWrappedObject->wordWrap()); +} + + + +PythonQtShell_QTableWidget::~PythonQtShell_QTableWidget() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTableWidget::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::actionEvent(arg__1); +} +void PythonQtShell_QTableWidget::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::changeEvent(arg__1); +} +void PythonQtShell_QTableWidget::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::childEvent(arg__1); +} +void PythonQtShell_QTableWidget::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&editor, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::closeEditor(editor, hint); +} +void PythonQtShell_QTableWidget::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::closeEvent(arg__1); +} +void PythonQtShell_QTableWidget::commitData(QWidget* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::commitData(editor); +} +void PythonQtShell_QTableWidget::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::contextMenuEvent(arg__1); +} +void PythonQtShell_QTableWidget::currentChanged(const QModelIndex& current, const QModelIndex& previous) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)¤t, (void*)&previous}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::currentChanged(current, previous); +} +void PythonQtShell_QTableWidget::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::customEvent(arg__1); +} +void PythonQtShell_QTableWidget::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&" , "const QVector&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&topLeft, (void*)&bottomRight, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::dataChanged(topLeft, bottomRight, roles); +} +int PythonQtShell_QTableWidget::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::devType(); +} +void PythonQtShell_QTableWidget::doItemsLayout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::doItemsLayout(); +} +void PythonQtShell_QTableWidget::dragEnterEvent(QDragEnterEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::dragEnterEvent(event); +} +void PythonQtShell_QTableWidget::dragLeaveEvent(QDragLeaveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::dragLeaveEvent(event); +} +void PythonQtShell_QTableWidget::dragMoveEvent(QDragMoveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::dragMoveEvent(event); +} +void PythonQtShell_QTableWidget::dropEvent(QDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::dropEvent(event); +} +bool PythonQtShell_QTableWidget::dropMimeData(int row, int column, const QMimeData* data, Qt::DropAction action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QMimeData*" , "Qt::DropAction"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)&row, (void*)&column, (void*)&data, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::dropMimeData(row, column, data, action); +} +bool PythonQtShell_QTableWidget::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::edit(index, trigger, event); +} +void PythonQtShell_QTableWidget::editorDestroyed(QObject* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QObject*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::editorDestroyed(editor); +} +void PythonQtShell_QTableWidget::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::enterEvent(arg__1); +} +bool PythonQtShell_QTableWidget::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::event(e); +} +bool PythonQtShell_QTableWidget::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QTableWidget::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::focusInEvent(event); +} +bool PythonQtShell_QTableWidget::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::focusNextPrevChild(next); +} +void PythonQtShell_QTableWidget::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::focusOutEvent(event); +} +bool PythonQtShell_QTableWidget::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::hasHeightForWidth(); +} +int PythonQtShell_QTableWidget::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::heightForWidth(arg__1); +} +void PythonQtShell_QTableWidget::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::hideEvent(arg__1); +} +int PythonQtShell_QTableWidget::horizontalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::horizontalOffset(); +} +void PythonQtShell_QTableWidget::horizontalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::horizontalScrollbarAction(action); +} +void PythonQtShell_QTableWidget::horizontalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::horizontalScrollbarValueChanged(value); +} +QModelIndex PythonQtShell_QTableWidget::indexAt(const QPoint& p) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&p}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::indexAt(p); +} +void PythonQtShell_QTableWidget::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::initPainter(painter); +} +void PythonQtShell_QTableWidget::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::inputMethodEvent(event); +} +QVariant PythonQtShell_QTableWidget::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::inputMethodQuery(query); +} +bool PythonQtShell_QTableWidget::isIndexHidden(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::isIndexHidden(index); +} +void PythonQtShell_QTableWidget::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::keyPressEvent(event); +} +void PythonQtShell_QTableWidget::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::keyReleaseEvent(arg__1); +} +void PythonQtShell_QTableWidget::keyboardSearch(const QString& search) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&search}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::keyboardSearch(search); +} +void PythonQtShell_QTableWidget::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::leaveEvent(arg__1); +} +int PythonQtShell_QTableWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::metric(arg__1); +} +QMimeData* PythonQtShell_QTableWidget::mimeData(const QList items) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMimeData*" , "const QList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMimeData* returnValue; + void* args[2] = {NULL, (void*)&items}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); + } else { + returnValue = *((QMimeData**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::mimeData(items); +} +QStringList PythonQtShell_QTableWidget::mimeTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStringList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStringList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); + } else { + returnValue = *((QStringList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::mimeTypes(); +} +void PythonQtShell_QTableWidget::mouseDoubleClickEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::mouseDoubleClickEvent(event); +} +void PythonQtShell_QTableWidget::mouseMoveEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::mouseMoveEvent(event); +} +void PythonQtShell_QTableWidget::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::mousePressEvent(event); +} +void PythonQtShell_QTableWidget::mouseReleaseEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::mouseReleaseEvent(event); +} +void PythonQtShell_QTableWidget::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::moveEvent(arg__1); +} +bool PythonQtShell_QTableWidget::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QTableWidget::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::paintEngine(); +} +void PythonQtShell_QTableWidget::paintEvent(QPaintEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::paintEvent(e); +} +QPaintDevice* PythonQtShell_QTableWidget::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::redirected(offset); +} +void PythonQtShell_QTableWidget::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::reset(); +} +void PythonQtShell_QTableWidget::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::resizeEvent(event); +} +void PythonQtShell_QTableWidget::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::rowsAboutToBeRemoved(parent, start, end); +} +void PythonQtShell_QTableWidget::rowsInserted(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::rowsInserted(parent, start, end); +} +void PythonQtShell_QTableWidget::scrollContentsBy(int dx, int dy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&dx, (void*)&dy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::scrollContentsBy(dx, dy); +} +void PythonQtShell_QTableWidget::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&index, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::scrollTo(index, hint); +} +void PythonQtShell_QTableWidget::selectAll() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::selectAll(); +} +QList PythonQtShell_QTableWidget::selectedIndexes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::selectedIndexes(); +} +void PythonQtShell_QTableWidget::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::selectionChanged(selected, deselected); +} +QItemSelectionModel::SelectionFlags PythonQtShell_QTableWidget::selectionCommand(const QModelIndex& index, const QEvent* event) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QItemSelectionModel::SelectionFlags returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); + } else { + returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::selectionCommand(index, event); +} +void PythonQtShell_QTableWidget::setRootIndex(const QModelIndex& index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::setRootIndex(index); +} +void PythonQtShell_QTableWidget::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&rect, (void*)&command}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::setSelection(rect, command); +} +void PythonQtShell_QTableWidget::setSelectionModel(QItemSelectionModel* selectionModel) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QItemSelectionModel*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&selectionModel}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::setSelectionModel(selectionModel); +} +void PythonQtShell_QTableWidget::setupViewport(QWidget* viewport) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&viewport}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::setupViewport(viewport); +} +QPainter* PythonQtShell_QTableWidget::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::sharedPainter(); +} +void PythonQtShell_QTableWidget::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::showEvent(arg__1); +} +int PythonQtShell_QTableWidget::sizeHintForColumn(int column) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&column}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::sizeHintForColumn(column); +} +int PythonQtShell_QTableWidget::sizeHintForRow(int row) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&row}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::sizeHintForRow(row); +} +void PythonQtShell_QTableWidget::startDrag(Qt::DropActions supportedActions) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&supportedActions}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::startDrag(supportedActions); +} +Qt::DropActions PythonQtShell_QTableWidget::supportedDropActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::supportedDropActions(); +} +void PythonQtShell_QTableWidget::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::tabletEvent(arg__1); +} +void PythonQtShell_QTableWidget::timerEvent(QTimerEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::timerEvent(event); +} +void PythonQtShell_QTableWidget::updateEditorData() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::updateEditorData(); +} +void PythonQtShell_QTableWidget::updateEditorGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::updateEditorGeometries(); +} +void PythonQtShell_QTableWidget::updateGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::updateGeometries(); +} +int PythonQtShell_QTableWidget::verticalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::verticalOffset(); +} +void PythonQtShell_QTableWidget::verticalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::verticalScrollbarAction(action); +} +void PythonQtShell_QTableWidget::verticalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::verticalScrollbarValueChanged(value); +} +QStyleOptionViewItem PythonQtShell_QTableWidget::viewOptions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStyleOptionViewItem"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStyleOptionViewItem returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); + } else { + returnValue = *((QStyleOptionViewItem*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::viewOptions(); +} +bool PythonQtShell_QTableWidget::viewportEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::viewportEvent(event); +} +QSize PythonQtShell_QTableWidget::viewportSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::viewportSizeHint(); +} +QRect PythonQtShell_QTableWidget::visualRect(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRect returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::visualRect(index); +} +QRegion PythonQtShell_QTableWidget::visualRegionForSelection(const QItemSelection& selection) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRegion returnValue; + void* args[2] = {NULL, (void*)&selection}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); + } else { + returnValue = *((QRegion*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidget::visualRegionForSelection(selection); +} +void PythonQtShell_QTableWidget::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidget::wheelEvent(arg__1); +} +QTableWidget* PythonQtWrapper_QTableWidget::new_QTableWidget(QWidget* parent) +{ +return new PythonQtShell_QTableWidget(parent); } + +QTableWidget* PythonQtWrapper_QTableWidget::new_QTableWidget(int rows, int columns, QWidget* parent) +{ +return new PythonQtShell_QTableWidget(rows, columns, parent); } + +QWidget* PythonQtWrapper_QTableWidget::cellWidget(QTableWidget* theWrappedObject, int row, int column) const +{ + return ( theWrappedObject->cellWidget(row, column)); +} + +void PythonQtWrapper_QTableWidget::closePersistentEditor(QTableWidget* theWrappedObject, QTableWidgetItem* item) +{ + ( theWrappedObject->closePersistentEditor(item)); +} + +int PythonQtWrapper_QTableWidget::column(QTableWidget* theWrappedObject, const QTableWidgetItem* item) const +{ + return ( theWrappedObject->column(item)); +} + +int PythonQtWrapper_QTableWidget::columnCount(QTableWidget* theWrappedObject) const +{ + return ( theWrappedObject->columnCount()); +} + +int PythonQtWrapper_QTableWidget::currentColumn(QTableWidget* theWrappedObject) const +{ + return ( theWrappedObject->currentColumn()); +} + +QTableWidgetItem* PythonQtWrapper_QTableWidget::currentItem(QTableWidget* theWrappedObject) const +{ + return ( theWrappedObject->currentItem()); +} + +int PythonQtWrapper_QTableWidget::currentRow(QTableWidget* theWrappedObject) const +{ + return ( theWrappedObject->currentRow()); +} + +void PythonQtWrapper_QTableWidget::dropEvent(QTableWidget* theWrappedObject, QDropEvent* event) +{ + ( ((PythonQtPublicPromoter_QTableWidget*)theWrappedObject)->promoted_dropEvent(event)); +} + +bool PythonQtWrapper_QTableWidget::dropMimeData(QTableWidget* theWrappedObject, int row, int column, const QMimeData* data, Qt::DropAction action) +{ + return ( ((PythonQtPublicPromoter_QTableWidget*)theWrappedObject)->promoted_dropMimeData(row, column, data, action)); +} + +void PythonQtWrapper_QTableWidget::editItem(QTableWidget* theWrappedObject, QTableWidgetItem* item) +{ + ( theWrappedObject->editItem(item)); +} + +bool PythonQtWrapper_QTableWidget::event(QTableWidget* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QTableWidget*)theWrappedObject)->promoted_event(e)); +} + +QList PythonQtWrapper_QTableWidget::findItems(QTableWidget* theWrappedObject, const QString& text, Qt::MatchFlags flags) const +{ + return ( theWrappedObject->findItems(text, flags)); +} + +QTableWidgetItem* PythonQtWrapper_QTableWidget::horizontalHeaderItem(QTableWidget* theWrappedObject, int column) const +{ + return ( theWrappedObject->horizontalHeaderItem(column)); +} + +QTableWidgetItem* PythonQtWrapper_QTableWidget::item(QTableWidget* theWrappedObject, int row, int column) const +{ + return ( theWrappedObject->item(row, column)); +} + +QTableWidgetItem* PythonQtWrapper_QTableWidget::itemAt(QTableWidget* theWrappedObject, const QPoint& p) const +{ + return ( theWrappedObject->itemAt(p)); +} + +QTableWidgetItem* PythonQtWrapper_QTableWidget::itemAt(QTableWidget* theWrappedObject, int x, int y) const +{ + return ( theWrappedObject->itemAt(x, y)); +} + +const QTableWidgetItem* PythonQtWrapper_QTableWidget::itemPrototype(QTableWidget* theWrappedObject) const +{ + return ( theWrappedObject->itemPrototype()); +} + +QStringList PythonQtWrapper_QTableWidget::mimeTypes(QTableWidget* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTableWidget*)theWrappedObject)->promoted_mimeTypes()); +} + +void PythonQtWrapper_QTableWidget::openPersistentEditor(QTableWidget* theWrappedObject, QTableWidgetItem* item) +{ + ( theWrappedObject->openPersistentEditor(item)); +} + +void PythonQtWrapper_QTableWidget::removeCellWidget(QTableWidget* theWrappedObject, int row, int column) +{ + ( theWrappedObject->removeCellWidget(row, column)); +} + +int PythonQtWrapper_QTableWidget::row(QTableWidget* theWrappedObject, const QTableWidgetItem* item) const +{ + return ( theWrappedObject->row(item)); +} + +int PythonQtWrapper_QTableWidget::rowCount(QTableWidget* theWrappedObject) const +{ + return ( theWrappedObject->rowCount()); +} + +QList PythonQtWrapper_QTableWidget::selectedItems(QTableWidget* theWrappedObject) const +{ + return ( theWrappedObject->selectedItems()); +} + +QList PythonQtWrapper_QTableWidget::selectedRanges(QTableWidget* theWrappedObject) const +{ + return ( theWrappedObject->selectedRanges()); +} + +void PythonQtWrapper_QTableWidget::setCellWidget(QTableWidget* theWrappedObject, int row, int column, QWidget* widget) +{ + ( theWrappedObject->setCellWidget(row, column, widget)); +} + +void PythonQtWrapper_QTableWidget::setColumnCount(QTableWidget* theWrappedObject, int columns) +{ + ( theWrappedObject->setColumnCount(columns)); +} + +void PythonQtWrapper_QTableWidget::setCurrentCell(QTableWidget* theWrappedObject, int row, int column) +{ + ( theWrappedObject->setCurrentCell(row, column)); +} + +void PythonQtWrapper_QTableWidget::setCurrentCell(QTableWidget* theWrappedObject, int row, int column, QItemSelectionModel::SelectionFlags command) +{ + ( theWrappedObject->setCurrentCell(row, column, command)); +} + +void PythonQtWrapper_QTableWidget::setCurrentItem(QTableWidget* theWrappedObject, QTableWidgetItem* item) +{ + ( theWrappedObject->setCurrentItem(item)); +} + +void PythonQtWrapper_QTableWidget::setCurrentItem(QTableWidget* theWrappedObject, QTableWidgetItem* item, QItemSelectionModel::SelectionFlags command) +{ + ( theWrappedObject->setCurrentItem(item, command)); +} + +void PythonQtWrapper_QTableWidget::setHorizontalHeaderItem(QTableWidget* theWrappedObject, int column, QTableWidgetItem* item) +{ + ( theWrappedObject->setHorizontalHeaderItem(column, item)); +} + +void PythonQtWrapper_QTableWidget::setHorizontalHeaderLabels(QTableWidget* theWrappedObject, const QStringList& labels) +{ + ( theWrappedObject->setHorizontalHeaderLabels(labels)); +} + +void PythonQtWrapper_QTableWidget::setItem(QTableWidget* theWrappedObject, int row, int column, QTableWidgetItem* item) +{ + ( theWrappedObject->setItem(row, column, item)); +} + +void PythonQtWrapper_QTableWidget::setItemPrototype(QTableWidget* theWrappedObject, const QTableWidgetItem* item) +{ + ( theWrappedObject->setItemPrototype(item)); +} + +void PythonQtWrapper_QTableWidget::setRangeSelected(QTableWidget* theWrappedObject, const QTableWidgetSelectionRange& range, bool select) +{ + ( theWrappedObject->setRangeSelected(range, select)); +} + +void PythonQtWrapper_QTableWidget::setRowCount(QTableWidget* theWrappedObject, int rows) +{ + ( theWrappedObject->setRowCount(rows)); +} + +void PythonQtWrapper_QTableWidget::setVerticalHeaderItem(QTableWidget* theWrappedObject, int row, QTableWidgetItem* item) +{ + ( theWrappedObject->setVerticalHeaderItem(row, item)); +} + +void PythonQtWrapper_QTableWidget::setVerticalHeaderLabels(QTableWidget* theWrappedObject, const QStringList& labels) +{ + ( theWrappedObject->setVerticalHeaderLabels(labels)); +} + +void PythonQtWrapper_QTableWidget::sortItems(QTableWidget* theWrappedObject, int column, Qt::SortOrder order) +{ + ( theWrappedObject->sortItems(column, order)); +} + +Qt::DropActions PythonQtWrapper_QTableWidget::supportedDropActions(QTableWidget* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTableWidget*)theWrappedObject)->promoted_supportedDropActions()); +} + +QTableWidgetItem* PythonQtWrapper_QTableWidget::takeHorizontalHeaderItem(QTableWidget* theWrappedObject, int column) +{ + return ( theWrappedObject->takeHorizontalHeaderItem(column)); +} + +QTableWidgetItem* PythonQtWrapper_QTableWidget::takeItem(QTableWidget* theWrappedObject, int row, int column) +{ + return ( theWrappedObject->takeItem(row, column)); +} + +QTableWidgetItem* PythonQtWrapper_QTableWidget::takeVerticalHeaderItem(QTableWidget* theWrappedObject, int row) +{ + return ( theWrappedObject->takeVerticalHeaderItem(row)); +} + +QTableWidgetItem* PythonQtWrapper_QTableWidget::verticalHeaderItem(QTableWidget* theWrappedObject, int row) const +{ + return ( theWrappedObject->verticalHeaderItem(row)); +} + +int PythonQtWrapper_QTableWidget::visualColumn(QTableWidget* theWrappedObject, int logicalColumn) const +{ + return ( theWrappedObject->visualColumn(logicalColumn)); +} + +QRect PythonQtWrapper_QTableWidget::visualItemRect(QTableWidget* theWrappedObject, const QTableWidgetItem* item) const +{ + return ( theWrappedObject->visualItemRect(item)); +} + +int PythonQtWrapper_QTableWidget::visualRow(QTableWidget* theWrappedObject, int logicalRow) const +{ + return ( theWrappedObject->visualRow(logicalRow)); +} + + + +PythonQtShell_QTableWidgetItem::~PythonQtShell_QTableWidgetItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QTableWidgetItem* PythonQtShell_QTableWidgetItem::clone() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clone"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QTableWidgetItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QTableWidgetItem* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("clone", methodInfo, result); + } else { + returnValue = *((QTableWidgetItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidgetItem::clone(); +} +QVariant PythonQtShell_QTableWidgetItem::data(int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidgetItem::data(role); +} +bool PythonQtShell_QTableWidgetItem::__lt__(const QTableWidgetItem& other) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "__lt__"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QTableWidgetItem&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&other}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("__lt__", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTableWidgetItem::operator<(other); +} +void PythonQtShell_QTableWidgetItem::read(QDataStream& in) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "read"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDataStream&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&in}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidgetItem::read(in); +} +void PythonQtShell_QTableWidgetItem::setData(int role, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&role, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidgetItem::setData(role, value); +} +void PythonQtShell_QTableWidgetItem::write(QDataStream& out) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "write"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDataStream&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&out}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTableWidgetItem::write(out); +} +QTableWidgetItem* PythonQtWrapper_QTableWidgetItem::new_QTableWidgetItem(const QIcon& icon, const QString& text, int type) +{ +return new PythonQtShell_QTableWidgetItem(icon, text, type); } + +QTableWidgetItem* PythonQtWrapper_QTableWidgetItem::new_QTableWidgetItem(const QString& text, int type) +{ +return new PythonQtShell_QTableWidgetItem(text, type); } + +QTableWidgetItem* PythonQtWrapper_QTableWidgetItem::new_QTableWidgetItem(int type) +{ +return new PythonQtShell_QTableWidgetItem(type); } + +QBrush PythonQtWrapper_QTableWidgetItem::background(QTableWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->background()); +} + +Qt::CheckState PythonQtWrapper_QTableWidgetItem::checkState(QTableWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->checkState()); +} + +QTableWidgetItem* PythonQtWrapper_QTableWidgetItem::clone(QTableWidgetItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTableWidgetItem*)theWrappedObject)->promoted_clone()); +} + +int PythonQtWrapper_QTableWidgetItem::column(QTableWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->column()); +} + +QVariant PythonQtWrapper_QTableWidgetItem::data(QTableWidgetItem* theWrappedObject, int role) const +{ + return ( ((PythonQtPublicPromoter_QTableWidgetItem*)theWrappedObject)->promoted_data(role)); +} + +Qt::ItemFlags PythonQtWrapper_QTableWidgetItem::flags(QTableWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->flags()); +} + +QFont PythonQtWrapper_QTableWidgetItem::font(QTableWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->font()); +} + +QBrush PythonQtWrapper_QTableWidgetItem::foreground(QTableWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->foreground()); +} + +QIcon PythonQtWrapper_QTableWidgetItem::icon(QTableWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->icon()); +} + +bool PythonQtWrapper_QTableWidgetItem::isSelected(QTableWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->isSelected()); +} + +int PythonQtWrapper_QTableWidgetItem::row(QTableWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->row()); +} + +void PythonQtWrapper_QTableWidgetItem::setBackground(QTableWidgetItem* theWrappedObject, const QBrush& brush) +{ + ( theWrappedObject->setBackground(brush)); +} + +void PythonQtWrapper_QTableWidgetItem::setCheckState(QTableWidgetItem* theWrappedObject, Qt::CheckState state) +{ + ( theWrappedObject->setCheckState(state)); +} + +void PythonQtWrapper_QTableWidgetItem::setData(QTableWidgetItem* theWrappedObject, int role, const QVariant& value) +{ + ( ((PythonQtPublicPromoter_QTableWidgetItem*)theWrappedObject)->promoted_setData(role, value)); +} + +void PythonQtWrapper_QTableWidgetItem::setFlags(QTableWidgetItem* theWrappedObject, Qt::ItemFlags flags) +{ + ( theWrappedObject->setFlags(flags)); +} + +void PythonQtWrapper_QTableWidgetItem::setFont(QTableWidgetItem* theWrappedObject, const QFont& font) +{ + ( theWrappedObject->setFont(font)); +} + +void PythonQtWrapper_QTableWidgetItem::setForeground(QTableWidgetItem* theWrappedObject, const QBrush& brush) +{ + ( theWrappedObject->setForeground(brush)); +} + +void PythonQtWrapper_QTableWidgetItem::setIcon(QTableWidgetItem* theWrappedObject, const QIcon& icon) +{ + ( theWrappedObject->setIcon(icon)); +} + +void PythonQtWrapper_QTableWidgetItem::setSelected(QTableWidgetItem* theWrappedObject, bool select) +{ + ( theWrappedObject->setSelected(select)); +} + +void PythonQtWrapper_QTableWidgetItem::setSizeHint(QTableWidgetItem* theWrappedObject, const QSize& size) +{ + ( theWrappedObject->setSizeHint(size)); +} + +void PythonQtWrapper_QTableWidgetItem::setStatusTip(QTableWidgetItem* theWrappedObject, const QString& statusTip) +{ + ( theWrappedObject->setStatusTip(statusTip)); +} + +void PythonQtWrapper_QTableWidgetItem::setText(QTableWidgetItem* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setText(text)); +} + +void PythonQtWrapper_QTableWidgetItem::setTextAlignment(QTableWidgetItem* theWrappedObject, int alignment) +{ + ( theWrappedObject->setTextAlignment(alignment)); +} + +void PythonQtWrapper_QTableWidgetItem::setToolTip(QTableWidgetItem* theWrappedObject, const QString& toolTip) +{ + ( theWrappedObject->setToolTip(toolTip)); +} + +void PythonQtWrapper_QTableWidgetItem::setWhatsThis(QTableWidgetItem* theWrappedObject, const QString& whatsThis) +{ + ( theWrappedObject->setWhatsThis(whatsThis)); +} + +QSize PythonQtWrapper_QTableWidgetItem::sizeHint(QTableWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +QString PythonQtWrapper_QTableWidgetItem::statusTip(QTableWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->statusTip()); +} + +QTableWidget* PythonQtWrapper_QTableWidgetItem::tableWidget(QTableWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->tableWidget()); +} + +QString PythonQtWrapper_QTableWidgetItem::text(QTableWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + +int PythonQtWrapper_QTableWidgetItem::textAlignment(QTableWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->textAlignment()); +} + +QString PythonQtWrapper_QTableWidgetItem::toolTip(QTableWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->toolTip()); +} + +int PythonQtWrapper_QTableWidgetItem::type(QTableWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + +QString PythonQtWrapper_QTableWidgetItem::whatsThis(QTableWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->whatsThis()); +} + + + +QTableWidgetSelectionRange* PythonQtWrapper_QTableWidgetSelectionRange::new_QTableWidgetSelectionRange() +{ +return new QTableWidgetSelectionRange(); } + +QTableWidgetSelectionRange* PythonQtWrapper_QTableWidgetSelectionRange::new_QTableWidgetSelectionRange(const QTableWidgetSelectionRange& other) +{ +return new QTableWidgetSelectionRange(other); } + +QTableWidgetSelectionRange* PythonQtWrapper_QTableWidgetSelectionRange::new_QTableWidgetSelectionRange(int top, int left, int bottom, int right) +{ +return new QTableWidgetSelectionRange(top, left, bottom, right); } + +int PythonQtWrapper_QTableWidgetSelectionRange::bottomRow(QTableWidgetSelectionRange* theWrappedObject) const +{ + return ( theWrappedObject->bottomRow()); +} + +int PythonQtWrapper_QTableWidgetSelectionRange::columnCount(QTableWidgetSelectionRange* theWrappedObject) const +{ + return ( theWrappedObject->columnCount()); +} + +int PythonQtWrapper_QTableWidgetSelectionRange::leftColumn(QTableWidgetSelectionRange* theWrappedObject) const +{ + return ( theWrappedObject->leftColumn()); +} + +int PythonQtWrapper_QTableWidgetSelectionRange::rightColumn(QTableWidgetSelectionRange* theWrappedObject) const +{ + return ( theWrappedObject->rightColumn()); +} + +int PythonQtWrapper_QTableWidgetSelectionRange::rowCount(QTableWidgetSelectionRange* theWrappedObject) const +{ + return ( theWrappedObject->rowCount()); +} + +int PythonQtWrapper_QTableWidgetSelectionRange::topRow(QTableWidgetSelectionRange* theWrappedObject) const +{ + return ( theWrappedObject->topRow()); +} + +#endif + +PythonQtShell_QTabletEvent::~PythonQtShell_QTabletEvent() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QTabletEvent* PythonQtWrapper_QTabletEvent::new_QTabletEvent(QEvent::Type t, const QPointF& pos, const QPointF& globalPos, int device, int pointerType, qreal pressure, int xTilt, int yTilt, qreal tangentialPressure, qreal rotation, int z, Qt::KeyboardModifiers keyState, qint64 uniqueID) +{ +return new PythonQtShell_QTabletEvent(t, pos, globalPos, device, pointerType, pressure, xTilt, yTilt, tangentialPressure, rotation, z, keyState, uniqueID); } + +QTabletEvent::TabletDevice PythonQtWrapper_QTabletEvent::device(QTabletEvent* theWrappedObject) const +{ + return ( theWrappedObject->device()); +} + +QPoint PythonQtWrapper_QTabletEvent::globalPos(QTabletEvent* theWrappedObject) const +{ + return ( theWrappedObject->globalPos()); +} + +const QPointF* PythonQtWrapper_QTabletEvent::globalPosF(QTabletEvent* theWrappedObject) const +{ + return &( theWrappedObject->globalPosF()); +} + +int PythonQtWrapper_QTabletEvent::globalX(QTabletEvent* theWrappedObject) const +{ + return ( theWrappedObject->globalX()); +} + +int PythonQtWrapper_QTabletEvent::globalY(QTabletEvent* theWrappedObject) const +{ + return ( theWrappedObject->globalY()); +} + +qreal PythonQtWrapper_QTabletEvent::hiResGlobalX(QTabletEvent* theWrappedObject) const +{ + return ( theWrappedObject->hiResGlobalX()); +} + +qreal PythonQtWrapper_QTabletEvent::hiResGlobalY(QTabletEvent* theWrappedObject) const +{ + return ( theWrappedObject->hiResGlobalY()); +} + +QTabletEvent::PointerType PythonQtWrapper_QTabletEvent::pointerType(QTabletEvent* theWrappedObject) const +{ + return ( theWrappedObject->pointerType()); +} + +QPoint PythonQtWrapper_QTabletEvent::pos(QTabletEvent* theWrappedObject) const +{ + return ( theWrappedObject->pos()); +} + +const QPointF* PythonQtWrapper_QTabletEvent::posF(QTabletEvent* theWrappedObject) const +{ + return &( theWrappedObject->posF()); +} + +qreal PythonQtWrapper_QTabletEvent::pressure(QTabletEvent* theWrappedObject) const +{ + return ( theWrappedObject->pressure()); +} + +qreal PythonQtWrapper_QTabletEvent::rotation(QTabletEvent* theWrappedObject) const +{ + return ( theWrappedObject->rotation()); +} + +qreal PythonQtWrapper_QTabletEvent::tangentialPressure(QTabletEvent* theWrappedObject) const +{ + return ( theWrappedObject->tangentialPressure()); +} + +qint64 PythonQtWrapper_QTabletEvent::uniqueId(QTabletEvent* theWrappedObject) const +{ + return ( theWrappedObject->uniqueId()); +} + +int PythonQtWrapper_QTabletEvent::x(QTabletEvent* theWrappedObject) const +{ + return ( theWrappedObject->x()); +} + +int PythonQtWrapper_QTabletEvent::xTilt(QTabletEvent* theWrappedObject) const +{ + return ( theWrappedObject->xTilt()); +} + +int PythonQtWrapper_QTabletEvent::y(QTabletEvent* theWrappedObject) const +{ + return ( theWrappedObject->y()); +} + +int PythonQtWrapper_QTabletEvent::yTilt(QTabletEvent* theWrappedObject) const +{ + return ( theWrappedObject->yTilt()); +} + +int PythonQtWrapper_QTabletEvent::z(QTabletEvent* theWrappedObject) const +{ + return ( theWrappedObject->z()); +} + + + +QTextBlock* PythonQtWrapper_QTextBlock::new_QTextBlock() +{ +return new QTextBlock(); } + +QTextBlock* PythonQtWrapper_QTextBlock::new_QTextBlock(const QTextBlock& o) +{ +return new QTextBlock(o); } + +QTextBlock::iterator PythonQtWrapper_QTextBlock::begin(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->begin()); +} + +QTextBlockFormat PythonQtWrapper_QTextBlock::blockFormat(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->blockFormat()); +} + +int PythonQtWrapper_QTextBlock::blockFormatIndex(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->blockFormatIndex()); +} + +int PythonQtWrapper_QTextBlock::blockNumber(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->blockNumber()); +} + +QTextCharFormat PythonQtWrapper_QTextBlock::charFormat(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->charFormat()); +} + +int PythonQtWrapper_QTextBlock::charFormatIndex(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->charFormatIndex()); +} + +void PythonQtWrapper_QTextBlock::clearLayout(QTextBlock* theWrappedObject) +{ + ( theWrappedObject->clearLayout()); +} + +bool PythonQtWrapper_QTextBlock::contains(QTextBlock* theWrappedObject, int position) const +{ + return ( theWrappedObject->contains(position)); +} + +const QTextDocument* PythonQtWrapper_QTextBlock::document(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->document()); +} + +QTextBlock::iterator PythonQtWrapper_QTextBlock::end(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->end()); +} + +int PythonQtWrapper_QTextBlock::firstLineNumber(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->firstLineNumber()); +} + +int PythonQtWrapper_QTextBlock::fragmentIndex(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->fragmentIndex()); +} + +bool PythonQtWrapper_QTextBlock::isValid(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +bool PythonQtWrapper_QTextBlock::isVisible(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->isVisible()); +} + +QTextLayout* PythonQtWrapper_QTextBlock::layout(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->layout()); +} + +int PythonQtWrapper_QTextBlock::length(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->length()); +} + +int PythonQtWrapper_QTextBlock::lineCount(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->lineCount()); +} + +QTextBlock PythonQtWrapper_QTextBlock::next(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->next()); +} + +bool PythonQtWrapper_QTextBlock::__ne__(QTextBlock* theWrappedObject, const QTextBlock& o) const +{ + return ( (*theWrappedObject)!= o); +} + +bool PythonQtWrapper_QTextBlock::__lt__(QTextBlock* theWrappedObject, const QTextBlock& o) const +{ + return ( (*theWrappedObject)< o); +} + +bool PythonQtWrapper_QTextBlock::__eq__(QTextBlock* theWrappedObject, const QTextBlock& o) const +{ + return ( (*theWrappedObject)== o); +} + +int PythonQtWrapper_QTextBlock::position(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->position()); +} + +QTextBlock PythonQtWrapper_QTextBlock::previous(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->previous()); +} + +int PythonQtWrapper_QTextBlock::revision(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->revision()); +} + +void PythonQtWrapper_QTextBlock::setLineCount(QTextBlock* theWrappedObject, int count) +{ + ( theWrappedObject->setLineCount(count)); +} + +void PythonQtWrapper_QTextBlock::setRevision(QTextBlock* theWrappedObject, int rev) +{ + ( theWrappedObject->setRevision(rev)); +} + +void PythonQtWrapper_QTextBlock::setUserData(QTextBlock* theWrappedObject, QTextBlockUserData* data) +{ + ( theWrappedObject->setUserData(data)); +} + +void PythonQtWrapper_QTextBlock::setUserState(QTextBlock* theWrappedObject, int state) +{ + ( theWrappedObject->setUserState(state)); +} + +void PythonQtWrapper_QTextBlock::setVisible(QTextBlock* theWrappedObject, bool visible) +{ + ( theWrappedObject->setVisible(visible)); +} + +QString PythonQtWrapper_QTextBlock::text(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + +Qt::LayoutDirection PythonQtWrapper_QTextBlock::textDirection(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->textDirection()); +} + +QTextList* PythonQtWrapper_QTextBlock::textList(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->textList()); +} + +QTextBlockUserData* PythonQtWrapper_QTextBlock::userData(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->userData()); +} + +int PythonQtWrapper_QTextBlock::userState(QTextBlock* theWrappedObject) const +{ + return ( theWrappedObject->userState()); +} + + + +PythonQtShell_QTextBlockFormat::~PythonQtShell_QTextBlockFormat() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QTextBlockFormat* PythonQtWrapper_QTextBlockFormat::new_QTextBlockFormat() +{ +return new PythonQtShell_QTextBlockFormat(); } + +Qt::Alignment PythonQtWrapper_QTextBlockFormat::alignment(QTextBlockFormat* theWrappedObject) const +{ + return ( theWrappedObject->alignment()); +} + +qreal PythonQtWrapper_QTextBlockFormat::bottomMargin(QTextBlockFormat* theWrappedObject) const +{ + return ( theWrappedObject->bottomMargin()); +} + +int PythonQtWrapper_QTextBlockFormat::indent(QTextBlockFormat* theWrappedObject) const +{ + return ( theWrappedObject->indent()); +} + +bool PythonQtWrapper_QTextBlockFormat::isValid(QTextBlockFormat* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +qreal PythonQtWrapper_QTextBlockFormat::leftMargin(QTextBlockFormat* theWrappedObject) const +{ + return ( theWrappedObject->leftMargin()); +} + +qreal PythonQtWrapper_QTextBlockFormat::lineHeight(QTextBlockFormat* theWrappedObject) const +{ + return ( theWrappedObject->lineHeight()); +} + +qreal PythonQtWrapper_QTextBlockFormat::lineHeight(QTextBlockFormat* theWrappedObject, qreal scriptLineHeight, qreal scaling) const +{ + return ( theWrappedObject->lineHeight(scriptLineHeight, scaling)); +} + +int PythonQtWrapper_QTextBlockFormat::lineHeightType(QTextBlockFormat* theWrappedObject) const +{ + return ( theWrappedObject->lineHeightType()); +} + +bool PythonQtWrapper_QTextBlockFormat::nonBreakableLines(QTextBlockFormat* theWrappedObject) const +{ + return ( theWrappedObject->nonBreakableLines()); +} + +QTextFormat::PageBreakFlags PythonQtWrapper_QTextBlockFormat::pageBreakPolicy(QTextBlockFormat* theWrappedObject) const +{ + return ( theWrappedObject->pageBreakPolicy()); +} + +qreal PythonQtWrapper_QTextBlockFormat::rightMargin(QTextBlockFormat* theWrappedObject) const +{ + return ( theWrappedObject->rightMargin()); +} + +void PythonQtWrapper_QTextBlockFormat::setAlignment(QTextBlockFormat* theWrappedObject, Qt::Alignment alignment) +{ + ( theWrappedObject->setAlignment(alignment)); +} + +void PythonQtWrapper_QTextBlockFormat::setBottomMargin(QTextBlockFormat* theWrappedObject, qreal margin) +{ + ( theWrappedObject->setBottomMargin(margin)); +} + +void PythonQtWrapper_QTextBlockFormat::setIndent(QTextBlockFormat* theWrappedObject, int indent) +{ + ( theWrappedObject->setIndent(indent)); +} + +void PythonQtWrapper_QTextBlockFormat::setLeftMargin(QTextBlockFormat* theWrappedObject, qreal margin) +{ + ( theWrappedObject->setLeftMargin(margin)); +} + +void PythonQtWrapper_QTextBlockFormat::setLineHeight(QTextBlockFormat* theWrappedObject, qreal height, int heightType) +{ + ( theWrappedObject->setLineHeight(height, heightType)); +} + +void PythonQtWrapper_QTextBlockFormat::setNonBreakableLines(QTextBlockFormat* theWrappedObject, bool b) +{ + ( theWrappedObject->setNonBreakableLines(b)); +} + +void PythonQtWrapper_QTextBlockFormat::setPageBreakPolicy(QTextBlockFormat* theWrappedObject, QTextFormat::PageBreakFlags flags) +{ + ( theWrappedObject->setPageBreakPolicy(flags)); +} + +void PythonQtWrapper_QTextBlockFormat::setRightMargin(QTextBlockFormat* theWrappedObject, qreal margin) +{ + ( theWrappedObject->setRightMargin(margin)); +} + +void PythonQtWrapper_QTextBlockFormat::setTabPositions(QTextBlockFormat* theWrappedObject, const QList& tabs) +{ + ( theWrappedObject->setTabPositions(tabs)); +} + +void PythonQtWrapper_QTextBlockFormat::setTextIndent(QTextBlockFormat* theWrappedObject, qreal aindent) +{ + ( theWrappedObject->setTextIndent(aindent)); +} + +void PythonQtWrapper_QTextBlockFormat::setTopMargin(QTextBlockFormat* theWrappedObject, qreal margin) +{ + ( theWrappedObject->setTopMargin(margin)); +} + +QList PythonQtWrapper_QTextBlockFormat::tabPositions(QTextBlockFormat* theWrappedObject) const +{ + return ( theWrappedObject->tabPositions()); +} + +qreal PythonQtWrapper_QTextBlockFormat::textIndent(QTextBlockFormat* theWrappedObject) const +{ + return ( theWrappedObject->textIndent()); +} + +qreal PythonQtWrapper_QTextBlockFormat::topMargin(QTextBlockFormat* theWrappedObject) const +{ + return ( theWrappedObject->topMargin()); +} + + + +PythonQtShell_QTextBlockGroup::~PythonQtShell_QTextBlockGroup() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTextBlockGroup::blockFormatChanged(const QTextBlock& block) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "blockFormatChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QTextBlock&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&block}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBlockGroup::blockFormatChanged(block); +} +void PythonQtShell_QTextBlockGroup::blockInserted(const QTextBlock& block) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "blockInserted"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QTextBlock&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&block}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBlockGroup::blockInserted(block); +} +void PythonQtShell_QTextBlockGroup::blockRemoved(const QTextBlock& block) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "blockRemoved"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QTextBlock&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&block}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBlockGroup::blockRemoved(block); +} +void PythonQtShell_QTextBlockGroup::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBlockGroup::childEvent(arg__1); +} +void PythonQtShell_QTextBlockGroup::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBlockGroup::customEvent(arg__1); +} +bool PythonQtShell_QTextBlockGroup::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBlockGroup::event(arg__1); +} +bool PythonQtShell_QTextBlockGroup::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBlockGroup::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QTextBlockGroup::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBlockGroup::timerEvent(arg__1); +} +void PythonQtWrapper_QTextBlockGroup::blockFormatChanged(QTextBlockGroup* theWrappedObject, const QTextBlock& block) +{ + ( ((PythonQtPublicPromoter_QTextBlockGroup*)theWrappedObject)->promoted_blockFormatChanged(block)); +} + +void PythonQtWrapper_QTextBlockGroup::blockInserted(QTextBlockGroup* theWrappedObject, const QTextBlock& block) +{ + ( ((PythonQtPublicPromoter_QTextBlockGroup*)theWrappedObject)->promoted_blockInserted(block)); +} + +void PythonQtWrapper_QTextBlockGroup::blockRemoved(QTextBlockGroup* theWrappedObject, const QTextBlock& block) +{ + ( ((PythonQtPublicPromoter_QTextBlockGroup*)theWrappedObject)->promoted_blockRemoved(block)); +} + + + +PythonQtShell_QTextBlockUserData::~PythonQtShell_QTextBlockUserData() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QTextBlockUserData* PythonQtWrapper_QTextBlockUserData::new_QTextBlockUserData() +{ +return new PythonQtShell_QTextBlockUserData(); } + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QTextBrowser::~PythonQtShell_QTextBrowser() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTextBrowser::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::actionEvent(arg__1); +} +void PythonQtShell_QTextBrowser::backward() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "backward"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::backward(); +} +bool PythonQtShell_QTextBrowser::canInsertFromMimeData(const QMimeData* source) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canInsertFromMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&source}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canInsertFromMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBrowser::canInsertFromMimeData(source); +} +void PythonQtShell_QTextBrowser::changeEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::changeEvent(e); +} +void PythonQtShell_QTextBrowser::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::childEvent(arg__1); +} +void PythonQtShell_QTextBrowser::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::closeEvent(arg__1); +} +void PythonQtShell_QTextBrowser::contextMenuEvent(QContextMenuEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::contextMenuEvent(e); +} +QMimeData* PythonQtShell_QTextBrowser::createMimeDataFromSelection() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createMimeDataFromSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMimeData*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QMimeData* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createMimeDataFromSelection", methodInfo, result); + } else { + returnValue = *((QMimeData**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBrowser::createMimeDataFromSelection(); +} +void PythonQtShell_QTextBrowser::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::customEvent(arg__1); +} +int PythonQtShell_QTextBrowser::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBrowser::devType(); +} +void PythonQtShell_QTextBrowser::doSetTextCursor(const QTextCursor& cursor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doSetTextCursor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QTextCursor&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&cursor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::doSetTextCursor(cursor); +} +void PythonQtShell_QTextBrowser::dragEnterEvent(QDragEnterEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::dragEnterEvent(e); +} +void PythonQtShell_QTextBrowser::dragLeaveEvent(QDragLeaveEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::dragLeaveEvent(e); +} +void PythonQtShell_QTextBrowser::dragMoveEvent(QDragMoveEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::dragMoveEvent(e); +} +void PythonQtShell_QTextBrowser::dropEvent(QDropEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::dropEvent(e); +} +void PythonQtShell_QTextBrowser::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::enterEvent(arg__1); +} +bool PythonQtShell_QTextBrowser::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBrowser::event(e); +} +bool PythonQtShell_QTextBrowser::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBrowser::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QTextBrowser::focusInEvent(QFocusEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::focusInEvent(e); +} +bool PythonQtShell_QTextBrowser::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBrowser::focusNextPrevChild(next); +} +void PythonQtShell_QTextBrowser::focusOutEvent(QFocusEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::focusOutEvent(ev); +} +void PythonQtShell_QTextBrowser::forward() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "forward"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::forward(); +} +bool PythonQtShell_QTextBrowser::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBrowser::hasHeightForWidth(); +} +int PythonQtShell_QTextBrowser::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBrowser::heightForWidth(arg__1); +} +void PythonQtShell_QTextBrowser::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::hideEvent(arg__1); +} +void PythonQtShell_QTextBrowser::home() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "home"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::home(); +} +void PythonQtShell_QTextBrowser::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::initPainter(painter); +} +void PythonQtShell_QTextBrowser::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QTextBrowser::inputMethodQuery(Qt::InputMethodQuery property) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&property}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBrowser::inputMethodQuery(property); +} +void PythonQtShell_QTextBrowser::insertFromMimeData(const QMimeData* source) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertFromMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QMimeData*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&source}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::insertFromMimeData(source); +} +void PythonQtShell_QTextBrowser::keyPressEvent(QKeyEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::keyPressEvent(ev); +} +void PythonQtShell_QTextBrowser::keyReleaseEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::keyReleaseEvent(e); +} +void PythonQtShell_QTextBrowser::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::leaveEvent(arg__1); +} +QVariant PythonQtShell_QTextBrowser::loadResource(int type, const QUrl& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "loadResource"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "int" , "const QUrl&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&type, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("loadResource", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBrowser::loadResource(type, name); +} +int PythonQtShell_QTextBrowser::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBrowser::metric(arg__1); +} +void PythonQtShell_QTextBrowser::mouseDoubleClickEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::mouseDoubleClickEvent(e); +} +void PythonQtShell_QTextBrowser::mouseMoveEvent(QMouseEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::mouseMoveEvent(ev); +} +void PythonQtShell_QTextBrowser::mousePressEvent(QMouseEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::mousePressEvent(ev); +} +void PythonQtShell_QTextBrowser::mouseReleaseEvent(QMouseEvent* ev) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&ev}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::mouseReleaseEvent(ev); +} +void PythonQtShell_QTextBrowser::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::moveEvent(arg__1); +} +bool PythonQtShell_QTextBrowser::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBrowser::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QTextBrowser::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBrowser::paintEngine(); +} +void PythonQtShell_QTextBrowser::paintEvent(QPaintEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::paintEvent(e); +} +QPaintDevice* PythonQtShell_QTextBrowser::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBrowser::redirected(offset); +} +void PythonQtShell_QTextBrowser::reload() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reload"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::reload(); +} +void PythonQtShell_QTextBrowser::resizeEvent(QResizeEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::resizeEvent(e); +} +void PythonQtShell_QTextBrowser::scrollContentsBy(int dx, int dy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&dx, (void*)&dy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::scrollContentsBy(dx, dy); +} +void PythonQtShell_QTextBrowser::setSource(const QUrl& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSource"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QUrl&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::setSource(name); +} +void PythonQtShell_QTextBrowser::setupViewport(QWidget* viewport) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&viewport}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::setupViewport(viewport); +} +QPainter* PythonQtShell_QTextBrowser::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBrowser::sharedPainter(); +} +void PythonQtShell_QTextBrowser::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::showEvent(arg__1); +} +void PythonQtShell_QTextBrowser::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::tabletEvent(arg__1); +} +void PythonQtShell_QTextBrowser::timerEvent(QTimerEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::timerEvent(e); +} +bool PythonQtShell_QTextBrowser::viewportEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBrowser::viewportEvent(arg__1); +} +QSize PythonQtShell_QTextBrowser::viewportSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextBrowser::viewportSizeHint(); +} +void PythonQtShell_QTextBrowser::wheelEvent(QWheelEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextBrowser::wheelEvent(e); +} +QTextBrowser* PythonQtWrapper_QTextBrowser::new_QTextBrowser(QWidget* parent) +{ +return new PythonQtShell_QTextBrowser(parent); } + +void PythonQtWrapper_QTextBrowser::backward(QTextBrowser* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_backward()); +} + +int PythonQtWrapper_QTextBrowser::backwardHistoryCount(QTextBrowser* theWrappedObject) const +{ + return ( theWrappedObject->backwardHistoryCount()); +} + +void PythonQtWrapper_QTextBrowser::clearHistory(QTextBrowser* theWrappedObject) +{ + ( theWrappedObject->clearHistory()); +} + +bool PythonQtWrapper_QTextBrowser::event(QTextBrowser* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_event(e)); +} + +bool PythonQtWrapper_QTextBrowser::focusNextPrevChild(QTextBrowser* theWrappedObject, bool next) +{ + return ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_focusNextPrevChild(next)); +} + +void PythonQtWrapper_QTextBrowser::focusOutEvent(QTextBrowser* theWrappedObject, QFocusEvent* ev) +{ + ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_focusOutEvent(ev)); +} + +void PythonQtWrapper_QTextBrowser::forward(QTextBrowser* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_forward()); +} + +int PythonQtWrapper_QTextBrowser::forwardHistoryCount(QTextBrowser* theWrappedObject) const +{ + return ( theWrappedObject->forwardHistoryCount()); +} + +QString PythonQtWrapper_QTextBrowser::historyTitle(QTextBrowser* theWrappedObject, int arg__1) const +{ + return ( theWrappedObject->historyTitle(arg__1)); +} + +QUrl PythonQtWrapper_QTextBrowser::historyUrl(QTextBrowser* theWrappedObject, int arg__1) const +{ + return ( theWrappedObject->historyUrl(arg__1)); +} + +void PythonQtWrapper_QTextBrowser::home(QTextBrowser* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_home()); +} + +bool PythonQtWrapper_QTextBrowser::isBackwardAvailable(QTextBrowser* theWrappedObject) const +{ + return ( theWrappedObject->isBackwardAvailable()); +} + +bool PythonQtWrapper_QTextBrowser::isForwardAvailable(QTextBrowser* theWrappedObject) const +{ + return ( theWrappedObject->isForwardAvailable()); +} + +void PythonQtWrapper_QTextBrowser::keyPressEvent(QTextBrowser* theWrappedObject, QKeyEvent* ev) +{ + ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_keyPressEvent(ev)); +} + +QVariant PythonQtWrapper_QTextBrowser::loadResource(QTextBrowser* theWrappedObject, int type, const QUrl& name) +{ + return ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_loadResource(type, name)); +} + +void PythonQtWrapper_QTextBrowser::mouseMoveEvent(QTextBrowser* theWrappedObject, QMouseEvent* ev) +{ + ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_mouseMoveEvent(ev)); +} + +void PythonQtWrapper_QTextBrowser::mousePressEvent(QTextBrowser* theWrappedObject, QMouseEvent* ev) +{ + ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_mousePressEvent(ev)); +} + +void PythonQtWrapper_QTextBrowser::mouseReleaseEvent(QTextBrowser* theWrappedObject, QMouseEvent* ev) +{ + ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_mouseReleaseEvent(ev)); +} + +bool PythonQtWrapper_QTextBrowser::openExternalLinks(QTextBrowser* theWrappedObject) const +{ + return ( theWrappedObject->openExternalLinks()); +} + +bool PythonQtWrapper_QTextBrowser::openLinks(QTextBrowser* theWrappedObject) const +{ + return ( theWrappedObject->openLinks()); +} + +void PythonQtWrapper_QTextBrowser::paintEvent(QTextBrowser* theWrappedObject, QPaintEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_paintEvent(e)); +} + +void PythonQtWrapper_QTextBrowser::reload(QTextBrowser* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_reload()); +} + +QStringList PythonQtWrapper_QTextBrowser::searchPaths(QTextBrowser* theWrappedObject) const +{ + return ( theWrappedObject->searchPaths()); +} + +void PythonQtWrapper_QTextBrowser::setOpenExternalLinks(QTextBrowser* theWrappedObject, bool open) +{ + ( theWrappedObject->setOpenExternalLinks(open)); +} + +void PythonQtWrapper_QTextBrowser::setOpenLinks(QTextBrowser* theWrappedObject, bool open) +{ + ( theWrappedObject->setOpenLinks(open)); +} + +void PythonQtWrapper_QTextBrowser::setSearchPaths(QTextBrowser* theWrappedObject, const QStringList& paths) +{ + ( theWrappedObject->setSearchPaths(paths)); +} + +void PythonQtWrapper_QTextBrowser::setSource(QTextBrowser* theWrappedObject, const QUrl& name) +{ + ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_setSource(name)); +} + +QUrl PythonQtWrapper_QTextBrowser::source(QTextBrowser* theWrappedObject) const +{ + return ( theWrappedObject->source()); +} + +#endif + +PythonQtShell_QTextCharFormat::~PythonQtShell_QTextCharFormat() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QTextCharFormat* PythonQtWrapper_QTextCharFormat::new_QTextCharFormat() +{ +return new PythonQtShell_QTextCharFormat(); } + +QString PythonQtWrapper_QTextCharFormat::anchorHref(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->anchorHref()); +} + +QStringList PythonQtWrapper_QTextCharFormat::anchorNames(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->anchorNames()); +} + +QFont PythonQtWrapper_QTextCharFormat::font(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->font()); +} + +QFont::Capitalization PythonQtWrapper_QTextCharFormat::fontCapitalization(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->fontCapitalization()); +} + +QString PythonQtWrapper_QTextCharFormat::fontFamily(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->fontFamily()); +} + +bool PythonQtWrapper_QTextCharFormat::fontFixedPitch(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->fontFixedPitch()); +} + +bool PythonQtWrapper_QTextCharFormat::fontItalic(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->fontItalic()); +} + +bool PythonQtWrapper_QTextCharFormat::fontKerning(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->fontKerning()); +} + +qreal PythonQtWrapper_QTextCharFormat::fontLetterSpacing(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->fontLetterSpacing()); +} + +QFont::SpacingType PythonQtWrapper_QTextCharFormat::fontLetterSpacingType(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->fontLetterSpacingType()); +} + +bool PythonQtWrapper_QTextCharFormat::fontOverline(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->fontOverline()); +} + +qreal PythonQtWrapper_QTextCharFormat::fontPointSize(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->fontPointSize()); +} + +int PythonQtWrapper_QTextCharFormat::fontStretch(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->fontStretch()); +} + +bool PythonQtWrapper_QTextCharFormat::fontStrikeOut(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->fontStrikeOut()); +} + +QFont::StyleHint PythonQtWrapper_QTextCharFormat::fontStyleHint(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->fontStyleHint()); +} + +QFont::StyleStrategy PythonQtWrapper_QTextCharFormat::fontStyleStrategy(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->fontStyleStrategy()); +} + +bool PythonQtWrapper_QTextCharFormat::fontUnderline(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->fontUnderline()); +} + +int PythonQtWrapper_QTextCharFormat::fontWeight(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->fontWeight()); +} + +qreal PythonQtWrapper_QTextCharFormat::fontWordSpacing(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->fontWordSpacing()); +} + +bool PythonQtWrapper_QTextCharFormat::isAnchor(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->isAnchor()); +} + +bool PythonQtWrapper_QTextCharFormat::isValid(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +void PythonQtWrapper_QTextCharFormat::setAnchor(QTextCharFormat* theWrappedObject, bool anchor) +{ + ( theWrappedObject->setAnchor(anchor)); +} + +void PythonQtWrapper_QTextCharFormat::setAnchorHref(QTextCharFormat* theWrappedObject, const QString& value) +{ + ( theWrappedObject->setAnchorHref(value)); +} + +void PythonQtWrapper_QTextCharFormat::setAnchorNames(QTextCharFormat* theWrappedObject, const QStringList& names) +{ + ( theWrappedObject->setAnchorNames(names)); +} + +void PythonQtWrapper_QTextCharFormat::setFont(QTextCharFormat* theWrappedObject, const QFont& font) +{ + ( theWrappedObject->setFont(font)); +} + +void PythonQtWrapper_QTextCharFormat::setFontCapitalization(QTextCharFormat* theWrappedObject, QFont::Capitalization capitalization) +{ + ( theWrappedObject->setFontCapitalization(capitalization)); +} + +void PythonQtWrapper_QTextCharFormat::setFontFamily(QTextCharFormat* theWrappedObject, const QString& family) +{ + ( theWrappedObject->setFontFamily(family)); +} + +void PythonQtWrapper_QTextCharFormat::setFontFixedPitch(QTextCharFormat* theWrappedObject, bool fixedPitch) +{ + ( theWrappedObject->setFontFixedPitch(fixedPitch)); +} + +void PythonQtWrapper_QTextCharFormat::setFontItalic(QTextCharFormat* theWrappedObject, bool italic) +{ + ( theWrappedObject->setFontItalic(italic)); +} + +void PythonQtWrapper_QTextCharFormat::setFontKerning(QTextCharFormat* theWrappedObject, bool enable) +{ + ( theWrappedObject->setFontKerning(enable)); +} + +void PythonQtWrapper_QTextCharFormat::setFontLetterSpacing(QTextCharFormat* theWrappedObject, qreal spacing) +{ + ( theWrappedObject->setFontLetterSpacing(spacing)); +} + +void PythonQtWrapper_QTextCharFormat::setFontLetterSpacingType(QTextCharFormat* theWrappedObject, QFont::SpacingType letterSpacingType) +{ + ( theWrappedObject->setFontLetterSpacingType(letterSpacingType)); +} + +void PythonQtWrapper_QTextCharFormat::setFontOverline(QTextCharFormat* theWrappedObject, bool overline) +{ + ( theWrappedObject->setFontOverline(overline)); +} + +void PythonQtWrapper_QTextCharFormat::setFontPointSize(QTextCharFormat* theWrappedObject, qreal size) +{ + ( theWrappedObject->setFontPointSize(size)); +} + +void PythonQtWrapper_QTextCharFormat::setFontStretch(QTextCharFormat* theWrappedObject, int factor) +{ + ( theWrappedObject->setFontStretch(factor)); +} + +void PythonQtWrapper_QTextCharFormat::setFontStrikeOut(QTextCharFormat* theWrappedObject, bool strikeOut) +{ + ( theWrappedObject->setFontStrikeOut(strikeOut)); +} + +void PythonQtWrapper_QTextCharFormat::setFontStyleHint(QTextCharFormat* theWrappedObject, QFont::StyleHint hint, QFont::StyleStrategy strategy) +{ + ( theWrappedObject->setFontStyleHint(hint, strategy)); +} + +void PythonQtWrapper_QTextCharFormat::setFontStyleStrategy(QTextCharFormat* theWrappedObject, QFont::StyleStrategy strategy) +{ + ( theWrappedObject->setFontStyleStrategy(strategy)); +} + +void PythonQtWrapper_QTextCharFormat::setFontUnderline(QTextCharFormat* theWrappedObject, bool underline) +{ + ( theWrappedObject->setFontUnderline(underline)); +} + +void PythonQtWrapper_QTextCharFormat::setFontWeight(QTextCharFormat* theWrappedObject, int weight) +{ + ( theWrappedObject->setFontWeight(weight)); +} + +void PythonQtWrapper_QTextCharFormat::setFontWordSpacing(QTextCharFormat* theWrappedObject, qreal spacing) +{ + ( theWrappedObject->setFontWordSpacing(spacing)); +} + +void PythonQtWrapper_QTextCharFormat::setTableCellColumnSpan(QTextCharFormat* theWrappedObject, int tableCellColumnSpan) +{ + ( theWrappedObject->setTableCellColumnSpan(tableCellColumnSpan)); +} + +void PythonQtWrapper_QTextCharFormat::setTableCellRowSpan(QTextCharFormat* theWrappedObject, int tableCellRowSpan) +{ + ( theWrappedObject->setTableCellRowSpan(tableCellRowSpan)); +} + +void PythonQtWrapper_QTextCharFormat::setTextOutline(QTextCharFormat* theWrappedObject, const QPen& pen) +{ + ( theWrappedObject->setTextOutline(pen)); +} + +void PythonQtWrapper_QTextCharFormat::setToolTip(QTextCharFormat* theWrappedObject, const QString& tip) +{ + ( theWrappedObject->setToolTip(tip)); +} + +void PythonQtWrapper_QTextCharFormat::setUnderlineColor(QTextCharFormat* theWrappedObject, const QColor& color) +{ + ( theWrappedObject->setUnderlineColor(color)); +} + +void PythonQtWrapper_QTextCharFormat::setUnderlineStyle(QTextCharFormat* theWrappedObject, QTextCharFormat::UnderlineStyle style) +{ + ( theWrappedObject->setUnderlineStyle(style)); +} + +void PythonQtWrapper_QTextCharFormat::setVerticalAlignment(QTextCharFormat* theWrappedObject, QTextCharFormat::VerticalAlignment alignment) +{ + ( theWrappedObject->setVerticalAlignment(alignment)); +} + +int PythonQtWrapper_QTextCharFormat::tableCellColumnSpan(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->tableCellColumnSpan()); +} + +int PythonQtWrapper_QTextCharFormat::tableCellRowSpan(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->tableCellRowSpan()); +} + +QPen PythonQtWrapper_QTextCharFormat::textOutline(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->textOutline()); +} + +QString PythonQtWrapper_QTextCharFormat::toolTip(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->toolTip()); +} + +QColor PythonQtWrapper_QTextCharFormat::underlineColor(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->underlineColor()); +} + +QTextCharFormat::UnderlineStyle PythonQtWrapper_QTextCharFormat::underlineStyle(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->underlineStyle()); +} + +QTextCharFormat::VerticalAlignment PythonQtWrapper_QTextCharFormat::verticalAlignment(QTextCharFormat* theWrappedObject) const +{ + return ( theWrappedObject->verticalAlignment()); +} + + + +QTextCursor* PythonQtWrapper_QTextCursor::new_QTextCursor() +{ +return new QTextCursor(); } + +QTextCursor* PythonQtWrapper_QTextCursor::new_QTextCursor(QTextDocument* document) +{ +return new QTextCursor(document); } + +QTextCursor* PythonQtWrapper_QTextCursor::new_QTextCursor(QTextFrame* frame) +{ +return new QTextCursor(frame); } + +QTextCursor* PythonQtWrapper_QTextCursor::new_QTextCursor(const QTextBlock& block) +{ +return new QTextCursor(block); } + +QTextCursor* PythonQtWrapper_QTextCursor::new_QTextCursor(const QTextCursor& cursor) +{ +return new QTextCursor(cursor); } + +int PythonQtWrapper_QTextCursor::anchor(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->anchor()); +} + +bool PythonQtWrapper_QTextCursor::atBlockEnd(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->atBlockEnd()); +} + +bool PythonQtWrapper_QTextCursor::atBlockStart(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->atBlockStart()); +} + +bool PythonQtWrapper_QTextCursor::atEnd(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->atEnd()); +} + +bool PythonQtWrapper_QTextCursor::atStart(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->atStart()); +} + +void PythonQtWrapper_QTextCursor::beginEditBlock(QTextCursor* theWrappedObject) +{ + ( theWrappedObject->beginEditBlock()); +} + +QTextBlock PythonQtWrapper_QTextCursor::block(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->block()); +} + +QTextCharFormat PythonQtWrapper_QTextCursor::blockCharFormat(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->blockCharFormat()); +} + +QTextBlockFormat PythonQtWrapper_QTextCursor::blockFormat(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->blockFormat()); +} + +int PythonQtWrapper_QTextCursor::blockNumber(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->blockNumber()); +} + +QTextCharFormat PythonQtWrapper_QTextCursor::charFormat(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->charFormat()); +} + +void PythonQtWrapper_QTextCursor::clearSelection(QTextCursor* theWrappedObject) +{ + ( theWrappedObject->clearSelection()); +} + +int PythonQtWrapper_QTextCursor::columnNumber(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->columnNumber()); +} + +QTextList* PythonQtWrapper_QTextCursor::createList(QTextCursor* theWrappedObject, QTextListFormat::Style style) +{ + return ( theWrappedObject->createList(style)); +} + +QTextList* PythonQtWrapper_QTextCursor::createList(QTextCursor* theWrappedObject, const QTextListFormat& format) +{ + return ( theWrappedObject->createList(format)); +} + +QTextFrame* PythonQtWrapper_QTextCursor::currentFrame(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->currentFrame()); +} + +QTextList* PythonQtWrapper_QTextCursor::currentList(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->currentList()); +} + +QTextTable* PythonQtWrapper_QTextCursor::currentTable(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->currentTable()); +} + +void PythonQtWrapper_QTextCursor::deleteChar(QTextCursor* theWrappedObject) +{ + ( theWrappedObject->deleteChar()); +} + +void PythonQtWrapper_QTextCursor::deletePreviousChar(QTextCursor* theWrappedObject) +{ + ( theWrappedObject->deletePreviousChar()); +} + +QTextDocument* PythonQtWrapper_QTextCursor::document(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->document()); +} + +void PythonQtWrapper_QTextCursor::endEditBlock(QTextCursor* theWrappedObject) +{ + ( theWrappedObject->endEditBlock()); +} + +bool PythonQtWrapper_QTextCursor::hasComplexSelection(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->hasComplexSelection()); +} + +bool PythonQtWrapper_QTextCursor::hasSelection(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->hasSelection()); +} + +void PythonQtWrapper_QTextCursor::insertBlock(QTextCursor* theWrappedObject) +{ + ( theWrappedObject->insertBlock()); +} + +void PythonQtWrapper_QTextCursor::insertBlock(QTextCursor* theWrappedObject, const QTextBlockFormat& format) +{ + ( theWrappedObject->insertBlock(format)); +} + +void PythonQtWrapper_QTextCursor::insertBlock(QTextCursor* theWrappedObject, const QTextBlockFormat& format, const QTextCharFormat& charFormat) +{ + ( theWrappedObject->insertBlock(format, charFormat)); +} + +void PythonQtWrapper_QTextCursor::insertFragment(QTextCursor* theWrappedObject, const QTextDocumentFragment& fragment) +{ + ( theWrappedObject->insertFragment(fragment)); +} + +QTextFrame* PythonQtWrapper_QTextCursor::insertFrame(QTextCursor* theWrappedObject, const QTextFrameFormat& format) +{ + return ( theWrappedObject->insertFrame(format)); +} + +void PythonQtWrapper_QTextCursor::insertHtml(QTextCursor* theWrappedObject, const QString& html) +{ + ( theWrappedObject->insertHtml(html)); +} + +void PythonQtWrapper_QTextCursor::insertImage(QTextCursor* theWrappedObject, const QImage& image, const QString& name) +{ + ( theWrappedObject->insertImage(image, name)); +} + +void PythonQtWrapper_QTextCursor::insertImage(QTextCursor* theWrappedObject, const QString& name) +{ + ( theWrappedObject->insertImage(name)); +} + +void PythonQtWrapper_QTextCursor::insertImage(QTextCursor* theWrappedObject, const QTextImageFormat& format) +{ + ( theWrappedObject->insertImage(format)); +} + +void PythonQtWrapper_QTextCursor::insertImage(QTextCursor* theWrappedObject, const QTextImageFormat& format, QTextFrameFormat::Position alignment) +{ + ( theWrappedObject->insertImage(format, alignment)); +} + +QTextList* PythonQtWrapper_QTextCursor::insertList(QTextCursor* theWrappedObject, QTextListFormat::Style style) +{ + return ( theWrappedObject->insertList(style)); +} + +QTextList* PythonQtWrapper_QTextCursor::insertList(QTextCursor* theWrappedObject, const QTextListFormat& format) +{ + return ( theWrappedObject->insertList(format)); +} + +QTextTable* PythonQtWrapper_QTextCursor::insertTable(QTextCursor* theWrappedObject, int rows, int cols) +{ + return ( theWrappedObject->insertTable(rows, cols)); +} + +QTextTable* PythonQtWrapper_QTextCursor::insertTable(QTextCursor* theWrappedObject, int rows, int cols, const QTextTableFormat& format) +{ + return ( theWrappedObject->insertTable(rows, cols, format)); +} + +void PythonQtWrapper_QTextCursor::insertText(QTextCursor* theWrappedObject, const QString& text) +{ + ( theWrappedObject->insertText(text)); +} + +void PythonQtWrapper_QTextCursor::insertText(QTextCursor* theWrappedObject, const QString& text, const QTextCharFormat& format) +{ + ( theWrappedObject->insertText(text, format)); +} + +bool PythonQtWrapper_QTextCursor::isCopyOf(QTextCursor* theWrappedObject, const QTextCursor& other) const +{ + return ( theWrappedObject->isCopyOf(other)); +} + +bool PythonQtWrapper_QTextCursor::isNull(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +void PythonQtWrapper_QTextCursor::joinPreviousEditBlock(QTextCursor* theWrappedObject) +{ + ( theWrappedObject->joinPreviousEditBlock()); +} + +bool PythonQtWrapper_QTextCursor::keepPositionOnInsert(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->keepPositionOnInsert()); +} + +void PythonQtWrapper_QTextCursor::mergeBlockCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& modifier) +{ + ( theWrappedObject->mergeBlockCharFormat(modifier)); +} + +void PythonQtWrapper_QTextCursor::mergeBlockFormat(QTextCursor* theWrappedObject, const QTextBlockFormat& modifier) +{ + ( theWrappedObject->mergeBlockFormat(modifier)); +} + +void PythonQtWrapper_QTextCursor::mergeCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& modifier) +{ + ( theWrappedObject->mergeCharFormat(modifier)); +} + +bool PythonQtWrapper_QTextCursor::movePosition(QTextCursor* theWrappedObject, QTextCursor::MoveOperation op, QTextCursor::MoveMode arg__2, int n) +{ + return ( theWrappedObject->movePosition(op, arg__2, n)); +} + +bool PythonQtWrapper_QTextCursor::__ne__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const +{ + return ( (*theWrappedObject)!= rhs); +} + +bool PythonQtWrapper_QTextCursor::__lt__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const +{ + return ( (*theWrappedObject)< rhs); +} + +bool PythonQtWrapper_QTextCursor::__le__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const +{ + return ( (*theWrappedObject)<= rhs); +} + +bool PythonQtWrapper_QTextCursor::__eq__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const +{ + return ( (*theWrappedObject)== rhs); +} + +bool PythonQtWrapper_QTextCursor::__gt__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const +{ + return ( (*theWrappedObject)> rhs); +} + +bool PythonQtWrapper_QTextCursor::__ge__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const +{ + return ( (*theWrappedObject)>= rhs); +} + +int PythonQtWrapper_QTextCursor::position(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->position()); +} + +int PythonQtWrapper_QTextCursor::positionInBlock(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->positionInBlock()); +} + +void PythonQtWrapper_QTextCursor::removeSelectedText(QTextCursor* theWrappedObject) +{ + ( theWrappedObject->removeSelectedText()); +} + +void PythonQtWrapper_QTextCursor::select(QTextCursor* theWrappedObject, QTextCursor::SelectionType selection) +{ + ( theWrappedObject->select(selection)); +} + +void PythonQtWrapper_QTextCursor::selectedTableCells(QTextCursor* theWrappedObject, int* firstRow, int* numRows, int* firstColumn, int* numColumns) const +{ + ( theWrappedObject->selectedTableCells(firstRow, numRows, firstColumn, numColumns)); +} + +QString PythonQtWrapper_QTextCursor::selectedText(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->selectedText()); +} + +QTextDocumentFragment PythonQtWrapper_QTextCursor::selection(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->selection()); +} + +int PythonQtWrapper_QTextCursor::selectionEnd(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->selectionEnd()); +} + +int PythonQtWrapper_QTextCursor::selectionStart(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->selectionStart()); +} + +void PythonQtWrapper_QTextCursor::setBlockCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& format) +{ + ( theWrappedObject->setBlockCharFormat(format)); +} + +void PythonQtWrapper_QTextCursor::setBlockFormat(QTextCursor* theWrappedObject, const QTextBlockFormat& format) +{ + ( theWrappedObject->setBlockFormat(format)); +} + +void PythonQtWrapper_QTextCursor::setCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& format) +{ + ( theWrappedObject->setCharFormat(format)); +} + +void PythonQtWrapper_QTextCursor::setKeepPositionOnInsert(QTextCursor* theWrappedObject, bool b) +{ + ( theWrappedObject->setKeepPositionOnInsert(b)); +} + +void PythonQtWrapper_QTextCursor::setPosition(QTextCursor* theWrappedObject, int pos, QTextCursor::MoveMode mode) +{ + ( theWrappedObject->setPosition(pos, mode)); +} + +void PythonQtWrapper_QTextCursor::setVerticalMovementX(QTextCursor* theWrappedObject, int x) +{ + ( theWrappedObject->setVerticalMovementX(x)); +} + +void PythonQtWrapper_QTextCursor::setVisualNavigation(QTextCursor* theWrappedObject, bool b) +{ + ( theWrappedObject->setVisualNavigation(b)); +} + +void PythonQtWrapper_QTextCursor::swap(QTextCursor* theWrappedObject, QTextCursor& other) +{ + ( theWrappedObject->swap(other)); +} + +int PythonQtWrapper_QTextCursor::verticalMovementX(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->verticalMovementX()); +} + +bool PythonQtWrapper_QTextCursor::visualNavigation(QTextCursor* theWrappedObject) const +{ + return ( theWrappedObject->visualNavigation()); +} + + diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui7.h b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui7.h new file mode 100644 index 00000000..600d212c --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui7.h @@ -0,0 +1,2073 @@ +#include + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined(QT_WIDGETS_LIB) +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QStyleOptionSlider : public QStyleOptionSlider +{ +public: + PythonQtShell_QStyleOptionSlider():QStyleOptionSlider(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionSlider(const QStyleOptionSlider& other):QStyleOptionSlider(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionSlider(int version):QStyleOptionSlider(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionSlider(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionSlider : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType ) +enum StyleOptionVersion{ + Version = QStyleOptionSlider::Version}; +enum StyleOptionType{ + Type = QStyleOptionSlider::Type}; +public slots: +QStyleOptionSlider* new_QStyleOptionSlider(); +QStyleOptionSlider* new_QStyleOptionSlider(const QStyleOptionSlider& other); +void delete_QStyleOptionSlider(QStyleOptionSlider* obj) { delete obj; } +void py_set_sliderPosition(QStyleOptionSlider* theWrappedObject, int sliderPosition){ theWrappedObject->sliderPosition = sliderPosition; } +int py_get_sliderPosition(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->sliderPosition; } +void py_set_pageStep(QStyleOptionSlider* theWrappedObject, int pageStep){ theWrappedObject->pageStep = pageStep; } +int py_get_pageStep(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->pageStep; } +void py_set_sliderValue(QStyleOptionSlider* theWrappedObject, int sliderValue){ theWrappedObject->sliderValue = sliderValue; } +int py_get_sliderValue(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->sliderValue; } +void py_set_tickInterval(QStyleOptionSlider* theWrappedObject, int tickInterval){ theWrappedObject->tickInterval = tickInterval; } +int py_get_tickInterval(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->tickInterval; } +void py_set_orientation(QStyleOptionSlider* theWrappedObject, Qt::Orientation orientation){ theWrappedObject->orientation = orientation; } +Qt::Orientation py_get_orientation(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->orientation; } +void py_set_dialWrapping(QStyleOptionSlider* theWrappedObject, bool dialWrapping){ theWrappedObject->dialWrapping = dialWrapping; } +bool py_get_dialWrapping(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->dialWrapping; } +void py_set_notchTarget(QStyleOptionSlider* theWrappedObject, qreal notchTarget){ theWrappedObject->notchTarget = notchTarget; } +qreal py_get_notchTarget(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->notchTarget; } +void py_set_upsideDown(QStyleOptionSlider* theWrappedObject, bool upsideDown){ theWrappedObject->upsideDown = upsideDown; } +bool py_get_upsideDown(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->upsideDown; } +void py_set_minimum(QStyleOptionSlider* theWrappedObject, int minimum){ theWrappedObject->minimum = minimum; } +int py_get_minimum(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->minimum; } +void py_set_maximum(QStyleOptionSlider* theWrappedObject, int maximum){ theWrappedObject->maximum = maximum; } +int py_get_maximum(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->maximum; } +void py_set_tickPosition(QStyleOptionSlider* theWrappedObject, QSlider::TickPosition tickPosition){ theWrappedObject->tickPosition = tickPosition; } +QSlider::TickPosition py_get_tickPosition(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->tickPosition; } +void py_set_singleStep(QStyleOptionSlider* theWrappedObject, int singleStep){ theWrappedObject->singleStep = singleStep; } +int py_get_singleStep(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->singleStep; } +}; + + + + + +class PythonQtShell_QStyleOptionSpinBox : public QStyleOptionSpinBox +{ +public: + PythonQtShell_QStyleOptionSpinBox():QStyleOptionSpinBox(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionSpinBox(const QStyleOptionSpinBox& other):QStyleOptionSpinBox(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionSpinBox(int version):QStyleOptionSpinBox(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionSpinBox(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionSpinBox : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType ) +enum StyleOptionVersion{ + Version = QStyleOptionSpinBox::Version}; +enum StyleOptionType{ + Type = QStyleOptionSpinBox::Type}; +public slots: +QStyleOptionSpinBox* new_QStyleOptionSpinBox(); +QStyleOptionSpinBox* new_QStyleOptionSpinBox(const QStyleOptionSpinBox& other); +void delete_QStyleOptionSpinBox(QStyleOptionSpinBox* obj) { delete obj; } +void py_set_buttonSymbols(QStyleOptionSpinBox* theWrappedObject, QAbstractSpinBox::ButtonSymbols buttonSymbols){ theWrappedObject->buttonSymbols = buttonSymbols; } +QAbstractSpinBox::ButtonSymbols py_get_buttonSymbols(QStyleOptionSpinBox* theWrappedObject){ return theWrappedObject->buttonSymbols; } +void py_set_stepEnabled(QStyleOptionSpinBox* theWrappedObject, QAbstractSpinBox::StepEnabled stepEnabled){ theWrappedObject->stepEnabled = stepEnabled; } +QAbstractSpinBox::StepEnabled py_get_stepEnabled(QStyleOptionSpinBox* theWrappedObject){ return theWrappedObject->stepEnabled; } +void py_set_frame(QStyleOptionSpinBox* theWrappedObject, bool frame){ theWrappedObject->frame = frame; } +bool py_get_frame(QStyleOptionSpinBox* theWrappedObject){ return theWrappedObject->frame; } +}; + + + + + +class PythonQtShell_QStyleOptionTab : public QStyleOptionTab +{ +public: + PythonQtShell_QStyleOptionTab():QStyleOptionTab(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionTab(const QStyleOptionTab& other):QStyleOptionTab(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionTab(int version):QStyleOptionTab(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionTab(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionTab : public QObject +{ Q_OBJECT +public: +Q_ENUMS(SelectedPosition StyleOptionVersion CornerWidget StyleOptionType TabPosition ) +Q_FLAGS(CornerWidgets ) +enum SelectedPosition{ + NotAdjacent = QStyleOptionTab::NotAdjacent, NextIsSelected = QStyleOptionTab::NextIsSelected, PreviousIsSelected = QStyleOptionTab::PreviousIsSelected}; +enum StyleOptionVersion{ + Version = QStyleOptionTab::Version}; +enum CornerWidget{ + NoCornerWidgets = QStyleOptionTab::NoCornerWidgets, LeftCornerWidget = QStyleOptionTab::LeftCornerWidget, RightCornerWidget = QStyleOptionTab::RightCornerWidget}; +enum StyleOptionType{ + Type = QStyleOptionTab::Type}; +enum TabPosition{ + Beginning = QStyleOptionTab::Beginning, Middle = QStyleOptionTab::Middle, End = QStyleOptionTab::End, OnlyOneTab = QStyleOptionTab::OnlyOneTab}; +Q_DECLARE_FLAGS(CornerWidgets, CornerWidget) +public slots: +QStyleOptionTab* new_QStyleOptionTab(); +QStyleOptionTab* new_QStyleOptionTab(const QStyleOptionTab& other); +void delete_QStyleOptionTab(QStyleOptionTab* obj) { delete obj; } +void py_set_documentMode(QStyleOptionTab* theWrappedObject, bool documentMode){ theWrappedObject->documentMode = documentMode; } +bool py_get_documentMode(QStyleOptionTab* theWrappedObject){ return theWrappedObject->documentMode; } +void py_set_rightButtonSize(QStyleOptionTab* theWrappedObject, QSize rightButtonSize){ theWrappedObject->rightButtonSize = rightButtonSize; } +QSize py_get_rightButtonSize(QStyleOptionTab* theWrappedObject){ return theWrappedObject->rightButtonSize; } +void py_set_text(QStyleOptionTab* theWrappedObject, QString text){ theWrappedObject->text = text; } +QString py_get_text(QStyleOptionTab* theWrappedObject){ return theWrappedObject->text; } +void py_set_iconSize(QStyleOptionTab* theWrappedObject, QSize iconSize){ theWrappedObject->iconSize = iconSize; } +QSize py_get_iconSize(QStyleOptionTab* theWrappedObject){ return theWrappedObject->iconSize; } +void py_set_row(QStyleOptionTab* theWrappedObject, int row){ theWrappedObject->row = row; } +int py_get_row(QStyleOptionTab* theWrappedObject){ return theWrappedObject->row; } +void py_set_shape(QStyleOptionTab* theWrappedObject, QTabBar::Shape shape){ theWrappedObject->shape = shape; } +QTabBar::Shape py_get_shape(QStyleOptionTab* theWrappedObject){ return theWrappedObject->shape; } +void py_set_selectedPosition(QStyleOptionTab* theWrappedObject, QStyleOptionTab::SelectedPosition selectedPosition){ theWrappedObject->selectedPosition = selectedPosition; } +QStyleOptionTab::SelectedPosition py_get_selectedPosition(QStyleOptionTab* theWrappedObject){ return theWrappedObject->selectedPosition; } +void py_set_leftButtonSize(QStyleOptionTab* theWrappedObject, QSize leftButtonSize){ theWrappedObject->leftButtonSize = leftButtonSize; } +QSize py_get_leftButtonSize(QStyleOptionTab* theWrappedObject){ return theWrappedObject->leftButtonSize; } +void py_set_position(QStyleOptionTab* theWrappedObject, QStyleOptionTab::TabPosition position){ theWrappedObject->position = position; } +QStyleOptionTab::TabPosition py_get_position(QStyleOptionTab* theWrappedObject){ return theWrappedObject->position; } +void py_set_icon(QStyleOptionTab* theWrappedObject, QIcon icon){ theWrappedObject->icon = icon; } +QIcon py_get_icon(QStyleOptionTab* theWrappedObject){ return theWrappedObject->icon; } +void py_set_cornerWidgets(QStyleOptionTab* theWrappedObject, QStyleOptionTab::CornerWidgets cornerWidgets){ theWrappedObject->cornerWidgets = cornerWidgets; } +QStyleOptionTab::CornerWidgets py_get_cornerWidgets(QStyleOptionTab* theWrappedObject){ return theWrappedObject->cornerWidgets; } +}; + + + + + +class PythonQtShell_QStyleOptionTabBarBase : public QStyleOptionTabBarBase +{ +public: + PythonQtShell_QStyleOptionTabBarBase():QStyleOptionTabBarBase(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionTabBarBase(const QStyleOptionTabBarBase& other):QStyleOptionTabBarBase(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionTabBarBase(int version):QStyleOptionTabBarBase(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionTabBarBase(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionTabBarBase : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType ) +enum StyleOptionVersion{ + Version = QStyleOptionTabBarBase::Version}; +enum StyleOptionType{ + Type = QStyleOptionTabBarBase::Type}; +public slots: +QStyleOptionTabBarBase* new_QStyleOptionTabBarBase(); +QStyleOptionTabBarBase* new_QStyleOptionTabBarBase(const QStyleOptionTabBarBase& other); +void delete_QStyleOptionTabBarBase(QStyleOptionTabBarBase* obj) { delete obj; } +void py_set_documentMode(QStyleOptionTabBarBase* theWrappedObject, bool documentMode){ theWrappedObject->documentMode = documentMode; } +bool py_get_documentMode(QStyleOptionTabBarBase* theWrappedObject){ return theWrappedObject->documentMode; } +void py_set_tabBarRect(QStyleOptionTabBarBase* theWrappedObject, QRect tabBarRect){ theWrappedObject->tabBarRect = tabBarRect; } +QRect py_get_tabBarRect(QStyleOptionTabBarBase* theWrappedObject){ return theWrappedObject->tabBarRect; } +void py_set_shape(QStyleOptionTabBarBase* theWrappedObject, QTabBar::Shape shape){ theWrappedObject->shape = shape; } +QTabBar::Shape py_get_shape(QStyleOptionTabBarBase* theWrappedObject){ return theWrappedObject->shape; } +void py_set_selectedTabRect(QStyleOptionTabBarBase* theWrappedObject, QRect selectedTabRect){ theWrappedObject->selectedTabRect = selectedTabRect; } +QRect py_get_selectedTabRect(QStyleOptionTabBarBase* theWrappedObject){ return theWrappedObject->selectedTabRect; } +}; + + + + + +class PythonQtShell_QStyleOptionTabWidgetFrame : public QStyleOptionTabWidgetFrame +{ +public: + PythonQtShell_QStyleOptionTabWidgetFrame():QStyleOptionTabWidgetFrame(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionTabWidgetFrame(const QStyleOptionTabWidgetFrame& other):QStyleOptionTabWidgetFrame(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionTabWidgetFrame(int version):QStyleOptionTabWidgetFrame(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionTabWidgetFrame(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionTabWidgetFrame : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType ) +enum StyleOptionVersion{ + Version = QStyleOptionTabWidgetFrame::Version}; +enum StyleOptionType{ + Type = QStyleOptionTabWidgetFrame::Type}; +public slots: +QStyleOptionTabWidgetFrame* new_QStyleOptionTabWidgetFrame(); +QStyleOptionTabWidgetFrame* new_QStyleOptionTabWidgetFrame(const QStyleOptionTabWidgetFrame& other); +void delete_QStyleOptionTabWidgetFrame(QStyleOptionTabWidgetFrame* obj) { delete obj; } +void py_set_tabBarSize(QStyleOptionTabWidgetFrame* theWrappedObject, QSize tabBarSize){ theWrappedObject->tabBarSize = tabBarSize; } +QSize py_get_tabBarSize(QStyleOptionTabWidgetFrame* theWrappedObject){ return theWrappedObject->tabBarSize; } +void py_set_tabBarRect(QStyleOptionTabWidgetFrame* theWrappedObject, QRect tabBarRect){ theWrappedObject->tabBarRect = tabBarRect; } +QRect py_get_tabBarRect(QStyleOptionTabWidgetFrame* theWrappedObject){ return theWrappedObject->tabBarRect; } +void py_set_midLineWidth(QStyleOptionTabWidgetFrame* theWrappedObject, int midLineWidth){ theWrappedObject->midLineWidth = midLineWidth; } +int py_get_midLineWidth(QStyleOptionTabWidgetFrame* theWrappedObject){ return theWrappedObject->midLineWidth; } +void py_set_shape(QStyleOptionTabWidgetFrame* theWrappedObject, QTabBar::Shape shape){ theWrappedObject->shape = shape; } +QTabBar::Shape py_get_shape(QStyleOptionTabWidgetFrame* theWrappedObject){ return theWrappedObject->shape; } +void py_set_rightCornerWidgetSize(QStyleOptionTabWidgetFrame* theWrappedObject, QSize rightCornerWidgetSize){ theWrappedObject->rightCornerWidgetSize = rightCornerWidgetSize; } +QSize py_get_rightCornerWidgetSize(QStyleOptionTabWidgetFrame* theWrappedObject){ return theWrappedObject->rightCornerWidgetSize; } +void py_set_lineWidth(QStyleOptionTabWidgetFrame* theWrappedObject, int lineWidth){ theWrappedObject->lineWidth = lineWidth; } +int py_get_lineWidth(QStyleOptionTabWidgetFrame* theWrappedObject){ return theWrappedObject->lineWidth; } +void py_set_leftCornerWidgetSize(QStyleOptionTabWidgetFrame* theWrappedObject, QSize leftCornerWidgetSize){ theWrappedObject->leftCornerWidgetSize = leftCornerWidgetSize; } +QSize py_get_leftCornerWidgetSize(QStyleOptionTabWidgetFrame* theWrappedObject){ return theWrappedObject->leftCornerWidgetSize; } +void py_set_selectedTabRect(QStyleOptionTabWidgetFrame* theWrappedObject, QRect selectedTabRect){ theWrappedObject->selectedTabRect = selectedTabRect; } +QRect py_get_selectedTabRect(QStyleOptionTabWidgetFrame* theWrappedObject){ return theWrappedObject->selectedTabRect; } +}; + + + + + +class PythonQtShell_QStyleOptionTitleBar : public QStyleOptionTitleBar +{ +public: + PythonQtShell_QStyleOptionTitleBar():QStyleOptionTitleBar(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionTitleBar(const QStyleOptionTitleBar& other):QStyleOptionTitleBar(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionTitleBar(int version):QStyleOptionTitleBar(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionTitleBar(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionTitleBar : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType ) +enum StyleOptionVersion{ + Version = QStyleOptionTitleBar::Version}; +enum StyleOptionType{ + Type = QStyleOptionTitleBar::Type}; +public slots: +QStyleOptionTitleBar* new_QStyleOptionTitleBar(); +QStyleOptionTitleBar* new_QStyleOptionTitleBar(const QStyleOptionTitleBar& other); +void delete_QStyleOptionTitleBar(QStyleOptionTitleBar* obj) { delete obj; } +void py_set_text(QStyleOptionTitleBar* theWrappedObject, QString text){ theWrappedObject->text = text; } +QString py_get_text(QStyleOptionTitleBar* theWrappedObject){ return theWrappedObject->text; } +void py_set_titleBarFlags(QStyleOptionTitleBar* theWrappedObject, Qt::WindowFlags titleBarFlags){ theWrappedObject->titleBarFlags = titleBarFlags; } +Qt::WindowFlags py_get_titleBarFlags(QStyleOptionTitleBar* theWrappedObject){ return theWrappedObject->titleBarFlags; } +void py_set_titleBarState(QStyleOptionTitleBar* theWrappedObject, int titleBarState){ theWrappedObject->titleBarState = titleBarState; } +int py_get_titleBarState(QStyleOptionTitleBar* theWrappedObject){ return theWrappedObject->titleBarState; } +void py_set_icon(QStyleOptionTitleBar* theWrappedObject, QIcon icon){ theWrappedObject->icon = icon; } +QIcon py_get_icon(QStyleOptionTitleBar* theWrappedObject){ return theWrappedObject->icon; } +}; + + + + + +class PythonQtShell_QStyleOptionToolBar : public QStyleOptionToolBar +{ +public: + PythonQtShell_QStyleOptionToolBar():QStyleOptionToolBar(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionToolBar(const QStyleOptionToolBar& other):QStyleOptionToolBar(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionToolBar(int version):QStyleOptionToolBar(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionToolBar(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionToolBar : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion ToolBarPosition StyleOptionType ToolBarFeature ) +Q_FLAGS(ToolBarFeatures ) +enum StyleOptionVersion{ + Version = QStyleOptionToolBar::Version}; +enum ToolBarPosition{ + Beginning = QStyleOptionToolBar::Beginning, Middle = QStyleOptionToolBar::Middle, End = QStyleOptionToolBar::End, OnlyOne = QStyleOptionToolBar::OnlyOne}; +enum StyleOptionType{ + Type = QStyleOptionToolBar::Type}; +enum ToolBarFeature{ + None = QStyleOptionToolBar::None, Movable = QStyleOptionToolBar::Movable}; +Q_DECLARE_FLAGS(ToolBarFeatures, ToolBarFeature) +public slots: +QStyleOptionToolBar* new_QStyleOptionToolBar(); +QStyleOptionToolBar* new_QStyleOptionToolBar(const QStyleOptionToolBar& other); +void delete_QStyleOptionToolBar(QStyleOptionToolBar* obj) { delete obj; } +void py_set_toolBarArea(QStyleOptionToolBar* theWrappedObject, Qt::ToolBarArea toolBarArea){ theWrappedObject->toolBarArea = toolBarArea; } +Qt::ToolBarArea py_get_toolBarArea(QStyleOptionToolBar* theWrappedObject){ return theWrappedObject->toolBarArea; } +void py_set_features(QStyleOptionToolBar* theWrappedObject, QStyleOptionToolBar::ToolBarFeatures features){ theWrappedObject->features = features; } +QStyleOptionToolBar::ToolBarFeatures py_get_features(QStyleOptionToolBar* theWrappedObject){ return theWrappedObject->features; } +void py_set_positionWithinLine(QStyleOptionToolBar* theWrappedObject, QStyleOptionToolBar::ToolBarPosition positionWithinLine){ theWrappedObject->positionWithinLine = positionWithinLine; } +QStyleOptionToolBar::ToolBarPosition py_get_positionWithinLine(QStyleOptionToolBar* theWrappedObject){ return theWrappedObject->positionWithinLine; } +void py_set_midLineWidth(QStyleOptionToolBar* theWrappedObject, int midLineWidth){ theWrappedObject->midLineWidth = midLineWidth; } +int py_get_midLineWidth(QStyleOptionToolBar* theWrappedObject){ return theWrappedObject->midLineWidth; } +void py_set_lineWidth(QStyleOptionToolBar* theWrappedObject, int lineWidth){ theWrappedObject->lineWidth = lineWidth; } +int py_get_lineWidth(QStyleOptionToolBar* theWrappedObject){ return theWrappedObject->lineWidth; } +void py_set_positionOfLine(QStyleOptionToolBar* theWrappedObject, QStyleOptionToolBar::ToolBarPosition positionOfLine){ theWrappedObject->positionOfLine = positionOfLine; } +QStyleOptionToolBar::ToolBarPosition py_get_positionOfLine(QStyleOptionToolBar* theWrappedObject){ return theWrappedObject->positionOfLine; } +}; + + + + + +class PythonQtShell_QStyleOptionToolBox : public QStyleOptionToolBox +{ +public: + PythonQtShell_QStyleOptionToolBox():QStyleOptionToolBox(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionToolBox(const QStyleOptionToolBox& other):QStyleOptionToolBox(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionToolBox(int version):QStyleOptionToolBox(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionToolBox(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionToolBox : public QObject +{ Q_OBJECT +public: +Q_ENUMS(SelectedPosition StyleOptionVersion StyleOptionType TabPosition ) +enum SelectedPosition{ + NotAdjacent = QStyleOptionToolBox::NotAdjacent, NextIsSelected = QStyleOptionToolBox::NextIsSelected, PreviousIsSelected = QStyleOptionToolBox::PreviousIsSelected}; +enum StyleOptionVersion{ + Version = QStyleOptionToolBox::Version}; +enum StyleOptionType{ + Type = QStyleOptionToolBox::Type}; +enum TabPosition{ + Beginning = QStyleOptionToolBox::Beginning, Middle = QStyleOptionToolBox::Middle, End = QStyleOptionToolBox::End, OnlyOneTab = QStyleOptionToolBox::OnlyOneTab}; +public slots: +QStyleOptionToolBox* new_QStyleOptionToolBox(); +QStyleOptionToolBox* new_QStyleOptionToolBox(const QStyleOptionToolBox& other); +void delete_QStyleOptionToolBox(QStyleOptionToolBox* obj) { delete obj; } +void py_set_text(QStyleOptionToolBox* theWrappedObject, QString text){ theWrappedObject->text = text; } +QString py_get_text(QStyleOptionToolBox* theWrappedObject){ return theWrappedObject->text; } +void py_set_selectedPosition(QStyleOptionToolBox* theWrappedObject, QStyleOptionToolBox::SelectedPosition selectedPosition){ theWrappedObject->selectedPosition = selectedPosition; } +QStyleOptionToolBox::SelectedPosition py_get_selectedPosition(QStyleOptionToolBox* theWrappedObject){ return theWrappedObject->selectedPosition; } +void py_set_position(QStyleOptionToolBox* theWrappedObject, QStyleOptionToolBox::TabPosition position){ theWrappedObject->position = position; } +QStyleOptionToolBox::TabPosition py_get_position(QStyleOptionToolBox* theWrappedObject){ return theWrappedObject->position; } +void py_set_icon(QStyleOptionToolBox* theWrappedObject, QIcon icon){ theWrappedObject->icon = icon; } +QIcon py_get_icon(QStyleOptionToolBox* theWrappedObject){ return theWrappedObject->icon; } +}; + + + + + +class PythonQtShell_QStyleOptionToolButton : public QStyleOptionToolButton +{ +public: + PythonQtShell_QStyleOptionToolButton():QStyleOptionToolButton(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionToolButton(const QStyleOptionToolButton& other):QStyleOptionToolButton(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionToolButton(int version):QStyleOptionToolButton(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionToolButton(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionToolButton : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType ToolButtonFeature ) +Q_FLAGS(ToolButtonFeatures ) +enum StyleOptionVersion{ + Version = QStyleOptionToolButton::Version}; +enum StyleOptionType{ + Type = QStyleOptionToolButton::Type}; +enum ToolButtonFeature{ + None = QStyleOptionToolButton::None, Arrow = QStyleOptionToolButton::Arrow, Menu = QStyleOptionToolButton::Menu, MenuButtonPopup = QStyleOptionToolButton::MenuButtonPopup, PopupDelay = QStyleOptionToolButton::PopupDelay, HasMenu = QStyleOptionToolButton::HasMenu}; +Q_DECLARE_FLAGS(ToolButtonFeatures, ToolButtonFeature) +public slots: +QStyleOptionToolButton* new_QStyleOptionToolButton(); +QStyleOptionToolButton* new_QStyleOptionToolButton(const QStyleOptionToolButton& other); +void delete_QStyleOptionToolButton(QStyleOptionToolButton* obj) { delete obj; } +void py_set_pos(QStyleOptionToolButton* theWrappedObject, QPoint pos){ theWrappedObject->pos = pos; } +QPoint py_get_pos(QStyleOptionToolButton* theWrappedObject){ return theWrappedObject->pos; } +void py_set_features(QStyleOptionToolButton* theWrappedObject, QStyleOptionToolButton::ToolButtonFeatures features){ theWrappedObject->features = features; } +QStyleOptionToolButton::ToolButtonFeatures py_get_features(QStyleOptionToolButton* theWrappedObject){ return theWrappedObject->features; } +void py_set_toolButtonStyle(QStyleOptionToolButton* theWrappedObject, Qt::ToolButtonStyle toolButtonStyle){ theWrappedObject->toolButtonStyle = toolButtonStyle; } +Qt::ToolButtonStyle py_get_toolButtonStyle(QStyleOptionToolButton* theWrappedObject){ return theWrappedObject->toolButtonStyle; } +void py_set_text(QStyleOptionToolButton* theWrappedObject, QString text){ theWrappedObject->text = text; } +QString py_get_text(QStyleOptionToolButton* theWrappedObject){ return theWrappedObject->text; } +void py_set_iconSize(QStyleOptionToolButton* theWrappedObject, QSize iconSize){ theWrappedObject->iconSize = iconSize; } +QSize py_get_iconSize(QStyleOptionToolButton* theWrappedObject){ return theWrappedObject->iconSize; } +void py_set_font(QStyleOptionToolButton* theWrappedObject, QFont font){ theWrappedObject->font = font; } +QFont py_get_font(QStyleOptionToolButton* theWrappedObject){ return theWrappedObject->font; } +void py_set_arrowType(QStyleOptionToolButton* theWrappedObject, Qt::ArrowType arrowType){ theWrappedObject->arrowType = arrowType; } +Qt::ArrowType py_get_arrowType(QStyleOptionToolButton* theWrappedObject){ return theWrappedObject->arrowType; } +void py_set_icon(QStyleOptionToolButton* theWrappedObject, QIcon icon){ theWrappedObject->icon = icon; } +QIcon py_get_icon(QStyleOptionToolButton* theWrappedObject){ return theWrappedObject->icon; } +}; + + + + + +class PythonQtShell_QStyleOptionViewItem : public QStyleOptionViewItem +{ +public: + PythonQtShell_QStyleOptionViewItem():QStyleOptionViewItem(),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionViewItem(const QStyleOptionViewItem& other):QStyleOptionViewItem(other),_wrapper(NULL) {}; + PythonQtShell_QStyleOptionViewItem(int version):QStyleOptionViewItem(version),_wrapper(NULL) {}; + + ~PythonQtShell_QStyleOptionViewItem(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStyleOptionViewItem : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleOptionVersion StyleOptionType Position ViewItemPosition ViewItemFeature ) +Q_FLAGS(ViewItemFeatures ) +enum StyleOptionVersion{ + Version = QStyleOptionViewItem::Version}; +enum StyleOptionType{ + Type = QStyleOptionViewItem::Type}; +enum Position{ + Left = QStyleOptionViewItem::Left, Right = QStyleOptionViewItem::Right, Top = QStyleOptionViewItem::Top, Bottom = QStyleOptionViewItem::Bottom}; +enum ViewItemPosition{ + Invalid = QStyleOptionViewItem::Invalid, Beginning = QStyleOptionViewItem::Beginning, Middle = QStyleOptionViewItem::Middle, End = QStyleOptionViewItem::End, OnlyOne = QStyleOptionViewItem::OnlyOne}; +enum ViewItemFeature{ + None = QStyleOptionViewItem::None, WrapText = QStyleOptionViewItem::WrapText, Alternate = QStyleOptionViewItem::Alternate, HasCheckIndicator = QStyleOptionViewItem::HasCheckIndicator, HasDisplay = QStyleOptionViewItem::HasDisplay, HasDecoration = QStyleOptionViewItem::HasDecoration}; +Q_DECLARE_FLAGS(ViewItemFeatures, ViewItemFeature) +public slots: +QStyleOptionViewItem* new_QStyleOptionViewItem(); +QStyleOptionViewItem* new_QStyleOptionViewItem(const QStyleOptionViewItem& other); +void delete_QStyleOptionViewItem(QStyleOptionViewItem* obj) { delete obj; } +void py_set_decorationSize(QStyleOptionViewItem* theWrappedObject, QSize decorationSize){ theWrappedObject->decorationSize = decorationSize; } +QSize py_get_decorationSize(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->decorationSize; } +void py_set_index(QStyleOptionViewItem* theWrappedObject, QModelIndex index){ theWrappedObject->index = index; } +QModelIndex py_get_index(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->index; } +void py_set_features(QStyleOptionViewItem* theWrappedObject, QStyleOptionViewItem::ViewItemFeatures features){ theWrappedObject->features = features; } +QStyleOptionViewItem::ViewItemFeatures py_get_features(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->features; } +void py_set_decorationAlignment(QStyleOptionViewItem* theWrappedObject, Qt::Alignment decorationAlignment){ theWrappedObject->decorationAlignment = decorationAlignment; } +Qt::Alignment py_get_decorationAlignment(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->decorationAlignment; } +void py_set_decorationPosition(QStyleOptionViewItem* theWrappedObject, QStyleOptionViewItem::Position decorationPosition){ theWrappedObject->decorationPosition = decorationPosition; } +QStyleOptionViewItem::Position py_get_decorationPosition(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->decorationPosition; } +void py_set_showDecorationSelected(QStyleOptionViewItem* theWrappedObject, bool showDecorationSelected){ theWrappedObject->showDecorationSelected = showDecorationSelected; } +bool py_get_showDecorationSelected(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->showDecorationSelected; } +void py_set_checkState(QStyleOptionViewItem* theWrappedObject, Qt::CheckState checkState){ theWrappedObject->checkState = checkState; } +Qt::CheckState py_get_checkState(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->checkState; } +void py_set_text(QStyleOptionViewItem* theWrappedObject, QString text){ theWrappedObject->text = text; } +QString py_get_text(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->text; } +void py_set_viewItemPosition(QStyleOptionViewItem* theWrappedObject, QStyleOptionViewItem::ViewItemPosition viewItemPosition){ theWrappedObject->viewItemPosition = viewItemPosition; } +QStyleOptionViewItem::ViewItemPosition py_get_viewItemPosition(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->viewItemPosition; } +void py_set_backgroundBrush(QStyleOptionViewItem* theWrappedObject, QBrush backgroundBrush){ theWrappedObject->backgroundBrush = backgroundBrush; } +QBrush py_get_backgroundBrush(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->backgroundBrush; } +void py_set_font(QStyleOptionViewItem* theWrappedObject, QFont font){ theWrappedObject->font = font; } +QFont py_get_font(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->font; } +const QWidget* py_get_widget(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->widget; } +void py_set_displayAlignment(QStyleOptionViewItem* theWrappedObject, Qt::Alignment displayAlignment){ theWrappedObject->displayAlignment = displayAlignment; } +Qt::Alignment py_get_displayAlignment(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->displayAlignment; } +void py_set_locale(QStyleOptionViewItem* theWrappedObject, QLocale locale){ theWrappedObject->locale = locale; } +QLocale py_get_locale(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->locale; } +void py_set_textElideMode(QStyleOptionViewItem* theWrappedObject, Qt::TextElideMode textElideMode){ theWrappedObject->textElideMode = textElideMode; } +Qt::TextElideMode py_get_textElideMode(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->textElideMode; } +void py_set_icon(QStyleOptionViewItem* theWrappedObject, QIcon icon){ theWrappedObject->icon = icon; } +QIcon py_get_icon(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->icon; } +}; + + + + + +class PythonQtWrapper_QStylePainter : public QObject +{ Q_OBJECT +public: +public slots: +QStylePainter* new_QStylePainter(); +QStylePainter* new_QStylePainter(QPaintDevice* pd, QWidget* w); +QStylePainter* new_QStylePainter(QWidget* w); +void delete_QStylePainter(QStylePainter* obj) { delete obj; } + bool begin(QStylePainter* theWrappedObject, QPaintDevice* pd, QWidget* w); + bool begin(QStylePainter* theWrappedObject, QWidget* w); + void drawComplexControl(QStylePainter* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex& opt); + void drawControl(QStylePainter* theWrappedObject, QStyle::ControlElement ce, const QStyleOption& opt); + void drawItemPixmap(QStylePainter* theWrappedObject, const QRect& r, int flags, const QPixmap& pixmap); + void drawItemText(QStylePainter* theWrappedObject, const QRect& r, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole = QPalette::NoRole); + void drawPrimitive(QStylePainter* theWrappedObject, QStyle::PrimitiveElement pe, const QStyleOption& opt); + QStyle* style(QStylePainter* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QStylePlugin : public QStylePlugin +{ +public: + PythonQtShell_QStylePlugin(QObject* parent = 0):QStylePlugin(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QStylePlugin(); + +virtual void childEvent(QChildEvent* arg__1); +virtual QStyle* create(const QString& key); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QStylePlugin : public QObject +{ Q_OBJECT +public: +public slots: +QStylePlugin* new_QStylePlugin(QObject* parent = 0); +void delete_QStylePlugin(QStylePlugin* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QStyledItemDelegate : public QStyledItemDelegate +{ +public: + PythonQtShell_QStyledItemDelegate(QObject* parent = 0):QStyledItemDelegate(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QStyledItemDelegate(); + +virtual void childEvent(QChildEvent* arg__1); +virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; +virtual void customEvent(QEvent* arg__1); +virtual void destroyEditor(QWidget* editor, const QModelIndex& index) const; +virtual QString displayText(const QVariant& value, const QLocale& locale) const; +virtual bool editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* object, QEvent* event); +virtual bool helpEvent(QHelpEvent* event, QAbstractItemView* view, const QStyleOptionViewItem& option, const QModelIndex& index); +virtual void initStyleOption(QStyleOptionViewItem* option, const QModelIndex& index) const; +virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; +virtual QVector paintingRoles() const; +virtual void setEditorData(QWidget* editor, const QModelIndex& index) const; +virtual void setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const; +virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual void updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QStyledItemDelegate : public QStyledItemDelegate +{ public: +inline QWidget* promoted_createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const { return QStyledItemDelegate::createEditor(parent, option, index); } +inline QString promoted_displayText(const QVariant& value, const QLocale& locale) const { return QStyledItemDelegate::displayText(value, locale); } +inline bool promoted_editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) { return QStyledItemDelegate::editorEvent(event, model, option, index); } +inline bool promoted_eventFilter(QObject* object, QEvent* event) { return QStyledItemDelegate::eventFilter(object, event); } +inline void promoted_initStyleOption(QStyleOptionViewItem* option, const QModelIndex& index) const { QStyledItemDelegate::initStyleOption(option, index); } +inline void promoted_paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const { QStyledItemDelegate::paint(painter, option, index); } +inline void promoted_setEditorData(QWidget* editor, const QModelIndex& index) const { QStyledItemDelegate::setEditorData(editor, index); } +inline void promoted_setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const { QStyledItemDelegate::setModelData(editor, model, index); } +inline QSize promoted_sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const { return QStyledItemDelegate::sizeHint(option, index); } +inline void promoted_updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const { QStyledItemDelegate::updateEditorGeometry(editor, option, index); } +}; + +class PythonQtWrapper_QStyledItemDelegate : public QObject +{ Q_OBJECT +public: +public slots: +QStyledItemDelegate* new_QStyledItemDelegate(QObject* parent = 0); +void delete_QStyledItemDelegate(QStyledItemDelegate* obj) { delete obj; } + QWidget* createEditor(QStyledItemDelegate* theWrappedObject, QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; + QString displayText(QStyledItemDelegate* theWrappedObject, const QVariant& value, const QLocale& locale) const; + bool editorEvent(QStyledItemDelegate* theWrappedObject, QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index); + bool eventFilter(QStyledItemDelegate* theWrappedObject, QObject* object, QEvent* event); + void initStyleOption(QStyledItemDelegate* theWrappedObject, QStyleOptionViewItem* option, const QModelIndex& index) const; + QItemEditorFactory* itemEditorFactory(QStyledItemDelegate* theWrappedObject) const; + void paint(QStyledItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; + void setEditorData(QStyledItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const; + void setItemEditorFactory(QStyledItemDelegate* theWrappedObject, QItemEditorFactory* factory); + void setModelData(QStyledItemDelegate* theWrappedObject, QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const; + QSize sizeHint(QStyledItemDelegate* theWrappedObject, const QStyleOptionViewItem& option, const QModelIndex& index) const; + void updateEditorGeometry(QStyledItemDelegate* theWrappedObject, QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const; +}; + + + + + +class PythonQtShell_QSwipeGesture : public QSwipeGesture +{ +public: + PythonQtShell_QSwipeGesture(QObject* parent = 0):QSwipeGesture(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QSwipeGesture(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QSwipeGesture : public QObject +{ Q_OBJECT +public: +public slots: +QSwipeGesture* new_QSwipeGesture(QObject* parent = 0); +void delete_QSwipeGesture(QSwipeGesture* obj) { delete obj; } + QSwipeGesture::SwipeDirection horizontalDirection(QSwipeGesture* theWrappedObject) const; + void setSwipeAngle(QSwipeGesture* theWrappedObject, qreal value); + qreal swipeAngle(QSwipeGesture* theWrappedObject) const; + QSwipeGesture::SwipeDirection verticalDirection(QSwipeGesture* theWrappedObject) const; +}; + +#endif + + + +class PythonQtShell_QSyntaxHighlighter : public QSyntaxHighlighter +{ +public: + PythonQtShell_QSyntaxHighlighter(QObject* parent):QSyntaxHighlighter(parent),_wrapper(NULL) {}; + PythonQtShell_QSyntaxHighlighter(QTextDocument* parent):QSyntaxHighlighter(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QSyntaxHighlighter(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void highlightBlock(const QString& text); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QSyntaxHighlighter : public QObject +{ Q_OBJECT +public: +public slots: +QSyntaxHighlighter* new_QSyntaxHighlighter(QObject* parent); +QSyntaxHighlighter* new_QSyntaxHighlighter(QTextDocument* parent); +void delete_QSyntaxHighlighter(QSyntaxHighlighter* obj) { delete obj; } + QTextDocument* document(QSyntaxHighlighter* theWrappedObject) const; + void setDocument(QSyntaxHighlighter* theWrappedObject, QTextDocument* doc); +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QSystemTrayIcon : public QSystemTrayIcon +{ +public: + PythonQtShell_QSystemTrayIcon(QObject* parent = 0):QSystemTrayIcon(parent),_wrapper(NULL) {}; + PythonQtShell_QSystemTrayIcon(const QIcon& icon, QObject* parent = 0):QSystemTrayIcon(icon, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QSystemTrayIcon(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSystemTrayIcon : public QSystemTrayIcon +{ public: +inline bool promoted_event(QEvent* event) { return QSystemTrayIcon::event(event); } +}; + +class PythonQtWrapper_QSystemTrayIcon : public QObject +{ Q_OBJECT +public: +Q_ENUMS(MessageIcon ActivationReason ) +enum MessageIcon{ + NoIcon = QSystemTrayIcon::NoIcon, Information = QSystemTrayIcon::Information, Warning = QSystemTrayIcon::Warning, Critical = QSystemTrayIcon::Critical}; +enum ActivationReason{ + Unknown = QSystemTrayIcon::Unknown, Context = QSystemTrayIcon::Context, DoubleClick = QSystemTrayIcon::DoubleClick, Trigger = QSystemTrayIcon::Trigger, MiddleClick = QSystemTrayIcon::MiddleClick}; +public slots: +QSystemTrayIcon* new_QSystemTrayIcon(QObject* parent = 0); +QSystemTrayIcon* new_QSystemTrayIcon(const QIcon& icon, QObject* parent = 0); +void delete_QSystemTrayIcon(QSystemTrayIcon* obj) { delete obj; } + QMenu* contextMenu(QSystemTrayIcon* theWrappedObject) const; + bool event(QSystemTrayIcon* theWrappedObject, QEvent* event); + QRect geometry(QSystemTrayIcon* theWrappedObject) const; + QIcon icon(QSystemTrayIcon* theWrappedObject) const; + bool static_QSystemTrayIcon_isSystemTrayAvailable(); + bool isVisible(QSystemTrayIcon* theWrappedObject) const; + void setContextMenu(QSystemTrayIcon* theWrappedObject, QMenu* menu); + void setIcon(QSystemTrayIcon* theWrappedObject, const QIcon& icon); + void setToolTip(QSystemTrayIcon* theWrappedObject, const QString& tip); + void showMessage(QSystemTrayIcon* theWrappedObject, const QString& title, const QString& msg, QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::Information, int msecs = 10000); + bool static_QSystemTrayIcon_supportsMessages(); + QString toolTip(QSystemTrayIcon* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QTabBar : public QTabBar +{ +public: + PythonQtShell_QTabBar(QWidget* parent = 0):QTabBar(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QTabBar(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumTabSizeHint(int index) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabInserted(int index); +virtual void tabLayoutChange(); +virtual void tabRemoved(int index); +virtual QSize tabSizeHint(int index) const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* event); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QTabBar : public QTabBar +{ public: +inline void promoted_changeEvent(QEvent* arg__1) { QTabBar::changeEvent(arg__1); } +inline bool promoted_event(QEvent* arg__1) { return QTabBar::event(arg__1); } +inline void promoted_hideEvent(QHideEvent* arg__1) { QTabBar::hideEvent(arg__1); } +inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QTabBar::keyPressEvent(arg__1); } +inline QSize promoted_minimumTabSizeHint(int index) const { return QTabBar::minimumTabSizeHint(index); } +inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QTabBar::mouseMoveEvent(arg__1); } +inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QTabBar::mousePressEvent(arg__1); } +inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QTabBar::mouseReleaseEvent(arg__1); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QTabBar::paintEvent(arg__1); } +inline void promoted_resizeEvent(QResizeEvent* arg__1) { QTabBar::resizeEvent(arg__1); } +inline void promoted_showEvent(QShowEvent* arg__1) { QTabBar::showEvent(arg__1); } +inline void promoted_tabInserted(int index) { QTabBar::tabInserted(index); } +inline void promoted_tabLayoutChange() { QTabBar::tabLayoutChange(); } +inline void promoted_tabRemoved(int index) { QTabBar::tabRemoved(index); } +inline QSize promoted_tabSizeHint(int index) const { return QTabBar::tabSizeHint(index); } +inline void promoted_wheelEvent(QWheelEvent* event) { QTabBar::wheelEvent(event); } +}; + +class PythonQtWrapper_QTabBar : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ButtonPosition SelectionBehavior ) +enum ButtonPosition{ + LeftSide = QTabBar::LeftSide, RightSide = QTabBar::RightSide}; +enum SelectionBehavior{ + SelectLeftTab = QTabBar::SelectLeftTab, SelectRightTab = QTabBar::SelectRightTab, SelectPreviousTab = QTabBar::SelectPreviousTab}; +public slots: +QTabBar* new_QTabBar(QWidget* parent = 0); +void delete_QTabBar(QTabBar* obj) { delete obj; } + int addTab(QTabBar* theWrappedObject, const QIcon& icon, const QString& text); + int addTab(QTabBar* theWrappedObject, const QString& text); + void changeEvent(QTabBar* theWrappedObject, QEvent* arg__1); + int count(QTabBar* theWrappedObject) const; + int currentIndex(QTabBar* theWrappedObject) const; + bool documentMode(QTabBar* theWrappedObject) const; + bool drawBase(QTabBar* theWrappedObject) const; + Qt::TextElideMode elideMode(QTabBar* theWrappedObject) const; + bool event(QTabBar* theWrappedObject, QEvent* arg__1); + bool expanding(QTabBar* theWrappedObject) const; + void hideEvent(QTabBar* theWrappedObject, QHideEvent* arg__1); + QSize iconSize(QTabBar* theWrappedObject) const; + int insertTab(QTabBar* theWrappedObject, int index, const QIcon& icon, const QString& text); + int insertTab(QTabBar* theWrappedObject, int index, const QString& text); + bool isMovable(QTabBar* theWrappedObject) const; + bool isTabEnabled(QTabBar* theWrappedObject, int index) const; + void keyPressEvent(QTabBar* theWrappedObject, QKeyEvent* arg__1); + QSize minimumSizeHint(QTabBar* theWrappedObject) const; + QSize minimumTabSizeHint(QTabBar* theWrappedObject, int index) const; + void mouseMoveEvent(QTabBar* theWrappedObject, QMouseEvent* arg__1); + void mousePressEvent(QTabBar* theWrappedObject, QMouseEvent* arg__1); + void mouseReleaseEvent(QTabBar* theWrappedObject, QMouseEvent* arg__1); + void moveTab(QTabBar* theWrappedObject, int from, int to); + void paintEvent(QTabBar* theWrappedObject, QPaintEvent* arg__1); + void removeTab(QTabBar* theWrappedObject, int index); + void resizeEvent(QTabBar* theWrappedObject, QResizeEvent* arg__1); + QTabBar::SelectionBehavior selectionBehaviorOnRemove(QTabBar* theWrappedObject) const; + void setDocumentMode(QTabBar* theWrappedObject, bool set); + void setDrawBase(QTabBar* theWrappedObject, bool drawTheBase); + void setElideMode(QTabBar* theWrappedObject, Qt::TextElideMode arg__1); + void setExpanding(QTabBar* theWrappedObject, bool enabled); + void setIconSize(QTabBar* theWrappedObject, const QSize& size); + void setMovable(QTabBar* theWrappedObject, bool movable); + void setSelectionBehaviorOnRemove(QTabBar* theWrappedObject, QTabBar::SelectionBehavior behavior); + void setShape(QTabBar* theWrappedObject, QTabBar::Shape shape); + void setTabButton(QTabBar* theWrappedObject, int index, QTabBar::ButtonPosition position, QWidget* widget); + void setTabData(QTabBar* theWrappedObject, int index, const QVariant& data); + void setTabEnabled(QTabBar* theWrappedObject, int index, bool arg__2); + void setTabIcon(QTabBar* theWrappedObject, int index, const QIcon& icon); + void setTabText(QTabBar* theWrappedObject, int index, const QString& text); + void setTabTextColor(QTabBar* theWrappedObject, int index, const QColor& color); + void setTabToolTip(QTabBar* theWrappedObject, int index, const QString& tip); + void setTabWhatsThis(QTabBar* theWrappedObject, int index, const QString& text); + void setTabsClosable(QTabBar* theWrappedObject, bool closable); + void setUsesScrollButtons(QTabBar* theWrappedObject, bool useButtons); + QTabBar::Shape shape(QTabBar* theWrappedObject) const; + void showEvent(QTabBar* theWrappedObject, QShowEvent* arg__1); + QSize sizeHint(QTabBar* theWrappedObject) const; + int tabAt(QTabBar* theWrappedObject, const QPoint& pos) const; + QWidget* tabButton(QTabBar* theWrappedObject, int index, QTabBar::ButtonPosition position) const; + QVariant tabData(QTabBar* theWrappedObject, int index) const; + QIcon tabIcon(QTabBar* theWrappedObject, int index) const; + void tabInserted(QTabBar* theWrappedObject, int index); + void tabLayoutChange(QTabBar* theWrappedObject); + QRect tabRect(QTabBar* theWrappedObject, int index) const; + void tabRemoved(QTabBar* theWrappedObject, int index); + QSize tabSizeHint(QTabBar* theWrappedObject, int index) const; + QString tabText(QTabBar* theWrappedObject, int index) const; + QColor tabTextColor(QTabBar* theWrappedObject, int index) const; + QString tabToolTip(QTabBar* theWrappedObject, int index) const; + QString tabWhatsThis(QTabBar* theWrappedObject, int index) const; + bool tabsClosable(QTabBar* theWrappedObject) const; + bool usesScrollButtons(QTabBar* theWrappedObject) const; + void wheelEvent(QTabBar* theWrappedObject, QWheelEvent* event); +}; + + + + + +class PythonQtShell_QTabWidget : public QTabWidget +{ +public: + PythonQtShell_QTabWidget(QWidget* parent = 0):QTabWidget(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QTabWidget(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int width) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabInserted(int index); +virtual void tabRemoved(int index); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QTabWidget : public QTabWidget +{ public: +inline void promoted_changeEvent(QEvent* arg__1) { QTabWidget::changeEvent(arg__1); } +inline bool promoted_event(QEvent* arg__1) { return QTabWidget::event(arg__1); } +inline bool promoted_hasHeightForWidth() const { return QTabWidget::hasHeightForWidth(); } +inline int promoted_heightForWidth(int width) const { return QTabWidget::heightForWidth(width); } +inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QTabWidget::keyPressEvent(arg__1); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QTabWidget::paintEvent(arg__1); } +inline void promoted_resizeEvent(QResizeEvent* arg__1) { QTabWidget::resizeEvent(arg__1); } +inline void promoted_showEvent(QShowEvent* arg__1) { QTabWidget::showEvent(arg__1); } +inline void promoted_tabInserted(int index) { QTabWidget::tabInserted(index); } +inline void promoted_tabRemoved(int index) { QTabWidget::tabRemoved(index); } +}; + +class PythonQtWrapper_QTabWidget : public QObject +{ Q_OBJECT +public: +public slots: +QTabWidget* new_QTabWidget(QWidget* parent = 0); +void delete_QTabWidget(QTabWidget* obj) { delete obj; } + int addTab(QTabWidget* theWrappedObject, QWidget* widget, const QIcon& icon, const QString& label); + int addTab(QTabWidget* theWrappedObject, QWidget* widget, const QString& arg__2); + void changeEvent(QTabWidget* theWrappedObject, QEvent* arg__1); + void clear(QTabWidget* theWrappedObject); + QWidget* cornerWidget(QTabWidget* theWrappedObject, Qt::Corner corner = Qt::TopRightCorner) const; + int count(QTabWidget* theWrappedObject) const; + int currentIndex(QTabWidget* theWrappedObject) const; + QWidget* currentWidget(QTabWidget* theWrappedObject) const; + bool documentMode(QTabWidget* theWrappedObject) const; + Qt::TextElideMode elideMode(QTabWidget* theWrappedObject) const; + bool event(QTabWidget* theWrappedObject, QEvent* arg__1); + bool hasHeightForWidth(QTabWidget* theWrappedObject) const; + int heightForWidth(QTabWidget* theWrappedObject, int width) const; + QSize iconSize(QTabWidget* theWrappedObject) const; + int indexOf(QTabWidget* theWrappedObject, QWidget* widget) const; + int insertTab(QTabWidget* theWrappedObject, int index, QWidget* widget, const QIcon& icon, const QString& label); + int insertTab(QTabWidget* theWrappedObject, int index, QWidget* widget, const QString& arg__3); + bool isMovable(QTabWidget* theWrappedObject) const; + bool isTabEnabled(QTabWidget* theWrappedObject, int index) const; + void keyPressEvent(QTabWidget* theWrappedObject, QKeyEvent* arg__1); + QSize minimumSizeHint(QTabWidget* theWrappedObject) const; + void paintEvent(QTabWidget* theWrappedObject, QPaintEvent* arg__1); + void removeTab(QTabWidget* theWrappedObject, int index); + void resizeEvent(QTabWidget* theWrappedObject, QResizeEvent* arg__1); + void setCornerWidget(QTabWidget* theWrappedObject, QWidget* w, Qt::Corner corner = Qt::TopRightCorner); + void setDocumentMode(QTabWidget* theWrappedObject, bool set); + void setElideMode(QTabWidget* theWrappedObject, Qt::TextElideMode arg__1); + void setIconSize(QTabWidget* theWrappedObject, const QSize& size); + void setMovable(QTabWidget* theWrappedObject, bool movable); + void setTabEnabled(QTabWidget* theWrappedObject, int index, bool arg__2); + void setTabIcon(QTabWidget* theWrappedObject, int index, const QIcon& icon); + void setTabPosition(QTabWidget* theWrappedObject, QTabWidget::TabPosition arg__1); + void setTabShape(QTabWidget* theWrappedObject, QTabWidget::TabShape s); + void setTabText(QTabWidget* theWrappedObject, int index, const QString& arg__2); + void setTabToolTip(QTabWidget* theWrappedObject, int index, const QString& tip); + void setTabWhatsThis(QTabWidget* theWrappedObject, int index, const QString& text); + void setTabsClosable(QTabWidget* theWrappedObject, bool closeable); + void setUsesScrollButtons(QTabWidget* theWrappedObject, bool useButtons); + void showEvent(QTabWidget* theWrappedObject, QShowEvent* arg__1); + QSize sizeHint(QTabWidget* theWrappedObject) const; + QTabBar* tabBar(QTabWidget* theWrappedObject) const; + QIcon tabIcon(QTabWidget* theWrappedObject, int index) const; + void tabInserted(QTabWidget* theWrappedObject, int index); + QTabWidget::TabPosition tabPosition(QTabWidget* theWrappedObject) const; + void tabRemoved(QTabWidget* theWrappedObject, int index); + QTabWidget::TabShape tabShape(QTabWidget* theWrappedObject) const; + QString tabText(QTabWidget* theWrappedObject, int index) const; + QString tabToolTip(QTabWidget* theWrappedObject, int index) const; + QString tabWhatsThis(QTabWidget* theWrappedObject, int index) const; + bool tabsClosable(QTabWidget* theWrappedObject) const; + bool usesScrollButtons(QTabWidget* theWrappedObject) const; + QWidget* widget(QTabWidget* theWrappedObject, int index) const; +}; + + + + + +class PythonQtShell_QTableView : public QTableView +{ +public: + PythonQtShell_QTableView(QWidget* parent = 0):QTableView(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QTableView(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void commitData(QWidget* editor); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); +virtual void customEvent(QEvent* arg__1); +virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles); +virtual int devType() const; +virtual void doItemsLayout(); +virtual void dragEnterEvent(QDragEnterEvent* event); +virtual void dragLeaveEvent(QDragLeaveEvent* event); +virtual void dragMoveEvent(QDragMoveEvent* event); +virtual void dropEvent(QDropEvent* event); +virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); +virtual void editorDestroyed(QObject* editor); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* event); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual int horizontalOffset() const; +virtual void horizontalScrollbarAction(int action); +virtual void horizontalScrollbarValueChanged(int value); +virtual QModelIndex indexAt(const QPoint& p) const; +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual bool isIndexHidden(const QModelIndex& index) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void keyboardSearch(const QString& search); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* event); +virtual void mouseMoveEvent(QMouseEvent* event); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* event); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* e); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reset(); +virtual void resizeEvent(QResizeEvent* 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 void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); +virtual void selectAll(); +virtual QList selectedIndexes() const; +virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); +virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; +virtual void setModel(QAbstractItemModel* model); +virtual void setRootIndex(const QModelIndex& index); +virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); +virtual void setSelectionModel(QItemSelectionModel* selectionModel); +virtual void setupViewport(QWidget* viewport); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual int sizeHintForColumn(int column) const; +virtual int sizeHintForRow(int row) const; +virtual void startDrag(Qt::DropActions supportedActions); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* event); +virtual void updateEditorData(); +virtual void updateEditorGeometries(); +virtual void updateGeometries(); +virtual int verticalOffset() const; +virtual void verticalScrollbarAction(int action); +virtual void verticalScrollbarValueChanged(int value); +virtual QStyleOptionViewItem viewOptions() const; +virtual bool viewportEvent(QEvent* event); +virtual QSize viewportSizeHint() const; +virtual QRect visualRect(const QModelIndex& index) const; +virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QTableView : public QTableView +{ public: +inline void promoted_currentChanged(const QModelIndex& current, const QModelIndex& previous) { QTableView::currentChanged(current, previous); } +inline void promoted_doItemsLayout() { QTableView::doItemsLayout(); } +inline int promoted_horizontalOffset() const { return QTableView::horizontalOffset(); } +inline void promoted_horizontalScrollbarAction(int action) { QTableView::horizontalScrollbarAction(action); } +inline QModelIndex promoted_indexAt(const QPoint& p) const { return QTableView::indexAt(p); } +inline bool promoted_isIndexHidden(const QModelIndex& index) const { return QTableView::isIndexHidden(index); } +inline void promoted_paintEvent(QPaintEvent* e) { QTableView::paintEvent(e); } +inline void promoted_scrollContentsBy(int dx, int dy) { QTableView::scrollContentsBy(dx, dy); } +inline void promoted_scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible) { QTableView::scrollTo(index, hint); } +inline QList promoted_selectedIndexes() const { return QTableView::selectedIndexes(); } +inline void promoted_selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) { QTableView::selectionChanged(selected, deselected); } +inline void promoted_setModel(QAbstractItemModel* model) { QTableView::setModel(model); } +inline void promoted_setRootIndex(const QModelIndex& index) { QTableView::setRootIndex(index); } +inline void promoted_setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) { QTableView::setSelection(rect, command); } +inline void promoted_setSelectionModel(QItemSelectionModel* selectionModel) { QTableView::setSelectionModel(selectionModel); } +inline int promoted_sizeHintForColumn(int column) const { return QTableView::sizeHintForColumn(column); } +inline int promoted_sizeHintForRow(int row) const { return QTableView::sizeHintForRow(row); } +inline void promoted_timerEvent(QTimerEvent* event) { QTableView::timerEvent(event); } +inline void promoted_updateGeometries() { QTableView::updateGeometries(); } +inline int promoted_verticalOffset() const { return QTableView::verticalOffset(); } +inline void promoted_verticalScrollbarAction(int action) { QTableView::verticalScrollbarAction(action); } +inline QStyleOptionViewItem promoted_viewOptions() const { return QTableView::viewOptions(); } +inline QRect promoted_visualRect(const QModelIndex& index) const { return QTableView::visualRect(index); } +inline QRegion promoted_visualRegionForSelection(const QItemSelection& selection) const { return QTableView::visualRegionForSelection(selection); } +}; + +class PythonQtWrapper_QTableView : public QObject +{ Q_OBJECT +public: +public slots: +QTableView* new_QTableView(QWidget* parent = 0); +void delete_QTableView(QTableView* obj) { delete obj; } + void clearSpans(QTableView* theWrappedObject); + int columnAt(QTableView* theWrappedObject, int x) const; + int columnSpan(QTableView* theWrappedObject, int row, int column) const; + int columnViewportPosition(QTableView* theWrappedObject, int column) const; + int columnWidth(QTableView* theWrappedObject, int column) const; + void currentChanged(QTableView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous); + void doItemsLayout(QTableView* theWrappedObject); + Qt::PenStyle gridStyle(QTableView* theWrappedObject) const; + QHeaderView* horizontalHeader(QTableView* theWrappedObject) const; + int horizontalOffset(QTableView* theWrappedObject) const; + void horizontalScrollbarAction(QTableView* theWrappedObject, int action); + QModelIndex indexAt(QTableView* theWrappedObject, const QPoint& p) const; + bool isColumnHidden(QTableView* theWrappedObject, int column) const; + bool isCornerButtonEnabled(QTableView* theWrappedObject) const; + bool isIndexHidden(QTableView* theWrappedObject, const QModelIndex& index) const; + bool isRowHidden(QTableView* theWrappedObject, int row) const; + bool isSortingEnabled(QTableView* theWrappedObject) const; + void paintEvent(QTableView* theWrappedObject, QPaintEvent* e); + int rowAt(QTableView* theWrappedObject, int y) const; + int rowHeight(QTableView* theWrappedObject, int row) const; + int rowSpan(QTableView* theWrappedObject, int row, int column) const; + int rowViewportPosition(QTableView* theWrappedObject, int row) const; + void scrollContentsBy(QTableView* theWrappedObject, int dx, int dy); + void scrollTo(QTableView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); + QList selectedIndexes(QTableView* theWrappedObject) const; + void selectionChanged(QTableView* theWrappedObject, const QItemSelection& selected, const QItemSelection& deselected); + void setColumnHidden(QTableView* theWrappedObject, int column, bool hide); + void setColumnWidth(QTableView* theWrappedObject, int column, int width); + void setCornerButtonEnabled(QTableView* theWrappedObject, bool enable); + void setGridStyle(QTableView* theWrappedObject, Qt::PenStyle style); + void setHorizontalHeader(QTableView* theWrappedObject, QHeaderView* header); + void setModel(QTableView* theWrappedObject, QAbstractItemModel* model); + void setRootIndex(QTableView* theWrappedObject, const QModelIndex& index); + void setRowHeight(QTableView* theWrappedObject, int row, int height); + void setRowHidden(QTableView* theWrappedObject, int row, bool hide); + void setSelection(QTableView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command); + void setSelectionModel(QTableView* theWrappedObject, QItemSelectionModel* selectionModel); + void setSortingEnabled(QTableView* theWrappedObject, bool enable); + void setSpan(QTableView* theWrappedObject, int row, int column, int rowSpan, int columnSpan); + void setVerticalHeader(QTableView* theWrappedObject, QHeaderView* header); + void setWordWrap(QTableView* theWrappedObject, bool on); + bool showGrid(QTableView* theWrappedObject) const; + int sizeHintForColumn(QTableView* theWrappedObject, int column) const; + int sizeHintForRow(QTableView* theWrappedObject, int row) const; + void sortByColumn(QTableView* theWrappedObject, int column, Qt::SortOrder order); + void timerEvent(QTableView* theWrappedObject, QTimerEvent* event); + void updateGeometries(QTableView* theWrappedObject); + QHeaderView* verticalHeader(QTableView* theWrappedObject) const; + int verticalOffset(QTableView* theWrappedObject) const; + void verticalScrollbarAction(QTableView* theWrappedObject, int action); + QStyleOptionViewItem viewOptions(QTableView* theWrappedObject) const; + QRect visualRect(QTableView* theWrappedObject, const QModelIndex& index) const; + QRegion visualRegionForSelection(QTableView* theWrappedObject, const QItemSelection& selection) const; + bool wordWrap(QTableView* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QTableWidget : public QTableWidget +{ +public: + PythonQtShell_QTableWidget(QWidget* parent = 0):QTableWidget(parent),_wrapper(NULL) {}; + PythonQtShell_QTableWidget(int rows, int columns, QWidget* parent = 0):QTableWidget(rows, columns, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QTableWidget(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void commitData(QWidget* editor); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); +virtual void customEvent(QEvent* arg__1); +virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles); +virtual int devType() const; +virtual void doItemsLayout(); +virtual void dragEnterEvent(QDragEnterEvent* event); +virtual void dragLeaveEvent(QDragLeaveEvent* event); +virtual void dragMoveEvent(QDragMoveEvent* event); +virtual void dropEvent(QDropEvent* event); +virtual bool dropMimeData(int row, int column, const QMimeData* data, Qt::DropAction action); +virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); +virtual void editorDestroyed(QObject* editor); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* event); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual int horizontalOffset() const; +virtual void horizontalScrollbarAction(int action); +virtual void horizontalScrollbarValueChanged(int value); +virtual QModelIndex indexAt(const QPoint& p) const; +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual bool isIndexHidden(const QModelIndex& index) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void keyboardSearch(const QString& search); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QMimeData* mimeData(const QList items) const; +virtual QStringList mimeTypes() const; +virtual void mouseDoubleClickEvent(QMouseEvent* event); +virtual void mouseMoveEvent(QMouseEvent* event); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* event); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* e); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reset(); +virtual void resizeEvent(QResizeEvent* 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 void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint); +virtual void selectAll(); +virtual QList selectedIndexes() const; +virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); +virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; +virtual void setRootIndex(const QModelIndex& index); +virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); +virtual void setSelectionModel(QItemSelectionModel* selectionModel); +virtual void setupViewport(QWidget* viewport); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual int sizeHintForColumn(int column) const; +virtual int sizeHintForRow(int row) const; +virtual void startDrag(Qt::DropActions supportedActions); +virtual Qt::DropActions supportedDropActions() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* event); +virtual void updateEditorData(); +virtual void updateEditorGeometries(); +virtual void updateGeometries(); +virtual int verticalOffset() const; +virtual void verticalScrollbarAction(int action); +virtual void verticalScrollbarValueChanged(int value); +virtual QStyleOptionViewItem viewOptions() const; +virtual bool viewportEvent(QEvent* event); +virtual QSize viewportSizeHint() const; +virtual QRect visualRect(const QModelIndex& index) const; +virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QTableWidget : public QTableWidget +{ public: +inline void promoted_dropEvent(QDropEvent* event) { QTableWidget::dropEvent(event); } +inline bool promoted_dropMimeData(int row, int column, const QMimeData* data, Qt::DropAction action) { return QTableWidget::dropMimeData(row, column, data, action); } +inline bool promoted_event(QEvent* e) { return QTableWidget::event(e); } +inline QStringList promoted_mimeTypes() const { return QTableWidget::mimeTypes(); } +inline Qt::DropActions promoted_supportedDropActions() const { return QTableWidget::supportedDropActions(); } +}; + +class PythonQtWrapper_QTableWidget : public QObject +{ Q_OBJECT +public: +public slots: +QTableWidget* new_QTableWidget(QWidget* parent = 0); +QTableWidget* new_QTableWidget(int rows, int columns, QWidget* parent = 0); +void delete_QTableWidget(QTableWidget* obj) { delete obj; } + QWidget* cellWidget(QTableWidget* theWrappedObject, int row, int column) const; + void closePersistentEditor(QTableWidget* theWrappedObject, QTableWidgetItem* item); + int column(QTableWidget* theWrappedObject, const QTableWidgetItem* item) const; + int columnCount(QTableWidget* theWrappedObject) const; + int currentColumn(QTableWidget* theWrappedObject) const; + QTableWidgetItem* currentItem(QTableWidget* theWrappedObject) const; + int currentRow(QTableWidget* theWrappedObject) const; + void dropEvent(QTableWidget* theWrappedObject, QDropEvent* event); + bool dropMimeData(QTableWidget* theWrappedObject, int row, int column, const QMimeData* data, Qt::DropAction action); + void editItem(QTableWidget* theWrappedObject, QTableWidgetItem* item); + bool event(QTableWidget* theWrappedObject, QEvent* e); + QList findItems(QTableWidget* theWrappedObject, const QString& text, Qt::MatchFlags flags) const; + QTableWidgetItem* horizontalHeaderItem(QTableWidget* theWrappedObject, int column) const; + QTableWidgetItem* item(QTableWidget* theWrappedObject, int row, int column) const; + QTableWidgetItem* itemAt(QTableWidget* theWrappedObject, const QPoint& p) const; + QTableWidgetItem* itemAt(QTableWidget* theWrappedObject, int x, int y) const; + const QTableWidgetItem* itemPrototype(QTableWidget* theWrappedObject) const; + QStringList mimeTypes(QTableWidget* theWrappedObject) const; + void openPersistentEditor(QTableWidget* theWrappedObject, QTableWidgetItem* item); + void removeCellWidget(QTableWidget* theWrappedObject, int row, int column); + int row(QTableWidget* theWrappedObject, const QTableWidgetItem* item) const; + int rowCount(QTableWidget* theWrappedObject) const; + QList selectedItems(QTableWidget* theWrappedObject) const; + QList selectedRanges(QTableWidget* theWrappedObject) const; + void setCellWidget(QTableWidget* theWrappedObject, int row, int column, QWidget* widget); + void setColumnCount(QTableWidget* theWrappedObject, int columns); + void setCurrentCell(QTableWidget* theWrappedObject, int row, int column); + void setCurrentCell(QTableWidget* theWrappedObject, int row, int column, QItemSelectionModel::SelectionFlags command); + void setCurrentItem(QTableWidget* theWrappedObject, QTableWidgetItem* item); + void setCurrentItem(QTableWidget* theWrappedObject, QTableWidgetItem* item, QItemSelectionModel::SelectionFlags command); + void setHorizontalHeaderItem(QTableWidget* theWrappedObject, int column, QTableWidgetItem* item); + void setHorizontalHeaderLabels(QTableWidget* theWrappedObject, const QStringList& labels); + void setItem(QTableWidget* theWrappedObject, int row, int column, QTableWidgetItem* item); + void setItemPrototype(QTableWidget* theWrappedObject, const QTableWidgetItem* item); + void setRangeSelected(QTableWidget* theWrappedObject, const QTableWidgetSelectionRange& range, bool select); + void setRowCount(QTableWidget* theWrappedObject, int rows); + void setVerticalHeaderItem(QTableWidget* theWrappedObject, int row, QTableWidgetItem* item); + void setVerticalHeaderLabels(QTableWidget* theWrappedObject, const QStringList& labels); + void sortItems(QTableWidget* theWrappedObject, int column, Qt::SortOrder order = Qt::AscendingOrder); + Qt::DropActions supportedDropActions(QTableWidget* theWrappedObject) const; + QTableWidgetItem* takeHorizontalHeaderItem(QTableWidget* theWrappedObject, int column); + QTableWidgetItem* takeItem(QTableWidget* theWrappedObject, int row, int column); + QTableWidgetItem* takeVerticalHeaderItem(QTableWidget* theWrappedObject, int row); + QTableWidgetItem* verticalHeaderItem(QTableWidget* theWrappedObject, int row) const; + int visualColumn(QTableWidget* theWrappedObject, int logicalColumn) const; + QRect visualItemRect(QTableWidget* theWrappedObject, const QTableWidgetItem* item) const; + int visualRow(QTableWidget* theWrappedObject, int logicalRow) const; +}; + + + + + +class PythonQtShell_QTableWidgetItem : public QTableWidgetItem +{ +public: + PythonQtShell_QTableWidgetItem(const QIcon& icon, const QString& text, int type = Type):QTableWidgetItem(icon, text, type),_wrapper(NULL) {}; + PythonQtShell_QTableWidgetItem(const QString& text, int type = Type):QTableWidgetItem(text, type),_wrapper(NULL) {}; + PythonQtShell_QTableWidgetItem(int type = Type):QTableWidgetItem(type),_wrapper(NULL) {}; + + ~PythonQtShell_QTableWidgetItem(); + +virtual QTableWidgetItem* clone() const; +virtual QVariant data(int role) const; +virtual bool __lt__(const QTableWidgetItem& other) const; +virtual void read(QDataStream& in); +virtual void setData(int role, const QVariant& value); +virtual void write(QDataStream& out) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QTableWidgetItem : public QTableWidgetItem +{ public: +inline QTableWidgetItem* promoted_clone() const { return QTableWidgetItem::clone(); } +inline QVariant promoted_data(int role) const { return QTableWidgetItem::data(role); } +inline void promoted_setData(int role, const QVariant& value) { QTableWidgetItem::setData(role, value); } +}; + +class PythonQtWrapper_QTableWidgetItem : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ItemType ) +enum ItemType{ + Type = QTableWidgetItem::Type, UserType = QTableWidgetItem::UserType}; +public slots: +QTableWidgetItem* new_QTableWidgetItem(const QIcon& icon, const QString& text, int type = Type); +QTableWidgetItem* new_QTableWidgetItem(const QString& text, int type = Type); +QTableWidgetItem* new_QTableWidgetItem(int type = Type); +void delete_QTableWidgetItem(QTableWidgetItem* obj) { delete obj; } + QBrush background(QTableWidgetItem* theWrappedObject) const; + Qt::CheckState checkState(QTableWidgetItem* theWrappedObject) const; + QTableWidgetItem* clone(QTableWidgetItem* theWrappedObject) const; + int column(QTableWidgetItem* theWrappedObject) const; + QVariant data(QTableWidgetItem* theWrappedObject, int role) const; + Qt::ItemFlags flags(QTableWidgetItem* theWrappedObject) const; + QFont font(QTableWidgetItem* theWrappedObject) const; + QBrush foreground(QTableWidgetItem* theWrappedObject) const; + QIcon icon(QTableWidgetItem* theWrappedObject) const; + bool isSelected(QTableWidgetItem* theWrappedObject) const; + int row(QTableWidgetItem* theWrappedObject) const; + void setBackground(QTableWidgetItem* theWrappedObject, const QBrush& brush); + void setCheckState(QTableWidgetItem* theWrappedObject, Qt::CheckState state); + void setData(QTableWidgetItem* theWrappedObject, int role, const QVariant& value); + void setFlags(QTableWidgetItem* theWrappedObject, Qt::ItemFlags flags); + void setFont(QTableWidgetItem* theWrappedObject, const QFont& font); + void setForeground(QTableWidgetItem* theWrappedObject, const QBrush& brush); + void setIcon(QTableWidgetItem* theWrappedObject, const QIcon& icon); + void setSelected(QTableWidgetItem* theWrappedObject, bool select); + void setSizeHint(QTableWidgetItem* theWrappedObject, const QSize& size); + void setStatusTip(QTableWidgetItem* theWrappedObject, const QString& statusTip); + void setText(QTableWidgetItem* theWrappedObject, const QString& text); + void setTextAlignment(QTableWidgetItem* theWrappedObject, int alignment); + void setToolTip(QTableWidgetItem* theWrappedObject, const QString& toolTip); + void setWhatsThis(QTableWidgetItem* theWrappedObject, const QString& whatsThis); + QSize sizeHint(QTableWidgetItem* theWrappedObject) const; + QString statusTip(QTableWidgetItem* theWrappedObject) const; + QTableWidget* tableWidget(QTableWidgetItem* theWrappedObject) const; + QString text(QTableWidgetItem* theWrappedObject) const; + int textAlignment(QTableWidgetItem* theWrappedObject) const; + QString toolTip(QTableWidgetItem* theWrappedObject) const; + int type(QTableWidgetItem* theWrappedObject) const; + QString whatsThis(QTableWidgetItem* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QTableWidgetSelectionRange : public QObject +{ Q_OBJECT +public: +public slots: +QTableWidgetSelectionRange* new_QTableWidgetSelectionRange(); +QTableWidgetSelectionRange* new_QTableWidgetSelectionRange(const QTableWidgetSelectionRange& other); +QTableWidgetSelectionRange* new_QTableWidgetSelectionRange(int top, int left, int bottom, int right); +void delete_QTableWidgetSelectionRange(QTableWidgetSelectionRange* obj) { delete obj; } + int bottomRow(QTableWidgetSelectionRange* theWrappedObject) const; + int columnCount(QTableWidgetSelectionRange* theWrappedObject) const; + int leftColumn(QTableWidgetSelectionRange* theWrappedObject) const; + int rightColumn(QTableWidgetSelectionRange* theWrappedObject) const; + int rowCount(QTableWidgetSelectionRange* theWrappedObject) const; + int topRow(QTableWidgetSelectionRange* theWrappedObject) const; +}; + +#endif + + + +class PythonQtShell_QTabletEvent : public QTabletEvent +{ +public: + PythonQtShell_QTabletEvent(QEvent::Type t, const QPointF& pos, const QPointF& globalPos, int device, int pointerType, qreal pressure, int xTilt, int yTilt, qreal tangentialPressure, qreal rotation, int z, Qt::KeyboardModifiers keyState, qint64 uniqueID):QTabletEvent(t, pos, globalPos, device, pointerType, pressure, xTilt, yTilt, tangentialPressure, rotation, z, keyState, uniqueID),_wrapper(NULL) {}; + + ~PythonQtShell_QTabletEvent(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTabletEvent : public QObject +{ Q_OBJECT +public: +Q_ENUMS(PointerType TabletDevice ) +enum PointerType{ + UnknownPointer = QTabletEvent::UnknownPointer, Pen = QTabletEvent::Pen, Cursor = QTabletEvent::Cursor, Eraser = QTabletEvent::Eraser}; +enum TabletDevice{ + NoDevice = QTabletEvent::NoDevice, Puck = QTabletEvent::Puck, Stylus = QTabletEvent::Stylus, Airbrush = QTabletEvent::Airbrush, FourDMouse = QTabletEvent::FourDMouse, XFreeEraser = QTabletEvent::XFreeEraser, RotationStylus = QTabletEvent::RotationStylus}; +public slots: +QTabletEvent* new_QTabletEvent(QEvent::Type t, const QPointF& pos, const QPointF& globalPos, int device, int pointerType, qreal pressure, int xTilt, int yTilt, qreal tangentialPressure, qreal rotation, int z, Qt::KeyboardModifiers keyState, qint64 uniqueID); +void delete_QTabletEvent(QTabletEvent* obj) { delete obj; } + QTabletEvent::TabletDevice device(QTabletEvent* theWrappedObject) const; + QPoint globalPos(QTabletEvent* theWrappedObject) const; + const QPointF* globalPosF(QTabletEvent* theWrappedObject) const; + int globalX(QTabletEvent* theWrappedObject) const; + int globalY(QTabletEvent* theWrappedObject) const; + qreal hiResGlobalX(QTabletEvent* theWrappedObject) const; + qreal hiResGlobalY(QTabletEvent* theWrappedObject) const; + QTabletEvent::PointerType pointerType(QTabletEvent* theWrappedObject) const; + QPoint pos(QTabletEvent* theWrappedObject) const; + const QPointF* posF(QTabletEvent* theWrappedObject) const; + qreal pressure(QTabletEvent* theWrappedObject) const; + qreal rotation(QTabletEvent* theWrappedObject) const; + qreal tangentialPressure(QTabletEvent* theWrappedObject) const; + qint64 uniqueId(QTabletEvent* theWrappedObject) const; + int x(QTabletEvent* theWrappedObject) const; + int xTilt(QTabletEvent* theWrappedObject) const; + int y(QTabletEvent* theWrappedObject) const; + int yTilt(QTabletEvent* theWrappedObject) const; + int z(QTabletEvent* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QTextBlock : public QObject +{ Q_OBJECT +public: +public slots: +QTextBlock* new_QTextBlock(); +QTextBlock* new_QTextBlock(const QTextBlock& o); +void delete_QTextBlock(QTextBlock* obj) { delete obj; } + QTextBlock::iterator begin(QTextBlock* theWrappedObject) const; + QTextBlockFormat blockFormat(QTextBlock* theWrappedObject) const; + int blockFormatIndex(QTextBlock* theWrappedObject) const; + int blockNumber(QTextBlock* theWrappedObject) const; + QTextCharFormat charFormat(QTextBlock* theWrappedObject) const; + int charFormatIndex(QTextBlock* theWrappedObject) const; + void clearLayout(QTextBlock* theWrappedObject); + bool contains(QTextBlock* theWrappedObject, int position) const; + const QTextDocument* document(QTextBlock* theWrappedObject) const; + QTextBlock::iterator end(QTextBlock* theWrappedObject) const; + int firstLineNumber(QTextBlock* theWrappedObject) const; + int fragmentIndex(QTextBlock* theWrappedObject) const; + bool isValid(QTextBlock* theWrappedObject) const; + bool isVisible(QTextBlock* theWrappedObject) const; + QTextLayout* layout(QTextBlock* theWrappedObject) const; + int length(QTextBlock* theWrappedObject) const; + int lineCount(QTextBlock* theWrappedObject) const; + QTextBlock next(QTextBlock* theWrappedObject) const; + bool __ne__(QTextBlock* theWrappedObject, const QTextBlock& o) const; + bool __lt__(QTextBlock* theWrappedObject, const QTextBlock& o) const; + bool __eq__(QTextBlock* theWrappedObject, const QTextBlock& o) const; + int position(QTextBlock* theWrappedObject) const; + QTextBlock previous(QTextBlock* theWrappedObject) const; + int revision(QTextBlock* theWrappedObject) const; + void setLineCount(QTextBlock* theWrappedObject, int count); + void setRevision(QTextBlock* theWrappedObject, int rev); + void setUserData(QTextBlock* theWrappedObject, QTextBlockUserData* data); + void setUserState(QTextBlock* theWrappedObject, int state); + void setVisible(QTextBlock* theWrappedObject, bool visible); + QString text(QTextBlock* theWrappedObject) const; + Qt::LayoutDirection textDirection(QTextBlock* theWrappedObject) const; + QTextList* textList(QTextBlock* theWrappedObject) const; + QTextBlockUserData* userData(QTextBlock* theWrappedObject) const; + int userState(QTextBlock* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QTextBlockFormat : public QTextBlockFormat +{ +public: + PythonQtShell_QTextBlockFormat():QTextBlockFormat(),_wrapper(NULL) {}; + PythonQtShell_QTextBlockFormat(const QTextFormat& fmt):QTextBlockFormat(fmt),_wrapper(NULL) {}; + + ~PythonQtShell_QTextBlockFormat(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTextBlockFormat : public QObject +{ Q_OBJECT +public: +Q_ENUMS(LineHeightTypes ) +enum LineHeightTypes{ + SingleHeight = QTextBlockFormat::SingleHeight, ProportionalHeight = QTextBlockFormat::ProportionalHeight, FixedHeight = QTextBlockFormat::FixedHeight, MinimumHeight = QTextBlockFormat::MinimumHeight, LineDistanceHeight = QTextBlockFormat::LineDistanceHeight}; +public slots: +QTextBlockFormat* new_QTextBlockFormat(); +QTextBlockFormat* new_QTextBlockFormat(const QTextBlockFormat& other) { +PythonQtShell_QTextBlockFormat* a = new PythonQtShell_QTextBlockFormat(); +*((QTextBlockFormat*)a) = other; +return a; } +void delete_QTextBlockFormat(QTextBlockFormat* obj) { delete obj; } + Qt::Alignment alignment(QTextBlockFormat* theWrappedObject) const; + qreal bottomMargin(QTextBlockFormat* theWrappedObject) const; + int indent(QTextBlockFormat* theWrappedObject) const; + bool isValid(QTextBlockFormat* theWrappedObject) const; + qreal leftMargin(QTextBlockFormat* theWrappedObject) const; + qreal lineHeight(QTextBlockFormat* theWrappedObject) const; + qreal lineHeight(QTextBlockFormat* theWrappedObject, qreal scriptLineHeight, qreal scaling) const; + int lineHeightType(QTextBlockFormat* theWrappedObject) const; + bool nonBreakableLines(QTextBlockFormat* theWrappedObject) const; + QTextFormat::PageBreakFlags pageBreakPolicy(QTextBlockFormat* theWrappedObject) const; + qreal rightMargin(QTextBlockFormat* theWrappedObject) const; + void setAlignment(QTextBlockFormat* theWrappedObject, Qt::Alignment alignment); + void setBottomMargin(QTextBlockFormat* theWrappedObject, qreal margin); + void setIndent(QTextBlockFormat* theWrappedObject, int indent); + void setLeftMargin(QTextBlockFormat* theWrappedObject, qreal margin); + void setLineHeight(QTextBlockFormat* theWrappedObject, qreal height, int heightType); + void setNonBreakableLines(QTextBlockFormat* theWrappedObject, bool b); + void setPageBreakPolicy(QTextBlockFormat* theWrappedObject, QTextFormat::PageBreakFlags flags); + void setRightMargin(QTextBlockFormat* theWrappedObject, qreal margin); + void setTabPositions(QTextBlockFormat* theWrappedObject, const QList& tabs); + void setTextIndent(QTextBlockFormat* theWrappedObject, qreal aindent); + void setTopMargin(QTextBlockFormat* theWrappedObject, qreal margin); + QList tabPositions(QTextBlockFormat* theWrappedObject) const; + qreal textIndent(QTextBlockFormat* theWrappedObject) const; + qreal topMargin(QTextBlockFormat* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QTextBlockGroup : public QTextBlockGroup +{ +public: + PythonQtShell_QTextBlockGroup(QTextDocument* doc):QTextBlockGroup(doc),_wrapper(NULL) {}; + + ~PythonQtShell_QTextBlockGroup(); + +virtual void blockFormatChanged(const QTextBlock& block); +virtual void blockInserted(const QTextBlock& block); +virtual void blockRemoved(const QTextBlock& block); +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QTextBlockGroup : public QTextBlockGroup +{ public: +inline void promoted_blockFormatChanged(const QTextBlock& block) { QTextBlockGroup::blockFormatChanged(block); } +inline void promoted_blockInserted(const QTextBlock& block) { QTextBlockGroup::blockInserted(block); } +inline void promoted_blockRemoved(const QTextBlock& block) { QTextBlockGroup::blockRemoved(block); } +}; + +class PythonQtWrapper_QTextBlockGroup : public QObject +{ Q_OBJECT +public: +public slots: + void blockFormatChanged(QTextBlockGroup* theWrappedObject, const QTextBlock& block); + void blockInserted(QTextBlockGroup* theWrappedObject, const QTextBlock& block); + void blockRemoved(QTextBlockGroup* theWrappedObject, const QTextBlock& block); +}; + + + + + +class PythonQtShell_QTextBlockUserData : public QTextBlockUserData +{ +public: + PythonQtShell_QTextBlockUserData():QTextBlockUserData(),_wrapper(NULL) {}; + + ~PythonQtShell_QTextBlockUserData(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTextBlockUserData : public QObject +{ Q_OBJECT +public: +public slots: +QTextBlockUserData* new_QTextBlockUserData(); +void delete_QTextBlockUserData(QTextBlockUserData* obj) { delete obj; } +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QTextBrowser : public QTextBrowser +{ +public: + PythonQtShell_QTextBrowser(QWidget* parent = 0):QTextBrowser(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QTextBrowser(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void backward(); +virtual bool canInsertFromMimeData(const QMimeData* source) const; +virtual void changeEvent(QEvent* e); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* e); +virtual QMimeData* createMimeDataFromSelection() const; +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void doSetTextCursor(const QTextCursor& cursor); +virtual void dragEnterEvent(QDragEnterEvent* e); +virtual void dragLeaveEvent(QDragLeaveEvent* e); +virtual void dragMoveEvent(QDragMoveEvent* e); +virtual void dropEvent(QDropEvent* e); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* e); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* ev); +virtual void forward(); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void home(); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery property) const; +virtual void insertFromMimeData(const QMimeData* source); +virtual void keyPressEvent(QKeyEvent* ev); +virtual void keyReleaseEvent(QKeyEvent* e); +virtual void leaveEvent(QEvent* arg__1); +virtual QVariant loadResource(int type, const QUrl& name); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* e); +virtual void mouseMoveEvent(QMouseEvent* ev); +virtual void mousePressEvent(QMouseEvent* ev); +virtual void mouseReleaseEvent(QMouseEvent* ev); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* e); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reload(); +virtual void resizeEvent(QResizeEvent* e); +virtual void scrollContentsBy(int dx, int dy); +virtual void setSource(const QUrl& name); +virtual void setupViewport(QWidget* viewport); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* e); +virtual bool viewportEvent(QEvent* arg__1); +virtual QSize viewportSizeHint() const; +virtual void wheelEvent(QWheelEvent* e); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QTextBrowser : public QTextBrowser +{ public: +inline void promoted_backward() { QTextBrowser::backward(); } +inline bool promoted_event(QEvent* e) { return QTextBrowser::event(e); } +inline bool promoted_focusNextPrevChild(bool next) { return QTextBrowser::focusNextPrevChild(next); } +inline void promoted_focusOutEvent(QFocusEvent* ev) { QTextBrowser::focusOutEvent(ev); } +inline void promoted_forward() { QTextBrowser::forward(); } +inline void promoted_home() { QTextBrowser::home(); } +inline void promoted_keyPressEvent(QKeyEvent* ev) { QTextBrowser::keyPressEvent(ev); } +inline QVariant promoted_loadResource(int type, const QUrl& name) { return QTextBrowser::loadResource(type, name); } +inline void promoted_mouseMoveEvent(QMouseEvent* ev) { QTextBrowser::mouseMoveEvent(ev); } +inline void promoted_mousePressEvent(QMouseEvent* ev) { QTextBrowser::mousePressEvent(ev); } +inline void promoted_mouseReleaseEvent(QMouseEvent* ev) { QTextBrowser::mouseReleaseEvent(ev); } +inline void promoted_paintEvent(QPaintEvent* e) { QTextBrowser::paintEvent(e); } +inline void promoted_reload() { QTextBrowser::reload(); } +inline void promoted_setSource(const QUrl& name) { QTextBrowser::setSource(name); } +}; + +class PythonQtWrapper_QTextBrowser : public QObject +{ Q_OBJECT +public: +public slots: +QTextBrowser* new_QTextBrowser(QWidget* parent = 0); +void delete_QTextBrowser(QTextBrowser* obj) { delete obj; } + void backward(QTextBrowser* theWrappedObject); + int backwardHistoryCount(QTextBrowser* theWrappedObject) const; + void clearHistory(QTextBrowser* theWrappedObject); + bool event(QTextBrowser* theWrappedObject, QEvent* e); + bool focusNextPrevChild(QTextBrowser* theWrappedObject, bool next); + void focusOutEvent(QTextBrowser* theWrappedObject, QFocusEvent* ev); + void forward(QTextBrowser* theWrappedObject); + int forwardHistoryCount(QTextBrowser* theWrappedObject) const; + QString historyTitle(QTextBrowser* theWrappedObject, int arg__1) const; + QUrl historyUrl(QTextBrowser* theWrappedObject, int arg__1) const; + void home(QTextBrowser* theWrappedObject); + bool isBackwardAvailable(QTextBrowser* theWrappedObject) const; + bool isForwardAvailable(QTextBrowser* theWrappedObject) const; + void keyPressEvent(QTextBrowser* theWrappedObject, QKeyEvent* ev); + QVariant loadResource(QTextBrowser* theWrappedObject, int type, const QUrl& name); + void mouseMoveEvent(QTextBrowser* theWrappedObject, QMouseEvent* ev); + void mousePressEvent(QTextBrowser* theWrappedObject, QMouseEvent* ev); + void mouseReleaseEvent(QTextBrowser* theWrappedObject, QMouseEvent* ev); + bool openExternalLinks(QTextBrowser* theWrappedObject) const; + bool openLinks(QTextBrowser* theWrappedObject) const; + void paintEvent(QTextBrowser* theWrappedObject, QPaintEvent* e); + void reload(QTextBrowser* theWrappedObject); + QStringList searchPaths(QTextBrowser* theWrappedObject) const; + void setOpenExternalLinks(QTextBrowser* theWrappedObject, bool open); + void setOpenLinks(QTextBrowser* theWrappedObject, bool open); + void setSearchPaths(QTextBrowser* theWrappedObject, const QStringList& paths); + void setSource(QTextBrowser* theWrappedObject, const QUrl& name); + QUrl source(QTextBrowser* theWrappedObject) const; +}; + +#endif + + + +class PythonQtShell_QTextCharFormat : public QTextCharFormat +{ +public: + PythonQtShell_QTextCharFormat():QTextCharFormat(),_wrapper(NULL) {}; + PythonQtShell_QTextCharFormat(const QTextFormat& fmt):QTextCharFormat(fmt),_wrapper(NULL) {}; + + ~PythonQtShell_QTextCharFormat(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTextCharFormat : public QObject +{ Q_OBJECT +public: +Q_ENUMS(UnderlineStyle VerticalAlignment ) +enum UnderlineStyle{ + NoUnderline = QTextCharFormat::NoUnderline, SingleUnderline = QTextCharFormat::SingleUnderline, DashUnderline = QTextCharFormat::DashUnderline, DotLine = QTextCharFormat::DotLine, DashDotLine = QTextCharFormat::DashDotLine, DashDotDotLine = QTextCharFormat::DashDotDotLine, WaveUnderline = QTextCharFormat::WaveUnderline, SpellCheckUnderline = QTextCharFormat::SpellCheckUnderline}; +enum VerticalAlignment{ + AlignNormal = QTextCharFormat::AlignNormal, AlignSuperScript = QTextCharFormat::AlignSuperScript, AlignSubScript = QTextCharFormat::AlignSubScript, AlignMiddle = QTextCharFormat::AlignMiddle, AlignTop = QTextCharFormat::AlignTop, AlignBottom = QTextCharFormat::AlignBottom, AlignBaseline = QTextCharFormat::AlignBaseline}; +public slots: +QTextCharFormat* new_QTextCharFormat(); +QTextCharFormat* new_QTextCharFormat(const QTextCharFormat& other) { +PythonQtShell_QTextCharFormat* a = new PythonQtShell_QTextCharFormat(); +*((QTextCharFormat*)a) = other; +return a; } +void delete_QTextCharFormat(QTextCharFormat* obj) { delete obj; } + QString anchorHref(QTextCharFormat* theWrappedObject) const; + QStringList anchorNames(QTextCharFormat* theWrappedObject) const; + QFont font(QTextCharFormat* theWrappedObject) const; + QFont::Capitalization fontCapitalization(QTextCharFormat* theWrappedObject) const; + QString fontFamily(QTextCharFormat* theWrappedObject) const; + bool fontFixedPitch(QTextCharFormat* theWrappedObject) const; + bool fontItalic(QTextCharFormat* theWrappedObject) const; + bool fontKerning(QTextCharFormat* theWrappedObject) const; + qreal fontLetterSpacing(QTextCharFormat* theWrappedObject) const; + QFont::SpacingType fontLetterSpacingType(QTextCharFormat* theWrappedObject) const; + bool fontOverline(QTextCharFormat* theWrappedObject) const; + qreal fontPointSize(QTextCharFormat* theWrappedObject) const; + int fontStretch(QTextCharFormat* theWrappedObject) const; + bool fontStrikeOut(QTextCharFormat* theWrappedObject) const; + QFont::StyleHint fontStyleHint(QTextCharFormat* theWrappedObject) const; + QFont::StyleStrategy fontStyleStrategy(QTextCharFormat* theWrappedObject) const; + bool fontUnderline(QTextCharFormat* theWrappedObject) const; + int fontWeight(QTextCharFormat* theWrappedObject) const; + qreal fontWordSpacing(QTextCharFormat* theWrappedObject) const; + bool isAnchor(QTextCharFormat* theWrappedObject) const; + bool isValid(QTextCharFormat* theWrappedObject) const; + void setAnchor(QTextCharFormat* theWrappedObject, bool anchor); + void setAnchorHref(QTextCharFormat* theWrappedObject, const QString& value); + void setAnchorNames(QTextCharFormat* theWrappedObject, const QStringList& names); + void setFont(QTextCharFormat* theWrappedObject, const QFont& font); + void setFontCapitalization(QTextCharFormat* theWrappedObject, QFont::Capitalization capitalization); + void setFontFamily(QTextCharFormat* theWrappedObject, const QString& family); + void setFontFixedPitch(QTextCharFormat* theWrappedObject, bool fixedPitch); + void setFontItalic(QTextCharFormat* theWrappedObject, bool italic); + void setFontKerning(QTextCharFormat* theWrappedObject, bool enable); + void setFontLetterSpacing(QTextCharFormat* theWrappedObject, qreal spacing); + void setFontLetterSpacingType(QTextCharFormat* theWrappedObject, QFont::SpacingType letterSpacingType); + void setFontOverline(QTextCharFormat* theWrappedObject, bool overline); + void setFontPointSize(QTextCharFormat* theWrappedObject, qreal size); + void setFontStretch(QTextCharFormat* theWrappedObject, int factor); + void setFontStrikeOut(QTextCharFormat* theWrappedObject, bool strikeOut); + void setFontStyleHint(QTextCharFormat* theWrappedObject, QFont::StyleHint hint, QFont::StyleStrategy strategy = QFont::PreferDefault); + void setFontStyleStrategy(QTextCharFormat* theWrappedObject, QFont::StyleStrategy strategy); + void setFontUnderline(QTextCharFormat* theWrappedObject, bool underline); + void setFontWeight(QTextCharFormat* theWrappedObject, int weight); + void setFontWordSpacing(QTextCharFormat* theWrappedObject, qreal spacing); + void setTableCellColumnSpan(QTextCharFormat* theWrappedObject, int tableCellColumnSpan); + void setTableCellRowSpan(QTextCharFormat* theWrappedObject, int tableCellRowSpan); + void setTextOutline(QTextCharFormat* theWrappedObject, const QPen& pen); + void setToolTip(QTextCharFormat* theWrappedObject, const QString& tip); + void setUnderlineColor(QTextCharFormat* theWrappedObject, const QColor& color); + void setUnderlineStyle(QTextCharFormat* theWrappedObject, QTextCharFormat::UnderlineStyle style); + void setVerticalAlignment(QTextCharFormat* theWrappedObject, QTextCharFormat::VerticalAlignment alignment); + int tableCellColumnSpan(QTextCharFormat* theWrappedObject) const; + int tableCellRowSpan(QTextCharFormat* theWrappedObject) const; + QPen textOutline(QTextCharFormat* theWrappedObject) const; + QString toolTip(QTextCharFormat* theWrappedObject) const; + QColor underlineColor(QTextCharFormat* theWrappedObject) const; + QTextCharFormat::UnderlineStyle underlineStyle(QTextCharFormat* theWrappedObject) const; + QTextCharFormat::VerticalAlignment verticalAlignment(QTextCharFormat* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QTextCursor : public QObject +{ Q_OBJECT +public: +Q_ENUMS(MoveMode MoveOperation SelectionType ) +enum MoveMode{ + MoveAnchor = QTextCursor::MoveAnchor, KeepAnchor = QTextCursor::KeepAnchor}; +enum MoveOperation{ + NoMove = QTextCursor::NoMove, Start = QTextCursor::Start, Up = QTextCursor::Up, StartOfLine = QTextCursor::StartOfLine, StartOfBlock = QTextCursor::StartOfBlock, StartOfWord = QTextCursor::StartOfWord, PreviousBlock = QTextCursor::PreviousBlock, PreviousCharacter = QTextCursor::PreviousCharacter, PreviousWord = QTextCursor::PreviousWord, Left = QTextCursor::Left, WordLeft = QTextCursor::WordLeft, End = QTextCursor::End, Down = QTextCursor::Down, EndOfLine = QTextCursor::EndOfLine, EndOfWord = QTextCursor::EndOfWord, EndOfBlock = QTextCursor::EndOfBlock, NextBlock = QTextCursor::NextBlock, NextCharacter = QTextCursor::NextCharacter, NextWord = QTextCursor::NextWord, Right = QTextCursor::Right, WordRight = QTextCursor::WordRight, NextCell = QTextCursor::NextCell, PreviousCell = QTextCursor::PreviousCell, NextRow = QTextCursor::NextRow, PreviousRow = QTextCursor::PreviousRow}; +enum SelectionType{ + WordUnderCursor = QTextCursor::WordUnderCursor, LineUnderCursor = QTextCursor::LineUnderCursor, BlockUnderCursor = QTextCursor::BlockUnderCursor, Document = QTextCursor::Document}; +public slots: +QTextCursor* new_QTextCursor(); +QTextCursor* new_QTextCursor(QTextDocument* document); +QTextCursor* new_QTextCursor(QTextFrame* frame); +QTextCursor* new_QTextCursor(const QTextBlock& block); +QTextCursor* new_QTextCursor(const QTextCursor& cursor); +void delete_QTextCursor(QTextCursor* obj) { delete obj; } + int anchor(QTextCursor* theWrappedObject) const; + bool atBlockEnd(QTextCursor* theWrappedObject) const; + bool atBlockStart(QTextCursor* theWrappedObject) const; + bool atEnd(QTextCursor* theWrappedObject) const; + bool atStart(QTextCursor* theWrappedObject) const; + void beginEditBlock(QTextCursor* theWrappedObject); + QTextBlock block(QTextCursor* theWrappedObject) const; + QTextCharFormat blockCharFormat(QTextCursor* theWrappedObject) const; + QTextBlockFormat blockFormat(QTextCursor* theWrappedObject) const; + int blockNumber(QTextCursor* theWrappedObject) const; + QTextCharFormat charFormat(QTextCursor* theWrappedObject) const; + void clearSelection(QTextCursor* theWrappedObject); + int columnNumber(QTextCursor* theWrappedObject) const; + QTextList* createList(QTextCursor* theWrappedObject, QTextListFormat::Style style); + QTextList* createList(QTextCursor* theWrappedObject, const QTextListFormat& format); + QTextFrame* currentFrame(QTextCursor* theWrappedObject) const; + QTextList* currentList(QTextCursor* theWrappedObject) const; + QTextTable* currentTable(QTextCursor* theWrappedObject) const; + void deleteChar(QTextCursor* theWrappedObject); + void deletePreviousChar(QTextCursor* theWrappedObject); + QTextDocument* document(QTextCursor* theWrappedObject) const; + void endEditBlock(QTextCursor* theWrappedObject); + bool hasComplexSelection(QTextCursor* theWrappedObject) const; + bool hasSelection(QTextCursor* theWrappedObject) const; + void insertBlock(QTextCursor* theWrappedObject); + void insertBlock(QTextCursor* theWrappedObject, const QTextBlockFormat& format); + void insertBlock(QTextCursor* theWrappedObject, const QTextBlockFormat& format, const QTextCharFormat& charFormat); + void insertFragment(QTextCursor* theWrappedObject, const QTextDocumentFragment& fragment); + QTextFrame* insertFrame(QTextCursor* theWrappedObject, const QTextFrameFormat& format); + void insertHtml(QTextCursor* theWrappedObject, const QString& html); + void insertImage(QTextCursor* theWrappedObject, const QImage& image, const QString& name = QString()); + void insertImage(QTextCursor* theWrappedObject, const QString& name); + void insertImage(QTextCursor* theWrappedObject, const QTextImageFormat& format); + void insertImage(QTextCursor* theWrappedObject, const QTextImageFormat& format, QTextFrameFormat::Position alignment); + QTextList* insertList(QTextCursor* theWrappedObject, QTextListFormat::Style style); + QTextList* insertList(QTextCursor* theWrappedObject, const QTextListFormat& format); + QTextTable* insertTable(QTextCursor* theWrappedObject, int rows, int cols); + QTextTable* insertTable(QTextCursor* theWrappedObject, int rows, int cols, const QTextTableFormat& format); + void insertText(QTextCursor* theWrappedObject, const QString& text); + void insertText(QTextCursor* theWrappedObject, const QString& text, const QTextCharFormat& format); + bool isCopyOf(QTextCursor* theWrappedObject, const QTextCursor& other) const; + bool isNull(QTextCursor* theWrappedObject) const; + void joinPreviousEditBlock(QTextCursor* theWrappedObject); + bool keepPositionOnInsert(QTextCursor* theWrappedObject) const; + void mergeBlockCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& modifier); + void mergeBlockFormat(QTextCursor* theWrappedObject, const QTextBlockFormat& modifier); + void mergeCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& modifier); + bool movePosition(QTextCursor* theWrappedObject, QTextCursor::MoveOperation op, QTextCursor::MoveMode arg__2 = QTextCursor::MoveAnchor, int n = 1); + bool __ne__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const; + bool __lt__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const; + bool __le__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const; + bool __eq__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const; + bool __gt__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const; + bool __ge__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const; + int position(QTextCursor* theWrappedObject) const; + int positionInBlock(QTextCursor* theWrappedObject) const; + void removeSelectedText(QTextCursor* theWrappedObject); + void select(QTextCursor* theWrappedObject, QTextCursor::SelectionType selection); + void selectedTableCells(QTextCursor* theWrappedObject, int* firstRow, int* numRows, int* firstColumn, int* numColumns) const; + QString selectedText(QTextCursor* theWrappedObject) const; + QTextDocumentFragment selection(QTextCursor* theWrappedObject) const; + int selectionEnd(QTextCursor* theWrappedObject) const; + int selectionStart(QTextCursor* theWrappedObject) const; + void setBlockCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& format); + void setBlockFormat(QTextCursor* theWrappedObject, const QTextBlockFormat& format); + void setCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& format); + void setKeepPositionOnInsert(QTextCursor* theWrappedObject, bool b); + void setPosition(QTextCursor* theWrappedObject, int pos, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor); + void setVerticalMovementX(QTextCursor* theWrappedObject, int x); + void setVisualNavigation(QTextCursor* theWrappedObject, bool b); + void swap(QTextCursor* theWrappedObject, QTextCursor& other); + int verticalMovementX(QTextCursor* theWrappedObject) const; + bool visualNavigation(QTextCursor* theWrappedObject) const; + bool __nonzero__(QTextCursor* obj) { return !obj->isNull(); } +}; + + diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui8.cpp b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui8.cpp new file mode 100644 index 00000000..1a3335b1 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui8.cpp @@ -0,0 +1,10596 @@ +#include "com_trolltech_qt_gui8.h" + +#include +#include +#include + +PythonQtShell_QTextDocument::~PythonQtShell_QTextDocument() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTextDocument::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextDocument::childEvent(arg__1); +} +void PythonQtShell_QTextDocument::clear() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextDocument::clear(); +} +QTextObject* PythonQtShell_QTextDocument::createObject(const QTextFormat& f) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createObject"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QTextObject*" , "const QTextFormat&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QTextObject* returnValue; + void* args[2] = {NULL, (void*)&f}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createObject", methodInfo, result); + } else { + returnValue = *((QTextObject**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextDocument::createObject(f); +} +void PythonQtShell_QTextDocument::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextDocument::customEvent(arg__1); +} +bool PythonQtShell_QTextDocument::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextDocument::event(arg__1); +} +bool PythonQtShell_QTextDocument::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextDocument::eventFilter(arg__1, arg__2); +} +QVariant PythonQtShell_QTextDocument::loadResource(int type, const QUrl& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "loadResource"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "int" , "const QUrl&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&type, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("loadResource", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextDocument::loadResource(type, name); +} +void PythonQtShell_QTextDocument::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextDocument::timerEvent(arg__1); +} +QTextDocument* PythonQtWrapper_QTextDocument::new_QTextDocument(QObject* parent) +{ +return new PythonQtShell_QTextDocument(parent); } + +QTextDocument* PythonQtWrapper_QTextDocument::new_QTextDocument(const QString& text, QObject* parent) +{ +return new PythonQtShell_QTextDocument(text, parent); } + +void PythonQtWrapper_QTextDocument::addResource(QTextDocument* theWrappedObject, int type, const QUrl& name, const QVariant& resource) +{ + ( theWrappedObject->addResource(type, name, resource)); +} + +void PythonQtWrapper_QTextDocument::adjustSize(QTextDocument* theWrappedObject) +{ + ( theWrappedObject->adjustSize()); +} + +QVector PythonQtWrapper_QTextDocument::allFormats(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->allFormats()); +} + +int PythonQtWrapper_QTextDocument::availableRedoSteps(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->availableRedoSteps()); +} + +int PythonQtWrapper_QTextDocument::availableUndoSteps(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->availableUndoSteps()); +} + +QTextBlock PythonQtWrapper_QTextDocument::begin(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->begin()); +} + +int PythonQtWrapper_QTextDocument::blockCount(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->blockCount()); +} + +QChar PythonQtWrapper_QTextDocument::characterAt(QTextDocument* theWrappedObject, int pos) const +{ + return ( theWrappedObject->characterAt(pos)); +} + +int PythonQtWrapper_QTextDocument::characterCount(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->characterCount()); +} + +void PythonQtWrapper_QTextDocument::clear(QTextDocument* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QTextDocument*)theWrappedObject)->promoted_clear()); +} + +void PythonQtWrapper_QTextDocument::clearUndoRedoStacks(QTextDocument* theWrappedObject, QTextDocument::Stacks historyToClear) +{ + ( theWrappedObject->clearUndoRedoStacks(historyToClear)); +} + +QTextDocument* PythonQtWrapper_QTextDocument::clone(QTextDocument* theWrappedObject, QObject* parent) const +{ + return ( theWrappedObject->clone(parent)); +} + +QTextObject* PythonQtWrapper_QTextDocument::createObject(QTextDocument* theWrappedObject, const QTextFormat& f) +{ + return ( ((PythonQtPublicPromoter_QTextDocument*)theWrappedObject)->promoted_createObject(f)); +} + +Qt::CursorMoveStyle PythonQtWrapper_QTextDocument::defaultCursorMoveStyle(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->defaultCursorMoveStyle()); +} + +QFont PythonQtWrapper_QTextDocument::defaultFont(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->defaultFont()); +} + +QString PythonQtWrapper_QTextDocument::defaultStyleSheet(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->defaultStyleSheet()); +} + +QTextOption PythonQtWrapper_QTextDocument::defaultTextOption(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->defaultTextOption()); +} + +QAbstractTextDocumentLayout* PythonQtWrapper_QTextDocument::documentLayout(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->documentLayout()); +} + +qreal PythonQtWrapper_QTextDocument::documentMargin(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->documentMargin()); +} + +void PythonQtWrapper_QTextDocument::drawContents(QTextDocument* theWrappedObject, QPainter* painter, const QRectF& rect) +{ + ( theWrappedObject->drawContents(painter, rect)); +} + +QTextBlock PythonQtWrapper_QTextDocument::end(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->end()); +} + +QTextCursor PythonQtWrapper_QTextDocument::find(QTextDocument* theWrappedObject, const QRegExp& expr, const QTextCursor& from, QTextDocument::FindFlags options) const +{ + return ( theWrappedObject->find(expr, from, options)); +} + +QTextCursor PythonQtWrapper_QTextDocument::find(QTextDocument* theWrappedObject, const QRegExp& expr, int from, QTextDocument::FindFlags options) const +{ + return ( theWrappedObject->find(expr, from, options)); +} + +QTextCursor PythonQtWrapper_QTextDocument::find(QTextDocument* theWrappedObject, const QString& subString, const QTextCursor& from, QTextDocument::FindFlags options) const +{ + return ( theWrappedObject->find(subString, from, options)); +} + +QTextCursor PythonQtWrapper_QTextDocument::find(QTextDocument* theWrappedObject, const QString& subString, int from, QTextDocument::FindFlags options) const +{ + return ( theWrappedObject->find(subString, from, options)); +} + +QTextBlock PythonQtWrapper_QTextDocument::findBlock(QTextDocument* theWrappedObject, int pos) const +{ + return ( theWrappedObject->findBlock(pos)); +} + +QTextBlock PythonQtWrapper_QTextDocument::findBlockByLineNumber(QTextDocument* theWrappedObject, int blockNumber) const +{ + return ( theWrappedObject->findBlockByLineNumber(blockNumber)); +} + +QTextBlock PythonQtWrapper_QTextDocument::findBlockByNumber(QTextDocument* theWrappedObject, int blockNumber) const +{ + return ( theWrappedObject->findBlockByNumber(blockNumber)); +} + +QTextBlock PythonQtWrapper_QTextDocument::firstBlock(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->firstBlock()); +} + +QTextFrame* PythonQtWrapper_QTextDocument::frameAt(QTextDocument* theWrappedObject, int pos) const +{ + return ( theWrappedObject->frameAt(pos)); +} + +qreal PythonQtWrapper_QTextDocument::idealWidth(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->idealWidth()); +} + +qreal PythonQtWrapper_QTextDocument::indentWidth(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->indentWidth()); +} + +bool PythonQtWrapper_QTextDocument::isEmpty(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +bool PythonQtWrapper_QTextDocument::isModified(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->isModified()); +} + +bool PythonQtWrapper_QTextDocument::isRedoAvailable(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->isRedoAvailable()); +} + +bool PythonQtWrapper_QTextDocument::isUndoAvailable(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->isUndoAvailable()); +} + +bool PythonQtWrapper_QTextDocument::isUndoRedoEnabled(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->isUndoRedoEnabled()); +} + +QTextBlock PythonQtWrapper_QTextDocument::lastBlock(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->lastBlock()); +} + +int PythonQtWrapper_QTextDocument::lineCount(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->lineCount()); +} + +QVariant PythonQtWrapper_QTextDocument::loadResource(QTextDocument* theWrappedObject, int type, const QUrl& name) +{ + return ( ((PythonQtPublicPromoter_QTextDocument*)theWrappedObject)->promoted_loadResource(type, name)); +} + +void PythonQtWrapper_QTextDocument::markContentsDirty(QTextDocument* theWrappedObject, int from, int length) +{ + ( theWrappedObject->markContentsDirty(from, length)); +} + +int PythonQtWrapper_QTextDocument::maximumBlockCount(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->maximumBlockCount()); +} + +QString PythonQtWrapper_QTextDocument::metaInformation(QTextDocument* theWrappedObject, QTextDocument::MetaInformation info) const +{ + return ( theWrappedObject->metaInformation(info)); +} + +QTextObject* PythonQtWrapper_QTextDocument::object(QTextDocument* theWrappedObject, int objectIndex) const +{ + return ( theWrappedObject->object(objectIndex)); +} + +QTextObject* PythonQtWrapper_QTextDocument::objectForFormat(QTextDocument* theWrappedObject, const QTextFormat& arg__1) const +{ + return ( theWrappedObject->objectForFormat(arg__1)); +} + +int PythonQtWrapper_QTextDocument::pageCount(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->pageCount()); +} + +QSizeF PythonQtWrapper_QTextDocument::pageSize(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->pageSize()); +} + +void PythonQtWrapper_QTextDocument::redo(QTextDocument* theWrappedObject, QTextCursor* cursor) +{ + ( theWrappedObject->redo(cursor)); +} + +QVariant PythonQtWrapper_QTextDocument::resource(QTextDocument* theWrappedObject, int type, const QUrl& name) const +{ + return ( theWrappedObject->resource(type, name)); +} + +int PythonQtWrapper_QTextDocument::revision(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->revision()); +} + +QTextFrame* PythonQtWrapper_QTextDocument::rootFrame(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->rootFrame()); +} + +void PythonQtWrapper_QTextDocument::setDefaultCursorMoveStyle(QTextDocument* theWrappedObject, Qt::CursorMoveStyle style) +{ + ( theWrappedObject->setDefaultCursorMoveStyle(style)); +} + +void PythonQtWrapper_QTextDocument::setDefaultFont(QTextDocument* theWrappedObject, const QFont& font) +{ + ( theWrappedObject->setDefaultFont(font)); +} + +void PythonQtWrapper_QTextDocument::setDefaultStyleSheet(QTextDocument* theWrappedObject, const QString& sheet) +{ + ( theWrappedObject->setDefaultStyleSheet(sheet)); +} + +void PythonQtWrapper_QTextDocument::setDefaultTextOption(QTextDocument* theWrappedObject, const QTextOption& option) +{ + ( theWrappedObject->setDefaultTextOption(option)); +} + +void PythonQtWrapper_QTextDocument::setDocumentLayout(QTextDocument* theWrappedObject, QAbstractTextDocumentLayout* layout) +{ + ( theWrappedObject->setDocumentLayout(layout)); +} + +void PythonQtWrapper_QTextDocument::setDocumentMargin(QTextDocument* theWrappedObject, qreal margin) +{ + ( theWrappedObject->setDocumentMargin(margin)); +} + +void PythonQtWrapper_QTextDocument::setHtml(QTextDocument* theWrappedObject, const QString& html) +{ + ( theWrappedObject->setHtml(html)); +} + +void PythonQtWrapper_QTextDocument::setIndentWidth(QTextDocument* theWrappedObject, qreal width) +{ + ( theWrappedObject->setIndentWidth(width)); +} + +void PythonQtWrapper_QTextDocument::setMaximumBlockCount(QTextDocument* theWrappedObject, int maximum) +{ + ( theWrappedObject->setMaximumBlockCount(maximum)); +} + +void PythonQtWrapper_QTextDocument::setMetaInformation(QTextDocument* theWrappedObject, QTextDocument::MetaInformation info, const QString& arg__2) +{ + ( theWrappedObject->setMetaInformation(info, arg__2)); +} + +void PythonQtWrapper_QTextDocument::setPageSize(QTextDocument* theWrappedObject, const QSizeF& size) +{ + ( theWrappedObject->setPageSize(size)); +} + +void PythonQtWrapper_QTextDocument::setPlainText(QTextDocument* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setPlainText(text)); +} + +void PythonQtWrapper_QTextDocument::setTextWidth(QTextDocument* theWrappedObject, qreal width) +{ + ( theWrappedObject->setTextWidth(width)); +} + +void PythonQtWrapper_QTextDocument::setUndoRedoEnabled(QTextDocument* theWrappedObject, bool enable) +{ + ( theWrappedObject->setUndoRedoEnabled(enable)); +} + +void PythonQtWrapper_QTextDocument::setUseDesignMetrics(QTextDocument* theWrappedObject, bool b) +{ + ( theWrappedObject->setUseDesignMetrics(b)); +} + +QSizeF PythonQtWrapper_QTextDocument::size(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +qreal PythonQtWrapper_QTextDocument::textWidth(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->textWidth()); +} + +QString PythonQtWrapper_QTextDocument::toHtml(QTextDocument* theWrappedObject, const QByteArray& encoding) const +{ + return ( theWrappedObject->toHtml(encoding)); +} + +QString PythonQtWrapper_QTextDocument::toPlainText(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->toPlainText()); +} + +void PythonQtWrapper_QTextDocument::undo(QTextDocument* theWrappedObject, QTextCursor* cursor) +{ + ( theWrappedObject->undo(cursor)); +} + +bool PythonQtWrapper_QTextDocument::useDesignMetrics(QTextDocument* theWrappedObject) const +{ + return ( theWrappedObject->useDesignMetrics()); +} + + + +QTextDocumentFragment* PythonQtWrapper_QTextDocumentFragment::new_QTextDocumentFragment() +{ +return new QTextDocumentFragment(); } + +QTextDocumentFragment* PythonQtWrapper_QTextDocumentFragment::new_QTextDocumentFragment(const QTextCursor& range) +{ +return new QTextDocumentFragment(range); } + +QTextDocumentFragment* PythonQtWrapper_QTextDocumentFragment::new_QTextDocumentFragment(const QTextDocument* document) +{ +return new QTextDocumentFragment(document); } + +QTextDocumentFragment* PythonQtWrapper_QTextDocumentFragment::new_QTextDocumentFragment(const QTextDocumentFragment& rhs) +{ +return new QTextDocumentFragment(rhs); } + +QTextDocumentFragment PythonQtWrapper_QTextDocumentFragment::static_QTextDocumentFragment_fromHtml(const QString& html) +{ + return (QTextDocumentFragment::fromHtml(html)); +} + +QTextDocumentFragment PythonQtWrapper_QTextDocumentFragment::static_QTextDocumentFragment_fromHtml(const QString& html, const QTextDocument* resourceProvider) +{ + return (QTextDocumentFragment::fromHtml(html, resourceProvider)); +} + +QTextDocumentFragment PythonQtWrapper_QTextDocumentFragment::static_QTextDocumentFragment_fromPlainText(const QString& plainText) +{ + return (QTextDocumentFragment::fromPlainText(plainText)); +} + +bool PythonQtWrapper_QTextDocumentFragment::isEmpty(QTextDocumentFragment* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +QString PythonQtWrapper_QTextDocumentFragment::toHtml(QTextDocumentFragment* theWrappedObject, const QByteArray& encoding) const +{ + return ( theWrappedObject->toHtml(encoding)); +} + +QString PythonQtWrapper_QTextDocumentFragment::toPlainText(QTextDocumentFragment* theWrappedObject) const +{ + return ( theWrappedObject->toPlainText()); +} + + + +QTextDocumentWriter* PythonQtWrapper_QTextDocumentWriter::new_QTextDocumentWriter() +{ +return new QTextDocumentWriter(); } + +QTextDocumentWriter* PythonQtWrapper_QTextDocumentWriter::new_QTextDocumentWriter(QIODevice* device, const QByteArray& format) +{ +return new QTextDocumentWriter(device, format); } + +QTextDocumentWriter* PythonQtWrapper_QTextDocumentWriter::new_QTextDocumentWriter(const QString& fileName, const QByteArray& format) +{ +return new QTextDocumentWriter(fileName, format); } + +QTextCodec* PythonQtWrapper_QTextDocumentWriter::codec(QTextDocumentWriter* theWrappedObject) const +{ + return ( theWrappedObject->codec()); +} + +QIODevice* PythonQtWrapper_QTextDocumentWriter::device(QTextDocumentWriter* theWrappedObject) const +{ + return ( theWrappedObject->device()); +} + +QString PythonQtWrapper_QTextDocumentWriter::fileName(QTextDocumentWriter* theWrappedObject) const +{ + return ( theWrappedObject->fileName()); +} + +QByteArray PythonQtWrapper_QTextDocumentWriter::format(QTextDocumentWriter* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +void PythonQtWrapper_QTextDocumentWriter::setCodec(QTextDocumentWriter* theWrappedObject, QTextCodec* codec) +{ + ( theWrappedObject->setCodec(codec)); +} + +void PythonQtWrapper_QTextDocumentWriter::setDevice(QTextDocumentWriter* theWrappedObject, QIODevice* device) +{ + ( theWrappedObject->setDevice(device)); +} + +void PythonQtWrapper_QTextDocumentWriter::setFileName(QTextDocumentWriter* theWrappedObject, const QString& fileName) +{ + ( theWrappedObject->setFileName(fileName)); +} + +void PythonQtWrapper_QTextDocumentWriter::setFormat(QTextDocumentWriter* theWrappedObject, const QByteArray& format) +{ + ( theWrappedObject->setFormat(format)); +} + +QList PythonQtWrapper_QTextDocumentWriter::static_QTextDocumentWriter_supportedDocumentFormats() +{ + return (QTextDocumentWriter::supportedDocumentFormats()); +} + +bool PythonQtWrapper_QTextDocumentWriter::write(QTextDocumentWriter* theWrappedObject, const QTextDocument* document) +{ + return ( theWrappedObject->write(document)); +} + +bool PythonQtWrapper_QTextDocumentWriter::write(QTextDocumentWriter* theWrappedObject, const QTextDocumentFragment& fragment) +{ + return ( theWrappedObject->write(fragment)); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QTextEdit::~PythonQtShell_QTextEdit() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTextEdit::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::actionEvent(arg__1); +} +bool PythonQtShell_QTextEdit::canInsertFromMimeData(const QMimeData* source) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canInsertFromMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&source}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canInsertFromMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextEdit::canInsertFromMimeData(source); +} +void PythonQtShell_QTextEdit::changeEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::changeEvent(e); +} +void PythonQtShell_QTextEdit::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::childEvent(arg__1); +} +void PythonQtShell_QTextEdit::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::closeEvent(arg__1); +} +void PythonQtShell_QTextEdit::contextMenuEvent(QContextMenuEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::contextMenuEvent(e); +} +QMimeData* PythonQtShell_QTextEdit::createMimeDataFromSelection() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createMimeDataFromSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMimeData*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QMimeData* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createMimeDataFromSelection", methodInfo, result); + } else { + returnValue = *((QMimeData**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextEdit::createMimeDataFromSelection(); +} +void PythonQtShell_QTextEdit::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::customEvent(arg__1); +} +int PythonQtShell_QTextEdit::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextEdit::devType(); +} +void PythonQtShell_QTextEdit::doSetTextCursor(const QTextCursor& cursor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doSetTextCursor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QTextCursor&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&cursor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::doSetTextCursor(cursor); +} +void PythonQtShell_QTextEdit::dragEnterEvent(QDragEnterEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::dragEnterEvent(e); +} +void PythonQtShell_QTextEdit::dragLeaveEvent(QDragLeaveEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::dragLeaveEvent(e); +} +void PythonQtShell_QTextEdit::dragMoveEvent(QDragMoveEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::dragMoveEvent(e); +} +void PythonQtShell_QTextEdit::dropEvent(QDropEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::dropEvent(e); +} +void PythonQtShell_QTextEdit::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::enterEvent(arg__1); +} +bool PythonQtShell_QTextEdit::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextEdit::event(e); +} +bool PythonQtShell_QTextEdit::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextEdit::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QTextEdit::focusInEvent(QFocusEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::focusInEvent(e); +} +bool PythonQtShell_QTextEdit::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextEdit::focusNextPrevChild(next); +} +void PythonQtShell_QTextEdit::focusOutEvent(QFocusEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::focusOutEvent(e); +} +bool PythonQtShell_QTextEdit::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextEdit::hasHeightForWidth(); +} +int PythonQtShell_QTextEdit::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextEdit::heightForWidth(arg__1); +} +void PythonQtShell_QTextEdit::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::hideEvent(arg__1); +} +void PythonQtShell_QTextEdit::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::initPainter(painter); +} +void PythonQtShell_QTextEdit::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QTextEdit::inputMethodQuery(Qt::InputMethodQuery property) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&property}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextEdit::inputMethodQuery(property); +} +void PythonQtShell_QTextEdit::insertFromMimeData(const QMimeData* source) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertFromMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QMimeData*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&source}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::insertFromMimeData(source); +} +void PythonQtShell_QTextEdit::keyPressEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::keyPressEvent(e); +} +void PythonQtShell_QTextEdit::keyReleaseEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::keyReleaseEvent(e); +} +void PythonQtShell_QTextEdit::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::leaveEvent(arg__1); +} +QVariant PythonQtShell_QTextEdit::loadResource(int type, const QUrl& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "loadResource"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "int" , "const QUrl&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&type, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("loadResource", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextEdit::loadResource(type, name); +} +int PythonQtShell_QTextEdit::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextEdit::metric(arg__1); +} +void PythonQtShell_QTextEdit::mouseDoubleClickEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::mouseDoubleClickEvent(e); +} +void PythonQtShell_QTextEdit::mouseMoveEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::mouseMoveEvent(e); +} +void PythonQtShell_QTextEdit::mousePressEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::mousePressEvent(e); +} +void PythonQtShell_QTextEdit::mouseReleaseEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::mouseReleaseEvent(e); +} +void PythonQtShell_QTextEdit::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::moveEvent(arg__1); +} +bool PythonQtShell_QTextEdit::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextEdit::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QTextEdit::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextEdit::paintEngine(); +} +void PythonQtShell_QTextEdit::paintEvent(QPaintEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::paintEvent(e); +} +QPaintDevice* PythonQtShell_QTextEdit::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextEdit::redirected(offset); +} +void PythonQtShell_QTextEdit::resizeEvent(QResizeEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::resizeEvent(e); +} +void PythonQtShell_QTextEdit::scrollContentsBy(int dx, int dy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&dx, (void*)&dy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::scrollContentsBy(dx, dy); +} +void PythonQtShell_QTextEdit::setupViewport(QWidget* viewport) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&viewport}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::setupViewport(viewport); +} +QPainter* PythonQtShell_QTextEdit::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextEdit::sharedPainter(); +} +void PythonQtShell_QTextEdit::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::showEvent(arg__1); +} +void PythonQtShell_QTextEdit::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::tabletEvent(arg__1); +} +void PythonQtShell_QTextEdit::timerEvent(QTimerEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::timerEvent(e); +} +bool PythonQtShell_QTextEdit::viewportEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextEdit::viewportEvent(arg__1); +} +QSize PythonQtShell_QTextEdit::viewportSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextEdit::viewportSizeHint(); +} +void PythonQtShell_QTextEdit::wheelEvent(QWheelEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextEdit::wheelEvent(e); +} +QTextEdit* PythonQtWrapper_QTextEdit::new_QTextEdit(QWidget* parent) +{ +return new PythonQtShell_QTextEdit(parent); } + +QTextEdit* PythonQtWrapper_QTextEdit::new_QTextEdit(const QString& text, QWidget* parent) +{ +return new PythonQtShell_QTextEdit(text, parent); } + +bool PythonQtWrapper_QTextEdit::acceptRichText(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->acceptRichText()); +} + +Qt::Alignment PythonQtWrapper_QTextEdit::alignment(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->alignment()); +} + +QString PythonQtWrapper_QTextEdit::anchorAt(QTextEdit* theWrappedObject, const QPoint& pos) const +{ + return ( theWrappedObject->anchorAt(pos)); +} + +QTextEdit::AutoFormatting PythonQtWrapper_QTextEdit::autoFormatting(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->autoFormatting()); +} + +bool PythonQtWrapper_QTextEdit::canInsertFromMimeData(QTextEdit* theWrappedObject, const QMimeData* source) const +{ + return ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_canInsertFromMimeData(source)); +} + +bool PythonQtWrapper_QTextEdit::canPaste(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->canPaste()); +} + +void PythonQtWrapper_QTextEdit::changeEvent(QTextEdit* theWrappedObject, QEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_changeEvent(e)); +} + +void PythonQtWrapper_QTextEdit::contextMenuEvent(QTextEdit* theWrappedObject, QContextMenuEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_contextMenuEvent(e)); +} + +QMimeData* PythonQtWrapper_QTextEdit::createMimeDataFromSelection(QTextEdit* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_createMimeDataFromSelection()); +} + +QMenu* PythonQtWrapper_QTextEdit::createStandardContextMenu(QTextEdit* theWrappedObject) +{ + return ( theWrappedObject->createStandardContextMenu()); +} + +QMenu* PythonQtWrapper_QTextEdit::createStandardContextMenu(QTextEdit* theWrappedObject, const QPoint& position) +{ + return ( theWrappedObject->createStandardContextMenu(position)); +} + +QTextCharFormat PythonQtWrapper_QTextEdit::currentCharFormat(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->currentCharFormat()); +} + +QFont PythonQtWrapper_QTextEdit::currentFont(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->currentFont()); +} + +QTextCursor PythonQtWrapper_QTextEdit::cursorForPosition(QTextEdit* theWrappedObject, const QPoint& pos) const +{ + return ( theWrappedObject->cursorForPosition(pos)); +} + +QRect PythonQtWrapper_QTextEdit::cursorRect(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->cursorRect()); +} + +QRect PythonQtWrapper_QTextEdit::cursorRect(QTextEdit* theWrappedObject, const QTextCursor& cursor) const +{ + return ( theWrappedObject->cursorRect(cursor)); +} + +int PythonQtWrapper_QTextEdit::cursorWidth(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->cursorWidth()); +} + +void PythonQtWrapper_QTextEdit::doSetTextCursor(QTextEdit* theWrappedObject, const QTextCursor& cursor) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_doSetTextCursor(cursor)); +} + +QTextDocument* PythonQtWrapper_QTextEdit::document(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->document()); +} + +QString PythonQtWrapper_QTextEdit::documentTitle(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->documentTitle()); +} + +void PythonQtWrapper_QTextEdit::dragEnterEvent(QTextEdit* theWrappedObject, QDragEnterEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_dragEnterEvent(e)); +} + +void PythonQtWrapper_QTextEdit::dragLeaveEvent(QTextEdit* theWrappedObject, QDragLeaveEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_dragLeaveEvent(e)); +} + +void PythonQtWrapper_QTextEdit::dragMoveEvent(QTextEdit* theWrappedObject, QDragMoveEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_dragMoveEvent(e)); +} + +void PythonQtWrapper_QTextEdit::dropEvent(QTextEdit* theWrappedObject, QDropEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_dropEvent(e)); +} + +void PythonQtWrapper_QTextEdit::ensureCursorVisible(QTextEdit* theWrappedObject) +{ + ( theWrappedObject->ensureCursorVisible()); +} + +bool PythonQtWrapper_QTextEdit::event(QTextEdit* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_event(e)); +} + +QList PythonQtWrapper_QTextEdit::extraSelections(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->extraSelections()); +} + +bool PythonQtWrapper_QTextEdit::find(QTextEdit* theWrappedObject, const QString& exp, QTextDocument::FindFlags options) +{ + return ( theWrappedObject->find(exp, options)); +} + +void PythonQtWrapper_QTextEdit::focusInEvent(QTextEdit* theWrappedObject, QFocusEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_focusInEvent(e)); +} + +bool PythonQtWrapper_QTextEdit::focusNextPrevChild(QTextEdit* theWrappedObject, bool next) +{ + return ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_focusNextPrevChild(next)); +} + +void PythonQtWrapper_QTextEdit::focusOutEvent(QTextEdit* theWrappedObject, QFocusEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_focusOutEvent(e)); +} + +QString PythonQtWrapper_QTextEdit::fontFamily(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->fontFamily()); +} + +bool PythonQtWrapper_QTextEdit::fontItalic(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->fontItalic()); +} + +qreal PythonQtWrapper_QTextEdit::fontPointSize(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->fontPointSize()); +} + +bool PythonQtWrapper_QTextEdit::fontUnderline(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->fontUnderline()); +} + +int PythonQtWrapper_QTextEdit::fontWeight(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->fontWeight()); +} + +void PythonQtWrapper_QTextEdit::inputMethodEvent(QTextEdit* theWrappedObject, QInputMethodEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_inputMethodEvent(arg__1)); +} + +QVariant PythonQtWrapper_QTextEdit::inputMethodQuery(QTextEdit* theWrappedObject, Qt::InputMethodQuery property) const +{ + return ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_inputMethodQuery(property)); +} + +void PythonQtWrapper_QTextEdit::insertFromMimeData(QTextEdit* theWrappedObject, const QMimeData* source) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_insertFromMimeData(source)); +} + +bool PythonQtWrapper_QTextEdit::isReadOnly(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->isReadOnly()); +} + +bool PythonQtWrapper_QTextEdit::isUndoRedoEnabled(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->isUndoRedoEnabled()); +} + +void PythonQtWrapper_QTextEdit::keyPressEvent(QTextEdit* theWrappedObject, QKeyEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_keyPressEvent(e)); +} + +void PythonQtWrapper_QTextEdit::keyReleaseEvent(QTextEdit* theWrappedObject, QKeyEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_keyReleaseEvent(e)); +} + +int PythonQtWrapper_QTextEdit::lineWrapColumnOrWidth(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->lineWrapColumnOrWidth()); +} + +QTextEdit::LineWrapMode PythonQtWrapper_QTextEdit::lineWrapMode(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->lineWrapMode()); +} + +QVariant PythonQtWrapper_QTextEdit::loadResource(QTextEdit* theWrappedObject, int type, const QUrl& name) +{ + return ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_loadResource(type, name)); +} + +void PythonQtWrapper_QTextEdit::mergeCurrentCharFormat(QTextEdit* theWrappedObject, const QTextCharFormat& modifier) +{ + ( theWrappedObject->mergeCurrentCharFormat(modifier)); +} + +void PythonQtWrapper_QTextEdit::mouseDoubleClickEvent(QTextEdit* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_mouseDoubleClickEvent(e)); +} + +void PythonQtWrapper_QTextEdit::mouseMoveEvent(QTextEdit* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_mouseMoveEvent(e)); +} + +void PythonQtWrapper_QTextEdit::mousePressEvent(QTextEdit* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_mousePressEvent(e)); +} + +void PythonQtWrapper_QTextEdit::mouseReleaseEvent(QTextEdit* theWrappedObject, QMouseEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_mouseReleaseEvent(e)); +} + +void PythonQtWrapper_QTextEdit::moveCursor(QTextEdit* theWrappedObject, QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode) +{ + ( theWrappedObject->moveCursor(operation, mode)); +} + +bool PythonQtWrapper_QTextEdit::overwriteMode(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->overwriteMode()); +} + +void PythonQtWrapper_QTextEdit::paintEvent(QTextEdit* theWrappedObject, QPaintEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_paintEvent(e)); +} + +void PythonQtWrapper_QTextEdit::resizeEvent(QTextEdit* theWrappedObject, QResizeEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_resizeEvent(e)); +} + +void PythonQtWrapper_QTextEdit::scrollContentsBy(QTextEdit* theWrappedObject, int dx, int dy) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); +} + +void PythonQtWrapper_QTextEdit::setAcceptRichText(QTextEdit* theWrappedObject, bool accept) +{ + ( theWrappedObject->setAcceptRichText(accept)); +} + +void PythonQtWrapper_QTextEdit::setAutoFormatting(QTextEdit* theWrappedObject, QTextEdit::AutoFormatting features) +{ + ( theWrappedObject->setAutoFormatting(features)); +} + +void PythonQtWrapper_QTextEdit::setCurrentCharFormat(QTextEdit* theWrappedObject, const QTextCharFormat& format) +{ + ( theWrappedObject->setCurrentCharFormat(format)); +} + +void PythonQtWrapper_QTextEdit::setCursorWidth(QTextEdit* theWrappedObject, int width) +{ + ( theWrappedObject->setCursorWidth(width)); +} + +void PythonQtWrapper_QTextEdit::setDocument(QTextEdit* theWrappedObject, QTextDocument* document) +{ + ( theWrappedObject->setDocument(document)); +} + +void PythonQtWrapper_QTextEdit::setDocumentTitle(QTextEdit* theWrappedObject, const QString& title) +{ + ( theWrappedObject->setDocumentTitle(title)); +} + +void PythonQtWrapper_QTextEdit::setExtraSelections(QTextEdit* theWrappedObject, const QList& selections) +{ + ( theWrappedObject->setExtraSelections(selections)); +} + +void PythonQtWrapper_QTextEdit::setLineWrapColumnOrWidth(QTextEdit* theWrappedObject, int w) +{ + ( theWrappedObject->setLineWrapColumnOrWidth(w)); +} + +void PythonQtWrapper_QTextEdit::setLineWrapMode(QTextEdit* theWrappedObject, QTextEdit::LineWrapMode mode) +{ + ( theWrappedObject->setLineWrapMode(mode)); +} + +void PythonQtWrapper_QTextEdit::setOverwriteMode(QTextEdit* theWrappedObject, bool overwrite) +{ + ( theWrappedObject->setOverwriteMode(overwrite)); +} + +void PythonQtWrapper_QTextEdit::setReadOnly(QTextEdit* theWrappedObject, bool ro) +{ + ( theWrappedObject->setReadOnly(ro)); +} + +void PythonQtWrapper_QTextEdit::setTabChangesFocus(QTextEdit* theWrappedObject, bool b) +{ + ( theWrappedObject->setTabChangesFocus(b)); +} + +void PythonQtWrapper_QTextEdit::setTabStopWidth(QTextEdit* theWrappedObject, int width) +{ + ( theWrappedObject->setTabStopWidth(width)); +} + +void PythonQtWrapper_QTextEdit::setTextCursor(QTextEdit* theWrappedObject, const QTextCursor& cursor) +{ + ( theWrappedObject->setTextCursor(cursor)); +} + +void PythonQtWrapper_QTextEdit::setTextInteractionFlags(QTextEdit* theWrappedObject, Qt::TextInteractionFlags flags) +{ + ( theWrappedObject->setTextInteractionFlags(flags)); +} + +void PythonQtWrapper_QTextEdit::setUndoRedoEnabled(QTextEdit* theWrappedObject, bool enable) +{ + ( theWrappedObject->setUndoRedoEnabled(enable)); +} + +void PythonQtWrapper_QTextEdit::setWordWrapMode(QTextEdit* theWrappedObject, QTextOption::WrapMode policy) +{ + ( theWrappedObject->setWordWrapMode(policy)); +} + +void PythonQtWrapper_QTextEdit::showEvent(QTextEdit* theWrappedObject, QShowEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_showEvent(arg__1)); +} + +bool PythonQtWrapper_QTextEdit::tabChangesFocus(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->tabChangesFocus()); +} + +int PythonQtWrapper_QTextEdit::tabStopWidth(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->tabStopWidth()); +} + +QColor PythonQtWrapper_QTextEdit::textBackgroundColor(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->textBackgroundColor()); +} + +QColor PythonQtWrapper_QTextEdit::textColor(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->textColor()); +} + +QTextCursor PythonQtWrapper_QTextEdit::textCursor(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->textCursor()); +} + +Qt::TextInteractionFlags PythonQtWrapper_QTextEdit::textInteractionFlags(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->textInteractionFlags()); +} + +void PythonQtWrapper_QTextEdit::timerEvent(QTextEdit* theWrappedObject, QTimerEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_timerEvent(e)); +} + +QString PythonQtWrapper_QTextEdit::toHtml(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->toHtml()); +} + +QString PythonQtWrapper_QTextEdit::toPlainText(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->toPlainText()); +} + +void PythonQtWrapper_QTextEdit::wheelEvent(QTextEdit* theWrappedObject, QWheelEvent* e) +{ + ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_wheelEvent(e)); +} + +QTextOption::WrapMode PythonQtWrapper_QTextEdit::wordWrapMode(QTextEdit* theWrappedObject) const +{ + return ( theWrappedObject->wordWrapMode()); +} + + + +PythonQtShell_QTextEdit_ExtraSelection::~PythonQtShell_QTextEdit_ExtraSelection() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QTextEdit::ExtraSelection* PythonQtWrapper_QTextEdit_ExtraSelection::new_QTextEdit_ExtraSelection() +{ +return new PythonQtShell_QTextEdit_ExtraSelection(); } + +#endif + +QTextFragment* PythonQtWrapper_QTextFragment::new_QTextFragment() +{ +return new QTextFragment(); } + +QTextFragment* PythonQtWrapper_QTextFragment::new_QTextFragment(const QTextFragment& o) +{ +return new QTextFragment(o); } + +QTextCharFormat PythonQtWrapper_QTextFragment::charFormat(QTextFragment* theWrappedObject) const +{ + return ( theWrappedObject->charFormat()); +} + +int PythonQtWrapper_QTextFragment::charFormatIndex(QTextFragment* theWrappedObject) const +{ + return ( theWrappedObject->charFormatIndex()); +} + +bool PythonQtWrapper_QTextFragment::contains(QTextFragment* theWrappedObject, int position) const +{ + return ( theWrappedObject->contains(position)); +} + +bool PythonQtWrapper_QTextFragment::isValid(QTextFragment* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +int PythonQtWrapper_QTextFragment::length(QTextFragment* theWrappedObject) const +{ + return ( theWrappedObject->length()); +} + +bool PythonQtWrapper_QTextFragment::__ne__(QTextFragment* theWrappedObject, const QTextFragment& o) const +{ + return ( (*theWrappedObject)!= o); +} + +bool PythonQtWrapper_QTextFragment::__lt__(QTextFragment* theWrappedObject, const QTextFragment& o) const +{ + return ( (*theWrappedObject)< o); +} + +bool PythonQtWrapper_QTextFragment::__eq__(QTextFragment* theWrappedObject, const QTextFragment& o) const +{ + return ( (*theWrappedObject)== o); +} + +int PythonQtWrapper_QTextFragment::position(QTextFragment* theWrappedObject) const +{ + return ( theWrappedObject->position()); +} + +QString PythonQtWrapper_QTextFragment::text(QTextFragment* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + + + +PythonQtShell_QTextFrame::~PythonQtShell_QTextFrame() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTextFrame::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextFrame::childEvent(arg__1); +} +void PythonQtShell_QTextFrame::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextFrame::customEvent(arg__1); +} +bool PythonQtShell_QTextFrame::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextFrame::event(arg__1); +} +bool PythonQtShell_QTextFrame::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextFrame::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QTextFrame::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextFrame::timerEvent(arg__1); +} +QTextFrame* PythonQtWrapper_QTextFrame::new_QTextFrame(QTextDocument* doc) +{ +return new PythonQtShell_QTextFrame(doc); } + +QTextFrame::iterator PythonQtWrapper_QTextFrame::begin(QTextFrame* theWrappedObject) const +{ + return ( theWrappedObject->begin()); +} + +QList PythonQtWrapper_QTextFrame::childFrames(QTextFrame* theWrappedObject) const +{ + return ( theWrappedObject->childFrames()); +} + +QTextFrame::iterator PythonQtWrapper_QTextFrame::end(QTextFrame* theWrappedObject) const +{ + return ( theWrappedObject->end()); +} + +QTextCursor PythonQtWrapper_QTextFrame::firstCursorPosition(QTextFrame* theWrappedObject) const +{ + return ( theWrappedObject->firstCursorPosition()); +} + +int PythonQtWrapper_QTextFrame::firstPosition(QTextFrame* theWrappedObject) const +{ + return ( theWrappedObject->firstPosition()); +} + +QTextFrameFormat PythonQtWrapper_QTextFrame::frameFormat(QTextFrame* theWrappedObject) const +{ + return ( theWrappedObject->frameFormat()); +} + +QTextCursor PythonQtWrapper_QTextFrame::lastCursorPosition(QTextFrame* theWrappedObject) const +{ + return ( theWrappedObject->lastCursorPosition()); +} + +int PythonQtWrapper_QTextFrame::lastPosition(QTextFrame* theWrappedObject) const +{ + return ( theWrappedObject->lastPosition()); +} + +QTextFrame* PythonQtWrapper_QTextFrame::parentFrame(QTextFrame* theWrappedObject) const +{ + return ( theWrappedObject->parentFrame()); +} + +void PythonQtWrapper_QTextFrame::setFrameFormat(QTextFrame* theWrappedObject, const QTextFrameFormat& format) +{ + ( theWrappedObject->setFrameFormat(format)); +} + + + +PythonQtShell_QTextFrameFormat::~PythonQtShell_QTextFrameFormat() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QTextFrameFormat* PythonQtWrapper_QTextFrameFormat::new_QTextFrameFormat() +{ +return new PythonQtShell_QTextFrameFormat(); } + +qreal PythonQtWrapper_QTextFrameFormat::border(QTextFrameFormat* theWrappedObject) const +{ + return ( theWrappedObject->border()); +} + +QBrush PythonQtWrapper_QTextFrameFormat::borderBrush(QTextFrameFormat* theWrappedObject) const +{ + return ( theWrappedObject->borderBrush()); +} + +QTextFrameFormat::BorderStyle PythonQtWrapper_QTextFrameFormat::borderStyle(QTextFrameFormat* theWrappedObject) const +{ + return ( theWrappedObject->borderStyle()); +} + +qreal PythonQtWrapper_QTextFrameFormat::bottomMargin(QTextFrameFormat* theWrappedObject) const +{ + return ( theWrappedObject->bottomMargin()); +} + +QTextLength PythonQtWrapper_QTextFrameFormat::height(QTextFrameFormat* theWrappedObject) const +{ + return ( theWrappedObject->height()); +} + +bool PythonQtWrapper_QTextFrameFormat::isValid(QTextFrameFormat* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +qreal PythonQtWrapper_QTextFrameFormat::leftMargin(QTextFrameFormat* theWrappedObject) const +{ + return ( theWrappedObject->leftMargin()); +} + +qreal PythonQtWrapper_QTextFrameFormat::margin(QTextFrameFormat* theWrappedObject) const +{ + return ( theWrappedObject->margin()); +} + +qreal PythonQtWrapper_QTextFrameFormat::padding(QTextFrameFormat* theWrappedObject) const +{ + return ( theWrappedObject->padding()); +} + +QTextFormat::PageBreakFlags PythonQtWrapper_QTextFrameFormat::pageBreakPolicy(QTextFrameFormat* theWrappedObject) const +{ + return ( theWrappedObject->pageBreakPolicy()); +} + +QTextFrameFormat::Position PythonQtWrapper_QTextFrameFormat::position(QTextFrameFormat* theWrappedObject) const +{ + return ( theWrappedObject->position()); +} + +qreal PythonQtWrapper_QTextFrameFormat::rightMargin(QTextFrameFormat* theWrappedObject) const +{ + return ( theWrappedObject->rightMargin()); +} + +void PythonQtWrapper_QTextFrameFormat::setBorder(QTextFrameFormat* theWrappedObject, qreal border) +{ + ( theWrappedObject->setBorder(border)); +} + +void PythonQtWrapper_QTextFrameFormat::setBorderBrush(QTextFrameFormat* theWrappedObject, const QBrush& brush) +{ + ( theWrappedObject->setBorderBrush(brush)); +} + +void PythonQtWrapper_QTextFrameFormat::setBorderStyle(QTextFrameFormat* theWrappedObject, QTextFrameFormat::BorderStyle style) +{ + ( theWrappedObject->setBorderStyle(style)); +} + +void PythonQtWrapper_QTextFrameFormat::setBottomMargin(QTextFrameFormat* theWrappedObject, qreal margin) +{ + ( theWrappedObject->setBottomMargin(margin)); +} + +void PythonQtWrapper_QTextFrameFormat::setHeight(QTextFrameFormat* theWrappedObject, const QTextLength& height) +{ + ( theWrappedObject->setHeight(height)); +} + +void PythonQtWrapper_QTextFrameFormat::setHeight(QTextFrameFormat* theWrappedObject, qreal height) +{ + ( theWrappedObject->setHeight(height)); +} + +void PythonQtWrapper_QTextFrameFormat::setLeftMargin(QTextFrameFormat* theWrappedObject, qreal margin) +{ + ( theWrappedObject->setLeftMargin(margin)); +} + +void PythonQtWrapper_QTextFrameFormat::setMargin(QTextFrameFormat* theWrappedObject, qreal margin) +{ + ( theWrappedObject->setMargin(margin)); +} + +void PythonQtWrapper_QTextFrameFormat::setPadding(QTextFrameFormat* theWrappedObject, qreal padding) +{ + ( theWrappedObject->setPadding(padding)); +} + +void PythonQtWrapper_QTextFrameFormat::setPageBreakPolicy(QTextFrameFormat* theWrappedObject, QTextFormat::PageBreakFlags flags) +{ + ( theWrappedObject->setPageBreakPolicy(flags)); +} + +void PythonQtWrapper_QTextFrameFormat::setPosition(QTextFrameFormat* theWrappedObject, QTextFrameFormat::Position f) +{ + ( theWrappedObject->setPosition(f)); +} + +void PythonQtWrapper_QTextFrameFormat::setRightMargin(QTextFrameFormat* theWrappedObject, qreal margin) +{ + ( theWrappedObject->setRightMargin(margin)); +} + +void PythonQtWrapper_QTextFrameFormat::setTopMargin(QTextFrameFormat* theWrappedObject, qreal margin) +{ + ( theWrappedObject->setTopMargin(margin)); +} + +void PythonQtWrapper_QTextFrameFormat::setWidth(QTextFrameFormat* theWrappedObject, const QTextLength& length) +{ + ( theWrappedObject->setWidth(length)); +} + +void PythonQtWrapper_QTextFrameFormat::setWidth(QTextFrameFormat* theWrappedObject, qreal width) +{ + ( theWrappedObject->setWidth(width)); +} + +qreal PythonQtWrapper_QTextFrameFormat::topMargin(QTextFrameFormat* theWrappedObject) const +{ + return ( theWrappedObject->topMargin()); +} + +QTextLength PythonQtWrapper_QTextFrameFormat::width(QTextFrameFormat* theWrappedObject) const +{ + return ( theWrappedObject->width()); +} + + + +PythonQtShell_QTextImageFormat::~PythonQtShell_QTextImageFormat() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QTextImageFormat* PythonQtWrapper_QTextImageFormat::new_QTextImageFormat() +{ +return new PythonQtShell_QTextImageFormat(); } + +qreal PythonQtWrapper_QTextImageFormat::height(QTextImageFormat* theWrappedObject) const +{ + return ( theWrappedObject->height()); +} + +bool PythonQtWrapper_QTextImageFormat::isValid(QTextImageFormat* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +QString PythonQtWrapper_QTextImageFormat::name(QTextImageFormat* theWrappedObject) const +{ + return ( theWrappedObject->name()); +} + +void PythonQtWrapper_QTextImageFormat::setHeight(QTextImageFormat* theWrappedObject, qreal height) +{ + ( theWrappedObject->setHeight(height)); +} + +void PythonQtWrapper_QTextImageFormat::setName(QTextImageFormat* theWrappedObject, const QString& name) +{ + ( theWrappedObject->setName(name)); +} + +void PythonQtWrapper_QTextImageFormat::setWidth(QTextImageFormat* theWrappedObject, qreal width) +{ + ( theWrappedObject->setWidth(width)); +} + +qreal PythonQtWrapper_QTextImageFormat::width(QTextImageFormat* theWrappedObject) const +{ + return ( theWrappedObject->width()); +} + + + +QTextInlineObject* PythonQtWrapper_QTextInlineObject::new_QTextInlineObject() +{ +return new QTextInlineObject(); } + +qreal PythonQtWrapper_QTextInlineObject::ascent(QTextInlineObject* theWrappedObject) const +{ + return ( theWrappedObject->ascent()); +} + +qreal PythonQtWrapper_QTextInlineObject::descent(QTextInlineObject* theWrappedObject) const +{ + return ( theWrappedObject->descent()); +} + +QTextFormat PythonQtWrapper_QTextInlineObject::format(QTextInlineObject* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +int PythonQtWrapper_QTextInlineObject::formatIndex(QTextInlineObject* theWrappedObject) const +{ + return ( theWrappedObject->formatIndex()); +} + +qreal PythonQtWrapper_QTextInlineObject::height(QTextInlineObject* theWrappedObject) const +{ + return ( theWrappedObject->height()); +} + +bool PythonQtWrapper_QTextInlineObject::isValid(QTextInlineObject* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +QRectF PythonQtWrapper_QTextInlineObject::rect(QTextInlineObject* theWrappedObject) const +{ + return ( theWrappedObject->rect()); +} + +void PythonQtWrapper_QTextInlineObject::setAscent(QTextInlineObject* theWrappedObject, qreal a) +{ + ( theWrappedObject->setAscent(a)); +} + +void PythonQtWrapper_QTextInlineObject::setDescent(QTextInlineObject* theWrappedObject, qreal d) +{ + ( theWrappedObject->setDescent(d)); +} + +void PythonQtWrapper_QTextInlineObject::setWidth(QTextInlineObject* theWrappedObject, qreal w) +{ + ( theWrappedObject->setWidth(w)); +} + +Qt::LayoutDirection PythonQtWrapper_QTextInlineObject::textDirection(QTextInlineObject* theWrappedObject) const +{ + return ( theWrappedObject->textDirection()); +} + +int PythonQtWrapper_QTextInlineObject::textPosition(QTextInlineObject* theWrappedObject) const +{ + return ( theWrappedObject->textPosition()); +} + +qreal PythonQtWrapper_QTextInlineObject::width(QTextInlineObject* theWrappedObject) const +{ + return ( theWrappedObject->width()); +} + + + +PythonQtShell_QTextItem::~PythonQtShell_QTextItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QTextItem* PythonQtWrapper_QTextItem::new_QTextItem() +{ +return new PythonQtShell_QTextItem(); } + +qreal PythonQtWrapper_QTextItem::ascent(QTextItem* theWrappedObject) const +{ + return ( theWrappedObject->ascent()); +} + +qreal PythonQtWrapper_QTextItem::descent(QTextItem* theWrappedObject) const +{ + return ( theWrappedObject->descent()); +} + +QFont PythonQtWrapper_QTextItem::font(QTextItem* theWrappedObject) const +{ + return ( theWrappedObject->font()); +} + +QTextItem::RenderFlags PythonQtWrapper_QTextItem::renderFlags(QTextItem* theWrappedObject) const +{ + return ( theWrappedObject->renderFlags()); +} + +QString PythonQtWrapper_QTextItem::text(QTextItem* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + +qreal PythonQtWrapper_QTextItem::width(QTextItem* theWrappedObject) const +{ + return ( theWrappedObject->width()); +} + + + +QTextLine* PythonQtWrapper_QTextLine::new_QTextLine() +{ +return new QTextLine(); } + +qreal PythonQtWrapper_QTextLine::ascent(QTextLine* theWrappedObject) const +{ + return ( theWrappedObject->ascent()); +} + +qreal PythonQtWrapper_QTextLine::cursorToX(QTextLine* theWrappedObject, int cursorPos, QTextLine::Edge edge) const +{ + return ( theWrappedObject->cursorToX(cursorPos, edge)); +} + +qreal PythonQtWrapper_QTextLine::descent(QTextLine* theWrappedObject) const +{ + return ( theWrappedObject->descent()); +} + +void PythonQtWrapper_QTextLine::draw(QTextLine* theWrappedObject, QPainter* p, const QPointF& point, const QTextLayout::FormatRange* selection) const +{ + ( theWrappedObject->draw(p, point, selection)); +} + +qreal PythonQtWrapper_QTextLine::height(QTextLine* theWrappedObject) const +{ + return ( theWrappedObject->height()); +} + +qreal PythonQtWrapper_QTextLine::horizontalAdvance(QTextLine* theWrappedObject) const +{ + return ( theWrappedObject->horizontalAdvance()); +} + +bool PythonQtWrapper_QTextLine::isValid(QTextLine* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +qreal PythonQtWrapper_QTextLine::leading(QTextLine* theWrappedObject) const +{ + return ( theWrappedObject->leading()); +} + +bool PythonQtWrapper_QTextLine::leadingIncluded(QTextLine* theWrappedObject) const +{ + return ( theWrappedObject->leadingIncluded()); +} + +int PythonQtWrapper_QTextLine::lineNumber(QTextLine* theWrappedObject) const +{ + return ( theWrappedObject->lineNumber()); +} + +QRectF PythonQtWrapper_QTextLine::naturalTextRect(QTextLine* theWrappedObject) const +{ + return ( theWrappedObject->naturalTextRect()); +} + +qreal PythonQtWrapper_QTextLine::naturalTextWidth(QTextLine* theWrappedObject) const +{ + return ( theWrappedObject->naturalTextWidth()); +} + +QPointF PythonQtWrapper_QTextLine::position(QTextLine* theWrappedObject) const +{ + return ( theWrappedObject->position()); +} + +QRectF PythonQtWrapper_QTextLine::rect(QTextLine* theWrappedObject) const +{ + return ( theWrappedObject->rect()); +} + +void PythonQtWrapper_QTextLine::setLeadingIncluded(QTextLine* theWrappedObject, bool included) +{ + ( theWrappedObject->setLeadingIncluded(included)); +} + +void PythonQtWrapper_QTextLine::setLineWidth(QTextLine* theWrappedObject, qreal width) +{ + ( theWrappedObject->setLineWidth(width)); +} + +void PythonQtWrapper_QTextLine::setNumColumns(QTextLine* theWrappedObject, int columns) +{ + ( theWrappedObject->setNumColumns(columns)); +} + +void PythonQtWrapper_QTextLine::setNumColumns(QTextLine* theWrappedObject, int columns, qreal alignmentWidth) +{ + ( theWrappedObject->setNumColumns(columns, alignmentWidth)); +} + +void PythonQtWrapper_QTextLine::setPosition(QTextLine* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setPosition(pos)); +} + +int PythonQtWrapper_QTextLine::textLength(QTextLine* theWrappedObject) const +{ + return ( theWrappedObject->textLength()); +} + +int PythonQtWrapper_QTextLine::textStart(QTextLine* theWrappedObject) const +{ + return ( theWrappedObject->textStart()); +} + +qreal PythonQtWrapper_QTextLine::width(QTextLine* theWrappedObject) const +{ + return ( theWrappedObject->width()); +} + +qreal PythonQtWrapper_QTextLine::x(QTextLine* theWrappedObject) const +{ + return ( theWrappedObject->x()); +} + +int PythonQtWrapper_QTextLine::xToCursor(QTextLine* theWrappedObject, qreal x, QTextLine::CursorPosition arg__2) const +{ + return ( theWrappedObject->xToCursor(x, arg__2)); +} + +qreal PythonQtWrapper_QTextLine::y(QTextLine* theWrappedObject) const +{ + return ( theWrappedObject->y()); +} + + + +PythonQtShell_QTextList::~PythonQtShell_QTextList() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTextList::blockFormatChanged(const QTextBlock& block) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "blockFormatChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QTextBlock&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&block}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextList::blockFormatChanged(block); +} +void PythonQtShell_QTextList::blockInserted(const QTextBlock& block) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "blockInserted"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QTextBlock&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&block}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextList::blockInserted(block); +} +void PythonQtShell_QTextList::blockRemoved(const QTextBlock& block) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "blockRemoved"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QTextBlock&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&block}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextList::blockRemoved(block); +} +void PythonQtShell_QTextList::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextList::childEvent(arg__1); +} +void PythonQtShell_QTextList::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextList::customEvent(arg__1); +} +bool PythonQtShell_QTextList::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextList::event(arg__1); +} +bool PythonQtShell_QTextList::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextList::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QTextList::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextList::timerEvent(arg__1); +} +QTextList* PythonQtWrapper_QTextList::new_QTextList(QTextDocument* doc) +{ +return new PythonQtShell_QTextList(doc); } + +void PythonQtWrapper_QTextList::add(QTextList* theWrappedObject, const QTextBlock& block) +{ + ( theWrappedObject->add(block)); +} + +int PythonQtWrapper_QTextList::count(QTextList* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +QTextListFormat PythonQtWrapper_QTextList::format(QTextList* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +QTextBlock PythonQtWrapper_QTextList::item(QTextList* theWrappedObject, int i) const +{ + return ( theWrappedObject->item(i)); +} + +int PythonQtWrapper_QTextList::itemNumber(QTextList* theWrappedObject, const QTextBlock& arg__1) const +{ + return ( theWrappedObject->itemNumber(arg__1)); +} + +QString PythonQtWrapper_QTextList::itemText(QTextList* theWrappedObject, const QTextBlock& arg__1) const +{ + return ( theWrappedObject->itemText(arg__1)); +} + +void PythonQtWrapper_QTextList::remove(QTextList* theWrappedObject, const QTextBlock& arg__1) +{ + ( theWrappedObject->remove(arg__1)); +} + +void PythonQtWrapper_QTextList::removeItem(QTextList* theWrappedObject, int i) +{ + ( theWrappedObject->removeItem(i)); +} + +void PythonQtWrapper_QTextList::setFormat(QTextList* theWrappedObject, const QTextListFormat& format) +{ + ( theWrappedObject->setFormat(format)); +} + + + +PythonQtShell_QTextListFormat::~PythonQtShell_QTextListFormat() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QTextListFormat* PythonQtWrapper_QTextListFormat::new_QTextListFormat() +{ +return new PythonQtShell_QTextListFormat(); } + +int PythonQtWrapper_QTextListFormat::indent(QTextListFormat* theWrappedObject) const +{ + return ( theWrappedObject->indent()); +} + +bool PythonQtWrapper_QTextListFormat::isValid(QTextListFormat* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +QString PythonQtWrapper_QTextListFormat::numberPrefix(QTextListFormat* theWrappedObject) const +{ + return ( theWrappedObject->numberPrefix()); +} + +QString PythonQtWrapper_QTextListFormat::numberSuffix(QTextListFormat* theWrappedObject) const +{ + return ( theWrappedObject->numberSuffix()); +} + +void PythonQtWrapper_QTextListFormat::setIndent(QTextListFormat* theWrappedObject, int indent) +{ + ( theWrappedObject->setIndent(indent)); +} + +void PythonQtWrapper_QTextListFormat::setNumberPrefix(QTextListFormat* theWrappedObject, const QString& numberPrefix) +{ + ( theWrappedObject->setNumberPrefix(numberPrefix)); +} + +void PythonQtWrapper_QTextListFormat::setNumberSuffix(QTextListFormat* theWrappedObject, const QString& numberSuffix) +{ + ( theWrappedObject->setNumberSuffix(numberSuffix)); +} + +void PythonQtWrapper_QTextListFormat::setStyle(QTextListFormat* theWrappedObject, QTextListFormat::Style style) +{ + ( theWrappedObject->setStyle(style)); +} + +QTextListFormat::Style PythonQtWrapper_QTextListFormat::style(QTextListFormat* theWrappedObject) const +{ + return ( theWrappedObject->style()); +} + + + +PythonQtShell_QTextObject::~PythonQtShell_QTextObject() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTextObject::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextObject::childEvent(arg__1); +} +void PythonQtShell_QTextObject::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextObject::customEvent(arg__1); +} +bool PythonQtShell_QTextObject::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextObject::event(arg__1); +} +bool PythonQtShell_QTextObject::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextObject::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QTextObject::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextObject::timerEvent(arg__1); +} +QTextDocument* PythonQtWrapper_QTextObject::document(QTextObject* theWrappedObject) const +{ + return ( theWrappedObject->document()); +} + +QTextFormat PythonQtWrapper_QTextObject::format(QTextObject* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +int PythonQtWrapper_QTextObject::formatIndex(QTextObject* theWrappedObject) const +{ + return ( theWrappedObject->formatIndex()); +} + +int PythonQtWrapper_QTextObject::objectIndex(QTextObject* theWrappedObject) const +{ + return ( theWrappedObject->objectIndex()); +} + + + +PythonQtShell_QTextTable::~PythonQtShell_QTextTable() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTextTable::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextTable::childEvent(arg__1); +} +void PythonQtShell_QTextTable::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextTable::customEvent(arg__1); +} +bool PythonQtShell_QTextTable::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextTable::event(arg__1); +} +bool PythonQtShell_QTextTable::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTextTable::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QTextTable::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTextTable::timerEvent(arg__1); +} +QTextTable* PythonQtWrapper_QTextTable::new_QTextTable(QTextDocument* doc) +{ +return new PythonQtShell_QTextTable(doc); } + +void PythonQtWrapper_QTextTable::appendColumns(QTextTable* theWrappedObject, int count) +{ + ( theWrappedObject->appendColumns(count)); +} + +void PythonQtWrapper_QTextTable::appendRows(QTextTable* theWrappedObject, int count) +{ + ( theWrappedObject->appendRows(count)); +} + +QTextTableCell PythonQtWrapper_QTextTable::cellAt(QTextTable* theWrappedObject, const QTextCursor& c) const +{ + return ( theWrappedObject->cellAt(c)); +} + +QTextTableCell PythonQtWrapper_QTextTable::cellAt(QTextTable* theWrappedObject, int position) const +{ + return ( theWrappedObject->cellAt(position)); +} + +QTextTableCell PythonQtWrapper_QTextTable::cellAt(QTextTable* theWrappedObject, int row, int col) const +{ + return ( theWrappedObject->cellAt(row, col)); +} + +int PythonQtWrapper_QTextTable::columns(QTextTable* theWrappedObject) const +{ + return ( theWrappedObject->columns()); +} + +QTextTableFormat PythonQtWrapper_QTextTable::format(QTextTable* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +void PythonQtWrapper_QTextTable::insertColumns(QTextTable* theWrappedObject, int pos, int num) +{ + ( theWrappedObject->insertColumns(pos, num)); +} + +void PythonQtWrapper_QTextTable::insertRows(QTextTable* theWrappedObject, int pos, int num) +{ + ( theWrappedObject->insertRows(pos, num)); +} + +void PythonQtWrapper_QTextTable::mergeCells(QTextTable* theWrappedObject, const QTextCursor& cursor) +{ + ( theWrappedObject->mergeCells(cursor)); +} + +void PythonQtWrapper_QTextTable::mergeCells(QTextTable* theWrappedObject, int row, int col, int numRows, int numCols) +{ + ( theWrappedObject->mergeCells(row, col, numRows, numCols)); +} + +void PythonQtWrapper_QTextTable::removeColumns(QTextTable* theWrappedObject, int pos, int num) +{ + ( theWrappedObject->removeColumns(pos, num)); +} + +void PythonQtWrapper_QTextTable::removeRows(QTextTable* theWrappedObject, int pos, int num) +{ + ( theWrappedObject->removeRows(pos, num)); +} + +void PythonQtWrapper_QTextTable::resize(QTextTable* theWrappedObject, int rows, int cols) +{ + ( theWrappedObject->resize(rows, cols)); +} + +QTextCursor PythonQtWrapper_QTextTable::rowEnd(QTextTable* theWrappedObject, const QTextCursor& c) const +{ + return ( theWrappedObject->rowEnd(c)); +} + +QTextCursor PythonQtWrapper_QTextTable::rowStart(QTextTable* theWrappedObject, const QTextCursor& c) const +{ + return ( theWrappedObject->rowStart(c)); +} + +int PythonQtWrapper_QTextTable::rows(QTextTable* theWrappedObject) const +{ + return ( theWrappedObject->rows()); +} + +void PythonQtWrapper_QTextTable::setFormat(QTextTable* theWrappedObject, const QTextTableFormat& format) +{ + ( theWrappedObject->setFormat(format)); +} + +void PythonQtWrapper_QTextTable::splitCell(QTextTable* theWrappedObject, int row, int col, int numRows, int numCols) +{ + ( theWrappedObject->splitCell(row, col, numRows, numCols)); +} + + + +QTextTableCell* PythonQtWrapper_QTextTableCell::new_QTextTableCell() +{ +return new QTextTableCell(); } + +QTextTableCell* PythonQtWrapper_QTextTableCell::new_QTextTableCell(const QTextTableCell& o) +{ +return new QTextTableCell(o); } + +QTextFrame::iterator PythonQtWrapper_QTextTableCell::begin(QTextTableCell* theWrappedObject) const +{ + return ( theWrappedObject->begin()); +} + +int PythonQtWrapper_QTextTableCell::column(QTextTableCell* theWrappedObject) const +{ + return ( theWrappedObject->column()); +} + +int PythonQtWrapper_QTextTableCell::columnSpan(QTextTableCell* theWrappedObject) const +{ + return ( theWrappedObject->columnSpan()); +} + +QTextFrame::iterator PythonQtWrapper_QTextTableCell::end(QTextTableCell* theWrappedObject) const +{ + return ( theWrappedObject->end()); +} + +QTextCursor PythonQtWrapper_QTextTableCell::firstCursorPosition(QTextTableCell* theWrappedObject) const +{ + return ( theWrappedObject->firstCursorPosition()); +} + +int PythonQtWrapper_QTextTableCell::firstPosition(QTextTableCell* theWrappedObject) const +{ + return ( theWrappedObject->firstPosition()); +} + +QTextCharFormat PythonQtWrapper_QTextTableCell::format(QTextTableCell* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +bool PythonQtWrapper_QTextTableCell::isValid(QTextTableCell* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +QTextCursor PythonQtWrapper_QTextTableCell::lastCursorPosition(QTextTableCell* theWrappedObject) const +{ + return ( theWrappedObject->lastCursorPosition()); +} + +int PythonQtWrapper_QTextTableCell::lastPosition(QTextTableCell* theWrappedObject) const +{ + return ( theWrappedObject->lastPosition()); +} + +bool PythonQtWrapper_QTextTableCell::__ne__(QTextTableCell* theWrappedObject, const QTextTableCell& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QTextTableCell::__eq__(QTextTableCell* theWrappedObject, const QTextTableCell& other) const +{ + return ( (*theWrappedObject)== other); +} + +int PythonQtWrapper_QTextTableCell::row(QTextTableCell* theWrappedObject) const +{ + return ( theWrappedObject->row()); +} + +int PythonQtWrapper_QTextTableCell::rowSpan(QTextTableCell* theWrappedObject) const +{ + return ( theWrappedObject->rowSpan()); +} + +void PythonQtWrapper_QTextTableCell::setFormat(QTextTableCell* theWrappedObject, const QTextCharFormat& format) +{ + ( theWrappedObject->setFormat(format)); +} + +int PythonQtWrapper_QTextTableCell::tableCellFormatIndex(QTextTableCell* theWrappedObject) const +{ + return ( theWrappedObject->tableCellFormatIndex()); +} + + + +PythonQtShell_QTextTableCellFormat::~PythonQtShell_QTextTableCellFormat() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QTextTableCellFormat* PythonQtWrapper_QTextTableCellFormat::new_QTextTableCellFormat() +{ +return new PythonQtShell_QTextTableCellFormat(); } + +qreal PythonQtWrapper_QTextTableCellFormat::bottomPadding(QTextTableCellFormat* theWrappedObject) const +{ + return ( theWrappedObject->bottomPadding()); +} + +bool PythonQtWrapper_QTextTableCellFormat::isValid(QTextTableCellFormat* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +qreal PythonQtWrapper_QTextTableCellFormat::leftPadding(QTextTableCellFormat* theWrappedObject) const +{ + return ( theWrappedObject->leftPadding()); +} + +qreal PythonQtWrapper_QTextTableCellFormat::rightPadding(QTextTableCellFormat* theWrappedObject) const +{ + return ( theWrappedObject->rightPadding()); +} + +void PythonQtWrapper_QTextTableCellFormat::setBottomPadding(QTextTableCellFormat* theWrappedObject, qreal padding) +{ + ( theWrappedObject->setBottomPadding(padding)); +} + +void PythonQtWrapper_QTextTableCellFormat::setLeftPadding(QTextTableCellFormat* theWrappedObject, qreal padding) +{ + ( theWrappedObject->setLeftPadding(padding)); +} + +void PythonQtWrapper_QTextTableCellFormat::setPadding(QTextTableCellFormat* theWrappedObject, qreal padding) +{ + ( theWrappedObject->setPadding(padding)); +} + +void PythonQtWrapper_QTextTableCellFormat::setRightPadding(QTextTableCellFormat* theWrappedObject, qreal padding) +{ + ( theWrappedObject->setRightPadding(padding)); +} + +void PythonQtWrapper_QTextTableCellFormat::setTopPadding(QTextTableCellFormat* theWrappedObject, qreal padding) +{ + ( theWrappedObject->setTopPadding(padding)); +} + +qreal PythonQtWrapper_QTextTableCellFormat::topPadding(QTextTableCellFormat* theWrappedObject) const +{ + return ( theWrappedObject->topPadding()); +} + + + +PythonQtShell_QTextTableFormat::~PythonQtShell_QTextTableFormat() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QTextTableFormat* PythonQtWrapper_QTextTableFormat::new_QTextTableFormat() +{ +return new PythonQtShell_QTextTableFormat(); } + +Qt::Alignment PythonQtWrapper_QTextTableFormat::alignment(QTextTableFormat* theWrappedObject) const +{ + return ( theWrappedObject->alignment()); +} + +qreal PythonQtWrapper_QTextTableFormat::cellPadding(QTextTableFormat* theWrappedObject) const +{ + return ( theWrappedObject->cellPadding()); +} + +qreal PythonQtWrapper_QTextTableFormat::cellSpacing(QTextTableFormat* theWrappedObject) const +{ + return ( theWrappedObject->cellSpacing()); +} + +void PythonQtWrapper_QTextTableFormat::clearColumnWidthConstraints(QTextTableFormat* theWrappedObject) +{ + ( theWrappedObject->clearColumnWidthConstraints()); +} + +QVector PythonQtWrapper_QTextTableFormat::columnWidthConstraints(QTextTableFormat* theWrappedObject) const +{ + return ( theWrappedObject->columnWidthConstraints()); +} + +int PythonQtWrapper_QTextTableFormat::columns(QTextTableFormat* theWrappedObject) const +{ + return ( theWrappedObject->columns()); +} + +int PythonQtWrapper_QTextTableFormat::headerRowCount(QTextTableFormat* theWrappedObject) const +{ + return ( theWrappedObject->headerRowCount()); +} + +bool PythonQtWrapper_QTextTableFormat::isValid(QTextTableFormat* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +void PythonQtWrapper_QTextTableFormat::setAlignment(QTextTableFormat* theWrappedObject, Qt::Alignment alignment) +{ + ( theWrappedObject->setAlignment(alignment)); +} + +void PythonQtWrapper_QTextTableFormat::setCellPadding(QTextTableFormat* theWrappedObject, qreal padding) +{ + ( theWrappedObject->setCellPadding(padding)); +} + +void PythonQtWrapper_QTextTableFormat::setCellSpacing(QTextTableFormat* theWrappedObject, qreal spacing) +{ + ( theWrappedObject->setCellSpacing(spacing)); +} + +void PythonQtWrapper_QTextTableFormat::setColumnWidthConstraints(QTextTableFormat* theWrappedObject, const QVector& constraints) +{ + ( theWrappedObject->setColumnWidthConstraints(constraints)); +} + +void PythonQtWrapper_QTextTableFormat::setColumns(QTextTableFormat* theWrappedObject, int columns) +{ + ( theWrappedObject->setColumns(columns)); +} + +void PythonQtWrapper_QTextTableFormat::setHeaderRowCount(QTextTableFormat* theWrappedObject, int count) +{ + ( theWrappedObject->setHeaderRowCount(count)); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QTileRules::~PythonQtShell_QTileRules() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QTileRules* PythonQtWrapper_QTileRules::new_QTileRules(Qt::TileRule horizontalRule, Qt::TileRule verticalRule) +{ +return new PythonQtShell_QTileRules(horizontalRule, verticalRule); } + +QTileRules* PythonQtWrapper_QTileRules::new_QTileRules(Qt::TileRule rule) +{ +return new PythonQtShell_QTileRules(rule); } + + + +PythonQtShell_QTimeEdit::~PythonQtShell_QTimeEdit() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTimeEdit::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::actionEvent(arg__1); +} +void PythonQtShell_QTimeEdit::changeEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::changeEvent(event); +} +void PythonQtShell_QTimeEdit::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::childEvent(arg__1); +} +void PythonQtShell_QTimeEdit::clear() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::clear(); +} +void PythonQtShell_QTimeEdit::closeEvent(QCloseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::closeEvent(event); +} +void PythonQtShell_QTimeEdit::contextMenuEvent(QContextMenuEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::contextMenuEvent(event); +} +void PythonQtShell_QTimeEdit::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::customEvent(arg__1); +} +QDateTime PythonQtShell_QTimeEdit::dateTimeFromText(const QString& text) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dateTimeFromText"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QDateTime" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QDateTime returnValue; + void* args[2] = {NULL, (void*)&text}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("dateTimeFromText", methodInfo, result); + } else { + returnValue = *((QDateTime*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeEdit::dateTimeFromText(text); +} +int PythonQtShell_QTimeEdit::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeEdit::devType(); +} +void PythonQtShell_QTimeEdit::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::dragEnterEvent(arg__1); +} +void PythonQtShell_QTimeEdit::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::dragLeaveEvent(arg__1); +} +void PythonQtShell_QTimeEdit::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::dragMoveEvent(arg__1); +} +void PythonQtShell_QTimeEdit::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::dropEvent(arg__1); +} +void PythonQtShell_QTimeEdit::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::enterEvent(arg__1); +} +bool PythonQtShell_QTimeEdit::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeEdit::event(event); +} +bool PythonQtShell_QTimeEdit::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeEdit::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QTimeEdit::fixup(QString& input) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&input}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::fixup(input); +} +void PythonQtShell_QTimeEdit::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::focusInEvent(event); +} +bool PythonQtShell_QTimeEdit::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeEdit::focusNextPrevChild(next); +} +void PythonQtShell_QTimeEdit::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::focusOutEvent(event); +} +bool PythonQtShell_QTimeEdit::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeEdit::hasHeightForWidth(); +} +int PythonQtShell_QTimeEdit::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeEdit::heightForWidth(arg__1); +} +void PythonQtShell_QTimeEdit::hideEvent(QHideEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::hideEvent(event); +} +void PythonQtShell_QTimeEdit::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::initPainter(painter); +} +void PythonQtShell_QTimeEdit::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QTimeEdit::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeEdit::inputMethodQuery(arg__1); +} +void PythonQtShell_QTimeEdit::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::keyPressEvent(event); +} +void PythonQtShell_QTimeEdit::keyReleaseEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::keyReleaseEvent(event); +} +void PythonQtShell_QTimeEdit::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::leaveEvent(arg__1); +} +int PythonQtShell_QTimeEdit::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeEdit::metric(arg__1); +} +void PythonQtShell_QTimeEdit::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QTimeEdit::mouseMoveEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::mouseMoveEvent(event); +} +void PythonQtShell_QTimeEdit::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::mousePressEvent(event); +} +void PythonQtShell_QTimeEdit::mouseReleaseEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::mouseReleaseEvent(event); +} +void PythonQtShell_QTimeEdit::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::moveEvent(arg__1); +} +bool PythonQtShell_QTimeEdit::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeEdit::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QTimeEdit::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeEdit::paintEngine(); +} +void PythonQtShell_QTimeEdit::paintEvent(QPaintEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::paintEvent(event); +} +QPaintDevice* PythonQtShell_QTimeEdit::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeEdit::redirected(offset); +} +void PythonQtShell_QTimeEdit::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::resizeEvent(event); +} +QPainter* PythonQtShell_QTimeEdit::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeEdit::sharedPainter(); +} +void PythonQtShell_QTimeEdit::showEvent(QShowEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::showEvent(event); +} +void PythonQtShell_QTimeEdit::stepBy(int steps) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&steps}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::stepBy(steps); +} +QAbstractSpinBox::StepEnabled PythonQtShell_QTimeEdit::stepEnabled() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepEnabled"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QAbstractSpinBox::StepEnabled returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("stepEnabled", methodInfo, result); + } else { + returnValue = *((QAbstractSpinBox::StepEnabled*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeEdit::stepEnabled(); +} +void PythonQtShell_QTimeEdit::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::tabletEvent(arg__1); +} +QString PythonQtShell_QTimeEdit::textFromDateTime(const QDateTime& dt) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "textFromDateTime"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "const QDateTime&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QString returnValue; + void* args[2] = {NULL, (void*)&dt}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("textFromDateTime", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeEdit::textFromDateTime(dt); +} +void PythonQtShell_QTimeEdit::timerEvent(QTimerEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::timerEvent(event); +} +QValidator::State PythonQtShell_QTimeEdit::validate(QString& input, int& pos) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QValidator::State" , "QString&" , "int&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QValidator::State returnValue; + void* args[3] = {NULL, (void*)&input, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); + } else { + returnValue = *((QValidator::State*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTimeEdit::validate(input, pos); +} +void PythonQtShell_QTimeEdit::wheelEvent(QWheelEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTimeEdit::wheelEvent(event); +} +QTimeEdit* PythonQtWrapper_QTimeEdit::new_QTimeEdit(QWidget* parent) +{ +return new PythonQtShell_QTimeEdit(parent); } + +QTimeEdit* PythonQtWrapper_QTimeEdit::new_QTimeEdit(const QTime& time, QWidget* parent) +{ +return new PythonQtShell_QTimeEdit(time, parent); } + + + +PythonQtShell_QToolBar::~PythonQtShell_QToolBar() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QToolBar::actionEvent(QActionEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::actionEvent(event); +} +void PythonQtShell_QToolBar::changeEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::changeEvent(event); +} +void PythonQtShell_QToolBar::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::childEvent(arg__1); +} +void PythonQtShell_QToolBar::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::closeEvent(arg__1); +} +void PythonQtShell_QToolBar::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::contextMenuEvent(arg__1); +} +void PythonQtShell_QToolBar::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::customEvent(arg__1); +} +int PythonQtShell_QToolBar::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBar::devType(); +} +void PythonQtShell_QToolBar::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::dragEnterEvent(arg__1); +} +void PythonQtShell_QToolBar::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::dragLeaveEvent(arg__1); +} +void PythonQtShell_QToolBar::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::dragMoveEvent(arg__1); +} +void PythonQtShell_QToolBar::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::dropEvent(arg__1); +} +void PythonQtShell_QToolBar::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::enterEvent(arg__1); +} +bool PythonQtShell_QToolBar::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBar::event(event); +} +bool PythonQtShell_QToolBar::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBar::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QToolBar::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::focusInEvent(arg__1); +} +bool PythonQtShell_QToolBar::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBar::focusNextPrevChild(next); +} +void PythonQtShell_QToolBar::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::focusOutEvent(arg__1); +} +bool PythonQtShell_QToolBar::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBar::hasHeightForWidth(); +} +int PythonQtShell_QToolBar::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBar::heightForWidth(arg__1); +} +void PythonQtShell_QToolBar::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::hideEvent(arg__1); +} +void PythonQtShell_QToolBar::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::initPainter(painter); +} +void PythonQtShell_QToolBar::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QToolBar::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBar::inputMethodQuery(arg__1); +} +void PythonQtShell_QToolBar::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::keyPressEvent(arg__1); +} +void PythonQtShell_QToolBar::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::keyReleaseEvent(arg__1); +} +void PythonQtShell_QToolBar::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::leaveEvent(arg__1); +} +int PythonQtShell_QToolBar::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBar::metric(arg__1); +} +QSize PythonQtShell_QToolBar::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBar::minimumSizeHint(); +} +void PythonQtShell_QToolBar::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QToolBar::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::mouseMoveEvent(arg__1); +} +void PythonQtShell_QToolBar::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::mousePressEvent(arg__1); +} +void PythonQtShell_QToolBar::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QToolBar::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::moveEvent(arg__1); +} +bool PythonQtShell_QToolBar::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBar::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QToolBar::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBar::paintEngine(); +} +void PythonQtShell_QToolBar::paintEvent(QPaintEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::paintEvent(event); +} +QPaintDevice* PythonQtShell_QToolBar::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBar::redirected(offset); +} +void PythonQtShell_QToolBar::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QToolBar::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBar::sharedPainter(); +} +void PythonQtShell_QToolBar::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::showEvent(arg__1); +} +QSize PythonQtShell_QToolBar::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBar::sizeHint(); +} +void PythonQtShell_QToolBar::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::tabletEvent(arg__1); +} +void PythonQtShell_QToolBar::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::timerEvent(arg__1); +} +void PythonQtShell_QToolBar::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBar::wheelEvent(arg__1); +} +QToolBar* PythonQtWrapper_QToolBar::new_QToolBar(QWidget* parent) +{ +return new PythonQtShell_QToolBar(parent); } + +QToolBar* PythonQtWrapper_QToolBar::new_QToolBar(const QString& title, QWidget* parent) +{ +return new PythonQtShell_QToolBar(title, parent); } + +QAction* PythonQtWrapper_QToolBar::actionAt(QToolBar* theWrappedObject, const QPoint& p) const +{ + return ( theWrappedObject->actionAt(p)); +} + +QAction* PythonQtWrapper_QToolBar::actionAt(QToolBar* theWrappedObject, int x, int y) const +{ + return ( theWrappedObject->actionAt(x, y)); +} + +void PythonQtWrapper_QToolBar::actionEvent(QToolBar* theWrappedObject, QActionEvent* event) +{ + ( ((PythonQtPublicPromoter_QToolBar*)theWrappedObject)->promoted_actionEvent(event)); +} + +QRect PythonQtWrapper_QToolBar::actionGeometry(QToolBar* theWrappedObject, QAction* action) const +{ + return ( theWrappedObject->actionGeometry(action)); +} + +QAction* PythonQtWrapper_QToolBar::addAction(QToolBar* theWrappedObject, const QIcon& icon, const QString& text) +{ + return ( theWrappedObject->addAction(icon, text)); +} + +QAction* PythonQtWrapper_QToolBar::addAction(QToolBar* theWrappedObject, const QString& text) +{ + return ( theWrappedObject->addAction(text)); +} + +QAction* PythonQtWrapper_QToolBar::addSeparator(QToolBar* theWrappedObject) +{ + return ( theWrappedObject->addSeparator()); +} + +QAction* PythonQtWrapper_QToolBar::addWidget(QToolBar* theWrappedObject, QWidget* widget) +{ + return ( theWrappedObject->addWidget(widget)); +} + +Qt::ToolBarAreas PythonQtWrapper_QToolBar::allowedAreas(QToolBar* theWrappedObject) const +{ + return ( theWrappedObject->allowedAreas()); +} + +void PythonQtWrapper_QToolBar::changeEvent(QToolBar* theWrappedObject, QEvent* event) +{ + ( ((PythonQtPublicPromoter_QToolBar*)theWrappedObject)->promoted_changeEvent(event)); +} + +void PythonQtWrapper_QToolBar::clear(QToolBar* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +bool PythonQtWrapper_QToolBar::event(QToolBar* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QToolBar*)theWrappedObject)->promoted_event(event)); +} + +QSize PythonQtWrapper_QToolBar::iconSize(QToolBar* theWrappedObject) const +{ + return ( theWrappedObject->iconSize()); +} + +QAction* PythonQtWrapper_QToolBar::insertSeparator(QToolBar* theWrappedObject, QAction* before) +{ + return ( theWrappedObject->insertSeparator(before)); +} + +QAction* PythonQtWrapper_QToolBar::insertWidget(QToolBar* theWrappedObject, QAction* before, QWidget* widget) +{ + return ( theWrappedObject->insertWidget(before, widget)); +} + +bool PythonQtWrapper_QToolBar::isAreaAllowed(QToolBar* theWrappedObject, Qt::ToolBarArea area) const +{ + return ( theWrappedObject->isAreaAllowed(area)); +} + +bool PythonQtWrapper_QToolBar::isFloatable(QToolBar* theWrappedObject) const +{ + return ( theWrappedObject->isFloatable()); +} + +bool PythonQtWrapper_QToolBar::isFloating(QToolBar* theWrappedObject) const +{ + return ( theWrappedObject->isFloating()); +} + +bool PythonQtWrapper_QToolBar::isMovable(QToolBar* theWrappedObject) const +{ + return ( theWrappedObject->isMovable()); +} + +Qt::Orientation PythonQtWrapper_QToolBar::orientation(QToolBar* theWrappedObject) const +{ + return ( theWrappedObject->orientation()); +} + +void PythonQtWrapper_QToolBar::paintEvent(QToolBar* theWrappedObject, QPaintEvent* event) +{ + ( ((PythonQtPublicPromoter_QToolBar*)theWrappedObject)->promoted_paintEvent(event)); +} + +void PythonQtWrapper_QToolBar::setAllowedAreas(QToolBar* theWrappedObject, Qt::ToolBarAreas areas) +{ + ( theWrappedObject->setAllowedAreas(areas)); +} + +void PythonQtWrapper_QToolBar::setFloatable(QToolBar* theWrappedObject, bool floatable) +{ + ( theWrappedObject->setFloatable(floatable)); +} + +void PythonQtWrapper_QToolBar::setMovable(QToolBar* theWrappedObject, bool movable) +{ + ( theWrappedObject->setMovable(movable)); +} + +void PythonQtWrapper_QToolBar::setOrientation(QToolBar* theWrappedObject, Qt::Orientation orientation) +{ + ( theWrappedObject->setOrientation(orientation)); +} + +QAction* PythonQtWrapper_QToolBar::toggleViewAction(QToolBar* theWrappedObject) const +{ + return ( theWrappedObject->toggleViewAction()); +} + +Qt::ToolButtonStyle PythonQtWrapper_QToolBar::toolButtonStyle(QToolBar* theWrappedObject) const +{ + return ( theWrappedObject->toolButtonStyle()); +} + +QWidget* PythonQtWrapper_QToolBar::widgetForAction(QToolBar* theWrappedObject, QAction* action) const +{ + return ( theWrappedObject->widgetForAction(action)); +} + + + +QToolBarChangeEvent* PythonQtWrapper_QToolBarChangeEvent::new_QToolBarChangeEvent(bool t) +{ +return new QToolBarChangeEvent(t); } + +bool PythonQtWrapper_QToolBarChangeEvent::toggle(QToolBarChangeEvent* theWrappedObject) const +{ + return ( theWrappedObject->toggle()); +} + + + +PythonQtShell_QToolBox::~PythonQtShell_QToolBox() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QToolBox::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::actionEvent(arg__1); +} +void PythonQtShell_QToolBox::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::changeEvent(arg__1); +} +void PythonQtShell_QToolBox::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::childEvent(arg__1); +} +void PythonQtShell_QToolBox::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::closeEvent(arg__1); +} +void PythonQtShell_QToolBox::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::contextMenuEvent(arg__1); +} +void PythonQtShell_QToolBox::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::customEvent(arg__1); +} +int PythonQtShell_QToolBox::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBox::devType(); +} +void PythonQtShell_QToolBox::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::dragEnterEvent(arg__1); +} +void PythonQtShell_QToolBox::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::dragLeaveEvent(arg__1); +} +void PythonQtShell_QToolBox::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::dragMoveEvent(arg__1); +} +void PythonQtShell_QToolBox::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::dropEvent(arg__1); +} +void PythonQtShell_QToolBox::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::enterEvent(arg__1); +} +bool PythonQtShell_QToolBox::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBox::event(e); +} +bool PythonQtShell_QToolBox::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBox::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QToolBox::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::focusInEvent(arg__1); +} +bool PythonQtShell_QToolBox::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBox::focusNextPrevChild(next); +} +void PythonQtShell_QToolBox::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::focusOutEvent(arg__1); +} +bool PythonQtShell_QToolBox::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBox::hasHeightForWidth(); +} +int PythonQtShell_QToolBox::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBox::heightForWidth(arg__1); +} +void PythonQtShell_QToolBox::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::hideEvent(arg__1); +} +void PythonQtShell_QToolBox::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::initPainter(painter); +} +void PythonQtShell_QToolBox::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QToolBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBox::inputMethodQuery(arg__1); +} +void PythonQtShell_QToolBox::itemInserted(int index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemInserted"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::itemInserted(index); +} +void PythonQtShell_QToolBox::itemRemoved(int index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemRemoved"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::itemRemoved(index); +} +void PythonQtShell_QToolBox::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::keyPressEvent(arg__1); +} +void PythonQtShell_QToolBox::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::keyReleaseEvent(arg__1); +} +void PythonQtShell_QToolBox::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::leaveEvent(arg__1); +} +int PythonQtShell_QToolBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBox::metric(arg__1); +} +QSize PythonQtShell_QToolBox::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBox::minimumSizeHint(); +} +void PythonQtShell_QToolBox::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QToolBox::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::mouseMoveEvent(arg__1); +} +void PythonQtShell_QToolBox::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::mousePressEvent(arg__1); +} +void PythonQtShell_QToolBox::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QToolBox::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::moveEvent(arg__1); +} +bool PythonQtShell_QToolBox::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBox::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QToolBox::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBox::paintEngine(); +} +void PythonQtShell_QToolBox::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QToolBox::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBox::redirected(offset); +} +void PythonQtShell_QToolBox::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QToolBox::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolBox::sharedPainter(); +} +void PythonQtShell_QToolBox::showEvent(QShowEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::showEvent(e); +} +void PythonQtShell_QToolBox::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::tabletEvent(arg__1); +} +void PythonQtShell_QToolBox::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::timerEvent(arg__1); +} +void PythonQtShell_QToolBox::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolBox::wheelEvent(arg__1); +} +QToolBox* PythonQtWrapper_QToolBox::new_QToolBox(QWidget* parent, Qt::WindowFlags f) +{ +return new PythonQtShell_QToolBox(parent, f); } + +int PythonQtWrapper_QToolBox::addItem(QToolBox* theWrappedObject, QWidget* widget, const QIcon& icon, const QString& text) +{ + return ( theWrappedObject->addItem(widget, icon, text)); +} + +int PythonQtWrapper_QToolBox::addItem(QToolBox* theWrappedObject, QWidget* widget, const QString& text) +{ + return ( theWrappedObject->addItem(widget, text)); +} + +void PythonQtWrapper_QToolBox::changeEvent(QToolBox* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QToolBox*)theWrappedObject)->promoted_changeEvent(arg__1)); +} + +int PythonQtWrapper_QToolBox::count(QToolBox* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +int PythonQtWrapper_QToolBox::currentIndex(QToolBox* theWrappedObject) const +{ + return ( theWrappedObject->currentIndex()); +} + +QWidget* PythonQtWrapper_QToolBox::currentWidget(QToolBox* theWrappedObject) const +{ + return ( theWrappedObject->currentWidget()); +} + +bool PythonQtWrapper_QToolBox::event(QToolBox* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QToolBox*)theWrappedObject)->promoted_event(e)); +} + +int PythonQtWrapper_QToolBox::indexOf(QToolBox* theWrappedObject, QWidget* widget) const +{ + return ( theWrappedObject->indexOf(widget)); +} + +int PythonQtWrapper_QToolBox::insertItem(QToolBox* theWrappedObject, int index, QWidget* widget, const QIcon& icon, const QString& text) +{ + return ( theWrappedObject->insertItem(index, widget, icon, text)); +} + +int PythonQtWrapper_QToolBox::insertItem(QToolBox* theWrappedObject, int index, QWidget* widget, const QString& text) +{ + return ( theWrappedObject->insertItem(index, widget, text)); +} + +bool PythonQtWrapper_QToolBox::isItemEnabled(QToolBox* theWrappedObject, int index) const +{ + return ( theWrappedObject->isItemEnabled(index)); +} + +QIcon PythonQtWrapper_QToolBox::itemIcon(QToolBox* theWrappedObject, int index) const +{ + return ( theWrappedObject->itemIcon(index)); +} + +void PythonQtWrapper_QToolBox::itemInserted(QToolBox* theWrappedObject, int index) +{ + ( ((PythonQtPublicPromoter_QToolBox*)theWrappedObject)->promoted_itemInserted(index)); +} + +void PythonQtWrapper_QToolBox::itemRemoved(QToolBox* theWrappedObject, int index) +{ + ( ((PythonQtPublicPromoter_QToolBox*)theWrappedObject)->promoted_itemRemoved(index)); +} + +QString PythonQtWrapper_QToolBox::itemText(QToolBox* theWrappedObject, int index) const +{ + return ( theWrappedObject->itemText(index)); +} + +QString PythonQtWrapper_QToolBox::itemToolTip(QToolBox* theWrappedObject, int index) const +{ + return ( theWrappedObject->itemToolTip(index)); +} + +void PythonQtWrapper_QToolBox::removeItem(QToolBox* theWrappedObject, int index) +{ + ( theWrappedObject->removeItem(index)); +} + +void PythonQtWrapper_QToolBox::setItemEnabled(QToolBox* theWrappedObject, int index, bool enabled) +{ + ( theWrappedObject->setItemEnabled(index, enabled)); +} + +void PythonQtWrapper_QToolBox::setItemIcon(QToolBox* theWrappedObject, int index, const QIcon& icon) +{ + ( theWrappedObject->setItemIcon(index, icon)); +} + +void PythonQtWrapper_QToolBox::setItemText(QToolBox* theWrappedObject, int index, const QString& text) +{ + ( theWrappedObject->setItemText(index, text)); +} + +void PythonQtWrapper_QToolBox::setItemToolTip(QToolBox* theWrappedObject, int index, const QString& toolTip) +{ + ( theWrappedObject->setItemToolTip(index, toolTip)); +} + +void PythonQtWrapper_QToolBox::showEvent(QToolBox* theWrappedObject, QShowEvent* e) +{ + ( ((PythonQtPublicPromoter_QToolBox*)theWrappedObject)->promoted_showEvent(e)); +} + +QWidget* PythonQtWrapper_QToolBox::widget(QToolBox* theWrappedObject, int index) const +{ + return ( theWrappedObject->widget(index)); +} + + + +PythonQtShell_QToolButton::~PythonQtShell_QToolButton() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QToolButton::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::actionEvent(arg__1); +} +void PythonQtShell_QToolButton::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::changeEvent(arg__1); +} +void PythonQtShell_QToolButton::checkStateSet() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "checkStateSet"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::checkStateSet(); +} +void PythonQtShell_QToolButton::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::childEvent(arg__1); +} +void PythonQtShell_QToolButton::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::closeEvent(arg__1); +} +void PythonQtShell_QToolButton::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::contextMenuEvent(arg__1); +} +void PythonQtShell_QToolButton::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::customEvent(arg__1); +} +int PythonQtShell_QToolButton::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolButton::devType(); +} +void PythonQtShell_QToolButton::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::dragEnterEvent(arg__1); +} +void PythonQtShell_QToolButton::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::dragLeaveEvent(arg__1); +} +void PythonQtShell_QToolButton::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::dragMoveEvent(arg__1); +} +void PythonQtShell_QToolButton::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::dropEvent(arg__1); +} +void PythonQtShell_QToolButton::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::enterEvent(arg__1); +} +bool PythonQtShell_QToolButton::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolButton::event(e); +} +bool PythonQtShell_QToolButton::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolButton::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QToolButton::focusInEvent(QFocusEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::focusInEvent(e); +} +bool PythonQtShell_QToolButton::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolButton::focusNextPrevChild(next); +} +void PythonQtShell_QToolButton::focusOutEvent(QFocusEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::focusOutEvent(e); +} +bool PythonQtShell_QToolButton::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolButton::hasHeightForWidth(); +} +int PythonQtShell_QToolButton::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolButton::heightForWidth(arg__1); +} +void PythonQtShell_QToolButton::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::hideEvent(arg__1); +} +bool PythonQtShell_QToolButton::hitButton(const QPoint& pos) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitButton"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QPoint&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hitButton", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolButton::hitButton(pos); +} +void PythonQtShell_QToolButton::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::initPainter(painter); +} +void PythonQtShell_QToolButton::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QToolButton::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolButton::inputMethodQuery(arg__1); +} +void PythonQtShell_QToolButton::keyPressEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::keyPressEvent(e); +} +void PythonQtShell_QToolButton::keyReleaseEvent(QKeyEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::keyReleaseEvent(e); +} +void PythonQtShell_QToolButton::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::leaveEvent(arg__1); +} +int PythonQtShell_QToolButton::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolButton::metric(arg__1); +} +void PythonQtShell_QToolButton::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QToolButton::mouseMoveEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::mouseMoveEvent(e); +} +void PythonQtShell_QToolButton::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::mousePressEvent(arg__1); +} +void PythonQtShell_QToolButton::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QToolButton::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::moveEvent(arg__1); +} +bool PythonQtShell_QToolButton::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolButton::nativeEvent(eventType, message, result); +} +void PythonQtShell_QToolButton::nextCheckState() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextCheckState"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::nextCheckState(); +} +QPaintEngine* PythonQtShell_QToolButton::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolButton::paintEngine(); +} +void PythonQtShell_QToolButton::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QToolButton::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolButton::redirected(offset); +} +void PythonQtShell_QToolButton::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QToolButton::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QToolButton::sharedPainter(); +} +void PythonQtShell_QToolButton::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::showEvent(arg__1); +} +void PythonQtShell_QToolButton::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::tabletEvent(arg__1); +} +void PythonQtShell_QToolButton::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::timerEvent(arg__1); +} +void PythonQtShell_QToolButton::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QToolButton::wheelEvent(arg__1); +} +QToolButton* PythonQtWrapper_QToolButton::new_QToolButton(QWidget* parent) +{ +return new PythonQtShell_QToolButton(parent); } + +void PythonQtWrapper_QToolButton::actionEvent(QToolButton* theWrappedObject, QActionEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_actionEvent(arg__1)); +} + +Qt::ArrowType PythonQtWrapper_QToolButton::arrowType(QToolButton* theWrappedObject) const +{ + return ( theWrappedObject->arrowType()); +} + +bool PythonQtWrapper_QToolButton::autoRaise(QToolButton* theWrappedObject) const +{ + return ( theWrappedObject->autoRaise()); +} + +void PythonQtWrapper_QToolButton::changeEvent(QToolButton* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_changeEvent(arg__1)); +} + +QAction* PythonQtWrapper_QToolButton::defaultAction(QToolButton* theWrappedObject) const +{ + return ( theWrappedObject->defaultAction()); +} + +void PythonQtWrapper_QToolButton::enterEvent(QToolButton* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_enterEvent(arg__1)); +} + +bool PythonQtWrapper_QToolButton::event(QToolButton* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_event(e)); +} + +bool PythonQtWrapper_QToolButton::hitButton(QToolButton* theWrappedObject, const QPoint& pos) const +{ + return ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_hitButton(pos)); +} + +void PythonQtWrapper_QToolButton::leaveEvent(QToolButton* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_leaveEvent(arg__1)); +} + +QMenu* PythonQtWrapper_QToolButton::menu(QToolButton* theWrappedObject) const +{ + return ( theWrappedObject->menu()); +} + +QSize PythonQtWrapper_QToolButton::minimumSizeHint(QToolButton* theWrappedObject) const +{ + return ( theWrappedObject->minimumSizeHint()); +} + +void PythonQtWrapper_QToolButton::mousePressEvent(QToolButton* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_mousePressEvent(arg__1)); +} + +void PythonQtWrapper_QToolButton::mouseReleaseEvent(QToolButton* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); +} + +void PythonQtWrapper_QToolButton::nextCheckState(QToolButton* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_nextCheckState()); +} + +void PythonQtWrapper_QToolButton::paintEvent(QToolButton* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +QToolButton::ToolButtonPopupMode PythonQtWrapper_QToolButton::popupMode(QToolButton* theWrappedObject) const +{ + return ( theWrappedObject->popupMode()); +} + +void PythonQtWrapper_QToolButton::setArrowType(QToolButton* theWrappedObject, Qt::ArrowType type) +{ + ( theWrappedObject->setArrowType(type)); +} + +void PythonQtWrapper_QToolButton::setAutoRaise(QToolButton* theWrappedObject, bool enable) +{ + ( theWrappedObject->setAutoRaise(enable)); +} + +void PythonQtWrapper_QToolButton::setMenu(QToolButton* theWrappedObject, QMenu* menu) +{ + ( theWrappedObject->setMenu(menu)); +} + +void PythonQtWrapper_QToolButton::setPopupMode(QToolButton* theWrappedObject, QToolButton::ToolButtonPopupMode mode) +{ + ( theWrappedObject->setPopupMode(mode)); +} + +QSize PythonQtWrapper_QToolButton::sizeHint(QToolButton* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +void PythonQtWrapper_QToolButton::timerEvent(QToolButton* theWrappedObject, QTimerEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_timerEvent(arg__1)); +} + +Qt::ToolButtonStyle PythonQtWrapper_QToolButton::toolButtonStyle(QToolButton* theWrappedObject) const +{ + return ( theWrappedObject->toolButtonStyle()); +} + + + +QFont PythonQtWrapper_QToolTip::static_QToolTip_font() +{ + return (QToolTip::font()); +} + +void PythonQtWrapper_QToolTip::static_QToolTip_hideText() +{ + (QToolTip::hideText()); +} + +bool PythonQtWrapper_QToolTip::static_QToolTip_isVisible() +{ + return (QToolTip::isVisible()); +} + +QPalette PythonQtWrapper_QToolTip::static_QToolTip_palette() +{ + return (QToolTip::palette()); +} + +void PythonQtWrapper_QToolTip::static_QToolTip_setFont(const QFont& arg__1) +{ + (QToolTip::setFont(arg__1)); +} + +void PythonQtWrapper_QToolTip::static_QToolTip_setPalette(const QPalette& arg__1) +{ + (QToolTip::setPalette(arg__1)); +} + +void PythonQtWrapper_QToolTip::static_QToolTip_showText(const QPoint& pos, const QString& text, QWidget* w) +{ + (QToolTip::showText(pos, text, w)); +} + +void PythonQtWrapper_QToolTip::static_QToolTip_showText(const QPoint& pos, const QString& text, QWidget* w, const QRect& rect) +{ + (QToolTip::showText(pos, text, w, rect)); +} + +QString PythonQtWrapper_QToolTip::static_QToolTip_text() +{ + return (QToolTip::text()); +} + +#endif + +void PythonQtWrapper_QTouchEvent::setTarget(QTouchEvent* theWrappedObject, QObject* atarget) +{ + ( theWrappedObject->setTarget(atarget)); +} + +void PythonQtWrapper_QTouchEvent::setTouchPointStates(QTouchEvent* theWrappedObject, Qt::TouchPointStates aTouchPointStates) +{ + ( theWrappedObject->setTouchPointStates(aTouchPointStates)); +} + +void PythonQtWrapper_QTouchEvent::setTouchPoints(QTouchEvent* theWrappedObject, const QList& atouchPoints) +{ + ( theWrappedObject->setTouchPoints(atouchPoints)); +} + +QObject* PythonQtWrapper_QTouchEvent::target(QTouchEvent* theWrappedObject) const +{ + return ( theWrappedObject->target()); +} + +Qt::TouchPointStates PythonQtWrapper_QTouchEvent::touchPointStates(QTouchEvent* theWrappedObject) const +{ + return ( theWrappedObject->touchPointStates()); +} + +const QList* PythonQtWrapper_QTouchEvent::touchPoints(QTouchEvent* theWrappedObject) const +{ + return &( theWrappedObject->touchPoints()); +} + + + +QTouchEvent::TouchPoint* PythonQtWrapper_QTouchEvent_TouchPoint::new_QTouchEvent_TouchPoint(const QTouchEvent::TouchPoint& other) +{ +return new QTouchEvent::TouchPoint(other); } + +QTouchEvent::TouchPoint* PythonQtWrapper_QTouchEvent_TouchPoint::new_QTouchEvent_TouchPoint(int id) +{ +return new QTouchEvent::TouchPoint(id); } + +int PythonQtWrapper_QTouchEvent_TouchPoint::id(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->id()); +} + +QPointF PythonQtWrapper_QTouchEvent_TouchPoint::lastNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->lastNormalizedPos()); +} + +QPointF PythonQtWrapper_QTouchEvent_TouchPoint::lastPos(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->lastPos()); +} + +QPointF PythonQtWrapper_QTouchEvent_TouchPoint::lastScenePos(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->lastScenePos()); +} + +QPointF PythonQtWrapper_QTouchEvent_TouchPoint::lastScreenPos(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->lastScreenPos()); +} + +QPointF PythonQtWrapper_QTouchEvent_TouchPoint::normalizedPos(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->normalizedPos()); +} + +QTouchEvent::TouchPoint* PythonQtWrapper_QTouchEvent_TouchPoint::operator_assign(QTouchEvent::TouchPoint* theWrappedObject, const QTouchEvent::TouchPoint& other) +{ + return &( (*theWrappedObject)= other); +} + +QPointF PythonQtWrapper_QTouchEvent_TouchPoint::pos(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->pos()); +} + +qreal PythonQtWrapper_QTouchEvent_TouchPoint::pressure(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->pressure()); +} + +QVector PythonQtWrapper_QTouchEvent_TouchPoint::rawScreenPositions(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->rawScreenPositions()); +} + +QRectF PythonQtWrapper_QTouchEvent_TouchPoint::rect(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->rect()); +} + +QPointF PythonQtWrapper_QTouchEvent_TouchPoint::scenePos(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->scenePos()); +} + +QRectF PythonQtWrapper_QTouchEvent_TouchPoint::sceneRect(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->sceneRect()); +} + +QPointF PythonQtWrapper_QTouchEvent_TouchPoint::screenPos(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->screenPos()); +} + +QRectF PythonQtWrapper_QTouchEvent_TouchPoint::screenRect(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->screenRect()); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setId(QTouchEvent::TouchPoint* theWrappedObject, int id) +{ + ( theWrappedObject->setId(id)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setLastNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& lastNormalizedPos) +{ + ( theWrappedObject->setLastNormalizedPos(lastNormalizedPos)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setLastPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& lastPos) +{ + ( theWrappedObject->setLastPos(lastPos)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setLastScenePos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& lastScenePos) +{ + ( theWrappedObject->setLastScenePos(lastScenePos)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setLastScreenPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& lastScreenPos) +{ + ( theWrappedObject->setLastScreenPos(lastScreenPos)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& normalizedPos) +{ + ( theWrappedObject->setNormalizedPos(normalizedPos)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& pos) +{ + ( theWrappedObject->setPos(pos)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setPressure(QTouchEvent::TouchPoint* theWrappedObject, qreal pressure) +{ + ( theWrappedObject->setPressure(pressure)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setRawScreenPositions(QTouchEvent::TouchPoint* theWrappedObject, const QVector& positions) +{ + ( theWrappedObject->setRawScreenPositions(positions)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setRect(QTouchEvent::TouchPoint* theWrappedObject, const QRectF& rect) +{ + ( theWrappedObject->setRect(rect)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setScenePos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& scenePos) +{ + ( theWrappedObject->setScenePos(scenePos)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setSceneRect(QTouchEvent::TouchPoint* theWrappedObject, const QRectF& sceneRect) +{ + ( theWrappedObject->setSceneRect(sceneRect)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setScreenPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& screenPos) +{ + ( theWrappedObject->setScreenPos(screenPos)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setScreenRect(QTouchEvent::TouchPoint* theWrappedObject, const QRectF& screenRect) +{ + ( theWrappedObject->setScreenRect(screenRect)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setStartNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& startNormalizedPos) +{ + ( theWrappedObject->setStartNormalizedPos(startNormalizedPos)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setStartPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& startPos) +{ + ( theWrappedObject->setStartPos(startPos)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setStartScenePos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& startScenePos) +{ + ( theWrappedObject->setStartScenePos(startScenePos)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setStartScreenPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& startScreenPos) +{ + ( theWrappedObject->setStartScreenPos(startScreenPos)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setState(QTouchEvent::TouchPoint* theWrappedObject, Qt::TouchPointStates state) +{ + ( theWrappedObject->setState(state)); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::setVelocity(QTouchEvent::TouchPoint* theWrappedObject, const QVector2D& v) +{ + ( theWrappedObject->setVelocity(v)); +} + +QPointF PythonQtWrapper_QTouchEvent_TouchPoint::startNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->startNormalizedPos()); +} + +QPointF PythonQtWrapper_QTouchEvent_TouchPoint::startPos(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->startPos()); +} + +QPointF PythonQtWrapper_QTouchEvent_TouchPoint::startScenePos(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->startScenePos()); +} + +QPointF PythonQtWrapper_QTouchEvent_TouchPoint::startScreenPos(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->startScreenPos()); +} + +Qt::TouchPointState PythonQtWrapper_QTouchEvent_TouchPoint::state(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->state()); +} + +void PythonQtWrapper_QTouchEvent_TouchPoint::swap(QTouchEvent::TouchPoint* theWrappedObject, QTouchEvent::TouchPoint& other) +{ + ( theWrappedObject->swap(other)); +} + +QVector2D PythonQtWrapper_QTouchEvent_TouchPoint::velocity(QTouchEvent::TouchPoint* theWrappedObject) const +{ + return ( theWrappedObject->velocity()); +} + + + +QTransform* PythonQtWrapper_QTransform::new_QTransform() +{ +return new QTransform(); } + +QTransform* PythonQtWrapper_QTransform::new_QTransform(const QMatrix& mtx) +{ +return new QTransform(mtx); } + +QTransform* PythonQtWrapper_QTransform::new_QTransform(qreal h11, qreal h12, qreal h13, qreal h21, qreal h22, qreal h23, qreal h31, qreal h32, qreal h33) +{ +return new QTransform(h11, h12, h13, h21, h22, h23, h31, h32, h33); } + +QTransform* PythonQtWrapper_QTransform::new_QTransform(qreal h11, qreal h12, qreal h21, qreal h22, qreal dx, qreal dy) +{ +return new QTransform(h11, h12, h21, h22, dx, dy); } + +QTransform PythonQtWrapper_QTransform::adjoint(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->adjoint()); +} + +qreal PythonQtWrapper_QTransform::det(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->det()); +} + +qreal PythonQtWrapper_QTransform::determinant(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->determinant()); +} + +qreal PythonQtWrapper_QTransform::dx(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->dx()); +} + +qreal PythonQtWrapper_QTransform::dy(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->dy()); +} + +QTransform PythonQtWrapper_QTransform::static_QTransform_fromScale(qreal dx, qreal dy) +{ + return (QTransform::fromScale(dx, dy)); +} + +QTransform PythonQtWrapper_QTransform::static_QTransform_fromTranslate(qreal dx, qreal dy) +{ + return (QTransform::fromTranslate(dx, dy)); +} + +QTransform PythonQtWrapper_QTransform::inverted(QTransform* theWrappedObject, bool* invertible) const +{ + return ( theWrappedObject->inverted(invertible)); +} + +bool PythonQtWrapper_QTransform::isAffine(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->isAffine()); +} + +bool PythonQtWrapper_QTransform::isIdentity(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->isIdentity()); +} + +bool PythonQtWrapper_QTransform::isInvertible(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->isInvertible()); +} + +bool PythonQtWrapper_QTransform::isRotating(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->isRotating()); +} + +bool PythonQtWrapper_QTransform::isScaling(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->isScaling()); +} + +bool PythonQtWrapper_QTransform::isTranslating(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->isTranslating()); +} + +qreal PythonQtWrapper_QTransform::m11(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->m11()); +} + +qreal PythonQtWrapper_QTransform::m12(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->m12()); +} + +qreal PythonQtWrapper_QTransform::m13(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->m13()); +} + +qreal PythonQtWrapper_QTransform::m21(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->m21()); +} + +qreal PythonQtWrapper_QTransform::m22(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->m22()); +} + +qreal PythonQtWrapper_QTransform::m23(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->m23()); +} + +qreal PythonQtWrapper_QTransform::m31(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->m31()); +} + +qreal PythonQtWrapper_QTransform::m32(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->m32()); +} + +qreal PythonQtWrapper_QTransform::m33(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->m33()); +} + +QLine PythonQtWrapper_QTransform::map(QTransform* theWrappedObject, const QLine& l) const +{ + return ( theWrappedObject->map(l)); +} + +QLineF PythonQtWrapper_QTransform::map(QTransform* theWrappedObject, const QLineF& l) const +{ + return ( theWrappedObject->map(l)); +} + +QPainterPath PythonQtWrapper_QTransform::map(QTransform* theWrappedObject, const QPainterPath& p) const +{ + return ( theWrappedObject->map(p)); +} + +QPoint PythonQtWrapper_QTransform::map(QTransform* theWrappedObject, const QPoint& p) const +{ + return ( theWrappedObject->map(p)); +} + +QPointF PythonQtWrapper_QTransform::map(QTransform* theWrappedObject, const QPointF& p) const +{ + return ( theWrappedObject->map(p)); +} + +QPolygon PythonQtWrapper_QTransform::map(QTransform* theWrappedObject, const QPolygon& a) const +{ + return ( theWrappedObject->map(a)); +} + +QPolygonF PythonQtWrapper_QTransform::map(QTransform* theWrappedObject, const QPolygonF& a) const +{ + return ( theWrappedObject->map(a)); +} + +QRegion PythonQtWrapper_QTransform::map(QTransform* theWrappedObject, const QRegion& r) const +{ + return ( theWrappedObject->map(r)); +} + +QRect PythonQtWrapper_QTransform::mapRect(QTransform* theWrappedObject, const QRect& arg__1) const +{ + return ( theWrappedObject->mapRect(arg__1)); +} + +QRectF PythonQtWrapper_QTransform::mapRect(QTransform* theWrappedObject, const QRectF& arg__1) const +{ + return ( theWrappedObject->mapRect(arg__1)); +} + +QPolygon PythonQtWrapper_QTransform::mapToPolygon(QTransform* theWrappedObject, const QRect& r) const +{ + return ( theWrappedObject->mapToPolygon(r)); +} + +bool PythonQtWrapper_QTransform::__ne__(QTransform* theWrappedObject, const QTransform& arg__1) const +{ + return ( (*theWrappedObject)!= arg__1); +} + +QTransform PythonQtWrapper_QTransform::multiplied(QTransform* theWrappedObject, const QTransform& o) const +{ + return ( (*theWrappedObject)* o); +} + +QTransform PythonQtWrapper_QTransform::__mul__(QTransform* theWrappedObject, qreal n) +{ + return ( (*theWrappedObject)* n); +} + +QTransform* PythonQtWrapper_QTransform::__imul__(QTransform* theWrappedObject, const QTransform& arg__1) +{ + return &( (*theWrappedObject)*= arg__1); +} + +QTransform* PythonQtWrapper_QTransform::__imul__(QTransform* theWrappedObject, qreal div) +{ + return &( (*theWrappedObject)*= div); +} + +QTransform PythonQtWrapper_QTransform::__add__(QTransform* theWrappedObject, qreal n) +{ + return ( (*theWrappedObject)+ n); +} + +QTransform* PythonQtWrapper_QTransform::__iadd__(QTransform* theWrappedObject, qreal div) +{ + return &( (*theWrappedObject)+= div); +} + +QTransform PythonQtWrapper_QTransform::__sub__(QTransform* theWrappedObject, qreal n) +{ + return ( (*theWrappedObject)- n); +} + +QTransform* PythonQtWrapper_QTransform::__isub__(QTransform* theWrappedObject, qreal div) +{ + return &( (*theWrappedObject)-= div); +} + +QTransform PythonQtWrapper_QTransform::__div__(QTransform* theWrappedObject, qreal n) +{ + return ( (*theWrappedObject)/ n); +} + +QTransform* PythonQtWrapper_QTransform::__idiv__(QTransform* theWrappedObject, qreal div) +{ + return &( (*theWrappedObject)/= div); +} + +bool PythonQtWrapper_QTransform::__eq__(QTransform* theWrappedObject, const QTransform& arg__1) const +{ + return ( (*theWrappedObject)== arg__1); +} + +bool PythonQtWrapper_QTransform::static_QTransform_quadToQuad(const QPolygonF& one, const QPolygonF& two, QTransform& result) +{ + return (QTransform::quadToQuad(one, two, result)); +} + +bool PythonQtWrapper_QTransform::static_QTransform_quadToSquare(const QPolygonF& quad, QTransform& result) +{ + return (QTransform::quadToSquare(quad, result)); +} + +void PythonQtWrapper_QTransform::reset(QTransform* theWrappedObject) +{ + ( theWrappedObject->reset()); +} + +QTransform* PythonQtWrapper_QTransform::rotate(QTransform* theWrappedObject, qreal a, Qt::Axis axis) +{ + return &( theWrappedObject->rotate(a, axis)); +} + +QTransform* PythonQtWrapper_QTransform::rotateRadians(QTransform* theWrappedObject, qreal a, Qt::Axis axis) +{ + return &( theWrappedObject->rotateRadians(a, axis)); +} + +QTransform* PythonQtWrapper_QTransform::scale(QTransform* theWrappedObject, qreal sx, qreal sy) +{ + return &( theWrappedObject->scale(sx, sy)); +} + +void PythonQtWrapper_QTransform::setMatrix(QTransform* theWrappedObject, qreal m11, qreal m12, qreal m13, qreal m21, qreal m22, qreal m23, qreal m31, qreal m32, qreal m33) +{ + ( theWrappedObject->setMatrix(m11, m12, m13, m21, m22, m23, m31, m32, m33)); +} + +QTransform* PythonQtWrapper_QTransform::shear(QTransform* theWrappedObject, qreal sh, qreal sv) +{ + return &( theWrappedObject->shear(sh, sv)); +} + +bool PythonQtWrapper_QTransform::static_QTransform_squareToQuad(const QPolygonF& square, QTransform& result) +{ + return (QTransform::squareToQuad(square, result)); +} + +const QMatrix* PythonQtWrapper_QTransform::toAffine(QTransform* theWrappedObject) const +{ + return &( theWrappedObject->toAffine()); +} + +QTransform* PythonQtWrapper_QTransform::translate(QTransform* theWrappedObject, qreal dx, qreal dy) +{ + return &( theWrappedObject->translate(dx, dy)); +} + +QTransform PythonQtWrapper_QTransform::transposed(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->transposed()); +} + +QTransform::TransformationType PythonQtWrapper_QTransform::type(QTransform* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + +QString PythonQtWrapper_QTransform::py_toString(QTransform* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QTreeView::~PythonQtShell_QTreeView() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTreeView::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::actionEvent(arg__1); +} +void PythonQtShell_QTreeView::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::changeEvent(arg__1); +} +void PythonQtShell_QTreeView::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::childEvent(arg__1); +} +void PythonQtShell_QTreeView::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&editor, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::closeEditor(editor, hint); +} +void PythonQtShell_QTreeView::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::closeEvent(arg__1); +} +void PythonQtShell_QTreeView::commitData(QWidget* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::commitData(editor); +} +void PythonQtShell_QTreeView::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::contextMenuEvent(arg__1); +} +void PythonQtShell_QTreeView::currentChanged(const QModelIndex& current, const QModelIndex& previous) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)¤t, (void*)&previous}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::currentChanged(current, previous); +} +void PythonQtShell_QTreeView::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::customEvent(arg__1); +} +void PythonQtShell_QTreeView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&" , "const QVector&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&topLeft, (void*)&bottomRight, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::dataChanged(topLeft, bottomRight, roles); +} +int PythonQtShell_QTreeView::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::devType(); +} +void PythonQtShell_QTreeView::doItemsLayout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::doItemsLayout(); +} +void PythonQtShell_QTreeView::dragEnterEvent(QDragEnterEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::dragEnterEvent(event); +} +void PythonQtShell_QTreeView::dragLeaveEvent(QDragLeaveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::dragLeaveEvent(event); +} +void PythonQtShell_QTreeView::dragMoveEvent(QDragMoveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::dragMoveEvent(event); +} +void PythonQtShell_QTreeView::drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawBranches"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&rect, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::drawBranches(painter, rect, index); +} +void PythonQtShell_QTreeView::drawRow(QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawRow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&options, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::drawRow(painter, options, index); +} +void PythonQtShell_QTreeView::dropEvent(QDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::dropEvent(event); +} +bool PythonQtShell_QTreeView::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::edit(index, trigger, event); +} +void PythonQtShell_QTreeView::editorDestroyed(QObject* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QObject*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::editorDestroyed(editor); +} +void PythonQtShell_QTreeView::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::enterEvent(arg__1); +} +bool PythonQtShell_QTreeView::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::event(event); +} +bool PythonQtShell_QTreeView::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QTreeView::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::focusInEvent(event); +} +bool PythonQtShell_QTreeView::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::focusNextPrevChild(next); +} +void PythonQtShell_QTreeView::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::focusOutEvent(event); +} +bool PythonQtShell_QTreeView::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::hasHeightForWidth(); +} +int PythonQtShell_QTreeView::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::heightForWidth(arg__1); +} +void PythonQtShell_QTreeView::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::hideEvent(arg__1); +} +int PythonQtShell_QTreeView::horizontalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::horizontalOffset(); +} +void PythonQtShell_QTreeView::horizontalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::horizontalScrollbarAction(action); +} +void PythonQtShell_QTreeView::horizontalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::horizontalScrollbarValueChanged(value); +} +QModelIndex PythonQtShell_QTreeView::indexAt(const QPoint& p) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&p}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::indexAt(p); +} +void PythonQtShell_QTreeView::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::initPainter(painter); +} +void PythonQtShell_QTreeView::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::inputMethodEvent(event); +} +QVariant PythonQtShell_QTreeView::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::inputMethodQuery(query); +} +bool PythonQtShell_QTreeView::isIndexHidden(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::isIndexHidden(index); +} +void PythonQtShell_QTreeView::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::keyPressEvent(event); +} +void PythonQtShell_QTreeView::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::keyReleaseEvent(arg__1); +} +void PythonQtShell_QTreeView::keyboardSearch(const QString& search) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&search}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::keyboardSearch(search); +} +void PythonQtShell_QTreeView::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::leaveEvent(arg__1); +} +int PythonQtShell_QTreeView::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::metric(arg__1); +} +void PythonQtShell_QTreeView::mouseDoubleClickEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::mouseDoubleClickEvent(event); +} +void PythonQtShell_QTreeView::mouseMoveEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::mouseMoveEvent(event); +} +void PythonQtShell_QTreeView::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::mousePressEvent(event); +} +void PythonQtShell_QTreeView::mouseReleaseEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::mouseReleaseEvent(event); +} +void PythonQtShell_QTreeView::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::moveEvent(arg__1); +} +bool PythonQtShell_QTreeView::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QTreeView::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::paintEngine(); +} +void PythonQtShell_QTreeView::paintEvent(QPaintEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::paintEvent(event); +} +QPaintDevice* PythonQtShell_QTreeView::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::redirected(offset); +} +void PythonQtShell_QTreeView::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::reset(); +} +void PythonQtShell_QTreeView::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::resizeEvent(event); +} +void PythonQtShell_QTreeView::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::rowsAboutToBeRemoved(parent, start, end); +} +void PythonQtShell_QTreeView::rowsInserted(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::rowsInserted(parent, start, end); +} +void PythonQtShell_QTreeView::scrollContentsBy(int dx, int dy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&dx, (void*)&dy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::scrollContentsBy(dx, dy); +} +void PythonQtShell_QTreeView::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&index, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::scrollTo(index, hint); +} +void PythonQtShell_QTreeView::selectAll() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::selectAll(); +} +QList PythonQtShell_QTreeView::selectedIndexes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::selectedIndexes(); +} +void PythonQtShell_QTreeView::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::selectionChanged(selected, deselected); +} +QItemSelectionModel::SelectionFlags PythonQtShell_QTreeView::selectionCommand(const QModelIndex& index, const QEvent* event) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QItemSelectionModel::SelectionFlags returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); + } else { + returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::selectionCommand(index, event); +} +void PythonQtShell_QTreeView::setModel(QAbstractItemModel* model) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractItemModel*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&model}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::setModel(model); +} +void PythonQtShell_QTreeView::setRootIndex(const QModelIndex& index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::setRootIndex(index); +} +void PythonQtShell_QTreeView::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&rect, (void*)&command}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::setSelection(rect, command); +} +void PythonQtShell_QTreeView::setSelectionModel(QItemSelectionModel* selectionModel) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QItemSelectionModel*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&selectionModel}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::setSelectionModel(selectionModel); +} +void PythonQtShell_QTreeView::setupViewport(QWidget* viewport) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&viewport}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::setupViewport(viewport); +} +QPainter* PythonQtShell_QTreeView::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::sharedPainter(); +} +void PythonQtShell_QTreeView::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::showEvent(arg__1); +} +int PythonQtShell_QTreeView::sizeHintForColumn(int column) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&column}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::sizeHintForColumn(column); +} +int PythonQtShell_QTreeView::sizeHintForRow(int row) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&row}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::sizeHintForRow(row); +} +void PythonQtShell_QTreeView::startDrag(Qt::DropActions supportedActions) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&supportedActions}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::startDrag(supportedActions); +} +void PythonQtShell_QTreeView::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::tabletEvent(arg__1); +} +void PythonQtShell_QTreeView::timerEvent(QTimerEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::timerEvent(event); +} +void PythonQtShell_QTreeView::updateEditorData() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::updateEditorData(); +} +void PythonQtShell_QTreeView::updateEditorGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::updateEditorGeometries(); +} +void PythonQtShell_QTreeView::updateGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::updateGeometries(); +} +int PythonQtShell_QTreeView::verticalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::verticalOffset(); +} +void PythonQtShell_QTreeView::verticalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::verticalScrollbarAction(action); +} +void PythonQtShell_QTreeView::verticalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::verticalScrollbarValueChanged(value); +} +QStyleOptionViewItem PythonQtShell_QTreeView::viewOptions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStyleOptionViewItem"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStyleOptionViewItem returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); + } else { + returnValue = *((QStyleOptionViewItem*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::viewOptions(); +} +bool PythonQtShell_QTreeView::viewportEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::viewportEvent(event); +} +QSize PythonQtShell_QTreeView::viewportSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::viewportSizeHint(); +} +QRect PythonQtShell_QTreeView::visualRect(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRect returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::visualRect(index); +} +QRegion PythonQtShell_QTreeView::visualRegionForSelection(const QItemSelection& selection) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRegion returnValue; + void* args[2] = {NULL, (void*)&selection}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); + } else { + returnValue = *((QRegion*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeView::visualRegionForSelection(selection); +} +void PythonQtShell_QTreeView::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeView::wheelEvent(arg__1); +} +QTreeView* PythonQtWrapper_QTreeView::new_QTreeView(QWidget* parent) +{ +return new PythonQtShell_QTreeView(parent); } + +bool PythonQtWrapper_QTreeView::allColumnsShowFocus(QTreeView* theWrappedObject) const +{ + return ( theWrappedObject->allColumnsShowFocus()); +} + +int PythonQtWrapper_QTreeView::autoExpandDelay(QTreeView* theWrappedObject) const +{ + return ( theWrappedObject->autoExpandDelay()); +} + +int PythonQtWrapper_QTreeView::columnAt(QTreeView* theWrappedObject, int x) const +{ + return ( theWrappedObject->columnAt(x)); +} + +int PythonQtWrapper_QTreeView::columnViewportPosition(QTreeView* theWrappedObject, int column) const +{ + return ( theWrappedObject->columnViewportPosition(column)); +} + +int PythonQtWrapper_QTreeView::columnWidth(QTreeView* theWrappedObject, int column) const +{ + return ( theWrappedObject->columnWidth(column)); +} + +void PythonQtWrapper_QTreeView::currentChanged(QTreeView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_currentChanged(current, previous)); +} + +void PythonQtWrapper_QTreeView::dataChanged(QTreeView* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_dataChanged(topLeft, bottomRight, roles)); +} + +void PythonQtWrapper_QTreeView::doItemsLayout(QTreeView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_doItemsLayout()); +} + +void PythonQtWrapper_QTreeView::dragMoveEvent(QTreeView* theWrappedObject, QDragMoveEvent* event) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_dragMoveEvent(event)); +} + +void PythonQtWrapper_QTreeView::drawBranches(QTreeView* theWrappedObject, QPainter* painter, const QRect& rect, const QModelIndex& index) const +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_drawBranches(painter, rect, index)); +} + +void PythonQtWrapper_QTreeView::drawRow(QTreeView* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_drawRow(painter, options, index)); +} + +bool PythonQtWrapper_QTreeView::expandsOnDoubleClick(QTreeView* theWrappedObject) const +{ + return ( theWrappedObject->expandsOnDoubleClick()); +} + +QHeaderView* PythonQtWrapper_QTreeView::header(QTreeView* theWrappedObject) const +{ + return ( theWrappedObject->header()); +} + +int PythonQtWrapper_QTreeView::horizontalOffset(QTreeView* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_horizontalOffset()); +} + +void PythonQtWrapper_QTreeView::horizontalScrollbarAction(QTreeView* theWrappedObject, int action) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_horizontalScrollbarAction(action)); +} + +int PythonQtWrapper_QTreeView::indentation(QTreeView* theWrappedObject) const +{ + return ( theWrappedObject->indentation()); +} + +QModelIndex PythonQtWrapper_QTreeView::indexAbove(QTreeView* theWrappedObject, const QModelIndex& index) const +{ + return ( theWrappedObject->indexAbove(index)); +} + +QModelIndex PythonQtWrapper_QTreeView::indexAt(QTreeView* theWrappedObject, const QPoint& p) const +{ + return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_indexAt(p)); +} + +QModelIndex PythonQtWrapper_QTreeView::indexBelow(QTreeView* theWrappedObject, const QModelIndex& index) const +{ + return ( theWrappedObject->indexBelow(index)); +} + +bool PythonQtWrapper_QTreeView::isAnimated(QTreeView* theWrappedObject) const +{ + return ( theWrappedObject->isAnimated()); +} + +bool PythonQtWrapper_QTreeView::isColumnHidden(QTreeView* theWrappedObject, int column) const +{ + return ( theWrappedObject->isColumnHidden(column)); +} + +bool PythonQtWrapper_QTreeView::isExpanded(QTreeView* theWrappedObject, const QModelIndex& index) const +{ + return ( theWrappedObject->isExpanded(index)); +} + +bool PythonQtWrapper_QTreeView::isFirstColumnSpanned(QTreeView* theWrappedObject, int row, const QModelIndex& parent) const +{ + return ( theWrappedObject->isFirstColumnSpanned(row, parent)); +} + +bool PythonQtWrapper_QTreeView::isHeaderHidden(QTreeView* theWrappedObject) const +{ + return ( theWrappedObject->isHeaderHidden()); +} + +bool PythonQtWrapper_QTreeView::isIndexHidden(QTreeView* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_isIndexHidden(index)); +} + +bool PythonQtWrapper_QTreeView::isRowHidden(QTreeView* theWrappedObject, int row, const QModelIndex& parent) const +{ + return ( theWrappedObject->isRowHidden(row, parent)); +} + +bool PythonQtWrapper_QTreeView::isSortingEnabled(QTreeView* theWrappedObject) const +{ + return ( theWrappedObject->isSortingEnabled()); +} + +bool PythonQtWrapper_QTreeView::itemsExpandable(QTreeView* theWrappedObject) const +{ + return ( theWrappedObject->itemsExpandable()); +} + +void PythonQtWrapper_QTreeView::keyPressEvent(QTreeView* theWrappedObject, QKeyEvent* event) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_keyPressEvent(event)); +} + +void PythonQtWrapper_QTreeView::keyboardSearch(QTreeView* theWrappedObject, const QString& search) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_keyboardSearch(search)); +} + +void PythonQtWrapper_QTreeView::mouseDoubleClickEvent(QTreeView* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_mouseDoubleClickEvent(event)); +} + +void PythonQtWrapper_QTreeView::mouseMoveEvent(QTreeView* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_mouseMoveEvent(event)); +} + +void PythonQtWrapper_QTreeView::mousePressEvent(QTreeView* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_mousePressEvent(event)); +} + +void PythonQtWrapper_QTreeView::mouseReleaseEvent(QTreeView* theWrappedObject, QMouseEvent* event) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_mouseReleaseEvent(event)); +} + +void PythonQtWrapper_QTreeView::paintEvent(QTreeView* theWrappedObject, QPaintEvent* event) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_paintEvent(event)); +} + +void PythonQtWrapper_QTreeView::reset(QTreeView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_reset()); +} + +bool PythonQtWrapper_QTreeView::rootIsDecorated(QTreeView* theWrappedObject) const +{ + return ( theWrappedObject->rootIsDecorated()); +} + +void PythonQtWrapper_QTreeView::rowsAboutToBeRemoved(QTreeView* theWrappedObject, const QModelIndex& parent, int start, int end) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_rowsAboutToBeRemoved(parent, start, end)); +} + +void PythonQtWrapper_QTreeView::rowsInserted(QTreeView* theWrappedObject, const QModelIndex& parent, int start, int end) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_rowsInserted(parent, start, end)); +} + +void PythonQtWrapper_QTreeView::scrollContentsBy(QTreeView* theWrappedObject, int dx, int dy) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); +} + +void PythonQtWrapper_QTreeView::scrollTo(QTreeView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_scrollTo(index, hint)); +} + +void PythonQtWrapper_QTreeView::selectAll(QTreeView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_selectAll()); +} + +QList PythonQtWrapper_QTreeView::selectedIndexes(QTreeView* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_selectedIndexes()); +} + +void PythonQtWrapper_QTreeView::selectionChanged(QTreeView* theWrappedObject, const QItemSelection& selected, const QItemSelection& deselected) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_selectionChanged(selected, deselected)); +} + +void PythonQtWrapper_QTreeView::setAllColumnsShowFocus(QTreeView* theWrappedObject, bool enable) +{ + ( theWrappedObject->setAllColumnsShowFocus(enable)); +} + +void PythonQtWrapper_QTreeView::setAnimated(QTreeView* theWrappedObject, bool enable) +{ + ( theWrappedObject->setAnimated(enable)); +} + +void PythonQtWrapper_QTreeView::setAutoExpandDelay(QTreeView* theWrappedObject, int delay) +{ + ( theWrappedObject->setAutoExpandDelay(delay)); +} + +void PythonQtWrapper_QTreeView::setColumnHidden(QTreeView* theWrappedObject, int column, bool hide) +{ + ( theWrappedObject->setColumnHidden(column, hide)); +} + +void PythonQtWrapper_QTreeView::setColumnWidth(QTreeView* theWrappedObject, int column, int width) +{ + ( theWrappedObject->setColumnWidth(column, width)); +} + +void PythonQtWrapper_QTreeView::setExpanded(QTreeView* theWrappedObject, const QModelIndex& index, bool expand) +{ + ( theWrappedObject->setExpanded(index, expand)); +} + +void PythonQtWrapper_QTreeView::setExpandsOnDoubleClick(QTreeView* theWrappedObject, bool enable) +{ + ( theWrappedObject->setExpandsOnDoubleClick(enable)); +} + +void PythonQtWrapper_QTreeView::setFirstColumnSpanned(QTreeView* theWrappedObject, int row, const QModelIndex& parent, bool span) +{ + ( theWrappedObject->setFirstColumnSpanned(row, parent, span)); +} + +void PythonQtWrapper_QTreeView::setHeader(QTreeView* theWrappedObject, QHeaderView* header) +{ + ( theWrappedObject->setHeader(header)); +} + +void PythonQtWrapper_QTreeView::setHeaderHidden(QTreeView* theWrappedObject, bool hide) +{ + ( theWrappedObject->setHeaderHidden(hide)); +} + +void PythonQtWrapper_QTreeView::setIndentation(QTreeView* theWrappedObject, int i) +{ + ( theWrappedObject->setIndentation(i)); +} + +void PythonQtWrapper_QTreeView::setItemsExpandable(QTreeView* theWrappedObject, bool enable) +{ + ( theWrappedObject->setItemsExpandable(enable)); +} + +void PythonQtWrapper_QTreeView::setModel(QTreeView* theWrappedObject, QAbstractItemModel* model) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_setModel(model)); +} + +void PythonQtWrapper_QTreeView::setRootIndex(QTreeView* theWrappedObject, const QModelIndex& index) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_setRootIndex(index)); +} + +void PythonQtWrapper_QTreeView::setRootIsDecorated(QTreeView* theWrappedObject, bool show) +{ + ( theWrappedObject->setRootIsDecorated(show)); +} + +void PythonQtWrapper_QTreeView::setRowHidden(QTreeView* theWrappedObject, int row, const QModelIndex& parent, bool hide) +{ + ( theWrappedObject->setRowHidden(row, parent, hide)); +} + +void PythonQtWrapper_QTreeView::setSelection(QTreeView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_setSelection(rect, command)); +} + +void PythonQtWrapper_QTreeView::setSelectionModel(QTreeView* theWrappedObject, QItemSelectionModel* selectionModel) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_setSelectionModel(selectionModel)); +} + +void PythonQtWrapper_QTreeView::setSortingEnabled(QTreeView* theWrappedObject, bool enable) +{ + ( theWrappedObject->setSortingEnabled(enable)); +} + +void PythonQtWrapper_QTreeView::setUniformRowHeights(QTreeView* theWrappedObject, bool uniform) +{ + ( theWrappedObject->setUniformRowHeights(uniform)); +} + +void PythonQtWrapper_QTreeView::setWordWrap(QTreeView* theWrappedObject, bool on) +{ + ( theWrappedObject->setWordWrap(on)); +} + +int PythonQtWrapper_QTreeView::sizeHintForColumn(QTreeView* theWrappedObject, int column) const +{ + return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_sizeHintForColumn(column)); +} + +void PythonQtWrapper_QTreeView::sortByColumn(QTreeView* theWrappedObject, int column, Qt::SortOrder order) +{ + ( theWrappedObject->sortByColumn(column, order)); +} + +void PythonQtWrapper_QTreeView::timerEvent(QTreeView* theWrappedObject, QTimerEvent* event) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_timerEvent(event)); +} + +bool PythonQtWrapper_QTreeView::uniformRowHeights(QTreeView* theWrappedObject) const +{ + return ( theWrappedObject->uniformRowHeights()); +} + +void PythonQtWrapper_QTreeView::updateGeometries(QTreeView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_updateGeometries()); +} + +int PythonQtWrapper_QTreeView::verticalOffset(QTreeView* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_verticalOffset()); +} + +bool PythonQtWrapper_QTreeView::viewportEvent(QTreeView* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_viewportEvent(event)); +} + +QRect PythonQtWrapper_QTreeView::visualRect(QTreeView* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_visualRect(index)); +} + +QRegion PythonQtWrapper_QTreeView::visualRegionForSelection(QTreeView* theWrappedObject, const QItemSelection& selection) const +{ + return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_visualRegionForSelection(selection)); +} + +bool PythonQtWrapper_QTreeView::wordWrap(QTreeView* theWrappedObject) const +{ + return ( theWrappedObject->wordWrap()); +} + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui8.h b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui8.h new file mode 100644 index 00000000..ac778100 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui8.h @@ -0,0 +1,1858 @@ +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined(QT_WIDGETS_LIB) +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif + +class PythonQtShell_QTextDocument : public QTextDocument +{ +public: + PythonQtShell_QTextDocument(QObject* parent = 0):QTextDocument(parent),_wrapper(NULL) {}; + PythonQtShell_QTextDocument(const QString& text, QObject* parent = 0):QTextDocument(text, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QTextDocument(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void clear(); +virtual QTextObject* createObject(const QTextFormat& f); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual QVariant loadResource(int type, const QUrl& name); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QTextDocument : public QTextDocument +{ public: +inline void promoted_clear() { QTextDocument::clear(); } +inline QTextObject* promoted_createObject(const QTextFormat& f) { return QTextDocument::createObject(f); } +inline QVariant promoted_loadResource(int type, const QUrl& name) { return QTextDocument::loadResource(type, name); } +}; + +class PythonQtWrapper_QTextDocument : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Stacks ResourceType MetaInformation FindFlag ) +Q_FLAGS(FindFlags ) +enum Stacks{ + UndoStack = QTextDocument::UndoStack, RedoStack = QTextDocument::RedoStack, UndoAndRedoStacks = QTextDocument::UndoAndRedoStacks}; +enum ResourceType{ + HtmlResource = QTextDocument::HtmlResource, ImageResource = QTextDocument::ImageResource, StyleSheetResource = QTextDocument::StyleSheetResource, UserResource = QTextDocument::UserResource}; +enum MetaInformation{ + DocumentTitle = QTextDocument::DocumentTitle, DocumentUrl = QTextDocument::DocumentUrl}; +enum FindFlag{ + FindBackward = QTextDocument::FindBackward, FindCaseSensitively = QTextDocument::FindCaseSensitively, FindWholeWords = QTextDocument::FindWholeWords}; +Q_DECLARE_FLAGS(FindFlags, FindFlag) +public slots: +QTextDocument* new_QTextDocument(QObject* parent = 0); +QTextDocument* new_QTextDocument(const QString& text, QObject* parent = 0); +void delete_QTextDocument(QTextDocument* obj) { delete obj; } + void addResource(QTextDocument* theWrappedObject, int type, const QUrl& name, const QVariant& resource); + void adjustSize(QTextDocument* theWrappedObject); + QVector allFormats(QTextDocument* theWrappedObject) const; + int availableRedoSteps(QTextDocument* theWrappedObject) const; + int availableUndoSteps(QTextDocument* theWrappedObject) const; + QTextBlock begin(QTextDocument* theWrappedObject) const; + int blockCount(QTextDocument* theWrappedObject) const; + QChar characterAt(QTextDocument* theWrappedObject, int pos) const; + int characterCount(QTextDocument* theWrappedObject) const; + void clear(QTextDocument* theWrappedObject); + void clearUndoRedoStacks(QTextDocument* theWrappedObject, QTextDocument::Stacks historyToClear = QTextDocument::UndoAndRedoStacks); + QTextDocument* clone(QTextDocument* theWrappedObject, QObject* parent = 0) const; + QTextObject* createObject(QTextDocument* theWrappedObject, const QTextFormat& f); + Qt::CursorMoveStyle defaultCursorMoveStyle(QTextDocument* theWrappedObject) const; + QFont defaultFont(QTextDocument* theWrappedObject) const; + QString defaultStyleSheet(QTextDocument* theWrappedObject) const; + QTextOption defaultTextOption(QTextDocument* theWrappedObject) const; + QAbstractTextDocumentLayout* documentLayout(QTextDocument* theWrappedObject) const; + qreal documentMargin(QTextDocument* theWrappedObject) const; + void drawContents(QTextDocument* theWrappedObject, QPainter* painter, const QRectF& rect = QRectF()); + QTextBlock end(QTextDocument* theWrappedObject) const; + QTextCursor find(QTextDocument* theWrappedObject, const QRegExp& expr, const QTextCursor& from, QTextDocument::FindFlags options = 0) const; + QTextCursor find(QTextDocument* theWrappedObject, const QRegExp& expr, int from = 0, QTextDocument::FindFlags options = 0) const; + QTextCursor find(QTextDocument* theWrappedObject, const QString& subString, const QTextCursor& from, QTextDocument::FindFlags options = 0) const; + QTextCursor find(QTextDocument* theWrappedObject, const QString& subString, int from = 0, QTextDocument::FindFlags options = 0) const; + QTextBlock findBlock(QTextDocument* theWrappedObject, int pos) const; + QTextBlock findBlockByLineNumber(QTextDocument* theWrappedObject, int blockNumber) const; + QTextBlock findBlockByNumber(QTextDocument* theWrappedObject, int blockNumber) const; + QTextBlock firstBlock(QTextDocument* theWrappedObject) const; + QTextFrame* frameAt(QTextDocument* theWrappedObject, int pos) const; + qreal idealWidth(QTextDocument* theWrappedObject) const; + qreal indentWidth(QTextDocument* theWrappedObject) const; + bool isEmpty(QTextDocument* theWrappedObject) const; + bool isModified(QTextDocument* theWrappedObject) const; + bool isRedoAvailable(QTextDocument* theWrappedObject) const; + bool isUndoAvailable(QTextDocument* theWrappedObject) const; + bool isUndoRedoEnabled(QTextDocument* theWrappedObject) const; + QTextBlock lastBlock(QTextDocument* theWrappedObject) const; + int lineCount(QTextDocument* theWrappedObject) const; + QVariant loadResource(QTextDocument* theWrappedObject, int type, const QUrl& name); + void markContentsDirty(QTextDocument* theWrappedObject, int from, int length); + int maximumBlockCount(QTextDocument* theWrappedObject) const; + QString metaInformation(QTextDocument* theWrappedObject, QTextDocument::MetaInformation info) const; + QTextObject* object(QTextDocument* theWrappedObject, int objectIndex) const; + QTextObject* objectForFormat(QTextDocument* theWrappedObject, const QTextFormat& arg__1) const; + int pageCount(QTextDocument* theWrappedObject) const; + QSizeF pageSize(QTextDocument* theWrappedObject) const; + void redo(QTextDocument* theWrappedObject, QTextCursor* cursor); + QVariant resource(QTextDocument* theWrappedObject, int type, const QUrl& name) const; + int revision(QTextDocument* theWrappedObject) const; + QTextFrame* rootFrame(QTextDocument* theWrappedObject) const; + void setDefaultCursorMoveStyle(QTextDocument* theWrappedObject, Qt::CursorMoveStyle style); + void setDefaultFont(QTextDocument* theWrappedObject, const QFont& font); + void setDefaultStyleSheet(QTextDocument* theWrappedObject, const QString& sheet); + void setDefaultTextOption(QTextDocument* theWrappedObject, const QTextOption& option); + void setDocumentLayout(QTextDocument* theWrappedObject, QAbstractTextDocumentLayout* layout); + void setDocumentMargin(QTextDocument* theWrappedObject, qreal margin); + void setHtml(QTextDocument* theWrappedObject, const QString& html); + void setIndentWidth(QTextDocument* theWrappedObject, qreal width); + void setMaximumBlockCount(QTextDocument* theWrappedObject, int maximum); + void setMetaInformation(QTextDocument* theWrappedObject, QTextDocument::MetaInformation info, const QString& arg__2); + void setPageSize(QTextDocument* theWrappedObject, const QSizeF& size); + void setPlainText(QTextDocument* theWrappedObject, const QString& text); + void setTextWidth(QTextDocument* theWrappedObject, qreal width); + void setUndoRedoEnabled(QTextDocument* theWrappedObject, bool enable); + void setUseDesignMetrics(QTextDocument* theWrappedObject, bool b); + QSizeF size(QTextDocument* theWrappedObject) const; + qreal textWidth(QTextDocument* theWrappedObject) const; + QString toHtml(QTextDocument* theWrappedObject, const QByteArray& encoding = QByteArray()) const; + QString toPlainText(QTextDocument* theWrappedObject) const; + void undo(QTextDocument* theWrappedObject, QTextCursor* cursor); + bool useDesignMetrics(QTextDocument* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QTextDocumentFragment : public QObject +{ Q_OBJECT +public: +public slots: +QTextDocumentFragment* new_QTextDocumentFragment(); +QTextDocumentFragment* new_QTextDocumentFragment(const QTextCursor& range); +QTextDocumentFragment* new_QTextDocumentFragment(const QTextDocument* document); +QTextDocumentFragment* new_QTextDocumentFragment(const QTextDocumentFragment& rhs); +void delete_QTextDocumentFragment(QTextDocumentFragment* obj) { delete obj; } + QTextDocumentFragment static_QTextDocumentFragment_fromHtml(const QString& html); + QTextDocumentFragment static_QTextDocumentFragment_fromHtml(const QString& html, const QTextDocument* resourceProvider); + QTextDocumentFragment static_QTextDocumentFragment_fromPlainText(const QString& plainText); + bool isEmpty(QTextDocumentFragment* theWrappedObject) const; + QString toHtml(QTextDocumentFragment* theWrappedObject, const QByteArray& encoding = QByteArray()) const; + QString toPlainText(QTextDocumentFragment* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QTextDocumentWriter : public QObject +{ Q_OBJECT +public: +public slots: +QTextDocumentWriter* new_QTextDocumentWriter(); +QTextDocumentWriter* new_QTextDocumentWriter(QIODevice* device, const QByteArray& format); +QTextDocumentWriter* new_QTextDocumentWriter(const QString& fileName, const QByteArray& format = QByteArray()); +void delete_QTextDocumentWriter(QTextDocumentWriter* obj) { delete obj; } + QTextCodec* codec(QTextDocumentWriter* theWrappedObject) const; + QIODevice* device(QTextDocumentWriter* theWrappedObject) const; + QString fileName(QTextDocumentWriter* theWrappedObject) const; + QByteArray format(QTextDocumentWriter* theWrappedObject) const; + void setCodec(QTextDocumentWriter* theWrappedObject, QTextCodec* codec); + void setDevice(QTextDocumentWriter* theWrappedObject, QIODevice* device); + void setFileName(QTextDocumentWriter* theWrappedObject, const QString& fileName); + void setFormat(QTextDocumentWriter* theWrappedObject, const QByteArray& format); + QList static_QTextDocumentWriter_supportedDocumentFormats(); + bool write(QTextDocumentWriter* theWrappedObject, const QTextDocument* document); + bool write(QTextDocumentWriter* theWrappedObject, const QTextDocumentFragment& fragment); +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QTextEdit : public QTextEdit +{ +public: + PythonQtShell_QTextEdit(QWidget* parent = 0):QTextEdit(parent),_wrapper(NULL) {}; + PythonQtShell_QTextEdit(const QString& text, QWidget* parent = 0):QTextEdit(text, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QTextEdit(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual bool canInsertFromMimeData(const QMimeData* source) const; +virtual void changeEvent(QEvent* e); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* e); +virtual QMimeData* createMimeDataFromSelection() const; +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void doSetTextCursor(const QTextCursor& cursor); +virtual void dragEnterEvent(QDragEnterEvent* e); +virtual void dragLeaveEvent(QDragLeaveEvent* e); +virtual void dragMoveEvent(QDragMoveEvent* e); +virtual void dropEvent(QDropEvent* e); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* e); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* e); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery property) const; +virtual void insertFromMimeData(const QMimeData* source); +virtual void keyPressEvent(QKeyEvent* e); +virtual void keyReleaseEvent(QKeyEvent* e); +virtual void leaveEvent(QEvent* arg__1); +virtual QVariant loadResource(int type, const QUrl& name); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* e); +virtual void mouseMoveEvent(QMouseEvent* e); +virtual void mousePressEvent(QMouseEvent* e); +virtual void mouseReleaseEvent(QMouseEvent* e); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* e); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* e); +virtual void scrollContentsBy(int dx, int dy); +virtual void setupViewport(QWidget* viewport); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* e); +virtual bool viewportEvent(QEvent* arg__1); +virtual QSize viewportSizeHint() const; +virtual void wheelEvent(QWheelEvent* e); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QTextEdit : public QTextEdit +{ public: +inline bool promoted_canInsertFromMimeData(const QMimeData* source) const { return QTextEdit::canInsertFromMimeData(source); } +inline void promoted_changeEvent(QEvent* e) { QTextEdit::changeEvent(e); } +inline void promoted_contextMenuEvent(QContextMenuEvent* e) { QTextEdit::contextMenuEvent(e); } +inline QMimeData* promoted_createMimeDataFromSelection() const { return QTextEdit::createMimeDataFromSelection(); } +inline void promoted_doSetTextCursor(const QTextCursor& cursor) { QTextEdit::doSetTextCursor(cursor); } +inline void promoted_dragEnterEvent(QDragEnterEvent* e) { QTextEdit::dragEnterEvent(e); } +inline void promoted_dragLeaveEvent(QDragLeaveEvent* e) { QTextEdit::dragLeaveEvent(e); } +inline void promoted_dragMoveEvent(QDragMoveEvent* e) { QTextEdit::dragMoveEvent(e); } +inline void promoted_dropEvent(QDropEvent* e) { QTextEdit::dropEvent(e); } +inline bool promoted_event(QEvent* e) { return QTextEdit::event(e); } +inline void promoted_focusInEvent(QFocusEvent* e) { QTextEdit::focusInEvent(e); } +inline bool promoted_focusNextPrevChild(bool next) { return QTextEdit::focusNextPrevChild(next); } +inline void promoted_focusOutEvent(QFocusEvent* e) { QTextEdit::focusOutEvent(e); } +inline void promoted_inputMethodEvent(QInputMethodEvent* arg__1) { QTextEdit::inputMethodEvent(arg__1); } +inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery property) const { return QTextEdit::inputMethodQuery(property); } +inline void promoted_insertFromMimeData(const QMimeData* source) { QTextEdit::insertFromMimeData(source); } +inline void promoted_keyPressEvent(QKeyEvent* e) { QTextEdit::keyPressEvent(e); } +inline void promoted_keyReleaseEvent(QKeyEvent* e) { QTextEdit::keyReleaseEvent(e); } +inline QVariant promoted_loadResource(int type, const QUrl& name) { return QTextEdit::loadResource(type, name); } +inline void promoted_mouseDoubleClickEvent(QMouseEvent* e) { QTextEdit::mouseDoubleClickEvent(e); } +inline void promoted_mouseMoveEvent(QMouseEvent* e) { QTextEdit::mouseMoveEvent(e); } +inline void promoted_mousePressEvent(QMouseEvent* e) { QTextEdit::mousePressEvent(e); } +inline void promoted_mouseReleaseEvent(QMouseEvent* e) { QTextEdit::mouseReleaseEvent(e); } +inline void promoted_paintEvent(QPaintEvent* e) { QTextEdit::paintEvent(e); } +inline void promoted_resizeEvent(QResizeEvent* e) { QTextEdit::resizeEvent(e); } +inline void promoted_scrollContentsBy(int dx, int dy) { QTextEdit::scrollContentsBy(dx, dy); } +inline void promoted_showEvent(QShowEvent* arg__1) { QTextEdit::showEvent(arg__1); } +inline void promoted_timerEvent(QTimerEvent* e) { QTextEdit::timerEvent(e); } +inline void promoted_wheelEvent(QWheelEvent* e) { QTextEdit::wheelEvent(e); } +}; + +class PythonQtWrapper_QTextEdit : public QObject +{ Q_OBJECT +public: +Q_ENUMS(AutoFormattingFlag ) +Q_FLAGS(AutoFormatting ) +enum AutoFormattingFlag{ + AutoNone = QTextEdit::AutoNone, AutoBulletList = QTextEdit::AutoBulletList, AutoAll = QTextEdit::AutoAll}; +Q_DECLARE_FLAGS(AutoFormatting, AutoFormattingFlag) +public slots: +QTextEdit* new_QTextEdit(QWidget* parent = 0); +QTextEdit* new_QTextEdit(const QString& text, QWidget* parent = 0); +void delete_QTextEdit(QTextEdit* obj) { delete obj; } + bool acceptRichText(QTextEdit* theWrappedObject) const; + Qt::Alignment alignment(QTextEdit* theWrappedObject) const; + QString anchorAt(QTextEdit* theWrappedObject, const QPoint& pos) const; + QTextEdit::AutoFormatting autoFormatting(QTextEdit* theWrappedObject) const; + bool canInsertFromMimeData(QTextEdit* theWrappedObject, const QMimeData* source) const; + bool canPaste(QTextEdit* theWrappedObject) const; + void changeEvent(QTextEdit* theWrappedObject, QEvent* e); + void contextMenuEvent(QTextEdit* theWrappedObject, QContextMenuEvent* e); + QMimeData* createMimeDataFromSelection(QTextEdit* theWrappedObject) const; + QMenu* createStandardContextMenu(QTextEdit* theWrappedObject); + QMenu* createStandardContextMenu(QTextEdit* theWrappedObject, const QPoint& position); + QTextCharFormat currentCharFormat(QTextEdit* theWrappedObject) const; + QFont currentFont(QTextEdit* theWrappedObject) const; + QTextCursor cursorForPosition(QTextEdit* theWrappedObject, const QPoint& pos) const; + QRect cursorRect(QTextEdit* theWrappedObject) const; + QRect cursorRect(QTextEdit* theWrappedObject, const QTextCursor& cursor) const; + int cursorWidth(QTextEdit* theWrappedObject) const; + void doSetTextCursor(QTextEdit* theWrappedObject, const QTextCursor& cursor); + QTextDocument* document(QTextEdit* theWrappedObject) const; + QString documentTitle(QTextEdit* theWrappedObject) const; + void dragEnterEvent(QTextEdit* theWrappedObject, QDragEnterEvent* e); + void dragLeaveEvent(QTextEdit* theWrappedObject, QDragLeaveEvent* e); + void dragMoveEvent(QTextEdit* theWrappedObject, QDragMoveEvent* e); + void dropEvent(QTextEdit* theWrappedObject, QDropEvent* e); + void ensureCursorVisible(QTextEdit* theWrappedObject); + bool event(QTextEdit* theWrappedObject, QEvent* e); + QList extraSelections(QTextEdit* theWrappedObject) const; + bool find(QTextEdit* theWrappedObject, const QString& exp, QTextDocument::FindFlags options = 0); + void focusInEvent(QTextEdit* theWrappedObject, QFocusEvent* e); + bool focusNextPrevChild(QTextEdit* theWrappedObject, bool next); + void focusOutEvent(QTextEdit* theWrappedObject, QFocusEvent* e); + QString fontFamily(QTextEdit* theWrappedObject) const; + bool fontItalic(QTextEdit* theWrappedObject) const; + qreal fontPointSize(QTextEdit* theWrappedObject) const; + bool fontUnderline(QTextEdit* theWrappedObject) const; + int fontWeight(QTextEdit* theWrappedObject) const; + void inputMethodEvent(QTextEdit* theWrappedObject, QInputMethodEvent* arg__1); + QVariant inputMethodQuery(QTextEdit* theWrappedObject, Qt::InputMethodQuery property) const; + void insertFromMimeData(QTextEdit* theWrappedObject, const QMimeData* source); + bool isReadOnly(QTextEdit* theWrappedObject) const; + bool isUndoRedoEnabled(QTextEdit* theWrappedObject) const; + void keyPressEvent(QTextEdit* theWrappedObject, QKeyEvent* e); + void keyReleaseEvent(QTextEdit* theWrappedObject, QKeyEvent* e); + int lineWrapColumnOrWidth(QTextEdit* theWrappedObject) const; + QTextEdit::LineWrapMode lineWrapMode(QTextEdit* theWrappedObject) const; + QVariant loadResource(QTextEdit* theWrappedObject, int type, const QUrl& name); + void mergeCurrentCharFormat(QTextEdit* theWrappedObject, const QTextCharFormat& modifier); + void mouseDoubleClickEvent(QTextEdit* theWrappedObject, QMouseEvent* e); + void mouseMoveEvent(QTextEdit* theWrappedObject, QMouseEvent* e); + void mousePressEvent(QTextEdit* theWrappedObject, QMouseEvent* e); + void mouseReleaseEvent(QTextEdit* theWrappedObject, QMouseEvent* e); + void moveCursor(QTextEdit* theWrappedObject, QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor); + bool overwriteMode(QTextEdit* theWrappedObject) const; + void paintEvent(QTextEdit* theWrappedObject, QPaintEvent* e); + void resizeEvent(QTextEdit* theWrappedObject, QResizeEvent* e); + void scrollContentsBy(QTextEdit* theWrappedObject, int dx, int dy); + void setAcceptRichText(QTextEdit* theWrappedObject, bool accept); + void setAutoFormatting(QTextEdit* theWrappedObject, QTextEdit::AutoFormatting features); + void setCurrentCharFormat(QTextEdit* theWrappedObject, const QTextCharFormat& format); + void setCursorWidth(QTextEdit* theWrappedObject, int width); + void setDocument(QTextEdit* theWrappedObject, QTextDocument* document); + void setDocumentTitle(QTextEdit* theWrappedObject, const QString& title); + void setExtraSelections(QTextEdit* theWrappedObject, const QList& selections); + void setLineWrapColumnOrWidth(QTextEdit* theWrappedObject, int w); + void setLineWrapMode(QTextEdit* theWrappedObject, QTextEdit::LineWrapMode mode); + void setOverwriteMode(QTextEdit* theWrappedObject, bool overwrite); + void setReadOnly(QTextEdit* theWrappedObject, bool ro); + void setTabChangesFocus(QTextEdit* theWrappedObject, bool b); + void setTabStopWidth(QTextEdit* theWrappedObject, int width); + void setTextCursor(QTextEdit* theWrappedObject, const QTextCursor& cursor); + void setTextInteractionFlags(QTextEdit* theWrappedObject, Qt::TextInteractionFlags flags); + void setUndoRedoEnabled(QTextEdit* theWrappedObject, bool enable); + void setWordWrapMode(QTextEdit* theWrappedObject, QTextOption::WrapMode policy); + void showEvent(QTextEdit* theWrappedObject, QShowEvent* arg__1); + bool tabChangesFocus(QTextEdit* theWrappedObject) const; + int tabStopWidth(QTextEdit* theWrappedObject) const; + QColor textBackgroundColor(QTextEdit* theWrappedObject) const; + QColor textColor(QTextEdit* theWrappedObject) const; + QTextCursor textCursor(QTextEdit* theWrappedObject) const; + Qt::TextInteractionFlags textInteractionFlags(QTextEdit* theWrappedObject) const; + void timerEvent(QTextEdit* theWrappedObject, QTimerEvent* e); + QString toHtml(QTextEdit* theWrappedObject) const; + QString toPlainText(QTextEdit* theWrappedObject) const; + void wheelEvent(QTextEdit* theWrappedObject, QWheelEvent* e); + QTextOption::WrapMode wordWrapMode(QTextEdit* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QTextEdit_ExtraSelection : public QTextEdit::ExtraSelection +{ +public: + PythonQtShell_QTextEdit_ExtraSelection():QTextEdit::ExtraSelection(),_wrapper(NULL) {}; + + ~PythonQtShell_QTextEdit_ExtraSelection(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTextEdit_ExtraSelection : public QObject +{ Q_OBJECT +public: +public slots: +QTextEdit::ExtraSelection* new_QTextEdit_ExtraSelection(); +QTextEdit::ExtraSelection* new_QTextEdit_ExtraSelection(const QTextEdit::ExtraSelection& other) { +PythonQtShell_QTextEdit_ExtraSelection* a = new PythonQtShell_QTextEdit_ExtraSelection(); +*((QTextEdit::ExtraSelection*)a) = other; +return a; } +void delete_QTextEdit_ExtraSelection(QTextEdit::ExtraSelection* obj) { delete obj; } +void py_set_format(QTextEdit::ExtraSelection* theWrappedObject, QTextCharFormat format){ theWrappedObject->format = format; } +QTextCharFormat py_get_format(QTextEdit::ExtraSelection* theWrappedObject){ return theWrappedObject->format; } +void py_set_cursor(QTextEdit::ExtraSelection* theWrappedObject, QTextCursor cursor){ theWrappedObject->cursor = cursor; } +QTextCursor py_get_cursor(QTextEdit::ExtraSelection* theWrappedObject){ return theWrappedObject->cursor; } +}; + +#endif + + + +class PythonQtWrapper_QTextFragment : public QObject +{ Q_OBJECT +public: +public slots: +QTextFragment* new_QTextFragment(); +QTextFragment* new_QTextFragment(const QTextFragment& o); +void delete_QTextFragment(QTextFragment* obj) { delete obj; } + QTextCharFormat charFormat(QTextFragment* theWrappedObject) const; + int charFormatIndex(QTextFragment* theWrappedObject) const; + bool contains(QTextFragment* theWrappedObject, int position) const; + bool isValid(QTextFragment* theWrappedObject) const; + int length(QTextFragment* theWrappedObject) const; + bool __ne__(QTextFragment* theWrappedObject, const QTextFragment& o) const; + bool __lt__(QTextFragment* theWrappedObject, const QTextFragment& o) const; + bool __eq__(QTextFragment* theWrappedObject, const QTextFragment& o) const; + int position(QTextFragment* theWrappedObject) const; + QString text(QTextFragment* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QTextFrame : public QTextFrame +{ +public: + PythonQtShell_QTextFrame(QTextDocument* doc):QTextFrame(doc),_wrapper(NULL) {}; + + ~PythonQtShell_QTextFrame(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTextFrame : public QObject +{ Q_OBJECT +public: +public slots: +QTextFrame* new_QTextFrame(QTextDocument* doc); +void delete_QTextFrame(QTextFrame* obj) { delete obj; } + QTextFrame::iterator begin(QTextFrame* theWrappedObject) const; + QList childFrames(QTextFrame* theWrappedObject) const; + QTextFrame::iterator end(QTextFrame* theWrappedObject) const; + QTextCursor firstCursorPosition(QTextFrame* theWrappedObject) const; + int firstPosition(QTextFrame* theWrappedObject) const; + QTextFrameFormat frameFormat(QTextFrame* theWrappedObject) const; + QTextCursor lastCursorPosition(QTextFrame* theWrappedObject) const; + int lastPosition(QTextFrame* theWrappedObject) const; + QTextFrame* parentFrame(QTextFrame* theWrappedObject) const; + void setFrameFormat(QTextFrame* theWrappedObject, const QTextFrameFormat& format); +}; + + + + + +class PythonQtShell_QTextFrameFormat : public QTextFrameFormat +{ +public: + PythonQtShell_QTextFrameFormat():QTextFrameFormat(),_wrapper(NULL) {}; + PythonQtShell_QTextFrameFormat(const QTextFormat& fmt):QTextFrameFormat(fmt),_wrapper(NULL) {}; + + ~PythonQtShell_QTextFrameFormat(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTextFrameFormat : public QObject +{ Q_OBJECT +public: +Q_ENUMS(BorderStyle Position ) +enum BorderStyle{ + BorderStyle_None = QTextFrameFormat::BorderStyle_None, BorderStyle_Dotted = QTextFrameFormat::BorderStyle_Dotted, BorderStyle_Dashed = QTextFrameFormat::BorderStyle_Dashed, BorderStyle_Solid = QTextFrameFormat::BorderStyle_Solid, BorderStyle_Double = QTextFrameFormat::BorderStyle_Double, BorderStyle_DotDash = QTextFrameFormat::BorderStyle_DotDash, BorderStyle_DotDotDash = QTextFrameFormat::BorderStyle_DotDotDash, BorderStyle_Groove = QTextFrameFormat::BorderStyle_Groove, BorderStyle_Ridge = QTextFrameFormat::BorderStyle_Ridge, BorderStyle_Inset = QTextFrameFormat::BorderStyle_Inset, BorderStyle_Outset = QTextFrameFormat::BorderStyle_Outset}; +enum Position{ + InFlow = QTextFrameFormat::InFlow, FloatLeft = QTextFrameFormat::FloatLeft, FloatRight = QTextFrameFormat::FloatRight}; +public slots: +QTextFrameFormat* new_QTextFrameFormat(); +QTextFrameFormat* new_QTextFrameFormat(const QTextFrameFormat& other) { +PythonQtShell_QTextFrameFormat* a = new PythonQtShell_QTextFrameFormat(); +*((QTextFrameFormat*)a) = other; +return a; } +void delete_QTextFrameFormat(QTextFrameFormat* obj) { delete obj; } + qreal border(QTextFrameFormat* theWrappedObject) const; + QBrush borderBrush(QTextFrameFormat* theWrappedObject) const; + QTextFrameFormat::BorderStyle borderStyle(QTextFrameFormat* theWrappedObject) const; + qreal bottomMargin(QTextFrameFormat* theWrappedObject) const; + QTextLength height(QTextFrameFormat* theWrappedObject) const; + bool isValid(QTextFrameFormat* theWrappedObject) const; + qreal leftMargin(QTextFrameFormat* theWrappedObject) const; + qreal margin(QTextFrameFormat* theWrappedObject) const; + qreal padding(QTextFrameFormat* theWrappedObject) const; + QTextFormat::PageBreakFlags pageBreakPolicy(QTextFrameFormat* theWrappedObject) const; + QTextFrameFormat::Position position(QTextFrameFormat* theWrappedObject) const; + qreal rightMargin(QTextFrameFormat* theWrappedObject) const; + void setBorder(QTextFrameFormat* theWrappedObject, qreal border); + void setBorderBrush(QTextFrameFormat* theWrappedObject, const QBrush& brush); + void setBorderStyle(QTextFrameFormat* theWrappedObject, QTextFrameFormat::BorderStyle style); + void setBottomMargin(QTextFrameFormat* theWrappedObject, qreal margin); + void setHeight(QTextFrameFormat* theWrappedObject, const QTextLength& height); + void setHeight(QTextFrameFormat* theWrappedObject, qreal height); + void setLeftMargin(QTextFrameFormat* theWrappedObject, qreal margin); + void setMargin(QTextFrameFormat* theWrappedObject, qreal margin); + void setPadding(QTextFrameFormat* theWrappedObject, qreal padding); + void setPageBreakPolicy(QTextFrameFormat* theWrappedObject, QTextFormat::PageBreakFlags flags); + void setPosition(QTextFrameFormat* theWrappedObject, QTextFrameFormat::Position f); + void setRightMargin(QTextFrameFormat* theWrappedObject, qreal margin); + void setTopMargin(QTextFrameFormat* theWrappedObject, qreal margin); + void setWidth(QTextFrameFormat* theWrappedObject, const QTextLength& length); + void setWidth(QTextFrameFormat* theWrappedObject, qreal width); + qreal topMargin(QTextFrameFormat* theWrappedObject) const; + QTextLength width(QTextFrameFormat* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QTextImageFormat : public QTextImageFormat +{ +public: + PythonQtShell_QTextImageFormat():QTextImageFormat(),_wrapper(NULL) {}; + PythonQtShell_QTextImageFormat(const QTextFormat& format):QTextImageFormat(format),_wrapper(NULL) {}; + + ~PythonQtShell_QTextImageFormat(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTextImageFormat : public QObject +{ Q_OBJECT +public: +public slots: +QTextImageFormat* new_QTextImageFormat(); +QTextImageFormat* new_QTextImageFormat(const QTextImageFormat& other) { +PythonQtShell_QTextImageFormat* a = new PythonQtShell_QTextImageFormat(); +*((QTextImageFormat*)a) = other; +return a; } +void delete_QTextImageFormat(QTextImageFormat* obj) { delete obj; } + qreal height(QTextImageFormat* theWrappedObject) const; + bool isValid(QTextImageFormat* theWrappedObject) const; + QString name(QTextImageFormat* theWrappedObject) const; + void setHeight(QTextImageFormat* theWrappedObject, qreal height); + void setName(QTextImageFormat* theWrappedObject, const QString& name); + void setWidth(QTextImageFormat* theWrappedObject, qreal width); + qreal width(QTextImageFormat* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QTextInlineObject : public QObject +{ Q_OBJECT +public: +public slots: +QTextInlineObject* new_QTextInlineObject(); +QTextInlineObject* new_QTextInlineObject(const QTextInlineObject& other) { +QTextInlineObject* a = new QTextInlineObject(); +*((QTextInlineObject*)a) = other; +return a; } +void delete_QTextInlineObject(QTextInlineObject* obj) { delete obj; } + qreal ascent(QTextInlineObject* theWrappedObject) const; + qreal descent(QTextInlineObject* theWrappedObject) const; + QTextFormat format(QTextInlineObject* theWrappedObject) const; + int formatIndex(QTextInlineObject* theWrappedObject) const; + qreal height(QTextInlineObject* theWrappedObject) const; + bool isValid(QTextInlineObject* theWrappedObject) const; + QRectF rect(QTextInlineObject* theWrappedObject) const; + void setAscent(QTextInlineObject* theWrappedObject, qreal a); + void setDescent(QTextInlineObject* theWrappedObject, qreal d); + void setWidth(QTextInlineObject* theWrappedObject, qreal w); + Qt::LayoutDirection textDirection(QTextInlineObject* theWrappedObject) const; + int textPosition(QTextInlineObject* theWrappedObject) const; + qreal width(QTextInlineObject* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QTextItem : public QTextItem +{ +public: + PythonQtShell_QTextItem():QTextItem(),_wrapper(NULL) {}; + + ~PythonQtShell_QTextItem(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTextItem : public QObject +{ Q_OBJECT +public: +Q_ENUMS(RenderFlag ) +Q_FLAGS(RenderFlags ) +enum RenderFlag{ + RightToLeft = QTextItem::RightToLeft, Overline = QTextItem::Overline, Underline = QTextItem::Underline, StrikeOut = QTextItem::StrikeOut, Dummy = QTextItem::Dummy}; +Q_DECLARE_FLAGS(RenderFlags, RenderFlag) +public slots: +QTextItem* new_QTextItem(); +void delete_QTextItem(QTextItem* obj) { delete obj; } + qreal ascent(QTextItem* theWrappedObject) const; + qreal descent(QTextItem* theWrappedObject) const; + QFont font(QTextItem* theWrappedObject) const; + QTextItem::RenderFlags renderFlags(QTextItem* theWrappedObject) const; + QString text(QTextItem* theWrappedObject) const; + qreal width(QTextItem* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QTextLine : public QObject +{ Q_OBJECT +public: +Q_ENUMS(CursorPosition Edge ) +enum CursorPosition{ + CursorBetweenCharacters = QTextLine::CursorBetweenCharacters, CursorOnCharacter = QTextLine::CursorOnCharacter}; +enum Edge{ + Leading = QTextLine::Leading, Trailing = QTextLine::Trailing}; +public slots: +QTextLine* new_QTextLine(); +QTextLine* new_QTextLine(const QTextLine& other) { +QTextLine* a = new QTextLine(); +*((QTextLine*)a) = other; +return a; } +void delete_QTextLine(QTextLine* obj) { delete obj; } + qreal ascent(QTextLine* theWrappedObject) const; + qreal cursorToX(QTextLine* theWrappedObject, int cursorPos, QTextLine::Edge edge = QTextLine::Leading) const; + qreal descent(QTextLine* theWrappedObject) const; + void draw(QTextLine* theWrappedObject, QPainter* p, const QPointF& point, const QTextLayout::FormatRange* selection = 0) const; + qreal height(QTextLine* theWrappedObject) const; + qreal horizontalAdvance(QTextLine* theWrappedObject) const; + bool isValid(QTextLine* theWrappedObject) const; + qreal leading(QTextLine* theWrappedObject) const; + bool leadingIncluded(QTextLine* theWrappedObject) const; + int lineNumber(QTextLine* theWrappedObject) const; + QRectF naturalTextRect(QTextLine* theWrappedObject) const; + qreal naturalTextWidth(QTextLine* theWrappedObject) const; + QPointF position(QTextLine* theWrappedObject) const; + QRectF rect(QTextLine* theWrappedObject) const; + void setLeadingIncluded(QTextLine* theWrappedObject, bool included); + void setLineWidth(QTextLine* theWrappedObject, qreal width); + void setNumColumns(QTextLine* theWrappedObject, int columns); + void setNumColumns(QTextLine* theWrappedObject, int columns, qreal alignmentWidth); + void setPosition(QTextLine* theWrappedObject, const QPointF& pos); + int textLength(QTextLine* theWrappedObject) const; + int textStart(QTextLine* theWrappedObject) const; + qreal width(QTextLine* theWrappedObject) const; + qreal x(QTextLine* theWrappedObject) const; + int xToCursor(QTextLine* theWrappedObject, qreal x, QTextLine::CursorPosition arg__2 = QTextLine::CursorBetweenCharacters) const; + qreal y(QTextLine* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QTextList : public QTextList +{ +public: + PythonQtShell_QTextList(QTextDocument* doc):QTextList(doc),_wrapper(NULL) {}; + + ~PythonQtShell_QTextList(); + +virtual void blockFormatChanged(const QTextBlock& block); +virtual void blockInserted(const QTextBlock& block); +virtual void blockRemoved(const QTextBlock& block); +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTextList : public QObject +{ Q_OBJECT +public: +public slots: +QTextList* new_QTextList(QTextDocument* doc); +void delete_QTextList(QTextList* obj) { delete obj; } + void add(QTextList* theWrappedObject, const QTextBlock& block); + int count(QTextList* theWrappedObject) const; + QTextListFormat format(QTextList* theWrappedObject) const; + QTextBlock item(QTextList* theWrappedObject, int i) const; + int itemNumber(QTextList* theWrappedObject, const QTextBlock& arg__1) const; + QString itemText(QTextList* theWrappedObject, const QTextBlock& arg__1) const; + void remove(QTextList* theWrappedObject, const QTextBlock& arg__1); + void removeItem(QTextList* theWrappedObject, int i); + void setFormat(QTextList* theWrappedObject, const QTextListFormat& format); +}; + + + + + +class PythonQtShell_QTextListFormat : public QTextListFormat +{ +public: + PythonQtShell_QTextListFormat():QTextListFormat(),_wrapper(NULL) {}; + PythonQtShell_QTextListFormat(const QTextFormat& fmt):QTextListFormat(fmt),_wrapper(NULL) {}; + + ~PythonQtShell_QTextListFormat(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTextListFormat : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Style ) +enum Style{ + ListDisc = QTextListFormat::ListDisc, ListCircle = QTextListFormat::ListCircle, ListSquare = QTextListFormat::ListSquare, ListDecimal = QTextListFormat::ListDecimal, ListLowerAlpha = QTextListFormat::ListLowerAlpha, ListUpperAlpha = QTextListFormat::ListUpperAlpha, ListLowerRoman = QTextListFormat::ListLowerRoman, ListUpperRoman = QTextListFormat::ListUpperRoman, ListStyleUndefined = QTextListFormat::ListStyleUndefined}; +public slots: +QTextListFormat* new_QTextListFormat(); +QTextListFormat* new_QTextListFormat(const QTextListFormat& other) { +PythonQtShell_QTextListFormat* a = new PythonQtShell_QTextListFormat(); +*((QTextListFormat*)a) = other; +return a; } +void delete_QTextListFormat(QTextListFormat* obj) { delete obj; } + int indent(QTextListFormat* theWrappedObject) const; + bool isValid(QTextListFormat* theWrappedObject) const; + QString numberPrefix(QTextListFormat* theWrappedObject) const; + QString numberSuffix(QTextListFormat* theWrappedObject) const; + void setIndent(QTextListFormat* theWrappedObject, int indent); + void setNumberPrefix(QTextListFormat* theWrappedObject, const QString& numberPrefix); + void setNumberSuffix(QTextListFormat* theWrappedObject, const QString& numberSuffix); + void setStyle(QTextListFormat* theWrappedObject, QTextListFormat::Style style); + QTextListFormat::Style style(QTextListFormat* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QTextObject : public QTextObject +{ +public: + PythonQtShell_QTextObject(QTextDocument* doc):QTextObject(doc),_wrapper(NULL) {}; + + ~PythonQtShell_QTextObject(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTextObject : public QObject +{ Q_OBJECT +public: +public slots: + QTextDocument* document(QTextObject* theWrappedObject) const; + QTextFormat format(QTextObject* theWrappedObject) const; + int formatIndex(QTextObject* theWrappedObject) const; + int objectIndex(QTextObject* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QTextTable : public QTextTable +{ +public: + PythonQtShell_QTextTable(QTextDocument* doc):QTextTable(doc),_wrapper(NULL) {}; + + ~PythonQtShell_QTextTable(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTextTable : public QObject +{ Q_OBJECT +public: +public slots: +QTextTable* new_QTextTable(QTextDocument* doc); +void delete_QTextTable(QTextTable* obj) { delete obj; } + void appendColumns(QTextTable* theWrappedObject, int count); + void appendRows(QTextTable* theWrappedObject, int count); + QTextTableCell cellAt(QTextTable* theWrappedObject, const QTextCursor& c) const; + QTextTableCell cellAt(QTextTable* theWrappedObject, int position) const; + QTextTableCell cellAt(QTextTable* theWrappedObject, int row, int col) const; + int columns(QTextTable* theWrappedObject) const; + QTextTableFormat format(QTextTable* theWrappedObject) const; + void insertColumns(QTextTable* theWrappedObject, int pos, int num); + void insertRows(QTextTable* theWrappedObject, int pos, int num); + void mergeCells(QTextTable* theWrappedObject, const QTextCursor& cursor); + void mergeCells(QTextTable* theWrappedObject, int row, int col, int numRows, int numCols); + void removeColumns(QTextTable* theWrappedObject, int pos, int num); + void removeRows(QTextTable* theWrappedObject, int pos, int num); + void resize(QTextTable* theWrappedObject, int rows, int cols); + QTextCursor rowEnd(QTextTable* theWrappedObject, const QTextCursor& c) const; + QTextCursor rowStart(QTextTable* theWrappedObject, const QTextCursor& c) const; + int rows(QTextTable* theWrappedObject) const; + void setFormat(QTextTable* theWrappedObject, const QTextTableFormat& format); + void splitCell(QTextTable* theWrappedObject, int row, int col, int numRows, int numCols); +}; + + + + + +class PythonQtWrapper_QTextTableCell : public QObject +{ Q_OBJECT +public: +public slots: +QTextTableCell* new_QTextTableCell(); +QTextTableCell* new_QTextTableCell(const QTextTableCell& o); +void delete_QTextTableCell(QTextTableCell* obj) { delete obj; } + QTextFrame::iterator begin(QTextTableCell* theWrappedObject) const; + int column(QTextTableCell* theWrappedObject) const; + int columnSpan(QTextTableCell* theWrappedObject) const; + QTextFrame::iterator end(QTextTableCell* theWrappedObject) const; + QTextCursor firstCursorPosition(QTextTableCell* theWrappedObject) const; + int firstPosition(QTextTableCell* theWrappedObject) const; + QTextCharFormat format(QTextTableCell* theWrappedObject) const; + bool isValid(QTextTableCell* theWrappedObject) const; + QTextCursor lastCursorPosition(QTextTableCell* theWrappedObject) const; + int lastPosition(QTextTableCell* theWrappedObject) const; + bool __ne__(QTextTableCell* theWrappedObject, const QTextTableCell& other) const; + bool __eq__(QTextTableCell* theWrappedObject, const QTextTableCell& other) const; + int row(QTextTableCell* theWrappedObject) const; + int rowSpan(QTextTableCell* theWrappedObject) const; + void setFormat(QTextTableCell* theWrappedObject, const QTextCharFormat& format); + int tableCellFormatIndex(QTextTableCell* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QTextTableCellFormat : public QTextTableCellFormat +{ +public: + PythonQtShell_QTextTableCellFormat():QTextTableCellFormat(),_wrapper(NULL) {}; + PythonQtShell_QTextTableCellFormat(const QTextFormat& fmt):QTextTableCellFormat(fmt),_wrapper(NULL) {}; + + ~PythonQtShell_QTextTableCellFormat(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTextTableCellFormat : public QObject +{ Q_OBJECT +public: +public slots: +QTextTableCellFormat* new_QTextTableCellFormat(); +QTextTableCellFormat* new_QTextTableCellFormat(const QTextTableCellFormat& other) { +PythonQtShell_QTextTableCellFormat* a = new PythonQtShell_QTextTableCellFormat(); +*((QTextTableCellFormat*)a) = other; +return a; } +void delete_QTextTableCellFormat(QTextTableCellFormat* obj) { delete obj; } + qreal bottomPadding(QTextTableCellFormat* theWrappedObject) const; + bool isValid(QTextTableCellFormat* theWrappedObject) const; + qreal leftPadding(QTextTableCellFormat* theWrappedObject) const; + qreal rightPadding(QTextTableCellFormat* theWrappedObject) const; + void setBottomPadding(QTextTableCellFormat* theWrappedObject, qreal padding); + void setLeftPadding(QTextTableCellFormat* theWrappedObject, qreal padding); + void setPadding(QTextTableCellFormat* theWrappedObject, qreal padding); + void setRightPadding(QTextTableCellFormat* theWrappedObject, qreal padding); + void setTopPadding(QTextTableCellFormat* theWrappedObject, qreal padding); + qreal topPadding(QTextTableCellFormat* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QTextTableFormat : public QTextTableFormat +{ +public: + PythonQtShell_QTextTableFormat():QTextTableFormat(),_wrapper(NULL) {}; + PythonQtShell_QTextTableFormat(const QTextFormat& fmt):QTextTableFormat(fmt),_wrapper(NULL) {}; + + ~PythonQtShell_QTextTableFormat(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTextTableFormat : public QObject +{ Q_OBJECT +public: +public slots: +QTextTableFormat* new_QTextTableFormat(); +QTextTableFormat* new_QTextTableFormat(const QTextTableFormat& other) { +PythonQtShell_QTextTableFormat* a = new PythonQtShell_QTextTableFormat(); +*((QTextTableFormat*)a) = other; +return a; } +void delete_QTextTableFormat(QTextTableFormat* obj) { delete obj; } + Qt::Alignment alignment(QTextTableFormat* theWrappedObject) const; + qreal cellPadding(QTextTableFormat* theWrappedObject) const; + qreal cellSpacing(QTextTableFormat* theWrappedObject) const; + void clearColumnWidthConstraints(QTextTableFormat* theWrappedObject); + QVector columnWidthConstraints(QTextTableFormat* theWrappedObject) const; + int columns(QTextTableFormat* theWrappedObject) const; + int headerRowCount(QTextTableFormat* theWrappedObject) const; + bool isValid(QTextTableFormat* theWrappedObject) const; + void setAlignment(QTextTableFormat* theWrappedObject, Qt::Alignment alignment); + void setCellPadding(QTextTableFormat* theWrappedObject, qreal padding); + void setCellSpacing(QTextTableFormat* theWrappedObject, qreal spacing); + void setColumnWidthConstraints(QTextTableFormat* theWrappedObject, const QVector& constraints); + void setColumns(QTextTableFormat* theWrappedObject, int columns); + void setHeaderRowCount(QTextTableFormat* theWrappedObject, int count); +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QTileRules : public QTileRules +{ +public: + PythonQtShell_QTileRules(Qt::TileRule horizontalRule, Qt::TileRule verticalRule):QTileRules(horizontalRule, verticalRule),_wrapper(NULL) {}; + PythonQtShell_QTileRules(Qt::TileRule rule = Qt::StretchTile):QTileRules(rule),_wrapper(NULL) {}; + + ~PythonQtShell_QTileRules(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTileRules : public QObject +{ Q_OBJECT +public: +public slots: +QTileRules* new_QTileRules(Qt::TileRule horizontalRule, Qt::TileRule verticalRule); +QTileRules* new_QTileRules(Qt::TileRule rule = Qt::StretchTile); +void delete_QTileRules(QTileRules* obj) { delete obj; } +void py_set_vertical(QTileRules* theWrappedObject, Qt::TileRule vertical){ theWrappedObject->vertical = vertical; } +Qt::TileRule py_get_vertical(QTileRules* theWrappedObject){ return theWrappedObject->vertical; } +void py_set_horizontal(QTileRules* theWrappedObject, Qt::TileRule horizontal){ theWrappedObject->horizontal = horizontal; } +Qt::TileRule py_get_horizontal(QTileRules* theWrappedObject){ return theWrappedObject->horizontal; } +}; + + + + + +class PythonQtShell_QTimeEdit : public QTimeEdit +{ +public: + PythonQtShell_QTimeEdit(QWidget* parent = 0):QTimeEdit(parent),_wrapper(NULL) {}; + PythonQtShell_QTimeEdit(const QTime& time, QWidget* parent = 0):QTimeEdit(time, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QTimeEdit(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* event); +virtual void childEvent(QChildEvent* arg__1); +virtual void clear(); +virtual void closeEvent(QCloseEvent* event); +virtual void contextMenuEvent(QContextMenuEvent* event); +virtual void customEvent(QEvent* arg__1); +virtual QDateTime dateTimeFromText(const QString& text) const; +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fixup(QString& input) const; +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* event); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* event); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* event); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* event); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* event); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* event); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* event); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* event); +virtual void stepBy(int steps); +virtual QAbstractSpinBox::StepEnabled stepEnabled() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual QString textFromDateTime(const QDateTime& dt) const; +virtual void timerEvent(QTimerEvent* event); +virtual QValidator::State validate(QString& input, int& pos) const; +virtual void wheelEvent(QWheelEvent* event); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTimeEdit : public QObject +{ Q_OBJECT +public: +public slots: +QTimeEdit* new_QTimeEdit(QWidget* parent = 0); +QTimeEdit* new_QTimeEdit(const QTime& time, QWidget* parent = 0); +void delete_QTimeEdit(QTimeEdit* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QToolBar : public QToolBar +{ +public: + PythonQtShell_QToolBar(QWidget* parent = 0):QToolBar(parent),_wrapper(NULL) {}; + PythonQtShell_QToolBar(const QString& title, QWidget* parent = 0):QToolBar(title, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QToolBar(); + +virtual void actionEvent(QActionEvent* event); +virtual void changeEvent(QEvent* event); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* event); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual QSize sizeHint() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QToolBar : public QToolBar +{ public: +inline void promoted_actionEvent(QActionEvent* event) { QToolBar::actionEvent(event); } +inline void promoted_changeEvent(QEvent* event) { QToolBar::changeEvent(event); } +inline bool promoted_event(QEvent* event) { return QToolBar::event(event); } +inline void promoted_paintEvent(QPaintEvent* event) { QToolBar::paintEvent(event); } +}; + +class PythonQtWrapper_QToolBar : public QObject +{ Q_OBJECT +public: +public slots: +QToolBar* new_QToolBar(QWidget* parent = 0); +QToolBar* new_QToolBar(const QString& title, QWidget* parent = 0); +void delete_QToolBar(QToolBar* obj) { delete obj; } + QAction* actionAt(QToolBar* theWrappedObject, const QPoint& p) const; + QAction* actionAt(QToolBar* theWrappedObject, int x, int y) const; + void actionEvent(QToolBar* theWrappedObject, QActionEvent* event); + QRect actionGeometry(QToolBar* theWrappedObject, QAction* action) const; + QAction* addAction(QToolBar* theWrappedObject, const QIcon& icon, const QString& text); + QAction* addAction(QToolBar* theWrappedObject, const QString& text); + QAction* addSeparator(QToolBar* theWrappedObject); + QAction* addWidget(QToolBar* theWrappedObject, QWidget* widget); + Qt::ToolBarAreas allowedAreas(QToolBar* theWrappedObject) const; + void changeEvent(QToolBar* theWrappedObject, QEvent* event); + void clear(QToolBar* theWrappedObject); + bool event(QToolBar* theWrappedObject, QEvent* event); + QSize iconSize(QToolBar* theWrappedObject) const; + QAction* insertSeparator(QToolBar* theWrappedObject, QAction* before); + QAction* insertWidget(QToolBar* theWrappedObject, QAction* before, QWidget* widget); + bool isAreaAllowed(QToolBar* theWrappedObject, Qt::ToolBarArea area) const; + bool isFloatable(QToolBar* theWrappedObject) const; + bool isFloating(QToolBar* theWrappedObject) const; + bool isMovable(QToolBar* theWrappedObject) const; + Qt::Orientation orientation(QToolBar* theWrappedObject) const; + void paintEvent(QToolBar* theWrappedObject, QPaintEvent* event); + void setAllowedAreas(QToolBar* theWrappedObject, Qt::ToolBarAreas areas); + void setFloatable(QToolBar* theWrappedObject, bool floatable); + void setMovable(QToolBar* theWrappedObject, bool movable); + void setOrientation(QToolBar* theWrappedObject, Qt::Orientation orientation); + QAction* toggleViewAction(QToolBar* theWrappedObject) const; + Qt::ToolButtonStyle toolButtonStyle(QToolBar* theWrappedObject) const; + QWidget* widgetForAction(QToolBar* theWrappedObject, QAction* action) const; + + QAction* addAction (QToolBar* menu, const QString & text, PyObject* callable) + { + QAction* a = menu->addAction(text); + PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); + return a; + } + + QAction* addAction (QToolBar* menu, const QIcon& icon, const QString& text, PyObject* callable) + { + QAction* a = menu->addAction(text); + a->setIcon(icon); + PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); + return a; + } + +}; + + + + + +class PythonQtWrapper_QToolBarChangeEvent : public QObject +{ Q_OBJECT +public: +public slots: +QToolBarChangeEvent* new_QToolBarChangeEvent(bool t); +void delete_QToolBarChangeEvent(QToolBarChangeEvent* obj) { delete obj; } + bool toggle(QToolBarChangeEvent* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QToolBox : public QToolBox +{ +public: + PythonQtShell_QToolBox(QWidget* parent = 0, Qt::WindowFlags f = 0):QToolBox(parent, f),_wrapper(NULL) {}; + + ~PythonQtShell_QToolBox(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void itemInserted(int index); +virtual void itemRemoved(int index); +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* e); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QToolBox : public QToolBox +{ public: +inline void promoted_changeEvent(QEvent* arg__1) { QToolBox::changeEvent(arg__1); } +inline bool promoted_event(QEvent* e) { return QToolBox::event(e); } +inline void promoted_itemInserted(int index) { QToolBox::itemInserted(index); } +inline void promoted_itemRemoved(int index) { QToolBox::itemRemoved(index); } +inline void promoted_showEvent(QShowEvent* e) { QToolBox::showEvent(e); } +}; + +class PythonQtWrapper_QToolBox : public QObject +{ Q_OBJECT +public: +public slots: +QToolBox* new_QToolBox(QWidget* parent = 0, Qt::WindowFlags f = 0); +void delete_QToolBox(QToolBox* obj) { delete obj; } + int addItem(QToolBox* theWrappedObject, QWidget* widget, const QIcon& icon, const QString& text); + int addItem(QToolBox* theWrappedObject, QWidget* widget, const QString& text); + void changeEvent(QToolBox* theWrappedObject, QEvent* arg__1); + int count(QToolBox* theWrappedObject) const; + int currentIndex(QToolBox* theWrappedObject) const; + QWidget* currentWidget(QToolBox* theWrappedObject) const; + bool event(QToolBox* theWrappedObject, QEvent* e); + int indexOf(QToolBox* theWrappedObject, QWidget* widget) const; + int insertItem(QToolBox* theWrappedObject, int index, QWidget* widget, const QIcon& icon, const QString& text); + int insertItem(QToolBox* theWrappedObject, int index, QWidget* widget, const QString& text); + bool isItemEnabled(QToolBox* theWrappedObject, int index) const; + QIcon itemIcon(QToolBox* theWrappedObject, int index) const; + void itemInserted(QToolBox* theWrappedObject, int index); + void itemRemoved(QToolBox* theWrappedObject, int index); + QString itemText(QToolBox* theWrappedObject, int index) const; + QString itemToolTip(QToolBox* theWrappedObject, int index) const; + void removeItem(QToolBox* theWrappedObject, int index); + void setItemEnabled(QToolBox* theWrappedObject, int index, bool enabled); + void setItemIcon(QToolBox* theWrappedObject, int index, const QIcon& icon); + void setItemText(QToolBox* theWrappedObject, int index, const QString& text); + void setItemToolTip(QToolBox* theWrappedObject, int index, const QString& toolTip); + void showEvent(QToolBox* theWrappedObject, QShowEvent* e); + QWidget* widget(QToolBox* theWrappedObject, int index) const; +}; + + + + + +class PythonQtShell_QToolButton : public QToolButton +{ +public: + PythonQtShell_QToolButton(QWidget* parent = 0):QToolButton(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QToolButton(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void checkStateSet(); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* e); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* e); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual bool hitButton(const QPoint& pos) const; +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* e); +virtual void keyReleaseEvent(QKeyEvent* e); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* e); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual void nextCheckState(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QToolButton : public QToolButton +{ public: +inline void promoted_actionEvent(QActionEvent* arg__1) { QToolButton::actionEvent(arg__1); } +inline void promoted_changeEvent(QEvent* arg__1) { QToolButton::changeEvent(arg__1); } +inline void promoted_enterEvent(QEvent* arg__1) { QToolButton::enterEvent(arg__1); } +inline bool promoted_event(QEvent* e) { return QToolButton::event(e); } +inline bool promoted_hitButton(const QPoint& pos) const { return QToolButton::hitButton(pos); } +inline void promoted_leaveEvent(QEvent* arg__1) { QToolButton::leaveEvent(arg__1); } +inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QToolButton::mousePressEvent(arg__1); } +inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QToolButton::mouseReleaseEvent(arg__1); } +inline void promoted_nextCheckState() { QToolButton::nextCheckState(); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QToolButton::paintEvent(arg__1); } +inline void promoted_timerEvent(QTimerEvent* arg__1) { QToolButton::timerEvent(arg__1); } +}; + +class PythonQtWrapper_QToolButton : public QObject +{ Q_OBJECT +public: +public slots: +QToolButton* new_QToolButton(QWidget* parent = 0); +void delete_QToolButton(QToolButton* obj) { delete obj; } + void actionEvent(QToolButton* theWrappedObject, QActionEvent* arg__1); + Qt::ArrowType arrowType(QToolButton* theWrappedObject) const; + bool autoRaise(QToolButton* theWrappedObject) const; + void changeEvent(QToolButton* theWrappedObject, QEvent* arg__1); + QAction* defaultAction(QToolButton* theWrappedObject) const; + void enterEvent(QToolButton* theWrappedObject, QEvent* arg__1); + bool event(QToolButton* theWrappedObject, QEvent* e); + bool hitButton(QToolButton* theWrappedObject, const QPoint& pos) const; + void leaveEvent(QToolButton* theWrappedObject, QEvent* arg__1); + QMenu* menu(QToolButton* theWrappedObject) const; + QSize minimumSizeHint(QToolButton* theWrappedObject) const; + void mousePressEvent(QToolButton* theWrappedObject, QMouseEvent* arg__1); + void mouseReleaseEvent(QToolButton* theWrappedObject, QMouseEvent* arg__1); + void nextCheckState(QToolButton* theWrappedObject); + void paintEvent(QToolButton* theWrappedObject, QPaintEvent* arg__1); + QToolButton::ToolButtonPopupMode popupMode(QToolButton* theWrappedObject) const; + void setArrowType(QToolButton* theWrappedObject, Qt::ArrowType type); + void setAutoRaise(QToolButton* theWrappedObject, bool enable); + void setMenu(QToolButton* theWrappedObject, QMenu* menu); + void setPopupMode(QToolButton* theWrappedObject, QToolButton::ToolButtonPopupMode mode); + QSize sizeHint(QToolButton* theWrappedObject) const; + void timerEvent(QToolButton* theWrappedObject, QTimerEvent* arg__1); + Qt::ToolButtonStyle toolButtonStyle(QToolButton* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QToolTip : public QObject +{ Q_OBJECT +public: +public slots: +void delete_QToolTip(QToolTip* obj) { delete obj; } + QFont static_QToolTip_font(); + void static_QToolTip_hideText(); + bool static_QToolTip_isVisible(); + QPalette static_QToolTip_palette(); + void static_QToolTip_setFont(const QFont& arg__1); + void static_QToolTip_setPalette(const QPalette& arg__1); + void static_QToolTip_showText(const QPoint& pos, const QString& text, QWidget* w = 0); + void static_QToolTip_showText(const QPoint& pos, const QString& text, QWidget* w, const QRect& rect); + QString static_QToolTip_text(); +}; + +#endif + + + +class PythonQtWrapper_QTouchEvent : public QObject +{ Q_OBJECT +public: +public slots: +void delete_QTouchEvent(QTouchEvent* obj) { delete obj; } + void setTarget(QTouchEvent* theWrappedObject, QObject* atarget); + void setTouchPointStates(QTouchEvent* theWrappedObject, Qt::TouchPointStates aTouchPointStates); + void setTouchPoints(QTouchEvent* theWrappedObject, const QList& atouchPoints); + QObject* target(QTouchEvent* theWrappedObject) const; + Qt::TouchPointStates touchPointStates(QTouchEvent* theWrappedObject) const; + const QList* touchPoints(QTouchEvent* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QTouchEvent_TouchPoint : public QObject +{ Q_OBJECT +public: +public slots: +QTouchEvent::TouchPoint* new_QTouchEvent_TouchPoint(const QTouchEvent::TouchPoint& other); +QTouchEvent::TouchPoint* new_QTouchEvent_TouchPoint(int id = -1); +void delete_QTouchEvent_TouchPoint(QTouchEvent::TouchPoint* obj) { delete obj; } + int id(QTouchEvent::TouchPoint* theWrappedObject) const; + QPointF lastNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject) const; + QPointF lastPos(QTouchEvent::TouchPoint* theWrappedObject) const; + QPointF lastScenePos(QTouchEvent::TouchPoint* theWrappedObject) const; + QPointF lastScreenPos(QTouchEvent::TouchPoint* theWrappedObject) const; + QPointF normalizedPos(QTouchEvent::TouchPoint* theWrappedObject) const; + QTouchEvent::TouchPoint* operator_assign(QTouchEvent::TouchPoint* theWrappedObject, const QTouchEvent::TouchPoint& other); + QPointF pos(QTouchEvent::TouchPoint* theWrappedObject) const; + qreal pressure(QTouchEvent::TouchPoint* theWrappedObject) const; + QVector rawScreenPositions(QTouchEvent::TouchPoint* theWrappedObject) const; + QRectF rect(QTouchEvent::TouchPoint* theWrappedObject) const; + QPointF scenePos(QTouchEvent::TouchPoint* theWrappedObject) const; + QRectF sceneRect(QTouchEvent::TouchPoint* theWrappedObject) const; + QPointF screenPos(QTouchEvent::TouchPoint* theWrappedObject) const; + QRectF screenRect(QTouchEvent::TouchPoint* theWrappedObject) const; + void setId(QTouchEvent::TouchPoint* theWrappedObject, int id); + void setLastNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& lastNormalizedPos); + void setLastPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& lastPos); + void setLastScenePos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& lastScenePos); + void setLastScreenPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& lastScreenPos); + void setNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& normalizedPos); + void setPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& pos); + void setPressure(QTouchEvent::TouchPoint* theWrappedObject, qreal pressure); + void setRawScreenPositions(QTouchEvent::TouchPoint* theWrappedObject, const QVector& positions); + void setRect(QTouchEvent::TouchPoint* theWrappedObject, const QRectF& rect); + void setScenePos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& scenePos); + void setSceneRect(QTouchEvent::TouchPoint* theWrappedObject, const QRectF& sceneRect); + void setScreenPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& screenPos); + void setScreenRect(QTouchEvent::TouchPoint* theWrappedObject, const QRectF& screenRect); + void setStartNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& startNormalizedPos); + void setStartPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& startPos); + void setStartScenePos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& startScenePos); + void setStartScreenPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& startScreenPos); + void setState(QTouchEvent::TouchPoint* theWrappedObject, Qt::TouchPointStates state); + void setVelocity(QTouchEvent::TouchPoint* theWrappedObject, const QVector2D& v); + QPointF startNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject) const; + QPointF startPos(QTouchEvent::TouchPoint* theWrappedObject) const; + QPointF startScenePos(QTouchEvent::TouchPoint* theWrappedObject) const; + QPointF startScreenPos(QTouchEvent::TouchPoint* theWrappedObject) const; + Qt::TouchPointState state(QTouchEvent::TouchPoint* theWrappedObject) const; + void swap(QTouchEvent::TouchPoint* theWrappedObject, QTouchEvent::TouchPoint& other); + QVector2D velocity(QTouchEvent::TouchPoint* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QTransform : public QObject +{ Q_OBJECT +public: +Q_ENUMS(TransformationType ) +enum TransformationType{ + TxNone = QTransform::TxNone, TxTranslate = QTransform::TxTranslate, TxScale = QTransform::TxScale, TxRotate = QTransform::TxRotate, TxShear = QTransform::TxShear, TxProject = QTransform::TxProject}; +public slots: +QTransform* new_QTransform(); +QTransform* new_QTransform(const QMatrix& mtx); +QTransform* new_QTransform(qreal h11, qreal h12, qreal h13, qreal h21, qreal h22, qreal h23, qreal h31, qreal h32, qreal h33 = 1.0); +QTransform* new_QTransform(qreal h11, qreal h12, qreal h21, qreal h22, qreal dx, qreal dy); +QTransform* new_QTransform(const QTransform& other) { +QTransform* a = new QTransform(); +*((QTransform*)a) = other; +return a; } +void delete_QTransform(QTransform* obj) { delete obj; } + QTransform adjoint(QTransform* theWrappedObject) const; + qreal det(QTransform* theWrappedObject) const; + qreal determinant(QTransform* theWrappedObject) const; + qreal dx(QTransform* theWrappedObject) const; + qreal dy(QTransform* theWrappedObject) const; + QTransform static_QTransform_fromScale(qreal dx, qreal dy); + QTransform static_QTransform_fromTranslate(qreal dx, qreal dy); + QTransform inverted(QTransform* theWrappedObject, bool* invertible = 0) const; + bool isAffine(QTransform* theWrappedObject) const; + bool isIdentity(QTransform* theWrappedObject) const; + bool isInvertible(QTransform* theWrappedObject) const; + bool isRotating(QTransform* theWrappedObject) const; + bool isScaling(QTransform* theWrappedObject) const; + bool isTranslating(QTransform* theWrappedObject) const; + qreal m11(QTransform* theWrappedObject) const; + qreal m12(QTransform* theWrappedObject) const; + qreal m13(QTransform* theWrappedObject) const; + qreal m21(QTransform* theWrappedObject) const; + qreal m22(QTransform* theWrappedObject) const; + qreal m23(QTransform* theWrappedObject) const; + qreal m31(QTransform* theWrappedObject) const; + qreal m32(QTransform* theWrappedObject) const; + qreal m33(QTransform* theWrappedObject) const; + QLine map(QTransform* theWrappedObject, const QLine& l) const; + QLineF map(QTransform* theWrappedObject, const QLineF& l) const; + QPainterPath map(QTransform* theWrappedObject, const QPainterPath& p) const; + QPoint map(QTransform* theWrappedObject, const QPoint& p) const; + QPointF map(QTransform* theWrappedObject, const QPointF& p) const; + QPolygon map(QTransform* theWrappedObject, const QPolygon& a) const; + QPolygonF map(QTransform* theWrappedObject, const QPolygonF& a) const; + QRegion map(QTransform* theWrappedObject, const QRegion& r) const; + QRect mapRect(QTransform* theWrappedObject, const QRect& arg__1) const; + QRectF mapRect(QTransform* theWrappedObject, const QRectF& arg__1) const; + QPolygon mapToPolygon(QTransform* theWrappedObject, const QRect& r) const; + bool __ne__(QTransform* theWrappedObject, const QTransform& arg__1) const; + QTransform multiplied(QTransform* theWrappedObject, const QTransform& o) const; + QTransform __mul__(QTransform* theWrappedObject, qreal n); + QTransform* __imul__(QTransform* theWrappedObject, const QTransform& arg__1); + QTransform* __imul__(QTransform* theWrappedObject, qreal div); + QTransform __add__(QTransform* theWrappedObject, qreal n); + QTransform* __iadd__(QTransform* theWrappedObject, qreal div); + QTransform __sub__(QTransform* theWrappedObject, qreal n); + QTransform* __isub__(QTransform* theWrappedObject, qreal div); + QTransform __div__(QTransform* theWrappedObject, qreal n); + QTransform* __idiv__(QTransform* theWrappedObject, qreal div); + bool __eq__(QTransform* theWrappedObject, const QTransform& arg__1) const; + bool static_QTransform_quadToQuad(const QPolygonF& one, const QPolygonF& two, QTransform& result); + bool static_QTransform_quadToSquare(const QPolygonF& quad, QTransform& result); + void reset(QTransform* theWrappedObject); + QTransform* rotate(QTransform* theWrappedObject, qreal a, Qt::Axis axis = Qt::ZAxis); + QTransform* rotateRadians(QTransform* theWrappedObject, qreal a, Qt::Axis axis = Qt::ZAxis); + QTransform* scale(QTransform* theWrappedObject, qreal sx, qreal sy); + void setMatrix(QTransform* theWrappedObject, qreal m11, qreal m12, qreal m13, qreal m21, qreal m22, qreal m23, qreal m31, qreal m32, qreal m33); + QTransform* shear(QTransform* theWrappedObject, qreal sh, qreal sv); + bool static_QTransform_squareToQuad(const QPolygonF& square, QTransform& result); + const QMatrix* toAffine(QTransform* theWrappedObject) const; + QTransform* translate(QTransform* theWrappedObject, qreal dx, qreal dy); + QTransform transposed(QTransform* theWrappedObject) const; + QTransform::TransformationType type(QTransform* theWrappedObject) const; + QString py_toString(QTransform*); +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QTreeView : public QTreeView +{ +public: + PythonQtShell_QTreeView(QWidget* parent = 0):QTreeView(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QTreeView(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void commitData(QWidget* editor); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); +virtual void customEvent(QEvent* arg__1); +virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles = QVector()); +virtual int devType() const; +virtual void doItemsLayout(); +virtual void dragEnterEvent(QDragEnterEvent* event); +virtual void dragLeaveEvent(QDragLeaveEvent* event); +virtual void dragMoveEvent(QDragMoveEvent* event); +virtual void drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const; +virtual void drawRow(QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const; +virtual void dropEvent(QDropEvent* event); +virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); +virtual void editorDestroyed(QObject* editor); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* event); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual int horizontalOffset() const; +virtual void horizontalScrollbarAction(int action); +virtual void horizontalScrollbarValueChanged(int value); +virtual QModelIndex indexAt(const QPoint& p) const; +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual bool isIndexHidden(const QModelIndex& index) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void keyboardSearch(const QString& search); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* event); +virtual void mouseMoveEvent(QMouseEvent* event); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* event); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* event); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reset(); +virtual void resizeEvent(QResizeEvent* 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 void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); +virtual void selectAll(); +virtual QList selectedIndexes() const; +virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); +virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; +virtual void setModel(QAbstractItemModel* model); +virtual void setRootIndex(const QModelIndex& index); +virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); +virtual void setSelectionModel(QItemSelectionModel* selectionModel); +virtual void setupViewport(QWidget* viewport); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual int sizeHintForColumn(int column) const; +virtual int sizeHintForRow(int row) const; +virtual void startDrag(Qt::DropActions supportedActions); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* event); +virtual void updateEditorData(); +virtual void updateEditorGeometries(); +virtual void updateGeometries(); +virtual int verticalOffset() const; +virtual void verticalScrollbarAction(int action); +virtual void verticalScrollbarValueChanged(int value); +virtual QStyleOptionViewItem viewOptions() const; +virtual bool viewportEvent(QEvent* event); +virtual QSize viewportSizeHint() const; +virtual QRect visualRect(const QModelIndex& index) const; +virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QTreeView : public QTreeView +{ public: +inline void promoted_currentChanged(const QModelIndex& current, const QModelIndex& previous) { QTreeView::currentChanged(current, previous); } +inline void promoted_dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles = QVector()) { QTreeView::dataChanged(topLeft, bottomRight, roles); } +inline void promoted_doItemsLayout() { QTreeView::doItemsLayout(); } +inline void promoted_dragMoveEvent(QDragMoveEvent* event) { QTreeView::dragMoveEvent(event); } +inline void promoted_drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const { QTreeView::drawBranches(painter, rect, index); } +inline void promoted_drawRow(QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const { QTreeView::drawRow(painter, options, index); } +inline int promoted_horizontalOffset() const { return QTreeView::horizontalOffset(); } +inline void promoted_horizontalScrollbarAction(int action) { QTreeView::horizontalScrollbarAction(action); } +inline QModelIndex promoted_indexAt(const QPoint& p) const { return QTreeView::indexAt(p); } +inline bool promoted_isIndexHidden(const QModelIndex& index) const { return QTreeView::isIndexHidden(index); } +inline void promoted_keyPressEvent(QKeyEvent* event) { QTreeView::keyPressEvent(event); } +inline void promoted_keyboardSearch(const QString& search) { QTreeView::keyboardSearch(search); } +inline void promoted_mouseDoubleClickEvent(QMouseEvent* event) { QTreeView::mouseDoubleClickEvent(event); } +inline void promoted_mouseMoveEvent(QMouseEvent* event) { QTreeView::mouseMoveEvent(event); } +inline void promoted_mousePressEvent(QMouseEvent* event) { QTreeView::mousePressEvent(event); } +inline void promoted_mouseReleaseEvent(QMouseEvent* event) { QTreeView::mouseReleaseEvent(event); } +inline void promoted_paintEvent(QPaintEvent* event) { QTreeView::paintEvent(event); } +inline void promoted_reset() { QTreeView::reset(); } +inline void promoted_rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) { QTreeView::rowsAboutToBeRemoved(parent, start, end); } +inline void promoted_rowsInserted(const QModelIndex& parent, int start, int end) { QTreeView::rowsInserted(parent, start, end); } +inline void promoted_scrollContentsBy(int dx, int dy) { QTreeView::scrollContentsBy(dx, dy); } +inline void promoted_scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible) { QTreeView::scrollTo(index, hint); } +inline void promoted_selectAll() { QTreeView::selectAll(); } +inline QList promoted_selectedIndexes() const { return QTreeView::selectedIndexes(); } +inline void promoted_selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) { QTreeView::selectionChanged(selected, deselected); } +inline void promoted_setModel(QAbstractItemModel* model) { QTreeView::setModel(model); } +inline void promoted_setRootIndex(const QModelIndex& index) { QTreeView::setRootIndex(index); } +inline void promoted_setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) { QTreeView::setSelection(rect, command); } +inline void promoted_setSelectionModel(QItemSelectionModel* selectionModel) { QTreeView::setSelectionModel(selectionModel); } +inline int promoted_sizeHintForColumn(int column) const { return QTreeView::sizeHintForColumn(column); } +inline void promoted_timerEvent(QTimerEvent* event) { QTreeView::timerEvent(event); } +inline void promoted_updateGeometries() { QTreeView::updateGeometries(); } +inline int promoted_verticalOffset() const { return QTreeView::verticalOffset(); } +inline bool promoted_viewportEvent(QEvent* event) { return QTreeView::viewportEvent(event); } +inline QRect promoted_visualRect(const QModelIndex& index) const { return QTreeView::visualRect(index); } +inline QRegion promoted_visualRegionForSelection(const QItemSelection& selection) const { return QTreeView::visualRegionForSelection(selection); } +}; + +class PythonQtWrapper_QTreeView : public QObject +{ Q_OBJECT +public: +public slots: +QTreeView* new_QTreeView(QWidget* parent = 0); +void delete_QTreeView(QTreeView* obj) { delete obj; } + bool allColumnsShowFocus(QTreeView* theWrappedObject) const; + int autoExpandDelay(QTreeView* theWrappedObject) const; + int columnAt(QTreeView* theWrappedObject, int x) const; + int columnViewportPosition(QTreeView* theWrappedObject, int column) const; + int columnWidth(QTreeView* theWrappedObject, int column) const; + void currentChanged(QTreeView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous); + void dataChanged(QTreeView* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles = QVector()); + void doItemsLayout(QTreeView* theWrappedObject); + void dragMoveEvent(QTreeView* theWrappedObject, QDragMoveEvent* event); + void drawBranches(QTreeView* theWrappedObject, QPainter* painter, const QRect& rect, const QModelIndex& index) const; + void drawRow(QTreeView* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const; + bool expandsOnDoubleClick(QTreeView* theWrappedObject) const; + QHeaderView* header(QTreeView* theWrappedObject) const; + int horizontalOffset(QTreeView* theWrappedObject) const; + void horizontalScrollbarAction(QTreeView* theWrappedObject, int action); + int indentation(QTreeView* theWrappedObject) const; + QModelIndex indexAbove(QTreeView* theWrappedObject, const QModelIndex& index) const; + QModelIndex indexAt(QTreeView* theWrappedObject, const QPoint& p) const; + QModelIndex indexBelow(QTreeView* theWrappedObject, const QModelIndex& index) const; + bool isAnimated(QTreeView* theWrappedObject) const; + bool isColumnHidden(QTreeView* theWrappedObject, int column) const; + bool isExpanded(QTreeView* theWrappedObject, const QModelIndex& index) const; + bool isFirstColumnSpanned(QTreeView* theWrappedObject, int row, const QModelIndex& parent) const; + bool isHeaderHidden(QTreeView* theWrappedObject) const; + bool isIndexHidden(QTreeView* theWrappedObject, const QModelIndex& index) const; + bool isRowHidden(QTreeView* theWrappedObject, int row, const QModelIndex& parent) const; + bool isSortingEnabled(QTreeView* theWrappedObject) const; + bool itemsExpandable(QTreeView* theWrappedObject) const; + void keyPressEvent(QTreeView* theWrappedObject, QKeyEvent* event); + void keyboardSearch(QTreeView* theWrappedObject, const QString& search); + void mouseDoubleClickEvent(QTreeView* theWrappedObject, QMouseEvent* event); + void mouseMoveEvent(QTreeView* theWrappedObject, QMouseEvent* event); + void mousePressEvent(QTreeView* theWrappedObject, QMouseEvent* event); + void mouseReleaseEvent(QTreeView* theWrappedObject, QMouseEvent* event); + void paintEvent(QTreeView* theWrappedObject, QPaintEvent* event); + void reset(QTreeView* theWrappedObject); + bool rootIsDecorated(QTreeView* theWrappedObject) const; + void rowsAboutToBeRemoved(QTreeView* theWrappedObject, const QModelIndex& parent, int start, int end); + void rowsInserted(QTreeView* theWrappedObject, const QModelIndex& parent, int start, int end); + void scrollContentsBy(QTreeView* theWrappedObject, int dx, int dy); + void scrollTo(QTreeView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); + void selectAll(QTreeView* theWrappedObject); + QList selectedIndexes(QTreeView* theWrappedObject) const; + void selectionChanged(QTreeView* theWrappedObject, const QItemSelection& selected, const QItemSelection& deselected); + void setAllColumnsShowFocus(QTreeView* theWrappedObject, bool enable); + void setAnimated(QTreeView* theWrappedObject, bool enable); + void setAutoExpandDelay(QTreeView* theWrappedObject, int delay); + void setColumnHidden(QTreeView* theWrappedObject, int column, bool hide); + void setColumnWidth(QTreeView* theWrappedObject, int column, int width); + void setExpanded(QTreeView* theWrappedObject, const QModelIndex& index, bool expand); + void setExpandsOnDoubleClick(QTreeView* theWrappedObject, bool enable); + void setFirstColumnSpanned(QTreeView* theWrappedObject, int row, const QModelIndex& parent, bool span); + void setHeader(QTreeView* theWrappedObject, QHeaderView* header); + void setHeaderHidden(QTreeView* theWrappedObject, bool hide); + void setIndentation(QTreeView* theWrappedObject, int i); + void setItemsExpandable(QTreeView* theWrappedObject, bool enable); + void setModel(QTreeView* theWrappedObject, QAbstractItemModel* model); + void setRootIndex(QTreeView* theWrappedObject, const QModelIndex& index); + void setRootIsDecorated(QTreeView* theWrappedObject, bool show); + void setRowHidden(QTreeView* theWrappedObject, int row, const QModelIndex& parent, bool hide); + void setSelection(QTreeView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command); + void setSelectionModel(QTreeView* theWrappedObject, QItemSelectionModel* selectionModel); + void setSortingEnabled(QTreeView* theWrappedObject, bool enable); + void setUniformRowHeights(QTreeView* theWrappedObject, bool uniform); + void setWordWrap(QTreeView* theWrappedObject, bool on); + int sizeHintForColumn(QTreeView* theWrappedObject, int column) const; + void sortByColumn(QTreeView* theWrappedObject, int column, Qt::SortOrder order); + void timerEvent(QTreeView* theWrappedObject, QTimerEvent* event); + bool uniformRowHeights(QTreeView* theWrappedObject) const; + void updateGeometries(QTreeView* theWrappedObject); + int verticalOffset(QTreeView* theWrappedObject) const; + bool viewportEvent(QTreeView* theWrappedObject, QEvent* event); + QRect visualRect(QTreeView* theWrappedObject, const QModelIndex& index) const; + QRegion visualRegionForSelection(QTreeView* theWrappedObject, const QItemSelection& selection) const; + bool wordWrap(QTreeView* theWrappedObject) const; +}; + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui9.cpp b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui9.cpp new file mode 100644 index 00000000..4e8fc67d --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui9.cpp @@ -0,0 +1,11330 @@ +#include "com_trolltech_qt_gui9.h" + +#include +#include +#include + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QTreeWidget::~PythonQtShell_QTreeWidget() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTreeWidget::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::actionEvent(arg__1); +} +void PythonQtShell_QTreeWidget::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::changeEvent(arg__1); +} +void PythonQtShell_QTreeWidget::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::childEvent(arg__1); +} +void PythonQtShell_QTreeWidget::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&editor, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::closeEditor(editor, hint); +} +void PythonQtShell_QTreeWidget::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::closeEvent(arg__1); +} +void PythonQtShell_QTreeWidget::commitData(QWidget* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::commitData(editor); +} +void PythonQtShell_QTreeWidget::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::contextMenuEvent(arg__1); +} +void PythonQtShell_QTreeWidget::currentChanged(const QModelIndex& current, const QModelIndex& previous) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)¤t, (void*)&previous}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::currentChanged(current, previous); +} +void PythonQtShell_QTreeWidget::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::customEvent(arg__1); +} +void PythonQtShell_QTreeWidget::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&" , "const QVector&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&topLeft, (void*)&bottomRight, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::dataChanged(topLeft, bottomRight, roles); +} +int PythonQtShell_QTreeWidget::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::devType(); +} +void PythonQtShell_QTreeWidget::doItemsLayout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::doItemsLayout(); +} +void PythonQtShell_QTreeWidget::dragEnterEvent(QDragEnterEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::dragEnterEvent(event); +} +void PythonQtShell_QTreeWidget::dragLeaveEvent(QDragLeaveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::dragLeaveEvent(event); +} +void PythonQtShell_QTreeWidget::dragMoveEvent(QDragMoveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::dragMoveEvent(event); +} +void PythonQtShell_QTreeWidget::drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawBranches"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&rect, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::drawBranches(painter, rect, index); +} +void PythonQtShell_QTreeWidget::drawRow(QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawRow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&options, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::drawRow(painter, options, index); +} +void PythonQtShell_QTreeWidget::dropEvent(QDropEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::dropEvent(event); +} +bool PythonQtShell_QTreeWidget::dropMimeData(QTreeWidgetItem* parent, int index, const QMimeData* data, Qt::DropAction action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QTreeWidgetItem*" , "int" , "const QMimeData*" , "Qt::DropAction"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)&parent, (void*)&index, (void*)&data, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::dropMimeData(parent, index, data, action); +} +bool PythonQtShell_QTreeWidget::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::edit(index, trigger, event); +} +void PythonQtShell_QTreeWidget::editorDestroyed(QObject* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QObject*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::editorDestroyed(editor); +} +void PythonQtShell_QTreeWidget::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::enterEvent(arg__1); +} +bool PythonQtShell_QTreeWidget::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::event(e); +} +bool PythonQtShell_QTreeWidget::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QTreeWidget::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::focusInEvent(event); +} +bool PythonQtShell_QTreeWidget::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::focusNextPrevChild(next); +} +void PythonQtShell_QTreeWidget::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::focusOutEvent(event); +} +bool PythonQtShell_QTreeWidget::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::hasHeightForWidth(); +} +int PythonQtShell_QTreeWidget::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::heightForWidth(arg__1); +} +void PythonQtShell_QTreeWidget::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::hideEvent(arg__1); +} +int PythonQtShell_QTreeWidget::horizontalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::horizontalOffset(); +} +void PythonQtShell_QTreeWidget::horizontalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::horizontalScrollbarAction(action); +} +void PythonQtShell_QTreeWidget::horizontalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::horizontalScrollbarValueChanged(value); +} +QModelIndex PythonQtShell_QTreeWidget::indexAt(const QPoint& p) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&p}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::indexAt(p); +} +void PythonQtShell_QTreeWidget::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::initPainter(painter); +} +void PythonQtShell_QTreeWidget::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::inputMethodEvent(event); +} +QVariant PythonQtShell_QTreeWidget::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::inputMethodQuery(query); +} +bool PythonQtShell_QTreeWidget::isIndexHidden(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::isIndexHidden(index); +} +void PythonQtShell_QTreeWidget::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::keyPressEvent(event); +} +void PythonQtShell_QTreeWidget::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::keyReleaseEvent(arg__1); +} +void PythonQtShell_QTreeWidget::keyboardSearch(const QString& search) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&search}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::keyboardSearch(search); +} +void PythonQtShell_QTreeWidget::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::leaveEvent(arg__1); +} +int PythonQtShell_QTreeWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::metric(arg__1); +} +QMimeData* PythonQtShell_QTreeWidget::mimeData(const QList items) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMimeData*" , "const QList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMimeData* returnValue; + void* args[2] = {NULL, (void*)&items}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); + } else { + returnValue = *((QMimeData**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::mimeData(items); +} +QStringList PythonQtShell_QTreeWidget::mimeTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStringList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStringList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); + } else { + returnValue = *((QStringList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::mimeTypes(); +} +void PythonQtShell_QTreeWidget::mouseDoubleClickEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::mouseDoubleClickEvent(event); +} +void PythonQtShell_QTreeWidget::mouseMoveEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::mouseMoveEvent(event); +} +void PythonQtShell_QTreeWidget::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::mousePressEvent(event); +} +void PythonQtShell_QTreeWidget::mouseReleaseEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::mouseReleaseEvent(event); +} +void PythonQtShell_QTreeWidget::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::moveEvent(arg__1); +} +bool PythonQtShell_QTreeWidget::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QTreeWidget::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::paintEngine(); +} +void PythonQtShell_QTreeWidget::paintEvent(QPaintEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::paintEvent(event); +} +QPaintDevice* PythonQtShell_QTreeWidget::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::redirected(offset); +} +void PythonQtShell_QTreeWidget::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::reset(); +} +void PythonQtShell_QTreeWidget::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::resizeEvent(event); +} +void PythonQtShell_QTreeWidget::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::rowsAboutToBeRemoved(parent, start, end); +} +void PythonQtShell_QTreeWidget::rowsInserted(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::rowsInserted(parent, start, end); +} +void PythonQtShell_QTreeWidget::scrollContentsBy(int dx, int dy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&dx, (void*)&dy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::scrollContentsBy(dx, dy); +} +void PythonQtShell_QTreeWidget::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&index, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::scrollTo(index, hint); +} +void PythonQtShell_QTreeWidget::selectAll() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::selectAll(); +} +QList PythonQtShell_QTreeWidget::selectedIndexes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::selectedIndexes(); +} +void PythonQtShell_QTreeWidget::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::selectionChanged(selected, deselected); +} +QItemSelectionModel::SelectionFlags PythonQtShell_QTreeWidget::selectionCommand(const QModelIndex& index, const QEvent* event) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QItemSelectionModel::SelectionFlags returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); + } else { + returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::selectionCommand(index, event); +} +void PythonQtShell_QTreeWidget::setRootIndex(const QModelIndex& index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::setRootIndex(index); +} +void PythonQtShell_QTreeWidget::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&rect, (void*)&command}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::setSelection(rect, command); +} +void PythonQtShell_QTreeWidget::setSelectionModel(QItemSelectionModel* selectionModel) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QItemSelectionModel*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&selectionModel}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::setSelectionModel(selectionModel); +} +void PythonQtShell_QTreeWidget::setupViewport(QWidget* viewport) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&viewport}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::setupViewport(viewport); +} +QPainter* PythonQtShell_QTreeWidget::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::sharedPainter(); +} +void PythonQtShell_QTreeWidget::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::showEvent(arg__1); +} +int PythonQtShell_QTreeWidget::sizeHintForColumn(int column) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&column}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::sizeHintForColumn(column); +} +int PythonQtShell_QTreeWidget::sizeHintForRow(int row) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&row}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::sizeHintForRow(row); +} +void PythonQtShell_QTreeWidget::startDrag(Qt::DropActions supportedActions) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&supportedActions}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::startDrag(supportedActions); +} +Qt::DropActions PythonQtShell_QTreeWidget::supportedDropActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::supportedDropActions(); +} +void PythonQtShell_QTreeWidget::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::tabletEvent(arg__1); +} +void PythonQtShell_QTreeWidget::timerEvent(QTimerEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::timerEvent(event); +} +void PythonQtShell_QTreeWidget::updateEditorData() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::updateEditorData(); +} +void PythonQtShell_QTreeWidget::updateEditorGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::updateEditorGeometries(); +} +void PythonQtShell_QTreeWidget::updateGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::updateGeometries(); +} +int PythonQtShell_QTreeWidget::verticalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::verticalOffset(); +} +void PythonQtShell_QTreeWidget::verticalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::verticalScrollbarAction(action); +} +void PythonQtShell_QTreeWidget::verticalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::verticalScrollbarValueChanged(value); +} +QStyleOptionViewItem PythonQtShell_QTreeWidget::viewOptions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStyleOptionViewItem"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStyleOptionViewItem returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); + } else { + returnValue = *((QStyleOptionViewItem*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::viewOptions(); +} +bool PythonQtShell_QTreeWidget::viewportEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::viewportEvent(event); +} +QSize PythonQtShell_QTreeWidget::viewportSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::viewportSizeHint(); +} +QRect PythonQtShell_QTreeWidget::visualRect(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRect returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::visualRect(index); +} +QRegion PythonQtShell_QTreeWidget::visualRegionForSelection(const QItemSelection& selection) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRegion returnValue; + void* args[2] = {NULL, (void*)&selection}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); + } else { + returnValue = *((QRegion*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidget::visualRegionForSelection(selection); +} +void PythonQtShell_QTreeWidget::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidget::wheelEvent(arg__1); +} +QTreeWidget* PythonQtWrapper_QTreeWidget::new_QTreeWidget(QWidget* parent) +{ +return new PythonQtShell_QTreeWidget(parent); } + +void PythonQtWrapper_QTreeWidget::addTopLevelItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item) +{ + ( theWrappedObject->addTopLevelItem(item)); +} + +void PythonQtWrapper_QTreeWidget::addTopLevelItems(QTreeWidget* theWrappedObject, const QList& items) +{ + ( theWrappedObject->addTopLevelItems(items)); +} + +void PythonQtWrapper_QTreeWidget::closePersistentEditor(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column) +{ + ( theWrappedObject->closePersistentEditor(item, column)); +} + +int PythonQtWrapper_QTreeWidget::columnCount(QTreeWidget* theWrappedObject) const +{ + return ( theWrappedObject->columnCount()); +} + +int PythonQtWrapper_QTreeWidget::currentColumn(QTreeWidget* theWrappedObject) const +{ + return ( theWrappedObject->currentColumn()); +} + +QTreeWidgetItem* PythonQtWrapper_QTreeWidget::currentItem(QTreeWidget* theWrappedObject) const +{ + return ( theWrappedObject->currentItem()); +} + +void PythonQtWrapper_QTreeWidget::dropEvent(QTreeWidget* theWrappedObject, QDropEvent* event) +{ + ( ((PythonQtPublicPromoter_QTreeWidget*)theWrappedObject)->promoted_dropEvent(event)); +} + +bool PythonQtWrapper_QTreeWidget::dropMimeData(QTreeWidget* theWrappedObject, QTreeWidgetItem* parent, int index, const QMimeData* data, Qt::DropAction action) +{ + return ( ((PythonQtPublicPromoter_QTreeWidget*)theWrappedObject)->promoted_dropMimeData(parent, index, data, action)); +} + +void PythonQtWrapper_QTreeWidget::editItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column) +{ + ( theWrappedObject->editItem(item, column)); +} + +bool PythonQtWrapper_QTreeWidget::event(QTreeWidget* theWrappedObject, QEvent* e) +{ + return ( ((PythonQtPublicPromoter_QTreeWidget*)theWrappedObject)->promoted_event(e)); +} + +QList PythonQtWrapper_QTreeWidget::findItems(QTreeWidget* theWrappedObject, const QString& text, Qt::MatchFlags flags, int column) const +{ + return ( theWrappedObject->findItems(text, flags, column)); +} + +QTreeWidgetItem* PythonQtWrapper_QTreeWidget::headerItem(QTreeWidget* theWrappedObject) const +{ + return ( theWrappedObject->headerItem()); +} + +int PythonQtWrapper_QTreeWidget::indexOfTopLevelItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item) const +{ + return ( theWrappedObject->indexOfTopLevelItem(item)); +} + +void PythonQtWrapper_QTreeWidget::insertTopLevelItem(QTreeWidget* theWrappedObject, int index, QTreeWidgetItem* item) +{ + ( theWrappedObject->insertTopLevelItem(index, item)); +} + +void PythonQtWrapper_QTreeWidget::insertTopLevelItems(QTreeWidget* theWrappedObject, int index, const QList& items) +{ + ( theWrappedObject->insertTopLevelItems(index, items)); +} + +QTreeWidgetItem* PythonQtWrapper_QTreeWidget::invisibleRootItem(QTreeWidget* theWrappedObject) const +{ + return ( theWrappedObject->invisibleRootItem()); +} + +bool PythonQtWrapper_QTreeWidget::isFirstItemColumnSpanned(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item) const +{ + return ( theWrappedObject->isFirstItemColumnSpanned(item)); +} + +QTreeWidgetItem* PythonQtWrapper_QTreeWidget::itemAbove(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item) const +{ + return ( theWrappedObject->itemAbove(item)); +} + +QTreeWidgetItem* PythonQtWrapper_QTreeWidget::itemAt(QTreeWidget* theWrappedObject, const QPoint& p) const +{ + return ( theWrappedObject->itemAt(p)); +} + +QTreeWidgetItem* PythonQtWrapper_QTreeWidget::itemAt(QTreeWidget* theWrappedObject, int x, int y) const +{ + return ( theWrappedObject->itemAt(x, y)); +} + +QTreeWidgetItem* PythonQtWrapper_QTreeWidget::itemBelow(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item) const +{ + return ( theWrappedObject->itemBelow(item)); +} + +QWidget* PythonQtWrapper_QTreeWidget::itemWidget(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column) const +{ + return ( theWrappedObject->itemWidget(item, column)); +} + +QStringList PythonQtWrapper_QTreeWidget::mimeTypes(QTreeWidget* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTreeWidget*)theWrappedObject)->promoted_mimeTypes()); +} + +void PythonQtWrapper_QTreeWidget::openPersistentEditor(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column) +{ + ( theWrappedObject->openPersistentEditor(item, column)); +} + +void PythonQtWrapper_QTreeWidget::removeItemWidget(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column) +{ + ( theWrappedObject->removeItemWidget(item, column)); +} + +QList PythonQtWrapper_QTreeWidget::selectedItems(QTreeWidget* theWrappedObject) const +{ + return ( theWrappedObject->selectedItems()); +} + +void PythonQtWrapper_QTreeWidget::setColumnCount(QTreeWidget* theWrappedObject, int columns) +{ + ( theWrappedObject->setColumnCount(columns)); +} + +void PythonQtWrapper_QTreeWidget::setCurrentItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item) +{ + ( theWrappedObject->setCurrentItem(item)); +} + +void PythonQtWrapper_QTreeWidget::setCurrentItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column) +{ + ( theWrappedObject->setCurrentItem(item, column)); +} + +void PythonQtWrapper_QTreeWidget::setCurrentItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column, QItemSelectionModel::SelectionFlags command) +{ + ( theWrappedObject->setCurrentItem(item, column, command)); +} + +void PythonQtWrapper_QTreeWidget::setFirstItemColumnSpanned(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item, bool span) +{ + ( theWrappedObject->setFirstItemColumnSpanned(item, span)); +} + +void PythonQtWrapper_QTreeWidget::setHeaderItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item) +{ + ( theWrappedObject->setHeaderItem(item)); +} + +void PythonQtWrapper_QTreeWidget::setHeaderLabel(QTreeWidget* theWrappedObject, const QString& label) +{ + ( theWrappedObject->setHeaderLabel(label)); +} + +void PythonQtWrapper_QTreeWidget::setHeaderLabels(QTreeWidget* theWrappedObject, const QStringList& labels) +{ + ( theWrappedObject->setHeaderLabels(labels)); +} + +void PythonQtWrapper_QTreeWidget::setItemWidget(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column, QWidget* widget) +{ + ( theWrappedObject->setItemWidget(item, column, widget)); +} + +void PythonQtWrapper_QTreeWidget::setSelectionModel(QTreeWidget* theWrappedObject, QItemSelectionModel* selectionModel) +{ + ( ((PythonQtPublicPromoter_QTreeWidget*)theWrappedObject)->promoted_setSelectionModel(selectionModel)); +} + +int PythonQtWrapper_QTreeWidget::sortColumn(QTreeWidget* theWrappedObject) const +{ + return ( theWrappedObject->sortColumn()); +} + +void PythonQtWrapper_QTreeWidget::sortItems(QTreeWidget* theWrappedObject, int column, Qt::SortOrder order) +{ + ( theWrappedObject->sortItems(column, order)); +} + +Qt::DropActions PythonQtWrapper_QTreeWidget::supportedDropActions(QTreeWidget* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTreeWidget*)theWrappedObject)->promoted_supportedDropActions()); +} + +QTreeWidgetItem* PythonQtWrapper_QTreeWidget::takeTopLevelItem(QTreeWidget* theWrappedObject, int index) +{ + return ( theWrappedObject->takeTopLevelItem(index)); +} + +QTreeWidgetItem* PythonQtWrapper_QTreeWidget::topLevelItem(QTreeWidget* theWrappedObject, int index) const +{ + return ( theWrappedObject->topLevelItem(index)); +} + +int PythonQtWrapper_QTreeWidget::topLevelItemCount(QTreeWidget* theWrappedObject) const +{ + return ( theWrappedObject->topLevelItemCount()); +} + +QRect PythonQtWrapper_QTreeWidget::visualItemRect(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item) const +{ + return ( theWrappedObject->visualItemRect(item)); +} + + + +PythonQtShell_QTreeWidgetItem::~PythonQtShell_QTreeWidgetItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QTreeWidgetItem* PythonQtShell_QTreeWidgetItem::clone() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clone"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QTreeWidgetItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QTreeWidgetItem* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("clone", methodInfo, result); + } else { + returnValue = *((QTreeWidgetItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidgetItem::clone(); +} +QVariant PythonQtShell_QTreeWidgetItem::data(int column, int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&column, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidgetItem::data(column, role); +} +bool PythonQtShell_QTreeWidgetItem::__lt__(const QTreeWidgetItem& other) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "__lt__"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QTreeWidgetItem&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&other}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("__lt__", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTreeWidgetItem::operator<(other); +} +void PythonQtShell_QTreeWidgetItem::read(QDataStream& in) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "read"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDataStream&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&in}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidgetItem::read(in); +} +void PythonQtShell_QTreeWidgetItem::setData(int column, int role, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&column, (void*)&role, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidgetItem::setData(column, role, value); +} +void PythonQtShell_QTreeWidgetItem::write(QDataStream& out) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "write"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDataStream&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&out}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTreeWidgetItem::write(out); +} +QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::new_QTreeWidgetItem(QTreeWidget* view, QTreeWidgetItem* after, int type) +{ +return new PythonQtShell_QTreeWidgetItem(view, after, type); } + +QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::new_QTreeWidgetItem(QTreeWidget* view, const QStringList& strings, int type) +{ +return new PythonQtShell_QTreeWidgetItem(view, strings, type); } + +QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::new_QTreeWidgetItem(QTreeWidget* view, int type) +{ +return new PythonQtShell_QTreeWidgetItem(view, type); } + +QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::new_QTreeWidgetItem(QTreeWidgetItem* parent, QTreeWidgetItem* after, int type) +{ +return new PythonQtShell_QTreeWidgetItem(parent, after, type); } + +QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::new_QTreeWidgetItem(QTreeWidgetItem* parent, const QStringList& strings, int type) +{ +return new PythonQtShell_QTreeWidgetItem(parent, strings, type); } + +QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::new_QTreeWidgetItem(QTreeWidgetItem* parent, int type) +{ +return new PythonQtShell_QTreeWidgetItem(parent, type); } + +QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::new_QTreeWidgetItem(const QStringList& strings, int type) +{ +return new PythonQtShell_QTreeWidgetItem(strings, type); } + +QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::new_QTreeWidgetItem(int type) +{ +return new PythonQtShell_QTreeWidgetItem(type); } + +void PythonQtWrapper_QTreeWidgetItem::addChild(QTreeWidgetItem* theWrappedObject, QTreeWidgetItem* child) +{ + ( theWrappedObject->addChild(child)); +} + +void PythonQtWrapper_QTreeWidgetItem::addChildren(QTreeWidgetItem* theWrappedObject, const QList& children) +{ + ( theWrappedObject->addChildren(children)); +} + +QBrush PythonQtWrapper_QTreeWidgetItem::background(QTreeWidgetItem* theWrappedObject, int column) const +{ + return ( theWrappedObject->background(column)); +} + +Qt::CheckState PythonQtWrapper_QTreeWidgetItem::checkState(QTreeWidgetItem* theWrappedObject, int column) const +{ + return ( theWrappedObject->checkState(column)); +} + +QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::child(QTreeWidgetItem* theWrappedObject, int index) const +{ + return ( theWrappedObject->child(index)); +} + +int PythonQtWrapper_QTreeWidgetItem::childCount(QTreeWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->childCount()); +} + +QTreeWidgetItem::ChildIndicatorPolicy PythonQtWrapper_QTreeWidgetItem::childIndicatorPolicy(QTreeWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->childIndicatorPolicy()); +} + +QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::clone(QTreeWidgetItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTreeWidgetItem*)theWrappedObject)->promoted_clone()); +} + +int PythonQtWrapper_QTreeWidgetItem::columnCount(QTreeWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->columnCount()); +} + +QVariant PythonQtWrapper_QTreeWidgetItem::data(QTreeWidgetItem* theWrappedObject, int column, int role) const +{ + return ( ((PythonQtPublicPromoter_QTreeWidgetItem*)theWrappedObject)->promoted_data(column, role)); +} + +Qt::ItemFlags PythonQtWrapper_QTreeWidgetItem::flags(QTreeWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->flags()); +} + +QFont PythonQtWrapper_QTreeWidgetItem::font(QTreeWidgetItem* theWrappedObject, int column) const +{ + return ( theWrappedObject->font(column)); +} + +QBrush PythonQtWrapper_QTreeWidgetItem::foreground(QTreeWidgetItem* theWrappedObject, int column) const +{ + return ( theWrappedObject->foreground(column)); +} + +QIcon PythonQtWrapper_QTreeWidgetItem::icon(QTreeWidgetItem* theWrappedObject, int column) const +{ + return ( theWrappedObject->icon(column)); +} + +int PythonQtWrapper_QTreeWidgetItem::indexOfChild(QTreeWidgetItem* theWrappedObject, QTreeWidgetItem* child) const +{ + return ( theWrappedObject->indexOfChild(child)); +} + +void PythonQtWrapper_QTreeWidgetItem::insertChild(QTreeWidgetItem* theWrappedObject, int index, QTreeWidgetItem* child) +{ + ( theWrappedObject->insertChild(index, child)); +} + +void PythonQtWrapper_QTreeWidgetItem::insertChildren(QTreeWidgetItem* theWrappedObject, int index, const QList& children) +{ + ( theWrappedObject->insertChildren(index, children)); +} + +bool PythonQtWrapper_QTreeWidgetItem::isDisabled(QTreeWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->isDisabled()); +} + +bool PythonQtWrapper_QTreeWidgetItem::isExpanded(QTreeWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->isExpanded()); +} + +bool PythonQtWrapper_QTreeWidgetItem::isFirstColumnSpanned(QTreeWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->isFirstColumnSpanned()); +} + +bool PythonQtWrapper_QTreeWidgetItem::isHidden(QTreeWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->isHidden()); +} + +bool PythonQtWrapper_QTreeWidgetItem::isSelected(QTreeWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->isSelected()); +} + +QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::parent(QTreeWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->parent()); +} + +void PythonQtWrapper_QTreeWidgetItem::removeChild(QTreeWidgetItem* theWrappedObject, QTreeWidgetItem* child) +{ + ( theWrappedObject->removeChild(child)); +} + +void PythonQtWrapper_QTreeWidgetItem::setBackground(QTreeWidgetItem* theWrappedObject, int column, const QBrush& brush) +{ + ( theWrappedObject->setBackground(column, brush)); +} + +void PythonQtWrapper_QTreeWidgetItem::setCheckState(QTreeWidgetItem* theWrappedObject, int column, Qt::CheckState state) +{ + ( theWrappedObject->setCheckState(column, state)); +} + +void PythonQtWrapper_QTreeWidgetItem::setChildIndicatorPolicy(QTreeWidgetItem* theWrappedObject, QTreeWidgetItem::ChildIndicatorPolicy policy) +{ + ( theWrappedObject->setChildIndicatorPolicy(policy)); +} + +void PythonQtWrapper_QTreeWidgetItem::setData(QTreeWidgetItem* theWrappedObject, int column, int role, const QVariant& value) +{ + ( ((PythonQtPublicPromoter_QTreeWidgetItem*)theWrappedObject)->promoted_setData(column, role, value)); +} + +void PythonQtWrapper_QTreeWidgetItem::setDisabled(QTreeWidgetItem* theWrappedObject, bool disabled) +{ + ( theWrappedObject->setDisabled(disabled)); +} + +void PythonQtWrapper_QTreeWidgetItem::setExpanded(QTreeWidgetItem* theWrappedObject, bool expand) +{ + ( theWrappedObject->setExpanded(expand)); +} + +void PythonQtWrapper_QTreeWidgetItem::setFirstColumnSpanned(QTreeWidgetItem* theWrappedObject, bool span) +{ + ( theWrappedObject->setFirstColumnSpanned(span)); +} + +void PythonQtWrapper_QTreeWidgetItem::setFlags(QTreeWidgetItem* theWrappedObject, Qt::ItemFlags flags) +{ + ( theWrappedObject->setFlags(flags)); +} + +void PythonQtWrapper_QTreeWidgetItem::setFont(QTreeWidgetItem* theWrappedObject, int column, const QFont& font) +{ + ( theWrappedObject->setFont(column, font)); +} + +void PythonQtWrapper_QTreeWidgetItem::setForeground(QTreeWidgetItem* theWrappedObject, int column, const QBrush& brush) +{ + ( theWrappedObject->setForeground(column, brush)); +} + +void PythonQtWrapper_QTreeWidgetItem::setHidden(QTreeWidgetItem* theWrappedObject, bool hide) +{ + ( theWrappedObject->setHidden(hide)); +} + +void PythonQtWrapper_QTreeWidgetItem::setIcon(QTreeWidgetItem* theWrappedObject, int column, const QIcon& icon) +{ + ( theWrappedObject->setIcon(column, icon)); +} + +void PythonQtWrapper_QTreeWidgetItem::setSelected(QTreeWidgetItem* theWrappedObject, bool select) +{ + ( theWrappedObject->setSelected(select)); +} + +void PythonQtWrapper_QTreeWidgetItem::setSizeHint(QTreeWidgetItem* theWrappedObject, int column, const QSize& size) +{ + ( theWrappedObject->setSizeHint(column, size)); +} + +void PythonQtWrapper_QTreeWidgetItem::setStatusTip(QTreeWidgetItem* theWrappedObject, int column, const QString& statusTip) +{ + ( theWrappedObject->setStatusTip(column, statusTip)); +} + +void PythonQtWrapper_QTreeWidgetItem::setText(QTreeWidgetItem* theWrappedObject, int column, const QString& text) +{ + ( theWrappedObject->setText(column, text)); +} + +void PythonQtWrapper_QTreeWidgetItem::setTextAlignment(QTreeWidgetItem* theWrappedObject, int column, int alignment) +{ + ( theWrappedObject->setTextAlignment(column, alignment)); +} + +void PythonQtWrapper_QTreeWidgetItem::setToolTip(QTreeWidgetItem* theWrappedObject, int column, const QString& toolTip) +{ + ( theWrappedObject->setToolTip(column, toolTip)); +} + +void PythonQtWrapper_QTreeWidgetItem::setWhatsThis(QTreeWidgetItem* theWrappedObject, int column, const QString& whatsThis) +{ + ( theWrappedObject->setWhatsThis(column, whatsThis)); +} + +QSize PythonQtWrapper_QTreeWidgetItem::sizeHint(QTreeWidgetItem* theWrappedObject, int column) const +{ + return ( theWrappedObject->sizeHint(column)); +} + +void PythonQtWrapper_QTreeWidgetItem::sortChildren(QTreeWidgetItem* theWrappedObject, int column, Qt::SortOrder order) +{ + ( theWrappedObject->sortChildren(column, order)); +} + +QString PythonQtWrapper_QTreeWidgetItem::statusTip(QTreeWidgetItem* theWrappedObject, int column) const +{ + return ( theWrappedObject->statusTip(column)); +} + +QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::takeChild(QTreeWidgetItem* theWrappedObject, int index) +{ + return ( theWrappedObject->takeChild(index)); +} + +QList PythonQtWrapper_QTreeWidgetItem::takeChildren(QTreeWidgetItem* theWrappedObject) +{ + return ( theWrappedObject->takeChildren()); +} + +QString PythonQtWrapper_QTreeWidgetItem::text(QTreeWidgetItem* theWrappedObject, int column) const +{ + return ( theWrappedObject->text(column)); +} + +int PythonQtWrapper_QTreeWidgetItem::textAlignment(QTreeWidgetItem* theWrappedObject, int column) const +{ + return ( theWrappedObject->textAlignment(column)); +} + +QString PythonQtWrapper_QTreeWidgetItem::toolTip(QTreeWidgetItem* theWrappedObject, int column) const +{ + return ( theWrappedObject->toolTip(column)); +} + +QTreeWidget* PythonQtWrapper_QTreeWidgetItem::treeWidget(QTreeWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->treeWidget()); +} + +int PythonQtWrapper_QTreeWidgetItem::type(QTreeWidgetItem* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + +QString PythonQtWrapper_QTreeWidgetItem::whatsThis(QTreeWidgetItem* theWrappedObject, int column) const +{ + return ( theWrappedObject->whatsThis(column)); +} + + + +PythonQtShell_QUndoCommand::~PythonQtShell_QUndoCommand() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +int PythonQtShell_QUndoCommand::id() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "id"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("id", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoCommand::id(); +} +bool PythonQtShell_QUndoCommand::mergeWith(const QUndoCommand* other) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mergeWith"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QUndoCommand*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&other}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mergeWith", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoCommand::mergeWith(other); +} +void PythonQtShell_QUndoCommand::redo() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redo"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoCommand::redo(); +} +void PythonQtShell_QUndoCommand::undo() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "undo"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoCommand::undo(); +} +QUndoCommand* PythonQtWrapper_QUndoCommand::new_QUndoCommand(QUndoCommand* parent) +{ +return new PythonQtShell_QUndoCommand(parent); } + +QUndoCommand* PythonQtWrapper_QUndoCommand::new_QUndoCommand(const QString& text, QUndoCommand* parent) +{ +return new PythonQtShell_QUndoCommand(text, parent); } + +QString PythonQtWrapper_QUndoCommand::actionText(QUndoCommand* theWrappedObject) const +{ + return ( theWrappedObject->actionText()); +} + +const QUndoCommand* PythonQtWrapper_QUndoCommand::child(QUndoCommand* theWrappedObject, int index) const +{ + return ( theWrappedObject->child(index)); +} + +int PythonQtWrapper_QUndoCommand::childCount(QUndoCommand* theWrappedObject) const +{ + return ( theWrappedObject->childCount()); +} + +int PythonQtWrapper_QUndoCommand::id(QUndoCommand* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QUndoCommand*)theWrappedObject)->promoted_id()); +} + +bool PythonQtWrapper_QUndoCommand::mergeWith(QUndoCommand* theWrappedObject, const QUndoCommand* other) +{ + return ( ((PythonQtPublicPromoter_QUndoCommand*)theWrappedObject)->promoted_mergeWith(other)); +} + +void PythonQtWrapper_QUndoCommand::redo(QUndoCommand* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QUndoCommand*)theWrappedObject)->promoted_redo()); +} + +void PythonQtWrapper_QUndoCommand::setText(QUndoCommand* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setText(text)); +} + +QString PythonQtWrapper_QUndoCommand::text(QUndoCommand* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + +void PythonQtWrapper_QUndoCommand::undo(QUndoCommand* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QUndoCommand*)theWrappedObject)->promoted_undo()); +} + + + +PythonQtShell_QUndoGroup::~PythonQtShell_QUndoGroup() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QUndoGroup::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoGroup::childEvent(arg__1); +} +void PythonQtShell_QUndoGroup::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoGroup::customEvent(arg__1); +} +bool PythonQtShell_QUndoGroup::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoGroup::event(arg__1); +} +bool PythonQtShell_QUndoGroup::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoGroup::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QUndoGroup::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoGroup::timerEvent(arg__1); +} +QUndoGroup* PythonQtWrapper_QUndoGroup::new_QUndoGroup(QObject* parent) +{ +return new PythonQtShell_QUndoGroup(parent); } + +QUndoStack* PythonQtWrapper_QUndoGroup::activeStack(QUndoGroup* theWrappedObject) const +{ + return ( theWrappedObject->activeStack()); +} + +void PythonQtWrapper_QUndoGroup::addStack(QUndoGroup* theWrappedObject, QUndoStack* stack) +{ + ( theWrappedObject->addStack(stack)); +} + +bool PythonQtWrapper_QUndoGroup::canRedo(QUndoGroup* theWrappedObject) const +{ + return ( theWrappedObject->canRedo()); +} + +bool PythonQtWrapper_QUndoGroup::canUndo(QUndoGroup* theWrappedObject) const +{ + return ( theWrappedObject->canUndo()); +} + +QAction* PythonQtWrapper_QUndoGroup::createRedoAction(QUndoGroup* theWrappedObject, QObject* parent, const QString& prefix) const +{ + return ( theWrappedObject->createRedoAction(parent, prefix)); +} + +QAction* PythonQtWrapper_QUndoGroup::createUndoAction(QUndoGroup* theWrappedObject, QObject* parent, const QString& prefix) const +{ + return ( theWrappedObject->createUndoAction(parent, prefix)); +} + +bool PythonQtWrapper_QUndoGroup::isClean(QUndoGroup* theWrappedObject) const +{ + return ( theWrappedObject->isClean()); +} + +QString PythonQtWrapper_QUndoGroup::redoText(QUndoGroup* theWrappedObject) const +{ + return ( theWrappedObject->redoText()); +} + +void PythonQtWrapper_QUndoGroup::removeStack(QUndoGroup* theWrappedObject, QUndoStack* stack) +{ + ( theWrappedObject->removeStack(stack)); +} + +QList PythonQtWrapper_QUndoGroup::stacks(QUndoGroup* theWrappedObject) const +{ + return ( theWrappedObject->stacks()); +} + +QString PythonQtWrapper_QUndoGroup::undoText(QUndoGroup* theWrappedObject) const +{ + return ( theWrappedObject->undoText()); +} + + + +PythonQtShell_QUndoStack::~PythonQtShell_QUndoStack() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QUndoStack::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoStack::childEvent(arg__1); +} +void PythonQtShell_QUndoStack::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoStack::customEvent(arg__1); +} +bool PythonQtShell_QUndoStack::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoStack::event(arg__1); +} +bool PythonQtShell_QUndoStack::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoStack::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QUndoStack::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoStack::timerEvent(arg__1); +} +QUndoStack* PythonQtWrapper_QUndoStack::new_QUndoStack(QObject* parent) +{ +return new PythonQtShell_QUndoStack(parent); } + +void PythonQtWrapper_QUndoStack::beginMacro(QUndoStack* theWrappedObject, const QString& text) +{ + ( theWrappedObject->beginMacro(text)); +} + +bool PythonQtWrapper_QUndoStack::canRedo(QUndoStack* theWrappedObject) const +{ + return ( theWrappedObject->canRedo()); +} + +bool PythonQtWrapper_QUndoStack::canUndo(QUndoStack* theWrappedObject) const +{ + return ( theWrappedObject->canUndo()); +} + +int PythonQtWrapper_QUndoStack::cleanIndex(QUndoStack* theWrappedObject) const +{ + return ( theWrappedObject->cleanIndex()); +} + +void PythonQtWrapper_QUndoStack::clear(QUndoStack* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +const QUndoCommand* PythonQtWrapper_QUndoStack::command(QUndoStack* theWrappedObject, int index) const +{ + return ( theWrappedObject->command(index)); +} + +int PythonQtWrapper_QUndoStack::count(QUndoStack* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +QAction* PythonQtWrapper_QUndoStack::createRedoAction(QUndoStack* theWrappedObject, QObject* parent, const QString& prefix) const +{ + return ( theWrappedObject->createRedoAction(parent, prefix)); +} + +QAction* PythonQtWrapper_QUndoStack::createUndoAction(QUndoStack* theWrappedObject, QObject* parent, const QString& prefix) const +{ + return ( theWrappedObject->createUndoAction(parent, prefix)); +} + +void PythonQtWrapper_QUndoStack::endMacro(QUndoStack* theWrappedObject) +{ + ( theWrappedObject->endMacro()); +} + +int PythonQtWrapper_QUndoStack::index(QUndoStack* theWrappedObject) const +{ + return ( theWrappedObject->index()); +} + +bool PythonQtWrapper_QUndoStack::isActive(QUndoStack* theWrappedObject) const +{ + return ( theWrappedObject->isActive()); +} + +bool PythonQtWrapper_QUndoStack::isClean(QUndoStack* theWrappedObject) const +{ + return ( theWrappedObject->isClean()); +} + +void PythonQtWrapper_QUndoStack::push(QUndoStack* theWrappedObject, QUndoCommand* cmd) +{ + ( theWrappedObject->push(cmd)); +} + +QString PythonQtWrapper_QUndoStack::redoText(QUndoStack* theWrappedObject) const +{ + return ( theWrappedObject->redoText()); +} + +void PythonQtWrapper_QUndoStack::setUndoLimit(QUndoStack* theWrappedObject, int limit) +{ + ( theWrappedObject->setUndoLimit(limit)); +} + +QString PythonQtWrapper_QUndoStack::text(QUndoStack* theWrappedObject, int idx) const +{ + return ( theWrappedObject->text(idx)); +} + +int PythonQtWrapper_QUndoStack::undoLimit(QUndoStack* theWrappedObject) const +{ + return ( theWrappedObject->undoLimit()); +} + +QString PythonQtWrapper_QUndoStack::undoText(QUndoStack* theWrappedObject) const +{ + return ( theWrappedObject->undoText()); +} + + + +PythonQtShell_QUndoView::~PythonQtShell_QUndoView() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QUndoView::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::actionEvent(arg__1); +} +void PythonQtShell_QUndoView::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::changeEvent(arg__1); +} +void PythonQtShell_QUndoView::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::childEvent(arg__1); +} +void PythonQtShell_QUndoView::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&editor, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::closeEditor(editor, hint); +} +void PythonQtShell_QUndoView::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::closeEvent(arg__1); +} +void PythonQtShell_QUndoView::commitData(QWidget* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::commitData(editor); +} +void PythonQtShell_QUndoView::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::contextMenuEvent(arg__1); +} +void PythonQtShell_QUndoView::currentChanged(const QModelIndex& current, const QModelIndex& previous) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)¤t, (void*)&previous}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::currentChanged(current, previous); +} +void PythonQtShell_QUndoView::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::customEvent(arg__1); +} +void PythonQtShell_QUndoView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&" , "const QVector&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&topLeft, (void*)&bottomRight, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::dataChanged(topLeft, bottomRight, roles); +} +int PythonQtShell_QUndoView::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::devType(); +} +void PythonQtShell_QUndoView::doItemsLayout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::doItemsLayout(); +} +void PythonQtShell_QUndoView::dragEnterEvent(QDragEnterEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::dragEnterEvent(event); +} +void PythonQtShell_QUndoView::dragLeaveEvent(QDragLeaveEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::dragLeaveEvent(e); +} +void PythonQtShell_QUndoView::dragMoveEvent(QDragMoveEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::dragMoveEvent(e); +} +void PythonQtShell_QUndoView::dropEvent(QDropEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::dropEvent(e); +} +bool PythonQtShell_QUndoView::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::edit(index, trigger, event); +} +void PythonQtShell_QUndoView::editorDestroyed(QObject* editor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QObject*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&editor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::editorDestroyed(editor); +} +void PythonQtShell_QUndoView::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::enterEvent(arg__1); +} +bool PythonQtShell_QUndoView::event(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::event(e); +} +bool PythonQtShell_QUndoView::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QUndoView::focusInEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::focusInEvent(event); +} +bool PythonQtShell_QUndoView::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::focusNextPrevChild(next); +} +void PythonQtShell_QUndoView::focusOutEvent(QFocusEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::focusOutEvent(event); +} +bool PythonQtShell_QUndoView::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::hasHeightForWidth(); +} +int PythonQtShell_QUndoView::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::heightForWidth(arg__1); +} +void PythonQtShell_QUndoView::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::hideEvent(arg__1); +} +int PythonQtShell_QUndoView::horizontalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::horizontalOffset(); +} +void PythonQtShell_QUndoView::horizontalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::horizontalScrollbarAction(action); +} +void PythonQtShell_QUndoView::horizontalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::horizontalScrollbarValueChanged(value); +} +QModelIndex PythonQtShell_QUndoView::indexAt(const QPoint& p) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&p}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::indexAt(p); +} +void PythonQtShell_QUndoView::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::initPainter(painter); +} +void PythonQtShell_QUndoView::inputMethodEvent(QInputMethodEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::inputMethodEvent(event); +} +QVariant PythonQtShell_QUndoView::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::inputMethodQuery(query); +} +bool PythonQtShell_QUndoView::isIndexHidden(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::isIndexHidden(index); +} +void PythonQtShell_QUndoView::keyPressEvent(QKeyEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::keyPressEvent(event); +} +void PythonQtShell_QUndoView::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::keyReleaseEvent(arg__1); +} +void PythonQtShell_QUndoView::keyboardSearch(const QString& search) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&search}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::keyboardSearch(search); +} +void PythonQtShell_QUndoView::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::leaveEvent(arg__1); +} +int PythonQtShell_QUndoView::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::metric(arg__1); +} +void PythonQtShell_QUndoView::mouseDoubleClickEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::mouseDoubleClickEvent(event); +} +void PythonQtShell_QUndoView::mouseMoveEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::mouseMoveEvent(e); +} +void PythonQtShell_QUndoView::mousePressEvent(QMouseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::mousePressEvent(event); +} +void PythonQtShell_QUndoView::mouseReleaseEvent(QMouseEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::mouseReleaseEvent(e); +} +void PythonQtShell_QUndoView::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::moveEvent(arg__1); +} +bool PythonQtShell_QUndoView::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QUndoView::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::paintEngine(); +} +void PythonQtShell_QUndoView::paintEvent(QPaintEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::paintEvent(e); +} +QPaintDevice* PythonQtShell_QUndoView::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::redirected(offset); +} +void PythonQtShell_QUndoView::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::reset(); +} +void PythonQtShell_QUndoView::resizeEvent(QResizeEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::resizeEvent(e); +} +void PythonQtShell_QUndoView::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::rowsAboutToBeRemoved(parent, start, end); +} +void PythonQtShell_QUndoView::rowsInserted(const QModelIndex& parent, int start, int end) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::rowsInserted(parent, start, end); +} +void PythonQtShell_QUndoView::scrollContentsBy(int dx, int dy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&dx, (void*)&dy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::scrollContentsBy(dx, dy); +} +void PythonQtShell_QUndoView::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&index, (void*)&hint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::scrollTo(index, hint); +} +void PythonQtShell_QUndoView::selectAll() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::selectAll(); +} +QList PythonQtShell_QUndoView::selectedIndexes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::selectedIndexes(); +} +void PythonQtShell_QUndoView::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::selectionChanged(selected, deselected); +} +QItemSelectionModel::SelectionFlags PythonQtShell_QUndoView::selectionCommand(const QModelIndex& index, const QEvent* event) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QItemSelectionModel::SelectionFlags returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); + } else { + returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::selectionCommand(index, event); +} +void PythonQtShell_QUndoView::setModel(QAbstractItemModel* model) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractItemModel*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&model}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::setModel(model); +} +void PythonQtShell_QUndoView::setRootIndex(const QModelIndex& index) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::setRootIndex(index); +} +void PythonQtShell_QUndoView::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&rect, (void*)&command}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::setSelection(rect, command); +} +void PythonQtShell_QUndoView::setSelectionModel(QItemSelectionModel* selectionModel) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QItemSelectionModel*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&selectionModel}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::setSelectionModel(selectionModel); +} +void PythonQtShell_QUndoView::setupViewport(QWidget* viewport) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&viewport}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::setupViewport(viewport); +} +QPainter* PythonQtShell_QUndoView::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::sharedPainter(); +} +void PythonQtShell_QUndoView::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::showEvent(arg__1); +} +int PythonQtShell_QUndoView::sizeHintForColumn(int column) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&column}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::sizeHintForColumn(column); +} +int PythonQtShell_QUndoView::sizeHintForRow(int row) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&row}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::sizeHintForRow(row); +} +void PythonQtShell_QUndoView::startDrag(Qt::DropActions supportedActions) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&supportedActions}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::startDrag(supportedActions); +} +void PythonQtShell_QUndoView::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::tabletEvent(arg__1); +} +void PythonQtShell_QUndoView::timerEvent(QTimerEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::timerEvent(e); +} +void PythonQtShell_QUndoView::updateEditorData() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::updateEditorData(); +} +void PythonQtShell_QUndoView::updateEditorGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::updateEditorGeometries(); +} +void PythonQtShell_QUndoView::updateGeometries() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::updateGeometries(); +} +int PythonQtShell_QUndoView::verticalOffset() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::verticalOffset(); +} +void PythonQtShell_QUndoView::verticalScrollbarAction(int action) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&action}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::verticalScrollbarAction(action); +} +void PythonQtShell_QUndoView::verticalScrollbarValueChanged(int value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::verticalScrollbarValueChanged(value); +} +QStyleOptionViewItem PythonQtShell_QUndoView::viewOptions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStyleOptionViewItem"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStyleOptionViewItem returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); + } else { + returnValue = *((QStyleOptionViewItem*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::viewOptions(); +} +bool PythonQtShell_QUndoView::viewportEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::viewportEvent(event); +} +QSize PythonQtShell_QUndoView::viewportSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("viewportSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::viewportSizeHint(); +} +QRect PythonQtShell_QUndoView::visualRect(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRect returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::visualRect(index); +} +QRegion PythonQtShell_QUndoView::visualRegionForSelection(const QItemSelection& selection) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QRegion returnValue; + void* args[2] = {NULL, (void*)&selection}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); + } else { + returnValue = *((QRegion*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUndoView::visualRegionForSelection(selection); +} +void PythonQtShell_QUndoView::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUndoView::wheelEvent(arg__1); +} +QUndoView* PythonQtWrapper_QUndoView::new_QUndoView(QUndoGroup* group, QWidget* parent) +{ +return new PythonQtShell_QUndoView(group, parent); } + +QUndoView* PythonQtWrapper_QUndoView::new_QUndoView(QUndoStack* stack, QWidget* parent) +{ +return new PythonQtShell_QUndoView(stack, parent); } + +QUndoView* PythonQtWrapper_QUndoView::new_QUndoView(QWidget* parent) +{ +return new PythonQtShell_QUndoView(parent); } + +QIcon PythonQtWrapper_QUndoView::cleanIcon(QUndoView* theWrappedObject) const +{ + return ( theWrappedObject->cleanIcon()); +} + +QString PythonQtWrapper_QUndoView::emptyLabel(QUndoView* theWrappedObject) const +{ + return ( theWrappedObject->emptyLabel()); +} + +QUndoGroup* PythonQtWrapper_QUndoView::group(QUndoView* theWrappedObject) const +{ + return ( theWrappedObject->group()); +} + +void PythonQtWrapper_QUndoView::setCleanIcon(QUndoView* theWrappedObject, const QIcon& icon) +{ + ( theWrappedObject->setCleanIcon(icon)); +} + +void PythonQtWrapper_QUndoView::setEmptyLabel(QUndoView* theWrappedObject, const QString& label) +{ + ( theWrappedObject->setEmptyLabel(label)); +} + +QUndoStack* PythonQtWrapper_QUndoView::stack(QUndoView* theWrappedObject) const +{ + return ( theWrappedObject->stack()); +} + + + +PythonQtShell_QVBoxLayout::~PythonQtShell_QVBoxLayout() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QVBoxLayout::addItem(QLayoutItem* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "addItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QLayoutItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QVBoxLayout::addItem(arg__1); +} +void PythonQtShell_QVBoxLayout::childEvent(QChildEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QVBoxLayout::childEvent(e); +} +QSizePolicy::ControlTypes PythonQtShell_QVBoxLayout::controlTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "controlTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSizePolicy::ControlTypes"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSizePolicy::ControlTypes returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("controlTypes", methodInfo, result); + } else { + returnValue = *((QSizePolicy::ControlTypes*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVBoxLayout::controlTypes(); +} +int PythonQtShell_QVBoxLayout::count() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVBoxLayout::count(); +} +void PythonQtShell_QVBoxLayout::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QVBoxLayout::customEvent(arg__1); +} +bool PythonQtShell_QVBoxLayout::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVBoxLayout::event(arg__1); +} +bool PythonQtShell_QVBoxLayout::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVBoxLayout::eventFilter(arg__1, arg__2); +} +Qt::Orientations PythonQtShell_QVBoxLayout::expandingDirections() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::Orientations"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::Orientations returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); + } else { + returnValue = *((Qt::Orientations*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVBoxLayout::expandingDirections(); +} +QRect PythonQtShell_QVBoxLayout::geometry() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QRect returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVBoxLayout::geometry(); +} +int PythonQtShell_QVBoxLayout::indexOf(QWidget* arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOf"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexOf", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVBoxLayout::indexOf(arg__1); +} +void PythonQtShell_QVBoxLayout::invalidate() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QVBoxLayout::invalidate(); +} +bool PythonQtShell_QVBoxLayout::isEmpty() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVBoxLayout::isEmpty(); +} +QLayoutItem* PythonQtShell_QVBoxLayout::itemAt(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); + } else { + returnValue = *((QLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVBoxLayout::itemAt(arg__1); +} +QLayout* PythonQtShell_QVBoxLayout::layout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayout*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QLayout* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); + } else { + returnValue = *((QLayout**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVBoxLayout::layout(); +} +QSize PythonQtShell_QVBoxLayout::maximumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVBoxLayout::maximumSize(); +} +QSize PythonQtShell_QVBoxLayout::minimumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVBoxLayout::minimumSize(); +} +void PythonQtShell_QVBoxLayout::setGeometry(const QRect& arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QVBoxLayout::setGeometry(arg__1); +} +QLayoutItem* PythonQtShell_QVBoxLayout::takeAt(int arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "takeAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayoutItem*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QLayoutItem* returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("takeAt", methodInfo, result); + } else { + returnValue = *((QLayoutItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVBoxLayout::takeAt(arg__1); +} +void PythonQtShell_QVBoxLayout::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QVBoxLayout::timerEvent(arg__1); +} +QVBoxLayout* PythonQtWrapper_QVBoxLayout::new_QVBoxLayout() +{ +return new PythonQtShell_QVBoxLayout(); } + +QVBoxLayout* PythonQtWrapper_QVBoxLayout::new_QVBoxLayout(QWidget* parent) +{ +return new PythonQtShell_QVBoxLayout(parent); } + +#endif + +PythonQtShell_QValidator::~PythonQtShell_QValidator() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QValidator::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QValidator::childEvent(arg__1); +} +void PythonQtShell_QValidator::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QValidator::customEvent(arg__1); +} +bool PythonQtShell_QValidator::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QValidator::event(arg__1); +} +bool PythonQtShell_QValidator::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QValidator::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QValidator::fixup(QString& arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QValidator::fixup(arg__1); +} +void PythonQtShell_QValidator::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QValidator::timerEvent(arg__1); +} +QValidator::State PythonQtShell_QValidator::validate(QString& arg__1, int& arg__2) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QValidator::State" , "QString&" , "int&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QValidator::State returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); + } else { + returnValue = *((QValidator::State*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QValidator::State(); +} +QValidator* PythonQtWrapper_QValidator::new_QValidator(QObject* parent) +{ +return new PythonQtShell_QValidator(parent); } + +void PythonQtWrapper_QValidator::fixup(QValidator* theWrappedObject, QString& arg__1) const +{ + ( ((PythonQtPublicPromoter_QValidator*)theWrappedObject)->promoted_fixup(arg__1)); +} + +QLocale PythonQtWrapper_QValidator::locale(QValidator* theWrappedObject) const +{ + return ( theWrappedObject->locale()); +} + +void PythonQtWrapper_QValidator::setLocale(QValidator* theWrappedObject, const QLocale& locale) +{ + ( theWrappedObject->setLocale(locale)); +} + + + +QVector2D* PythonQtWrapper_QVector2D::new_QVector2D() +{ +return new QVector2D(); } + +QVector2D* PythonQtWrapper_QVector2D::new_QVector2D(const QPoint& point) +{ +return new QVector2D(point); } + +QVector2D* PythonQtWrapper_QVector2D::new_QVector2D(const QPointF& point) +{ +return new QVector2D(point); } + +QVector2D* PythonQtWrapper_QVector2D::new_QVector2D(const QVector3D& vector) +{ +return new QVector2D(vector); } + +QVector2D* PythonQtWrapper_QVector2D::new_QVector2D(const QVector4D& vector) +{ +return new QVector2D(vector); } + +QVector2D* PythonQtWrapper_QVector2D::new_QVector2D(float xpos, float ypos) +{ +return new QVector2D(xpos, ypos); } + +float PythonQtWrapper_QVector2D::static_QVector2D_dotProduct(const QVector2D& v1, const QVector2D& v2) +{ + return (QVector2D::dotProduct(v1, v2)); +} + +bool PythonQtWrapper_QVector2D::isNull(QVector2D* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +float PythonQtWrapper_QVector2D::length(QVector2D* theWrappedObject) const +{ + return ( theWrappedObject->length()); +} + +float PythonQtWrapper_QVector2D::lengthSquared(QVector2D* theWrappedObject) const +{ + return ( theWrappedObject->lengthSquared()); +} + +void PythonQtWrapper_QVector2D::normalize(QVector2D* theWrappedObject) +{ + ( theWrappedObject->normalize()); +} + +QVector2D PythonQtWrapper_QVector2D::normalized(QVector2D* theWrappedObject) const +{ + return ( theWrappedObject->normalized()); +} + +const QVector2D PythonQtWrapper_QVector2D::__mul__(QVector2D* theWrappedObject, const QVector2D& v2) +{ + return ( (*theWrappedObject)* v2); +} + +const QVector2D PythonQtWrapper_QVector2D::__mul__(QVector2D* theWrappedObject, float factor) +{ + return ( (*theWrappedObject)* factor); +} + +QVector2D* PythonQtWrapper_QVector2D::__imul__(QVector2D* theWrappedObject, const QVector2D& vector) +{ + return &( (*theWrappedObject)*= vector); +} + +QVector2D* PythonQtWrapper_QVector2D::__imul__(QVector2D* theWrappedObject, float factor) +{ + return &( (*theWrappedObject)*= factor); +} + +const QVector2D PythonQtWrapper_QVector2D::__add__(QVector2D* theWrappedObject, const QVector2D& v2) +{ + return ( (*theWrappedObject)+ v2); +} + +QVector2D* PythonQtWrapper_QVector2D::__iadd__(QVector2D* theWrappedObject, const QVector2D& vector) +{ + return &( (*theWrappedObject)+= vector); +} + +const QVector2D PythonQtWrapper_QVector2D::__sub__(QVector2D* theWrappedObject, const QVector2D& v2) +{ + return ( (*theWrappedObject)- v2); +} + +QVector2D* PythonQtWrapper_QVector2D::__isub__(QVector2D* theWrappedObject, const QVector2D& vector) +{ + return &( (*theWrappedObject)-= vector); +} + +const QVector2D PythonQtWrapper_QVector2D::__div__(QVector2D* theWrappedObject, float divisor) +{ + return ( (*theWrappedObject)/ divisor); +} + +QVector2D* PythonQtWrapper_QVector2D::__idiv__(QVector2D* theWrappedObject, float divisor) +{ + return &( (*theWrappedObject)/= divisor); +} + +bool PythonQtWrapper_QVector2D::__eq__(QVector2D* theWrappedObject, const QVector2D& v2) +{ + return ( (*theWrappedObject)== v2); +} + +void PythonQtWrapper_QVector2D::setX(QVector2D* theWrappedObject, float x) +{ + ( theWrappedObject->setX(x)); +} + +void PythonQtWrapper_QVector2D::setY(QVector2D* theWrappedObject, float y) +{ + ( theWrappedObject->setY(y)); +} + +QPoint PythonQtWrapper_QVector2D::toPoint(QVector2D* theWrappedObject) const +{ + return ( theWrappedObject->toPoint()); +} + +QPointF PythonQtWrapper_QVector2D::toPointF(QVector2D* theWrappedObject) const +{ + return ( theWrappedObject->toPointF()); +} + +QVector3D PythonQtWrapper_QVector2D::toVector3D(QVector2D* theWrappedObject) const +{ + return ( theWrappedObject->toVector3D()); +} + +QVector4D PythonQtWrapper_QVector2D::toVector4D(QVector2D* theWrappedObject) const +{ + return ( theWrappedObject->toVector4D()); +} + +float PythonQtWrapper_QVector2D::x(QVector2D* theWrappedObject) const +{ + return ( theWrappedObject->x()); +} + +float PythonQtWrapper_QVector2D::y(QVector2D* theWrappedObject) const +{ + return ( theWrappedObject->y()); +} + +QString PythonQtWrapper_QVector2D::py_toString(QVector2D* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QVector3D* PythonQtWrapper_QVector3D::new_QVector3D() +{ +return new QVector3D(); } + +QVector3D* PythonQtWrapper_QVector3D::new_QVector3D(const QPoint& point) +{ +return new QVector3D(point); } + +QVector3D* PythonQtWrapper_QVector3D::new_QVector3D(const QPointF& point) +{ +return new QVector3D(point); } + +QVector3D* PythonQtWrapper_QVector3D::new_QVector3D(const QVector2D& vector) +{ +return new QVector3D(vector); } + +QVector3D* PythonQtWrapper_QVector3D::new_QVector3D(const QVector2D& vector, float zpos) +{ +return new QVector3D(vector, zpos); } + +QVector3D* PythonQtWrapper_QVector3D::new_QVector3D(const QVector4D& vector) +{ +return new QVector3D(vector); } + +QVector3D* PythonQtWrapper_QVector3D::new_QVector3D(float xpos, float ypos, float zpos) +{ +return new QVector3D(xpos, ypos, zpos); } + +QVector3D PythonQtWrapper_QVector3D::static_QVector3D_crossProduct(const QVector3D& v1, const QVector3D& v2) +{ + return (QVector3D::crossProduct(v1, v2)); +} + +float PythonQtWrapper_QVector3D::distanceToLine(QVector3D* theWrappedObject, const QVector3D& point, const QVector3D& direction) const +{ + return ( theWrappedObject->distanceToLine(point, direction)); +} + +float PythonQtWrapper_QVector3D::distanceToPlane(QVector3D* theWrappedObject, const QVector3D& plane, const QVector3D& normal) const +{ + return ( theWrappedObject->distanceToPlane(plane, normal)); +} + +float PythonQtWrapper_QVector3D::distanceToPlane(QVector3D* theWrappedObject, const QVector3D& plane1, const QVector3D& plane2, const QVector3D& plane3) const +{ + return ( theWrappedObject->distanceToPlane(plane1, plane2, plane3)); +} + +float PythonQtWrapper_QVector3D::static_QVector3D_dotProduct(const QVector3D& v1, const QVector3D& v2) +{ + return (QVector3D::dotProduct(v1, v2)); +} + +bool PythonQtWrapper_QVector3D::isNull(QVector3D* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +float PythonQtWrapper_QVector3D::length(QVector3D* theWrappedObject) const +{ + return ( theWrappedObject->length()); +} + +float PythonQtWrapper_QVector3D::lengthSquared(QVector3D* theWrappedObject) const +{ + return ( theWrappedObject->lengthSquared()); +} + +QVector3D PythonQtWrapper_QVector3D::static_QVector3D_normal(const QVector3D& v1, const QVector3D& v2) +{ + return (QVector3D::normal(v1, v2)); +} + +QVector3D PythonQtWrapper_QVector3D::static_QVector3D_normal(const QVector3D& v1, const QVector3D& v2, const QVector3D& v3) +{ + return (QVector3D::normal(v1, v2, v3)); +} + +void PythonQtWrapper_QVector3D::normalize(QVector3D* theWrappedObject) +{ + ( theWrappedObject->normalize()); +} + +QVector3D PythonQtWrapper_QVector3D::normalized(QVector3D* theWrappedObject) const +{ + return ( theWrappedObject->normalized()); +} + +QVector3D PythonQtWrapper_QVector3D::__mul__(QVector3D* theWrappedObject, const QMatrix4x4& matrix) +{ + return ( (*theWrappedObject)* matrix); +} + +const QVector3D PythonQtWrapper_QVector3D::__mul__(QVector3D* theWrappedObject, const QVector3D& v2) +{ + return ( (*theWrappedObject)* v2); +} + +const QVector3D PythonQtWrapper_QVector3D::__mul__(QVector3D* theWrappedObject, float factor) +{ + return ( (*theWrappedObject)* factor); +} + +QVector3D* PythonQtWrapper_QVector3D::__imul__(QVector3D* theWrappedObject, const QVector3D& vector) +{ + return &( (*theWrappedObject)*= vector); +} + +QVector3D* PythonQtWrapper_QVector3D::__imul__(QVector3D* theWrappedObject, float factor) +{ + return &( (*theWrappedObject)*= factor); +} + +const QVector3D PythonQtWrapper_QVector3D::__add__(QVector3D* theWrappedObject, const QVector3D& v2) +{ + return ( (*theWrappedObject)+ v2); +} + +QVector3D* PythonQtWrapper_QVector3D::__iadd__(QVector3D* theWrappedObject, const QVector3D& vector) +{ + return &( (*theWrappedObject)+= vector); +} + +const QVector3D PythonQtWrapper_QVector3D::__sub__(QVector3D* theWrappedObject, const QVector3D& v2) +{ + return ( (*theWrappedObject)- v2); +} + +QVector3D* PythonQtWrapper_QVector3D::__isub__(QVector3D* theWrappedObject, const QVector3D& vector) +{ + return &( (*theWrappedObject)-= vector); +} + +const QVector3D PythonQtWrapper_QVector3D::__div__(QVector3D* theWrappedObject, float divisor) +{ + return ( (*theWrappedObject)/ divisor); +} + +QVector3D* PythonQtWrapper_QVector3D::__idiv__(QVector3D* theWrappedObject, float divisor) +{ + return &( (*theWrappedObject)/= divisor); +} + +bool PythonQtWrapper_QVector3D::__eq__(QVector3D* theWrappedObject, const QVector3D& v2) +{ + return ( (*theWrappedObject)== v2); +} + +void PythonQtWrapper_QVector3D::setX(QVector3D* theWrappedObject, float x) +{ + ( theWrappedObject->setX(x)); +} + +void PythonQtWrapper_QVector3D::setY(QVector3D* theWrappedObject, float y) +{ + ( theWrappedObject->setY(y)); +} + +void PythonQtWrapper_QVector3D::setZ(QVector3D* theWrappedObject, float z) +{ + ( theWrappedObject->setZ(z)); +} + +QPoint PythonQtWrapper_QVector3D::toPoint(QVector3D* theWrappedObject) const +{ + return ( theWrappedObject->toPoint()); +} + +QPointF PythonQtWrapper_QVector3D::toPointF(QVector3D* theWrappedObject) const +{ + return ( theWrappedObject->toPointF()); +} + +QVector2D PythonQtWrapper_QVector3D::toVector2D(QVector3D* theWrappedObject) const +{ + return ( theWrappedObject->toVector2D()); +} + +QVector4D PythonQtWrapper_QVector3D::toVector4D(QVector3D* theWrappedObject) const +{ + return ( theWrappedObject->toVector4D()); +} + +float PythonQtWrapper_QVector3D::x(QVector3D* theWrappedObject) const +{ + return ( theWrappedObject->x()); +} + +float PythonQtWrapper_QVector3D::y(QVector3D* theWrappedObject) const +{ + return ( theWrappedObject->y()); +} + +float PythonQtWrapper_QVector3D::z(QVector3D* theWrappedObject) const +{ + return ( theWrappedObject->z()); +} + +QString PythonQtWrapper_QVector3D::py_toString(QVector3D* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QVector4D* PythonQtWrapper_QVector4D::new_QVector4D() +{ +return new QVector4D(); } + +QVector4D* PythonQtWrapper_QVector4D::new_QVector4D(const QPoint& point) +{ +return new QVector4D(point); } + +QVector4D* PythonQtWrapper_QVector4D::new_QVector4D(const QPointF& point) +{ +return new QVector4D(point); } + +QVector4D* PythonQtWrapper_QVector4D::new_QVector4D(const QVector2D& vector) +{ +return new QVector4D(vector); } + +QVector4D* PythonQtWrapper_QVector4D::new_QVector4D(const QVector2D& vector, float zpos, float wpos) +{ +return new QVector4D(vector, zpos, wpos); } + +QVector4D* PythonQtWrapper_QVector4D::new_QVector4D(const QVector3D& vector) +{ +return new QVector4D(vector); } + +QVector4D* PythonQtWrapper_QVector4D::new_QVector4D(const QVector3D& vector, float wpos) +{ +return new QVector4D(vector, wpos); } + +QVector4D* PythonQtWrapper_QVector4D::new_QVector4D(float xpos, float ypos, float zpos, float wpos) +{ +return new QVector4D(xpos, ypos, zpos, wpos); } + +float PythonQtWrapper_QVector4D::static_QVector4D_dotProduct(const QVector4D& v1, const QVector4D& v2) +{ + return (QVector4D::dotProduct(v1, v2)); +} + +bool PythonQtWrapper_QVector4D::isNull(QVector4D* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +float PythonQtWrapper_QVector4D::length(QVector4D* theWrappedObject) const +{ + return ( theWrappedObject->length()); +} + +float PythonQtWrapper_QVector4D::lengthSquared(QVector4D* theWrappedObject) const +{ + return ( theWrappedObject->lengthSquared()); +} + +void PythonQtWrapper_QVector4D::normalize(QVector4D* theWrappedObject) +{ + ( theWrappedObject->normalize()); +} + +QVector4D PythonQtWrapper_QVector4D::normalized(QVector4D* theWrappedObject) const +{ + return ( theWrappedObject->normalized()); +} + +QVector4D PythonQtWrapper_QVector4D::__mul__(QVector4D* theWrappedObject, const QMatrix4x4& matrix) +{ + return ( (*theWrappedObject)* matrix); +} + +const QVector4D PythonQtWrapper_QVector4D::__mul__(QVector4D* theWrappedObject, const QVector4D& v2) +{ + return ( (*theWrappedObject)* v2); +} + +const QVector4D PythonQtWrapper_QVector4D::__mul__(QVector4D* theWrappedObject, float factor) +{ + return ( (*theWrappedObject)* factor); +} + +QVector4D* PythonQtWrapper_QVector4D::__imul__(QVector4D* theWrappedObject, const QVector4D& vector) +{ + return &( (*theWrappedObject)*= vector); +} + +QVector4D* PythonQtWrapper_QVector4D::__imul__(QVector4D* theWrappedObject, float factor) +{ + return &( (*theWrappedObject)*= factor); +} + +const QVector4D PythonQtWrapper_QVector4D::__add__(QVector4D* theWrappedObject, const QVector4D& v2) +{ + return ( (*theWrappedObject)+ v2); +} + +QVector4D* PythonQtWrapper_QVector4D::__iadd__(QVector4D* theWrappedObject, const QVector4D& vector) +{ + return &( (*theWrappedObject)+= vector); +} + +const QVector4D PythonQtWrapper_QVector4D::__sub__(QVector4D* theWrappedObject, const QVector4D& v2) +{ + return ( (*theWrappedObject)- v2); +} + +QVector4D* PythonQtWrapper_QVector4D::__isub__(QVector4D* theWrappedObject, const QVector4D& vector) +{ + return &( (*theWrappedObject)-= vector); +} + +const QVector4D PythonQtWrapper_QVector4D::__div__(QVector4D* theWrappedObject, float divisor) +{ + return ( (*theWrappedObject)/ divisor); +} + +QVector4D* PythonQtWrapper_QVector4D::__idiv__(QVector4D* theWrappedObject, float divisor) +{ + return &( (*theWrappedObject)/= divisor); +} + +bool PythonQtWrapper_QVector4D::__eq__(QVector4D* theWrappedObject, const QVector4D& v2) +{ + return ( (*theWrappedObject)== v2); +} + +void PythonQtWrapper_QVector4D::setW(QVector4D* theWrappedObject, float w) +{ + ( theWrappedObject->setW(w)); +} + +void PythonQtWrapper_QVector4D::setX(QVector4D* theWrappedObject, float x) +{ + ( theWrappedObject->setX(x)); +} + +void PythonQtWrapper_QVector4D::setY(QVector4D* theWrappedObject, float y) +{ + ( theWrappedObject->setY(y)); +} + +void PythonQtWrapper_QVector4D::setZ(QVector4D* theWrappedObject, float z) +{ + ( theWrappedObject->setZ(z)); +} + +QPoint PythonQtWrapper_QVector4D::toPoint(QVector4D* theWrappedObject) const +{ + return ( theWrappedObject->toPoint()); +} + +QPointF PythonQtWrapper_QVector4D::toPointF(QVector4D* theWrappedObject) const +{ + return ( theWrappedObject->toPointF()); +} + +QVector2D PythonQtWrapper_QVector4D::toVector2D(QVector4D* theWrappedObject) const +{ + return ( theWrappedObject->toVector2D()); +} + +QVector2D PythonQtWrapper_QVector4D::toVector2DAffine(QVector4D* theWrappedObject) const +{ + return ( theWrappedObject->toVector2DAffine()); +} + +QVector3D PythonQtWrapper_QVector4D::toVector3D(QVector4D* theWrappedObject) const +{ + return ( theWrappedObject->toVector3D()); +} + +QVector3D PythonQtWrapper_QVector4D::toVector3DAffine(QVector4D* theWrappedObject) const +{ + return ( theWrappedObject->toVector3DAffine()); +} + +float PythonQtWrapper_QVector4D::w(QVector4D* theWrappedObject) const +{ + return ( theWrappedObject->w()); +} + +float PythonQtWrapper_QVector4D::x(QVector4D* theWrappedObject) const +{ + return ( theWrappedObject->x()); +} + +float PythonQtWrapper_QVector4D::y(QVector4D* theWrappedObject) const +{ + return ( theWrappedObject->y()); +} + +float PythonQtWrapper_QVector4D::z(QVector4D* theWrappedObject) const +{ + return ( theWrappedObject->z()); +} + +QString PythonQtWrapper_QVector4D::py_toString(QVector4D* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + +#if defined(QT_WIDGETS_LIB) + +QAction* PythonQtWrapper_QWhatsThis::static_QWhatsThis_createAction(QObject* parent) +{ + return (QWhatsThis::createAction(parent)); +} + +void PythonQtWrapper_QWhatsThis::static_QWhatsThis_enterWhatsThisMode() +{ + (QWhatsThis::enterWhatsThisMode()); +} + +void PythonQtWrapper_QWhatsThis::static_QWhatsThis_hideText() +{ + (QWhatsThis::hideText()); +} + +bool PythonQtWrapper_QWhatsThis::static_QWhatsThis_inWhatsThisMode() +{ + return (QWhatsThis::inWhatsThisMode()); +} + +void PythonQtWrapper_QWhatsThis::static_QWhatsThis_leaveWhatsThisMode() +{ + (QWhatsThis::leaveWhatsThisMode()); +} + +void PythonQtWrapper_QWhatsThis::static_QWhatsThis_showText(const QPoint& pos, const QString& text, QWidget* w) +{ + (QWhatsThis::showText(pos, text, w)); +} + +#endif + +QWhatsThisClickedEvent* PythonQtWrapper_QWhatsThisClickedEvent::new_QWhatsThisClickedEvent(const QString& href) +{ +return new QWhatsThisClickedEvent(href); } + +QString PythonQtWrapper_QWhatsThisClickedEvent::href(QWhatsThisClickedEvent* theWrappedObject) const +{ + return ( theWrappedObject->href()); +} + + + +PythonQtShell_QWheelEvent::~PythonQtShell_QWheelEvent() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QWheelEvent* PythonQtWrapper_QWheelEvent::new_QWheelEvent(const QPointF& pos, const QPointF& globalPos, QPoint pixelDelta, QPoint angleDelta, int qt4Delta, Qt::Orientation qt4Orientation, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) +{ +return new PythonQtShell_QWheelEvent(pos, globalPos, pixelDelta, angleDelta, qt4Delta, qt4Orientation, buttons, modifiers); } + +QWheelEvent* PythonQtWrapper_QWheelEvent::new_QWheelEvent(const QPointF& pos, const QPointF& globalPos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient) +{ +return new PythonQtShell_QWheelEvent(pos, globalPos, delta, buttons, modifiers, orient); } + +QWheelEvent* PythonQtWrapper_QWheelEvent::new_QWheelEvent(const QPointF& pos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient) +{ +return new PythonQtShell_QWheelEvent(pos, delta, buttons, modifiers, orient); } + +QPoint PythonQtWrapper_QWheelEvent::angleDelta(QWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->angleDelta()); +} + +Qt::MouseButtons PythonQtWrapper_QWheelEvent::buttons(QWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->buttons()); +} + +int PythonQtWrapper_QWheelEvent::delta(QWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->delta()); +} + +QPoint PythonQtWrapper_QWheelEvent::globalPos(QWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->globalPos()); +} + +const QPointF* PythonQtWrapper_QWheelEvent::globalPosF(QWheelEvent* theWrappedObject) const +{ + return &( theWrappedObject->globalPosF()); +} + +int PythonQtWrapper_QWheelEvent::globalX(QWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->globalX()); +} + +int PythonQtWrapper_QWheelEvent::globalY(QWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->globalY()); +} + +Qt::Orientation PythonQtWrapper_QWheelEvent::orientation(QWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->orientation()); +} + +QPoint PythonQtWrapper_QWheelEvent::pixelDelta(QWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->pixelDelta()); +} + +QPoint PythonQtWrapper_QWheelEvent::pos(QWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->pos()); +} + +const QPointF* PythonQtWrapper_QWheelEvent::posF(QWheelEvent* theWrappedObject) const +{ + return &( theWrappedObject->posF()); +} + +int PythonQtWrapper_QWheelEvent::x(QWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->x()); +} + +int PythonQtWrapper_QWheelEvent::y(QWheelEvent* theWrappedObject) const +{ + return ( theWrappedObject->y()); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QWidget::~PythonQtShell_QWidget() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QWidget::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::actionEvent(arg__1); +} +void PythonQtShell_QWidget::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::changeEvent(arg__1); +} +void PythonQtShell_QWidget::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::childEvent(arg__1); +} +void PythonQtShell_QWidget::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::closeEvent(arg__1); +} +void PythonQtShell_QWidget::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::contextMenuEvent(arg__1); +} +void PythonQtShell_QWidget::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::customEvent(arg__1); +} +int PythonQtShell_QWidget::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidget::devType(); +} +void PythonQtShell_QWidget::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::dragEnterEvent(arg__1); +} +void PythonQtShell_QWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::dragLeaveEvent(arg__1); +} +void PythonQtShell_QWidget::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::dragMoveEvent(arg__1); +} +void PythonQtShell_QWidget::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::dropEvent(arg__1); +} +void PythonQtShell_QWidget::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::enterEvent(arg__1); +} +bool PythonQtShell_QWidget::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidget::event(arg__1); +} +bool PythonQtShell_QWidget::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidget::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QWidget::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::focusInEvent(arg__1); +} +bool PythonQtShell_QWidget::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidget::focusNextPrevChild(next); +} +void PythonQtShell_QWidget::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::focusOutEvent(arg__1); +} +bool PythonQtShell_QWidget::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidget::hasHeightForWidth(); +} +int PythonQtShell_QWidget::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidget::heightForWidth(arg__1); +} +void PythonQtShell_QWidget::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::hideEvent(arg__1); +} +void PythonQtShell_QWidget::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::initPainter(painter); +} +void PythonQtShell_QWidget::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidget::inputMethodQuery(arg__1); +} +void PythonQtShell_QWidget::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::keyPressEvent(arg__1); +} +void PythonQtShell_QWidget::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::keyReleaseEvent(arg__1); +} +void PythonQtShell_QWidget::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::leaveEvent(arg__1); +} +int PythonQtShell_QWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidget::metric(arg__1); +} +QSize PythonQtShell_QWidget::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidget::minimumSizeHint(); +} +void PythonQtShell_QWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QWidget::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::mouseMoveEvent(arg__1); +} +void PythonQtShell_QWidget::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::mousePressEvent(arg__1); +} +void PythonQtShell_QWidget::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QWidget::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::moveEvent(arg__1); +} +bool PythonQtShell_QWidget::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidget::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QWidget::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidget::paintEngine(); +} +void PythonQtShell_QWidget::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QWidget::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidget::redirected(offset); +} +void PythonQtShell_QWidget::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::resizeEvent(arg__1); +} +void PythonQtShell_QWidget::setVisible(bool visible) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setVisible"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&visible}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::setVisible(visible); +} +QPainter* PythonQtShell_QWidget::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidget::sharedPainter(); +} +void PythonQtShell_QWidget::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::showEvent(arg__1); +} +QSize PythonQtShell_QWidget::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidget::sizeHint(); +} +void PythonQtShell_QWidget::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::tabletEvent(arg__1); +} +void PythonQtShell_QWidget::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::timerEvent(arg__1); +} +void PythonQtShell_QWidget::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidget::wheelEvent(arg__1); +} +QWidget* PythonQtWrapper_QWidget::new_QWidget(QWidget* parent, Qt::WindowFlags f) +{ +return new PythonQtShell_QWidget(parent, f); } + +bool PythonQtWrapper_QWidget::acceptDrops(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->acceptDrops()); +} + +QString PythonQtWrapper_QWidget::accessibleDescription(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->accessibleDescription()); +} + +QString PythonQtWrapper_QWidget::accessibleName(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->accessibleName()); +} + +void PythonQtWrapper_QWidget::actionEvent(QWidget* theWrappedObject, QActionEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_actionEvent(arg__1)); +} + +QList PythonQtWrapper_QWidget::actions(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->actions()); +} + +void PythonQtWrapper_QWidget::activateWindow(QWidget* theWrappedObject) +{ + ( theWrappedObject->activateWindow()); +} + +void PythonQtWrapper_QWidget::addAction(QWidget* theWrappedObject, QAction* action) +{ + ( theWrappedObject->addAction(action)); +} + +void PythonQtWrapper_QWidget::addActions(QWidget* theWrappedObject, QList actions) +{ + ( theWrappedObject->addActions(actions)); +} + +void PythonQtWrapper_QWidget::adjustSize(QWidget* theWrappedObject) +{ + ( theWrappedObject->adjustSize()); +} + +bool PythonQtWrapper_QWidget::autoFillBackground(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->autoFillBackground()); +} + +QPalette::ColorRole PythonQtWrapper_QWidget::backgroundRole(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->backgroundRole()); +} + +QSize PythonQtWrapper_QWidget::baseSize(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->baseSize()); +} + +void PythonQtWrapper_QWidget::changeEvent(QWidget* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_changeEvent(arg__1)); +} + +QWidget* PythonQtWrapper_QWidget::childAt(QWidget* theWrappedObject, const QPoint& p) const +{ + return ( theWrappedObject->childAt(p)); +} + +QWidget* PythonQtWrapper_QWidget::childAt(QWidget* theWrappedObject, int x, int y) const +{ + return ( theWrappedObject->childAt(x, y)); +} + +QRect PythonQtWrapper_QWidget::childrenRect(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->childrenRect()); +} + +QRegion PythonQtWrapper_QWidget::childrenRegion(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->childrenRegion()); +} + +void PythonQtWrapper_QWidget::clearFocus(QWidget* theWrappedObject) +{ + ( theWrappedObject->clearFocus()); +} + +void PythonQtWrapper_QWidget::clearMask(QWidget* theWrappedObject) +{ + ( theWrappedObject->clearMask()); +} + +void PythonQtWrapper_QWidget::closeEvent(QWidget* theWrappedObject, QCloseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_closeEvent(arg__1)); +} + +QMargins PythonQtWrapper_QWidget::contentsMargins(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->contentsMargins()); +} + +QRect PythonQtWrapper_QWidget::contentsRect(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->contentsRect()); +} + +void PythonQtWrapper_QWidget::contextMenuEvent(QWidget* theWrappedObject, QContextMenuEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_contextMenuEvent(arg__1)); +} + +Qt::ContextMenuPolicy PythonQtWrapper_QWidget::contextMenuPolicy(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->contextMenuPolicy()); +} + +void PythonQtWrapper_QWidget::createWinId(QWidget* theWrappedObject) +{ + ( theWrappedObject->createWinId()); +} + +QCursor PythonQtWrapper_QWidget::cursor(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->cursor()); +} + +int PythonQtWrapper_QWidget::devType(QWidget* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_devType()); +} + +void PythonQtWrapper_QWidget::dragEnterEvent(QWidget* theWrappedObject, QDragEnterEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_dragEnterEvent(arg__1)); +} + +void PythonQtWrapper_QWidget::dragLeaveEvent(QWidget* theWrappedObject, QDragLeaveEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_dragLeaveEvent(arg__1)); +} + +void PythonQtWrapper_QWidget::dragMoveEvent(QWidget* theWrappedObject, QDragMoveEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_dragMoveEvent(arg__1)); +} + +void PythonQtWrapper_QWidget::dropEvent(QWidget* theWrappedObject, QDropEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_dropEvent(arg__1)); +} + +WId PythonQtWrapper_QWidget::effectiveWinId(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->effectiveWinId()); +} + +void PythonQtWrapper_QWidget::ensurePolished(QWidget* theWrappedObject) const +{ + ( theWrappedObject->ensurePolished()); +} + +void PythonQtWrapper_QWidget::enterEvent(QWidget* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_enterEvent(arg__1)); +} + +bool PythonQtWrapper_QWidget::event(QWidget* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_event(arg__1)); +} + +void PythonQtWrapper_QWidget::focusInEvent(QWidget* theWrappedObject, QFocusEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_focusInEvent(arg__1)); +} + +bool PythonQtWrapper_QWidget::focusNextPrevChild(QWidget* theWrappedObject, bool next) +{ + return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_focusNextPrevChild(next)); +} + +void PythonQtWrapper_QWidget::focusOutEvent(QWidget* theWrappedObject, QFocusEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_focusOutEvent(arg__1)); +} + +Qt::FocusPolicy PythonQtWrapper_QWidget::focusPolicy(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->focusPolicy()); +} + +QWidget* PythonQtWrapper_QWidget::focusProxy(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->focusProxy()); +} + +QWidget* PythonQtWrapper_QWidget::focusWidget(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->focusWidget()); +} + +const QFont* PythonQtWrapper_QWidget::font(QWidget* theWrappedObject) const +{ + return &( theWrappedObject->font()); +} + +QPalette::ColorRole PythonQtWrapper_QWidget::foregroundRole(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->foregroundRole()); +} + +QRect PythonQtWrapper_QWidget::frameGeometry(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->frameGeometry()); +} + +QSize PythonQtWrapper_QWidget::frameSize(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->frameSize()); +} + +const QRect* PythonQtWrapper_QWidget::geometry(QWidget* theWrappedObject) const +{ + return &( theWrappedObject->geometry()); +} + +void PythonQtWrapper_QWidget::getContentsMargins(QWidget* theWrappedObject, int* left, int* top, int* right, int* bottom) const +{ + ( theWrappedObject->getContentsMargins(left, top, right, bottom)); +} + +QPixmap PythonQtWrapper_QWidget::grab(QWidget* theWrappedObject, const QRect& rectangle) +{ + return ( theWrappedObject->grab(rectangle)); +} + +void PythonQtWrapper_QWidget::grabGesture(QWidget* theWrappedObject, Qt::GestureType type, Qt::GestureFlags flags) +{ + ( theWrappedObject->grabGesture(type, flags)); +} + +void PythonQtWrapper_QWidget::grabKeyboard(QWidget* theWrappedObject) +{ + ( theWrappedObject->grabKeyboard()); +} + +void PythonQtWrapper_QWidget::grabMouse(QWidget* theWrappedObject) +{ + ( theWrappedObject->grabMouse()); +} + +void PythonQtWrapper_QWidget::grabMouse(QWidget* theWrappedObject, const QCursor& arg__1) +{ + ( theWrappedObject->grabMouse(arg__1)); +} + +int PythonQtWrapper_QWidget::grabShortcut(QWidget* theWrappedObject, const QKeySequence& key, Qt::ShortcutContext context) +{ + return ( theWrappedObject->grabShortcut(key, context)); +} + +QGraphicsEffect* PythonQtWrapper_QWidget::graphicsEffect(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->graphicsEffect()); +} + +QGraphicsProxyWidget* PythonQtWrapper_QWidget::graphicsProxyWidget(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->graphicsProxyWidget()); +} + +bool PythonQtWrapper_QWidget::hasFocus(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->hasFocus()); +} + +bool PythonQtWrapper_QWidget::hasHeightForWidth(QWidget* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_hasHeightForWidth()); +} + +bool PythonQtWrapper_QWidget::hasMouseTracking(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->hasMouseTracking()); +} + +int PythonQtWrapper_QWidget::height(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->height()); +} + +int PythonQtWrapper_QWidget::heightForWidth(QWidget* theWrappedObject, int arg__1) const +{ + return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_heightForWidth(arg__1)); +} + +void PythonQtWrapper_QWidget::hideEvent(QWidget* theWrappedObject, QHideEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_hideEvent(arg__1)); +} + +void PythonQtWrapper_QWidget::initPainter(QWidget* theWrappedObject, QPainter* painter) const +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_initPainter(painter)); +} + +void PythonQtWrapper_QWidget::inputMethodEvent(QWidget* theWrappedObject, QInputMethodEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_inputMethodEvent(arg__1)); +} + +Qt::InputMethodHints PythonQtWrapper_QWidget::inputMethodHints(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->inputMethodHints()); +} + +QVariant PythonQtWrapper_QWidget::inputMethodQuery(QWidget* theWrappedObject, Qt::InputMethodQuery arg__1) const +{ + return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_inputMethodQuery(arg__1)); +} + +void PythonQtWrapper_QWidget::insertAction(QWidget* theWrappedObject, QAction* before, QAction* action) +{ + ( theWrappedObject->insertAction(before, action)); +} + +void PythonQtWrapper_QWidget::insertActions(QWidget* theWrappedObject, QAction* before, QList actions) +{ + ( theWrappedObject->insertActions(before, actions)); +} + +bool PythonQtWrapper_QWidget::isActiveWindow(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->isActiveWindow()); +} + +bool PythonQtWrapper_QWidget::isAncestorOf(QWidget* theWrappedObject, const QWidget* child) const +{ + return ( theWrappedObject->isAncestorOf(child)); +} + +bool PythonQtWrapper_QWidget::isEnabled(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->isEnabled()); +} + +bool PythonQtWrapper_QWidget::isEnabledTo(QWidget* theWrappedObject, const QWidget* arg__1) const +{ + return ( theWrappedObject->isEnabledTo(arg__1)); +} + +bool PythonQtWrapper_QWidget::isFullScreen(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->isFullScreen()); +} + +bool PythonQtWrapper_QWidget::isHidden(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->isHidden()); +} + +bool PythonQtWrapper_QWidget::isLeftToRight(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->isLeftToRight()); +} + +bool PythonQtWrapper_QWidget::isMaximized(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->isMaximized()); +} + +bool PythonQtWrapper_QWidget::isMinimized(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->isMinimized()); +} + +bool PythonQtWrapper_QWidget::isModal(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->isModal()); +} + +bool PythonQtWrapper_QWidget::isRightToLeft(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->isRightToLeft()); +} + +bool PythonQtWrapper_QWidget::isVisible(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->isVisible()); +} + +bool PythonQtWrapper_QWidget::isVisibleTo(QWidget* theWrappedObject, const QWidget* arg__1) const +{ + return ( theWrappedObject->isVisibleTo(arg__1)); +} + +bool PythonQtWrapper_QWidget::isWindow(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->isWindow()); +} + +bool PythonQtWrapper_QWidget::isWindowModified(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->isWindowModified()); +} + +void PythonQtWrapper_QWidget::keyPressEvent(QWidget* theWrappedObject, QKeyEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_keyPressEvent(arg__1)); +} + +void PythonQtWrapper_QWidget::keyReleaseEvent(QWidget* theWrappedObject, QKeyEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_keyReleaseEvent(arg__1)); +} + +QWidget* PythonQtWrapper_QWidget::static_QWidget_keyboardGrabber() +{ + return (QWidget::keyboardGrabber()); +} + +QLayout* PythonQtWrapper_QWidget::layout(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->layout()); +} + +Qt::LayoutDirection PythonQtWrapper_QWidget::layoutDirection(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->layoutDirection()); +} + +void PythonQtWrapper_QWidget::leaveEvent(QWidget* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_leaveEvent(arg__1)); +} + +QLocale PythonQtWrapper_QWidget::locale(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->locale()); +} + +QPoint PythonQtWrapper_QWidget::mapFrom(QWidget* theWrappedObject, const QWidget* arg__1, const QPoint& arg__2) const +{ + return ( theWrappedObject->mapFrom(arg__1, arg__2)); +} + +QPoint PythonQtWrapper_QWidget::mapFromGlobal(QWidget* theWrappedObject, const QPoint& arg__1) const +{ + return ( theWrappedObject->mapFromGlobal(arg__1)); +} + +QPoint PythonQtWrapper_QWidget::mapFromParent(QWidget* theWrappedObject, const QPoint& arg__1) const +{ + return ( theWrappedObject->mapFromParent(arg__1)); +} + +QPoint PythonQtWrapper_QWidget::mapTo(QWidget* theWrappedObject, const QWidget* arg__1, const QPoint& arg__2) const +{ + return ( theWrappedObject->mapTo(arg__1, arg__2)); +} + +QPoint PythonQtWrapper_QWidget::mapToGlobal(QWidget* theWrappedObject, const QPoint& arg__1) const +{ + return ( theWrappedObject->mapToGlobal(arg__1)); +} + +QPoint PythonQtWrapper_QWidget::mapToParent(QWidget* theWrappedObject, const QPoint& arg__1) const +{ + return ( theWrappedObject->mapToParent(arg__1)); +} + +QRegion PythonQtWrapper_QWidget::mask(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->mask()); +} + +int PythonQtWrapper_QWidget::maximumHeight(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->maximumHeight()); +} + +QSize PythonQtWrapper_QWidget::maximumSize(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->maximumSize()); +} + +int PythonQtWrapper_QWidget::maximumWidth(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->maximumWidth()); +} + +int PythonQtWrapper_QWidget::metric(QWidget* theWrappedObject, QPaintDevice::PaintDeviceMetric arg__1) const +{ + return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_metric(arg__1)); +} + +int PythonQtWrapper_QWidget::minimumHeight(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->minimumHeight()); +} + +QSize PythonQtWrapper_QWidget::minimumSize(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->minimumSize()); +} + +QSize PythonQtWrapper_QWidget::minimumSizeHint(QWidget* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_minimumSizeHint()); +} + +int PythonQtWrapper_QWidget::minimumWidth(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->minimumWidth()); +} + +void PythonQtWrapper_QWidget::mouseDoubleClickEvent(QWidget* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_mouseDoubleClickEvent(arg__1)); +} + +QWidget* PythonQtWrapper_QWidget::static_QWidget_mouseGrabber() +{ + return (QWidget::mouseGrabber()); +} + +void PythonQtWrapper_QWidget::mouseMoveEvent(QWidget* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); +} + +void PythonQtWrapper_QWidget::mousePressEvent(QWidget* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_mousePressEvent(arg__1)); +} + +void PythonQtWrapper_QWidget::mouseReleaseEvent(QWidget* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); +} + +void PythonQtWrapper_QWidget::move(QWidget* theWrappedObject, const QPoint& arg__1) +{ + ( theWrappedObject->move(arg__1)); +} + +void PythonQtWrapper_QWidget::move(QWidget* theWrappedObject, int x, int y) +{ + ( theWrappedObject->move(x, y)); +} + +void PythonQtWrapper_QWidget::moveEvent(QWidget* theWrappedObject, QMoveEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_moveEvent(arg__1)); +} + +bool PythonQtWrapper_QWidget::nativeEvent(QWidget* theWrappedObject, const QByteArray& eventType, void* message, long* result) +{ + return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_nativeEvent(eventType, message, result)); +} + +QWidget* PythonQtWrapper_QWidget::nativeParentWidget(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->nativeParentWidget()); +} + +QWidget* PythonQtWrapper_QWidget::nextInFocusChain(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->nextInFocusChain()); +} + +QRect PythonQtWrapper_QWidget::normalGeometry(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->normalGeometry()); +} + +void PythonQtWrapper_QWidget::overrideWindowFlags(QWidget* theWrappedObject, Qt::WindowFlags type) +{ + ( theWrappedObject->overrideWindowFlags(type)); +} + +void PythonQtWrapper_QWidget::overrideWindowState(QWidget* theWrappedObject, Qt::WindowStates state) +{ + ( theWrappedObject->overrideWindowState(state)); +} + +QPaintEngine* PythonQtWrapper_QWidget::paintEngine(QWidget* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_paintEngine()); +} + +void PythonQtWrapper_QWidget::paintEvent(QWidget* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +const QPalette* PythonQtWrapper_QWidget::palette(QWidget* theWrappedObject) const +{ + return &( theWrappedObject->palette()); +} + +QWidget* PythonQtWrapper_QWidget::parentWidget(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->parentWidget()); +} + +QPoint PythonQtWrapper_QWidget::pos(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->pos()); +} + +QWidget* PythonQtWrapper_QWidget::previousInFocusChain(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->previousInFocusChain()); +} + +QRect PythonQtWrapper_QWidget::rect(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->rect()); +} + +QPaintDevice* PythonQtWrapper_QWidget::redirected(QWidget* theWrappedObject, QPoint* offset) const +{ + return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_redirected(offset)); +} + +void PythonQtWrapper_QWidget::releaseKeyboard(QWidget* theWrappedObject) +{ + ( theWrappedObject->releaseKeyboard()); +} + +void PythonQtWrapper_QWidget::releaseMouse(QWidget* theWrappedObject) +{ + ( theWrappedObject->releaseMouse()); +} + +void PythonQtWrapper_QWidget::releaseShortcut(QWidget* theWrappedObject, int id) +{ + ( theWrappedObject->releaseShortcut(id)); +} + +void PythonQtWrapper_QWidget::removeAction(QWidget* theWrappedObject, QAction* action) +{ + ( theWrappedObject->removeAction(action)); +} + +void PythonQtWrapper_QWidget::render(QWidget* theWrappedObject, QPaintDevice* target, const QPoint& targetOffset, const QRegion& sourceRegion, QWidget::RenderFlags renderFlags) +{ + ( theWrappedObject->render(target, targetOffset, sourceRegion, renderFlags)); +} + +void PythonQtWrapper_QWidget::render(QWidget* theWrappedObject, QPainter* painter, const QPoint& targetOffset, const QRegion& sourceRegion, QWidget::RenderFlags renderFlags) +{ + ( theWrappedObject->render(painter, targetOffset, sourceRegion, renderFlags)); +} + +void PythonQtWrapper_QWidget::repaint(QWidget* theWrappedObject, const QRect& arg__1) +{ + ( theWrappedObject->repaint(arg__1)); +} + +void PythonQtWrapper_QWidget::repaint(QWidget* theWrappedObject, const QRegion& arg__1) +{ + ( theWrappedObject->repaint(arg__1)); +} + +void PythonQtWrapper_QWidget::repaint(QWidget* theWrappedObject, int x, int y, int w, int h) +{ + ( theWrappedObject->repaint(x, y, w, h)); +} + +void PythonQtWrapper_QWidget::resize(QWidget* theWrappedObject, const QSize& arg__1) +{ + ( theWrappedObject->resize(arg__1)); +} + +void PythonQtWrapper_QWidget::resize(QWidget* theWrappedObject, int w, int h) +{ + ( theWrappedObject->resize(w, h)); +} + +void PythonQtWrapper_QWidget::resizeEvent(QWidget* theWrappedObject, QResizeEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_resizeEvent(arg__1)); +} + +bool PythonQtWrapper_QWidget::restoreGeometry(QWidget* theWrappedObject, const QByteArray& geometry) +{ + return ( theWrappedObject->restoreGeometry(geometry)); +} + +QByteArray PythonQtWrapper_QWidget::saveGeometry(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->saveGeometry()); +} + +void PythonQtWrapper_QWidget::scroll(QWidget* theWrappedObject, int dx, int dy) +{ + ( theWrappedObject->scroll(dx, dy)); +} + +void PythonQtWrapper_QWidget::scroll(QWidget* theWrappedObject, int dx, int dy, const QRect& arg__3) +{ + ( theWrappedObject->scroll(dx, dy, arg__3)); +} + +void PythonQtWrapper_QWidget::setAcceptDrops(QWidget* theWrappedObject, bool on) +{ + ( theWrappedObject->setAcceptDrops(on)); +} + +void PythonQtWrapper_QWidget::setAccessibleDescription(QWidget* theWrappedObject, const QString& description) +{ + ( theWrappedObject->setAccessibleDescription(description)); +} + +void PythonQtWrapper_QWidget::setAccessibleName(QWidget* theWrappedObject, const QString& name) +{ + ( theWrappedObject->setAccessibleName(name)); +} + +void PythonQtWrapper_QWidget::setAttribute(QWidget* theWrappedObject, Qt::WidgetAttribute arg__1, bool on) +{ + ( theWrappedObject->setAttribute(arg__1, on)); +} + +void PythonQtWrapper_QWidget::setAutoFillBackground(QWidget* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setAutoFillBackground(enabled)); +} + +void PythonQtWrapper_QWidget::setBackgroundRole(QWidget* theWrappedObject, QPalette::ColorRole arg__1) +{ + ( theWrappedObject->setBackgroundRole(arg__1)); +} + +void PythonQtWrapper_QWidget::setBaseSize(QWidget* theWrappedObject, const QSize& arg__1) +{ + ( theWrappedObject->setBaseSize(arg__1)); +} + +void PythonQtWrapper_QWidget::setBaseSize(QWidget* theWrappedObject, int basew, int baseh) +{ + ( theWrappedObject->setBaseSize(basew, baseh)); +} + +void PythonQtWrapper_QWidget::setContentsMargins(QWidget* theWrappedObject, const QMargins& margins) +{ + ( theWrappedObject->setContentsMargins(margins)); +} + +void PythonQtWrapper_QWidget::setContentsMargins(QWidget* theWrappedObject, int left, int top, int right, int bottom) +{ + ( theWrappedObject->setContentsMargins(left, top, right, bottom)); +} + +void PythonQtWrapper_QWidget::setContextMenuPolicy(QWidget* theWrappedObject, Qt::ContextMenuPolicy policy) +{ + ( theWrappedObject->setContextMenuPolicy(policy)); +} + +void PythonQtWrapper_QWidget::setCursor(QWidget* theWrappedObject, const QCursor& arg__1) +{ + ( theWrappedObject->setCursor(arg__1)); +} + +void PythonQtWrapper_QWidget::setFixedHeight(QWidget* theWrappedObject, int h) +{ + ( theWrappedObject->setFixedHeight(h)); +} + +void PythonQtWrapper_QWidget::setFixedSize(QWidget* theWrappedObject, const QSize& arg__1) +{ + ( theWrappedObject->setFixedSize(arg__1)); +} + +void PythonQtWrapper_QWidget::setFixedSize(QWidget* theWrappedObject, int w, int h) +{ + ( theWrappedObject->setFixedSize(w, h)); +} + +void PythonQtWrapper_QWidget::setFixedWidth(QWidget* theWrappedObject, int w) +{ + ( theWrappedObject->setFixedWidth(w)); +} + +void PythonQtWrapper_QWidget::setFocus(QWidget* theWrappedObject, Qt::FocusReason reason) +{ + ( theWrappedObject->setFocus(reason)); +} + +void PythonQtWrapper_QWidget::setFocusPolicy(QWidget* theWrappedObject, Qt::FocusPolicy policy) +{ + ( theWrappedObject->setFocusPolicy(policy)); +} + +void PythonQtWrapper_QWidget::setFocusProxy(QWidget* theWrappedObject, QWidget* arg__1) +{ + ( theWrappedObject->setFocusProxy(arg__1)); +} + +void PythonQtWrapper_QWidget::setFont(QWidget* theWrappedObject, const QFont& arg__1) +{ + ( theWrappedObject->setFont(arg__1)); +} + +void PythonQtWrapper_QWidget::setForegroundRole(QWidget* theWrappedObject, QPalette::ColorRole arg__1) +{ + ( theWrappedObject->setForegroundRole(arg__1)); +} + +void PythonQtWrapper_QWidget::setGeometry(QWidget* theWrappedObject, const QRect& arg__1) +{ + ( theWrappedObject->setGeometry(arg__1)); +} + +void PythonQtWrapper_QWidget::setGeometry(QWidget* theWrappedObject, int x, int y, int w, int h) +{ + ( theWrappedObject->setGeometry(x, y, w, h)); +} + +void PythonQtWrapper_QWidget::setGraphicsEffect(QWidget* theWrappedObject, QGraphicsEffect* effect) +{ + ( theWrappedObject->setGraphicsEffect(effect)); +} + +void PythonQtWrapper_QWidget::setInputMethodHints(QWidget* theWrappedObject, Qt::InputMethodHints hints) +{ + ( theWrappedObject->setInputMethodHints(hints)); +} + +void PythonQtWrapper_QWidget::setLayout(QWidget* theWrappedObject, QLayout* arg__1) +{ + ( theWrappedObject->setLayout(arg__1)); +} + +void PythonQtWrapper_QWidget::setLayoutDirection(QWidget* theWrappedObject, Qt::LayoutDirection direction) +{ + ( theWrappedObject->setLayoutDirection(direction)); +} + +void PythonQtWrapper_QWidget::setLocale(QWidget* theWrappedObject, const QLocale& locale) +{ + ( theWrappedObject->setLocale(locale)); +} + +void PythonQtWrapper_QWidget::setMask(QWidget* theWrappedObject, const QBitmap& arg__1) +{ + ( theWrappedObject->setMask(arg__1)); +} + +void PythonQtWrapper_QWidget::setMask(QWidget* theWrappedObject, const QRegion& arg__1) +{ + ( theWrappedObject->setMask(arg__1)); +} + +void PythonQtWrapper_QWidget::setMaximumHeight(QWidget* theWrappedObject, int maxh) +{ + ( theWrappedObject->setMaximumHeight(maxh)); +} + +void PythonQtWrapper_QWidget::setMaximumSize(QWidget* theWrappedObject, const QSize& arg__1) +{ + ( theWrappedObject->setMaximumSize(arg__1)); +} + +void PythonQtWrapper_QWidget::setMaximumSize(QWidget* theWrappedObject, int maxw, int maxh) +{ + ( theWrappedObject->setMaximumSize(maxw, maxh)); +} + +void PythonQtWrapper_QWidget::setMaximumWidth(QWidget* theWrappedObject, int maxw) +{ + ( theWrappedObject->setMaximumWidth(maxw)); +} + +void PythonQtWrapper_QWidget::setMinimumHeight(QWidget* theWrappedObject, int minh) +{ + ( theWrappedObject->setMinimumHeight(minh)); +} + +void PythonQtWrapper_QWidget::setMinimumSize(QWidget* theWrappedObject, const QSize& arg__1) +{ + ( theWrappedObject->setMinimumSize(arg__1)); +} + +void PythonQtWrapper_QWidget::setMinimumSize(QWidget* theWrappedObject, int minw, int minh) +{ + ( theWrappedObject->setMinimumSize(minw, minh)); +} + +void PythonQtWrapper_QWidget::setMinimumWidth(QWidget* theWrappedObject, int minw) +{ + ( theWrappedObject->setMinimumWidth(minw)); +} + +void PythonQtWrapper_QWidget::setMouseTracking(QWidget* theWrappedObject, bool enable) +{ + ( theWrappedObject->setMouseTracking(enable)); +} + +void PythonQtWrapper_QWidget::setPalette(QWidget* theWrappedObject, const QPalette& arg__1) +{ + ( theWrappedObject->setPalette(arg__1)); +} + +void PythonQtWrapper_QWidget::setParent(QWidget* theWrappedObject, QWidget* parent) +{ + ( theWrappedObject->setParent(parent)); +} + +void PythonQtWrapper_QWidget::setParent(QWidget* theWrappedObject, QWidget* parent, Qt::WindowFlags f) +{ + ( theWrappedObject->setParent(parent, f)); +} + +void PythonQtWrapper_QWidget::setShortcutAutoRepeat(QWidget* theWrappedObject, int id, bool enable) +{ + ( theWrappedObject->setShortcutAutoRepeat(id, enable)); +} + +void PythonQtWrapper_QWidget::setShortcutEnabled(QWidget* theWrappedObject, int id, bool enable) +{ + ( theWrappedObject->setShortcutEnabled(id, enable)); +} + +void PythonQtWrapper_QWidget::setSizeIncrement(QWidget* theWrappedObject, const QSize& arg__1) +{ + ( theWrappedObject->setSizeIncrement(arg__1)); +} + +void PythonQtWrapper_QWidget::setSizeIncrement(QWidget* theWrappedObject, int w, int h) +{ + ( theWrappedObject->setSizeIncrement(w, h)); +} + +void PythonQtWrapper_QWidget::setSizePolicy(QWidget* theWrappedObject, QSizePolicy arg__1) +{ + ( theWrappedObject->setSizePolicy(arg__1)); +} + +void PythonQtWrapper_QWidget::setSizePolicy(QWidget* theWrappedObject, QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical) +{ + ( theWrappedObject->setSizePolicy(horizontal, vertical)); +} + +void PythonQtWrapper_QWidget::setStatusTip(QWidget* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setStatusTip(arg__1)); +} + +void PythonQtWrapper_QWidget::setStyle(QWidget* theWrappedObject, QStyle* arg__1) +{ + ( theWrappedObject->setStyle(arg__1)); +} + +void PythonQtWrapper_QWidget::static_QWidget_setTabOrder(QWidget* arg__1, QWidget* arg__2) +{ + (QWidget::setTabOrder(arg__1, arg__2)); +} + +void PythonQtWrapper_QWidget::setToolTip(QWidget* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setToolTip(arg__1)); +} + +void PythonQtWrapper_QWidget::setUpdatesEnabled(QWidget* theWrappedObject, bool enable) +{ + ( theWrappedObject->setUpdatesEnabled(enable)); +} + +void PythonQtWrapper_QWidget::setWhatsThis(QWidget* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setWhatsThis(arg__1)); +} + +void PythonQtWrapper_QWidget::setWindowFilePath(QWidget* theWrappedObject, const QString& filePath) +{ + ( theWrappedObject->setWindowFilePath(filePath)); +} + +void PythonQtWrapper_QWidget::setWindowFlags(QWidget* theWrappedObject, Qt::WindowFlags type) +{ + ( theWrappedObject->setWindowFlags(type)); +} + +void PythonQtWrapper_QWidget::setWindowIcon(QWidget* theWrappedObject, const QIcon& icon) +{ + ( theWrappedObject->setWindowIcon(icon)); +} + +void PythonQtWrapper_QWidget::setWindowIconText(QWidget* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setWindowIconText(arg__1)); +} + +void PythonQtWrapper_QWidget::setWindowModality(QWidget* theWrappedObject, Qt::WindowModality windowModality) +{ + ( theWrappedObject->setWindowModality(windowModality)); +} + +void PythonQtWrapper_QWidget::setWindowOpacity(QWidget* theWrappedObject, qreal level) +{ + ( theWrappedObject->setWindowOpacity(level)); +} + +void PythonQtWrapper_QWidget::setWindowRole(QWidget* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setWindowRole(arg__1)); +} + +void PythonQtWrapper_QWidget::setWindowState(QWidget* theWrappedObject, Qt::WindowStates state) +{ + ( theWrappedObject->setWindowState(state)); +} + +QPainter* PythonQtWrapper_QWidget::sharedPainter(QWidget* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_sharedPainter()); +} + +void PythonQtWrapper_QWidget::showEvent(QWidget* theWrappedObject, QShowEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_showEvent(arg__1)); +} + +QSize PythonQtWrapper_QWidget::size(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +QSize PythonQtWrapper_QWidget::sizeHint(QWidget* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_sizeHint()); +} + +QSize PythonQtWrapper_QWidget::sizeIncrement(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->sizeIncrement()); +} + +QSizePolicy PythonQtWrapper_QWidget::sizePolicy(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->sizePolicy()); +} + +void PythonQtWrapper_QWidget::stackUnder(QWidget* theWrappedObject, QWidget* arg__1) +{ + ( theWrappedObject->stackUnder(arg__1)); +} + +QString PythonQtWrapper_QWidget::statusTip(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->statusTip()); +} + +QStyle* PythonQtWrapper_QWidget::style(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->style()); +} + +QString PythonQtWrapper_QWidget::styleSheet(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->styleSheet()); +} + +void PythonQtWrapper_QWidget::tabletEvent(QWidget* theWrappedObject, QTabletEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_tabletEvent(arg__1)); +} + +bool PythonQtWrapper_QWidget::testAttribute(QWidget* theWrappedObject, Qt::WidgetAttribute arg__1) const +{ + return ( theWrappedObject->testAttribute(arg__1)); +} + +QString PythonQtWrapper_QWidget::toolTip(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->toolTip()); +} + +bool PythonQtWrapper_QWidget::underMouse(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->underMouse()); +} + +void PythonQtWrapper_QWidget::ungrabGesture(QWidget* theWrappedObject, Qt::GestureType type) +{ + ( theWrappedObject->ungrabGesture(type)); +} + +void PythonQtWrapper_QWidget::unsetCursor(QWidget* theWrappedObject) +{ + ( theWrappedObject->unsetCursor()); +} + +void PythonQtWrapper_QWidget::unsetLayoutDirection(QWidget* theWrappedObject) +{ + ( theWrappedObject->unsetLayoutDirection()); +} + +void PythonQtWrapper_QWidget::unsetLocale(QWidget* theWrappedObject) +{ + ( theWrappedObject->unsetLocale()); +} + +void PythonQtWrapper_QWidget::update(QWidget* theWrappedObject, const QRect& arg__1) +{ + ( theWrappedObject->update(arg__1)); +} + +void PythonQtWrapper_QWidget::update(QWidget* theWrappedObject, const QRegion& arg__1) +{ + ( theWrappedObject->update(arg__1)); +} + +void PythonQtWrapper_QWidget::update(QWidget* theWrappedObject, int x, int y, int w, int h) +{ + ( theWrappedObject->update(x, y, w, h)); +} + +void PythonQtWrapper_QWidget::updateGeometry(QWidget* theWrappedObject) +{ + ( theWrappedObject->updateGeometry()); +} + +bool PythonQtWrapper_QWidget::updatesEnabled(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->updatesEnabled()); +} + +QRegion PythonQtWrapper_QWidget::visibleRegion(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->visibleRegion()); +} + +QString PythonQtWrapper_QWidget::whatsThis(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->whatsThis()); +} + +void PythonQtWrapper_QWidget::wheelEvent(QWidget* theWrappedObject, QWheelEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_wheelEvent(arg__1)); +} + +int PythonQtWrapper_QWidget::width(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->width()); +} + +WId PythonQtWrapper_QWidget::winId(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->winId()); +} + +QWidget* PythonQtWrapper_QWidget::window(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->window()); +} + +QString PythonQtWrapper_QWidget::windowFilePath(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->windowFilePath()); +} + +Qt::WindowFlags PythonQtWrapper_QWidget::windowFlags(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->windowFlags()); +} + +QIcon PythonQtWrapper_QWidget::windowIcon(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->windowIcon()); +} + +QString PythonQtWrapper_QWidget::windowIconText(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->windowIconText()); +} + +Qt::WindowModality PythonQtWrapper_QWidget::windowModality(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->windowModality()); +} + +qreal PythonQtWrapper_QWidget::windowOpacity(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->windowOpacity()); +} + +QString PythonQtWrapper_QWidget::windowRole(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->windowRole()); +} + +Qt::WindowStates PythonQtWrapper_QWidget::windowState(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->windowState()); +} + +QString PythonQtWrapper_QWidget::windowTitle(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->windowTitle()); +} + +Qt::WindowType PythonQtWrapper_QWidget::windowType(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->windowType()); +} + +int PythonQtWrapper_QWidget::x(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->x()); +} + +int PythonQtWrapper_QWidget::y(QWidget* theWrappedObject) const +{ + return ( theWrappedObject->y()); +} + + + +PythonQtShell_QWidgetAction::~PythonQtShell_QWidgetAction() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QWidgetAction::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidgetAction::childEvent(arg__1); +} +QWidget* PythonQtShell_QWidgetAction::createWidget(QWidget* parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createWidget"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QWidget*" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QWidget* returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createWidget", methodInfo, result); + } else { + returnValue = *((QWidget**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidgetAction::createWidget(parent); +} +void PythonQtShell_QWidgetAction::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidgetAction::customEvent(arg__1); +} +void PythonQtShell_QWidgetAction::deleteWidget(QWidget* widget) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "deleteWidget"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidgetAction::deleteWidget(widget); +} +bool PythonQtShell_QWidgetAction::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidgetAction::event(arg__1); +} +bool PythonQtShell_QWidgetAction::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidgetAction::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QWidgetAction::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidgetAction::timerEvent(arg__1); +} +QWidgetAction* PythonQtWrapper_QWidgetAction::new_QWidgetAction(QObject* parent) +{ +return new PythonQtShell_QWidgetAction(parent); } + +QWidget* PythonQtWrapper_QWidgetAction::createWidget(QWidgetAction* theWrappedObject, QWidget* parent) +{ + return ( ((PythonQtPublicPromoter_QWidgetAction*)theWrappedObject)->promoted_createWidget(parent)); +} + +QWidget* PythonQtWrapper_QWidgetAction::defaultWidget(QWidgetAction* theWrappedObject) const +{ + return ( theWrappedObject->defaultWidget()); +} + +void PythonQtWrapper_QWidgetAction::deleteWidget(QWidgetAction* theWrappedObject, QWidget* widget) +{ + ( ((PythonQtPublicPromoter_QWidgetAction*)theWrappedObject)->promoted_deleteWidget(widget)); +} + +bool PythonQtWrapper_QWidgetAction::event(QWidgetAction* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QWidgetAction*)theWrappedObject)->promoted_event(arg__1)); +} + +bool PythonQtWrapper_QWidgetAction::eventFilter(QWidgetAction* theWrappedObject, QObject* arg__1, QEvent* arg__2) +{ + return ( ((PythonQtPublicPromoter_QWidgetAction*)theWrappedObject)->promoted_eventFilter(arg__1, arg__2)); +} + +void PythonQtWrapper_QWidgetAction::releaseWidget(QWidgetAction* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->releaseWidget(widget)); +} + +QWidget* PythonQtWrapper_QWidgetAction::requestWidget(QWidgetAction* theWrappedObject, QWidget* parent) +{ + return ( theWrappedObject->requestWidget(parent)); +} + +void PythonQtWrapper_QWidgetAction::setDefaultWidget(QWidgetAction* theWrappedObject, QWidget* w) +{ + ( theWrappedObject->setDefaultWidget(w)); +} + + + +PythonQtShell_QWidgetItem::~PythonQtShell_QWidgetItem() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QSizePolicy::ControlTypes PythonQtShell_QWidgetItem::controlTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "controlTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSizePolicy::ControlTypes"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSizePolicy::ControlTypes returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("controlTypes", methodInfo, result); + } else { + returnValue = *((QSizePolicy::ControlTypes*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidgetItem::controlTypes(); +} +Qt::Orientations PythonQtShell_QWidgetItem::expandingDirections() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::Orientations"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::Orientations returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); + } else { + returnValue = *((Qt::Orientations*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidgetItem::expandingDirections(); +} +QRect PythonQtShell_QWidgetItem::geometry() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QRect"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QRect returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); + } else { + returnValue = *((QRect*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidgetItem::geometry(); +} +bool PythonQtShell_QWidgetItem::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidgetItem::hasHeightForWidth(); +} +int PythonQtShell_QWidgetItem::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidgetItem::heightForWidth(arg__1); +} +void PythonQtShell_QWidgetItem::invalidate() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidgetItem::invalidate(); +} +bool PythonQtShell_QWidgetItem::isEmpty() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidgetItem::isEmpty(); +} +QLayout* PythonQtShell_QWidgetItem::layout() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayout*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QLayout* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); + } else { + returnValue = *((QLayout**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidgetItem::layout(); +} +QSize PythonQtShell_QWidgetItem::maximumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidgetItem::maximumSize(); +} +int PythonQtShell_QWidgetItem::minimumHeightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("minimumHeightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidgetItem::minimumHeightForWidth(arg__1); +} +QSize PythonQtShell_QWidgetItem::minimumSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidgetItem::minimumSize(); +} +void PythonQtShell_QWidgetItem::setGeometry(const QRect& arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRect&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWidgetItem::setGeometry(arg__1); +} +QSize PythonQtShell_QWidgetItem::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidgetItem::sizeHint(); +} +QSpacerItem* PythonQtShell_QWidgetItem::spacerItem() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "spacerItem"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSpacerItem*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSpacerItem* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("spacerItem", methodInfo, result); + } else { + returnValue = *((QSpacerItem**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidgetItem::spacerItem(); +} +QWidget* PythonQtShell_QWidgetItem::widget() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widget"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QWidget* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("widget", methodInfo, result); + } else { + returnValue = *((QWidget**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWidgetItem::widget(); +} +QWidgetItem* PythonQtWrapper_QWidgetItem::new_QWidgetItem(QWidget* w) +{ +return new PythonQtShell_QWidgetItem(w); } + +QSizePolicy::ControlTypes PythonQtWrapper_QWidgetItem::controlTypes(QWidgetItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_controlTypes()); +} + +Qt::Orientations PythonQtWrapper_QWidgetItem::expandingDirections(QWidgetItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_expandingDirections()); +} + +QRect PythonQtWrapper_QWidgetItem::geometry(QWidgetItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_geometry()); +} + +bool PythonQtWrapper_QWidgetItem::hasHeightForWidth(QWidgetItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_hasHeightForWidth()); +} + +int PythonQtWrapper_QWidgetItem::heightForWidth(QWidgetItem* theWrappedObject, int arg__1) const +{ + return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_heightForWidth(arg__1)); +} + +bool PythonQtWrapper_QWidgetItem::isEmpty(QWidgetItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_isEmpty()); +} + +QSize PythonQtWrapper_QWidgetItem::maximumSize(QWidgetItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_maximumSize()); +} + +QSize PythonQtWrapper_QWidgetItem::minimumSize(QWidgetItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_minimumSize()); +} + +void PythonQtWrapper_QWidgetItem::setGeometry(QWidgetItem* theWrappedObject, const QRect& arg__1) +{ + ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_setGeometry(arg__1)); +} + +QSize PythonQtWrapper_QWidgetItem::sizeHint(QWidgetItem* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_sizeHint()); +} + +QWidget* PythonQtWrapper_QWidgetItem::widget(QWidgetItem* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_widget()); +} + +#endif + +QWindowStateChangeEvent* PythonQtWrapper_QWindowStateChangeEvent::new_QWindowStateChangeEvent(Qt::WindowStates aOldState, bool isOverride) +{ +return new QWindowStateChangeEvent(aOldState, isOverride); } + +bool PythonQtWrapper_QWindowStateChangeEvent::isOverride(QWindowStateChangeEvent* theWrappedObject) const +{ + return ( theWrappedObject->isOverride()); +} + +Qt::WindowStates PythonQtWrapper_QWindowStateChangeEvent::oldState(QWindowStateChangeEvent* theWrappedObject) const +{ + return ( theWrappedObject->oldState()); +} + +#if defined(QT_WIDGETS_LIB) + +PythonQtShell_QWizard::~PythonQtShell_QWizard() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QWizard::accept() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::accept(); +} +void PythonQtShell_QWizard::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::actionEvent(arg__1); +} +void PythonQtShell_QWizard::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::changeEvent(arg__1); +} +void PythonQtShell_QWizard::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::childEvent(arg__1); +} +void PythonQtShell_QWizard::cleanupPage(int id) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "cleanupPage"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&id}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::cleanupPage(id); +} +void PythonQtShell_QWizard::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::closeEvent(arg__1); +} +void PythonQtShell_QWizard::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::contextMenuEvent(arg__1); +} +void PythonQtShell_QWizard::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::customEvent(arg__1); +} +int PythonQtShell_QWizard::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizard::devType(); +} +void PythonQtShell_QWizard::done(int result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::done(result); +} +void PythonQtShell_QWizard::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::dragEnterEvent(arg__1); +} +void PythonQtShell_QWizard::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::dragLeaveEvent(arg__1); +} +void PythonQtShell_QWizard::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::dragMoveEvent(arg__1); +} +void PythonQtShell_QWizard::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::dropEvent(arg__1); +} +void PythonQtShell_QWizard::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::enterEvent(arg__1); +} +bool PythonQtShell_QWizard::event(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizard::event(event); +} +bool PythonQtShell_QWizard::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizard::eventFilter(arg__1, arg__2); +} +int PythonQtShell_QWizard::exec() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizard::exec(); +} +void PythonQtShell_QWizard::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::focusInEvent(arg__1); +} +bool PythonQtShell_QWizard::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizard::focusNextPrevChild(next); +} +void PythonQtShell_QWizard::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::focusOutEvent(arg__1); +} +bool PythonQtShell_QWizard::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizard::hasHeightForWidth(); +} +int PythonQtShell_QWizard::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizard::heightForWidth(arg__1); +} +void PythonQtShell_QWizard::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::hideEvent(arg__1); +} +void PythonQtShell_QWizard::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::initPainter(painter); +} +void PythonQtShell_QWizard::initializePage(int id) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initializePage"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&id}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::initializePage(id); +} +void PythonQtShell_QWizard::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QWizard::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizard::inputMethodQuery(arg__1); +} +void PythonQtShell_QWizard::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::keyPressEvent(arg__1); +} +void PythonQtShell_QWizard::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::keyReleaseEvent(arg__1); +} +void PythonQtShell_QWizard::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::leaveEvent(arg__1); +} +int PythonQtShell_QWizard::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizard::metric(arg__1); +} +void PythonQtShell_QWizard::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QWizard::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::mouseMoveEvent(arg__1); +} +void PythonQtShell_QWizard::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::mousePressEvent(arg__1); +} +void PythonQtShell_QWizard::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QWizard::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::moveEvent(arg__1); +} +bool PythonQtShell_QWizard::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizard::nativeEvent(eventType, message, result); +} +int PythonQtShell_QWizard::nextId() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextId"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nextId", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizard::nextId(); +} +void PythonQtShell_QWizard::open() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::open(); +} +QPaintEngine* PythonQtShell_QWizard::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizard::paintEngine(); +} +void PythonQtShell_QWizard::paintEvent(QPaintEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::paintEvent(event); +} +QPaintDevice* PythonQtShell_QWizard::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizard::redirected(offset); +} +void PythonQtShell_QWizard::reject() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::reject(); +} +void PythonQtShell_QWizard::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::resizeEvent(event); +} +QPainter* PythonQtShell_QWizard::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizard::sharedPainter(); +} +void PythonQtShell_QWizard::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::showEvent(arg__1); +} +void PythonQtShell_QWizard::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::tabletEvent(arg__1); +} +void PythonQtShell_QWizard::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::timerEvent(arg__1); +} +bool PythonQtShell_QWizard::validateCurrentPage() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validateCurrentPage"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("validateCurrentPage", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizard::validateCurrentPage(); +} +void PythonQtShell_QWizard::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizard::wheelEvent(arg__1); +} +QWizard* PythonQtWrapper_QWizard::new_QWizard(QWidget* parent, Qt::WindowFlags flags) +{ +return new PythonQtShell_QWizard(parent, flags); } + +int PythonQtWrapper_QWizard::addPage(QWizard* theWrappedObject, QWizardPage* page) +{ + return ( theWrappedObject->addPage(page)); +} + +QAbstractButton* PythonQtWrapper_QWizard::button(QWizard* theWrappedObject, QWizard::WizardButton which) const +{ + return ( theWrappedObject->button(which)); +} + +QString PythonQtWrapper_QWizard::buttonText(QWizard* theWrappedObject, QWizard::WizardButton which) const +{ + return ( theWrappedObject->buttonText(which)); +} + +void PythonQtWrapper_QWizard::cleanupPage(QWizard* theWrappedObject, int id) +{ + ( ((PythonQtPublicPromoter_QWizard*)theWrappedObject)->promoted_cleanupPage(id)); +} + +int PythonQtWrapper_QWizard::currentId(QWizard* theWrappedObject) const +{ + return ( theWrappedObject->currentId()); +} + +QWizardPage* PythonQtWrapper_QWizard::currentPage(QWizard* theWrappedObject) const +{ + return ( theWrappedObject->currentPage()); +} + +void PythonQtWrapper_QWizard::done(QWizard* theWrappedObject, int result) +{ + ( ((PythonQtPublicPromoter_QWizard*)theWrappedObject)->promoted_done(result)); +} + +bool PythonQtWrapper_QWizard::event(QWizard* theWrappedObject, QEvent* event) +{ + return ( ((PythonQtPublicPromoter_QWizard*)theWrappedObject)->promoted_event(event)); +} + +QVariant PythonQtWrapper_QWizard::field(QWizard* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->field(name)); +} + +bool PythonQtWrapper_QWizard::hasVisitedPage(QWizard* theWrappedObject, int id) const +{ + return ( theWrappedObject->hasVisitedPage(id)); +} + +void PythonQtWrapper_QWizard::initializePage(QWizard* theWrappedObject, int id) +{ + ( ((PythonQtPublicPromoter_QWizard*)theWrappedObject)->promoted_initializePage(id)); +} + +int PythonQtWrapper_QWizard::nextId(QWizard* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QWizard*)theWrappedObject)->promoted_nextId()); +} + +QWizard::WizardOptions PythonQtWrapper_QWizard::options(QWizard* theWrappedObject) const +{ + return ( theWrappedObject->options()); +} + +QWizardPage* PythonQtWrapper_QWizard::page(QWizard* theWrappedObject, int id) const +{ + return ( theWrappedObject->page(id)); +} + +QList PythonQtWrapper_QWizard::pageIds(QWizard* theWrappedObject) const +{ + return ( theWrappedObject->pageIds()); +} + +void PythonQtWrapper_QWizard::paintEvent(QWizard* theWrappedObject, QPaintEvent* event) +{ + ( ((PythonQtPublicPromoter_QWizard*)theWrappedObject)->promoted_paintEvent(event)); +} + +QPixmap PythonQtWrapper_QWizard::pixmap(QWizard* theWrappedObject, QWizard::WizardPixmap which) const +{ + return ( theWrappedObject->pixmap(which)); +} + +void PythonQtWrapper_QWizard::removePage(QWizard* theWrappedObject, int id) +{ + ( theWrappedObject->removePage(id)); +} + +void PythonQtWrapper_QWizard::resizeEvent(QWizard* theWrappedObject, QResizeEvent* event) +{ + ( ((PythonQtPublicPromoter_QWizard*)theWrappedObject)->promoted_resizeEvent(event)); +} + +void PythonQtWrapper_QWizard::setButton(QWizard* theWrappedObject, QWizard::WizardButton which, QAbstractButton* button) +{ + ( theWrappedObject->setButton(which, button)); +} + +void PythonQtWrapper_QWizard::setButtonLayout(QWizard* theWrappedObject, const QList& layout) +{ + ( theWrappedObject->setButtonLayout(layout)); +} + +void PythonQtWrapper_QWizard::setButtonText(QWizard* theWrappedObject, QWizard::WizardButton which, const QString& text) +{ + ( theWrappedObject->setButtonText(which, text)); +} + +void PythonQtWrapper_QWizard::setField(QWizard* theWrappedObject, const QString& name, const QVariant& value) +{ + ( theWrappedObject->setField(name, value)); +} + +void PythonQtWrapper_QWizard::setOption(QWizard* theWrappedObject, QWizard::WizardOption option, bool on) +{ + ( theWrappedObject->setOption(option, on)); +} + +void PythonQtWrapper_QWizard::setOptions(QWizard* theWrappedObject, QWizard::WizardOptions options) +{ + ( theWrappedObject->setOptions(options)); +} + +void PythonQtWrapper_QWizard::setPage(QWizard* theWrappedObject, int id, QWizardPage* page) +{ + ( theWrappedObject->setPage(id, page)); +} + +void PythonQtWrapper_QWizard::setPixmap(QWizard* theWrappedObject, QWizard::WizardPixmap which, const QPixmap& pixmap) +{ + ( theWrappedObject->setPixmap(which, pixmap)); +} + +void PythonQtWrapper_QWizard::setSideWidget(QWizard* theWrappedObject, QWidget* widget) +{ + ( theWrappedObject->setSideWidget(widget)); +} + +void PythonQtWrapper_QWizard::setStartId(QWizard* theWrappedObject, int id) +{ + ( theWrappedObject->setStartId(id)); +} + +void PythonQtWrapper_QWizard::setSubTitleFormat(QWizard* theWrappedObject, Qt::TextFormat format) +{ + ( theWrappedObject->setSubTitleFormat(format)); +} + +void PythonQtWrapper_QWizard::setTitleFormat(QWizard* theWrappedObject, Qt::TextFormat format) +{ + ( theWrappedObject->setTitleFormat(format)); +} + +void PythonQtWrapper_QWizard::setVisible(QWizard* theWrappedObject, bool visible) +{ + ( theWrappedObject->setVisible(visible)); +} + +void PythonQtWrapper_QWizard::setWizardStyle(QWizard* theWrappedObject, QWizard::WizardStyle style) +{ + ( theWrappedObject->setWizardStyle(style)); +} + +QWidget* PythonQtWrapper_QWizard::sideWidget(QWizard* theWrappedObject) const +{ + return ( theWrappedObject->sideWidget()); +} + +QSize PythonQtWrapper_QWizard::sizeHint(QWizard* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +int PythonQtWrapper_QWizard::startId(QWizard* theWrappedObject) const +{ + return ( theWrappedObject->startId()); +} + +Qt::TextFormat PythonQtWrapper_QWizard::subTitleFormat(QWizard* theWrappedObject) const +{ + return ( theWrappedObject->subTitleFormat()); +} + +bool PythonQtWrapper_QWizard::testOption(QWizard* theWrappedObject, QWizard::WizardOption option) const +{ + return ( theWrappedObject->testOption(option)); +} + +Qt::TextFormat PythonQtWrapper_QWizard::titleFormat(QWizard* theWrappedObject) const +{ + return ( theWrappedObject->titleFormat()); +} + +bool PythonQtWrapper_QWizard::validateCurrentPage(QWizard* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QWizard*)theWrappedObject)->promoted_validateCurrentPage()); +} + +QList PythonQtWrapper_QWizard::visitedPages(QWizard* theWrappedObject) const +{ + return ( theWrappedObject->visitedPages()); +} + +QWizard::WizardStyle PythonQtWrapper_QWizard::wizardStyle(QWizard* theWrappedObject) const +{ + return ( theWrappedObject->wizardStyle()); +} + + + +PythonQtShell_QWizardPage::~PythonQtShell_QWizardPage() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QWizardPage::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::actionEvent(arg__1); +} +void PythonQtShell_QWizardPage::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::changeEvent(arg__1); +} +void PythonQtShell_QWizardPage::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::childEvent(arg__1); +} +void PythonQtShell_QWizardPage::cleanupPage() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "cleanupPage"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::cleanupPage(); +} +void PythonQtShell_QWizardPage::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::closeEvent(arg__1); +} +void PythonQtShell_QWizardPage::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::contextMenuEvent(arg__1); +} +void PythonQtShell_QWizardPage::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::customEvent(arg__1); +} +int PythonQtShell_QWizardPage::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizardPage::devType(); +} +void PythonQtShell_QWizardPage::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::dragEnterEvent(arg__1); +} +void PythonQtShell_QWizardPage::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::dragLeaveEvent(arg__1); +} +void PythonQtShell_QWizardPage::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::dragMoveEvent(arg__1); +} +void PythonQtShell_QWizardPage::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::dropEvent(arg__1); +} +void PythonQtShell_QWizardPage::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::enterEvent(arg__1); +} +bool PythonQtShell_QWizardPage::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizardPage::event(arg__1); +} +bool PythonQtShell_QWizardPage::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizardPage::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QWizardPage::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::focusInEvent(arg__1); +} +bool PythonQtShell_QWizardPage::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizardPage::focusNextPrevChild(next); +} +void PythonQtShell_QWizardPage::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::focusOutEvent(arg__1); +} +bool PythonQtShell_QWizardPage::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizardPage::hasHeightForWidth(); +} +int PythonQtShell_QWizardPage::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizardPage::heightForWidth(arg__1); +} +void PythonQtShell_QWizardPage::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::hideEvent(arg__1); +} +void PythonQtShell_QWizardPage::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::initPainter(painter); +} +void PythonQtShell_QWizardPage::initializePage() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initializePage"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::initializePage(); +} +void PythonQtShell_QWizardPage::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QWizardPage::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizardPage::inputMethodQuery(arg__1); +} +bool PythonQtShell_QWizardPage::isComplete() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isComplete"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isComplete", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizardPage::isComplete(); +} +void PythonQtShell_QWizardPage::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::keyPressEvent(arg__1); +} +void PythonQtShell_QWizardPage::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::keyReleaseEvent(arg__1); +} +void PythonQtShell_QWizardPage::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::leaveEvent(arg__1); +} +int PythonQtShell_QWizardPage::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizardPage::metric(arg__1); +} +QSize PythonQtShell_QWizardPage::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizardPage::minimumSizeHint(); +} +void PythonQtShell_QWizardPage::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QWizardPage::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::mouseMoveEvent(arg__1); +} +void PythonQtShell_QWizardPage::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::mousePressEvent(arg__1); +} +void PythonQtShell_QWizardPage::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QWizardPage::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::moveEvent(arg__1); +} +bool PythonQtShell_QWizardPage::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizardPage::nativeEvent(eventType, message, result); +} +int PythonQtShell_QWizardPage::nextId() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextId"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nextId", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizardPage::nextId(); +} +QPaintEngine* PythonQtShell_QWizardPage::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizardPage::paintEngine(); +} +void PythonQtShell_QWizardPage::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QWizardPage::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizardPage::redirected(offset); +} +void PythonQtShell_QWizardPage::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QWizardPage::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizardPage::sharedPainter(); +} +void PythonQtShell_QWizardPage::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::showEvent(arg__1); +} +QSize PythonQtShell_QWizardPage::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizardPage::sizeHint(); +} +void PythonQtShell_QWizardPage::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::tabletEvent(arg__1); +} +void PythonQtShell_QWizardPage::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::timerEvent(arg__1); +} +bool PythonQtShell_QWizardPage::validatePage() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validatePage"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("validatePage", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWizardPage::validatePage(); +} +void PythonQtShell_QWizardPage::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWizardPage::wheelEvent(arg__1); +} +QWizardPage* PythonQtWrapper_QWizardPage::new_QWizardPage(QWidget* parent) +{ +return new PythonQtShell_QWizardPage(parent); } + +QString PythonQtWrapper_QWizardPage::buttonText(QWizardPage* theWrappedObject, QWizard::WizardButton which) const +{ + return ( theWrappedObject->buttonText(which)); +} + +void PythonQtWrapper_QWizardPage::cleanupPage(QWizardPage* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QWizardPage*)theWrappedObject)->promoted_cleanupPage()); +} + +void PythonQtWrapper_QWizardPage::initializePage(QWizardPage* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QWizardPage*)theWrappedObject)->promoted_initializePage()); +} + +bool PythonQtWrapper_QWizardPage::isCommitPage(QWizardPage* theWrappedObject) const +{ + return ( theWrappedObject->isCommitPage()); +} + +bool PythonQtWrapper_QWizardPage::isComplete(QWizardPage* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QWizardPage*)theWrappedObject)->promoted_isComplete()); +} + +bool PythonQtWrapper_QWizardPage::isFinalPage(QWizardPage* theWrappedObject) const +{ + return ( theWrappedObject->isFinalPage()); +} + +int PythonQtWrapper_QWizardPage::nextId(QWizardPage* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QWizardPage*)theWrappedObject)->promoted_nextId()); +} + +QPixmap PythonQtWrapper_QWizardPage::pixmap(QWizardPage* theWrappedObject, QWizard::WizardPixmap which) const +{ + return ( theWrappedObject->pixmap(which)); +} + +void PythonQtWrapper_QWizardPage::setButtonText(QWizardPage* theWrappedObject, QWizard::WizardButton which, const QString& text) +{ + ( theWrappedObject->setButtonText(which, text)); +} + +void PythonQtWrapper_QWizardPage::setCommitPage(QWizardPage* theWrappedObject, bool commitPage) +{ + ( theWrappedObject->setCommitPage(commitPage)); +} + +void PythonQtWrapper_QWizardPage::setFinalPage(QWizardPage* theWrappedObject, bool finalPage) +{ + ( theWrappedObject->setFinalPage(finalPage)); +} + +void PythonQtWrapper_QWizardPage::setPixmap(QWizardPage* theWrappedObject, QWizard::WizardPixmap which, const QPixmap& pixmap) +{ + ( theWrappedObject->setPixmap(which, pixmap)); +} + +void PythonQtWrapper_QWizardPage::setSubTitle(QWizardPage* theWrappedObject, const QString& subTitle) +{ + ( theWrappedObject->setSubTitle(subTitle)); +} + +void PythonQtWrapper_QWizardPage::setTitle(QWizardPage* theWrappedObject, const QString& title) +{ + ( theWrappedObject->setTitle(title)); +} + +QString PythonQtWrapper_QWizardPage::subTitle(QWizardPage* theWrappedObject) const +{ + return ( theWrappedObject->subTitle()); +} + +QString PythonQtWrapper_QWizardPage::title(QWizardPage* theWrappedObject) const +{ + return ( theWrappedObject->title()); +} + +bool PythonQtWrapper_QWizardPage::validatePage(QWizardPage* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QWizardPage*)theWrappedObject)->promoted_validatePage()); +} + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui9.h b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui9.h new file mode 100644 index 00000000..2da242e6 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui9.h @@ -0,0 +1,1625 @@ +#include + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +#if defined(QT_WIDGETS_LIB) +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QTreeWidget : public QTreeWidget +{ +public: + PythonQtShell_QTreeWidget(QWidget* parent = 0):QTreeWidget(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QTreeWidget(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void commitData(QWidget* editor); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); +virtual void customEvent(QEvent* arg__1); +virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles); +virtual int devType() const; +virtual void doItemsLayout(); +virtual void dragEnterEvent(QDragEnterEvent* event); +virtual void dragLeaveEvent(QDragLeaveEvent* event); +virtual void dragMoveEvent(QDragMoveEvent* event); +virtual void drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const; +virtual void drawRow(QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const; +virtual void dropEvent(QDropEvent* event); +virtual bool dropMimeData(QTreeWidgetItem* parent, int index, const QMimeData* data, Qt::DropAction action); +virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); +virtual void editorDestroyed(QObject* editor); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* event); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual int horizontalOffset() const; +virtual void horizontalScrollbarAction(int action); +virtual void horizontalScrollbarValueChanged(int value); +virtual QModelIndex indexAt(const QPoint& p) const; +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual bool isIndexHidden(const QModelIndex& index) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void keyboardSearch(const QString& search); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QMimeData* mimeData(const QList items) const; +virtual QStringList mimeTypes() const; +virtual void mouseDoubleClickEvent(QMouseEvent* event); +virtual void mouseMoveEvent(QMouseEvent* event); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* event); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* event); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reset(); +virtual void resizeEvent(QResizeEvent* 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 void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint); +virtual void selectAll(); +virtual QList selectedIndexes() const; +virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); +virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; +virtual void setRootIndex(const QModelIndex& index); +virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); +virtual void setSelectionModel(QItemSelectionModel* selectionModel); +virtual void setupViewport(QWidget* viewport); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual int sizeHintForColumn(int column) const; +virtual int sizeHintForRow(int row) const; +virtual void startDrag(Qt::DropActions supportedActions); +virtual Qt::DropActions supportedDropActions() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* event); +virtual void updateEditorData(); +virtual void updateEditorGeometries(); +virtual void updateGeometries(); +virtual int verticalOffset() const; +virtual void verticalScrollbarAction(int action); +virtual void verticalScrollbarValueChanged(int value); +virtual QStyleOptionViewItem viewOptions() const; +virtual bool viewportEvent(QEvent* event); +virtual QSize viewportSizeHint() const; +virtual QRect visualRect(const QModelIndex& index) const; +virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QTreeWidget : public QTreeWidget +{ public: +inline void promoted_dropEvent(QDropEvent* event) { QTreeWidget::dropEvent(event); } +inline bool promoted_dropMimeData(QTreeWidgetItem* parent, int index, const QMimeData* data, Qt::DropAction action) { return QTreeWidget::dropMimeData(parent, index, data, action); } +inline bool promoted_event(QEvent* e) { return QTreeWidget::event(e); } +inline QStringList promoted_mimeTypes() const { return QTreeWidget::mimeTypes(); } +inline void promoted_setSelectionModel(QItemSelectionModel* selectionModel) { QTreeWidget::setSelectionModel(selectionModel); } +inline Qt::DropActions promoted_supportedDropActions() const { return QTreeWidget::supportedDropActions(); } +}; + +class PythonQtWrapper_QTreeWidget : public QObject +{ Q_OBJECT +public: +public slots: +QTreeWidget* new_QTreeWidget(QWidget* parent = 0); +void delete_QTreeWidget(QTreeWidget* obj) { delete obj; } + void addTopLevelItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item); + void addTopLevelItems(QTreeWidget* theWrappedObject, const QList& items); + void closePersistentEditor(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column = 0); + int columnCount(QTreeWidget* theWrappedObject) const; + int currentColumn(QTreeWidget* theWrappedObject) const; + QTreeWidgetItem* currentItem(QTreeWidget* theWrappedObject) const; + void dropEvent(QTreeWidget* theWrappedObject, QDropEvent* event); + bool dropMimeData(QTreeWidget* theWrappedObject, QTreeWidgetItem* parent, int index, const QMimeData* data, Qt::DropAction action); + void editItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column = 0); + bool event(QTreeWidget* theWrappedObject, QEvent* e); + QList findItems(QTreeWidget* theWrappedObject, const QString& text, Qt::MatchFlags flags, int column = 0) const; + QTreeWidgetItem* headerItem(QTreeWidget* theWrappedObject) const; + int indexOfTopLevelItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item) const; + void insertTopLevelItem(QTreeWidget* theWrappedObject, int index, QTreeWidgetItem* item); + void insertTopLevelItems(QTreeWidget* theWrappedObject, int index, const QList& items); + QTreeWidgetItem* invisibleRootItem(QTreeWidget* theWrappedObject) const; + bool isFirstItemColumnSpanned(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item) const; + QTreeWidgetItem* itemAbove(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item) const; + QTreeWidgetItem* itemAt(QTreeWidget* theWrappedObject, const QPoint& p) const; + QTreeWidgetItem* itemAt(QTreeWidget* theWrappedObject, int x, int y) const; + QTreeWidgetItem* itemBelow(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item) const; + QWidget* itemWidget(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column) const; + QStringList mimeTypes(QTreeWidget* theWrappedObject) const; + void openPersistentEditor(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column = 0); + void removeItemWidget(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column); + QList selectedItems(QTreeWidget* theWrappedObject) const; + void setColumnCount(QTreeWidget* theWrappedObject, int columns); + void setCurrentItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item); + void setCurrentItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column); + void setCurrentItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column, QItemSelectionModel::SelectionFlags command); + void setFirstItemColumnSpanned(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item, bool span); + void setHeaderItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item); + void setHeaderLabel(QTreeWidget* theWrappedObject, const QString& label); + void setHeaderLabels(QTreeWidget* theWrappedObject, const QStringList& labels); + void setItemWidget(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column, QWidget* widget); + void setSelectionModel(QTreeWidget* theWrappedObject, QItemSelectionModel* selectionModel); + int sortColumn(QTreeWidget* theWrappedObject) const; + void sortItems(QTreeWidget* theWrappedObject, int column, Qt::SortOrder order); + Qt::DropActions supportedDropActions(QTreeWidget* theWrappedObject) const; + QTreeWidgetItem* takeTopLevelItem(QTreeWidget* theWrappedObject, int index); + QTreeWidgetItem* topLevelItem(QTreeWidget* theWrappedObject, int index) const; + int topLevelItemCount(QTreeWidget* theWrappedObject) const; + QRect visualItemRect(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item) const; +}; + + + + + +class PythonQtShell_QTreeWidgetItem : public QTreeWidgetItem +{ +public: + PythonQtShell_QTreeWidgetItem(QTreeWidget* view, QTreeWidgetItem* after, int type = Type):QTreeWidgetItem(view, after, type),_wrapper(NULL) {}; + PythonQtShell_QTreeWidgetItem(QTreeWidget* view, const QStringList& strings, int type = Type):QTreeWidgetItem(view, strings, type),_wrapper(NULL) {}; + PythonQtShell_QTreeWidgetItem(QTreeWidget* view, int type = Type):QTreeWidgetItem(view, type),_wrapper(NULL) {}; + PythonQtShell_QTreeWidgetItem(QTreeWidgetItem* parent, QTreeWidgetItem* after, int type = Type):QTreeWidgetItem(parent, after, type),_wrapper(NULL) {}; + PythonQtShell_QTreeWidgetItem(QTreeWidgetItem* parent, const QStringList& strings, int type = Type):QTreeWidgetItem(parent, strings, type),_wrapper(NULL) {}; + PythonQtShell_QTreeWidgetItem(QTreeWidgetItem* parent, int type = Type):QTreeWidgetItem(parent, type),_wrapper(NULL) {}; + PythonQtShell_QTreeWidgetItem(const QStringList& strings, int type = Type):QTreeWidgetItem(strings, type),_wrapper(NULL) {}; + PythonQtShell_QTreeWidgetItem(int type = Type):QTreeWidgetItem(type),_wrapper(NULL) {}; + + ~PythonQtShell_QTreeWidgetItem(); + +virtual QTreeWidgetItem* clone() const; +virtual QVariant data(int column, int role) const; +virtual bool __lt__(const QTreeWidgetItem& other) const; +virtual void read(QDataStream& in); +virtual void setData(int column, int role, const QVariant& value); +virtual void write(QDataStream& out) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QTreeWidgetItem : public QTreeWidgetItem +{ public: +inline QTreeWidgetItem* promoted_clone() const { return QTreeWidgetItem::clone(); } +inline QVariant promoted_data(int column, int role) const { return QTreeWidgetItem::data(column, role); } +inline void promoted_setData(int column, int role, const QVariant& value) { QTreeWidgetItem::setData(column, role, value); } +}; + +class PythonQtWrapper_QTreeWidgetItem : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ItemType ChildIndicatorPolicy ) +enum ItemType{ + Type = QTreeWidgetItem::Type, UserType = QTreeWidgetItem::UserType}; +enum ChildIndicatorPolicy{ + ShowIndicator = QTreeWidgetItem::ShowIndicator, DontShowIndicator = QTreeWidgetItem::DontShowIndicator, DontShowIndicatorWhenChildless = QTreeWidgetItem::DontShowIndicatorWhenChildless}; +public slots: +QTreeWidgetItem* new_QTreeWidgetItem(QTreeWidget* view, QTreeWidgetItem* after, int type = Type); +QTreeWidgetItem* new_QTreeWidgetItem(QTreeWidget* view, const QStringList& strings, int type = Type); +QTreeWidgetItem* new_QTreeWidgetItem(QTreeWidget* view, int type = Type); +QTreeWidgetItem* new_QTreeWidgetItem(QTreeWidgetItem* parent, QTreeWidgetItem* after, int type = Type); +QTreeWidgetItem* new_QTreeWidgetItem(QTreeWidgetItem* parent, const QStringList& strings, int type = Type); +QTreeWidgetItem* new_QTreeWidgetItem(QTreeWidgetItem* parent, int type = Type); +QTreeWidgetItem* new_QTreeWidgetItem(const QStringList& strings, int type = Type); +QTreeWidgetItem* new_QTreeWidgetItem(int type = Type); +void delete_QTreeWidgetItem(QTreeWidgetItem* obj) { delete obj; } + void addChild(QTreeWidgetItem* theWrappedObject, QTreeWidgetItem* child); + void addChildren(QTreeWidgetItem* theWrappedObject, const QList& children); + QBrush background(QTreeWidgetItem* theWrappedObject, int column) const; + Qt::CheckState checkState(QTreeWidgetItem* theWrappedObject, int column) const; + QTreeWidgetItem* child(QTreeWidgetItem* theWrappedObject, int index) const; + int childCount(QTreeWidgetItem* theWrappedObject) const; + QTreeWidgetItem::ChildIndicatorPolicy childIndicatorPolicy(QTreeWidgetItem* theWrappedObject) const; + QTreeWidgetItem* clone(QTreeWidgetItem* theWrappedObject) const; + int columnCount(QTreeWidgetItem* theWrappedObject) const; + QVariant data(QTreeWidgetItem* theWrappedObject, int column, int role) const; + Qt::ItemFlags flags(QTreeWidgetItem* theWrappedObject) const; + QFont font(QTreeWidgetItem* theWrappedObject, int column) const; + QBrush foreground(QTreeWidgetItem* theWrappedObject, int column) const; + QIcon icon(QTreeWidgetItem* theWrappedObject, int column) const; + int indexOfChild(QTreeWidgetItem* theWrappedObject, QTreeWidgetItem* child) const; + void insertChild(QTreeWidgetItem* theWrappedObject, int index, QTreeWidgetItem* child); + void insertChildren(QTreeWidgetItem* theWrappedObject, int index, const QList& children); + bool isDisabled(QTreeWidgetItem* theWrappedObject) const; + bool isExpanded(QTreeWidgetItem* theWrappedObject) const; + bool isFirstColumnSpanned(QTreeWidgetItem* theWrappedObject) const; + bool isHidden(QTreeWidgetItem* theWrappedObject) const; + bool isSelected(QTreeWidgetItem* theWrappedObject) const; + QTreeWidgetItem* parent(QTreeWidgetItem* theWrappedObject) const; + void removeChild(QTreeWidgetItem* theWrappedObject, QTreeWidgetItem* child); + void setBackground(QTreeWidgetItem* theWrappedObject, int column, const QBrush& brush); + void setCheckState(QTreeWidgetItem* theWrappedObject, int column, Qt::CheckState state); + void setChildIndicatorPolicy(QTreeWidgetItem* theWrappedObject, QTreeWidgetItem::ChildIndicatorPolicy policy); + void setData(QTreeWidgetItem* theWrappedObject, int column, int role, const QVariant& value); + void setDisabled(QTreeWidgetItem* theWrappedObject, bool disabled); + void setExpanded(QTreeWidgetItem* theWrappedObject, bool expand); + void setFirstColumnSpanned(QTreeWidgetItem* theWrappedObject, bool span); + void setFlags(QTreeWidgetItem* theWrappedObject, Qt::ItemFlags flags); + void setFont(QTreeWidgetItem* theWrappedObject, int column, const QFont& font); + void setForeground(QTreeWidgetItem* theWrappedObject, int column, const QBrush& brush); + void setHidden(QTreeWidgetItem* theWrappedObject, bool hide); + void setIcon(QTreeWidgetItem* theWrappedObject, int column, const QIcon& icon); + void setSelected(QTreeWidgetItem* theWrappedObject, bool select); + void setSizeHint(QTreeWidgetItem* theWrappedObject, int column, const QSize& size); + void setStatusTip(QTreeWidgetItem* theWrappedObject, int column, const QString& statusTip); + void setText(QTreeWidgetItem* theWrappedObject, int column, const QString& text); + void setTextAlignment(QTreeWidgetItem* theWrappedObject, int column, int alignment); + void setToolTip(QTreeWidgetItem* theWrappedObject, int column, const QString& toolTip); + void setWhatsThis(QTreeWidgetItem* theWrappedObject, int column, const QString& whatsThis); + QSize sizeHint(QTreeWidgetItem* theWrappedObject, int column) const; + void sortChildren(QTreeWidgetItem* theWrappedObject, int column, Qt::SortOrder order); + QString statusTip(QTreeWidgetItem* theWrappedObject, int column) const; + QTreeWidgetItem* takeChild(QTreeWidgetItem* theWrappedObject, int index); + QList takeChildren(QTreeWidgetItem* theWrappedObject); + QString text(QTreeWidgetItem* theWrappedObject, int column) const; + int textAlignment(QTreeWidgetItem* theWrappedObject, int column) const; + QString toolTip(QTreeWidgetItem* theWrappedObject, int column) const; + QTreeWidget* treeWidget(QTreeWidgetItem* theWrappedObject) const; + int type(QTreeWidgetItem* theWrappedObject) const; + QString whatsThis(QTreeWidgetItem* theWrappedObject, int column) const; +}; + + + + + +class PythonQtShell_QUndoCommand : public QUndoCommand +{ +public: + PythonQtShell_QUndoCommand(QUndoCommand* parent = 0):QUndoCommand(parent),_wrapper(NULL) {}; + PythonQtShell_QUndoCommand(const QString& text, QUndoCommand* parent = 0):QUndoCommand(text, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QUndoCommand(); + +virtual int id() const; +virtual bool mergeWith(const QUndoCommand* other); +virtual void redo(); +virtual void undo(); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QUndoCommand : public QUndoCommand +{ public: +inline int promoted_id() const { return QUndoCommand::id(); } +inline bool promoted_mergeWith(const QUndoCommand* other) { return QUndoCommand::mergeWith(other); } +inline void promoted_redo() { QUndoCommand::redo(); } +inline void promoted_undo() { QUndoCommand::undo(); } +}; + +class PythonQtWrapper_QUndoCommand : public QObject +{ Q_OBJECT +public: +public slots: +QUndoCommand* new_QUndoCommand(QUndoCommand* parent = 0); +QUndoCommand* new_QUndoCommand(const QString& text, QUndoCommand* parent = 0); +void delete_QUndoCommand(QUndoCommand* obj) { delete obj; } + QString actionText(QUndoCommand* theWrappedObject) const; + const QUndoCommand* child(QUndoCommand* theWrappedObject, int index) const; + int childCount(QUndoCommand* theWrappedObject) const; + int id(QUndoCommand* theWrappedObject) const; + bool mergeWith(QUndoCommand* theWrappedObject, const QUndoCommand* other); + void redo(QUndoCommand* theWrappedObject); + void setText(QUndoCommand* theWrappedObject, const QString& text); + QString text(QUndoCommand* theWrappedObject) const; + void undo(QUndoCommand* theWrappedObject); +}; + + + + + +class PythonQtShell_QUndoGroup : public QUndoGroup +{ +public: + PythonQtShell_QUndoGroup(QObject* parent = 0):QUndoGroup(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QUndoGroup(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QUndoGroup : public QObject +{ Q_OBJECT +public: +public slots: +QUndoGroup* new_QUndoGroup(QObject* parent = 0); +void delete_QUndoGroup(QUndoGroup* obj) { delete obj; } + QUndoStack* activeStack(QUndoGroup* theWrappedObject) const; + void addStack(QUndoGroup* theWrappedObject, QUndoStack* stack); + bool canRedo(QUndoGroup* theWrappedObject) const; + bool canUndo(QUndoGroup* theWrappedObject) const; + QAction* createRedoAction(QUndoGroup* theWrappedObject, QObject* parent, const QString& prefix = QString()) const; + QAction* createUndoAction(QUndoGroup* theWrappedObject, QObject* parent, const QString& prefix = QString()) const; + bool isClean(QUndoGroup* theWrappedObject) const; + QString redoText(QUndoGroup* theWrappedObject) const; + void removeStack(QUndoGroup* theWrappedObject, QUndoStack* stack); + QList stacks(QUndoGroup* theWrappedObject) const; + QString undoText(QUndoGroup* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QUndoStack : public QUndoStack +{ +public: + PythonQtShell_QUndoStack(QObject* parent = 0):QUndoStack(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QUndoStack(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QUndoStack : public QObject +{ Q_OBJECT +public: +public slots: +QUndoStack* new_QUndoStack(QObject* parent = 0); +void delete_QUndoStack(QUndoStack* obj) { delete obj; } + void beginMacro(QUndoStack* theWrappedObject, const QString& text); + bool canRedo(QUndoStack* theWrappedObject) const; + bool canUndo(QUndoStack* theWrappedObject) const; + int cleanIndex(QUndoStack* theWrappedObject) const; + void clear(QUndoStack* theWrappedObject); + const QUndoCommand* command(QUndoStack* theWrappedObject, int index) const; + int count(QUndoStack* theWrappedObject) const; + QAction* createRedoAction(QUndoStack* theWrappedObject, QObject* parent, const QString& prefix = QString()) const; + QAction* createUndoAction(QUndoStack* theWrappedObject, QObject* parent, const QString& prefix = QString()) const; + void endMacro(QUndoStack* theWrappedObject); + int index(QUndoStack* theWrappedObject) const; + bool isActive(QUndoStack* theWrappedObject) const; + bool isClean(QUndoStack* theWrappedObject) const; + void push(QUndoStack* theWrappedObject, QUndoCommand* cmd); + QString redoText(QUndoStack* theWrappedObject) const; + void setUndoLimit(QUndoStack* theWrappedObject, int limit); + QString text(QUndoStack* theWrappedObject, int idx) const; + int undoLimit(QUndoStack* theWrappedObject) const; + QString undoText(QUndoStack* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QUndoView : public QUndoView +{ +public: + PythonQtShell_QUndoView(QUndoGroup* group, QWidget* parent = 0):QUndoView(group, parent),_wrapper(NULL) {}; + PythonQtShell_QUndoView(QUndoStack* stack, QWidget* parent = 0):QUndoView(stack, parent),_wrapper(NULL) {}; + PythonQtShell_QUndoView(QWidget* parent = 0):QUndoView(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QUndoView(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void commitData(QWidget* editor); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); +virtual void customEvent(QEvent* arg__1); +virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight, const QVector& roles); +virtual int devType() const; +virtual void doItemsLayout(); +virtual void dragEnterEvent(QDragEnterEvent* event); +virtual void dragLeaveEvent(QDragLeaveEvent* e); +virtual void dragMoveEvent(QDragMoveEvent* e); +virtual void dropEvent(QDropEvent* e); +virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); +virtual void editorDestroyed(QObject* editor); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* e); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* event); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* event); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual int horizontalOffset() const; +virtual void horizontalScrollbarAction(int action); +virtual void horizontalScrollbarValueChanged(int value); +virtual QModelIndex indexAt(const QPoint& p) const; +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* event); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual bool isIndexHidden(const QModelIndex& index) const; +virtual void keyPressEvent(QKeyEvent* event); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void keyboardSearch(const QString& search); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* event); +virtual void mouseMoveEvent(QMouseEvent* e); +virtual void mousePressEvent(QMouseEvent* event); +virtual void mouseReleaseEvent(QMouseEvent* e); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* e); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reset(); +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 void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint); +virtual void selectAll(); +virtual QList selectedIndexes() const; +virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); +virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; +virtual void setModel(QAbstractItemModel* model); +virtual void setRootIndex(const QModelIndex& index); +virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); +virtual void setSelectionModel(QItemSelectionModel* selectionModel); +virtual void setupViewport(QWidget* viewport); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual int sizeHintForColumn(int column) const; +virtual int sizeHintForRow(int row) const; +virtual void startDrag(Qt::DropActions supportedActions); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* e); +virtual void updateEditorData(); +virtual void updateEditorGeometries(); +virtual void updateGeometries(); +virtual int verticalOffset() const; +virtual void verticalScrollbarAction(int action); +virtual void verticalScrollbarValueChanged(int value); +virtual QStyleOptionViewItem viewOptions() const; +virtual bool viewportEvent(QEvent* event); +virtual QSize viewportSizeHint() const; +virtual QRect visualRect(const QModelIndex& index) const; +virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QUndoView : public QObject +{ Q_OBJECT +public: +public slots: +QUndoView* new_QUndoView(QUndoGroup* group, QWidget* parent = 0); +QUndoView* new_QUndoView(QUndoStack* stack, QWidget* parent = 0); +QUndoView* new_QUndoView(QWidget* parent = 0); +void delete_QUndoView(QUndoView* obj) { delete obj; } + QIcon cleanIcon(QUndoView* theWrappedObject) const; + QString emptyLabel(QUndoView* theWrappedObject) const; + QUndoGroup* group(QUndoView* theWrappedObject) const; + void setCleanIcon(QUndoView* theWrappedObject, const QIcon& icon); + void setEmptyLabel(QUndoView* theWrappedObject, const QString& label); + QUndoStack* stack(QUndoView* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QVBoxLayout : public QVBoxLayout +{ +public: + PythonQtShell_QVBoxLayout():QVBoxLayout(),_wrapper(NULL) {}; + PythonQtShell_QVBoxLayout(QWidget* parent):QVBoxLayout(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QVBoxLayout(); + +virtual void addItem(QLayoutItem* arg__1); +virtual void childEvent(QChildEvent* e); +virtual QSizePolicy::ControlTypes controlTypes() const; +virtual int count() const; +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual Qt::Orientations expandingDirections() const; +virtual QRect geometry() const; +virtual int indexOf(QWidget* arg__1) const; +virtual void invalidate(); +virtual bool isEmpty() const; +virtual QLayoutItem* itemAt(int arg__1) const; +virtual QLayout* layout(); +virtual QSize maximumSize() const; +virtual QSize minimumSize() const; +virtual void setGeometry(const QRect& arg__1); +virtual QLayoutItem* takeAt(int arg__1); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QVBoxLayout : public QObject +{ Q_OBJECT +public: +public slots: +QVBoxLayout* new_QVBoxLayout(); +QVBoxLayout* new_QVBoxLayout(QWidget* parent); +void delete_QVBoxLayout(QVBoxLayout* obj) { delete obj; } +}; + +#endif + + + +class PythonQtShell_QValidator : public QValidator +{ +public: + PythonQtShell_QValidator(QObject* parent = 0):QValidator(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QValidator(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fixup(QString& arg__1) const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual QValidator::State validate(QString& arg__1, int& arg__2) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QValidator : public QValidator +{ public: +inline void promoted_fixup(QString& arg__1) const { QValidator::fixup(arg__1); } +}; + +class PythonQtWrapper_QValidator : public QObject +{ Q_OBJECT +public: +Q_ENUMS(State ) +enum State{ + Invalid = QValidator::Invalid, Intermediate = QValidator::Intermediate, Acceptable = QValidator::Acceptable}; +public slots: +QValidator* new_QValidator(QObject* parent = 0); +void delete_QValidator(QValidator* obj) { delete obj; } + void fixup(QValidator* theWrappedObject, QString& arg__1) const; + QLocale locale(QValidator* theWrappedObject) const; + void setLocale(QValidator* theWrappedObject, const QLocale& locale); +}; + + + + + +class PythonQtWrapper_QVector2D : public QObject +{ Q_OBJECT +public: +public slots: +QVector2D* new_QVector2D(); +QVector2D* new_QVector2D(const QPoint& point); +QVector2D* new_QVector2D(const QPointF& point); +QVector2D* new_QVector2D(const QVector3D& vector); +QVector2D* new_QVector2D(const QVector4D& vector); +QVector2D* new_QVector2D(float xpos, float ypos); +QVector2D* new_QVector2D(const QVector2D& other) { +QVector2D* a = new QVector2D(); +*((QVector2D*)a) = other; +return a; } +void delete_QVector2D(QVector2D* obj) { delete obj; } + float static_QVector2D_dotProduct(const QVector2D& v1, const QVector2D& v2); + bool isNull(QVector2D* theWrappedObject) const; + float length(QVector2D* theWrappedObject) const; + float lengthSquared(QVector2D* theWrappedObject) const; + void normalize(QVector2D* theWrappedObject); + QVector2D normalized(QVector2D* theWrappedObject) const; + const QVector2D __mul__(QVector2D* theWrappedObject, const QVector2D& v2); + const QVector2D __mul__(QVector2D* theWrappedObject, float factor); + QVector2D* __imul__(QVector2D* theWrappedObject, const QVector2D& vector); + QVector2D* __imul__(QVector2D* theWrappedObject, float factor); + const QVector2D __add__(QVector2D* theWrappedObject, const QVector2D& v2); + QVector2D* __iadd__(QVector2D* theWrappedObject, const QVector2D& vector); + const QVector2D __sub__(QVector2D* theWrappedObject, const QVector2D& v2); + QVector2D* __isub__(QVector2D* theWrappedObject, const QVector2D& vector); + const QVector2D __div__(QVector2D* theWrappedObject, float divisor); + QVector2D* __idiv__(QVector2D* theWrappedObject, float divisor); + bool __eq__(QVector2D* theWrappedObject, const QVector2D& v2); + void setX(QVector2D* theWrappedObject, float x); + void setY(QVector2D* theWrappedObject, float y); + QPoint toPoint(QVector2D* theWrappedObject) const; + QPointF toPointF(QVector2D* theWrappedObject) const; + QVector3D toVector3D(QVector2D* theWrappedObject) const; + QVector4D toVector4D(QVector2D* theWrappedObject) const; + float x(QVector2D* theWrappedObject) const; + float y(QVector2D* theWrappedObject) const; + QString py_toString(QVector2D*); + bool __nonzero__(QVector2D* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QVector3D : public QObject +{ Q_OBJECT +public: +public slots: +QVector3D* new_QVector3D(); +QVector3D* new_QVector3D(const QPoint& point); +QVector3D* new_QVector3D(const QPointF& point); +QVector3D* new_QVector3D(const QVector2D& vector); +QVector3D* new_QVector3D(const QVector2D& vector, float zpos); +QVector3D* new_QVector3D(const QVector4D& vector); +QVector3D* new_QVector3D(float xpos, float ypos, float zpos); +QVector3D* new_QVector3D(const QVector3D& other) { +QVector3D* a = new QVector3D(); +*((QVector3D*)a) = other; +return a; } +void delete_QVector3D(QVector3D* obj) { delete obj; } + QVector3D static_QVector3D_crossProduct(const QVector3D& v1, const QVector3D& v2); + float distanceToLine(QVector3D* theWrappedObject, const QVector3D& point, const QVector3D& direction) const; + float distanceToPlane(QVector3D* theWrappedObject, const QVector3D& plane, const QVector3D& normal) const; + float distanceToPlane(QVector3D* theWrappedObject, const QVector3D& plane1, const QVector3D& plane2, const QVector3D& plane3) const; + float static_QVector3D_dotProduct(const QVector3D& v1, const QVector3D& v2); + bool isNull(QVector3D* theWrappedObject) const; + float length(QVector3D* theWrappedObject) const; + float lengthSquared(QVector3D* theWrappedObject) const; + QVector3D static_QVector3D_normal(const QVector3D& v1, const QVector3D& v2); + QVector3D static_QVector3D_normal(const QVector3D& v1, const QVector3D& v2, const QVector3D& v3); + void normalize(QVector3D* theWrappedObject); + QVector3D normalized(QVector3D* theWrappedObject) const; + QVector3D __mul__(QVector3D* theWrappedObject, const QMatrix4x4& matrix); + const QVector3D __mul__(QVector3D* theWrappedObject, const QVector3D& v2); + const QVector3D __mul__(QVector3D* theWrappedObject, float factor); + QVector3D* __imul__(QVector3D* theWrappedObject, const QVector3D& vector); + QVector3D* __imul__(QVector3D* theWrappedObject, float factor); + const QVector3D __add__(QVector3D* theWrappedObject, const QVector3D& v2); + QVector3D* __iadd__(QVector3D* theWrappedObject, const QVector3D& vector); + const QVector3D __sub__(QVector3D* theWrappedObject, const QVector3D& v2); + QVector3D* __isub__(QVector3D* theWrappedObject, const QVector3D& vector); + const QVector3D __div__(QVector3D* theWrappedObject, float divisor); + QVector3D* __idiv__(QVector3D* theWrappedObject, float divisor); + bool __eq__(QVector3D* theWrappedObject, const QVector3D& v2); + void setX(QVector3D* theWrappedObject, float x); + void setY(QVector3D* theWrappedObject, float y); + void setZ(QVector3D* theWrappedObject, float z); + QPoint toPoint(QVector3D* theWrappedObject) const; + QPointF toPointF(QVector3D* theWrappedObject) const; + QVector2D toVector2D(QVector3D* theWrappedObject) const; + QVector4D toVector4D(QVector3D* theWrappedObject) const; + float x(QVector3D* theWrappedObject) const; + float y(QVector3D* theWrappedObject) const; + float z(QVector3D* theWrappedObject) const; + QString py_toString(QVector3D*); + bool __nonzero__(QVector3D* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QVector4D : public QObject +{ Q_OBJECT +public: +public slots: +QVector4D* new_QVector4D(); +QVector4D* new_QVector4D(const QPoint& point); +QVector4D* new_QVector4D(const QPointF& point); +QVector4D* new_QVector4D(const QVector2D& vector); +QVector4D* new_QVector4D(const QVector2D& vector, float zpos, float wpos); +QVector4D* new_QVector4D(const QVector3D& vector); +QVector4D* new_QVector4D(const QVector3D& vector, float wpos); +QVector4D* new_QVector4D(float xpos, float ypos, float zpos, float wpos); +QVector4D* new_QVector4D(const QVector4D& other) { +QVector4D* a = new QVector4D(); +*((QVector4D*)a) = other; +return a; } +void delete_QVector4D(QVector4D* obj) { delete obj; } + float static_QVector4D_dotProduct(const QVector4D& v1, const QVector4D& v2); + bool isNull(QVector4D* theWrappedObject) const; + float length(QVector4D* theWrappedObject) const; + float lengthSquared(QVector4D* theWrappedObject) const; + void normalize(QVector4D* theWrappedObject); + QVector4D normalized(QVector4D* theWrappedObject) const; + QVector4D __mul__(QVector4D* theWrappedObject, const QMatrix4x4& matrix); + const QVector4D __mul__(QVector4D* theWrappedObject, const QVector4D& v2); + const QVector4D __mul__(QVector4D* theWrappedObject, float factor); + QVector4D* __imul__(QVector4D* theWrappedObject, const QVector4D& vector); + QVector4D* __imul__(QVector4D* theWrappedObject, float factor); + const QVector4D __add__(QVector4D* theWrappedObject, const QVector4D& v2); + QVector4D* __iadd__(QVector4D* theWrappedObject, const QVector4D& vector); + const QVector4D __sub__(QVector4D* theWrappedObject, const QVector4D& v2); + QVector4D* __isub__(QVector4D* theWrappedObject, const QVector4D& vector); + const QVector4D __div__(QVector4D* theWrappedObject, float divisor); + QVector4D* __idiv__(QVector4D* theWrappedObject, float divisor); + bool __eq__(QVector4D* theWrappedObject, const QVector4D& v2); + void setW(QVector4D* theWrappedObject, float w); + void setX(QVector4D* theWrappedObject, float x); + void setY(QVector4D* theWrappedObject, float y); + void setZ(QVector4D* theWrappedObject, float z); + QPoint toPoint(QVector4D* theWrappedObject) const; + QPointF toPointF(QVector4D* theWrappedObject) const; + QVector2D toVector2D(QVector4D* theWrappedObject) const; + QVector2D toVector2DAffine(QVector4D* theWrappedObject) const; + QVector3D toVector3D(QVector4D* theWrappedObject) const; + QVector3D toVector3DAffine(QVector4D* theWrappedObject) const; + float w(QVector4D* theWrappedObject) const; + float x(QVector4D* theWrappedObject) const; + float y(QVector4D* theWrappedObject) const; + float z(QVector4D* theWrappedObject) const; + QString py_toString(QVector4D*); + bool __nonzero__(QVector4D* obj) { return !obj->isNull(); } +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtWrapper_QWhatsThis : public QObject +{ Q_OBJECT +public: +public slots: +void delete_QWhatsThis(QWhatsThis* obj) { delete obj; } + QAction* static_QWhatsThis_createAction(QObject* parent = 0); + void static_QWhatsThis_enterWhatsThisMode(); + void static_QWhatsThis_hideText(); + bool static_QWhatsThis_inWhatsThisMode(); + void static_QWhatsThis_leaveWhatsThisMode(); + void static_QWhatsThis_showText(const QPoint& pos, const QString& text, QWidget* w = 0); +}; + +#endif + + + +class PythonQtWrapper_QWhatsThisClickedEvent : public QObject +{ Q_OBJECT +public: +public slots: +QWhatsThisClickedEvent* new_QWhatsThisClickedEvent(const QString& href); +void delete_QWhatsThisClickedEvent(QWhatsThisClickedEvent* obj) { delete obj; } + QString href(QWhatsThisClickedEvent* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QWheelEvent : public QWheelEvent +{ +public: + PythonQtShell_QWheelEvent(const QPointF& pos, const QPointF& globalPos, QPoint pixelDelta, QPoint angleDelta, int qt4Delta, Qt::Orientation qt4Orientation, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers):QWheelEvent(pos, globalPos, pixelDelta, angleDelta, qt4Delta, qt4Orientation, buttons, modifiers),_wrapper(NULL) {}; + PythonQtShell_QWheelEvent(const QPointF& pos, const QPointF& globalPos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient = Qt::Vertical):QWheelEvent(pos, globalPos, delta, buttons, modifiers, orient),_wrapper(NULL) {}; + PythonQtShell_QWheelEvent(const QPointF& pos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient = Qt::Vertical):QWheelEvent(pos, delta, buttons, modifiers, orient),_wrapper(NULL) {}; + + ~PythonQtShell_QWheelEvent(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QWheelEvent : public QObject +{ Q_OBJECT +public: +public slots: +QWheelEvent* new_QWheelEvent(const QPointF& pos, const QPointF& globalPos, QPoint pixelDelta, QPoint angleDelta, int qt4Delta, Qt::Orientation qt4Orientation, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); +QWheelEvent* new_QWheelEvent(const QPointF& pos, const QPointF& globalPos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient = Qt::Vertical); +QWheelEvent* new_QWheelEvent(const QPointF& pos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient = Qt::Vertical); +void delete_QWheelEvent(QWheelEvent* obj) { delete obj; } + QPoint angleDelta(QWheelEvent* theWrappedObject) const; + Qt::MouseButtons buttons(QWheelEvent* theWrappedObject) const; + int delta(QWheelEvent* theWrappedObject) const; + QPoint globalPos(QWheelEvent* theWrappedObject) const; + const QPointF* globalPosF(QWheelEvent* theWrappedObject) const; + int globalX(QWheelEvent* theWrappedObject) const; + int globalY(QWheelEvent* theWrappedObject) const; + Qt::Orientation orientation(QWheelEvent* theWrappedObject) const; + QPoint pixelDelta(QWheelEvent* theWrappedObject) const; + QPoint pos(QWheelEvent* theWrappedObject) const; + const QPointF* posF(QWheelEvent* theWrappedObject) const; + int x(QWheelEvent* theWrappedObject) const; + int y(QWheelEvent* theWrappedObject) const; +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QWidget : public QWidget +{ +public: + PythonQtShell_QWidget(QWidget* parent = 0, Qt::WindowFlags f = 0):QWidget(parent, f),_wrapper(NULL) {}; + + ~PythonQtShell_QWidget(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual void setVisible(bool visible); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual QSize sizeHint() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QWidget : public QWidget +{ public: +inline void promoted_actionEvent(QActionEvent* arg__1) { QWidget::actionEvent(arg__1); } +inline void promoted_changeEvent(QEvent* arg__1) { QWidget::changeEvent(arg__1); } +inline void promoted_closeEvent(QCloseEvent* arg__1) { QWidget::closeEvent(arg__1); } +inline void promoted_contextMenuEvent(QContextMenuEvent* arg__1) { QWidget::contextMenuEvent(arg__1); } +inline int promoted_devType() const { return QWidget::devType(); } +inline void promoted_dragEnterEvent(QDragEnterEvent* arg__1) { QWidget::dragEnterEvent(arg__1); } +inline void promoted_dragLeaveEvent(QDragLeaveEvent* arg__1) { QWidget::dragLeaveEvent(arg__1); } +inline void promoted_dragMoveEvent(QDragMoveEvent* arg__1) { QWidget::dragMoveEvent(arg__1); } +inline void promoted_dropEvent(QDropEvent* arg__1) { QWidget::dropEvent(arg__1); } +inline void promoted_enterEvent(QEvent* arg__1) { QWidget::enterEvent(arg__1); } +inline bool promoted_event(QEvent* arg__1) { return QWidget::event(arg__1); } +inline void promoted_focusInEvent(QFocusEvent* arg__1) { QWidget::focusInEvent(arg__1); } +inline bool promoted_focusNextPrevChild(bool next) { return QWidget::focusNextPrevChild(next); } +inline void promoted_focusOutEvent(QFocusEvent* arg__1) { QWidget::focusOutEvent(arg__1); } +inline bool promoted_hasHeightForWidth() const { return QWidget::hasHeightForWidth(); } +inline int promoted_heightForWidth(int arg__1) const { return QWidget::heightForWidth(arg__1); } +inline void promoted_hideEvent(QHideEvent* arg__1) { QWidget::hideEvent(arg__1); } +inline void promoted_initPainter(QPainter* painter) const { QWidget::initPainter(painter); } +inline void promoted_inputMethodEvent(QInputMethodEvent* arg__1) { QWidget::inputMethodEvent(arg__1); } +inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery arg__1) const { return QWidget::inputMethodQuery(arg__1); } +inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QWidget::keyPressEvent(arg__1); } +inline void promoted_keyReleaseEvent(QKeyEvent* arg__1) { QWidget::keyReleaseEvent(arg__1); } +inline void promoted_leaveEvent(QEvent* arg__1) { QWidget::leaveEvent(arg__1); } +inline int promoted_metric(QPaintDevice::PaintDeviceMetric arg__1) const { return QWidget::metric(arg__1); } +inline QSize promoted_minimumSizeHint() const { return QWidget::minimumSizeHint(); } +inline void promoted_mouseDoubleClickEvent(QMouseEvent* arg__1) { QWidget::mouseDoubleClickEvent(arg__1); } +inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QWidget::mouseMoveEvent(arg__1); } +inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QWidget::mousePressEvent(arg__1); } +inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QWidget::mouseReleaseEvent(arg__1); } +inline void promoted_moveEvent(QMoveEvent* arg__1) { QWidget::moveEvent(arg__1); } +inline bool promoted_nativeEvent(const QByteArray& eventType, void* message, long* result) { return QWidget::nativeEvent(eventType, message, result); } +inline QPaintEngine* promoted_paintEngine() const { return QWidget::paintEngine(); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QWidget::paintEvent(arg__1); } +inline QPaintDevice* promoted_redirected(QPoint* offset) const { return QWidget::redirected(offset); } +inline void promoted_resizeEvent(QResizeEvent* arg__1) { QWidget::resizeEvent(arg__1); } +inline QPainter* promoted_sharedPainter() const { return QWidget::sharedPainter(); } +inline void promoted_showEvent(QShowEvent* arg__1) { QWidget::showEvent(arg__1); } +inline QSize promoted_sizeHint() const { return QWidget::sizeHint(); } +inline void promoted_tabletEvent(QTabletEvent* arg__1) { QWidget::tabletEvent(arg__1); } +inline void promoted_wheelEvent(QWheelEvent* arg__1) { QWidget::wheelEvent(arg__1); } +}; + +class PythonQtWrapper_QWidget : public QObject +{ Q_OBJECT +public: +Q_ENUMS(RenderFlag ) +Q_FLAGS(RenderFlags ) +enum RenderFlag{ + DrawWindowBackground = QWidget::DrawWindowBackground, DrawChildren = QWidget::DrawChildren, IgnoreMask = QWidget::IgnoreMask}; +Q_DECLARE_FLAGS(RenderFlags, RenderFlag) +public slots: +QWidget* new_QWidget(QWidget* parent = 0, Qt::WindowFlags f = 0); +void delete_QWidget(QWidget* obj) { delete obj; } + bool acceptDrops(QWidget* theWrappedObject) const; + QString accessibleDescription(QWidget* theWrappedObject) const; + QString accessibleName(QWidget* theWrappedObject) const; + void actionEvent(QWidget* theWrappedObject, QActionEvent* arg__1); + QList actions(QWidget* theWrappedObject) const; + void activateWindow(QWidget* theWrappedObject); + void addAction(QWidget* theWrappedObject, QAction* action); + void addActions(QWidget* theWrappedObject, QList actions); + void adjustSize(QWidget* theWrappedObject); + bool autoFillBackground(QWidget* theWrappedObject) const; + QPalette::ColorRole backgroundRole(QWidget* theWrappedObject) const; + QSize baseSize(QWidget* theWrappedObject) const; + void changeEvent(QWidget* theWrappedObject, QEvent* arg__1); + QWidget* childAt(QWidget* theWrappedObject, const QPoint& p) const; + QWidget* childAt(QWidget* theWrappedObject, int x, int y) const; + QRect childrenRect(QWidget* theWrappedObject) const; + QRegion childrenRegion(QWidget* theWrappedObject) const; + void clearFocus(QWidget* theWrappedObject); + void clearMask(QWidget* theWrappedObject); + void closeEvent(QWidget* theWrappedObject, QCloseEvent* arg__1); + QMargins contentsMargins(QWidget* theWrappedObject) const; + QRect contentsRect(QWidget* theWrappedObject) const; + void contextMenuEvent(QWidget* theWrappedObject, QContextMenuEvent* arg__1); + Qt::ContextMenuPolicy contextMenuPolicy(QWidget* theWrappedObject) const; + void createWinId(QWidget* theWrappedObject); + QCursor cursor(QWidget* theWrappedObject) const; + int devType(QWidget* theWrappedObject) const; + void dragEnterEvent(QWidget* theWrappedObject, QDragEnterEvent* arg__1); + void dragLeaveEvent(QWidget* theWrappedObject, QDragLeaveEvent* arg__1); + void dragMoveEvent(QWidget* theWrappedObject, QDragMoveEvent* arg__1); + void dropEvent(QWidget* theWrappedObject, QDropEvent* arg__1); + WId effectiveWinId(QWidget* theWrappedObject) const; + void ensurePolished(QWidget* theWrappedObject) const; + void enterEvent(QWidget* theWrappedObject, QEvent* arg__1); + bool event(QWidget* theWrappedObject, QEvent* arg__1); + void focusInEvent(QWidget* theWrappedObject, QFocusEvent* arg__1); + bool focusNextPrevChild(QWidget* theWrappedObject, bool next); + void focusOutEvent(QWidget* theWrappedObject, QFocusEvent* arg__1); + Qt::FocusPolicy focusPolicy(QWidget* theWrappedObject) const; + QWidget* focusProxy(QWidget* theWrappedObject) const; + QWidget* focusWidget(QWidget* theWrappedObject) const; + const QFont* font(QWidget* theWrappedObject) const; + QPalette::ColorRole foregroundRole(QWidget* theWrappedObject) const; + QRect frameGeometry(QWidget* theWrappedObject) const; + QSize frameSize(QWidget* theWrappedObject) const; + const QRect* geometry(QWidget* theWrappedObject) const; + void getContentsMargins(QWidget* theWrappedObject, int* left, int* top, int* right, int* bottom) const; + QPixmap grab(QWidget* theWrappedObject, const QRect& rectangle = QRect(QPoint(0, 0), QSize(-1, -1))); + void grabGesture(QWidget* theWrappedObject, Qt::GestureType type, Qt::GestureFlags flags = Qt::GestureFlags()); + void grabKeyboard(QWidget* theWrappedObject); + void grabMouse(QWidget* theWrappedObject); + void grabMouse(QWidget* theWrappedObject, const QCursor& arg__1); + int grabShortcut(QWidget* theWrappedObject, const QKeySequence& key, Qt::ShortcutContext context = Qt::WindowShortcut); + QGraphicsEffect* graphicsEffect(QWidget* theWrappedObject) const; + QGraphicsProxyWidget* graphicsProxyWidget(QWidget* theWrappedObject) const; + bool hasFocus(QWidget* theWrappedObject) const; + bool hasHeightForWidth(QWidget* theWrappedObject) const; + bool hasMouseTracking(QWidget* theWrappedObject) const; + int height(QWidget* theWrappedObject) const; + int heightForWidth(QWidget* theWrappedObject, int arg__1) const; + void hideEvent(QWidget* theWrappedObject, QHideEvent* arg__1); + void initPainter(QWidget* theWrappedObject, QPainter* painter) const; + void inputMethodEvent(QWidget* theWrappedObject, QInputMethodEvent* arg__1); + Qt::InputMethodHints inputMethodHints(QWidget* theWrappedObject) const; + QVariant inputMethodQuery(QWidget* theWrappedObject, Qt::InputMethodQuery arg__1) const; + void insertAction(QWidget* theWrappedObject, QAction* before, QAction* action); + void insertActions(QWidget* theWrappedObject, QAction* before, QList actions); + bool isActiveWindow(QWidget* theWrappedObject) const; + bool isAncestorOf(QWidget* theWrappedObject, const QWidget* child) const; + bool isEnabled(QWidget* theWrappedObject) const; + bool isEnabledTo(QWidget* theWrappedObject, const QWidget* arg__1) const; + bool isFullScreen(QWidget* theWrappedObject) const; + bool isHidden(QWidget* theWrappedObject) const; + bool isLeftToRight(QWidget* theWrappedObject) const; + bool isMaximized(QWidget* theWrappedObject) const; + bool isMinimized(QWidget* theWrappedObject) const; + bool isModal(QWidget* theWrappedObject) const; + bool isRightToLeft(QWidget* theWrappedObject) const; + bool isVisible(QWidget* theWrappedObject) const; + bool isVisibleTo(QWidget* theWrappedObject, const QWidget* arg__1) const; + bool isWindow(QWidget* theWrappedObject) const; + bool isWindowModified(QWidget* theWrappedObject) const; + void keyPressEvent(QWidget* theWrappedObject, QKeyEvent* arg__1); + void keyReleaseEvent(QWidget* theWrappedObject, QKeyEvent* arg__1); + QWidget* static_QWidget_keyboardGrabber(); + QLayout* layout(QWidget* theWrappedObject) const; + Qt::LayoutDirection layoutDirection(QWidget* theWrappedObject) const; + void leaveEvent(QWidget* theWrappedObject, QEvent* arg__1); + QLocale locale(QWidget* theWrappedObject) const; + QPoint mapFrom(QWidget* theWrappedObject, const QWidget* arg__1, const QPoint& arg__2) const; + QPoint mapFromGlobal(QWidget* theWrappedObject, const QPoint& arg__1) const; + QPoint mapFromParent(QWidget* theWrappedObject, const QPoint& arg__1) const; + QPoint mapTo(QWidget* theWrappedObject, const QWidget* arg__1, const QPoint& arg__2) const; + QPoint mapToGlobal(QWidget* theWrappedObject, const QPoint& arg__1) const; + QPoint mapToParent(QWidget* theWrappedObject, const QPoint& arg__1) const; + QRegion mask(QWidget* theWrappedObject) const; + int maximumHeight(QWidget* theWrappedObject) const; + QSize maximumSize(QWidget* theWrappedObject) const; + int maximumWidth(QWidget* theWrappedObject) const; + int metric(QWidget* theWrappedObject, QPaintDevice::PaintDeviceMetric arg__1) const; + int minimumHeight(QWidget* theWrappedObject) const; + QSize minimumSize(QWidget* theWrappedObject) const; + QSize minimumSizeHint(QWidget* theWrappedObject) const; + int minimumWidth(QWidget* theWrappedObject) const; + void mouseDoubleClickEvent(QWidget* theWrappedObject, QMouseEvent* arg__1); + QWidget* static_QWidget_mouseGrabber(); + void mouseMoveEvent(QWidget* theWrappedObject, QMouseEvent* arg__1); + void mousePressEvent(QWidget* theWrappedObject, QMouseEvent* arg__1); + void mouseReleaseEvent(QWidget* theWrappedObject, QMouseEvent* arg__1); + void move(QWidget* theWrappedObject, const QPoint& arg__1); + void move(QWidget* theWrappedObject, int x, int y); + void moveEvent(QWidget* theWrappedObject, QMoveEvent* arg__1); + bool nativeEvent(QWidget* theWrappedObject, const QByteArray& eventType, void* message, long* result); + QWidget* nativeParentWidget(QWidget* theWrappedObject) const; + QWidget* nextInFocusChain(QWidget* theWrappedObject) const; + QRect normalGeometry(QWidget* theWrappedObject) const; + void overrideWindowFlags(QWidget* theWrappedObject, Qt::WindowFlags type); + void overrideWindowState(QWidget* theWrappedObject, Qt::WindowStates state); + QPaintEngine* paintEngine(QWidget* theWrappedObject) const; + void paintEvent(QWidget* theWrappedObject, QPaintEvent* arg__1); + const QPalette* palette(QWidget* theWrappedObject) const; + QWidget* parentWidget(QWidget* theWrappedObject) const; + QPoint pos(QWidget* theWrappedObject) const; + QWidget* previousInFocusChain(QWidget* theWrappedObject) const; + QRect rect(QWidget* theWrappedObject) const; + QPaintDevice* redirected(QWidget* theWrappedObject, QPoint* offset) const; + void releaseKeyboard(QWidget* theWrappedObject); + void releaseMouse(QWidget* theWrappedObject); + void releaseShortcut(QWidget* theWrappedObject, int id); + void removeAction(QWidget* theWrappedObject, QAction* action); + void render(QWidget* theWrappedObject, QPaintDevice* target, const QPoint& targetOffset = QPoint(), const QRegion& sourceRegion = QRegion(), QWidget::RenderFlags renderFlags = QWidget::RenderFlags(DrawWindowBackground | DrawChildren)); + void render(QWidget* theWrappedObject, QPainter* painter, const QPoint& targetOffset = QPoint(), const QRegion& sourceRegion = QRegion(), QWidget::RenderFlags renderFlags = QWidget::RenderFlags(DrawWindowBackground | DrawChildren)); + void repaint(QWidget* theWrappedObject, const QRect& arg__1); + void repaint(QWidget* theWrappedObject, const QRegion& arg__1); + void repaint(QWidget* theWrappedObject, int x, int y, int w, int h); + void resize(QWidget* theWrappedObject, const QSize& arg__1); + void resize(QWidget* theWrappedObject, int w, int h); + void resizeEvent(QWidget* theWrappedObject, QResizeEvent* arg__1); + bool restoreGeometry(QWidget* theWrappedObject, const QByteArray& geometry); + QByteArray saveGeometry(QWidget* theWrappedObject) const; + void scroll(QWidget* theWrappedObject, int dx, int dy); + void scroll(QWidget* theWrappedObject, int dx, int dy, const QRect& arg__3); + void setAcceptDrops(QWidget* theWrappedObject, bool on); + void setAccessibleDescription(QWidget* theWrappedObject, const QString& description); + void setAccessibleName(QWidget* theWrappedObject, const QString& name); + void setAttribute(QWidget* theWrappedObject, Qt::WidgetAttribute arg__1, bool on = true); + void setAutoFillBackground(QWidget* theWrappedObject, bool enabled); + void setBackgroundRole(QWidget* theWrappedObject, QPalette::ColorRole arg__1); + void setBaseSize(QWidget* theWrappedObject, const QSize& arg__1); + void setBaseSize(QWidget* theWrappedObject, int basew, int baseh); + void setContentsMargins(QWidget* theWrappedObject, const QMargins& margins); + void setContentsMargins(QWidget* theWrappedObject, int left, int top, int right, int bottom); + void setContextMenuPolicy(QWidget* theWrappedObject, Qt::ContextMenuPolicy policy); + void setCursor(QWidget* theWrappedObject, const QCursor& arg__1); + void setFixedHeight(QWidget* theWrappedObject, int h); + void setFixedSize(QWidget* theWrappedObject, const QSize& arg__1); + void setFixedSize(QWidget* theWrappedObject, int w, int h); + void setFixedWidth(QWidget* theWrappedObject, int w); + void setFocus(QWidget* theWrappedObject, Qt::FocusReason reason); + void setFocusPolicy(QWidget* theWrappedObject, Qt::FocusPolicy policy); + void setFocusProxy(QWidget* theWrappedObject, QWidget* arg__1); + void setFont(QWidget* theWrappedObject, const QFont& arg__1); + void setForegroundRole(QWidget* theWrappedObject, QPalette::ColorRole arg__1); + void setGeometry(QWidget* theWrappedObject, const QRect& arg__1); + void setGeometry(QWidget* theWrappedObject, int x, int y, int w, int h); + void setGraphicsEffect(QWidget* theWrappedObject, QGraphicsEffect* effect); + void setInputMethodHints(QWidget* theWrappedObject, Qt::InputMethodHints hints); + void setLayout(QWidget* theWrappedObject, QLayout* arg__1); + void setLayoutDirection(QWidget* theWrappedObject, Qt::LayoutDirection direction); + void setLocale(QWidget* theWrappedObject, const QLocale& locale); + void setMask(QWidget* theWrappedObject, const QBitmap& arg__1); + void setMask(QWidget* theWrappedObject, const QRegion& arg__1); + void setMaximumHeight(QWidget* theWrappedObject, int maxh); + void setMaximumSize(QWidget* theWrappedObject, const QSize& arg__1); + void setMaximumSize(QWidget* theWrappedObject, int maxw, int maxh); + void setMaximumWidth(QWidget* theWrappedObject, int maxw); + void setMinimumHeight(QWidget* theWrappedObject, int minh); + void setMinimumSize(QWidget* theWrappedObject, const QSize& arg__1); + void setMinimumSize(QWidget* theWrappedObject, int minw, int minh); + void setMinimumWidth(QWidget* theWrappedObject, int minw); + void setMouseTracking(QWidget* theWrappedObject, bool enable); + void setPalette(QWidget* theWrappedObject, const QPalette& arg__1); + void setParent(QWidget* theWrappedObject, QWidget* parent); + void setParent(QWidget* theWrappedObject, QWidget* parent, Qt::WindowFlags f); + void setShortcutAutoRepeat(QWidget* theWrappedObject, int id, bool enable = true); + void setShortcutEnabled(QWidget* theWrappedObject, int id, bool enable = true); + void setSizeIncrement(QWidget* theWrappedObject, const QSize& arg__1); + void setSizeIncrement(QWidget* theWrappedObject, int w, int h); + void setSizePolicy(QWidget* theWrappedObject, QSizePolicy arg__1); + void setSizePolicy(QWidget* theWrappedObject, QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical); + void setStatusTip(QWidget* theWrappedObject, const QString& arg__1); + void setStyle(QWidget* theWrappedObject, QStyle* arg__1); + void static_QWidget_setTabOrder(QWidget* arg__1, QWidget* arg__2); + void setToolTip(QWidget* theWrappedObject, const QString& arg__1); + void setUpdatesEnabled(QWidget* theWrappedObject, bool enable); + void setWhatsThis(QWidget* theWrappedObject, const QString& arg__1); + void setWindowFilePath(QWidget* theWrappedObject, const QString& filePath); + void setWindowFlags(QWidget* theWrappedObject, Qt::WindowFlags type); + void setWindowIcon(QWidget* theWrappedObject, const QIcon& icon); + void setWindowIconText(QWidget* theWrappedObject, const QString& arg__1); + void setWindowModality(QWidget* theWrappedObject, Qt::WindowModality windowModality); + void setWindowOpacity(QWidget* theWrappedObject, qreal level); + void setWindowRole(QWidget* theWrappedObject, const QString& arg__1); + void setWindowState(QWidget* theWrappedObject, Qt::WindowStates state); + QPainter* sharedPainter(QWidget* theWrappedObject) const; + void showEvent(QWidget* theWrappedObject, QShowEvent* arg__1); + QSize size(QWidget* theWrappedObject) const; + QSize sizeHint(QWidget* theWrappedObject) const; + QSize sizeIncrement(QWidget* theWrappedObject) const; + QSizePolicy sizePolicy(QWidget* theWrappedObject) const; + void stackUnder(QWidget* theWrappedObject, QWidget* arg__1); + QString statusTip(QWidget* theWrappedObject) const; + QStyle* style(QWidget* theWrappedObject) const; + QString styleSheet(QWidget* theWrappedObject) const; + void tabletEvent(QWidget* theWrappedObject, QTabletEvent* arg__1); + bool testAttribute(QWidget* theWrappedObject, Qt::WidgetAttribute arg__1) const; + QString toolTip(QWidget* theWrappedObject) const; + bool underMouse(QWidget* theWrappedObject) const; + void ungrabGesture(QWidget* theWrappedObject, Qt::GestureType type); + void unsetCursor(QWidget* theWrappedObject); + void unsetLayoutDirection(QWidget* theWrappedObject); + void unsetLocale(QWidget* theWrappedObject); + void update(QWidget* theWrappedObject, const QRect& arg__1); + void update(QWidget* theWrappedObject, const QRegion& arg__1); + void update(QWidget* theWrappedObject, int x, int y, int w, int h); + void updateGeometry(QWidget* theWrappedObject); + bool updatesEnabled(QWidget* theWrappedObject) const; + QRegion visibleRegion(QWidget* theWrappedObject) const; + QString whatsThis(QWidget* theWrappedObject) const; + void wheelEvent(QWidget* theWrappedObject, QWheelEvent* arg__1); + int width(QWidget* theWrappedObject) const; + WId winId(QWidget* theWrappedObject) const; + QWidget* window(QWidget* theWrappedObject) const; + QString windowFilePath(QWidget* theWrappedObject) const; + Qt::WindowFlags windowFlags(QWidget* theWrappedObject) const; + QIcon windowIcon(QWidget* theWrappedObject) const; + QString windowIconText(QWidget* theWrappedObject) const; + Qt::WindowModality windowModality(QWidget* theWrappedObject) const; + qreal windowOpacity(QWidget* theWrappedObject) const; + QString windowRole(QWidget* theWrappedObject) const; + Qt::WindowStates windowState(QWidget* theWrappedObject) const; + QString windowTitle(QWidget* theWrappedObject) const; + Qt::WindowType windowType(QWidget* theWrappedObject) const; + int x(QWidget* theWrappedObject) const; + int y(QWidget* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QWidgetAction : public QWidgetAction +{ +public: + PythonQtShell_QWidgetAction(QObject* parent):QWidgetAction(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QWidgetAction(); + +virtual void childEvent(QChildEvent* arg__1); +virtual QWidget* createWidget(QWidget* parent); +virtual void customEvent(QEvent* arg__1); +virtual void deleteWidget(QWidget* widget); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QWidgetAction : public QWidgetAction +{ public: +inline QWidget* promoted_createWidget(QWidget* parent) { return QWidgetAction::createWidget(parent); } +inline void promoted_deleteWidget(QWidget* widget) { QWidgetAction::deleteWidget(widget); } +inline bool promoted_event(QEvent* arg__1) { return QWidgetAction::event(arg__1); } +inline bool promoted_eventFilter(QObject* arg__1, QEvent* arg__2) { return QWidgetAction::eventFilter(arg__1, arg__2); } +}; + +class PythonQtWrapper_QWidgetAction : public QObject +{ Q_OBJECT +public: +public slots: +QWidgetAction* new_QWidgetAction(QObject* parent); +void delete_QWidgetAction(QWidgetAction* obj) { delete obj; } + QWidget* createWidget(QWidgetAction* theWrappedObject, QWidget* parent); + QWidget* defaultWidget(QWidgetAction* theWrappedObject) const; + void deleteWidget(QWidgetAction* theWrappedObject, QWidget* widget); + bool event(QWidgetAction* theWrappedObject, QEvent* arg__1); + bool eventFilter(QWidgetAction* theWrappedObject, QObject* arg__1, QEvent* arg__2); + void releaseWidget(QWidgetAction* theWrappedObject, QWidget* widget); + QWidget* requestWidget(QWidgetAction* theWrappedObject, QWidget* parent); + void setDefaultWidget(QWidgetAction* theWrappedObject, QWidget* w); +}; + + + + + +class PythonQtShell_QWidgetItem : public QWidgetItem +{ +public: + PythonQtShell_QWidgetItem(QWidget* w):QWidgetItem(w),_wrapper(NULL) {}; + + ~PythonQtShell_QWidgetItem(); + +virtual QSizePolicy::ControlTypes controlTypes() const; +virtual Qt::Orientations expandingDirections() const; +virtual QRect geometry() const; +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void invalidate(); +virtual bool isEmpty() const; +virtual QLayout* layout(); +virtual QSize maximumSize() const; +virtual int minimumHeightForWidth(int arg__1) const; +virtual QSize minimumSize() const; +virtual void setGeometry(const QRect& arg__1); +virtual QSize sizeHint() const; +virtual QSpacerItem* spacerItem(); +virtual QWidget* widget(); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QWidgetItem : public QWidgetItem +{ public: +inline QSizePolicy::ControlTypes promoted_controlTypes() const { return QWidgetItem::controlTypes(); } +inline Qt::Orientations promoted_expandingDirections() const { return QWidgetItem::expandingDirections(); } +inline QRect promoted_geometry() const { return QWidgetItem::geometry(); } +inline bool promoted_hasHeightForWidth() const { return QWidgetItem::hasHeightForWidth(); } +inline int promoted_heightForWidth(int arg__1) const { return QWidgetItem::heightForWidth(arg__1); } +inline bool promoted_isEmpty() const { return QWidgetItem::isEmpty(); } +inline QSize promoted_maximumSize() const { return QWidgetItem::maximumSize(); } +inline QSize promoted_minimumSize() const { return QWidgetItem::minimumSize(); } +inline void promoted_setGeometry(const QRect& arg__1) { QWidgetItem::setGeometry(arg__1); } +inline QSize promoted_sizeHint() const { return QWidgetItem::sizeHint(); } +inline QWidget* promoted_widget() { return QWidgetItem::widget(); } +}; + +class PythonQtWrapper_QWidgetItem : public QObject +{ Q_OBJECT +public: +public slots: +QWidgetItem* new_QWidgetItem(QWidget* w); +void delete_QWidgetItem(QWidgetItem* obj) { delete obj; } + QSizePolicy::ControlTypes controlTypes(QWidgetItem* theWrappedObject) const; + Qt::Orientations expandingDirections(QWidgetItem* theWrappedObject) const; + QRect geometry(QWidgetItem* theWrappedObject) const; + bool hasHeightForWidth(QWidgetItem* theWrappedObject) const; + int heightForWidth(QWidgetItem* theWrappedObject, int arg__1) const; + bool isEmpty(QWidgetItem* theWrappedObject) const; + QSize maximumSize(QWidgetItem* theWrappedObject) const; + QSize minimumSize(QWidgetItem* theWrappedObject) const; + void setGeometry(QWidgetItem* theWrappedObject, const QRect& arg__1); + QSize sizeHint(QWidgetItem* theWrappedObject) const; + QWidget* widget(QWidgetItem* theWrappedObject); +}; + +#endif + + + +class PythonQtWrapper_QWindowStateChangeEvent : public QObject +{ Q_OBJECT +public: +public slots: +QWindowStateChangeEvent* new_QWindowStateChangeEvent(Qt::WindowStates aOldState, bool isOverride = false); +void delete_QWindowStateChangeEvent(QWindowStateChangeEvent* obj) { delete obj; } + bool isOverride(QWindowStateChangeEvent* theWrappedObject) const; + Qt::WindowStates oldState(QWindowStateChangeEvent* theWrappedObject) const; +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtShell_QWizard : public QWizard +{ +public: + PythonQtShell_QWizard(QWidget* parent = 0, Qt::WindowFlags flags = 0):QWizard(parent, flags),_wrapper(NULL) {}; + + ~PythonQtShell_QWizard(); + +virtual void accept(); +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void cleanupPage(int id); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void done(int result); +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* event); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual int exec(); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void initializePage(int id); +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual int nextId() const; +virtual void open(); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* event); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void reject(); +virtual void resizeEvent(QResizeEvent* event); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool validateCurrentPage(); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QWizard : public QWizard +{ public: +inline void promoted_cleanupPage(int id) { QWizard::cleanupPage(id); } +inline void promoted_done(int result) { QWizard::done(result); } +inline bool promoted_event(QEvent* event) { return QWizard::event(event); } +inline void promoted_initializePage(int id) { QWizard::initializePage(id); } +inline int promoted_nextId() const { return QWizard::nextId(); } +inline void promoted_paintEvent(QPaintEvent* event) { QWizard::paintEvent(event); } +inline void promoted_resizeEvent(QResizeEvent* event) { QWizard::resizeEvent(event); } +inline bool promoted_validateCurrentPage() { return QWizard::validateCurrentPage(); } +}; + +class PythonQtWrapper_QWizard : public QObject +{ Q_OBJECT +public: +Q_ENUMS(WizardButton WizardPixmap ) +enum WizardButton{ + BackButton = QWizard::BackButton, NextButton = QWizard::NextButton, CommitButton = QWizard::CommitButton, FinishButton = QWizard::FinishButton, CancelButton = QWizard::CancelButton, HelpButton = QWizard::HelpButton, CustomButton1 = QWizard::CustomButton1, CustomButton2 = QWizard::CustomButton2, CustomButton3 = QWizard::CustomButton3, Stretch = QWizard::Stretch, NoButton = QWizard::NoButton, NStandardButtons = QWizard::NStandardButtons, NButtons = QWizard::NButtons}; +enum WizardPixmap{ + WatermarkPixmap = QWizard::WatermarkPixmap, LogoPixmap = QWizard::LogoPixmap, BannerPixmap = QWizard::BannerPixmap, BackgroundPixmap = QWizard::BackgroundPixmap, NPixmaps = QWizard::NPixmaps}; +public slots: +QWizard* new_QWizard(QWidget* parent = 0, Qt::WindowFlags flags = 0); +void delete_QWizard(QWizard* obj) { delete obj; } + int addPage(QWizard* theWrappedObject, QWizardPage* page); + QAbstractButton* button(QWizard* theWrappedObject, QWizard::WizardButton which) const; + QString buttonText(QWizard* theWrappedObject, QWizard::WizardButton which) const; + void cleanupPage(QWizard* theWrappedObject, int id); + int currentId(QWizard* theWrappedObject) const; + QWizardPage* currentPage(QWizard* theWrappedObject) const; + void done(QWizard* theWrappedObject, int result); + bool event(QWizard* theWrappedObject, QEvent* event); + QVariant field(QWizard* theWrappedObject, const QString& name) const; + bool hasVisitedPage(QWizard* theWrappedObject, int id) const; + void initializePage(QWizard* theWrappedObject, int id); + int nextId(QWizard* theWrappedObject) const; + QWizard::WizardOptions options(QWizard* theWrappedObject) const; + QWizardPage* page(QWizard* theWrappedObject, int id) const; + QList pageIds(QWizard* theWrappedObject) const; + void paintEvent(QWizard* theWrappedObject, QPaintEvent* event); + QPixmap pixmap(QWizard* theWrappedObject, QWizard::WizardPixmap which) const; + void removePage(QWizard* theWrappedObject, int id); + void resizeEvent(QWizard* theWrappedObject, QResizeEvent* event); + void setButton(QWizard* theWrappedObject, QWizard::WizardButton which, QAbstractButton* button); + void setButtonLayout(QWizard* theWrappedObject, const QList& layout); + void setButtonText(QWizard* theWrappedObject, QWizard::WizardButton which, const QString& text); + void setField(QWizard* theWrappedObject, const QString& name, const QVariant& value); + void setOption(QWizard* theWrappedObject, QWizard::WizardOption option, bool on = true); + void setOptions(QWizard* theWrappedObject, QWizard::WizardOptions options); + void setPage(QWizard* theWrappedObject, int id, QWizardPage* page); + void setPixmap(QWizard* theWrappedObject, QWizard::WizardPixmap which, const QPixmap& pixmap); + void setSideWidget(QWizard* theWrappedObject, QWidget* widget); + void setStartId(QWizard* theWrappedObject, int id); + void setSubTitleFormat(QWizard* theWrappedObject, Qt::TextFormat format); + void setTitleFormat(QWizard* theWrappedObject, Qt::TextFormat format); + void setVisible(QWizard* theWrappedObject, bool visible); + void setWizardStyle(QWizard* theWrappedObject, QWizard::WizardStyle style); + QWidget* sideWidget(QWizard* theWrappedObject) const; + QSize sizeHint(QWizard* theWrappedObject) const; + int startId(QWizard* theWrappedObject) const; + Qt::TextFormat subTitleFormat(QWizard* theWrappedObject) const; + bool testOption(QWizard* theWrappedObject, QWizard::WizardOption option) const; + Qt::TextFormat titleFormat(QWizard* theWrappedObject) const; + bool validateCurrentPage(QWizard* theWrappedObject); + QList visitedPages(QWizard* theWrappedObject) const; + QWizard::WizardStyle wizardStyle(QWizard* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QWizardPage : public QWizardPage +{ +public: + PythonQtShell_QWizardPage(QWidget* parent = 0):QWizardPage(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QWizardPage(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void cleanupPage(); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void initializePage(); +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual bool isComplete() const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual int nextId() const; +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual QSize sizeHint() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool validatePage(); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QWizardPage : public QWizardPage +{ public: +inline void promoted_cleanupPage() { QWizardPage::cleanupPage(); } +inline void promoted_initializePage() { QWizardPage::initializePage(); } +inline bool promoted_isComplete() const { return QWizardPage::isComplete(); } +inline int promoted_nextId() const { return QWizardPage::nextId(); } +inline bool promoted_validatePage() { return QWizardPage::validatePage(); } +}; + +class PythonQtWrapper_QWizardPage : public QObject +{ Q_OBJECT +public: +public slots: +QWizardPage* new_QWizardPage(QWidget* parent = 0); +void delete_QWizardPage(QWizardPage* obj) { delete obj; } + QString buttonText(QWizardPage* theWrappedObject, QWizard::WizardButton which) const; + void cleanupPage(QWizardPage* theWrappedObject); + void initializePage(QWizardPage* theWrappedObject); + bool isCommitPage(QWizardPage* theWrappedObject) const; + bool isComplete(QWizardPage* theWrappedObject) const; + bool isFinalPage(QWizardPage* theWrappedObject) const; + int nextId(QWizardPage* theWrappedObject) const; + QPixmap pixmap(QWizardPage* theWrappedObject, QWizard::WizardPixmap which) const; + void setButtonText(QWizardPage* theWrappedObject, QWizard::WizardButton which, const QString& text); + void setCommitPage(QWizardPage* theWrappedObject, bool commitPage); + void setFinalPage(QWizardPage* theWrappedObject, bool finalPage); + void setPixmap(QWizardPage* theWrappedObject, QWizard::WizardPixmap which, const QPixmap& pixmap); + void setSubTitle(QWizardPage* theWrappedObject, const QString& subTitle); + void setTitle(QWizardPage* theWrappedObject, const QString& title); + QString subTitle(QWizardPage* theWrappedObject) const; + QString title(QWizardPage* theWrappedObject) const; + bool validatePage(QWizardPage* theWrappedObject); +}; + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui_init.cpp b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui_init.cpp new file mode 100644 index 00000000..08292b14 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui/com_trolltech_qt_gui_init.cpp @@ -0,0 +1,670 @@ +#include +#include "com_trolltech_qt_gui0.h" +#include "com_trolltech_qt_gui1.h" +#include "com_trolltech_qt_gui2.h" +#include "com_trolltech_qt_gui3.h" +#include "com_trolltech_qt_gui4.h" +#include "com_trolltech_qt_gui5.h" +#include "com_trolltech_qt_gui6.h" +#include "com_trolltech_qt_gui7.h" +#include "com_trolltech_qt_gui8.h" +#include "com_trolltech_qt_gui9.h" + +static void* polymorphichandler_QEvent(const void *ptr, const char **class_name) +{ + Q_ASSERT(ptr != 0); + QEvent *object = (QEvent *)ptr; + if (object->type() == QEvent::ActionAdded || object->type() == QEvent::ActionRemoved || object->type() == QEvent::ActionChanged) { + *class_name = "QActionEvent"; + return (QActionEvent*)object; + } + if (object->type() == QEvent::Close) { + *class_name = "QCloseEvent"; + return (QCloseEvent*)object; + } + if (object->type() == QEvent::ContextMenu) { + *class_name = "QContextMenuEvent"; + return (QContextMenuEvent*)object; + } + if (object->type() == QEvent::DragEnter) { + *class_name = "QDragEnterEvent"; + return (QDragEnterEvent*)object; + } + if (object->type() == QEvent::DragLeave) { + *class_name = "QDragLeaveEvent"; + return (QDragLeaveEvent*)object; + } + if (object->type() == QEvent::DragMove) { + *class_name = "QDragMoveEvent"; + return (QDragMoveEvent*)object; + } + if (object->type() == QEvent::Drop) { + *class_name = "QDropEvent"; + return (QDropEvent*)object; + } + if (object->type() == QEvent::FileOpen) { + *class_name = "QFileOpenEvent"; + return (QFileOpenEvent*)object; + } + if (object->type() == QEvent::FocusIn || object->type() == QEvent::FocusOut) { + *class_name = "QFocusEvent"; + return (QFocusEvent*)object; + } +#if defined(QT_WIDGETS_LIB) + if (object->type() == QEvent::GraphicsSceneContextMenu) { + *class_name = "QGraphicsSceneContextMenuEvent"; + return (QGraphicsSceneContextMenuEvent*)object; + } + if (object->type() == QEvent::GraphicsSceneDragEnter || object->type() == QEvent::GraphicsSceneDragLeave || object->type() == QEvent::GraphicsSceneDragMove || object->type() == QEvent::GraphicsSceneDrop) { + *class_name = "QGraphicsSceneDragDropEvent"; + return (QGraphicsSceneDragDropEvent*)object; + } + if (object->type() == QEvent::GraphicsSceneHelp) { + *class_name = "QGraphicsSceneHelpEvent"; + return (QGraphicsSceneHelpEvent*)object; + } + if (object->type() == QEvent::GraphicsSceneHoverEnter || object->type() == QEvent::GraphicsSceneHoverLeave || object->type() == QEvent::GraphicsSceneHoverMove) { + *class_name = "QGraphicsSceneHoverEvent"; + return (QGraphicsSceneHoverEvent*)object; + } + if (object->type() == QEvent::GraphicsSceneMouseDoubleClick || object->type() == QEvent::GraphicsSceneMouseMove || object->type() == QEvent::GraphicsSceneMousePress || object->type() == QEvent::GraphicsSceneMouseRelease) { + *class_name = "QGraphicsSceneMouseEvent"; + return (QGraphicsSceneMouseEvent*)object; + } + if (object->type() == QEvent::GraphicsSceneMove) { + *class_name = "QGraphicsSceneMoveEvent"; + return (QGraphicsSceneMoveEvent*)object; + } + if (object->type() == QEvent::GraphicsSceneResize) { + *class_name = "QGraphicsSceneResizeEvent"; + return (QGraphicsSceneResizeEvent*)object; + } + if (object->type() == QEvent::GraphicsSceneWheel) { + *class_name = "QGraphicsSceneWheelEvent"; + return (QGraphicsSceneWheelEvent*)object; + } +#endif + if (object->type() == QEvent::ToolTip || object->type() == QEvent::WhatsThis) { + *class_name = "QHelpEvent"; + return (QHelpEvent*)object; + } + if (object->type() == QEvent::Hide) { + *class_name = "QHideEvent"; + return (QHideEvent*)object; + } + if (object->type() == QEvent::HoverEnter || object->type() == QEvent::HoverLeave || object->type() == QEvent::HoverMove) { + *class_name = "QHoverEvent"; + return (QHoverEvent*)object; + } + if (object->type() == QEvent::IconDrag) { + *class_name = "QIconDragEvent"; + return (QIconDragEvent*)object; + } + if (object->type() == QEvent::KeyPress || object->type() == QEvent::KeyRelease) { + *class_name = "QKeyEvent"; + return (QKeyEvent*)object; + } + if (object->type() == QEvent::MouseButtonDblClick || object->type() == QEvent::MouseButtonPress || object->type() == QEvent::MouseButtonRelease || object->type() == QEvent::MouseMove) { + *class_name = "QMouseEvent"; + return (QMouseEvent*)object; + } + if (object->type() == QEvent::Move) { + *class_name = "QMoveEvent"; + return (QMoveEvent*)object; + } + if (object->type() == QEvent::Paint) { + *class_name = "QPaintEvent"; + return (QPaintEvent*)object; + } + if (object->type() == QEvent::Resize) { + *class_name = "QResizeEvent"; + return (QResizeEvent*)object; + } + if (object->type() == QEvent::Shortcut) { + *class_name = "QShortcutEvent"; + return (QShortcutEvent*)object; + } + if (object->type() == QEvent::Show) { + *class_name = "QShowEvent"; + return (QShowEvent*)object; + } + if (object->type() == QEvent::StatusTip) { + *class_name = "QStatusTipEvent"; + return (QStatusTipEvent*)object; + } + if (object->type() == QEvent::TabletMove || object->type() == QEvent::TabletPress || object->type() == QEvent::TabletRelease) { + *class_name = "QTabletEvent"; + return (QTabletEvent*)object; + } + if (object->type() == QEvent::ToolBarChange) { + *class_name = "QToolBarChangeEvent"; + return (QToolBarChangeEvent*)object; + } + if (object->type() == QEvent::TouchBegin || object->type() == QEvent::TouchUpdate || object->type() == QEvent::TouchEnd) { + *class_name = "QTouchEvent"; + return (QTouchEvent*)object; + } + if (object->type() == QEvent::WhatsThisClicked) { + *class_name = "QWhatsThisClickedEvent"; + return (QWhatsThisClickedEvent*)object; + } + if (object->type() == QEvent::Wheel) { + *class_name = "QWheelEvent"; + return (QWheelEvent*)object; + } + if (object->type() == QEvent::WindowStateChange) { + *class_name = "QWindowStateChangeEvent"; + return (QWindowStateChangeEvent*)object; + } + return NULL; +} +static void* polymorphichandler_QGradient(const void *ptr, const char **class_name) +{ + Q_ASSERT(ptr != 0); + QGradient *object = (QGradient *)ptr; + if (object->type() == QGradient::ConicalGradient) { + *class_name = "QConicalGradient"; + return (QConicalGradient*)object; + } + if (object->type() == QGradient::NoGradient) { + *class_name = "QGradient"; + return (QGradient*)object; + } + if (object->type() == QGradient::LinearGradient) { + *class_name = "QLinearGradient"; + return (QLinearGradient*)object; + } + if (object->type() == QGradient::RadialGradient) { + *class_name = "QRadialGradient"; + return (QRadialGradient*)object; + } + return NULL; +} +static void* polymorphichandler_QStyleOption(const void *ptr, const char **class_name) +{ + Q_ASSERT(ptr != 0); +#if defined(QT_WIDGETS_LIB) + QStyleOption *object = (QStyleOption *)ptr; + if (object->type == QStyleOption::SO_Default) { + *class_name = "QStyleOption"; + return (QStyleOption*)object; + } + if (object->type == QStyleOptionButton::Type && object->version == QStyleOptionButton::Version) { + *class_name = "QStyleOptionButton"; + return (QStyleOptionButton*)object; + } + if (object->type == QStyleOptionComboBox::Type && object->version == QStyleOptionComboBox::Version) { + *class_name = "QStyleOptionComboBox"; + return (QStyleOptionComboBox*)object; + } + if (object->type == QStyleOptionDockWidget::Type && object->version == QStyleOptionDockWidget::Version) { + *class_name = "QStyleOptionDockWidget"; + return (QStyleOptionDockWidget*)object; + } + if (object->type == QStyleOptionFocusRect::Type && object->version == QStyleOptionFocusRect::Version) { + *class_name = "QStyleOptionFocusRect"; + return (QStyleOptionFocusRect*)object; + } + if (object->type == QStyleOptionFrame::Type && object->version == QStyleOptionFrame::Version) { + *class_name = "QStyleOptionFrame"; + return (QStyleOptionFrame*)object; + } + if (object->type == QStyleOptionGraphicsItem::Type && object->version == QStyleOptionGraphicsItem::Version) { + *class_name = "QStyleOptionGraphicsItem"; + return (QStyleOptionGraphicsItem*)object; + } + if (object->type == QStyleOptionGroupBox::Type && object->version == QStyleOptionGroupBox::Version) { + *class_name = "QStyleOptionGroupBox"; + return (QStyleOptionGroupBox*)object; + } + if (object->type == QStyleOptionHeader::Type && object->version == QStyleOptionHeader::Version) { + *class_name = "QStyleOptionHeader"; + return (QStyleOptionHeader*)object; + } + if (object->type == QStyleOptionMenuItem::Type && object->version == QStyleOptionMenuItem::Version) { + *class_name = "QStyleOptionMenuItem"; + return (QStyleOptionMenuItem*)object; + } + if (object->type == QStyleOptionProgressBar::Type && object->version == QStyleOptionProgressBar::Version) { + *class_name = "QStyleOptionProgressBar"; + return (QStyleOptionProgressBar*)object; + } + if (object->type == QStyleOptionRubberBand::Type && object->version == QStyleOptionRubberBand::Version) { + *class_name = "QStyleOptionRubberBand"; + return (QStyleOptionRubberBand*)object; + } + if (object->type == QStyleOptionSizeGrip::Type && object->version == QStyleOptionSizeGrip::Version) { + *class_name = "QStyleOptionSizeGrip"; + return (QStyleOptionSizeGrip*)object; + } + if (object->type == QStyleOptionSlider::Type && object->version == QStyleOptionSlider::Version) { + *class_name = "QStyleOptionSlider"; + return (QStyleOptionSlider*)object; + } + if (object->type == QStyleOptionSpinBox::Type && object->version == QStyleOptionSpinBox::Version) { + *class_name = "QStyleOptionSpinBox"; + return (QStyleOptionSpinBox*)object; + } + if (object->type == QStyleOptionTab::Type && object->version == QStyleOptionTab::Version) { + *class_name = "QStyleOptionTab"; + return (QStyleOptionTab*)object; + } + if (object->type == QStyleOptionTabBarBase::Type && object->version == QStyleOptionTabBarBase::Version) { + *class_name = "QStyleOptionTabBarBase"; + return (QStyleOptionTabBarBase*)object; + } + if (object->type == QStyleOptionTabWidgetFrame::Type && object->version == QStyleOptionTabWidgetFrame::Version) { + *class_name = "QStyleOptionTabWidgetFrame"; + return (QStyleOptionTabWidgetFrame*)object; + } + if (object->type == QStyleOptionTitleBar::Type && object->version == QStyleOptionTitleBar::Version) { + *class_name = "QStyleOptionTitleBar"; + return (QStyleOptionTitleBar*)object; + } + if (object->type == QStyleOptionToolBar::Type && object->version == QStyleOptionToolBar::Version) { + *class_name = "QStyleOptionToolBar"; + return (QStyleOptionToolBar*)object; + } + if (object->type == QStyleOptionToolBox::Type && object->version == QStyleOptionToolBox::Version) { + *class_name = "QStyleOptionToolBox"; + return (QStyleOptionToolBox*)object; + } + if (object->type == QStyleOptionToolButton::Type && object->version == QStyleOptionToolButton::Version) { + *class_name = "QStyleOptionToolButton"; + return (QStyleOptionToolButton*)object; + } + if (object->type == QStyleOptionViewItem::Type && object->version == QStyleOptionViewItem::Version) { + *class_name = "QStyleOptionViewItem"; + return (QStyleOptionViewItem*)object; + } +#else + Q_UNUSED(class_name); +#endif + return NULL; +} + +void PythonQt_init_QtGui(PyObject* module) { +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QAbstractButton::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QAbstractGraphicsShapeItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::self()->addParentClass("QAbstractGraphicsShapeItem", "QGraphicsItem",PythonQtUpcastingOffset()); +PythonQt::priv()->registerClass(&QAbstractItemDelegate::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QAbstractItemView::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +#if defined(QT_PRINTSUPPORT_LIB) +PythonQt::priv()->registerClass(&QAbstractPrintDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QAbstractScrollArea::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QAbstractSlider::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QAbstractSpinBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QAction::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QActionEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QActionGroup::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QApplication::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QBoxLayout::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QButtonGroup::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QCalendarWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QCheckBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerClass(&QClipboard::staticMetaObject, "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QCloseEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QColorDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QColumnView::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QComboBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QCommandLinkButton::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QCommonStyle::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QCompleter::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QConicalGradient", "QGradient", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QContextMenuEvent", "QInputEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QDataWidgetMapper::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QDateEdit::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QDateTimeEdit::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QDesktopServices", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QDesktopWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QDial::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QDialogButtonBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QDockWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QDoubleSpinBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerClass(&QDoubleValidator::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QDrag::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QDragEnterEvent", "QDragMoveEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QDragLeaveEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QDragMoveEvent", "QDropEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QDropEvent", "QEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QErrorMessage::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QFileDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QFileIconProvider", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QFileOpenEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QFocusEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QFocusFrame::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QFontComboBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QFontDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QFontInfo", "", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QFontMetrics", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QFontMetricsF", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QFormLayout::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QFrame::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGesture::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QGradient", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QGraphicsAnchor::staticMetaObject, "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsAnchorLayout", "QGraphicsLayout", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGraphicsBlurEffect::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGraphicsColorizeEffect::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGraphicsDropShadowEffect::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGraphicsEffect::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsEllipseItem", "QAbstractGraphicsShapeItem", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsGridLayout", "QGraphicsLayout", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGraphicsItemAnimation::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsItemGroup", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::self()->addParentClass("QGraphicsItemGroup", "QGraphicsItem",PythonQtUpcastingOffset()); +PythonQt::priv()->registerCPPClass("QGraphicsLayout", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::self()->addParentClass("QGraphicsLayout", "QGraphicsLayoutItem",PythonQtUpcastingOffset()); +PythonQt::priv()->registerCPPClass("QGraphicsLayoutItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsLineItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::self()->addParentClass("QGraphicsLineItem", "QGraphicsItem",PythonQtUpcastingOffset()); +PythonQt::priv()->registerCPPClass("QGraphicsLinearLayout", "QGraphicsLayout", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGraphicsObject::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::self()->addParentClass("QGraphicsObject", "QGraphicsItem",PythonQtUpcastingOffset()); +PythonQt::priv()->registerClass(&QGraphicsOpacityEffect::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsPathItem", "QAbstractGraphicsShapeItem", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsPixmapItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::self()->addParentClass("QGraphicsPixmapItem", "QGraphicsItem",PythonQtUpcastingOffset()); +PythonQt::priv()->registerCPPClass("QGraphicsPolygonItem", "QAbstractGraphicsShapeItem", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGraphicsProxyWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsRectItem", "QAbstractGraphicsShapeItem", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGraphicsRotation::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGraphicsScale::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGraphicsScene::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsSceneContextMenuEvent", "QGraphicsSceneEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsSceneDragDropEvent", "QGraphicsSceneEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsSceneEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsSceneHelpEvent", "QGraphicsSceneEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsSceneHoverEvent", "QGraphicsSceneEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsSceneMouseEvent", "QGraphicsSceneEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsSceneMoveEvent", "QGraphicsSceneEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsSceneResizeEvent", "QGraphicsSceneEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsSceneWheelEvent", "QGraphicsSceneEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QGraphicsSimpleTextItem", "QAbstractGraphicsShapeItem", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGraphicsTextItem::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGraphicsTransform::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGraphicsView::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGraphicsWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::self()->addParentClass("QGraphicsWidget", "QGraphicsLayoutItem",PythonQtUpcastingOffset()); +PythonQt::priv()->registerClass(&QGridLayout::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGroupBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerClass(&QGuiApplication::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QHBoxLayout::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QHeaderView::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QHelpEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QHideEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QHoverEvent", "QInputEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QIconDragEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QImageIOHandler", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QImageIOPlugin::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QImageReader", "", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QImageWriter", "", "QtGui", PythonQtCreateObject, NULL, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QInputDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QInputEvent", "QEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QIntValidator::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QItemDelegate::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QItemEditorCreatorBase", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QItemEditorFactory", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QItemSelection", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Add|PythonQt::Type_RichCompare|PythonQt::Type_InplaceAdd); +PythonQt::priv()->registerClass(&QItemSelectionModel::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QItemSelectionRange", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +#endif +PythonQt::priv()->registerCPPClass("QKeyEvent", "QInputEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QKeyEventTransition::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QLCDNumber::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QLabel::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QLayout::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::self()->addParentClass("QLayout", "QLayoutItem",PythonQtUpcastingOffset()); +PythonQt::priv()->registerCPPClass("QLayoutItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QLineEdit::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QLinearGradient", "QGradient", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QListView::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QListWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QListWidgetItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerClass(&QMainWindow::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QMatrix3x3", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QMatrix4x4", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Subtract|PythonQt::Type_Divide|PythonQt::Type_Add|PythonQt::Type_Multiply|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_InplaceDivide|PythonQt::Type_RichCompare|PythonQt::Type_InplaceAdd); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QMdiArea::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QMdiSubWindow::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QMenu::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QMenuBar::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QMessageBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QMouseEvent", "QInputEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QMouseEventTransition::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QMoveEvent", "QEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QMovie::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#if defined(QT_PRINTSUPPORT_LIB) +PythonQt::priv()->registerClass(&QPageSetupDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QPaintDevice", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QPaintEngine", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QPaintEngineState", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QPaintEvent", "QEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QPainter", "", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QPainterPath", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_InplaceAnd|PythonQt::Type_Subtract|PythonQt::Type_InplaceOr|PythonQt::Type_Add|PythonQt::Type_Multiply|PythonQt::Type_InplaceSubtract|PythonQt::Type_And|PythonQt::Type_Or|PythonQt::Type_RichCompare|PythonQt::Type_InplaceAdd); +PythonQt::priv()->registerCPPClass("QPainterPathStroker", "", "QtGui", PythonQtCreateObject, NULL, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QPanGesture::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QPicture", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_NonZero); +PythonQt::self()->addParentClass("QPicture", "QPaintDevice",PythonQtUpcastingOffset()); +PythonQt::priv()->registerClass(&QPictureFormatPlugin::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QPictureIO", "", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QPixmapCache", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QPixmapCache::Key", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QPlainTextDocumentLayout::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QPlainTextEdit::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QPolygonF", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Add|PythonQt::Type_Multiply|PythonQt::Type_RichCompare); +#if defined(QT_PRINTSUPPORT_LIB) +PythonQt::priv()->registerClass(&QPrintDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QPrintEngine", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QPrintPreviewDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QPrintPreviewWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QPrinter", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QProgressBar::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QProgressDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QPushButton::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QQuaternion", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Subtract|PythonQt::Type_Divide|PythonQt::Type_Add|PythonQt::Type_Multiply|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_InplaceDivide|PythonQt::Type_RichCompare|PythonQt::Type_InplaceAdd|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QRadialGradient", "QGradient", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QRadioButton::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerClass(&QRegExpValidator::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QResizeEvent", "QEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QRubberBand::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QScrollArea::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QScrollBar::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerClass(&QSessionManager::staticMetaObject, "QtGui", PythonQtCreateObject, NULL, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QShortcut::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QShortcutEvent", "QEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QShowEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QSizeGrip::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QSlider::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QSpacerItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::self()->addParentClass("QSpacerItem", "QLayoutItem",PythonQtUpcastingOffset()); +PythonQt::priv()->registerClass(&QSpinBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QSplashScreen::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QSplitter::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QSplitterHandle::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QStackedLayout::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QStackedWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QStandardItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerClass(&QStandardItemModel::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QStatusBar::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QStatusTipEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerClass(&QStringListModel::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QStyle::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleFactory", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleHintReturn", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleHintReturnMask", "QStyleHintReturn", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleHintReturnVariant", "QStyleHintReturn", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOption", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionButton", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionComboBox", "QStyleOptionComplex", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionDockWidget", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionFocusRect", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionFrame", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionGraphicsItem", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionGroupBox", "QStyleOptionComplex", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionHeader", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionMenuItem", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionProgressBar", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionRubberBand", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionSizeGrip", "QStyleOptionComplex", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionSlider", "QStyleOptionComplex", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionSpinBox", "QStyleOptionComplex", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionTab", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionTabBarBase", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionTabWidgetFrame", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionTitleBar", "QStyleOptionComplex", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionToolBar", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionToolBox", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionToolButton", "QStyleOptionComplex", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStyleOptionViewItem", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QStylePainter", "QPainter", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerClass(&QStylePlugin::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QStyledItemDelegate::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QSwipeGesture::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerClass(&QSyntaxHighlighter::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QSystemTrayIcon::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QTabBar::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QTabWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QTableView::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QTableWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QTableWidgetItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QTableWidgetSelectionRange", "", "QtGui", PythonQtCreateObject, NULL, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QTabletEvent", "QInputEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QTextBlock", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QTextBlockFormat", "QTextFormat", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerClass(&QTextBlockGroup::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QTextBlockUserData", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QTextBrowser::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QTextCharFormat", "QTextFormat", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QTextCursor", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerClass(&QTextDocument::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QTextDocumentFragment", "", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QTextDocumentWriter", "", "QtGui", PythonQtCreateObject, NULL, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QTextEdit::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QTextEdit::ExtraSelection", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QTextFragment", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerClass(&QTextFrame::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QTextFrameFormat", "QTextFormat", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QTextImageFormat", "QTextCharFormat", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QTextInlineObject", "", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QTextItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QTextLine", "", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerClass(&QTextList::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QTextListFormat", "QTextFormat", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerClass(&QTextObject::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QTextTable::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QTextTableCell", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QTextTableCellFormat", "QTextCharFormat", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QTextTableFormat", "QTextFrameFormat", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerCPPClass("QTileRules", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QTimeEdit::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QToolBar::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QToolBarChangeEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerClass(&QToolBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QToolButton::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QToolTip", "", "QtGui", PythonQtCreateObject, NULL, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QTouchEvent", "QInputEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QTouchEvent::TouchPoint", "", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QTransform", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Subtract|PythonQt::Type_Divide|PythonQt::Type_Add|PythonQt::Type_Multiply|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_InplaceDivide|PythonQt::Type_RichCompare|PythonQt::Type_InplaceAdd); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QTreeView::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QTreeWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QTreeWidgetItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QUndoCommand", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QUndoGroup::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QUndoStack::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QUndoView::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QVBoxLayout::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerClass(&QValidator::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QVector2D", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Subtract|PythonQt::Type_Divide|PythonQt::Type_Add|PythonQt::Type_Multiply|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_InplaceDivide|PythonQt::Type_RichCompare|PythonQt::Type_InplaceAdd|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QVector3D", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Subtract|PythonQt::Type_Divide|PythonQt::Type_Add|PythonQt::Type_Multiply|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_InplaceDivide|PythonQt::Type_RichCompare|PythonQt::Type_InplaceAdd|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QVector4D", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Subtract|PythonQt::Type_Divide|PythonQt::Type_Add|PythonQt::Type_Multiply|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_InplaceDivide|PythonQt::Type_RichCompare|PythonQt::Type_InplaceAdd|PythonQt::Type_NonZero); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerCPPClass("QWhatsThis", "", "QtGui", PythonQtCreateObject, NULL, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QWhatsThisClickedEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QWheelEvent", "QInputEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::self()->addParentClass("QWidget", "QPaintDevice",PythonQtUpcastingOffset()); +PythonQt::priv()->registerClass(&QWidgetAction::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QWidgetItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::self()->addParentClass("QWidgetItem", "QLayoutItem",PythonQtUpcastingOffset()); +#endif +PythonQt::priv()->registerCPPClass("QWindowStateChangeEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerClass(&QWizard::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QWizardPage::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::self()->addPolymorphicHandler("QEvent", polymorphichandler_QEvent); +PythonQt::self()->addPolymorphicHandler("QGradient", polymorphichandler_QGradient); +#if defined(QT_WIDGETS_LIB) +PythonQt::self()->addPolymorphicHandler("QStyleOption", polymorphichandler_QStyleOption); +#endif +} diff --git a/generated_cpp_50/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin.pri b/generated_cpp_50/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin.pri new file mode 100644 index 00000000..4aa1ce87 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin.pri @@ -0,0 +1,6 @@ +HEADERS += \ + $$PWD/com_trolltech_qt_gui_builtin0.h \ + +SOURCES += \ + $$PWD/com_trolltech_qt_gui_builtin0.cpp \ + $$PWD/com_trolltech_qt_gui_builtin_init.cpp diff --git a/generated_cpp_50/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp b/generated_cpp_50/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp new file mode 100644 index 00000000..f7c886ff --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp @@ -0,0 +1,4092 @@ +#include "com_trolltech_qt_gui_builtin0.h" +#include +#include +#include + +PythonQtShell_QBitmap::~PythonQtShell_QBitmap() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +int PythonQtShell_QBitmap::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBitmap::devType(); +} +int PythonQtShell_QBitmap::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBitmap::metric(arg__1); +} +QPaintEngine* PythonQtShell_QBitmap::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QBitmap::paintEngine(); +} +QBitmap* PythonQtWrapper_QBitmap::new_QBitmap() +{ +return new PythonQtShell_QBitmap(); } + +QBitmap* PythonQtWrapper_QBitmap::new_QBitmap(const QPixmap& arg__1) +{ +return new PythonQtShell_QBitmap(arg__1); } + +QBitmap* PythonQtWrapper_QBitmap::new_QBitmap(const QSize& arg__1) +{ +return new PythonQtShell_QBitmap(arg__1); } + +QBitmap* PythonQtWrapper_QBitmap::new_QBitmap(const QString& fileName, const char* format) +{ +return new PythonQtShell_QBitmap(fileName, format); } + +QBitmap* PythonQtWrapper_QBitmap::new_QBitmap(int w, int h) +{ +return new PythonQtShell_QBitmap(w, h); } + +void PythonQtWrapper_QBitmap::clear(QBitmap* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +QBitmap PythonQtWrapper_QBitmap::static_QBitmap_fromImage(const QImage& image, Qt::ImageConversionFlags flags) +{ + return (QBitmap::fromImage(image, flags)); +} + +void PythonQtWrapper_QBitmap::swap(QBitmap* theWrappedObject, QBitmap& other) +{ + ( theWrappedObject->swap(other)); +} + +QBitmap PythonQtWrapper_QBitmap::transformed(QBitmap* theWrappedObject, const QMatrix& arg__1) const +{ + return ( theWrappedObject->transformed(arg__1)); +} + +QBitmap PythonQtWrapper_QBitmap::transformed(QBitmap* theWrappedObject, const QTransform& matrix) const +{ + return ( theWrappedObject->transformed(matrix)); +} + + + +QBrush* PythonQtWrapper_QBrush::new_QBrush() +{ +return new QBrush(); } + +QBrush* PythonQtWrapper_QBrush::new_QBrush(Qt::BrushStyle bs) +{ +return new QBrush(bs); } + +QBrush* PythonQtWrapper_QBrush::new_QBrush(Qt::GlobalColor color, const QPixmap& pixmap) +{ +return new QBrush(color, pixmap); } + +QBrush* PythonQtWrapper_QBrush::new_QBrush(const QBrush& brush) +{ +return new QBrush(brush); } + +QBrush* PythonQtWrapper_QBrush::new_QBrush(const QColor& color, Qt::BrushStyle bs) +{ +return new QBrush(color, bs); } + +QBrush* PythonQtWrapper_QBrush::new_QBrush(const QColor& color, const QPixmap& pixmap) +{ +return new QBrush(color, pixmap); } + +QBrush* PythonQtWrapper_QBrush::new_QBrush(const QGradient& gradient) +{ +return new QBrush(gradient); } + +QBrush* PythonQtWrapper_QBrush::new_QBrush(const QImage& image) +{ +return new QBrush(image); } + +QBrush* PythonQtWrapper_QBrush::new_QBrush(const QPixmap& pixmap) +{ +return new QBrush(pixmap); } + +const QColor* PythonQtWrapper_QBrush::color(QBrush* theWrappedObject) const +{ + return &( theWrappedObject->color()); +} + +const QGradient* PythonQtWrapper_QBrush::gradient(QBrush* theWrappedObject) const +{ + return ( theWrappedObject->gradient()); +} + +bool PythonQtWrapper_QBrush::isOpaque(QBrush* theWrappedObject) const +{ + return ( theWrappedObject->isOpaque()); +} + +const QMatrix* PythonQtWrapper_QBrush::matrix(QBrush* theWrappedObject) const +{ + return &( theWrappedObject->matrix()); +} + +bool PythonQtWrapper_QBrush::__ne__(QBrush* theWrappedObject, const QBrush& b) const +{ + return ( (*theWrappedObject)!= b); +} + +bool PythonQtWrapper_QBrush::__eq__(QBrush* theWrappedObject, const QBrush& b) const +{ + return ( (*theWrappedObject)== b); +} + +void PythonQtWrapper_QBrush::setColor(QBrush* theWrappedObject, Qt::GlobalColor color) +{ + ( theWrappedObject->setColor(color)); +} + +void PythonQtWrapper_QBrush::setColor(QBrush* theWrappedObject, const QColor& color) +{ + ( theWrappedObject->setColor(color)); +} + +void PythonQtWrapper_QBrush::setMatrix(QBrush* theWrappedObject, const QMatrix& mat) +{ + ( theWrappedObject->setMatrix(mat)); +} + +void PythonQtWrapper_QBrush::setStyle(QBrush* theWrappedObject, Qt::BrushStyle arg__1) +{ + ( theWrappedObject->setStyle(arg__1)); +} + +void PythonQtWrapper_QBrush::setTexture(QBrush* theWrappedObject, const QPixmap& pixmap) +{ + ( theWrappedObject->setTexture(pixmap)); +} + +void PythonQtWrapper_QBrush::setTextureImage(QBrush* theWrappedObject, const QImage& image) +{ + ( theWrappedObject->setTextureImage(image)); +} + +void PythonQtWrapper_QBrush::setTransform(QBrush* theWrappedObject, const QTransform& arg__1) +{ + ( theWrappedObject->setTransform(arg__1)); +} + +Qt::BrushStyle PythonQtWrapper_QBrush::style(QBrush* theWrappedObject) const +{ + return ( theWrappedObject->style()); +} + +void PythonQtWrapper_QBrush::swap(QBrush* theWrappedObject, QBrush& other) +{ + ( theWrappedObject->swap(other)); +} + +QPixmap PythonQtWrapper_QBrush::texture(QBrush* theWrappedObject) const +{ + return ( theWrappedObject->texture()); +} + +QImage PythonQtWrapper_QBrush::textureImage(QBrush* theWrappedObject) const +{ + return ( theWrappedObject->textureImage()); +} + +QTransform PythonQtWrapper_QBrush::transform(QBrush* theWrappedObject) const +{ + return ( theWrappedObject->transform()); +} + +QString PythonQtWrapper_QBrush::py_toString(QBrush* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QColor* PythonQtWrapper_QColor::new_QColor() +{ +return new QColor(); } + +QColor* PythonQtWrapper_QColor::new_QColor(Qt::GlobalColor color) +{ +return new QColor(color); } + +QColor* PythonQtWrapper_QColor::new_QColor(const QColor& color) +{ +return new QColor(color); } + +QColor* PythonQtWrapper_QColor::new_QColor(const QString& name) +{ +return new QColor(name); } + +QColor* PythonQtWrapper_QColor::new_QColor(int r, int g, int b, int a) +{ +return new QColor(r, g, b, a); } + +QColor* PythonQtWrapper_QColor::new_QColor(unsigned int rgb) +{ +return new QColor(rgb); } + +int PythonQtWrapper_QColor::alpha(QColor* theWrappedObject) const +{ + return ( theWrappedObject->alpha()); +} + +qreal PythonQtWrapper_QColor::alphaF(QColor* theWrappedObject) const +{ + return ( theWrappedObject->alphaF()); +} + +int PythonQtWrapper_QColor::black(QColor* theWrappedObject) const +{ + return ( theWrappedObject->black()); +} + +qreal PythonQtWrapper_QColor::blackF(QColor* theWrappedObject) const +{ + return ( theWrappedObject->blackF()); +} + +int PythonQtWrapper_QColor::blue(QColor* theWrappedObject) const +{ + return ( theWrappedObject->blue()); +} + +qreal PythonQtWrapper_QColor::blueF(QColor* theWrappedObject) const +{ + return ( theWrappedObject->blueF()); +} + +QStringList PythonQtWrapper_QColor::static_QColor_colorNames() +{ + return (QColor::colorNames()); +} + +QColor PythonQtWrapper_QColor::convertTo(QColor* theWrappedObject, QColor::Spec colorSpec) const +{ + return ( theWrappedObject->convertTo(colorSpec)); +} + +int PythonQtWrapper_QColor::cyan(QColor* theWrappedObject) const +{ + return ( theWrappedObject->cyan()); +} + +qreal PythonQtWrapper_QColor::cyanF(QColor* theWrappedObject) const +{ + return ( theWrappedObject->cyanF()); +} + +QColor PythonQtWrapper_QColor::darker(QColor* theWrappedObject, int f) const +{ + return ( theWrappedObject->darker(f)); +} + +QColor PythonQtWrapper_QColor::static_QColor_fromCmyk(int c, int m, int y, int k, int a) +{ + return (QColor::fromCmyk(c, m, y, k, a)); +} + +QColor PythonQtWrapper_QColor::static_QColor_fromCmykF(qreal c, qreal m, qreal y, qreal k, qreal a) +{ + return (QColor::fromCmykF(c, m, y, k, a)); +} + +QColor PythonQtWrapper_QColor::static_QColor_fromHsl(int h, int s, int l, int a) +{ + return (QColor::fromHsl(h, s, l, a)); +} + +QColor PythonQtWrapper_QColor::static_QColor_fromHslF(qreal h, qreal s, qreal l, qreal a) +{ + return (QColor::fromHslF(h, s, l, a)); +} + +QColor PythonQtWrapper_QColor::static_QColor_fromHsv(int h, int s, int v, int a) +{ + return (QColor::fromHsv(h, s, v, a)); +} + +QColor PythonQtWrapper_QColor::static_QColor_fromHsvF(qreal h, qreal s, qreal v, qreal a) +{ + return (QColor::fromHsvF(h, s, v, a)); +} + +QColor PythonQtWrapper_QColor::static_QColor_fromRgb(int r, int g, int b, int a) +{ + return (QColor::fromRgb(r, g, b, a)); +} + +QColor PythonQtWrapper_QColor::static_QColor_fromRgb(unsigned int rgb) +{ + return (QColor::fromRgb(rgb)); +} + +QColor PythonQtWrapper_QColor::static_QColor_fromRgbF(qreal r, qreal g, qreal b, qreal a) +{ + return (QColor::fromRgbF(r, g, b, a)); +} + +QColor PythonQtWrapper_QColor::static_QColor_fromRgba(unsigned int rgba) +{ + return (QColor::fromRgba(rgba)); +} + +void PythonQtWrapper_QColor::getHsl(QColor* theWrappedObject, int* h, int* s, int* l, int* a) const +{ + ( theWrappedObject->getHsl(h, s, l, a)); +} + +void PythonQtWrapper_QColor::getHslF(QColor* theWrappedObject, qreal* h, qreal* s, qreal* l, qreal* a) const +{ + ( theWrappedObject->getHslF(h, s, l, a)); +} + +int PythonQtWrapper_QColor::green(QColor* theWrappedObject) const +{ + return ( theWrappedObject->green()); +} + +qreal PythonQtWrapper_QColor::greenF(QColor* theWrappedObject) const +{ + return ( theWrappedObject->greenF()); +} + +int PythonQtWrapper_QColor::hslHue(QColor* theWrappedObject) const +{ + return ( theWrappedObject->hslHue()); +} + +qreal PythonQtWrapper_QColor::hslHueF(QColor* theWrappedObject) const +{ + return ( theWrappedObject->hslHueF()); +} + +int PythonQtWrapper_QColor::hslSaturation(QColor* theWrappedObject) const +{ + return ( theWrappedObject->hslSaturation()); +} + +qreal PythonQtWrapper_QColor::hslSaturationF(QColor* theWrappedObject) const +{ + return ( theWrappedObject->hslSaturationF()); +} + +int PythonQtWrapper_QColor::hsvHue(QColor* theWrappedObject) const +{ + return ( theWrappedObject->hsvHue()); +} + +qreal PythonQtWrapper_QColor::hsvHueF(QColor* theWrappedObject) const +{ + return ( theWrappedObject->hsvHueF()); +} + +int PythonQtWrapper_QColor::hsvSaturation(QColor* theWrappedObject) const +{ + return ( theWrappedObject->hsvSaturation()); +} + +qreal PythonQtWrapper_QColor::hsvSaturationF(QColor* theWrappedObject) const +{ + return ( theWrappedObject->hsvSaturationF()); +} + +int PythonQtWrapper_QColor::hue(QColor* theWrappedObject) const +{ + return ( theWrappedObject->hue()); +} + +qreal PythonQtWrapper_QColor::hueF(QColor* theWrappedObject) const +{ + return ( theWrappedObject->hueF()); +} + +bool PythonQtWrapper_QColor::isValid(QColor* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +bool PythonQtWrapper_QColor::static_QColor_isValidColor(const QString& name) +{ + return (QColor::isValidColor(name)); +} + +QColor PythonQtWrapper_QColor::lighter(QColor* theWrappedObject, int f) const +{ + return ( theWrappedObject->lighter(f)); +} + +int PythonQtWrapper_QColor::lightness(QColor* theWrappedObject) const +{ + return ( theWrappedObject->lightness()); +} + +qreal PythonQtWrapper_QColor::lightnessF(QColor* theWrappedObject) const +{ + return ( theWrappedObject->lightnessF()); +} + +int PythonQtWrapper_QColor::magenta(QColor* theWrappedObject) const +{ + return ( theWrappedObject->magenta()); +} + +qreal PythonQtWrapper_QColor::magentaF(QColor* theWrappedObject) const +{ + return ( theWrappedObject->magentaF()); +} + +QString PythonQtWrapper_QColor::name(QColor* theWrappedObject) const +{ + return ( theWrappedObject->name()); +} + +bool PythonQtWrapper_QColor::__ne__(QColor* theWrappedObject, const QColor& c) const +{ + return ( (*theWrappedObject)!= c); +} + +bool PythonQtWrapper_QColor::__eq__(QColor* theWrappedObject, const QColor& c) const +{ + return ( (*theWrappedObject)== c); +} + +int PythonQtWrapper_QColor::red(QColor* theWrappedObject) const +{ + return ( theWrappedObject->red()); +} + +qreal PythonQtWrapper_QColor::redF(QColor* theWrappedObject) const +{ + return ( theWrappedObject->redF()); +} + +unsigned int PythonQtWrapper_QColor::rgb(QColor* theWrappedObject) const +{ + return ( theWrappedObject->rgb()); +} + +unsigned int PythonQtWrapper_QColor::rgba(QColor* theWrappedObject) const +{ + return ( theWrappedObject->rgba()); +} + +int PythonQtWrapper_QColor::saturation(QColor* theWrappedObject) const +{ + return ( theWrappedObject->saturation()); +} + +qreal PythonQtWrapper_QColor::saturationF(QColor* theWrappedObject) const +{ + return ( theWrappedObject->saturationF()); +} + +void PythonQtWrapper_QColor::setAlpha(QColor* theWrappedObject, int alpha) +{ + ( theWrappedObject->setAlpha(alpha)); +} + +void PythonQtWrapper_QColor::setAlphaF(QColor* theWrappedObject, qreal alpha) +{ + ( theWrappedObject->setAlphaF(alpha)); +} + +void PythonQtWrapper_QColor::setBlue(QColor* theWrappedObject, int blue) +{ + ( theWrappedObject->setBlue(blue)); +} + +void PythonQtWrapper_QColor::setBlueF(QColor* theWrappedObject, qreal blue) +{ + ( theWrappedObject->setBlueF(blue)); +} + +void PythonQtWrapper_QColor::setCmyk(QColor* theWrappedObject, int c, int m, int y, int k, int a) +{ + ( theWrappedObject->setCmyk(c, m, y, k, a)); +} + +void PythonQtWrapper_QColor::setCmykF(QColor* theWrappedObject, qreal c, qreal m, qreal y, qreal k, qreal a) +{ + ( theWrappedObject->setCmykF(c, m, y, k, a)); +} + +void PythonQtWrapper_QColor::setGreen(QColor* theWrappedObject, int green) +{ + ( theWrappedObject->setGreen(green)); +} + +void PythonQtWrapper_QColor::setGreenF(QColor* theWrappedObject, qreal green) +{ + ( theWrappedObject->setGreenF(green)); +} + +void PythonQtWrapper_QColor::setHsl(QColor* theWrappedObject, int h, int s, int l, int a) +{ + ( theWrappedObject->setHsl(h, s, l, a)); +} + +void PythonQtWrapper_QColor::setHslF(QColor* theWrappedObject, qreal h, qreal s, qreal l, qreal a) +{ + ( theWrappedObject->setHslF(h, s, l, a)); +} + +void PythonQtWrapper_QColor::setHsv(QColor* theWrappedObject, int h, int s, int v, int a) +{ + ( theWrappedObject->setHsv(h, s, v, a)); +} + +void PythonQtWrapper_QColor::setHsvF(QColor* theWrappedObject, qreal h, qreal s, qreal v, qreal a) +{ + ( theWrappedObject->setHsvF(h, s, v, a)); +} + +void PythonQtWrapper_QColor::setNamedColor(QColor* theWrappedObject, const QString& name) +{ + ( theWrappedObject->setNamedColor(name)); +} + +void PythonQtWrapper_QColor::setRed(QColor* theWrappedObject, int red) +{ + ( theWrappedObject->setRed(red)); +} + +void PythonQtWrapper_QColor::setRedF(QColor* theWrappedObject, qreal red) +{ + ( theWrappedObject->setRedF(red)); +} + +void PythonQtWrapper_QColor::setRgb(QColor* theWrappedObject, int r, int g, int b, int a) +{ + ( theWrappedObject->setRgb(r, g, b, a)); +} + +void PythonQtWrapper_QColor::setRgb(QColor* theWrappedObject, unsigned int rgb) +{ + ( theWrappedObject->setRgb(rgb)); +} + +void PythonQtWrapper_QColor::setRgbF(QColor* theWrappedObject, qreal r, qreal g, qreal b, qreal a) +{ + ( theWrappedObject->setRgbF(r, g, b, a)); +} + +void PythonQtWrapper_QColor::setRgba(QColor* theWrappedObject, unsigned int rgba) +{ + ( theWrappedObject->setRgba(rgba)); +} + +QColor::Spec PythonQtWrapper_QColor::spec(QColor* theWrappedObject) const +{ + return ( theWrappedObject->spec()); +} + +QColor PythonQtWrapper_QColor::toCmyk(QColor* theWrappedObject) const +{ + return ( theWrappedObject->toCmyk()); +} + +QColor PythonQtWrapper_QColor::toHsl(QColor* theWrappedObject) const +{ + return ( theWrappedObject->toHsl()); +} + +QColor PythonQtWrapper_QColor::toHsv(QColor* theWrappedObject) const +{ + return ( theWrappedObject->toHsv()); +} + +QColor PythonQtWrapper_QColor::toRgb(QColor* theWrappedObject) const +{ + return ( theWrappedObject->toRgb()); +} + +int PythonQtWrapper_QColor::value(QColor* theWrappedObject) const +{ + return ( theWrappedObject->value()); +} + +qreal PythonQtWrapper_QColor::valueF(QColor* theWrappedObject) const +{ + return ( theWrappedObject->valueF()); +} + +int PythonQtWrapper_QColor::yellow(QColor* theWrappedObject) const +{ + return ( theWrappedObject->yellow()); +} + +qreal PythonQtWrapper_QColor::yellowF(QColor* theWrappedObject) const +{ + return ( theWrappedObject->yellowF()); +} + +QString PythonQtWrapper_QColor::py_toString(QColor* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QCursor* PythonQtWrapper_QCursor::new_QCursor() +{ +return new QCursor(); } + +QCursor* PythonQtWrapper_QCursor::new_QCursor(Qt::CursorShape shape) +{ +return new QCursor(shape); } + +QCursor* PythonQtWrapper_QCursor::new_QCursor(const QBitmap& bitmap, const QBitmap& mask, int hotX, int hotY) +{ +return new QCursor(bitmap, mask, hotX, hotY); } + +QCursor* PythonQtWrapper_QCursor::new_QCursor(const QCursor& cursor) +{ +return new QCursor(cursor); } + +QCursor* PythonQtWrapper_QCursor::new_QCursor(const QPixmap& pixmap, int hotX, int hotY) +{ +return new QCursor(pixmap, hotX, hotY); } + +const QBitmap* PythonQtWrapper_QCursor::bitmap(QCursor* theWrappedObject) const +{ + return ( theWrappedObject->bitmap()); +} + +QPoint PythonQtWrapper_QCursor::hotSpot(QCursor* theWrappedObject) const +{ + return ( theWrappedObject->hotSpot()); +} + +const QBitmap* PythonQtWrapper_QCursor::mask(QCursor* theWrappedObject) const +{ + return ( theWrappedObject->mask()); +} + +QPixmap PythonQtWrapper_QCursor::pixmap(QCursor* theWrappedObject) const +{ + return ( theWrappedObject->pixmap()); +} + +QPoint PythonQtWrapper_QCursor::static_QCursor_pos() +{ + return (QCursor::pos()); +} + +void PythonQtWrapper_QCursor::static_QCursor_setPos(const QPoint& p) +{ + (QCursor::setPos(p)); +} + +void PythonQtWrapper_QCursor::static_QCursor_setPos(int x, int y) +{ + (QCursor::setPos(x, y)); +} + +void PythonQtWrapper_QCursor::setShape(QCursor* theWrappedObject, Qt::CursorShape newShape) +{ + ( theWrappedObject->setShape(newShape)); +} + +Qt::CursorShape PythonQtWrapper_QCursor::shape(QCursor* theWrappedObject) const +{ + return ( theWrappedObject->shape()); +} + +QString PythonQtWrapper_QCursor::py_toString(QCursor* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QFont* PythonQtWrapper_QFont::new_QFont() +{ +return new QFont(); } + +QFont* PythonQtWrapper_QFont::new_QFont(const QFont& arg__1) +{ +return new QFont(arg__1); } + +QFont* PythonQtWrapper_QFont::new_QFont(const QFont& arg__1, QPaintDevice* pd) +{ +return new QFont(arg__1, pd); } + +QFont* PythonQtWrapper_QFont::new_QFont(const QString& family, int pointSize, int weight, bool italic) +{ +return new QFont(family, pointSize, weight, italic); } + +bool PythonQtWrapper_QFont::bold(QFont* theWrappedObject) const +{ + return ( theWrappedObject->bold()); +} + +void PythonQtWrapper_QFont::static_QFont_cacheStatistics() +{ + (QFont::cacheStatistics()); +} + +QFont::Capitalization PythonQtWrapper_QFont::capitalization(QFont* theWrappedObject) const +{ + return ( theWrappedObject->capitalization()); +} + +void PythonQtWrapper_QFont::static_QFont_cleanup() +{ + (QFont::cleanup()); +} + +QString PythonQtWrapper_QFont::defaultFamily(QFont* theWrappedObject) const +{ + return ( theWrappedObject->defaultFamily()); +} + +bool PythonQtWrapper_QFont::exactMatch(QFont* theWrappedObject) const +{ + return ( theWrappedObject->exactMatch()); +} + +QString PythonQtWrapper_QFont::family(QFont* theWrappedObject) const +{ + return ( theWrappedObject->family()); +} + +bool PythonQtWrapper_QFont::fixedPitch(QFont* theWrappedObject) const +{ + return ( theWrappedObject->fixedPitch()); +} + +bool PythonQtWrapper_QFont::fromString(QFont* theWrappedObject, const QString& arg__1) +{ + return ( theWrappedObject->fromString(arg__1)); +} + +void PythonQtWrapper_QFont::static_QFont_initialize() +{ + (QFont::initialize()); +} + +void PythonQtWrapper_QFont::static_QFont_insertSubstitution(const QString& arg__1, const QString& arg__2) +{ + (QFont::insertSubstitution(arg__1, arg__2)); +} + +void PythonQtWrapper_QFont::static_QFont_insertSubstitutions(const QString& arg__1, const QStringList& arg__2) +{ + (QFont::insertSubstitutions(arg__1, arg__2)); +} + +bool PythonQtWrapper_QFont::isCopyOf(QFont* theWrappedObject, const QFont& arg__1) const +{ + return ( theWrappedObject->isCopyOf(arg__1)); +} + +bool PythonQtWrapper_QFont::italic(QFont* theWrappedObject) const +{ + return ( theWrappedObject->italic()); +} + +bool PythonQtWrapper_QFont::kerning(QFont* theWrappedObject) const +{ + return ( theWrappedObject->kerning()); +} + +QString PythonQtWrapper_QFont::key(QFont* theWrappedObject) const +{ + return ( theWrappedObject->key()); +} + +QString PythonQtWrapper_QFont::lastResortFamily(QFont* theWrappedObject) const +{ + return ( theWrappedObject->lastResortFamily()); +} + +QString PythonQtWrapper_QFont::lastResortFont(QFont* theWrappedObject) const +{ + return ( theWrappedObject->lastResortFont()); +} + +qreal PythonQtWrapper_QFont::letterSpacing(QFont* theWrappedObject) const +{ + return ( theWrappedObject->letterSpacing()); +} + +QFont::SpacingType PythonQtWrapper_QFont::letterSpacingType(QFont* theWrappedObject) const +{ + return ( theWrappedObject->letterSpacingType()); +} + +bool PythonQtWrapper_QFont::__ne__(QFont* theWrappedObject, const QFont& arg__1) const +{ + return ( (*theWrappedObject)!= arg__1); +} + +bool PythonQtWrapper_QFont::__lt__(QFont* theWrappedObject, const QFont& arg__1) const +{ + return ( (*theWrappedObject)< arg__1); +} + +bool PythonQtWrapper_QFont::__eq__(QFont* theWrappedObject, const QFont& arg__1) const +{ + return ( (*theWrappedObject)== arg__1); +} + +bool PythonQtWrapper_QFont::overline(QFont* theWrappedObject) const +{ + return ( theWrappedObject->overline()); +} + +int PythonQtWrapper_QFont::pixelSize(QFont* theWrappedObject) const +{ + return ( theWrappedObject->pixelSize()); +} + +int PythonQtWrapper_QFont::pointSize(QFont* theWrappedObject) const +{ + return ( theWrappedObject->pointSize()); +} + +qreal PythonQtWrapper_QFont::pointSizeF(QFont* theWrappedObject) const +{ + return ( theWrappedObject->pointSizeF()); +} + +bool PythonQtWrapper_QFont::rawMode(QFont* theWrappedObject) const +{ + return ( theWrappedObject->rawMode()); +} + +QString PythonQtWrapper_QFont::rawName(QFont* theWrappedObject) const +{ + return ( theWrappedObject->rawName()); +} + +void PythonQtWrapper_QFont::static_QFont_removeSubstitutions(const QString& arg__1) +{ + (QFont::removeSubstitutions(arg__1)); +} + +uint PythonQtWrapper_QFont::resolve(QFont* theWrappedObject) const +{ + return ( theWrappedObject->resolve()); +} + +QFont PythonQtWrapper_QFont::resolve(QFont* theWrappedObject, const QFont& arg__1) const +{ + return ( theWrappedObject->resolve(arg__1)); +} + +void PythonQtWrapper_QFont::resolve(QFont* theWrappedObject, uint mask) +{ + ( theWrappedObject->resolve(mask)); +} + +void PythonQtWrapper_QFont::setBold(QFont* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setBold(arg__1)); +} + +void PythonQtWrapper_QFont::setCapitalization(QFont* theWrappedObject, QFont::Capitalization arg__1) +{ + ( theWrappedObject->setCapitalization(arg__1)); +} + +void PythonQtWrapper_QFont::setFamily(QFont* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setFamily(arg__1)); +} + +void PythonQtWrapper_QFont::setFixedPitch(QFont* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setFixedPitch(arg__1)); +} + +void PythonQtWrapper_QFont::setItalic(QFont* theWrappedObject, bool b) +{ + ( theWrappedObject->setItalic(b)); +} + +void PythonQtWrapper_QFont::setKerning(QFont* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setKerning(arg__1)); +} + +void PythonQtWrapper_QFont::setLetterSpacing(QFont* theWrappedObject, QFont::SpacingType type, qreal spacing) +{ + ( theWrappedObject->setLetterSpacing(type, spacing)); +} + +void PythonQtWrapper_QFont::setOverline(QFont* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setOverline(arg__1)); +} + +void PythonQtWrapper_QFont::setPixelSize(QFont* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setPixelSize(arg__1)); +} + +void PythonQtWrapper_QFont::setPointSize(QFont* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setPointSize(arg__1)); +} + +void PythonQtWrapper_QFont::setPointSizeF(QFont* theWrappedObject, qreal arg__1) +{ + ( theWrappedObject->setPointSizeF(arg__1)); +} + +void PythonQtWrapper_QFont::setRawMode(QFont* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setRawMode(arg__1)); +} + +void PythonQtWrapper_QFont::setRawName(QFont* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setRawName(arg__1)); +} + +void PythonQtWrapper_QFont::setStretch(QFont* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setStretch(arg__1)); +} + +void PythonQtWrapper_QFont::setStrikeOut(QFont* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setStrikeOut(arg__1)); +} + +void PythonQtWrapper_QFont::setStyle(QFont* theWrappedObject, QFont::Style style) +{ + ( theWrappedObject->setStyle(style)); +} + +void PythonQtWrapper_QFont::setStyleHint(QFont* theWrappedObject, QFont::StyleHint arg__1, QFont::StyleStrategy arg__2) +{ + ( theWrappedObject->setStyleHint(arg__1, arg__2)); +} + +void PythonQtWrapper_QFont::setStyleName(QFont* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setStyleName(arg__1)); +} + +void PythonQtWrapper_QFont::setStyleStrategy(QFont* theWrappedObject, QFont::StyleStrategy s) +{ + ( theWrappedObject->setStyleStrategy(s)); +} + +void PythonQtWrapper_QFont::setUnderline(QFont* theWrappedObject, bool arg__1) +{ + ( theWrappedObject->setUnderline(arg__1)); +} + +void PythonQtWrapper_QFont::setWeight(QFont* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setWeight(arg__1)); +} + +void PythonQtWrapper_QFont::setWordSpacing(QFont* theWrappedObject, qreal spacing) +{ + ( theWrappedObject->setWordSpacing(spacing)); +} + +int PythonQtWrapper_QFont::stretch(QFont* theWrappedObject) const +{ + return ( theWrappedObject->stretch()); +} + +bool PythonQtWrapper_QFont::strikeOut(QFont* theWrappedObject) const +{ + return ( theWrappedObject->strikeOut()); +} + +QFont::Style PythonQtWrapper_QFont::style(QFont* theWrappedObject) const +{ + return ( theWrappedObject->style()); +} + +QFont::StyleHint PythonQtWrapper_QFont::styleHint(QFont* theWrappedObject) const +{ + return ( theWrappedObject->styleHint()); +} + +QString PythonQtWrapper_QFont::styleName(QFont* theWrappedObject) const +{ + return ( theWrappedObject->styleName()); +} + +QFont::StyleStrategy PythonQtWrapper_QFont::styleStrategy(QFont* theWrappedObject) const +{ + return ( theWrappedObject->styleStrategy()); +} + +QString PythonQtWrapper_QFont::static_QFont_substitute(const QString& arg__1) +{ + return (QFont::substitute(arg__1)); +} + +QStringList PythonQtWrapper_QFont::static_QFont_substitutes(const QString& arg__1) +{ + return (QFont::substitutes(arg__1)); +} + +QStringList PythonQtWrapper_QFont::static_QFont_substitutions() +{ + return (QFont::substitutions()); +} + +void PythonQtWrapper_QFont::swap(QFont* theWrappedObject, QFont& other) +{ + ( theWrappedObject->swap(other)); +} + +QString PythonQtWrapper_QFont::toString(QFont* theWrappedObject) const +{ + return ( theWrappedObject->toString()); +} + +bool PythonQtWrapper_QFont::underline(QFont* theWrappedObject) const +{ + return ( theWrappedObject->underline()); +} + +int PythonQtWrapper_QFont::weight(QFont* theWrappedObject) const +{ + return ( theWrappedObject->weight()); +} + +qreal PythonQtWrapper_QFont::wordSpacing(QFont* theWrappedObject) const +{ + return ( theWrappedObject->wordSpacing()); +} + +QString PythonQtWrapper_QFont::py_toString(QFont* obj) { return obj->toString(); } + + +QIcon* PythonQtWrapper_QIcon::new_QIcon() +{ +return new QIcon(); } + +QIcon* PythonQtWrapper_QIcon::new_QIcon(QIconEngine* engine) +{ +return new QIcon(engine); } + +QIcon* PythonQtWrapper_QIcon::new_QIcon(const QIcon& other) +{ +return new QIcon(other); } + +QIcon* PythonQtWrapper_QIcon::new_QIcon(const QPixmap& pixmap) +{ +return new QIcon(pixmap); } + +QIcon* PythonQtWrapper_QIcon::new_QIcon(const QString& fileName) +{ +return new QIcon(fileName); } + +QSize PythonQtWrapper_QIcon::actualSize(QIcon* theWrappedObject, const QSize& size, QIcon::Mode mode, QIcon::State state) const +{ + return ( theWrappedObject->actualSize(size, mode, state)); +} + +void PythonQtWrapper_QIcon::addFile(QIcon* theWrappedObject, const QString& fileName, const QSize& size, QIcon::Mode mode, QIcon::State state) +{ + ( theWrappedObject->addFile(fileName, size, mode, state)); +} + +void PythonQtWrapper_QIcon::addPixmap(QIcon* theWrappedObject, const QPixmap& pixmap, QIcon::Mode mode, QIcon::State state) +{ + ( theWrappedObject->addPixmap(pixmap, mode, state)); +} + +QList PythonQtWrapper_QIcon::availableSizes(QIcon* theWrappedObject, QIcon::Mode mode, QIcon::State state) const +{ + return ( theWrappedObject->availableSizes(mode, state)); +} + +qint64 PythonQtWrapper_QIcon::cacheKey(QIcon* theWrappedObject) const +{ + return ( theWrappedObject->cacheKey()); +} + +QIcon PythonQtWrapper_QIcon::static_QIcon_fromTheme(const QString& name, const QIcon& fallback) +{ + return (QIcon::fromTheme(name, fallback)); +} + +bool PythonQtWrapper_QIcon::static_QIcon_hasThemeIcon(const QString& name) +{ + return (QIcon::hasThemeIcon(name)); +} + +bool PythonQtWrapper_QIcon::isNull(QIcon* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +QString PythonQtWrapper_QIcon::name(QIcon* theWrappedObject) const +{ + return ( theWrappedObject->name()); +} + +void PythonQtWrapper_QIcon::paint(QIcon* theWrappedObject, QPainter* painter, const QRect& rect, Qt::Alignment alignment, QIcon::Mode mode, QIcon::State state) const +{ + ( theWrappedObject->paint(painter, rect, alignment, mode, state)); +} + +void PythonQtWrapper_QIcon::paint(QIcon* theWrappedObject, QPainter* painter, int x, int y, int w, int h, Qt::Alignment alignment, QIcon::Mode mode, QIcon::State state) const +{ + ( theWrappedObject->paint(painter, x, y, w, h, alignment, mode, state)); +} + +QPixmap PythonQtWrapper_QIcon::pixmap(QIcon* theWrappedObject, const QSize& size, QIcon::Mode mode, QIcon::State state) const +{ + return ( theWrappedObject->pixmap(size, mode, state)); +} + +QPixmap PythonQtWrapper_QIcon::pixmap(QIcon* theWrappedObject, int extent, QIcon::Mode mode, QIcon::State state) const +{ + return ( theWrappedObject->pixmap(extent, mode, state)); +} + +QPixmap PythonQtWrapper_QIcon::pixmap(QIcon* theWrappedObject, int w, int h, QIcon::Mode mode, QIcon::State state) const +{ + return ( theWrappedObject->pixmap(w, h, mode, state)); +} + +void PythonQtWrapper_QIcon::static_QIcon_setThemeName(const QString& path) +{ + (QIcon::setThemeName(path)); +} + +void PythonQtWrapper_QIcon::static_QIcon_setThemeSearchPaths(const QStringList& searchpath) +{ + (QIcon::setThemeSearchPaths(searchpath)); +} + +void PythonQtWrapper_QIcon::swap(QIcon* theWrappedObject, QIcon& other) +{ + ( theWrappedObject->swap(other)); +} + +QString PythonQtWrapper_QIcon::static_QIcon_themeName() +{ + return (QIcon::themeName()); +} + +QStringList PythonQtWrapper_QIcon::static_QIcon_themeSearchPaths() +{ + return (QIcon::themeSearchPaths()); +} + +QString PythonQtWrapper_QIcon::py_toString(QIcon* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +PythonQtShell_QImage::~PythonQtShell_QImage() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +int PythonQtShell_QImage::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImage::devType(); +} +void PythonQtShell_QImage::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QImage::initPainter(painter); +} +int PythonQtShell_QImage::metric(QPaintDevice::PaintDeviceMetric metric) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&metric}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImage::metric(metric); +} +QPaintEngine* PythonQtShell_QImage::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImage::paintEngine(); +} +QPaintDevice* PythonQtShell_QImage::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImage::redirected(offset); +} +QPainter* PythonQtShell_QImage::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QImage::sharedPainter(); +} +QImage* PythonQtWrapper_QImage::new_QImage() +{ +return new PythonQtShell_QImage(); } + +QImage* PythonQtWrapper_QImage::new_QImage(const QImage& arg__1) +{ +return new PythonQtShell_QImage(arg__1); } + +QImage* PythonQtWrapper_QImage::new_QImage(const QSize& size, QImage::Format format) +{ +return new PythonQtShell_QImage(size, format); } + +QImage* PythonQtWrapper_QImage::new_QImage(const QString& fileName, const char* format) +{ +return new PythonQtShell_QImage(fileName, format); } + +QImage* PythonQtWrapper_QImage::new_QImage(int width, int height, QImage::Format format) +{ +return new PythonQtShell_QImage(width, height, format); } + +bool PythonQtWrapper_QImage::allGray(QImage* theWrappedObject) const +{ + return ( theWrappedObject->allGray()); +} + +QImage PythonQtWrapper_QImage::alphaChannel(QImage* theWrappedObject) const +{ + return ( theWrappedObject->alphaChannel()); +} + +int PythonQtWrapper_QImage::bitPlaneCount(QImage* theWrappedObject) const +{ + return ( theWrappedObject->bitPlaneCount()); +} + +int PythonQtWrapper_QImage::byteCount(QImage* theWrappedObject) const +{ + return ( theWrappedObject->byteCount()); +} + +int PythonQtWrapper_QImage::bytesPerLine(QImage* theWrappedObject) const +{ + return ( theWrappedObject->bytesPerLine()); +} + +qint64 PythonQtWrapper_QImage::cacheKey(QImage* theWrappedObject) const +{ + return ( theWrappedObject->cacheKey()); +} + +unsigned int PythonQtWrapper_QImage::color(QImage* theWrappedObject, int i) const +{ + return ( theWrappedObject->color(i)); +} + +int PythonQtWrapper_QImage::colorCount(QImage* theWrappedObject) const +{ + return ( theWrappedObject->colorCount()); +} + +QVector PythonQtWrapper_QImage::colorTable(QImage* theWrappedObject) const +{ + return ( theWrappedObject->colorTable()); +} + +const uchar* PythonQtWrapper_QImage::constBits(QImage* theWrappedObject) const +{ + return ( theWrappedObject->constBits()); +} + +const uchar* PythonQtWrapper_QImage::constScanLine(QImage* theWrappedObject, int arg__1) const +{ + return ( theWrappedObject->constScanLine(arg__1)); +} + +QImage PythonQtWrapper_QImage::convertToFormat(QImage* theWrappedObject, QImage::Format f, Qt::ImageConversionFlags flags) const +{ + return ( theWrappedObject->convertToFormat(f, flags)); +} + +QImage PythonQtWrapper_QImage::convertToFormat(QImage* theWrappedObject, QImage::Format f, const QVector& colorTable, Qt::ImageConversionFlags flags) const +{ + return ( theWrappedObject->convertToFormat(f, colorTable, flags)); +} + +QImage PythonQtWrapper_QImage::copy(QImage* theWrappedObject, const QRect& rect) const +{ + return ( theWrappedObject->copy(rect)); +} + +QImage PythonQtWrapper_QImage::copy(QImage* theWrappedObject, int x, int y, int w, int h) const +{ + return ( theWrappedObject->copy(x, y, w, h)); +} + +QImage PythonQtWrapper_QImage::createAlphaMask(QImage* theWrappedObject, Qt::ImageConversionFlags flags) const +{ + return ( theWrappedObject->createAlphaMask(flags)); +} + +QImage PythonQtWrapper_QImage::createHeuristicMask(QImage* theWrappedObject, bool clipTight) const +{ + return ( theWrappedObject->createHeuristicMask(clipTight)); +} + +QImage PythonQtWrapper_QImage::createMaskFromColor(QImage* theWrappedObject, unsigned int color, Qt::MaskMode mode) const +{ + return ( theWrappedObject->createMaskFromColor(color, mode)); +} + +int PythonQtWrapper_QImage::depth(QImage* theWrappedObject) const +{ + return ( theWrappedObject->depth()); +} + +int PythonQtWrapper_QImage::devType(QImage* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QImage*)theWrappedObject)->promoted_devType()); +} + +qreal PythonQtWrapper_QImage::devicePixelRatio(QImage* theWrappedObject) const +{ + return ( theWrappedObject->devicePixelRatio()); +} + +int PythonQtWrapper_QImage::dotsPerMeterX(QImage* theWrappedObject) const +{ + return ( theWrappedObject->dotsPerMeterX()); +} + +int PythonQtWrapper_QImage::dotsPerMeterY(QImage* theWrappedObject) const +{ + return ( theWrappedObject->dotsPerMeterY()); +} + +void PythonQtWrapper_QImage::fill(QImage* theWrappedObject, Qt::GlobalColor color) +{ + ( theWrappedObject->fill(color)); +} + +void PythonQtWrapper_QImage::fill(QImage* theWrappedObject, const QColor& color) +{ + ( theWrappedObject->fill(color)); +} + +void PythonQtWrapper_QImage::fill(QImage* theWrappedObject, uint pixel) +{ + ( theWrappedObject->fill(pixel)); +} + +QImage::Format PythonQtWrapper_QImage::format(QImage* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +QImage PythonQtWrapper_QImage::static_QImage_fromData(const QByteArray& data, const char* format) +{ + return (QImage::fromData(data, format)); +} + +bool PythonQtWrapper_QImage::hasAlphaChannel(QImage* theWrappedObject) const +{ + return ( theWrappedObject->hasAlphaChannel()); +} + +int PythonQtWrapper_QImage::height(QImage* theWrappedObject) const +{ + return ( theWrappedObject->height()); +} + +void PythonQtWrapper_QImage::invertPixels(QImage* theWrappedObject, QImage::InvertMode arg__1) +{ + ( theWrappedObject->invertPixels(arg__1)); +} + +bool PythonQtWrapper_QImage::isGrayscale(QImage* theWrappedObject) const +{ + return ( theWrappedObject->isGrayscale()); +} + +bool PythonQtWrapper_QImage::isNull(QImage* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QImage::load(QImage* theWrappedObject, QIODevice* device, const char* format) +{ + return ( theWrappedObject->load(device, format)); +} + +bool PythonQtWrapper_QImage::load(QImage* theWrappedObject, const QString& fileName, const char* format) +{ + return ( theWrappedObject->load(fileName, format)); +} + +bool PythonQtWrapper_QImage::loadFromData(QImage* theWrappedObject, const QByteArray& data, const char* aformat) +{ + return ( theWrappedObject->loadFromData(data, aformat)); +} + +int PythonQtWrapper_QImage::metric(QImage* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const +{ + return ( ((PythonQtPublicPromoter_QImage*)theWrappedObject)->promoted_metric(metric)); +} + +QImage PythonQtWrapper_QImage::mirrored(QImage* theWrappedObject, bool horizontally, bool vertically) const +{ + return ( theWrappedObject->mirrored(horizontally, vertically)); +} + +QPoint PythonQtWrapper_QImage::offset(QImage* theWrappedObject) const +{ + return ( theWrappedObject->offset()); +} + +bool PythonQtWrapper_QImage::__ne__(QImage* theWrappedObject, const QImage& arg__1) const +{ + return ( (*theWrappedObject)!= arg__1); +} + +bool PythonQtWrapper_QImage::__eq__(QImage* theWrappedObject, const QImage& arg__1) const +{ + return ( (*theWrappedObject)== arg__1); +} + +QPaintEngine* PythonQtWrapper_QImage::paintEngine(QImage* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QImage*)theWrappedObject)->promoted_paintEngine()); +} + +unsigned int PythonQtWrapper_QImage::pixel(QImage* theWrappedObject, const QPoint& pt) const +{ + return ( theWrappedObject->pixel(pt)); +} + +unsigned int PythonQtWrapper_QImage::pixel(QImage* theWrappedObject, int x, int y) const +{ + return ( theWrappedObject->pixel(x, y)); +} + +int PythonQtWrapper_QImage::pixelIndex(QImage* theWrappedObject, const QPoint& pt) const +{ + return ( theWrappedObject->pixelIndex(pt)); +} + +int PythonQtWrapper_QImage::pixelIndex(QImage* theWrappedObject, int x, int y) const +{ + return ( theWrappedObject->pixelIndex(x, y)); +} + +QRect PythonQtWrapper_QImage::rect(QImage* theWrappedObject) const +{ + return ( theWrappedObject->rect()); +} + +QImage PythonQtWrapper_QImage::rgbSwapped(QImage* theWrappedObject) const +{ + return ( theWrappedObject->rgbSwapped()); +} + +bool PythonQtWrapper_QImage::save(QImage* theWrappedObject, QIODevice* device, const char* format, int quality) const +{ + return ( theWrappedObject->save(device, format, quality)); +} + +bool PythonQtWrapper_QImage::save(QImage* theWrappedObject, const QString& fileName, const char* format, int quality) const +{ + return ( theWrappedObject->save(fileName, format, quality)); +} + +QImage PythonQtWrapper_QImage::scaled(QImage* theWrappedObject, const QSize& s, Qt::AspectRatioMode aspectMode, Qt::TransformationMode mode) const +{ + return ( theWrappedObject->scaled(s, aspectMode, mode)); +} + +QImage PythonQtWrapper_QImage::scaled(QImage* theWrappedObject, int w, int h, Qt::AspectRatioMode aspectMode, Qt::TransformationMode mode) const +{ + return ( theWrappedObject->scaled(w, h, aspectMode, mode)); +} + +QImage PythonQtWrapper_QImage::scaledToHeight(QImage* theWrappedObject, int h, Qt::TransformationMode mode) const +{ + return ( theWrappedObject->scaledToHeight(h, mode)); +} + +QImage PythonQtWrapper_QImage::scaledToWidth(QImage* theWrappedObject, int w, Qt::TransformationMode mode) const +{ + return ( theWrappedObject->scaledToWidth(w, mode)); +} + +void PythonQtWrapper_QImage::setAlphaChannel(QImage* theWrappedObject, const QImage& alphaChannel) +{ + ( theWrappedObject->setAlphaChannel(alphaChannel)); +} + +void PythonQtWrapper_QImage::setColor(QImage* theWrappedObject, int i, unsigned int c) +{ + ( theWrappedObject->setColor(i, c)); +} + +void PythonQtWrapper_QImage::setColorCount(QImage* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setColorCount(arg__1)); +} + +void PythonQtWrapper_QImage::setDevicePixelRatio(QImage* theWrappedObject, qreal scaleFactor) +{ + ( theWrappedObject->setDevicePixelRatio(scaleFactor)); +} + +void PythonQtWrapper_QImage::setDotsPerMeterX(QImage* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setDotsPerMeterX(arg__1)); +} + +void PythonQtWrapper_QImage::setDotsPerMeterY(QImage* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setDotsPerMeterY(arg__1)); +} + +void PythonQtWrapper_QImage::setOffset(QImage* theWrappedObject, const QPoint& arg__1) +{ + ( theWrappedObject->setOffset(arg__1)); +} + +void PythonQtWrapper_QImage::setPixel(QImage* theWrappedObject, const QPoint& pt, uint index_or_rgb) +{ + ( theWrappedObject->setPixel(pt, index_or_rgb)); +} + +void PythonQtWrapper_QImage::setPixel(QImage* theWrappedObject, int x, int y, uint index_or_rgb) +{ + ( theWrappedObject->setPixel(x, y, index_or_rgb)); +} + +void PythonQtWrapper_QImage::setText(QImage* theWrappedObject, const QString& key, const QString& value) +{ + ( theWrappedObject->setText(key, value)); +} + +QSize PythonQtWrapper_QImage::size(QImage* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +void PythonQtWrapper_QImage::swap(QImage* theWrappedObject, QImage& other) +{ + ( theWrappedObject->swap(other)); +} + +QString PythonQtWrapper_QImage::text(QImage* theWrappedObject, const QString& key) const +{ + return ( theWrappedObject->text(key)); +} + +QStringList PythonQtWrapper_QImage::textKeys(QImage* theWrappedObject) const +{ + return ( theWrappedObject->textKeys()); +} + +QImage PythonQtWrapper_QImage::transformed(QImage* theWrappedObject, const QMatrix& matrix, Qt::TransformationMode mode) const +{ + return ( theWrappedObject->transformed(matrix, mode)); +} + +QImage PythonQtWrapper_QImage::transformed(QImage* theWrappedObject, const QTransform& matrix, Qt::TransformationMode mode) const +{ + return ( theWrappedObject->transformed(matrix, mode)); +} + +QMatrix PythonQtWrapper_QImage::static_QImage_trueMatrix(const QMatrix& arg__1, int w, int h) +{ + return (QImage::trueMatrix(arg__1, w, h)); +} + +QTransform PythonQtWrapper_QImage::static_QImage_trueMatrix(const QTransform& arg__1, int w, int h) +{ + return (QImage::trueMatrix(arg__1, w, h)); +} + +bool PythonQtWrapper_QImage::valid(QImage* theWrappedObject, const QPoint& pt) const +{ + return ( theWrappedObject->valid(pt)); +} + +bool PythonQtWrapper_QImage::valid(QImage* theWrappedObject, int x, int y) const +{ + return ( theWrappedObject->valid(x, y)); +} + +int PythonQtWrapper_QImage::width(QImage* theWrappedObject) const +{ + return ( theWrappedObject->width()); +} + +QString PythonQtWrapper_QImage::py_toString(QImage* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QKeySequence* PythonQtWrapper_QKeySequence::new_QKeySequence() +{ +return new QKeySequence(); } + +QKeySequence* PythonQtWrapper_QKeySequence::new_QKeySequence(QKeySequence::StandardKey key) +{ +return new QKeySequence(key); } + +QKeySequence* PythonQtWrapper_QKeySequence::new_QKeySequence(const QKeySequence& ks) +{ +return new QKeySequence(ks); } + +QKeySequence* PythonQtWrapper_QKeySequence::new_QKeySequence(const QString& key, QKeySequence::SequenceFormat format) +{ +return new QKeySequence(key, format); } + +QKeySequence* PythonQtWrapper_QKeySequence::new_QKeySequence(int k1, int k2, int k3, int k4) +{ +return new QKeySequence(k1, k2, k3, k4); } + +int PythonQtWrapper_QKeySequence::count(QKeySequence* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +QKeySequence PythonQtWrapper_QKeySequence::static_QKeySequence_fromString(const QString& str, QKeySequence::SequenceFormat format) +{ + return (QKeySequence::fromString(str, format)); +} + +bool PythonQtWrapper_QKeySequence::isEmpty(QKeySequence* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +QList PythonQtWrapper_QKeySequence::static_QKeySequence_keyBindings(QKeySequence::StandardKey key) +{ + return (QKeySequence::keyBindings(key)); +} + +QKeySequence::SequenceMatch PythonQtWrapper_QKeySequence::matches(QKeySequence* theWrappedObject, const QKeySequence& seq) const +{ + return ( theWrappedObject->matches(seq)); +} + +QKeySequence PythonQtWrapper_QKeySequence::static_QKeySequence_mnemonic(const QString& text) +{ + return (QKeySequence::mnemonic(text)); +} + +bool PythonQtWrapper_QKeySequence::__ne__(QKeySequence* theWrappedObject, const QKeySequence& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QKeySequence::__lt__(QKeySequence* theWrappedObject, const QKeySequence& ks) const +{ + return ( (*theWrappedObject)< ks); +} + +bool PythonQtWrapper_QKeySequence::__le__(QKeySequence* theWrappedObject, const QKeySequence& other) const +{ + return ( (*theWrappedObject)<= other); +} + +bool PythonQtWrapper_QKeySequence::__eq__(QKeySequence* theWrappedObject, const QKeySequence& other) const +{ + return ( (*theWrappedObject)== other); +} + +bool PythonQtWrapper_QKeySequence::__gt__(QKeySequence* theWrappedObject, const QKeySequence& other) const +{ + return ( (*theWrappedObject)> other); +} + +bool PythonQtWrapper_QKeySequence::__ge__(QKeySequence* theWrappedObject, const QKeySequence& other) const +{ + return ( (*theWrappedObject)>= other); +} + +int PythonQtWrapper_QKeySequence::operator_subscript(QKeySequence* theWrappedObject, uint i) const +{ + return ( (*theWrappedObject)[i]); +} + +void PythonQtWrapper_QKeySequence::swap(QKeySequence* theWrappedObject, QKeySequence& other) +{ + ( theWrappedObject->swap(other)); +} + +QString PythonQtWrapper_QKeySequence::toString(QKeySequence* theWrappedObject, QKeySequence::SequenceFormat format) const +{ + return ( theWrappedObject->toString(format)); +} + +QString PythonQtWrapper_QKeySequence::py_toString(QKeySequence* obj) { return obj->toString(); } + + +QLine* PythonQtWrapper_QLine::new_QLine() +{ +return new QLine(); } + +QLine* PythonQtWrapper_QLine::new_QLine(const QPoint& pt1, const QPoint& pt2) +{ +return new QLine(pt1, pt2); } + +QLine* PythonQtWrapper_QLine::new_QLine(int x1, int y1, int x2, int y2) +{ +return new QLine(x1, y1, x2, y2); } + +int PythonQtWrapper_QLine::dx(QLine* theWrappedObject) const +{ + return ( theWrappedObject->dx()); +} + +int PythonQtWrapper_QLine::dy(QLine* theWrappedObject) const +{ + return ( theWrappedObject->dy()); +} + +bool PythonQtWrapper_QLine::isNull(QLine* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QLine::__ne__(QLine* theWrappedObject, const QLine& d) const +{ + return ( (*theWrappedObject)!= d); +} + +QLine PythonQtWrapper_QLine::__mul__(QLine* theWrappedObject, const QMatrix& m) +{ + return ( (*theWrappedObject)* m); +} + +QLine PythonQtWrapper_QLine::__mul__(QLine* theWrappedObject, const QTransform& m) +{ + return ( (*theWrappedObject)* m); +} + +bool PythonQtWrapper_QLine::__eq__(QLine* theWrappedObject, const QLine& d) const +{ + return ( (*theWrappedObject)== d); +} + +QPoint PythonQtWrapper_QLine::p1(QLine* theWrappedObject) const +{ + return ( theWrappedObject->p1()); +} + +QPoint PythonQtWrapper_QLine::p2(QLine* theWrappedObject) const +{ + return ( theWrappedObject->p2()); +} + +void PythonQtWrapper_QLine::setLine(QLine* theWrappedObject, int x1, int y1, int x2, int y2) +{ + ( theWrappedObject->setLine(x1, y1, x2, y2)); +} + +void PythonQtWrapper_QLine::setP1(QLine* theWrappedObject, const QPoint& p1) +{ + ( theWrappedObject->setP1(p1)); +} + +void PythonQtWrapper_QLine::setP2(QLine* theWrappedObject, const QPoint& p2) +{ + ( theWrappedObject->setP2(p2)); +} + +void PythonQtWrapper_QLine::setPoints(QLine* theWrappedObject, const QPoint& p1, const QPoint& p2) +{ + ( theWrappedObject->setPoints(p1, p2)); +} + +void PythonQtWrapper_QLine::translate(QLine* theWrappedObject, const QPoint& p) +{ + ( theWrappedObject->translate(p)); +} + +void PythonQtWrapper_QLine::translate(QLine* theWrappedObject, int dx, int dy) +{ + ( theWrappedObject->translate(dx, dy)); +} + +QLine PythonQtWrapper_QLine::translated(QLine* theWrappedObject, const QPoint& p) const +{ + return ( theWrappedObject->translated(p)); +} + +QLine PythonQtWrapper_QLine::translated(QLine* theWrappedObject, int dx, int dy) const +{ + return ( theWrappedObject->translated(dx, dy)); +} + +int PythonQtWrapper_QLine::x1(QLine* theWrappedObject) const +{ + return ( theWrappedObject->x1()); +} + +int PythonQtWrapper_QLine::x2(QLine* theWrappedObject) const +{ + return ( theWrappedObject->x2()); +} + +int PythonQtWrapper_QLine::y1(QLine* theWrappedObject) const +{ + return ( theWrappedObject->y1()); +} + +int PythonQtWrapper_QLine::y2(QLine* theWrappedObject) const +{ + return ( theWrappedObject->y2()); +} + +QString PythonQtWrapper_QLine::py_toString(QLine* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QLineF* PythonQtWrapper_QLineF::new_QLineF() +{ +return new QLineF(); } + +QLineF* PythonQtWrapper_QLineF::new_QLineF(const QLine& line) +{ +return new QLineF(line); } + +QLineF* PythonQtWrapper_QLineF::new_QLineF(const QPointF& pt1, const QPointF& pt2) +{ +return new QLineF(pt1, pt2); } + +QLineF* PythonQtWrapper_QLineF::new_QLineF(qreal x1, qreal y1, qreal x2, qreal y2) +{ +return new QLineF(x1, y1, x2, y2); } + +qreal PythonQtWrapper_QLineF::angle(QLineF* theWrappedObject) const +{ + return ( theWrappedObject->angle()); +} + +qreal PythonQtWrapper_QLineF::angle(QLineF* theWrappedObject, const QLineF& l) const +{ + return ( theWrappedObject->angle(l)); +} + +qreal PythonQtWrapper_QLineF::angleTo(QLineF* theWrappedObject, const QLineF& l) const +{ + return ( theWrappedObject->angleTo(l)); +} + +qreal PythonQtWrapper_QLineF::dx(QLineF* theWrappedObject) const +{ + return ( theWrappedObject->dx()); +} + +qreal PythonQtWrapper_QLineF::dy(QLineF* theWrappedObject) const +{ + return ( theWrappedObject->dy()); +} + +QLineF PythonQtWrapper_QLineF::static_QLineF_fromPolar(qreal length, qreal angle) +{ + return (QLineF::fromPolar(length, angle)); +} + +QLineF::IntersectType PythonQtWrapper_QLineF::intersect(QLineF* theWrappedObject, const QLineF& l, QPointF* intersectionPoint) const +{ + return ( theWrappedObject->intersect(l, intersectionPoint)); +} + +bool PythonQtWrapper_QLineF::isNull(QLineF* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +qreal PythonQtWrapper_QLineF::length(QLineF* theWrappedObject) const +{ + return ( theWrappedObject->length()); +} + +QLineF PythonQtWrapper_QLineF::normalVector(QLineF* theWrappedObject) const +{ + return ( theWrappedObject->normalVector()); +} + +bool PythonQtWrapper_QLineF::__ne__(QLineF* theWrappedObject, const QLineF& d) const +{ + return ( (*theWrappedObject)!= d); +} + +QLineF PythonQtWrapper_QLineF::__mul__(QLineF* theWrappedObject, const QMatrix& m) +{ + return ( (*theWrappedObject)* m); +} + +QLineF PythonQtWrapper_QLineF::__mul__(QLineF* theWrappedObject, const QTransform& m) +{ + return ( (*theWrappedObject)* m); +} + +bool PythonQtWrapper_QLineF::__eq__(QLineF* theWrappedObject, const QLineF& d) const +{ + return ( (*theWrappedObject)== d); +} + +QPointF PythonQtWrapper_QLineF::p1(QLineF* theWrappedObject) const +{ + return ( theWrappedObject->p1()); +} + +QPointF PythonQtWrapper_QLineF::p2(QLineF* theWrappedObject) const +{ + return ( theWrappedObject->p2()); +} + +QPointF PythonQtWrapper_QLineF::pointAt(QLineF* theWrappedObject, qreal t) const +{ + return ( theWrappedObject->pointAt(t)); +} + +void PythonQtWrapper_QLineF::setAngle(QLineF* theWrappedObject, qreal angle) +{ + ( theWrappedObject->setAngle(angle)); +} + +void PythonQtWrapper_QLineF::setLength(QLineF* theWrappedObject, qreal len) +{ + ( theWrappedObject->setLength(len)); +} + +void PythonQtWrapper_QLineF::setLine(QLineF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2) +{ + ( theWrappedObject->setLine(x1, y1, x2, y2)); +} + +void PythonQtWrapper_QLineF::setP1(QLineF* theWrappedObject, const QPointF& p1) +{ + ( theWrappedObject->setP1(p1)); +} + +void PythonQtWrapper_QLineF::setP2(QLineF* theWrappedObject, const QPointF& p2) +{ + ( theWrappedObject->setP2(p2)); +} + +void PythonQtWrapper_QLineF::setPoints(QLineF* theWrappedObject, const QPointF& p1, const QPointF& p2) +{ + ( theWrappedObject->setPoints(p1, p2)); +} + +QLine PythonQtWrapper_QLineF::toLine(QLineF* theWrappedObject) const +{ + return ( theWrappedObject->toLine()); +} + +void PythonQtWrapper_QLineF::translate(QLineF* theWrappedObject, const QPointF& p) +{ + ( theWrappedObject->translate(p)); +} + +void PythonQtWrapper_QLineF::translate(QLineF* theWrappedObject, qreal dx, qreal dy) +{ + ( theWrappedObject->translate(dx, dy)); +} + +QLineF PythonQtWrapper_QLineF::translated(QLineF* theWrappedObject, const QPointF& p) const +{ + return ( theWrappedObject->translated(p)); +} + +QLineF PythonQtWrapper_QLineF::translated(QLineF* theWrappedObject, qreal dx, qreal dy) const +{ + return ( theWrappedObject->translated(dx, dy)); +} + +QLineF PythonQtWrapper_QLineF::unitVector(QLineF* theWrappedObject) const +{ + return ( theWrappedObject->unitVector()); +} + +qreal PythonQtWrapper_QLineF::x1(QLineF* theWrappedObject) const +{ + return ( theWrappedObject->x1()); +} + +qreal PythonQtWrapper_QLineF::x2(QLineF* theWrappedObject) const +{ + return ( theWrappedObject->x2()); +} + +qreal PythonQtWrapper_QLineF::y1(QLineF* theWrappedObject) const +{ + return ( theWrappedObject->y1()); +} + +qreal PythonQtWrapper_QLineF::y2(QLineF* theWrappedObject) const +{ + return ( theWrappedObject->y2()); +} + +QString PythonQtWrapper_QLineF::py_toString(QLineF* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QMatrix* PythonQtWrapper_QMatrix::new_QMatrix() +{ +return new QMatrix(); } + +QMatrix* PythonQtWrapper_QMatrix::new_QMatrix(const QMatrix& matrix) +{ +return new QMatrix(matrix); } + +QMatrix* PythonQtWrapper_QMatrix::new_QMatrix(qreal m11, qreal m12, qreal m21, qreal m22, qreal dx, qreal dy) +{ +return new QMatrix(m11, m12, m21, m22, dx, dy); } + +qreal PythonQtWrapper_QMatrix::determinant(QMatrix* theWrappedObject) const +{ + return ( theWrappedObject->determinant()); +} + +qreal PythonQtWrapper_QMatrix::dx(QMatrix* theWrappedObject) const +{ + return ( theWrappedObject->dx()); +} + +qreal PythonQtWrapper_QMatrix::dy(QMatrix* theWrappedObject) const +{ + return ( theWrappedObject->dy()); +} + +QMatrix PythonQtWrapper_QMatrix::inverted(QMatrix* theWrappedObject, bool* invertible) const +{ + return ( theWrappedObject->inverted(invertible)); +} + +bool PythonQtWrapper_QMatrix::isIdentity(QMatrix* theWrappedObject) const +{ + return ( theWrappedObject->isIdentity()); +} + +bool PythonQtWrapper_QMatrix::isInvertible(QMatrix* theWrappedObject) const +{ + return ( theWrappedObject->isInvertible()); +} + +qreal PythonQtWrapper_QMatrix::m11(QMatrix* theWrappedObject) const +{ + return ( theWrappedObject->m11()); +} + +qreal PythonQtWrapper_QMatrix::m12(QMatrix* theWrappedObject) const +{ + return ( theWrappedObject->m12()); +} + +qreal PythonQtWrapper_QMatrix::m21(QMatrix* theWrappedObject) const +{ + return ( theWrappedObject->m21()); +} + +qreal PythonQtWrapper_QMatrix::m22(QMatrix* theWrappedObject) const +{ + return ( theWrappedObject->m22()); +} + +QLine PythonQtWrapper_QMatrix::map(QMatrix* theWrappedObject, const QLine& l) const +{ + return ( theWrappedObject->map(l)); +} + +QLineF PythonQtWrapper_QMatrix::map(QMatrix* theWrappedObject, const QLineF& l) const +{ + return ( theWrappedObject->map(l)); +} + +QPainterPath PythonQtWrapper_QMatrix::map(QMatrix* theWrappedObject, const QPainterPath& p) const +{ + return ( theWrappedObject->map(p)); +} + +QPoint PythonQtWrapper_QMatrix::map(QMatrix* theWrappedObject, const QPoint& p) const +{ + return ( theWrappedObject->map(p)); +} + +QPointF PythonQtWrapper_QMatrix::map(QMatrix* theWrappedObject, const QPointF& p) const +{ + return ( theWrappedObject->map(p)); +} + +QPolygon PythonQtWrapper_QMatrix::map(QMatrix* theWrappedObject, const QPolygon& a) const +{ + return ( theWrappedObject->map(a)); +} + +QPolygonF PythonQtWrapper_QMatrix::map(QMatrix* theWrappedObject, const QPolygonF& a) const +{ + return ( theWrappedObject->map(a)); +} + +QRegion PythonQtWrapper_QMatrix::map(QMatrix* theWrappedObject, const QRegion& r) const +{ + return ( theWrappedObject->map(r)); +} + +QRect PythonQtWrapper_QMatrix::mapRect(QMatrix* theWrappedObject, const QRect& arg__1) const +{ + return ( theWrappedObject->mapRect(arg__1)); +} + +QRectF PythonQtWrapper_QMatrix::mapRect(QMatrix* theWrappedObject, const QRectF& arg__1) const +{ + return ( theWrappedObject->mapRect(arg__1)); +} + +QPolygon PythonQtWrapper_QMatrix::mapToPolygon(QMatrix* theWrappedObject, const QRect& r) const +{ + return ( theWrappedObject->mapToPolygon(r)); +} + +bool PythonQtWrapper_QMatrix::__ne__(QMatrix* theWrappedObject, const QMatrix& arg__1) const +{ + return ( (*theWrappedObject)!= arg__1); +} + +QMatrix PythonQtWrapper_QMatrix::__mul__(QMatrix* theWrappedObject, const QMatrix& o) const +{ + return ( (*theWrappedObject)* o); +} + +QMatrix* PythonQtWrapper_QMatrix::__imul__(QMatrix* theWrappedObject, const QMatrix& arg__1) +{ + return &( (*theWrappedObject)*= arg__1); +} + +bool PythonQtWrapper_QMatrix::__eq__(QMatrix* theWrappedObject, const QMatrix& arg__1) const +{ + return ( (*theWrappedObject)== arg__1); +} + +void PythonQtWrapper_QMatrix::reset(QMatrix* theWrappedObject) +{ + ( theWrappedObject->reset()); +} + +QMatrix* PythonQtWrapper_QMatrix::rotate(QMatrix* theWrappedObject, qreal a) +{ + return &( theWrappedObject->rotate(a)); +} + +QMatrix* PythonQtWrapper_QMatrix::scale(QMatrix* theWrappedObject, qreal sx, qreal sy) +{ + return &( theWrappedObject->scale(sx, sy)); +} + +void PythonQtWrapper_QMatrix::setMatrix(QMatrix* theWrappedObject, qreal m11, qreal m12, qreal m21, qreal m22, qreal dx, qreal dy) +{ + ( theWrappedObject->setMatrix(m11, m12, m21, m22, dx, dy)); +} + +QMatrix* PythonQtWrapper_QMatrix::shear(QMatrix* theWrappedObject, qreal sh, qreal sv) +{ + return &( theWrappedObject->shear(sh, sv)); +} + +QMatrix* PythonQtWrapper_QMatrix::translate(QMatrix* theWrappedObject, qreal dx, qreal dy) +{ + return &( theWrappedObject->translate(dx, dy)); +} + +QString PythonQtWrapper_QMatrix::py_toString(QMatrix* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QPalette* PythonQtWrapper_QPalette::new_QPalette() +{ +return new QPalette(); } + +QPalette* PythonQtWrapper_QPalette::new_QPalette(Qt::GlobalColor button) +{ +return new QPalette(button); } + +QPalette* PythonQtWrapper_QPalette::new_QPalette(const QBrush& windowText, const QBrush& button, const QBrush& light, const QBrush& dark, const QBrush& mid, const QBrush& text, const QBrush& bright_text, const QBrush& base, const QBrush& window) +{ +return new QPalette(windowText, button, light, dark, mid, text, bright_text, base, window); } + +QPalette* PythonQtWrapper_QPalette::new_QPalette(const QColor& button) +{ +return new QPalette(button); } + +QPalette* PythonQtWrapper_QPalette::new_QPalette(const QColor& button, const QColor& window) +{ +return new QPalette(button, window); } + +QPalette* PythonQtWrapper_QPalette::new_QPalette(const QPalette& palette) +{ +return new QPalette(palette); } + +const QBrush* PythonQtWrapper_QPalette::alternateBase(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->alternateBase()); +} + +const QBrush* PythonQtWrapper_QPalette::base(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->base()); +} + +const QBrush* PythonQtWrapper_QPalette::brightText(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->brightText()); +} + +const QBrush* PythonQtWrapper_QPalette::brush(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr) const +{ + return &( theWrappedObject->brush(cg, cr)); +} + +const QBrush* PythonQtWrapper_QPalette::brush(QPalette* theWrappedObject, QPalette::ColorRole cr) const +{ + return &( theWrappedObject->brush(cr)); +} + +const QBrush* PythonQtWrapper_QPalette::button(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->button()); +} + +const QBrush* PythonQtWrapper_QPalette::buttonText(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->buttonText()); +} + +qint64 PythonQtWrapper_QPalette::cacheKey(QPalette* theWrappedObject) const +{ + return ( theWrappedObject->cacheKey()); +} + +const QColor* PythonQtWrapper_QPalette::color(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr) const +{ + return &( theWrappedObject->color(cg, cr)); +} + +const QColor* PythonQtWrapper_QPalette::color(QPalette* theWrappedObject, QPalette::ColorRole cr) const +{ + return &( theWrappedObject->color(cr)); +} + +QPalette::ColorGroup PythonQtWrapper_QPalette::currentColorGroup(QPalette* theWrappedObject) const +{ + return ( theWrappedObject->currentColorGroup()); +} + +const QBrush* PythonQtWrapper_QPalette::dark(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->dark()); +} + +const QBrush* PythonQtWrapper_QPalette::highlight(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->highlight()); +} + +const QBrush* PythonQtWrapper_QPalette::highlightedText(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->highlightedText()); +} + +bool PythonQtWrapper_QPalette::isBrushSet(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr) const +{ + return ( theWrappedObject->isBrushSet(cg, cr)); +} + +bool PythonQtWrapper_QPalette::isCopyOf(QPalette* theWrappedObject, const QPalette& p) const +{ + return ( theWrappedObject->isCopyOf(p)); +} + +bool PythonQtWrapper_QPalette::isEqual(QPalette* theWrappedObject, QPalette::ColorGroup cr1, QPalette::ColorGroup cr2) const +{ + return ( theWrappedObject->isEqual(cr1, cr2)); +} + +const QBrush* PythonQtWrapper_QPalette::light(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->light()); +} + +const QBrush* PythonQtWrapper_QPalette::link(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->link()); +} + +const QBrush* PythonQtWrapper_QPalette::linkVisited(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->linkVisited()); +} + +const QBrush* PythonQtWrapper_QPalette::mid(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->mid()); +} + +const QBrush* PythonQtWrapper_QPalette::midlight(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->midlight()); +} + +bool PythonQtWrapper_QPalette::__ne__(QPalette* theWrappedObject, const QPalette& p) const +{ + return ( (*theWrappedObject)!= p); +} + +bool PythonQtWrapper_QPalette::__eq__(QPalette* theWrappedObject, const QPalette& p) const +{ + return ( (*theWrappedObject)== p); +} + +uint PythonQtWrapper_QPalette::resolve(QPalette* theWrappedObject) const +{ + return ( theWrappedObject->resolve()); +} + +QPalette PythonQtWrapper_QPalette::resolve(QPalette* theWrappedObject, const QPalette& arg__1) const +{ + return ( theWrappedObject->resolve(arg__1)); +} + +void PythonQtWrapper_QPalette::resolve(QPalette* theWrappedObject, uint mask) +{ + ( theWrappedObject->resolve(mask)); +} + +void PythonQtWrapper_QPalette::setBrush(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr, const QBrush& brush) +{ + ( theWrappedObject->setBrush(cg, cr, brush)); +} + +void PythonQtWrapper_QPalette::setBrush(QPalette* theWrappedObject, QPalette::ColorRole cr, const QBrush& brush) +{ + ( theWrappedObject->setBrush(cr, brush)); +} + +void PythonQtWrapper_QPalette::setColor(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr, const QColor& color) +{ + ( theWrappedObject->setColor(cg, cr, color)); +} + +void PythonQtWrapper_QPalette::setColor(QPalette* theWrappedObject, QPalette::ColorRole cr, const QColor& color) +{ + ( theWrappedObject->setColor(cr, color)); +} + +void PythonQtWrapper_QPalette::setColorGroup(QPalette* theWrappedObject, QPalette::ColorGroup cr, const QBrush& windowText, const QBrush& button, const QBrush& light, const QBrush& dark, const QBrush& mid, const QBrush& text, const QBrush& bright_text, const QBrush& base, const QBrush& window) +{ + ( theWrappedObject->setColorGroup(cr, windowText, button, light, dark, mid, text, bright_text, base, window)); +} + +void PythonQtWrapper_QPalette::setCurrentColorGroup(QPalette* theWrappedObject, QPalette::ColorGroup cg) +{ + ( theWrappedObject->setCurrentColorGroup(cg)); +} + +const QBrush* PythonQtWrapper_QPalette::shadow(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->shadow()); +} + +void PythonQtWrapper_QPalette::swap(QPalette* theWrappedObject, QPalette& other) +{ + ( theWrappedObject->swap(other)); +} + +const QBrush* PythonQtWrapper_QPalette::text(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->text()); +} + +const QBrush* PythonQtWrapper_QPalette::toolTipBase(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->toolTipBase()); +} + +const QBrush* PythonQtWrapper_QPalette::toolTipText(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->toolTipText()); +} + +const QBrush* PythonQtWrapper_QPalette::window(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->window()); +} + +const QBrush* PythonQtWrapper_QPalette::windowText(QPalette* theWrappedObject) const +{ + return &( theWrappedObject->windowText()); +} + +QString PythonQtWrapper_QPalette::py_toString(QPalette* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QPen* PythonQtWrapper_QPen::new_QPen() +{ +return new QPen(); } + +QPen* PythonQtWrapper_QPen::new_QPen(Qt::PenStyle arg__1) +{ +return new QPen(arg__1); } + +QPen* PythonQtWrapper_QPen::new_QPen(const QBrush& brush, qreal width, Qt::PenStyle s, Qt::PenCapStyle c, Qt::PenJoinStyle j) +{ +return new QPen(brush, width, s, c, j); } + +QPen* PythonQtWrapper_QPen::new_QPen(const QColor& color) +{ +return new QPen(color); } + +QPen* PythonQtWrapper_QPen::new_QPen(const QPen& pen) +{ +return new QPen(pen); } + +QBrush PythonQtWrapper_QPen::brush(QPen* theWrappedObject) const +{ + return ( theWrappedObject->brush()); +} + +Qt::PenCapStyle PythonQtWrapper_QPen::capStyle(QPen* theWrappedObject) const +{ + return ( theWrappedObject->capStyle()); +} + +QColor PythonQtWrapper_QPen::color(QPen* theWrappedObject) const +{ + return ( theWrappedObject->color()); +} + +qreal PythonQtWrapper_QPen::dashOffset(QPen* theWrappedObject) const +{ + return ( theWrappedObject->dashOffset()); +} + +QVector PythonQtWrapper_QPen::dashPattern(QPen* theWrappedObject) const +{ + return ( theWrappedObject->dashPattern()); +} + +bool PythonQtWrapper_QPen::isCosmetic(QPen* theWrappedObject) const +{ + return ( theWrappedObject->isCosmetic()); +} + +bool PythonQtWrapper_QPen::isSolid(QPen* theWrappedObject) const +{ + return ( theWrappedObject->isSolid()); +} + +Qt::PenJoinStyle PythonQtWrapper_QPen::joinStyle(QPen* theWrappedObject) const +{ + return ( theWrappedObject->joinStyle()); +} + +qreal PythonQtWrapper_QPen::miterLimit(QPen* theWrappedObject) const +{ + return ( theWrappedObject->miterLimit()); +} + +bool PythonQtWrapper_QPen::__ne__(QPen* theWrappedObject, const QPen& p) const +{ + return ( (*theWrappedObject)!= p); +} + +bool PythonQtWrapper_QPen::__eq__(QPen* theWrappedObject, const QPen& p) const +{ + return ( (*theWrappedObject)== p); +} + +void PythonQtWrapper_QPen::setBrush(QPen* theWrappedObject, const QBrush& brush) +{ + ( theWrappedObject->setBrush(brush)); +} + +void PythonQtWrapper_QPen::setCapStyle(QPen* theWrappedObject, Qt::PenCapStyle pcs) +{ + ( theWrappedObject->setCapStyle(pcs)); +} + +void PythonQtWrapper_QPen::setColor(QPen* theWrappedObject, const QColor& color) +{ + ( theWrappedObject->setColor(color)); +} + +void PythonQtWrapper_QPen::setCosmetic(QPen* theWrappedObject, bool cosmetic) +{ + ( theWrappedObject->setCosmetic(cosmetic)); +} + +void PythonQtWrapper_QPen::setDashOffset(QPen* theWrappedObject, qreal doffset) +{ + ( theWrappedObject->setDashOffset(doffset)); +} + +void PythonQtWrapper_QPen::setDashPattern(QPen* theWrappedObject, const QVector& pattern) +{ + ( theWrappedObject->setDashPattern(pattern)); +} + +void PythonQtWrapper_QPen::setJoinStyle(QPen* theWrappedObject, Qt::PenJoinStyle pcs) +{ + ( theWrappedObject->setJoinStyle(pcs)); +} + +void PythonQtWrapper_QPen::setMiterLimit(QPen* theWrappedObject, qreal limit) +{ + ( theWrappedObject->setMiterLimit(limit)); +} + +void PythonQtWrapper_QPen::setStyle(QPen* theWrappedObject, Qt::PenStyle arg__1) +{ + ( theWrappedObject->setStyle(arg__1)); +} + +void PythonQtWrapper_QPen::setWidth(QPen* theWrappedObject, int width) +{ + ( theWrappedObject->setWidth(width)); +} + +void PythonQtWrapper_QPen::setWidthF(QPen* theWrappedObject, qreal width) +{ + ( theWrappedObject->setWidthF(width)); +} + +Qt::PenStyle PythonQtWrapper_QPen::style(QPen* theWrappedObject) const +{ + return ( theWrappedObject->style()); +} + +void PythonQtWrapper_QPen::swap(QPen* theWrappedObject, QPen& other) +{ + ( theWrappedObject->swap(other)); +} + +int PythonQtWrapper_QPen::width(QPen* theWrappedObject) const +{ + return ( theWrappedObject->width()); +} + +qreal PythonQtWrapper_QPen::widthF(QPen* theWrappedObject) const +{ + return ( theWrappedObject->widthF()); +} + +QString PythonQtWrapper_QPen::py_toString(QPen* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +PythonQtShell_QPixmap::~PythonQtShell_QPixmap() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +int PythonQtShell_QPixmap::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPixmap::devType(); +} +void PythonQtShell_QPixmap::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QPixmap::initPainter(painter); +} +int PythonQtShell_QPixmap::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPixmap::metric(arg__1); +} +QPaintEngine* PythonQtShell_QPixmap::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPixmap::paintEngine(); +} +QPaintDevice* PythonQtShell_QPixmap::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPixmap::redirected(offset); +} +QPainter* PythonQtShell_QPixmap::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QPixmap::sharedPainter(); +} +QPixmap* PythonQtWrapper_QPixmap::new_QPixmap() +{ +return new PythonQtShell_QPixmap(); } + +QPixmap* PythonQtWrapper_QPixmap::new_QPixmap(const QPixmap& arg__1) +{ +return new PythonQtShell_QPixmap(arg__1); } + +QPixmap* PythonQtWrapper_QPixmap::new_QPixmap(const QSize& arg__1) +{ +return new PythonQtShell_QPixmap(arg__1); } + +QPixmap* PythonQtWrapper_QPixmap::new_QPixmap(const QString& fileName, const char* format, Qt::ImageConversionFlags flags) +{ +return new PythonQtShell_QPixmap(fileName, format, flags); } + +QPixmap* PythonQtWrapper_QPixmap::new_QPixmap(const char** xpm) +{ +return new PythonQtShell_QPixmap(xpm); } + +QPixmap* PythonQtWrapper_QPixmap::new_QPixmap(int w, int h) +{ +return new PythonQtShell_QPixmap(w, h); } + +qint64 PythonQtWrapper_QPixmap::cacheKey(QPixmap* theWrappedObject) const +{ + return ( theWrappedObject->cacheKey()); +} + +bool PythonQtWrapper_QPixmap::convertFromImage(QPixmap* theWrappedObject, const QImage& img, Qt::ImageConversionFlags flags) +{ + return ( theWrappedObject->convertFromImage(img, flags)); +} + +QPixmap PythonQtWrapper_QPixmap::copy(QPixmap* theWrappedObject, const QRect& rect) const +{ + return ( theWrappedObject->copy(rect)); +} + +QPixmap PythonQtWrapper_QPixmap::copy(QPixmap* theWrappedObject, int x, int y, int width, int height) const +{ + return ( theWrappedObject->copy(x, y, width, height)); +} + +QBitmap PythonQtWrapper_QPixmap::createHeuristicMask(QPixmap* theWrappedObject, bool clipTight) const +{ + return ( theWrappedObject->createHeuristicMask(clipTight)); +} + +QBitmap PythonQtWrapper_QPixmap::createMaskFromColor(QPixmap* theWrappedObject, const QColor& maskColor, Qt::MaskMode mode) const +{ + return ( theWrappedObject->createMaskFromColor(maskColor, mode)); +} + +int PythonQtWrapper_QPixmap::static_QPixmap_defaultDepth() +{ + return (QPixmap::defaultDepth()); +} + +int PythonQtWrapper_QPixmap::depth(QPixmap* theWrappedObject) const +{ + return ( theWrappedObject->depth()); +} + +int PythonQtWrapper_QPixmap::devType(QPixmap* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QPixmap*)theWrappedObject)->promoted_devType()); +} + +qreal PythonQtWrapper_QPixmap::devicePixelRatio(QPixmap* theWrappedObject) const +{ + return ( theWrappedObject->devicePixelRatio()); +} + +void PythonQtWrapper_QPixmap::fill(QPixmap* theWrappedObject, const QColor& fillColor) +{ + ( theWrappedObject->fill(fillColor)); +} + +void PythonQtWrapper_QPixmap::fill(QPixmap* theWrappedObject, const QPaintDevice* device, const QPoint& ofs) +{ + ( theWrappedObject->fill(device, ofs)); +} + +void PythonQtWrapper_QPixmap::fill(QPixmap* theWrappedObject, const QPaintDevice* device, int xofs, int yofs) +{ + ( theWrappedObject->fill(device, xofs, yofs)); +} + +QPixmap PythonQtWrapper_QPixmap::static_QPixmap_fromImage(const QImage& image, Qt::ImageConversionFlags flags) +{ + return (QPixmap::fromImage(image, flags)); +} + +QPixmap PythonQtWrapper_QPixmap::static_QPixmap_fromImageReader(QImageReader* imageReader, Qt::ImageConversionFlags flags) +{ + return (QPixmap::fromImageReader(imageReader, flags)); +} + +QPixmap PythonQtWrapper_QPixmap::static_QPixmap_grabWidget(QObject* widget, const QRect& rect) +{ + return (QPixmap::grabWidget(widget, rect)); +} + +QPixmap PythonQtWrapper_QPixmap::static_QPixmap_grabWidget(QObject* widget, int x, int y, int w, int h) +{ + return (QPixmap::grabWidget(widget, x, y, w, h)); +} + +QPixmap PythonQtWrapper_QPixmap::static_QPixmap_grabWindow(WId arg__1, int x, int y, int w, int h) +{ + return (QPixmap::grabWindow(arg__1, x, y, w, h)); +} + +bool PythonQtWrapper_QPixmap::hasAlpha(QPixmap* theWrappedObject) const +{ + return ( theWrappedObject->hasAlpha()); +} + +bool PythonQtWrapper_QPixmap::hasAlphaChannel(QPixmap* theWrappedObject) const +{ + return ( theWrappedObject->hasAlphaChannel()); +} + +int PythonQtWrapper_QPixmap::height(QPixmap* theWrappedObject) const +{ + return ( theWrappedObject->height()); +} + +bool PythonQtWrapper_QPixmap::isNull(QPixmap* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QPixmap::isQBitmap(QPixmap* theWrappedObject) const +{ + return ( theWrappedObject->isQBitmap()); +} + +bool PythonQtWrapper_QPixmap::load(QPixmap* theWrappedObject, const QString& fileName, const char* format, Qt::ImageConversionFlags flags) +{ + return ( theWrappedObject->load(fileName, format, flags)); +} + +bool PythonQtWrapper_QPixmap::loadFromData(QPixmap* theWrappedObject, const QByteArray& data, const char* format, Qt::ImageConversionFlags flags) +{ + return ( theWrappedObject->loadFromData(data, format, flags)); +} + +QBitmap PythonQtWrapper_QPixmap::mask(QPixmap* theWrappedObject) const +{ + return ( theWrappedObject->mask()); +} + +int PythonQtWrapper_QPixmap::metric(QPixmap* theWrappedObject, QPaintDevice::PaintDeviceMetric arg__1) const +{ + return ( ((PythonQtPublicPromoter_QPixmap*)theWrappedObject)->promoted_metric(arg__1)); +} + +QPaintEngine* PythonQtWrapper_QPixmap::paintEngine(QPixmap* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QPixmap*)theWrappedObject)->promoted_paintEngine()); +} + +QRect PythonQtWrapper_QPixmap::rect(QPixmap* theWrappedObject) const +{ + return ( theWrappedObject->rect()); +} + +bool PythonQtWrapper_QPixmap::save(QPixmap* theWrappedObject, QIODevice* device, const char* format, int quality) const +{ + return ( theWrappedObject->save(device, format, quality)); +} + +bool PythonQtWrapper_QPixmap::save(QPixmap* theWrappedObject, const QString& fileName, const char* format, int quality) const +{ + return ( theWrappedObject->save(fileName, format, quality)); +} + +QPixmap PythonQtWrapper_QPixmap::scaled(QPixmap* theWrappedObject, const QSize& s, Qt::AspectRatioMode aspectMode, Qt::TransformationMode mode) const +{ + return ( theWrappedObject->scaled(s, aspectMode, mode)); +} + +QPixmap PythonQtWrapper_QPixmap::scaled(QPixmap* theWrappedObject, int w, int h, Qt::AspectRatioMode aspectMode, Qt::TransformationMode mode) const +{ + return ( theWrappedObject->scaled(w, h, aspectMode, mode)); +} + +QPixmap PythonQtWrapper_QPixmap::scaledToHeight(QPixmap* theWrappedObject, int h, Qt::TransformationMode mode) const +{ + return ( theWrappedObject->scaledToHeight(h, mode)); +} + +QPixmap PythonQtWrapper_QPixmap::scaledToWidth(QPixmap* theWrappedObject, int w, Qt::TransformationMode mode) const +{ + return ( theWrappedObject->scaledToWidth(w, mode)); +} + +void PythonQtWrapper_QPixmap::scroll(QPixmap* theWrappedObject, int dx, int dy, const QRect& rect, QRegion* exposed) +{ + ( theWrappedObject->scroll(dx, dy, rect, exposed)); +} + +void PythonQtWrapper_QPixmap::scroll(QPixmap* theWrappedObject, int dx, int dy, int x, int y, int width, int height, QRegion* exposed) +{ + ( theWrappedObject->scroll(dx, dy, x, y, width, height, exposed)); +} + +void PythonQtWrapper_QPixmap::setDevicePixelRatio(QPixmap* theWrappedObject, qreal scaleFactor) +{ + ( theWrappedObject->setDevicePixelRatio(scaleFactor)); +} + +void PythonQtWrapper_QPixmap::setMask(QPixmap* theWrappedObject, const QBitmap& arg__1) +{ + ( theWrappedObject->setMask(arg__1)); +} + +QSize PythonQtWrapper_QPixmap::size(QPixmap* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +void PythonQtWrapper_QPixmap::swap(QPixmap* theWrappedObject, QPixmap& other) +{ + ( theWrappedObject->swap(other)); +} + +QImage PythonQtWrapper_QPixmap::toImage(QPixmap* theWrappedObject) const +{ + return ( theWrappedObject->toImage()); +} + +QPixmap PythonQtWrapper_QPixmap::transformed(QPixmap* theWrappedObject, const QMatrix& arg__1, Qt::TransformationMode mode) const +{ + return ( theWrappedObject->transformed(arg__1, mode)); +} + +QPixmap PythonQtWrapper_QPixmap::transformed(QPixmap* theWrappedObject, const QTransform& arg__1, Qt::TransformationMode mode) const +{ + return ( theWrappedObject->transformed(arg__1, mode)); +} + +QMatrix PythonQtWrapper_QPixmap::static_QPixmap_trueMatrix(const QMatrix& m, int w, int h) +{ + return (QPixmap::trueMatrix(m, w, h)); +} + +QTransform PythonQtWrapper_QPixmap::static_QPixmap_trueMatrix(const QTransform& m, int w, int h) +{ + return (QPixmap::trueMatrix(m, w, h)); +} + +int PythonQtWrapper_QPixmap::width(QPixmap* theWrappedObject) const +{ + return ( theWrappedObject->width()); +} + +QString PythonQtWrapper_QPixmap::py_toString(QPixmap* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QPolygon* PythonQtWrapper_QPolygon::new_QPolygon() +{ +return new QPolygon(); } + +QPolygon* PythonQtWrapper_QPolygon::new_QPolygon(const QPolygon& a) +{ +return new QPolygon(a); } + +QPolygon* PythonQtWrapper_QPolygon::new_QPolygon(const QRect& r, bool closed) +{ +return new QPolygon(r, closed); } + +QPolygon* PythonQtWrapper_QPolygon::new_QPolygon(const QVector& v) +{ +return new QPolygon(v); } + +QPolygon* PythonQtWrapper_QPolygon::new_QPolygon(int size) +{ +return new QPolygon(size); } + +void PythonQtWrapper_QPolygon::append(QPolygon* theWrappedObject, const QPoint& t) +{ + ( theWrappedObject->append(t)); +} + +const QPoint* PythonQtWrapper_QPolygon::at(QPolygon* theWrappedObject, int i) const +{ + return &( theWrappedObject->at(i)); +} + +QRect PythonQtWrapper_QPolygon::boundingRect(QPolygon* theWrappedObject) const +{ + return ( theWrappedObject->boundingRect()); +} + +int PythonQtWrapper_QPolygon::capacity(QPolygon* theWrappedObject) const +{ + return ( theWrappedObject->capacity()); +} + +void PythonQtWrapper_QPolygon::clear(QPolygon* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +bool PythonQtWrapper_QPolygon::contains(QPolygon* theWrappedObject, const QPoint& t) const +{ + return ( theWrappedObject->contains(t)); +} + +bool PythonQtWrapper_QPolygon::containsPoint(QPolygon* theWrappedObject, const QPoint& pt, Qt::FillRule fillRule) const +{ + return ( theWrappedObject->containsPoint(pt, fillRule)); +} + +int PythonQtWrapper_QPolygon::count(QPolygon* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +int PythonQtWrapper_QPolygon::count(QPolygon* theWrappedObject, const QPoint& t) const +{ + return ( theWrappedObject->count(t)); +} + +bool PythonQtWrapper_QPolygon::empty(QPolygon* theWrappedObject) const +{ + return ( theWrappedObject->empty()); +} + +bool PythonQtWrapper_QPolygon::endsWith(QPolygon* theWrappedObject, const QPoint& t) const +{ + return ( theWrappedObject->endsWith(t)); +} + +QVector* PythonQtWrapper_QPolygon::fill(QPolygon* theWrappedObject, const QPoint& t, int size) +{ + return &( theWrappedObject->fill(t, size)); +} + +const QPoint* PythonQtWrapper_QPolygon::first(QPolygon* theWrappedObject) const +{ + return &( theWrappedObject->first()); +} + +QVector PythonQtWrapper_QPolygon::static_QPolygon_fromList(const QList& list) +{ + return (QPolygon::fromList(list)); +} + +int PythonQtWrapper_QPolygon::indexOf(QPolygon* theWrappedObject, const QPoint& t, int from) const +{ + return ( theWrappedObject->indexOf(t, from)); +} + +QPolygon PythonQtWrapper_QPolygon::intersected(QPolygon* theWrappedObject, const QPolygon& r) const +{ + return ( theWrappedObject->intersected(r)); +} + +bool PythonQtWrapper_QPolygon::isEmpty(QPolygon* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +bool PythonQtWrapper_QPolygon::isSharedWith(QPolygon* theWrappedObject, const QVector& other) const +{ + return ( theWrappedObject->isSharedWith(other)); +} + +const QPoint* PythonQtWrapper_QPolygon::last(QPolygon* theWrappedObject) const +{ + return &( theWrappedObject->last()); +} + +int PythonQtWrapper_QPolygon::lastIndexOf(QPolygon* theWrappedObject, const QPoint& t, int from) const +{ + return ( theWrappedObject->lastIndexOf(t, from)); +} + +QVector PythonQtWrapper_QPolygon::mid(QPolygon* theWrappedObject, int pos, int length) const +{ + return ( theWrappedObject->mid(pos, length)); +} + +bool PythonQtWrapper_QPolygon::__ne__(QPolygon* theWrappedObject, const QVector& v) const +{ + return ( (*theWrappedObject)!= v); +} + +QPolygon PythonQtWrapper_QPolygon::__mul__(QPolygon* theWrappedObject, const QMatrix& m) +{ + return ( (*theWrappedObject)* m); +} + +QPolygon PythonQtWrapper_QPolygon::__mul__(QPolygon* theWrappedObject, const QTransform& m) +{ + return ( (*theWrappedObject)* m); +} + +bool PythonQtWrapper_QPolygon::__eq__(QPolygon* theWrappedObject, const QVector& v) const +{ + return ( (*theWrappedObject)== v); +} + +void PythonQtWrapper_QPolygon::pop_back(QPolygon* theWrappedObject) +{ + ( theWrappedObject->pop_back()); +} + +void PythonQtWrapper_QPolygon::pop_front(QPolygon* theWrappedObject) +{ + ( theWrappedObject->pop_front()); +} + +void PythonQtWrapper_QPolygon::prepend(QPolygon* theWrappedObject, const QPoint& t) +{ + ( theWrappedObject->prepend(t)); +} + +void PythonQtWrapper_QPolygon::push_back(QPolygon* theWrappedObject, const QPoint& t) +{ + ( theWrappedObject->push_back(t)); +} + +void PythonQtWrapper_QPolygon::push_front(QPolygon* theWrappedObject, const QPoint& t) +{ + ( theWrappedObject->push_front(t)); +} + +void PythonQtWrapper_QPolygon::remove(QPolygon* theWrappedObject, int i) +{ + ( theWrappedObject->remove(i)); +} + +void PythonQtWrapper_QPolygon::remove(QPolygon* theWrappedObject, int i, int n) +{ + ( theWrappedObject->remove(i, n)); +} + +void PythonQtWrapper_QPolygon::replace(QPolygon* theWrappedObject, int i, const QPoint& t) +{ + ( theWrappedObject->replace(i, t)); +} + +void PythonQtWrapper_QPolygon::reserve(QPolygon* theWrappedObject, int size) +{ + ( theWrappedObject->reserve(size)); +} + +void PythonQtWrapper_QPolygon::resize(QPolygon* theWrappedObject, int size) +{ + ( theWrappedObject->resize(size)); +} + +void PythonQtWrapper_QPolygon::setSharable(QPolygon* theWrappedObject, bool sharable) +{ + ( theWrappedObject->setSharable(sharable)); +} + +int PythonQtWrapper_QPolygon::size(QPolygon* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +void PythonQtWrapper_QPolygon::squeeze(QPolygon* theWrappedObject) +{ + ( theWrappedObject->squeeze()); +} + +bool PythonQtWrapper_QPolygon::startsWith(QPolygon* theWrappedObject, const QPoint& t) const +{ + return ( theWrappedObject->startsWith(t)); +} + +QPolygon PythonQtWrapper_QPolygon::subtracted(QPolygon* theWrappedObject, const QPolygon& r) const +{ + return ( theWrappedObject->subtracted(r)); +} + +void PythonQtWrapper_QPolygon::swap(QPolygon* theWrappedObject, QPolygon& other) +{ + ( theWrappedObject->swap(other)); +} + +QList PythonQtWrapper_QPolygon::toList(QPolygon* theWrappedObject) const +{ + return ( theWrappedObject->toList()); +} + +void PythonQtWrapper_QPolygon::translate(QPolygon* theWrappedObject, const QPoint& offset) +{ + ( theWrappedObject->translate(offset)); +} + +void PythonQtWrapper_QPolygon::translate(QPolygon* theWrappedObject, int dx, int dy) +{ + ( theWrappedObject->translate(dx, dy)); +} + +QPolygon PythonQtWrapper_QPolygon::translated(QPolygon* theWrappedObject, const QPoint& offset) const +{ + return ( theWrappedObject->translated(offset)); +} + +QPolygon PythonQtWrapper_QPolygon::translated(QPolygon* theWrappedObject, int dx, int dy) const +{ + return ( theWrappedObject->translated(dx, dy)); +} + +QPolygon PythonQtWrapper_QPolygon::united(QPolygon* theWrappedObject, const QPolygon& r) const +{ + return ( theWrappedObject->united(r)); +} + +QPoint PythonQtWrapper_QPolygon::value(QPolygon* theWrappedObject, int i) const +{ + return ( theWrappedObject->value(i)); +} + +QPoint PythonQtWrapper_QPolygon::value(QPolygon* theWrappedObject, int i, const QPoint& defaultValue) const +{ + return ( theWrappedObject->value(i, defaultValue)); +} + +QString PythonQtWrapper_QPolygon::py_toString(QPolygon* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QRegion* PythonQtWrapper_QRegion::new_QRegion() +{ +return new QRegion(); } + +QRegion* PythonQtWrapper_QRegion::new_QRegion(const QBitmap& bitmap) +{ +return new QRegion(bitmap); } + +QRegion* PythonQtWrapper_QRegion::new_QRegion(const QPolygon& pa, Qt::FillRule fillRule) +{ +return new QRegion(pa, fillRule); } + +QRegion* PythonQtWrapper_QRegion::new_QRegion(const QRect& r, QRegion::RegionType t) +{ +return new QRegion(r, t); } + +QRegion* PythonQtWrapper_QRegion::new_QRegion(const QRegion& region) +{ +return new QRegion(region); } + +QRegion* PythonQtWrapper_QRegion::new_QRegion(int x, int y, int w, int h, QRegion::RegionType t) +{ +return new QRegion(x, y, w, h, t); } + +QRect PythonQtWrapper_QRegion::boundingRect(QRegion* theWrappedObject) const +{ + return ( theWrappedObject->boundingRect()); +} + +bool PythonQtWrapper_QRegion::contains(QRegion* theWrappedObject, const QPoint& p) const +{ + return ( theWrappedObject->contains(p)); +} + +bool PythonQtWrapper_QRegion::contains(QRegion* theWrappedObject, const QRect& r) const +{ + return ( theWrappedObject->contains(r)); +} + +QRegion PythonQtWrapper_QRegion::intersected(QRegion* theWrappedObject, const QRect& r) const +{ + return ( theWrappedObject->intersected(r)); +} + +QRegion PythonQtWrapper_QRegion::intersected(QRegion* theWrappedObject, const QRegion& r) const +{ + return ( theWrappedObject->intersected(r)); +} + +bool PythonQtWrapper_QRegion::intersects(QRegion* theWrappedObject, const QRect& r) const +{ + return ( theWrappedObject->intersects(r)); +} + +bool PythonQtWrapper_QRegion::intersects(QRegion* theWrappedObject, const QRegion& r) const +{ + return ( theWrappedObject->intersects(r)); +} + +bool PythonQtWrapper_QRegion::isEmpty(QRegion* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +bool PythonQtWrapper_QRegion::isNull(QRegion* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QRegion::__ne__(QRegion* theWrappedObject, const QRegion& r) const +{ + return ( (*theWrappedObject)!= r); +} + +const QRegion PythonQtWrapper_QRegion::__and__(QRegion* theWrappedObject, const QRect& r) const +{ + return ( (*theWrappedObject)& r); +} + +QRegion PythonQtWrapper_QRegion::__mul__(QRegion* theWrappedObject, const QMatrix& m) +{ + return ( (*theWrappedObject)* m); +} + +QRegion PythonQtWrapper_QRegion::__mul__(QRegion* theWrappedObject, const QTransform& m) +{ + return ( (*theWrappedObject)* m); +} + +const QRegion PythonQtWrapper_QRegion::__add__(QRegion* theWrappedObject, const QRect& r) const +{ + return ( (*theWrappedObject)+ r); +} + +bool PythonQtWrapper_QRegion::__eq__(QRegion* theWrappedObject, const QRegion& r) const +{ + return ( (*theWrappedObject)== r); +} + +int PythonQtWrapper_QRegion::rectCount(QRegion* theWrappedObject) const +{ + return ( theWrappedObject->rectCount()); +} + +QVector PythonQtWrapper_QRegion::rects(QRegion* theWrappedObject) const +{ + return ( theWrappedObject->rects()); +} + +void PythonQtWrapper_QRegion::setRects(QRegion* theWrappedObject, const QRect* rect, int num) +{ + ( theWrappedObject->setRects(rect, num)); +} + +QRegion PythonQtWrapper_QRegion::subtracted(QRegion* theWrappedObject, const QRegion& r) const +{ + return ( theWrappedObject->subtracted(r)); +} + +void PythonQtWrapper_QRegion::swap(QRegion* theWrappedObject, QRegion& other) +{ + ( theWrappedObject->swap(other)); +} + +void PythonQtWrapper_QRegion::translate(QRegion* theWrappedObject, const QPoint& p) +{ + ( theWrappedObject->translate(p)); +} + +void PythonQtWrapper_QRegion::translate(QRegion* theWrappedObject, int dx, int dy) +{ + ( theWrappedObject->translate(dx, dy)); +} + +QRegion PythonQtWrapper_QRegion::translated(QRegion* theWrappedObject, const QPoint& p) const +{ + return ( theWrappedObject->translated(p)); +} + +QRegion PythonQtWrapper_QRegion::translated(QRegion* theWrappedObject, int dx, int dy) const +{ + return ( theWrappedObject->translated(dx, dy)); +} + +QRegion PythonQtWrapper_QRegion::united(QRegion* theWrappedObject, const QRect& r) const +{ + return ( theWrappedObject->united(r)); +} + +QRegion PythonQtWrapper_QRegion::united(QRegion* theWrappedObject, const QRegion& r) const +{ + return ( theWrappedObject->united(r)); +} + +QRegion PythonQtWrapper_QRegion::xored(QRegion* theWrappedObject, const QRegion& r) const +{ + return ( theWrappedObject->xored(r)); +} + +QString PythonQtWrapper_QRegion::py_toString(QRegion* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + +#if defined(QT_WIDGETS_LIB) +QSizePolicy* PythonQtWrapper_QSizePolicy::new_QSizePolicy() +{ +return new QSizePolicy(); } + +QSizePolicy* PythonQtWrapper_QSizePolicy::new_QSizePolicy(QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical, QSizePolicy::ControlType type) +{ +return new QSizePolicy(horizontal, vertical, type); } + +QSizePolicy::ControlType PythonQtWrapper_QSizePolicy::controlType(QSizePolicy* theWrappedObject) const +{ + return ( theWrappedObject->controlType()); +} + +Qt::Orientations PythonQtWrapper_QSizePolicy::expandingDirections(QSizePolicy* theWrappedObject) const +{ + return ( theWrappedObject->expandingDirections()); +} + +bool PythonQtWrapper_QSizePolicy::hasHeightForWidth(QSizePolicy* theWrappedObject) const +{ + return ( theWrappedObject->hasHeightForWidth()); +} + +bool PythonQtWrapper_QSizePolicy::hasWidthForHeight(QSizePolicy* theWrappedObject) const +{ + return ( theWrappedObject->hasWidthForHeight()); +} + +QSizePolicy::Policy PythonQtWrapper_QSizePolicy::horizontalPolicy(QSizePolicy* theWrappedObject) const +{ + return ( theWrappedObject->horizontalPolicy()); +} + +int PythonQtWrapper_QSizePolicy::horizontalStretch(QSizePolicy* theWrappedObject) const +{ + return ( theWrappedObject->horizontalStretch()); +} + +bool PythonQtWrapper_QSizePolicy::__ne__(QSizePolicy* theWrappedObject, const QSizePolicy& s) const +{ + return ( (*theWrappedObject)!= s); +} + +bool PythonQtWrapper_QSizePolicy::__eq__(QSizePolicy* theWrappedObject, const QSizePolicy& s) const +{ + return ( (*theWrappedObject)== s); +} + +void PythonQtWrapper_QSizePolicy::setControlType(QSizePolicy* theWrappedObject, QSizePolicy::ControlType type) +{ + ( theWrappedObject->setControlType(type)); +} + +void PythonQtWrapper_QSizePolicy::setHeightForWidth(QSizePolicy* theWrappedObject, bool b) +{ + ( theWrappedObject->setHeightForWidth(b)); +} + +void PythonQtWrapper_QSizePolicy::setHorizontalPolicy(QSizePolicy* theWrappedObject, QSizePolicy::Policy d) +{ + ( theWrappedObject->setHorizontalPolicy(d)); +} + +void PythonQtWrapper_QSizePolicy::setHorizontalStretch(QSizePolicy* theWrappedObject, int stretchFactor) +{ + ( theWrappedObject->setHorizontalStretch(stretchFactor)); +} + +void PythonQtWrapper_QSizePolicy::setVerticalPolicy(QSizePolicy* theWrappedObject, QSizePolicy::Policy d) +{ + ( theWrappedObject->setVerticalPolicy(d)); +} + +void PythonQtWrapper_QSizePolicy::setVerticalStretch(QSizePolicy* theWrappedObject, int stretchFactor) +{ + ( theWrappedObject->setVerticalStretch(stretchFactor)); +} + +void PythonQtWrapper_QSizePolicy::setWidthForHeight(QSizePolicy* theWrappedObject, bool b) +{ + ( theWrappedObject->setWidthForHeight(b)); +} + +void PythonQtWrapper_QSizePolicy::transpose(QSizePolicy* theWrappedObject) +{ + ( theWrappedObject->transpose()); +} + +QSizePolicy::Policy PythonQtWrapper_QSizePolicy::verticalPolicy(QSizePolicy* theWrappedObject) const +{ + return ( theWrappedObject->verticalPolicy()); +} + +int PythonQtWrapper_QSizePolicy::verticalStretch(QSizePolicy* theWrappedObject) const +{ + return ( theWrappedObject->verticalStretch()); +} + +QString PythonQtWrapper_QSizePolicy::py_toString(QSizePolicy* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} +#endif + + +QTextFormat* PythonQtWrapper_QTextFormat::new_QTextFormat() +{ +return new QTextFormat(); } + +QTextFormat* PythonQtWrapper_QTextFormat::new_QTextFormat(const QTextFormat& rhs) +{ +return new QTextFormat(rhs); } + +QTextFormat* PythonQtWrapper_QTextFormat::new_QTextFormat(int type) +{ +return new QTextFormat(type); } + +QBrush PythonQtWrapper_QTextFormat::background(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->background()); +} + +bool PythonQtWrapper_QTextFormat::boolProperty(QTextFormat* theWrappedObject, int propertyId) const +{ + return ( theWrappedObject->boolProperty(propertyId)); +} + +QBrush PythonQtWrapper_QTextFormat::brushProperty(QTextFormat* theWrappedObject, int propertyId) const +{ + return ( theWrappedObject->brushProperty(propertyId)); +} + +void PythonQtWrapper_QTextFormat::clearBackground(QTextFormat* theWrappedObject) +{ + ( theWrappedObject->clearBackground()); +} + +void PythonQtWrapper_QTextFormat::clearForeground(QTextFormat* theWrappedObject) +{ + ( theWrappedObject->clearForeground()); +} + +void PythonQtWrapper_QTextFormat::clearProperty(QTextFormat* theWrappedObject, int propertyId) +{ + ( theWrappedObject->clearProperty(propertyId)); +} + +QColor PythonQtWrapper_QTextFormat::colorProperty(QTextFormat* theWrappedObject, int propertyId) const +{ + return ( theWrappedObject->colorProperty(propertyId)); +} + +qreal PythonQtWrapper_QTextFormat::doubleProperty(QTextFormat* theWrappedObject, int propertyId) const +{ + return ( theWrappedObject->doubleProperty(propertyId)); +} + +QBrush PythonQtWrapper_QTextFormat::foreground(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->foreground()); +} + +bool PythonQtWrapper_QTextFormat::hasProperty(QTextFormat* theWrappedObject, int propertyId) const +{ + return ( theWrappedObject->hasProperty(propertyId)); +} + +int PythonQtWrapper_QTextFormat::intProperty(QTextFormat* theWrappedObject, int propertyId) const +{ + return ( theWrappedObject->intProperty(propertyId)); +} + +bool PythonQtWrapper_QTextFormat::isBlockFormat(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->isBlockFormat()); +} + +bool PythonQtWrapper_QTextFormat::isCharFormat(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->isCharFormat()); +} + +bool PythonQtWrapper_QTextFormat::isFrameFormat(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->isFrameFormat()); +} + +bool PythonQtWrapper_QTextFormat::isImageFormat(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->isImageFormat()); +} + +bool PythonQtWrapper_QTextFormat::isListFormat(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->isListFormat()); +} + +bool PythonQtWrapper_QTextFormat::isTableCellFormat(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->isTableCellFormat()); +} + +bool PythonQtWrapper_QTextFormat::isTableFormat(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->isTableFormat()); +} + +bool PythonQtWrapper_QTextFormat::isValid(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +Qt::LayoutDirection PythonQtWrapper_QTextFormat::layoutDirection(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->layoutDirection()); +} + +QTextLength PythonQtWrapper_QTextFormat::lengthProperty(QTextFormat* theWrappedObject, int propertyId) const +{ + return ( theWrappedObject->lengthProperty(propertyId)); +} + +QVector PythonQtWrapper_QTextFormat::lengthVectorProperty(QTextFormat* theWrappedObject, int propertyId) const +{ + return ( theWrappedObject->lengthVectorProperty(propertyId)); +} + +void PythonQtWrapper_QTextFormat::merge(QTextFormat* theWrappedObject, const QTextFormat& other) +{ + ( theWrappedObject->merge(other)); +} + +int PythonQtWrapper_QTextFormat::objectIndex(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->objectIndex()); +} + +int PythonQtWrapper_QTextFormat::objectType(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->objectType()); +} + +bool PythonQtWrapper_QTextFormat::__ne__(QTextFormat* theWrappedObject, const QTextFormat& rhs) const +{ + return ( (*theWrappedObject)!= rhs); +} + +bool PythonQtWrapper_QTextFormat::__eq__(QTextFormat* theWrappedObject, const QTextFormat& rhs) const +{ + return ( (*theWrappedObject)== rhs); +} + +QPen PythonQtWrapper_QTextFormat::penProperty(QTextFormat* theWrappedObject, int propertyId) const +{ + return ( theWrappedObject->penProperty(propertyId)); +} + +QMap PythonQtWrapper_QTextFormat::properties(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->properties()); +} + +QVariant PythonQtWrapper_QTextFormat::property(QTextFormat* theWrappedObject, int propertyId) const +{ + return ( theWrappedObject->property(propertyId)); +} + +int PythonQtWrapper_QTextFormat::propertyCount(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->propertyCount()); +} + +void PythonQtWrapper_QTextFormat::setBackground(QTextFormat* theWrappedObject, const QBrush& brush) +{ + ( theWrappedObject->setBackground(brush)); +} + +void PythonQtWrapper_QTextFormat::setForeground(QTextFormat* theWrappedObject, const QBrush& brush) +{ + ( theWrappedObject->setForeground(brush)); +} + +void PythonQtWrapper_QTextFormat::setLayoutDirection(QTextFormat* theWrappedObject, Qt::LayoutDirection direction) +{ + ( theWrappedObject->setLayoutDirection(direction)); +} + +void PythonQtWrapper_QTextFormat::setObjectIndex(QTextFormat* theWrappedObject, int object) +{ + ( theWrappedObject->setObjectIndex(object)); +} + +void PythonQtWrapper_QTextFormat::setObjectType(QTextFormat* theWrappedObject, int type) +{ + ( theWrappedObject->setObjectType(type)); +} + +void PythonQtWrapper_QTextFormat::setProperty(QTextFormat* theWrappedObject, int propertyId, const QVariant& value) +{ + ( theWrappedObject->setProperty(propertyId, value)); +} + +void PythonQtWrapper_QTextFormat::setProperty(QTextFormat* theWrappedObject, int propertyId, const QVector& lengths) +{ + ( theWrappedObject->setProperty(propertyId, lengths)); +} + +QString PythonQtWrapper_QTextFormat::stringProperty(QTextFormat* theWrappedObject, int propertyId) const +{ + return ( theWrappedObject->stringProperty(propertyId)); +} + +void PythonQtWrapper_QTextFormat::swap(QTextFormat* theWrappedObject, QTextFormat& other) +{ + ( theWrappedObject->swap(other)); +} + +QTextBlockFormat PythonQtWrapper_QTextFormat::toBlockFormat(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->toBlockFormat()); +} + +QTextCharFormat PythonQtWrapper_QTextFormat::toCharFormat(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->toCharFormat()); +} + +QTextFrameFormat PythonQtWrapper_QTextFormat::toFrameFormat(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->toFrameFormat()); +} + +QTextImageFormat PythonQtWrapper_QTextFormat::toImageFormat(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->toImageFormat()); +} + +QTextListFormat PythonQtWrapper_QTextFormat::toListFormat(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->toListFormat()); +} + +QTextTableCellFormat PythonQtWrapper_QTextFormat::toTableCellFormat(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->toTableCellFormat()); +} + +QTextTableFormat PythonQtWrapper_QTextFormat::toTableFormat(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->toTableFormat()); +} + +int PythonQtWrapper_QTextFormat::type(QTextFormat* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + +QString PythonQtWrapper_QTextFormat::py_toString(QTextFormat* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QTextLength* PythonQtWrapper_QTextLength::new_QTextLength() +{ +return new QTextLength(); } + +QTextLength* PythonQtWrapper_QTextLength::new_QTextLength(QTextLength::Type type, qreal value) +{ +return new QTextLength(type, value); } + +bool PythonQtWrapper_QTextLength::__ne__(QTextLength* theWrappedObject, const QTextLength& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QTextLength::__eq__(QTextLength* theWrappedObject, const QTextLength& other) const +{ + return ( (*theWrappedObject)== other); +} + +qreal PythonQtWrapper_QTextLength::rawValue(QTextLength* theWrappedObject) const +{ + return ( theWrappedObject->rawValue()); +} + +QTextLength::Type PythonQtWrapper_QTextLength::type(QTextLength* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + +qreal PythonQtWrapper_QTextLength::value(QTextLength* theWrappedObject, qreal maximumLength) const +{ + return ( theWrappedObject->value(maximumLength)); +} + +QString PythonQtWrapper_QTextLength::py_toString(QTextLength* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + diff --git a/generated_cpp_50/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.h b/generated_cpp_50/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.h new file mode 100644 index 00000000..7c710b3a --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.h @@ -0,0 +1,1171 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Only included if QtWidgets is wrapped +#if defined(QT_WIDGETS_LIB) +#include +#endif + +class PythonQtShell_QBitmap : public QBitmap +{ +public: + PythonQtShell_QBitmap():QBitmap(),_wrapper(NULL) {}; + PythonQtShell_QBitmap(const QPixmap& arg__1):QBitmap(arg__1),_wrapper(NULL) {}; + PythonQtShell_QBitmap(const QSize& arg__1):QBitmap(arg__1),_wrapper(NULL) {}; + PythonQtShell_QBitmap(const QString& fileName, const char* format = 0):QBitmap(fileName, format),_wrapper(NULL) {}; + PythonQtShell_QBitmap(int w, int h):QBitmap(w, h),_wrapper(NULL) {}; + + ~PythonQtShell_QBitmap(); + +virtual int devType() const; +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QPaintEngine* paintEngine() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QBitmap : public QObject +{ Q_OBJECT +public: +public slots: +QBitmap* new_QBitmap(); +QBitmap* new_QBitmap(const QPixmap& arg__1); +QBitmap* new_QBitmap(const QSize& arg__1); +QBitmap* new_QBitmap(const QString& fileName, const char* format = 0); +QBitmap* new_QBitmap(int w, int h); +QBitmap* new_QBitmap(const QBitmap& other) { +PythonQtShell_QBitmap* a = new PythonQtShell_QBitmap(); +*((QBitmap*)a) = other; +return a; } +void delete_QBitmap(QBitmap* obj) { delete obj; } + void clear(QBitmap* theWrappedObject); + QBitmap static_QBitmap_fromImage(const QImage& image, Qt::ImageConversionFlags flags = Qt::AutoColor); + void swap(QBitmap* theWrappedObject, QBitmap& other); + QBitmap transformed(QBitmap* theWrappedObject, const QMatrix& arg__1) const; + QBitmap transformed(QBitmap* theWrappedObject, const QTransform& matrix) const; + bool __nonzero__(QBitmap* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QBrush : public QObject +{ Q_OBJECT +public: +public slots: +QBrush* new_QBrush(); +QBrush* new_QBrush(Qt::BrushStyle bs); +QBrush* new_QBrush(Qt::GlobalColor color, const QPixmap& pixmap); +QBrush* new_QBrush(const QBrush& brush); +QBrush* new_QBrush(const QColor& color, Qt::BrushStyle bs = Qt::SolidPattern); +QBrush* new_QBrush(const QColor& color, const QPixmap& pixmap); +QBrush* new_QBrush(const QGradient& gradient); +QBrush* new_QBrush(const QImage& image); +QBrush* new_QBrush(const QPixmap& pixmap); +void delete_QBrush(QBrush* obj) { delete obj; } + const QColor* color(QBrush* theWrappedObject) const; + const QGradient* gradient(QBrush* theWrappedObject) const; + bool isOpaque(QBrush* theWrappedObject) const; + const QMatrix* matrix(QBrush* theWrappedObject) const; + bool __ne__(QBrush* theWrappedObject, const QBrush& b) const; + bool __eq__(QBrush* theWrappedObject, const QBrush& b) const; + void setColor(QBrush* theWrappedObject, Qt::GlobalColor color); + void setColor(QBrush* theWrappedObject, const QColor& color); + void setMatrix(QBrush* theWrappedObject, const QMatrix& mat); + void setStyle(QBrush* theWrappedObject, Qt::BrushStyle arg__1); + void setTexture(QBrush* theWrappedObject, const QPixmap& pixmap); + void setTextureImage(QBrush* theWrappedObject, const QImage& image); + void setTransform(QBrush* theWrappedObject, const QTransform& arg__1); + Qt::BrushStyle style(QBrush* theWrappedObject) const; + void swap(QBrush* theWrappedObject, QBrush& other); + QPixmap texture(QBrush* theWrappedObject) const; + QImage textureImage(QBrush* theWrappedObject) const; + QTransform transform(QBrush* theWrappedObject) const; + QString py_toString(QBrush*); +}; + + + + + +class PythonQtWrapper_QColor : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Spec ) +enum Spec{ + Invalid = QColor::Invalid, Rgb = QColor::Rgb, Hsv = QColor::Hsv, Cmyk = QColor::Cmyk, Hsl = QColor::Hsl}; +public slots: +QColor* new_QColor(); +QColor* new_QColor(Qt::GlobalColor color); +QColor* new_QColor(const QColor& color); +QColor* new_QColor(const QString& name); +QColor* new_QColor(int r, int g, int b, int a = 255); +QColor* new_QColor(unsigned int rgb); +void delete_QColor(QColor* obj) { delete obj; } + int alpha(QColor* theWrappedObject) const; + qreal alphaF(QColor* theWrappedObject) const; + int black(QColor* theWrappedObject) const; + qreal blackF(QColor* theWrappedObject) const; + int blue(QColor* theWrappedObject) const; + qreal blueF(QColor* theWrappedObject) const; + QStringList static_QColor_colorNames(); + QColor convertTo(QColor* theWrappedObject, QColor::Spec colorSpec) const; + int cyan(QColor* theWrappedObject) const; + qreal cyanF(QColor* theWrappedObject) const; + QColor darker(QColor* theWrappedObject, int f = 200) const; + QColor static_QColor_fromCmyk(int c, int m, int y, int k, int a = 255); + QColor static_QColor_fromCmykF(qreal c, qreal m, qreal y, qreal k, qreal a = 1.0); + QColor static_QColor_fromHsl(int h, int s, int l, int a = 255); + QColor static_QColor_fromHslF(qreal h, qreal s, qreal l, qreal a = 1.0); + QColor static_QColor_fromHsv(int h, int s, int v, int a = 255); + QColor static_QColor_fromHsvF(qreal h, qreal s, qreal v, qreal a = 1.0); + QColor static_QColor_fromRgb(int r, int g, int b, int a = 255); + QColor static_QColor_fromRgb(unsigned int rgb); + QColor static_QColor_fromRgbF(qreal r, qreal g, qreal b, qreal a = 1.0); + QColor static_QColor_fromRgba(unsigned int rgba); + void getHsl(QColor* theWrappedObject, int* h, int* s, int* l, int* a = 0) const; + void getHslF(QColor* theWrappedObject, qreal* h, qreal* s, qreal* l, qreal* a = 0) const; + int green(QColor* theWrappedObject) const; + qreal greenF(QColor* theWrappedObject) const; + int hslHue(QColor* theWrappedObject) const; + qreal hslHueF(QColor* theWrappedObject) const; + int hslSaturation(QColor* theWrappedObject) const; + qreal hslSaturationF(QColor* theWrappedObject) const; + int hsvHue(QColor* theWrappedObject) const; + qreal hsvHueF(QColor* theWrappedObject) const; + int hsvSaturation(QColor* theWrappedObject) const; + qreal hsvSaturationF(QColor* theWrappedObject) const; + int hue(QColor* theWrappedObject) const; + qreal hueF(QColor* theWrappedObject) const; + bool isValid(QColor* theWrappedObject) const; + bool static_QColor_isValidColor(const QString& name); + QColor lighter(QColor* theWrappedObject, int f = 150) const; + int lightness(QColor* theWrappedObject) const; + qreal lightnessF(QColor* theWrappedObject) const; + int magenta(QColor* theWrappedObject) const; + qreal magentaF(QColor* theWrappedObject) const; + QString name(QColor* theWrappedObject) const; + bool __ne__(QColor* theWrappedObject, const QColor& c) const; + bool __eq__(QColor* theWrappedObject, const QColor& c) const; + int red(QColor* theWrappedObject) const; + qreal redF(QColor* theWrappedObject) const; + unsigned int rgb(QColor* theWrappedObject) const; + unsigned int rgba(QColor* theWrappedObject) const; + int saturation(QColor* theWrappedObject) const; + qreal saturationF(QColor* theWrappedObject) const; + void setAlpha(QColor* theWrappedObject, int alpha); + void setAlphaF(QColor* theWrappedObject, qreal alpha); + void setBlue(QColor* theWrappedObject, int blue); + void setBlueF(QColor* theWrappedObject, qreal blue); + void setCmyk(QColor* theWrappedObject, int c, int m, int y, int k, int a = 255); + void setCmykF(QColor* theWrappedObject, qreal c, qreal m, qreal y, qreal k, qreal a = 1.0); + void setGreen(QColor* theWrappedObject, int green); + void setGreenF(QColor* theWrappedObject, qreal green); + void setHsl(QColor* theWrappedObject, int h, int s, int l, int a = 255); + void setHslF(QColor* theWrappedObject, qreal h, qreal s, qreal l, qreal a = 1.0); + void setHsv(QColor* theWrappedObject, int h, int s, int v, int a = 255); + void setHsvF(QColor* theWrappedObject, qreal h, qreal s, qreal v, qreal a = 1.0); + void setNamedColor(QColor* theWrappedObject, const QString& name); + void setRed(QColor* theWrappedObject, int red); + void setRedF(QColor* theWrappedObject, qreal red); + void setRgb(QColor* theWrappedObject, int r, int g, int b, int a = 255); + void setRgb(QColor* theWrappedObject, unsigned int rgb); + void setRgbF(QColor* theWrappedObject, qreal r, qreal g, qreal b, qreal a = 1.0); + void setRgba(QColor* theWrappedObject, unsigned int rgba); + QColor::Spec spec(QColor* theWrappedObject) const; + QColor toCmyk(QColor* theWrappedObject) const; + QColor toHsl(QColor* theWrappedObject) const; + QColor toHsv(QColor* theWrappedObject) const; + QColor toRgb(QColor* theWrappedObject) const; + int value(QColor* theWrappedObject) const; + qreal valueF(QColor* theWrappedObject) const; + int yellow(QColor* theWrappedObject) const; + qreal yellowF(QColor* theWrappedObject) const; + QString py_toString(QColor*); +}; + + + + + +class PythonQtWrapper_QCursor : public QObject +{ Q_OBJECT +public: +public slots: +QCursor* new_QCursor(); +QCursor* new_QCursor(Qt::CursorShape shape); +QCursor* new_QCursor(const QBitmap& bitmap, const QBitmap& mask, int hotX = -1, int hotY = -1); +QCursor* new_QCursor(const QCursor& cursor); +QCursor* new_QCursor(const QPixmap& pixmap, int hotX = -1, int hotY = -1); +void delete_QCursor(QCursor* obj) { delete obj; } + const QBitmap* bitmap(QCursor* theWrappedObject) const; + QPoint hotSpot(QCursor* theWrappedObject) const; + const QBitmap* mask(QCursor* theWrappedObject) const; + QPixmap pixmap(QCursor* theWrappedObject) const; + QPoint static_QCursor_pos(); + void static_QCursor_setPos(const QPoint& p); + void static_QCursor_setPos(int x, int y); + void setShape(QCursor* theWrappedObject, Qt::CursorShape newShape); + Qt::CursorShape shape(QCursor* theWrappedObject) const; + QString py_toString(QCursor*); +}; + + + + + +class PythonQtWrapper_QFont : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleHint Capitalization StyleStrategy SpacingType Style Weight Stretch ) +enum StyleHint{ + Helvetica = QFont::Helvetica, SansSerif = QFont::SansSerif, Times = QFont::Times, Serif = QFont::Serif, Courier = QFont::Courier, TypeWriter = QFont::TypeWriter, OldEnglish = QFont::OldEnglish, Decorative = QFont::Decorative, System = QFont::System, AnyStyle = QFont::AnyStyle, Cursive = QFont::Cursive, Monospace = QFont::Monospace, Fantasy = QFont::Fantasy}; +enum Capitalization{ + MixedCase = QFont::MixedCase, AllUppercase = QFont::AllUppercase, AllLowercase = QFont::AllLowercase, SmallCaps = QFont::SmallCaps, Capitalize = QFont::Capitalize}; +enum StyleStrategy{ + PreferDefault = QFont::PreferDefault, PreferBitmap = QFont::PreferBitmap, PreferDevice = QFont::PreferDevice, PreferOutline = QFont::PreferOutline, ForceOutline = QFont::ForceOutline, PreferMatch = QFont::PreferMatch, PreferQuality = QFont::PreferQuality, PreferAntialias = QFont::PreferAntialias, NoAntialias = QFont::NoAntialias, OpenGLCompatible = QFont::OpenGLCompatible, ForceIntegerMetrics = QFont::ForceIntegerMetrics, NoFontMerging = QFont::NoFontMerging}; +enum SpacingType{ + PercentageSpacing = QFont::PercentageSpacing, AbsoluteSpacing = QFont::AbsoluteSpacing}; +enum Style{ + StyleNormal = QFont::StyleNormal, StyleItalic = QFont::StyleItalic, StyleOblique = QFont::StyleOblique}; +enum Weight{ + Light = QFont::Light, Normal = QFont::Normal, DemiBold = QFont::DemiBold, Bold = QFont::Bold, Black = QFont::Black}; +enum Stretch{ + UltraCondensed = QFont::UltraCondensed, ExtraCondensed = QFont::ExtraCondensed, Condensed = QFont::Condensed, SemiCondensed = QFont::SemiCondensed, Unstretched = QFont::Unstretched, SemiExpanded = QFont::SemiExpanded, Expanded = QFont::Expanded, ExtraExpanded = QFont::ExtraExpanded, UltraExpanded = QFont::UltraExpanded}; +public slots: +QFont* new_QFont(); +QFont* new_QFont(const QFont& arg__1); +QFont* new_QFont(const QFont& arg__1, QPaintDevice* pd); +QFont* new_QFont(const QString& family, int pointSize = -1, int weight = -1, bool italic = false); +void delete_QFont(QFont* obj) { delete obj; } + bool bold(QFont* theWrappedObject) const; + void static_QFont_cacheStatistics(); + QFont::Capitalization capitalization(QFont* theWrappedObject) const; + void static_QFont_cleanup(); + QString defaultFamily(QFont* theWrappedObject) const; + bool exactMatch(QFont* theWrappedObject) const; + QString family(QFont* theWrappedObject) const; + bool fixedPitch(QFont* theWrappedObject) const; + bool fromString(QFont* theWrappedObject, const QString& arg__1); + void static_QFont_initialize(); + void static_QFont_insertSubstitution(const QString& arg__1, const QString& arg__2); + void static_QFont_insertSubstitutions(const QString& arg__1, const QStringList& arg__2); + bool isCopyOf(QFont* theWrappedObject, const QFont& arg__1) const; + bool italic(QFont* theWrappedObject) const; + bool kerning(QFont* theWrappedObject) const; + QString key(QFont* theWrappedObject) const; + QString lastResortFamily(QFont* theWrappedObject) const; + QString lastResortFont(QFont* theWrappedObject) const; + qreal letterSpacing(QFont* theWrappedObject) const; + QFont::SpacingType letterSpacingType(QFont* theWrappedObject) const; + bool __ne__(QFont* theWrappedObject, const QFont& arg__1) const; + bool __lt__(QFont* theWrappedObject, const QFont& arg__1) const; + bool __eq__(QFont* theWrappedObject, const QFont& arg__1) const; + bool overline(QFont* theWrappedObject) const; + int pixelSize(QFont* theWrappedObject) const; + int pointSize(QFont* theWrappedObject) const; + qreal pointSizeF(QFont* theWrappedObject) const; + bool rawMode(QFont* theWrappedObject) const; + QString rawName(QFont* theWrappedObject) const; + void static_QFont_removeSubstitutions(const QString& arg__1); + uint resolve(QFont* theWrappedObject) const; + QFont resolve(QFont* theWrappedObject, const QFont& arg__1) const; + void resolve(QFont* theWrappedObject, uint mask); + void setBold(QFont* theWrappedObject, bool arg__1); + void setCapitalization(QFont* theWrappedObject, QFont::Capitalization arg__1); + void setFamily(QFont* theWrappedObject, const QString& arg__1); + void setFixedPitch(QFont* theWrappedObject, bool arg__1); + void setItalic(QFont* theWrappedObject, bool b); + void setKerning(QFont* theWrappedObject, bool arg__1); + void setLetterSpacing(QFont* theWrappedObject, QFont::SpacingType type, qreal spacing); + void setOverline(QFont* theWrappedObject, bool arg__1); + void setPixelSize(QFont* theWrappedObject, int arg__1); + void setPointSize(QFont* theWrappedObject, int arg__1); + void setPointSizeF(QFont* theWrappedObject, qreal arg__1); + void setRawMode(QFont* theWrappedObject, bool arg__1); + void setRawName(QFont* theWrappedObject, const QString& arg__1); + void setStretch(QFont* theWrappedObject, int arg__1); + void setStrikeOut(QFont* theWrappedObject, bool arg__1); + void setStyle(QFont* theWrappedObject, QFont::Style style); + void setStyleHint(QFont* theWrappedObject, QFont::StyleHint arg__1, QFont::StyleStrategy arg__2 = QFont::PreferDefault); + void setStyleName(QFont* theWrappedObject, const QString& arg__1); + void setStyleStrategy(QFont* theWrappedObject, QFont::StyleStrategy s); + void setUnderline(QFont* theWrappedObject, bool arg__1); + void setWeight(QFont* theWrappedObject, int arg__1); + void setWordSpacing(QFont* theWrappedObject, qreal spacing); + int stretch(QFont* theWrappedObject) const; + bool strikeOut(QFont* theWrappedObject) const; + QFont::Style style(QFont* theWrappedObject) const; + QFont::StyleHint styleHint(QFont* theWrappedObject) const; + QString styleName(QFont* theWrappedObject) const; + QFont::StyleStrategy styleStrategy(QFont* theWrappedObject) const; + QString static_QFont_substitute(const QString& arg__1); + QStringList static_QFont_substitutes(const QString& arg__1); + QStringList static_QFont_substitutions(); + void swap(QFont* theWrappedObject, QFont& other); + QString toString(QFont* theWrappedObject) const; + bool underline(QFont* theWrappedObject) const; + int weight(QFont* theWrappedObject) const; + qreal wordSpacing(QFont* theWrappedObject) const; + QString py_toString(QFont*); +}; + + + + + +class PythonQtWrapper_QIcon : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Mode State ) +enum Mode{ + Normal = QIcon::Normal, Disabled = QIcon::Disabled, Active = QIcon::Active, Selected = QIcon::Selected}; +enum State{ + On = QIcon::On, Off = QIcon::Off}; +public slots: +QIcon* new_QIcon(); +QIcon* new_QIcon(QIconEngine* engine); +QIcon* new_QIcon(const QIcon& other); +QIcon* new_QIcon(const QPixmap& pixmap); +QIcon* new_QIcon(const QString& fileName); +void delete_QIcon(QIcon* obj) { delete obj; } + QSize actualSize(QIcon* theWrappedObject, const QSize& size, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const; + void addFile(QIcon* theWrappedObject, const QString& fileName, const QSize& size = QSize(), QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off); + void addPixmap(QIcon* theWrappedObject, const QPixmap& pixmap, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off); + QList availableSizes(QIcon* theWrappedObject, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const; + qint64 cacheKey(QIcon* theWrappedObject) const; + QIcon static_QIcon_fromTheme(const QString& name, const QIcon& fallback = QIcon()); + bool static_QIcon_hasThemeIcon(const QString& name); + bool isNull(QIcon* theWrappedObject) const; + QString name(QIcon* theWrappedObject) const; + void paint(QIcon* theWrappedObject, QPainter* painter, const QRect& rect, Qt::Alignment alignment = Qt::AlignCenter, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const; + void paint(QIcon* theWrappedObject, QPainter* painter, int x, int y, int w, int h, Qt::Alignment alignment = Qt::AlignCenter, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const; + QPixmap pixmap(QIcon* theWrappedObject, const QSize& size, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const; + QPixmap pixmap(QIcon* theWrappedObject, int extent, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const; + QPixmap pixmap(QIcon* theWrappedObject, int w, int h, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const; + void static_QIcon_setThemeName(const QString& path); + void static_QIcon_setThemeSearchPaths(const QStringList& searchpath); + void swap(QIcon* theWrappedObject, QIcon& other); + QString static_QIcon_themeName(); + QStringList static_QIcon_themeSearchPaths(); + QString py_toString(QIcon*); + bool __nonzero__(QIcon* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtShell_QImage : public QImage +{ +public: + PythonQtShell_QImage():QImage(),_wrapper(NULL) {}; + PythonQtShell_QImage(const QImage& arg__1):QImage(arg__1),_wrapper(NULL) {}; + PythonQtShell_QImage(const QSize& size, QImage::Format format):QImage(size, format),_wrapper(NULL) {}; + PythonQtShell_QImage(const QString& fileName, const char* format = 0):QImage(fileName, format),_wrapper(NULL) {}; + PythonQtShell_QImage(int width, int height, QImage::Format format):QImage(width, height, format),_wrapper(NULL) {}; + + ~PythonQtShell_QImage(); + +virtual int devType() const; +virtual void initPainter(QPainter* painter) const; +virtual int metric(QPaintDevice::PaintDeviceMetric metric) const; +virtual QPaintEngine* paintEngine() const; +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual QPainter* sharedPainter() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QImage : public QImage +{ public: +inline int promoted_devType() const { return QImage::devType(); } +inline int promoted_metric(QPaintDevice::PaintDeviceMetric metric) const { return QImage::metric(metric); } +inline QPaintEngine* promoted_paintEngine() const { return QImage::paintEngine(); } +}; + +class PythonQtWrapper_QImage : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Format InvertMode ) +enum Format{ + Format_Invalid = QImage::Format_Invalid, Format_Mono = QImage::Format_Mono, Format_MonoLSB = QImage::Format_MonoLSB, Format_Indexed8 = QImage::Format_Indexed8, Format_RGB32 = QImage::Format_RGB32, Format_ARGB32 = QImage::Format_ARGB32, Format_ARGB32_Premultiplied = QImage::Format_ARGB32_Premultiplied, Format_RGB16 = QImage::Format_RGB16, Format_ARGB8565_Premultiplied = QImage::Format_ARGB8565_Premultiplied, Format_RGB666 = QImage::Format_RGB666, Format_ARGB6666_Premultiplied = QImage::Format_ARGB6666_Premultiplied, Format_RGB555 = QImage::Format_RGB555, Format_ARGB8555_Premultiplied = QImage::Format_ARGB8555_Premultiplied, Format_RGB888 = QImage::Format_RGB888, Format_RGB444 = QImage::Format_RGB444, Format_ARGB4444_Premultiplied = QImage::Format_ARGB4444_Premultiplied, NImageFormats = QImage::NImageFormats}; +enum InvertMode{ + InvertRgb = QImage::InvertRgb, InvertRgba = QImage::InvertRgba}; +public slots: +QImage* new_QImage(); +QImage* new_QImage(const QImage& arg__1); +QImage* new_QImage(const QSize& size, QImage::Format format); +QImage* new_QImage(const QString& fileName, const char* format = 0); +QImage* new_QImage(int width, int height, QImage::Format format); +void delete_QImage(QImage* obj) { delete obj; } + bool allGray(QImage* theWrappedObject) const; + QImage alphaChannel(QImage* theWrappedObject) const; + int bitPlaneCount(QImage* theWrappedObject) const; + int byteCount(QImage* theWrappedObject) const; + int bytesPerLine(QImage* theWrappedObject) const; + qint64 cacheKey(QImage* theWrappedObject) const; + unsigned int color(QImage* theWrappedObject, int i) const; + int colorCount(QImage* theWrappedObject) const; + QVector colorTable(QImage* theWrappedObject) const; + const uchar* constBits(QImage* theWrappedObject) const; + const uchar* constScanLine(QImage* theWrappedObject, int arg__1) const; + QImage convertToFormat(QImage* theWrappedObject, QImage::Format f, Qt::ImageConversionFlags flags = Qt::AutoColor) const; + QImage convertToFormat(QImage* theWrappedObject, QImage::Format f, const QVector& colorTable, Qt::ImageConversionFlags flags = Qt::AutoColor) const; + QImage copy(QImage* theWrappedObject, const QRect& rect = QRect()) const; + QImage copy(QImage* theWrappedObject, int x, int y, int w, int h) const; + QImage createAlphaMask(QImage* theWrappedObject, Qt::ImageConversionFlags flags = Qt::AutoColor) const; + QImage createHeuristicMask(QImage* theWrappedObject, bool clipTight = true) const; + QImage createMaskFromColor(QImage* theWrappedObject, unsigned int color, Qt::MaskMode mode = Qt::MaskInColor) const; + int depth(QImage* theWrappedObject) const; + int devType(QImage* theWrappedObject) const; + qreal devicePixelRatio(QImage* theWrappedObject) const; + int dotsPerMeterX(QImage* theWrappedObject) const; + int dotsPerMeterY(QImage* theWrappedObject) const; + void fill(QImage* theWrappedObject, Qt::GlobalColor color); + void fill(QImage* theWrappedObject, const QColor& color); + void fill(QImage* theWrappedObject, uint pixel); + QImage::Format format(QImage* theWrappedObject) const; + QImage static_QImage_fromData(const QByteArray& data, const char* format = 0); + bool hasAlphaChannel(QImage* theWrappedObject) const; + int height(QImage* theWrappedObject) const; + void invertPixels(QImage* theWrappedObject, QImage::InvertMode arg__1 = QImage::InvertRgb); + bool isGrayscale(QImage* theWrappedObject) const; + bool isNull(QImage* theWrappedObject) const; + bool load(QImage* theWrappedObject, QIODevice* device, const char* format); + bool load(QImage* theWrappedObject, const QString& fileName, const char* format = 0); + bool loadFromData(QImage* theWrappedObject, const QByteArray& data, const char* aformat = 0); + int metric(QImage* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const; + QImage mirrored(QImage* theWrappedObject, bool horizontally = false, bool vertically = true) const; + QPoint offset(QImage* theWrappedObject) const; + bool __ne__(QImage* theWrappedObject, const QImage& arg__1) const; + bool __eq__(QImage* theWrappedObject, const QImage& arg__1) const; + QPaintEngine* paintEngine(QImage* theWrappedObject) const; + unsigned int pixel(QImage* theWrappedObject, const QPoint& pt) const; + unsigned int pixel(QImage* theWrappedObject, int x, int y) const; + int pixelIndex(QImage* theWrappedObject, const QPoint& pt) const; + int pixelIndex(QImage* theWrappedObject, int x, int y) const; + QRect rect(QImage* theWrappedObject) const; + QImage rgbSwapped(QImage* theWrappedObject) const; + bool save(QImage* theWrappedObject, QIODevice* device, const char* format = 0, int quality = -1) const; + bool save(QImage* theWrappedObject, const QString& fileName, const char* format = 0, int quality = -1) const; + QImage scaled(QImage* theWrappedObject, const QSize& s, Qt::AspectRatioMode aspectMode = Qt::IgnoreAspectRatio, Qt::TransformationMode mode = Qt::FastTransformation) const; + QImage scaled(QImage* theWrappedObject, int w, int h, Qt::AspectRatioMode aspectMode = Qt::IgnoreAspectRatio, Qt::TransformationMode mode = Qt::FastTransformation) const; + QImage scaledToHeight(QImage* theWrappedObject, int h, Qt::TransformationMode mode = Qt::FastTransformation) const; + QImage scaledToWidth(QImage* theWrappedObject, int w, Qt::TransformationMode mode = Qt::FastTransformation) const; + void setAlphaChannel(QImage* theWrappedObject, const QImage& alphaChannel); + void setColor(QImage* theWrappedObject, int i, unsigned int c); + void setColorCount(QImage* theWrappedObject, int arg__1); + void setDevicePixelRatio(QImage* theWrappedObject, qreal scaleFactor); + void setDotsPerMeterX(QImage* theWrappedObject, int arg__1); + void setDotsPerMeterY(QImage* theWrappedObject, int arg__1); + void setOffset(QImage* theWrappedObject, const QPoint& arg__1); + void setPixel(QImage* theWrappedObject, const QPoint& pt, uint index_or_rgb); + void setPixel(QImage* theWrappedObject, int x, int y, uint index_or_rgb); + void setText(QImage* theWrappedObject, const QString& key, const QString& value); + QSize size(QImage* theWrappedObject) const; + void swap(QImage* theWrappedObject, QImage& other); + QString text(QImage* theWrappedObject, const QString& key = QString()) const; + QStringList textKeys(QImage* theWrappedObject) const; + QImage transformed(QImage* theWrappedObject, const QMatrix& matrix, Qt::TransformationMode mode = Qt::FastTransformation) const; + QImage transformed(QImage* theWrappedObject, const QTransform& matrix, Qt::TransformationMode mode = Qt::FastTransformation) const; + QMatrix static_QImage_trueMatrix(const QMatrix& arg__1, int w, int h); + QTransform static_QImage_trueMatrix(const QTransform& arg__1, int w, int h); + bool valid(QImage* theWrappedObject, const QPoint& pt) const; + bool valid(QImage* theWrappedObject, int x, int y) const; + int width(QImage* theWrappedObject) const; + QString py_toString(QImage*); + bool __nonzero__(QImage* obj) { return !obj->isNull(); } + +QImage* new_QImage( const uchar * data, int width, int height, QImage::Format format ) +{ + QImage* image = new QImage(width, height, format); + memcpy(image->bits(), data, image->byteCount()); + return image; +} + +}; + + + + + +class PythonQtWrapper_QKeySequence : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StandardKey SequenceFormat SequenceMatch ) +enum StandardKey{ + UnknownKey = QKeySequence::UnknownKey, HelpContents = QKeySequence::HelpContents, WhatsThis = QKeySequence::WhatsThis, Open = QKeySequence::Open, Close = QKeySequence::Close, Save = QKeySequence::Save, New = QKeySequence::New, Delete = QKeySequence::Delete, Cut = QKeySequence::Cut, Copy = QKeySequence::Copy, Paste = QKeySequence::Paste, Undo = QKeySequence::Undo, Redo = QKeySequence::Redo, Back = QKeySequence::Back, Forward = QKeySequence::Forward, Refresh = QKeySequence::Refresh, ZoomIn = QKeySequence::ZoomIn, ZoomOut = QKeySequence::ZoomOut, Print = QKeySequence::Print, AddTab = QKeySequence::AddTab, NextChild = QKeySequence::NextChild, PreviousChild = QKeySequence::PreviousChild, Find = QKeySequence::Find, FindNext = QKeySequence::FindNext, FindPrevious = QKeySequence::FindPrevious, Replace = QKeySequence::Replace, SelectAll = QKeySequence::SelectAll, Bold = QKeySequence::Bold, Italic = QKeySequence::Italic, Underline = QKeySequence::Underline, MoveToNextChar = QKeySequence::MoveToNextChar, MoveToPreviousChar = QKeySequence::MoveToPreviousChar, MoveToNextWord = QKeySequence::MoveToNextWord, MoveToPreviousWord = QKeySequence::MoveToPreviousWord, MoveToNextLine = QKeySequence::MoveToNextLine, MoveToPreviousLine = QKeySequence::MoveToPreviousLine, MoveToNextPage = QKeySequence::MoveToNextPage, MoveToPreviousPage = QKeySequence::MoveToPreviousPage, MoveToStartOfLine = QKeySequence::MoveToStartOfLine, MoveToEndOfLine = QKeySequence::MoveToEndOfLine, MoveToStartOfBlock = QKeySequence::MoveToStartOfBlock, MoveToEndOfBlock = QKeySequence::MoveToEndOfBlock, MoveToStartOfDocument = QKeySequence::MoveToStartOfDocument, MoveToEndOfDocument = QKeySequence::MoveToEndOfDocument, SelectNextChar = QKeySequence::SelectNextChar, SelectPreviousChar = QKeySequence::SelectPreviousChar, SelectNextWord = QKeySequence::SelectNextWord, SelectPreviousWord = QKeySequence::SelectPreviousWord, SelectNextLine = QKeySequence::SelectNextLine, SelectPreviousLine = QKeySequence::SelectPreviousLine, SelectNextPage = QKeySequence::SelectNextPage, SelectPreviousPage = QKeySequence::SelectPreviousPage, SelectStartOfLine = QKeySequence::SelectStartOfLine, SelectEndOfLine = QKeySequence::SelectEndOfLine, SelectStartOfBlock = QKeySequence::SelectStartOfBlock, SelectEndOfBlock = QKeySequence::SelectEndOfBlock, SelectStartOfDocument = QKeySequence::SelectStartOfDocument, SelectEndOfDocument = QKeySequence::SelectEndOfDocument, DeleteStartOfWord = QKeySequence::DeleteStartOfWord, DeleteEndOfWord = QKeySequence::DeleteEndOfWord, DeleteEndOfLine = QKeySequence::DeleteEndOfLine, InsertParagraphSeparator = QKeySequence::InsertParagraphSeparator, InsertLineSeparator = QKeySequence::InsertLineSeparator, SaveAs = QKeySequence::SaveAs, Preferences = QKeySequence::Preferences, Quit = QKeySequence::Quit, FullScreen = QKeySequence::FullScreen}; +enum SequenceFormat{ + NativeText = QKeySequence::NativeText, PortableText = QKeySequence::PortableText}; +enum SequenceMatch{ + NoMatch = QKeySequence::NoMatch, PartialMatch = QKeySequence::PartialMatch, ExactMatch = QKeySequence::ExactMatch}; +public slots: +QKeySequence* new_QKeySequence(); +QKeySequence* new_QKeySequence(QKeySequence::StandardKey key); +QKeySequence* new_QKeySequence(const QKeySequence& ks); +QKeySequence* new_QKeySequence(const QString& key, QKeySequence::SequenceFormat format = QKeySequence::NativeText); +QKeySequence* new_QKeySequence(int k1, int k2 = 0, int k3 = 0, int k4 = 0); +void delete_QKeySequence(QKeySequence* obj) { delete obj; } + int count(QKeySequence* theWrappedObject) const; + QKeySequence static_QKeySequence_fromString(const QString& str, QKeySequence::SequenceFormat format = QKeySequence::PortableText); + bool isEmpty(QKeySequence* theWrappedObject) const; + QList static_QKeySequence_keyBindings(QKeySequence::StandardKey key); + QKeySequence::SequenceMatch matches(QKeySequence* theWrappedObject, const QKeySequence& seq) const; + QKeySequence static_QKeySequence_mnemonic(const QString& text); + bool __ne__(QKeySequence* theWrappedObject, const QKeySequence& other) const; + bool __lt__(QKeySequence* theWrappedObject, const QKeySequence& ks) const; + bool __le__(QKeySequence* theWrappedObject, const QKeySequence& other) const; + bool __eq__(QKeySequence* theWrappedObject, const QKeySequence& other) const; + bool __gt__(QKeySequence* theWrappedObject, const QKeySequence& other) const; + bool __ge__(QKeySequence* theWrappedObject, const QKeySequence& other) const; + int operator_subscript(QKeySequence* theWrappedObject, uint i) const; + void swap(QKeySequence* theWrappedObject, QKeySequence& other); + QString toString(QKeySequence* theWrappedObject, QKeySequence::SequenceFormat format = QKeySequence::PortableText) const; + QString py_toString(QKeySequence*); +}; + + + + + +class PythonQtWrapper_QLine : public QObject +{ Q_OBJECT +public: +public slots: +QLine* new_QLine(); +QLine* new_QLine(const QPoint& pt1, const QPoint& pt2); +QLine* new_QLine(int x1, int y1, int x2, int y2); +QLine* new_QLine(const QLine& other) { +QLine* a = new QLine(); +*((QLine*)a) = other; +return a; } +void delete_QLine(QLine* obj) { delete obj; } + int dx(QLine* theWrappedObject) const; + int dy(QLine* theWrappedObject) const; + bool isNull(QLine* theWrappedObject) const; + bool __ne__(QLine* theWrappedObject, const QLine& d) const; + QLine __mul__(QLine* theWrappedObject, const QMatrix& m); + QLine __mul__(QLine* theWrappedObject, const QTransform& m); + bool __eq__(QLine* theWrappedObject, const QLine& d) const; + QPoint p1(QLine* theWrappedObject) const; + QPoint p2(QLine* theWrappedObject) const; + void setLine(QLine* theWrappedObject, int x1, int y1, int x2, int y2); + void setP1(QLine* theWrappedObject, const QPoint& p1); + void setP2(QLine* theWrappedObject, const QPoint& p2); + void setPoints(QLine* theWrappedObject, const QPoint& p1, const QPoint& p2); + void translate(QLine* theWrappedObject, const QPoint& p); + void translate(QLine* theWrappedObject, int dx, int dy); + QLine translated(QLine* theWrappedObject, const QPoint& p) const; + QLine translated(QLine* theWrappedObject, int dx, int dy) const; + int x1(QLine* theWrappedObject) const; + int x2(QLine* theWrappedObject) const; + int y1(QLine* theWrappedObject) const; + int y2(QLine* theWrappedObject) const; + QString py_toString(QLine*); + bool __nonzero__(QLine* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QLineF : public QObject +{ Q_OBJECT +public: +Q_ENUMS(IntersectType ) +enum IntersectType{ + NoIntersection = QLineF::NoIntersection, BoundedIntersection = QLineF::BoundedIntersection, UnboundedIntersection = QLineF::UnboundedIntersection}; +public slots: +QLineF* new_QLineF(); +QLineF* new_QLineF(const QLine& line); +QLineF* new_QLineF(const QPointF& pt1, const QPointF& pt2); +QLineF* new_QLineF(qreal x1, qreal y1, qreal x2, qreal y2); +QLineF* new_QLineF(const QLineF& other) { +QLineF* a = new QLineF(); +*((QLineF*)a) = other; +return a; } +void delete_QLineF(QLineF* obj) { delete obj; } + qreal angle(QLineF* theWrappedObject) const; + qreal angle(QLineF* theWrappedObject, const QLineF& l) const; + qreal angleTo(QLineF* theWrappedObject, const QLineF& l) const; + qreal dx(QLineF* theWrappedObject) const; + qreal dy(QLineF* theWrappedObject) const; + QLineF static_QLineF_fromPolar(qreal length, qreal angle); + QLineF::IntersectType intersect(QLineF* theWrappedObject, const QLineF& l, QPointF* intersectionPoint) const; + bool isNull(QLineF* theWrappedObject) const; + qreal length(QLineF* theWrappedObject) const; + QLineF normalVector(QLineF* theWrappedObject) const; + bool __ne__(QLineF* theWrappedObject, const QLineF& d) const; + QLineF __mul__(QLineF* theWrappedObject, const QMatrix& m); + QLineF __mul__(QLineF* theWrappedObject, const QTransform& m); + bool __eq__(QLineF* theWrappedObject, const QLineF& d) const; + QPointF p1(QLineF* theWrappedObject) const; + QPointF p2(QLineF* theWrappedObject) const; + QPointF pointAt(QLineF* theWrappedObject, qreal t) const; + void setAngle(QLineF* theWrappedObject, qreal angle); + void setLength(QLineF* theWrappedObject, qreal len); + void setLine(QLineF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2); + void setP1(QLineF* theWrappedObject, const QPointF& p1); + void setP2(QLineF* theWrappedObject, const QPointF& p2); + void setPoints(QLineF* theWrappedObject, const QPointF& p1, const QPointF& p2); + QLine toLine(QLineF* theWrappedObject) const; + void translate(QLineF* theWrappedObject, const QPointF& p); + void translate(QLineF* theWrappedObject, qreal dx, qreal dy); + QLineF translated(QLineF* theWrappedObject, const QPointF& p) const; + QLineF translated(QLineF* theWrappedObject, qreal dx, qreal dy) const; + QLineF unitVector(QLineF* theWrappedObject) const; + qreal x1(QLineF* theWrappedObject) const; + qreal x2(QLineF* theWrappedObject) const; + qreal y1(QLineF* theWrappedObject) const; + qreal y2(QLineF* theWrappedObject) const; + QString py_toString(QLineF*); + bool __nonzero__(QLineF* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QMatrix : public QObject +{ Q_OBJECT +public: +public slots: +QMatrix* new_QMatrix(); +QMatrix* new_QMatrix(const QMatrix& matrix); +QMatrix* new_QMatrix(qreal m11, qreal m12, qreal m21, qreal m22, qreal dx, qreal dy); +void delete_QMatrix(QMatrix* obj) { delete obj; } + qreal determinant(QMatrix* theWrappedObject) const; + qreal dx(QMatrix* theWrappedObject) const; + qreal dy(QMatrix* theWrappedObject) const; + QMatrix inverted(QMatrix* theWrappedObject, bool* invertible = 0) const; + bool isIdentity(QMatrix* theWrappedObject) const; + bool isInvertible(QMatrix* theWrappedObject) const; + qreal m11(QMatrix* theWrappedObject) const; + qreal m12(QMatrix* theWrappedObject) const; + qreal m21(QMatrix* theWrappedObject) const; + qreal m22(QMatrix* theWrappedObject) const; + QLine map(QMatrix* theWrappedObject, const QLine& l) const; + QLineF map(QMatrix* theWrappedObject, const QLineF& l) const; + QPainterPath map(QMatrix* theWrappedObject, const QPainterPath& p) const; + QPoint map(QMatrix* theWrappedObject, const QPoint& p) const; + QPointF map(QMatrix* theWrappedObject, const QPointF& p) const; + QPolygon map(QMatrix* theWrappedObject, const QPolygon& a) const; + QPolygonF map(QMatrix* theWrappedObject, const QPolygonF& a) const; + QRegion map(QMatrix* theWrappedObject, const QRegion& r) const; + QRect mapRect(QMatrix* theWrappedObject, const QRect& arg__1) const; + QRectF mapRect(QMatrix* theWrappedObject, const QRectF& arg__1) const; + QPolygon mapToPolygon(QMatrix* theWrappedObject, const QRect& r) const; + bool __ne__(QMatrix* theWrappedObject, const QMatrix& arg__1) const; + QMatrix __mul__(QMatrix* theWrappedObject, const QMatrix& o) const; + QMatrix* __imul__(QMatrix* theWrappedObject, const QMatrix& arg__1); + bool __eq__(QMatrix* theWrappedObject, const QMatrix& arg__1) const; + void reset(QMatrix* theWrappedObject); + QMatrix* rotate(QMatrix* theWrappedObject, qreal a); + QMatrix* scale(QMatrix* theWrappedObject, qreal sx, qreal sy); + void setMatrix(QMatrix* theWrappedObject, qreal m11, qreal m12, qreal m21, qreal m22, qreal dx, qreal dy); + QMatrix* shear(QMatrix* theWrappedObject, qreal sh, qreal sv); + QMatrix* translate(QMatrix* theWrappedObject, qreal dx, qreal dy); + QString py_toString(QMatrix*); +}; + + + + + +class PythonQtWrapper_QPalette : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ColorGroup ColorRole ) +enum ColorGroup{ + Active = QPalette::Active, Disabled = QPalette::Disabled, Inactive = QPalette::Inactive, NColorGroups = QPalette::NColorGroups, Current = QPalette::Current, All = QPalette::All, Normal = QPalette::Normal}; +enum ColorRole{ + WindowText = QPalette::WindowText, Button = QPalette::Button, Light = QPalette::Light, Midlight = QPalette::Midlight, Dark = QPalette::Dark, Mid = QPalette::Mid, Text = QPalette::Text, BrightText = QPalette::BrightText, ButtonText = QPalette::ButtonText, Base = QPalette::Base, Window = QPalette::Window, Shadow = QPalette::Shadow, Highlight = QPalette::Highlight, HighlightedText = QPalette::HighlightedText, Link = QPalette::Link, LinkVisited = QPalette::LinkVisited, AlternateBase = QPalette::AlternateBase, NoRole = QPalette::NoRole, ToolTipBase = QPalette::ToolTipBase, ToolTipText = QPalette::ToolTipText, NColorRoles = QPalette::NColorRoles, Foreground = QPalette::Foreground, Background = QPalette::Background}; +public slots: +QPalette* new_QPalette(); +QPalette* new_QPalette(Qt::GlobalColor button); +QPalette* new_QPalette(const QBrush& windowText, const QBrush& button, const QBrush& light, const QBrush& dark, const QBrush& mid, const QBrush& text, const QBrush& bright_text, const QBrush& base, const QBrush& window); +QPalette* new_QPalette(const QColor& button); +QPalette* new_QPalette(const QColor& button, const QColor& window); +QPalette* new_QPalette(const QPalette& palette); +void delete_QPalette(QPalette* obj) { delete obj; } + const QBrush* alternateBase(QPalette* theWrappedObject) const; + const QBrush* base(QPalette* theWrappedObject) const; + const QBrush* brightText(QPalette* theWrappedObject) const; + const QBrush* brush(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr) const; + const QBrush* brush(QPalette* theWrappedObject, QPalette::ColorRole cr) const; + const QBrush* button(QPalette* theWrappedObject) const; + const QBrush* buttonText(QPalette* theWrappedObject) const; + qint64 cacheKey(QPalette* theWrappedObject) const; + const QColor* color(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr) const; + const QColor* color(QPalette* theWrappedObject, QPalette::ColorRole cr) const; + QPalette::ColorGroup currentColorGroup(QPalette* theWrappedObject) const; + const QBrush* dark(QPalette* theWrappedObject) const; + const QBrush* highlight(QPalette* theWrappedObject) const; + const QBrush* highlightedText(QPalette* theWrappedObject) const; + bool isBrushSet(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr) const; + bool isCopyOf(QPalette* theWrappedObject, const QPalette& p) const; + bool isEqual(QPalette* theWrappedObject, QPalette::ColorGroup cr1, QPalette::ColorGroup cr2) const; + const QBrush* light(QPalette* theWrappedObject) const; + const QBrush* link(QPalette* theWrappedObject) const; + const QBrush* linkVisited(QPalette* theWrappedObject) const; + const QBrush* mid(QPalette* theWrappedObject) const; + const QBrush* midlight(QPalette* theWrappedObject) const; + bool __ne__(QPalette* theWrappedObject, const QPalette& p) const; + bool __eq__(QPalette* theWrappedObject, const QPalette& p) const; + uint resolve(QPalette* theWrappedObject) const; + QPalette resolve(QPalette* theWrappedObject, const QPalette& arg__1) const; + void resolve(QPalette* theWrappedObject, uint mask); + void setBrush(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr, const QBrush& brush); + void setBrush(QPalette* theWrappedObject, QPalette::ColorRole cr, const QBrush& brush); + void setColor(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr, const QColor& color); + void setColor(QPalette* theWrappedObject, QPalette::ColorRole cr, const QColor& color); + void setColorGroup(QPalette* theWrappedObject, QPalette::ColorGroup cr, const QBrush& windowText, const QBrush& button, const QBrush& light, const QBrush& dark, const QBrush& mid, const QBrush& text, const QBrush& bright_text, const QBrush& base, const QBrush& window); + void setCurrentColorGroup(QPalette* theWrappedObject, QPalette::ColorGroup cg); + const QBrush* shadow(QPalette* theWrappedObject) const; + void swap(QPalette* theWrappedObject, QPalette& other); + const QBrush* text(QPalette* theWrappedObject) const; + const QBrush* toolTipBase(QPalette* theWrappedObject) const; + const QBrush* toolTipText(QPalette* theWrappedObject) const; + const QBrush* window(QPalette* theWrappedObject) const; + const QBrush* windowText(QPalette* theWrappedObject) const; + QString py_toString(QPalette*); +}; + + + + + +class PythonQtWrapper_QPen : public QObject +{ Q_OBJECT +public: +public slots: +QPen* new_QPen(); +QPen* new_QPen(Qt::PenStyle arg__1); +QPen* new_QPen(const QBrush& brush, qreal width, Qt::PenStyle s = Qt::SolidLine, Qt::PenCapStyle c = Qt::SquareCap, Qt::PenJoinStyle j = Qt::BevelJoin); +QPen* new_QPen(const QColor& color); +QPen* new_QPen(const QPen& pen); +void delete_QPen(QPen* obj) { delete obj; } + QBrush brush(QPen* theWrappedObject) const; + Qt::PenCapStyle capStyle(QPen* theWrappedObject) const; + QColor color(QPen* theWrappedObject) const; + qreal dashOffset(QPen* theWrappedObject) const; + QVector dashPattern(QPen* theWrappedObject) const; + bool isCosmetic(QPen* theWrappedObject) const; + bool isSolid(QPen* theWrappedObject) const; + Qt::PenJoinStyle joinStyle(QPen* theWrappedObject) const; + qreal miterLimit(QPen* theWrappedObject) const; + bool __ne__(QPen* theWrappedObject, const QPen& p) const; + bool __eq__(QPen* theWrappedObject, const QPen& p) const; + void setBrush(QPen* theWrappedObject, const QBrush& brush); + void setCapStyle(QPen* theWrappedObject, Qt::PenCapStyle pcs); + void setColor(QPen* theWrappedObject, const QColor& color); + void setCosmetic(QPen* theWrappedObject, bool cosmetic); + void setDashOffset(QPen* theWrappedObject, qreal doffset); + void setDashPattern(QPen* theWrappedObject, const QVector& pattern); + void setJoinStyle(QPen* theWrappedObject, Qt::PenJoinStyle pcs); + void setMiterLimit(QPen* theWrappedObject, qreal limit); + void setStyle(QPen* theWrappedObject, Qt::PenStyle arg__1); + void setWidth(QPen* theWrappedObject, int width); + void setWidthF(QPen* theWrappedObject, qreal width); + Qt::PenStyle style(QPen* theWrappedObject) const; + void swap(QPen* theWrappedObject, QPen& other); + int width(QPen* theWrappedObject) const; + qreal widthF(QPen* theWrappedObject) const; + QString py_toString(QPen*); +}; + + + + + +class PythonQtShell_QPixmap : public QPixmap +{ +public: + PythonQtShell_QPixmap():QPixmap(),_wrapper(NULL) {}; + PythonQtShell_QPixmap(const QPixmap& arg__1):QPixmap(arg__1),_wrapper(NULL) {}; + PythonQtShell_QPixmap(const QSize& arg__1):QPixmap(arg__1),_wrapper(NULL) {}; + PythonQtShell_QPixmap(const QString& fileName, const char* format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor):QPixmap(fileName, format, flags),_wrapper(NULL) {}; + PythonQtShell_QPixmap(const char** xpm):QPixmap(xpm),_wrapper(NULL) {}; + PythonQtShell_QPixmap(int w, int h):QPixmap(w, h),_wrapper(NULL) {}; + + ~PythonQtShell_QPixmap(); + +virtual int devType() const; +virtual void initPainter(QPainter* painter) const; +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QPaintEngine* paintEngine() const; +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual QPainter* sharedPainter() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QPixmap : public QPixmap +{ public: +inline int promoted_devType() const { return QPixmap::devType(); } +inline int promoted_metric(QPaintDevice::PaintDeviceMetric arg__1) const { return QPixmap::metric(arg__1); } +inline QPaintEngine* promoted_paintEngine() const { return QPixmap::paintEngine(); } +}; + +class PythonQtWrapper_QPixmap : public QObject +{ Q_OBJECT +public: +public slots: +QPixmap* new_QPixmap(); +QPixmap* new_QPixmap(const QPixmap& arg__1); +QPixmap* new_QPixmap(const QSize& arg__1); +QPixmap* new_QPixmap(const QString& fileName, const char* format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor); +QPixmap* new_QPixmap(const char** xpm); +QPixmap* new_QPixmap(int w, int h); +void delete_QPixmap(QPixmap* obj) { delete obj; } + qint64 cacheKey(QPixmap* theWrappedObject) const; + bool convertFromImage(QPixmap* theWrappedObject, const QImage& img, Qt::ImageConversionFlags flags = Qt::AutoColor); + QPixmap copy(QPixmap* theWrappedObject, const QRect& rect = QRect()) const; + QPixmap copy(QPixmap* theWrappedObject, int x, int y, int width, int height) const; + QBitmap createHeuristicMask(QPixmap* theWrappedObject, bool clipTight = true) const; + QBitmap createMaskFromColor(QPixmap* theWrappedObject, const QColor& maskColor, Qt::MaskMode mode = Qt::MaskInColor) const; + int static_QPixmap_defaultDepth(); + int depth(QPixmap* theWrappedObject) const; + int devType(QPixmap* theWrappedObject) const; + qreal devicePixelRatio(QPixmap* theWrappedObject) const; + void fill(QPixmap* theWrappedObject, const QColor& fillColor = Qt::white); + void fill(QPixmap* theWrappedObject, const QPaintDevice* device, const QPoint& ofs); + void fill(QPixmap* theWrappedObject, const QPaintDevice* device, int xofs, int yofs); + QPixmap static_QPixmap_fromImage(const QImage& image, Qt::ImageConversionFlags flags = Qt::AutoColor); + QPixmap static_QPixmap_fromImageReader(QImageReader* imageReader, Qt::ImageConversionFlags flags = Qt::AutoColor); + QPixmap static_QPixmap_grabWidget(QObject* widget, const QRect& rect); + QPixmap static_QPixmap_grabWidget(QObject* widget, int x = 0, int y = 0, int w = -1, int h = -1); + QPixmap static_QPixmap_grabWindow(WId arg__1, int x = 0, int y = 0, int w = -1, int h = -1); + bool hasAlpha(QPixmap* theWrappedObject) const; + bool hasAlphaChannel(QPixmap* theWrappedObject) const; + int height(QPixmap* theWrappedObject) const; + bool isNull(QPixmap* theWrappedObject) const; + bool isQBitmap(QPixmap* theWrappedObject) const; + bool load(QPixmap* theWrappedObject, const QString& fileName, const char* format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor); + bool loadFromData(QPixmap* theWrappedObject, const QByteArray& data, const char* format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor); + QBitmap mask(QPixmap* theWrappedObject) const; + int metric(QPixmap* theWrappedObject, QPaintDevice::PaintDeviceMetric arg__1) const; + QPaintEngine* paintEngine(QPixmap* theWrappedObject) const; + QRect rect(QPixmap* theWrappedObject) const; + bool save(QPixmap* theWrappedObject, QIODevice* device, const char* format = 0, int quality = -1) const; + bool save(QPixmap* theWrappedObject, const QString& fileName, const char* format = 0, int quality = -1) const; + QPixmap scaled(QPixmap* theWrappedObject, const QSize& s, Qt::AspectRatioMode aspectMode = Qt::IgnoreAspectRatio, Qt::TransformationMode mode = Qt::FastTransformation) const; + QPixmap scaled(QPixmap* theWrappedObject, int w, int h, Qt::AspectRatioMode aspectMode = Qt::IgnoreAspectRatio, Qt::TransformationMode mode = Qt::FastTransformation) const; + QPixmap scaledToHeight(QPixmap* theWrappedObject, int h, Qt::TransformationMode mode = Qt::FastTransformation) const; + QPixmap scaledToWidth(QPixmap* theWrappedObject, int w, Qt::TransformationMode mode = Qt::FastTransformation) const; + void scroll(QPixmap* theWrappedObject, int dx, int dy, const QRect& rect, QRegion* exposed = 0); + void scroll(QPixmap* theWrappedObject, int dx, int dy, int x, int y, int width, int height, QRegion* exposed = 0); + void setDevicePixelRatio(QPixmap* theWrappedObject, qreal scaleFactor); + void setMask(QPixmap* theWrappedObject, const QBitmap& arg__1); + QSize size(QPixmap* theWrappedObject) const; + void swap(QPixmap* theWrappedObject, QPixmap& other); + QImage toImage(QPixmap* theWrappedObject) const; + QPixmap transformed(QPixmap* theWrappedObject, const QMatrix& arg__1, Qt::TransformationMode mode = Qt::FastTransformation) const; + QPixmap transformed(QPixmap* theWrappedObject, const QTransform& arg__1, Qt::TransformationMode mode = Qt::FastTransformation) const; + QMatrix static_QPixmap_trueMatrix(const QMatrix& m, int w, int h); + QTransform static_QPixmap_trueMatrix(const QTransform& m, int w, int h); + int width(QPixmap* theWrappedObject) const; + QString py_toString(QPixmap*); + bool __nonzero__(QPixmap* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QPolygon : public QObject +{ Q_OBJECT +public: +public slots: +QPolygon* new_QPolygon(); +QPolygon* new_QPolygon(const QPolygon& a); +QPolygon* new_QPolygon(const QRect& r, bool closed = false); +QPolygon* new_QPolygon(const QVector& v); +QPolygon* new_QPolygon(int size); +void delete_QPolygon(QPolygon* obj) { delete obj; } + void append(QPolygon* theWrappedObject, const QPoint& t); + const QPoint* at(QPolygon* theWrappedObject, int i) const; + QRect boundingRect(QPolygon* theWrappedObject) const; + int capacity(QPolygon* theWrappedObject) const; + void clear(QPolygon* theWrappedObject); + bool contains(QPolygon* theWrappedObject, const QPoint& t) const; + bool containsPoint(QPolygon* theWrappedObject, const QPoint& pt, Qt::FillRule fillRule) const; + int count(QPolygon* theWrappedObject) const; + int count(QPolygon* theWrappedObject, const QPoint& t) const; + bool empty(QPolygon* theWrappedObject) const; + bool endsWith(QPolygon* theWrappedObject, const QPoint& t) const; + QVector* fill(QPolygon* theWrappedObject, const QPoint& t, int size); + const QPoint* first(QPolygon* theWrappedObject) const; + QVector static_QPolygon_fromList(const QList& list); + int indexOf(QPolygon* theWrappedObject, const QPoint& t, int from) const; + QPolygon intersected(QPolygon* theWrappedObject, const QPolygon& r) const; + bool isEmpty(QPolygon* theWrappedObject) const; + bool isSharedWith(QPolygon* theWrappedObject, const QVector& other) const; + const QPoint* last(QPolygon* theWrappedObject) const; + int lastIndexOf(QPolygon* theWrappedObject, const QPoint& t, int from) const; + QVector mid(QPolygon* theWrappedObject, int pos, int length) const; + bool __ne__(QPolygon* theWrappedObject, const QVector& v) const; + QPolygon __mul__(QPolygon* theWrappedObject, const QMatrix& m); + QPolygon __mul__(QPolygon* theWrappedObject, const QTransform& m); + bool __eq__(QPolygon* theWrappedObject, const QVector& v) const; + void pop_back(QPolygon* theWrappedObject); + void pop_front(QPolygon* theWrappedObject); + void prepend(QPolygon* theWrappedObject, const QPoint& t); + void push_back(QPolygon* theWrappedObject, const QPoint& t); + void push_front(QPolygon* theWrappedObject, const QPoint& t); + void remove(QPolygon* theWrappedObject, int i); + void remove(QPolygon* theWrappedObject, int i, int n); + void replace(QPolygon* theWrappedObject, int i, const QPoint& t); + void reserve(QPolygon* theWrappedObject, int size); + void resize(QPolygon* theWrappedObject, int size); + void setSharable(QPolygon* theWrappedObject, bool sharable); + int size(QPolygon* theWrappedObject) const; + void squeeze(QPolygon* theWrappedObject); + bool startsWith(QPolygon* theWrappedObject, const QPoint& t) const; + QPolygon subtracted(QPolygon* theWrappedObject, const QPolygon& r) const; + void swap(QPolygon* theWrappedObject, QPolygon& other); + QList toList(QPolygon* theWrappedObject) const; + void translate(QPolygon* theWrappedObject, const QPoint& offset); + void translate(QPolygon* theWrappedObject, int dx, int dy); + QPolygon translated(QPolygon* theWrappedObject, const QPoint& offset) const; + QPolygon translated(QPolygon* theWrappedObject, int dx, int dy) const; + QPolygon united(QPolygon* theWrappedObject, const QPolygon& r) const; + QPoint value(QPolygon* theWrappedObject, int i) const; + QPoint value(QPolygon* theWrappedObject, int i, const QPoint& defaultValue) const; + QString py_toString(QPolygon*); +}; + + + + + +class PythonQtWrapper_QRegion : public QObject +{ Q_OBJECT +public: +Q_ENUMS(RegionType ) +enum RegionType{ + Rectangle = QRegion::Rectangle, Ellipse = QRegion::Ellipse}; +public slots: +QRegion* new_QRegion(); +QRegion* new_QRegion(const QBitmap& bitmap); +QRegion* new_QRegion(const QPolygon& pa, Qt::FillRule fillRule = Qt::OddEvenFill); +QRegion* new_QRegion(const QRect& r, QRegion::RegionType t = QRegion::Rectangle); +QRegion* new_QRegion(const QRegion& region); +QRegion* new_QRegion(int x, int y, int w, int h, QRegion::RegionType t = QRegion::Rectangle); +void delete_QRegion(QRegion* obj) { delete obj; } + QRect boundingRect(QRegion* theWrappedObject) const; + bool contains(QRegion* theWrappedObject, const QPoint& p) const; + bool contains(QRegion* theWrappedObject, const QRect& r) const; + QRegion intersected(QRegion* theWrappedObject, const QRect& r) const; + QRegion intersected(QRegion* theWrappedObject, const QRegion& r) const; + bool intersects(QRegion* theWrappedObject, const QRect& r) const; + bool intersects(QRegion* theWrappedObject, const QRegion& r) const; + bool isEmpty(QRegion* theWrappedObject) const; + bool isNull(QRegion* theWrappedObject) const; + bool __ne__(QRegion* theWrappedObject, const QRegion& r) const; + const QRegion __and__(QRegion* theWrappedObject, const QRect& r) const; + QRegion __mul__(QRegion* theWrappedObject, const QMatrix& m); + QRegion __mul__(QRegion* theWrappedObject, const QTransform& m); + const QRegion __add__(QRegion* theWrappedObject, const QRect& r) const; + bool __eq__(QRegion* theWrappedObject, const QRegion& r) const; + int rectCount(QRegion* theWrappedObject) const; + QVector rects(QRegion* theWrappedObject) const; + void setRects(QRegion* theWrappedObject, const QRect* rect, int num); + QRegion subtracted(QRegion* theWrappedObject, const QRegion& r) const; + void swap(QRegion* theWrappedObject, QRegion& other); + void translate(QRegion* theWrappedObject, const QPoint& p); + void translate(QRegion* theWrappedObject, int dx, int dy); + QRegion translated(QRegion* theWrappedObject, const QPoint& p) const; + QRegion translated(QRegion* theWrappedObject, int dx, int dy) const; + QRegion united(QRegion* theWrappedObject, const QRect& r) const; + QRegion united(QRegion* theWrappedObject, const QRegion& r) const; + QRegion xored(QRegion* theWrappedObject, const QRegion& r) const; + QString py_toString(QRegion*); + bool __nonzero__(QRegion* obj) { return !obj->isNull(); } +}; + + + +#if defined(QT_WIDGETS_LIB) + +class PythonQtWrapper_QSizePolicy : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ControlType PolicyFlag Policy ) +Q_FLAGS(ControlTypes ) +enum ControlType{ + DefaultType = QSizePolicy::DefaultType, ButtonBox = QSizePolicy::ButtonBox, CheckBox = QSizePolicy::CheckBox, ComboBox = QSizePolicy::ComboBox, Frame = QSizePolicy::Frame, GroupBox = QSizePolicy::GroupBox, Label = QSizePolicy::Label, Line = QSizePolicy::Line, LineEdit = QSizePolicy::LineEdit, PushButton = QSizePolicy::PushButton, RadioButton = QSizePolicy::RadioButton, Slider = QSizePolicy::Slider, SpinBox = QSizePolicy::SpinBox, TabWidget = QSizePolicy::TabWidget, ToolButton = QSizePolicy::ToolButton}; +enum PolicyFlag{ + GrowFlag = QSizePolicy::GrowFlag, ExpandFlag = QSizePolicy::ExpandFlag, ShrinkFlag = QSizePolicy::ShrinkFlag, IgnoreFlag = QSizePolicy::IgnoreFlag}; +enum Policy{ + Fixed = QSizePolicy::Fixed, Minimum = QSizePolicy::Minimum, Maximum = QSizePolicy::Maximum, Preferred = QSizePolicy::Preferred, MinimumExpanding = QSizePolicy::MinimumExpanding, Expanding = QSizePolicy::Expanding, Ignored = QSizePolicy::Ignored}; +Q_DECLARE_FLAGS(ControlTypes, ControlType) +public slots: +QSizePolicy* new_QSizePolicy(); +QSizePolicy* new_QSizePolicy(QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical, QSizePolicy::ControlType type = QSizePolicy::DefaultType); +QSizePolicy* new_QSizePolicy(const QSizePolicy& other) { +QSizePolicy* a = new QSizePolicy(); +*((QSizePolicy*)a) = other; +return a; } +void delete_QSizePolicy(QSizePolicy* obj) { delete obj; } + QSizePolicy::ControlType controlType(QSizePolicy* theWrappedObject) const; + Qt::Orientations expandingDirections(QSizePolicy* theWrappedObject) const; + bool hasHeightForWidth(QSizePolicy* theWrappedObject) const; + bool hasWidthForHeight(QSizePolicy* theWrappedObject) const; + QSizePolicy::Policy horizontalPolicy(QSizePolicy* theWrappedObject) const; + int horizontalStretch(QSizePolicy* theWrappedObject) const; + bool __ne__(QSizePolicy* theWrappedObject, const QSizePolicy& s) const; + bool __eq__(QSizePolicy* theWrappedObject, const QSizePolicy& s) const; + void setControlType(QSizePolicy* theWrappedObject, QSizePolicy::ControlType type); + void setHeightForWidth(QSizePolicy* theWrappedObject, bool b); + void setHorizontalPolicy(QSizePolicy* theWrappedObject, QSizePolicy::Policy d); + void setHorizontalStretch(QSizePolicy* theWrappedObject, int stretchFactor); + void setVerticalPolicy(QSizePolicy* theWrappedObject, QSizePolicy::Policy d); + void setVerticalStretch(QSizePolicy* theWrappedObject, int stretchFactor); + void setWidthForHeight(QSizePolicy* theWrappedObject, bool b); + void transpose(QSizePolicy* theWrappedObject); + QSizePolicy::Policy verticalPolicy(QSizePolicy* theWrappedObject) const; + int verticalStretch(QSizePolicy* theWrappedObject) const; + QString py_toString(QSizePolicy*); +}; + +#endif + + +class PythonQtWrapper_QTextFormat : public QObject +{ Q_OBJECT +public: +Q_ENUMS(FormatType ObjectTypes Property PageBreakFlag ) +Q_FLAGS(PageBreakFlags ) +enum FormatType{ + InvalidFormat = QTextFormat::InvalidFormat, BlockFormat = QTextFormat::BlockFormat, CharFormat = QTextFormat::CharFormat, ListFormat = QTextFormat::ListFormat, TableFormat = QTextFormat::TableFormat, FrameFormat = QTextFormat::FrameFormat, UserFormat = QTextFormat::UserFormat}; +enum ObjectTypes{ + NoObject = QTextFormat::NoObject, ImageObject = QTextFormat::ImageObject, TableObject = QTextFormat::TableObject, TableCellObject = QTextFormat::TableCellObject, UserObject = QTextFormat::UserObject}; +enum Property{ + ObjectIndex = QTextFormat::ObjectIndex, CssFloat = QTextFormat::CssFloat, LayoutDirection = QTextFormat::LayoutDirection, OutlinePen = QTextFormat::OutlinePen, BackgroundBrush = QTextFormat::BackgroundBrush, ForegroundBrush = QTextFormat::ForegroundBrush, BackgroundImageUrl = QTextFormat::BackgroundImageUrl, BlockAlignment = QTextFormat::BlockAlignment, BlockTopMargin = QTextFormat::BlockTopMargin, BlockBottomMargin = QTextFormat::BlockBottomMargin, BlockLeftMargin = QTextFormat::BlockLeftMargin, BlockRightMargin = QTextFormat::BlockRightMargin, TextIndent = QTextFormat::TextIndent, TabPositions = QTextFormat::TabPositions, BlockIndent = QTextFormat::BlockIndent, LineHeight = QTextFormat::LineHeight, LineHeightType = QTextFormat::LineHeightType, BlockNonBreakableLines = QTextFormat::BlockNonBreakableLines, BlockTrailingHorizontalRulerWidth = QTextFormat::BlockTrailingHorizontalRulerWidth, FirstFontProperty = QTextFormat::FirstFontProperty, FontCapitalization = QTextFormat::FontCapitalization, FontLetterSpacingType = QTextFormat::FontLetterSpacingType, FontLetterSpacing = QTextFormat::FontLetterSpacing, FontWordSpacing = QTextFormat::FontWordSpacing, FontStretch = QTextFormat::FontStretch, FontStyleHint = QTextFormat::FontStyleHint, FontStyleStrategy = QTextFormat::FontStyleStrategy, FontKerning = QTextFormat::FontKerning, FontHintingPreference = QTextFormat::FontHintingPreference, FontFamily = QTextFormat::FontFamily, FontPointSize = QTextFormat::FontPointSize, FontSizeAdjustment = QTextFormat::FontSizeAdjustment, FontSizeIncrement = QTextFormat::FontSizeIncrement, FontWeight = QTextFormat::FontWeight, FontItalic = QTextFormat::FontItalic, FontUnderline = QTextFormat::FontUnderline, FontOverline = QTextFormat::FontOverline, FontStrikeOut = QTextFormat::FontStrikeOut, FontFixedPitch = QTextFormat::FontFixedPitch, FontPixelSize = QTextFormat::FontPixelSize, LastFontProperty = QTextFormat::LastFontProperty, TextUnderlineColor = QTextFormat::TextUnderlineColor, TextVerticalAlignment = QTextFormat::TextVerticalAlignment, TextOutline = QTextFormat::TextOutline, TextUnderlineStyle = QTextFormat::TextUnderlineStyle, TextToolTip = QTextFormat::TextToolTip, IsAnchor = QTextFormat::IsAnchor, AnchorHref = QTextFormat::AnchorHref, AnchorName = QTextFormat::AnchorName, ObjectType = QTextFormat::ObjectType, ListStyle = QTextFormat::ListStyle, ListIndent = QTextFormat::ListIndent, ListNumberPrefix = QTextFormat::ListNumberPrefix, ListNumberSuffix = QTextFormat::ListNumberSuffix, FrameBorder = QTextFormat::FrameBorder, FrameMargin = QTextFormat::FrameMargin, FramePadding = QTextFormat::FramePadding, FrameWidth = QTextFormat::FrameWidth, FrameHeight = QTextFormat::FrameHeight, FrameTopMargin = QTextFormat::FrameTopMargin, FrameBottomMargin = QTextFormat::FrameBottomMargin, FrameLeftMargin = QTextFormat::FrameLeftMargin, FrameRightMargin = QTextFormat::FrameRightMargin, FrameBorderBrush = QTextFormat::FrameBorderBrush, FrameBorderStyle = QTextFormat::FrameBorderStyle, TableColumns = QTextFormat::TableColumns, TableColumnWidthConstraints = QTextFormat::TableColumnWidthConstraints, TableCellSpacing = QTextFormat::TableCellSpacing, TableCellPadding = QTextFormat::TableCellPadding, TableHeaderRowCount = QTextFormat::TableHeaderRowCount, TableCellRowSpan = QTextFormat::TableCellRowSpan, TableCellColumnSpan = QTextFormat::TableCellColumnSpan, TableCellTopPadding = QTextFormat::TableCellTopPadding, TableCellBottomPadding = QTextFormat::TableCellBottomPadding, TableCellLeftPadding = QTextFormat::TableCellLeftPadding, TableCellRightPadding = QTextFormat::TableCellRightPadding, ImageName = QTextFormat::ImageName, ImageWidth = QTextFormat::ImageWidth, ImageHeight = QTextFormat::ImageHeight, FullWidthSelection = QTextFormat::FullWidthSelection, PageBreakPolicy = QTextFormat::PageBreakPolicy, UserProperty = QTextFormat::UserProperty}; +enum PageBreakFlag{ + PageBreak_Auto = QTextFormat::PageBreak_Auto, PageBreak_AlwaysBefore = QTextFormat::PageBreak_AlwaysBefore, PageBreak_AlwaysAfter = QTextFormat::PageBreak_AlwaysAfter}; +Q_DECLARE_FLAGS(PageBreakFlags, PageBreakFlag) +public slots: +QTextFormat* new_QTextFormat(); +QTextFormat* new_QTextFormat(const QTextFormat& rhs); +QTextFormat* new_QTextFormat(int type); +void delete_QTextFormat(QTextFormat* obj) { delete obj; } + QBrush background(QTextFormat* theWrappedObject) const; + bool boolProperty(QTextFormat* theWrappedObject, int propertyId) const; + QBrush brushProperty(QTextFormat* theWrappedObject, int propertyId) const; + void clearBackground(QTextFormat* theWrappedObject); + void clearForeground(QTextFormat* theWrappedObject); + void clearProperty(QTextFormat* theWrappedObject, int propertyId); + QColor colorProperty(QTextFormat* theWrappedObject, int propertyId) const; + qreal doubleProperty(QTextFormat* theWrappedObject, int propertyId) const; + QBrush foreground(QTextFormat* theWrappedObject) const; + bool hasProperty(QTextFormat* theWrappedObject, int propertyId) const; + int intProperty(QTextFormat* theWrappedObject, int propertyId) const; + bool isBlockFormat(QTextFormat* theWrappedObject) const; + bool isCharFormat(QTextFormat* theWrappedObject) const; + bool isFrameFormat(QTextFormat* theWrappedObject) const; + bool isImageFormat(QTextFormat* theWrappedObject) const; + bool isListFormat(QTextFormat* theWrappedObject) const; + bool isTableCellFormat(QTextFormat* theWrappedObject) const; + bool isTableFormat(QTextFormat* theWrappedObject) const; + bool isValid(QTextFormat* theWrappedObject) const; + Qt::LayoutDirection layoutDirection(QTextFormat* theWrappedObject) const; + QTextLength lengthProperty(QTextFormat* theWrappedObject, int propertyId) const; + QVector lengthVectorProperty(QTextFormat* theWrappedObject, int propertyId) const; + void merge(QTextFormat* theWrappedObject, const QTextFormat& other); + int objectIndex(QTextFormat* theWrappedObject) const; + int objectType(QTextFormat* theWrappedObject) const; + bool __ne__(QTextFormat* theWrappedObject, const QTextFormat& rhs) const; + bool __eq__(QTextFormat* theWrappedObject, const QTextFormat& rhs) const; + QPen penProperty(QTextFormat* theWrappedObject, int propertyId) const; + QMap properties(QTextFormat* theWrappedObject) const; + QVariant property(QTextFormat* theWrappedObject, int propertyId) const; + int propertyCount(QTextFormat* theWrappedObject) const; + void setBackground(QTextFormat* theWrappedObject, const QBrush& brush); + void setForeground(QTextFormat* theWrappedObject, const QBrush& brush); + void setLayoutDirection(QTextFormat* theWrappedObject, Qt::LayoutDirection direction); + void setObjectIndex(QTextFormat* theWrappedObject, int object); + void setObjectType(QTextFormat* theWrappedObject, int type); + void setProperty(QTextFormat* theWrappedObject, int propertyId, const QVariant& value); + void setProperty(QTextFormat* theWrappedObject, int propertyId, const QVector& lengths); + QString stringProperty(QTextFormat* theWrappedObject, int propertyId) const; + void swap(QTextFormat* theWrappedObject, QTextFormat& other); + QTextBlockFormat toBlockFormat(QTextFormat* theWrappedObject) const; + QTextCharFormat toCharFormat(QTextFormat* theWrappedObject) const; + QTextFrameFormat toFrameFormat(QTextFormat* theWrappedObject) const; + QTextImageFormat toImageFormat(QTextFormat* theWrappedObject) const; + QTextListFormat toListFormat(QTextFormat* theWrappedObject) const; + QTextTableCellFormat toTableCellFormat(QTextFormat* theWrappedObject) const; + QTextTableFormat toTableFormat(QTextFormat* theWrappedObject) const; + int type(QTextFormat* theWrappedObject) const; + QString py_toString(QTextFormat*); +}; + + + + + +class PythonQtWrapper_QTextLength : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Type ) +enum Type{ + VariableLength = QTextLength::VariableLength, FixedLength = QTextLength::FixedLength, PercentageLength = QTextLength::PercentageLength}; +public slots: +QTextLength* new_QTextLength(); +QTextLength* new_QTextLength(QTextLength::Type type, qreal value); +QTextLength* new_QTextLength(const QTextLength& other) { +QTextLength* a = new QTextLength(); +*((QTextLength*)a) = other; +return a; } +void delete_QTextLength(QTextLength* obj) { delete obj; } + bool __ne__(QTextLength* theWrappedObject, const QTextLength& other) const; + bool __eq__(QTextLength* theWrappedObject, const QTextLength& other) const; + qreal rawValue(QTextLength* theWrappedObject) const; + QTextLength::Type type(QTextLength* theWrappedObject) const; + qreal value(QTextLength* theWrappedObject, qreal maximumLength) const; + QString py_toString(QTextLength*); +}; + + diff --git a/generated_cpp_50/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin_init.cpp b/generated_cpp_50/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin_init.cpp new file mode 100644 index 00000000..aed14c28 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin_init.cpp @@ -0,0 +1,29 @@ +#include +#include "com_trolltech_qt_gui_builtin0.h" + +void PythonQt_init_QtGuiBuiltin(PyObject* module) { +PythonQt::priv()->registerCPPClass("QBitmap", "QPixmap", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QBrush", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QColor", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QCursor", "", "QtGui", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QFont", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QIcon", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QImage", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::self()->addParentClass("QImage", "QPaintDevice",PythonQtUpcastingOffset()); +PythonQt::priv()->registerCPPClass("QKeySequence", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QLine", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Multiply|PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QLineF", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Multiply|PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QMatrix", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Multiply|PythonQt::Type_InplaceMultiply|PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QPalette", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QPen", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QPixmap", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_NonZero); +PythonQt::self()->addParentClass("QPixmap", "QPaintDevice",PythonQtUpcastingOffset()); +PythonQt::priv()->registerCPPClass("QPolygon", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Add|PythonQt::Type_Multiply|PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QRegion", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_InplaceAnd|PythonQt::Type_Subtract|PythonQt::Type_InplaceOr|PythonQt::Type_Add|PythonQt::Type_Xor|PythonQt::Type_Multiply|PythonQt::Type_InplaceSubtract|PythonQt::Type_And|PythonQt::Type_Or|PythonQt::Type_RichCompare|PythonQt::Type_InplaceAdd|PythonQt::Type_InplaceXor|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QTextFormat", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QTextLength", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); + +#if defined(QT_WIDGETS_LIB) +PythonQt::priv()->registerCPPClass("QSizePolicy", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +#endif +} diff --git a/generated_cpp_50/com_trolltech_qt_network/com_trolltech_qt_network.pri b/generated_cpp_50/com_trolltech_qt_network/com_trolltech_qt_network.pri new file mode 100644 index 00000000..71768c91 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_network/com_trolltech_qt_network.pri @@ -0,0 +1,6 @@ +HEADERS += \ + $$PWD/com_trolltech_qt_network0.h \ + +SOURCES += \ + $$PWD/com_trolltech_qt_network0.cpp \ + $$PWD/com_trolltech_qt_network_init.cpp diff --git a/generated_cpp_50/com_trolltech_qt_network/com_trolltech_qt_network0.cpp b/generated_cpp_50/com_trolltech_qt_network/com_trolltech_qt_network0.cpp new file mode 100644 index 00000000..df5eb869 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_network/com_trolltech_qt_network0.cpp @@ -0,0 +1,8331 @@ +#include "com_trolltech_qt_network0.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +PythonQtShell_QAbstractNetworkCache::~PythonQtShell_QAbstractNetworkCache() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +qint64 PythonQtShell_QAbstractNetworkCache::cacheSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "cacheSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("cacheSize", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return qint64(); +} +void PythonQtShell_QAbstractNetworkCache::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractNetworkCache::childEvent(arg__1); +} +void PythonQtShell_QAbstractNetworkCache::clear() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractNetworkCache::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractNetworkCache::customEvent(arg__1); +} +QIODevice* PythonQtShell_QAbstractNetworkCache::data(const QUrl& url) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QIODevice*" , "const QUrl&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QIODevice* returnValue; + void* args[2] = {NULL, (void*)&url}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); + } else { + returnValue = *((QIODevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +bool PythonQtShell_QAbstractNetworkCache::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractNetworkCache::event(arg__1); +} +bool PythonQtShell_QAbstractNetworkCache::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractNetworkCache::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QAbstractNetworkCache::insert(QIODevice* device) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insert"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QIODevice*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&device}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +QNetworkCacheMetaData PythonQtShell_QAbstractNetworkCache::metaData(const QUrl& url) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metaData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QNetworkCacheMetaData" , "const QUrl&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QNetworkCacheMetaData returnValue; + void* args[2] = {NULL, (void*)&url}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metaData", methodInfo, result); + } else { + returnValue = *((QNetworkCacheMetaData*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkCacheMetaData(); +} +QIODevice* PythonQtShell_QAbstractNetworkCache::prepare(const QNetworkCacheMetaData& metaData) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "prepare"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QIODevice*" , "const QNetworkCacheMetaData&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QIODevice* returnValue; + void* args[2] = {NULL, (void*)&metaData}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("prepare", methodInfo, result); + } else { + returnValue = *((QIODevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +bool PythonQtShell_QAbstractNetworkCache::remove(const QUrl& url) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "remove"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QUrl&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&url}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("remove", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +void PythonQtShell_QAbstractNetworkCache::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractNetworkCache::timerEvent(arg__1); +} +void PythonQtShell_QAbstractNetworkCache::updateMetaData(const QNetworkCacheMetaData& metaData) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateMetaData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QNetworkCacheMetaData&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&metaData}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} + + +PythonQtShell_QAbstractSocket::~PythonQtShell_QAbstractSocket() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QAbstractSocket::atEnd() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::atEnd(); +} +qint64 PythonQtShell_QAbstractSocket::bytesAvailable() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::bytesAvailable(); +} +qint64 PythonQtShell_QAbstractSocket::bytesToWrite() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::bytesToWrite(); +} +bool PythonQtShell_QAbstractSocket::canReadLine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::canReadLine(); +} +void PythonQtShell_QAbstractSocket::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSocket::childEvent(arg__1); +} +void PythonQtShell_QAbstractSocket::close() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSocket::close(); +} +void PythonQtShell_QAbstractSocket::connectToHost(const QHostAddress& address, unsigned short port, QIODevice::OpenMode mode) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "connectToHost"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QHostAddress&" , "unsigned short" , "QIODevice::OpenMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&address, (void*)&port, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSocket::connectToHost(address, port, mode); +} +void PythonQtShell_QAbstractSocket::connectToHost(const QString& hostName, unsigned short port, QIODevice::OpenMode mode, QAbstractSocket::NetworkLayerProtocol protocol) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "connectToHost"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&" , "unsigned short" , "QIODevice::OpenMode" , "QAbstractSocket::NetworkLayerProtocol"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&hostName, (void*)&port, (void*)&mode, (void*)&protocol}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSocket::connectToHost(hostName, port, mode, protocol); +} +void PythonQtShell_QAbstractSocket::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSocket::customEvent(arg__1); +} +void PythonQtShell_QAbstractSocket::disconnectFromHost() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "disconnectFromHost"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSocket::disconnectFromHost(); +} +bool PythonQtShell_QAbstractSocket::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::event(arg__1); +} +bool PythonQtShell_QAbstractSocket::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QAbstractSocket::isSequential() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::isSequential(); +} +bool PythonQtShell_QAbstractSocket::open(QIODevice::OpenMode mode) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::open(mode); +} +qint64 PythonQtShell_QAbstractSocket::pos() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::pos(); +} +qint64 PythonQtShell_QAbstractSocket::readData(char* data, qint64 maxlen) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::readData(data, maxlen); +} +qint64 PythonQtShell_QAbstractSocket::readLineData(char* data, qint64 maxlen) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::readLineData(data, maxlen); +} +bool PythonQtShell_QAbstractSocket::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::reset(); +} +void PythonQtShell_QAbstractSocket::resume() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resume"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSocket::resume(); +} +bool PythonQtShell_QAbstractSocket::seek(qint64 pos) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::seek(pos); +} +void PythonQtShell_QAbstractSocket::setReadBufferSize(qint64 size) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setReadBufferSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&size}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSocket::setReadBufferSize(size); +} +void PythonQtShell_QAbstractSocket::setSocketOption(QAbstractSocket::SocketOption option, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSocketOption"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractSocket::SocketOption" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&option, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSocket::setSocketOption(option, value); +} +qint64 PythonQtShell_QAbstractSocket::size() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::size(); +} +QVariant PythonQtShell_QAbstractSocket::socketOption(QAbstractSocket::SocketOption option) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "socketOption"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "QAbstractSocket::SocketOption"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&option}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("socketOption", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::socketOption(option); +} +void PythonQtShell_QAbstractSocket::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractSocket::timerEvent(arg__1); +} +bool PythonQtShell_QAbstractSocket::waitForBytesWritten(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::waitForBytesWritten(msecs); +} +bool PythonQtShell_QAbstractSocket::waitForConnected(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForConnected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForConnected", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::waitForConnected(msecs); +} +bool PythonQtShell_QAbstractSocket::waitForDisconnected(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForDisconnected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForDisconnected", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::waitForDisconnected(msecs); +} +bool PythonQtShell_QAbstractSocket::waitForReadyRead(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::waitForReadyRead(msecs); +} +qint64 PythonQtShell_QAbstractSocket::writeData(const char* data, qint64 len) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&len}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractSocket::writeData(data, len); +} +QAbstractSocket* PythonQtWrapper_QAbstractSocket::new_QAbstractSocket(QAbstractSocket::SocketType socketType, QObject* parent) +{ +return new PythonQtShell_QAbstractSocket(socketType, parent); } + +void PythonQtWrapper_QAbstractSocket::abort(QAbstractSocket* theWrappedObject) +{ + ( theWrappedObject->abort()); +} + +bool PythonQtWrapper_QAbstractSocket::atEnd(QAbstractSocket* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_atEnd()); +} + +qint64 PythonQtWrapper_QAbstractSocket::bytesAvailable(QAbstractSocket* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_bytesAvailable()); +} + +qint64 PythonQtWrapper_QAbstractSocket::bytesToWrite(QAbstractSocket* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_bytesToWrite()); +} + +bool PythonQtWrapper_QAbstractSocket::canReadLine(QAbstractSocket* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_canReadLine()); +} + +void PythonQtWrapper_QAbstractSocket::close(QAbstractSocket* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_close()); +} + +void PythonQtWrapper_QAbstractSocket::connectToHost(QAbstractSocket* theWrappedObject, const QHostAddress& address, unsigned short port, QIODevice::OpenMode mode) +{ + ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_connectToHost(address, port, mode)); +} + +void PythonQtWrapper_QAbstractSocket::connectToHost(QAbstractSocket* theWrappedObject, const QString& hostName, unsigned short port, QIODevice::OpenMode mode, QAbstractSocket::NetworkLayerProtocol protocol) +{ + ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_connectToHost(hostName, port, mode, protocol)); +} + +void PythonQtWrapper_QAbstractSocket::disconnectFromHost(QAbstractSocket* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_disconnectFromHost()); +} + +QAbstractSocket::SocketError PythonQtWrapper_QAbstractSocket::error(QAbstractSocket* theWrappedObject) const +{ + return ( theWrappedObject->error()); +} + +bool PythonQtWrapper_QAbstractSocket::flush(QAbstractSocket* theWrappedObject) +{ + return ( theWrappedObject->flush()); +} + +bool PythonQtWrapper_QAbstractSocket::isSequential(QAbstractSocket* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_isSequential()); +} + +bool PythonQtWrapper_QAbstractSocket::isValid(QAbstractSocket* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +QHostAddress PythonQtWrapper_QAbstractSocket::localAddress(QAbstractSocket* theWrappedObject) const +{ + return ( theWrappedObject->localAddress()); +} + +unsigned short PythonQtWrapper_QAbstractSocket::localPort(QAbstractSocket* theWrappedObject) const +{ + return ( theWrappedObject->localPort()); +} + +QHostAddress PythonQtWrapper_QAbstractSocket::peerAddress(QAbstractSocket* theWrappedObject) const +{ + return ( theWrappedObject->peerAddress()); +} + +QString PythonQtWrapper_QAbstractSocket::peerName(QAbstractSocket* theWrappedObject) const +{ + return ( theWrappedObject->peerName()); +} + +unsigned short PythonQtWrapper_QAbstractSocket::peerPort(QAbstractSocket* theWrappedObject) const +{ + return ( theWrappedObject->peerPort()); +} + +QNetworkProxy PythonQtWrapper_QAbstractSocket::proxy(QAbstractSocket* theWrappedObject) const +{ + return ( theWrappedObject->proxy()); +} + +qint64 PythonQtWrapper_QAbstractSocket::readBufferSize(QAbstractSocket* theWrappedObject) const +{ + return ( theWrappedObject->readBufferSize()); +} + +qint64 PythonQtWrapper_QAbstractSocket::readData(QAbstractSocket* theWrappedObject, char* data, qint64 maxlen) +{ + return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_readData(data, maxlen)); +} + +qint64 PythonQtWrapper_QAbstractSocket::readLineData(QAbstractSocket* theWrappedObject, char* data, qint64 maxlen) +{ + return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_readLineData(data, maxlen)); +} + +void PythonQtWrapper_QAbstractSocket::resume(QAbstractSocket* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_resume()); +} + +void PythonQtWrapper_QAbstractSocket::setProxy(QAbstractSocket* theWrappedObject, const QNetworkProxy& networkProxy) +{ + ( theWrappedObject->setProxy(networkProxy)); +} + +void PythonQtWrapper_QAbstractSocket::setReadBufferSize(QAbstractSocket* theWrappedObject, qint64 size) +{ + ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_setReadBufferSize(size)); +} + +void PythonQtWrapper_QAbstractSocket::setSocketOption(QAbstractSocket* theWrappedObject, QAbstractSocket::SocketOption option, const QVariant& value) +{ + ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_setSocketOption(option, value)); +} + +QVariant PythonQtWrapper_QAbstractSocket::socketOption(QAbstractSocket* theWrappedObject, QAbstractSocket::SocketOption option) +{ + return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_socketOption(option)); +} + +QAbstractSocket::SocketType PythonQtWrapper_QAbstractSocket::socketType(QAbstractSocket* theWrappedObject) const +{ + return ( theWrappedObject->socketType()); +} + +QAbstractSocket::SocketState PythonQtWrapper_QAbstractSocket::state(QAbstractSocket* theWrappedObject) const +{ + return ( theWrappedObject->state()); +} + +bool PythonQtWrapper_QAbstractSocket::waitForBytesWritten(QAbstractSocket* theWrappedObject, int msecs) +{ + return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_waitForBytesWritten(msecs)); +} + +bool PythonQtWrapper_QAbstractSocket::waitForConnected(QAbstractSocket* theWrappedObject, int msecs) +{ + return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_waitForConnected(msecs)); +} + +bool PythonQtWrapper_QAbstractSocket::waitForDisconnected(QAbstractSocket* theWrappedObject, int msecs) +{ + return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_waitForDisconnected(msecs)); +} + +bool PythonQtWrapper_QAbstractSocket::waitForReadyRead(QAbstractSocket* theWrappedObject, int msecs) +{ + return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_waitForReadyRead(msecs)); +} + +qint64 PythonQtWrapper_QAbstractSocket::writeData(QAbstractSocket* theWrappedObject, const char* data, qint64 len) +{ + return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_writeData(data, len)); +} + + + +QAuthenticator* PythonQtWrapper_QAuthenticator::new_QAuthenticator() +{ +return new QAuthenticator(); } + +QAuthenticator* PythonQtWrapper_QAuthenticator::new_QAuthenticator(const QAuthenticator& other) +{ +return new QAuthenticator(other); } + +bool PythonQtWrapper_QAuthenticator::isNull(QAuthenticator* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QAuthenticator::__ne__(QAuthenticator* theWrappedObject, const QAuthenticator& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QAuthenticator::__eq__(QAuthenticator* theWrappedObject, const QAuthenticator& other) const +{ + return ( (*theWrappedObject)== other); +} + +QVariant PythonQtWrapper_QAuthenticator::option(QAuthenticator* theWrappedObject, const QString& opt) const +{ + return ( theWrappedObject->option(opt)); +} + +QHash PythonQtWrapper_QAuthenticator::options(QAuthenticator* theWrappedObject) const +{ + return ( theWrappedObject->options()); +} + +QString PythonQtWrapper_QAuthenticator::password(QAuthenticator* theWrappedObject) const +{ + return ( theWrappedObject->password()); +} + +QString PythonQtWrapper_QAuthenticator::realm(QAuthenticator* theWrappedObject) const +{ + return ( theWrappedObject->realm()); +} + +void PythonQtWrapper_QAuthenticator::setOption(QAuthenticator* theWrappedObject, const QString& opt, const QVariant& value) +{ + ( theWrappedObject->setOption(opt, value)); +} + +void PythonQtWrapper_QAuthenticator::setPassword(QAuthenticator* theWrappedObject, const QString& password) +{ + ( theWrappedObject->setPassword(password)); +} + +void PythonQtWrapper_QAuthenticator::setUser(QAuthenticator* theWrappedObject, const QString& user) +{ + ( theWrappedObject->setUser(user)); +} + +QString PythonQtWrapper_QAuthenticator::user(QAuthenticator* theWrappedObject) const +{ + return ( theWrappedObject->user()); +} + + + +QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress() +{ +return new QHostAddress(); } + +QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress(QHostAddress::SpecialAddress address) +{ +return new QHostAddress(address); } + +QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress(const QHostAddress& copy) +{ +return new QHostAddress(copy); } + +QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress(const QIPv6Address& ip6Addr) +{ +return new QHostAddress(ip6Addr); } + +QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress(const QString& address) +{ +return new QHostAddress(address); } + +QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress(unsigned int ip4Addr) +{ +return new QHostAddress(ip4Addr); } + +void PythonQtWrapper_QHostAddress::clear(QHostAddress* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +bool PythonQtWrapper_QHostAddress::isInSubnet(QHostAddress* theWrappedObject, const QHostAddress& subnet, int netmask) const +{ + return ( theWrappedObject->isInSubnet(subnet, netmask)); +} + +bool PythonQtWrapper_QHostAddress::isInSubnet(QHostAddress* theWrappedObject, const QPair& subnet) const +{ + return ( theWrappedObject->isInSubnet(subnet)); +} + +bool PythonQtWrapper_QHostAddress::isLoopback(QHostAddress* theWrappedObject) const +{ + return ( theWrappedObject->isLoopback()); +} + +bool PythonQtWrapper_QHostAddress::isNull(QHostAddress* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QHostAddress::__ne__(QHostAddress* theWrappedObject, QHostAddress::SpecialAddress address) const +{ + return ( (*theWrappedObject)!= address); +} + +bool PythonQtWrapper_QHostAddress::__ne__(QHostAddress* theWrappedObject, const QHostAddress& address) const +{ + return ( (*theWrappedObject)!= address); +} + +bool PythonQtWrapper_QHostAddress::__eq__(QHostAddress* theWrappedObject, QHostAddress::SpecialAddress address) const +{ + return ( (*theWrappedObject)== address); +} + +bool PythonQtWrapper_QHostAddress::__eq__(QHostAddress* theWrappedObject, const QHostAddress& address) const +{ + return ( (*theWrappedObject)== address); +} + +QPair PythonQtWrapper_QHostAddress::static_QHostAddress_parseSubnet(const QString& subnet) +{ + return (QHostAddress::parseSubnet(subnet)); +} + +QAbstractSocket::NetworkLayerProtocol PythonQtWrapper_QHostAddress::protocol(QHostAddress* theWrappedObject) const +{ + return ( theWrappedObject->protocol()); +} + +QString PythonQtWrapper_QHostAddress::scopeId(QHostAddress* theWrappedObject) const +{ + return ( theWrappedObject->scopeId()); +} + +void PythonQtWrapper_QHostAddress::setAddress(QHostAddress* theWrappedObject, const QIPv6Address& ip6Addr) +{ + ( theWrappedObject->setAddress(ip6Addr)); +} + +bool PythonQtWrapper_QHostAddress::setAddress(QHostAddress* theWrappedObject, const QString& address) +{ + return ( theWrappedObject->setAddress(address)); +} + +void PythonQtWrapper_QHostAddress::setAddress(QHostAddress* theWrappedObject, unsigned int ip4Addr) +{ + ( theWrappedObject->setAddress(ip4Addr)); +} + +void PythonQtWrapper_QHostAddress::setScopeId(QHostAddress* theWrappedObject, const QString& id) +{ + ( theWrappedObject->setScopeId(id)); +} + +unsigned int PythonQtWrapper_QHostAddress::toIPv4Address(QHostAddress* theWrappedObject) const +{ + return ( theWrappedObject->toIPv4Address()); +} + +QIPv6Address PythonQtWrapper_QHostAddress::toIPv6Address(QHostAddress* theWrappedObject) const +{ + return ( theWrappedObject->toIPv6Address()); +} + +QString PythonQtWrapper_QHostAddress::toString(QHostAddress* theWrappedObject) const +{ + return ( theWrappedObject->toString()); +} + +QString PythonQtWrapper_QHostAddress::py_toString(QHostAddress* obj) { return obj->toString(); } + + +QHostInfo* PythonQtWrapper_QHostInfo::new_QHostInfo(const QHostInfo& d) +{ +return new QHostInfo(d); } + +QHostInfo* PythonQtWrapper_QHostInfo::new_QHostInfo(int lookupId) +{ +return new QHostInfo(lookupId); } + +void PythonQtWrapper_QHostInfo::static_QHostInfo_abortHostLookup(int lookupId) +{ + (QHostInfo::abortHostLookup(lookupId)); +} + +QList PythonQtWrapper_QHostInfo::addresses(QHostInfo* theWrappedObject) const +{ + return ( theWrappedObject->addresses()); +} + +QHostInfo::HostInfoError PythonQtWrapper_QHostInfo::error(QHostInfo* theWrappedObject) const +{ + return ( theWrappedObject->error()); +} + +QString PythonQtWrapper_QHostInfo::errorString(QHostInfo* theWrappedObject) const +{ + return ( theWrappedObject->errorString()); +} + +QHostInfo PythonQtWrapper_QHostInfo::static_QHostInfo_fromName(const QString& name) +{ + return (QHostInfo::fromName(name)); +} + +QString PythonQtWrapper_QHostInfo::hostName(QHostInfo* theWrappedObject) const +{ + return ( theWrappedObject->hostName()); +} + +QString PythonQtWrapper_QHostInfo::static_QHostInfo_localDomainName() +{ + return (QHostInfo::localDomainName()); +} + +QString PythonQtWrapper_QHostInfo::static_QHostInfo_localHostName() +{ + return (QHostInfo::localHostName()); +} + +int PythonQtWrapper_QHostInfo::static_QHostInfo_lookupHost(const QString& name, QObject* receiver, const char* member) +{ + return (QHostInfo::lookupHost(name, receiver, member)); +} + +int PythonQtWrapper_QHostInfo::lookupId(QHostInfo* theWrappedObject) const +{ + return ( theWrappedObject->lookupId()); +} + +void PythonQtWrapper_QHostInfo::setAddresses(QHostInfo* theWrappedObject, const QList& addresses) +{ + ( theWrappedObject->setAddresses(addresses)); +} + +void PythonQtWrapper_QHostInfo::setError(QHostInfo* theWrappedObject, QHostInfo::HostInfoError error) +{ + ( theWrappedObject->setError(error)); +} + +void PythonQtWrapper_QHostInfo::setErrorString(QHostInfo* theWrappedObject, const QString& errorString) +{ + ( theWrappedObject->setErrorString(errorString)); +} + +void PythonQtWrapper_QHostInfo::setHostName(QHostInfo* theWrappedObject, const QString& name) +{ + ( theWrappedObject->setHostName(name)); +} + +void PythonQtWrapper_QHostInfo::setLookupId(QHostInfo* theWrappedObject, int id) +{ + ( theWrappedObject->setLookupId(id)); +} + + + +PythonQtShell_QIPv6Address::~PythonQtShell_QIPv6Address() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QIPv6Address* PythonQtWrapper_QIPv6Address::new_QIPv6Address() +{ +return new PythonQtShell_QIPv6Address(); } + + + +PythonQtShell_QLocalServer::~PythonQtShell_QLocalServer() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QLocalServer::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLocalServer::childEvent(arg__1); +} +void PythonQtShell_QLocalServer::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLocalServer::customEvent(arg__1); +} +bool PythonQtShell_QLocalServer::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalServer::event(arg__1); +} +bool PythonQtShell_QLocalServer::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalServer::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QLocalServer::hasPendingConnections() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasPendingConnections"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasPendingConnections", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalServer::hasPendingConnections(); +} +void PythonQtShell_QLocalServer::incomingConnection(quintptr socketDescriptor) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "incomingConnection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "quintptr"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&socketDescriptor}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLocalServer::incomingConnection(socketDescriptor); +} +QLocalSocket* PythonQtShell_QLocalServer::nextPendingConnection() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextPendingConnection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLocalSocket*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QLocalSocket* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nextPendingConnection", methodInfo, result); + } else { + returnValue = *((QLocalSocket**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalServer::nextPendingConnection(); +} +void PythonQtShell_QLocalServer::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLocalServer::timerEvent(arg__1); +} +QLocalServer* PythonQtWrapper_QLocalServer::new_QLocalServer(QObject* parent) +{ +return new PythonQtShell_QLocalServer(parent); } + +void PythonQtWrapper_QLocalServer::close(QLocalServer* theWrappedObject) +{ + ( theWrappedObject->close()); +} + +QString PythonQtWrapper_QLocalServer::errorString(QLocalServer* theWrappedObject) const +{ + return ( theWrappedObject->errorString()); +} + +QString PythonQtWrapper_QLocalServer::fullServerName(QLocalServer* theWrappedObject) const +{ + return ( theWrappedObject->fullServerName()); +} + +bool PythonQtWrapper_QLocalServer::hasPendingConnections(QLocalServer* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QLocalServer*)theWrappedObject)->promoted_hasPendingConnections()); +} + +void PythonQtWrapper_QLocalServer::incomingConnection(QLocalServer* theWrappedObject, quintptr socketDescriptor) +{ + ( ((PythonQtPublicPromoter_QLocalServer*)theWrappedObject)->promoted_incomingConnection(socketDescriptor)); +} + +bool PythonQtWrapper_QLocalServer::isListening(QLocalServer* theWrappedObject) const +{ + return ( theWrappedObject->isListening()); +} + +bool PythonQtWrapper_QLocalServer::listen(QLocalServer* theWrappedObject, const QString& name) +{ + return ( theWrappedObject->listen(name)); +} + +int PythonQtWrapper_QLocalServer::maxPendingConnections(QLocalServer* theWrappedObject) const +{ + return ( theWrappedObject->maxPendingConnections()); +} + +QLocalSocket* PythonQtWrapper_QLocalServer::nextPendingConnection(QLocalServer* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QLocalServer*)theWrappedObject)->promoted_nextPendingConnection()); +} + +bool PythonQtWrapper_QLocalServer::static_QLocalServer_removeServer(const QString& name) +{ + return (QLocalServer::removeServer(name)); +} + +QAbstractSocket::SocketError PythonQtWrapper_QLocalServer::serverError(QLocalServer* theWrappedObject) const +{ + return ( theWrappedObject->serverError()); +} + +QString PythonQtWrapper_QLocalServer::serverName(QLocalServer* theWrappedObject) const +{ + return ( theWrappedObject->serverName()); +} + +void PythonQtWrapper_QLocalServer::setMaxPendingConnections(QLocalServer* theWrappedObject, int numConnections) +{ + ( theWrappedObject->setMaxPendingConnections(numConnections)); +} + +bool PythonQtWrapper_QLocalServer::waitForNewConnection(QLocalServer* theWrappedObject, int msec, bool* timedOut) +{ + return ( theWrappedObject->waitForNewConnection(msec, timedOut)); +} + + + +PythonQtShell_QLocalSocket::~PythonQtShell_QLocalSocket() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QLocalSocket::atEnd() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalSocket::atEnd(); +} +qint64 PythonQtShell_QLocalSocket::bytesAvailable() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalSocket::bytesAvailable(); +} +qint64 PythonQtShell_QLocalSocket::bytesToWrite() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalSocket::bytesToWrite(); +} +bool PythonQtShell_QLocalSocket::canReadLine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalSocket::canReadLine(); +} +void PythonQtShell_QLocalSocket::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLocalSocket::childEvent(arg__1); +} +void PythonQtShell_QLocalSocket::close() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLocalSocket::close(); +} +void PythonQtShell_QLocalSocket::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLocalSocket::customEvent(arg__1); +} +bool PythonQtShell_QLocalSocket::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalSocket::event(arg__1); +} +bool PythonQtShell_QLocalSocket::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalSocket::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QLocalSocket::isSequential() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalSocket::isSequential(); +} +bool PythonQtShell_QLocalSocket::open(QIODevice::OpenMode mode) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalSocket::open(mode); +} +qint64 PythonQtShell_QLocalSocket::pos() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalSocket::pos(); +} +qint64 PythonQtShell_QLocalSocket::readData(char* arg__1, qint64 arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalSocket::readData(arg__1, arg__2); +} +qint64 PythonQtShell_QLocalSocket::readLineData(char* data, qint64 maxlen) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalSocket::readLineData(data, maxlen); +} +bool PythonQtShell_QLocalSocket::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalSocket::reset(); +} +bool PythonQtShell_QLocalSocket::seek(qint64 pos) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalSocket::seek(pos); +} +qint64 PythonQtShell_QLocalSocket::size() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalSocket::size(); +} +void PythonQtShell_QLocalSocket::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QLocalSocket::timerEvent(arg__1); +} +bool PythonQtShell_QLocalSocket::waitForBytesWritten(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalSocket::waitForBytesWritten(msecs); +} +bool PythonQtShell_QLocalSocket::waitForReadyRead(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalSocket::waitForReadyRead(msecs); +} +qint64 PythonQtShell_QLocalSocket::writeData(const char* arg__1, qint64 arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QLocalSocket::writeData(arg__1, arg__2); +} +QLocalSocket* PythonQtWrapper_QLocalSocket::new_QLocalSocket(QObject* parent) +{ +return new PythonQtShell_QLocalSocket(parent); } + +void PythonQtWrapper_QLocalSocket::abort(QLocalSocket* theWrappedObject) +{ + ( theWrappedObject->abort()); +} + +qint64 PythonQtWrapper_QLocalSocket::bytesAvailable(QLocalSocket* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_bytesAvailable()); +} + +qint64 PythonQtWrapper_QLocalSocket::bytesToWrite(QLocalSocket* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_bytesToWrite()); +} + +bool PythonQtWrapper_QLocalSocket::canReadLine(QLocalSocket* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_canReadLine()); +} + +void PythonQtWrapper_QLocalSocket::close(QLocalSocket* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_close()); +} + +void PythonQtWrapper_QLocalSocket::connectToServer(QLocalSocket* theWrappedObject, const QString& name, QIODevice::OpenMode openMode) +{ + ( theWrappedObject->connectToServer(name, openMode)); +} + +void PythonQtWrapper_QLocalSocket::disconnectFromServer(QLocalSocket* theWrappedObject) +{ + ( theWrappedObject->disconnectFromServer()); +} + +QLocalSocket::LocalSocketError PythonQtWrapper_QLocalSocket::error(QLocalSocket* theWrappedObject) const +{ + return ( theWrappedObject->error()); +} + +bool PythonQtWrapper_QLocalSocket::flush(QLocalSocket* theWrappedObject) +{ + return ( theWrappedObject->flush()); +} + +QString PythonQtWrapper_QLocalSocket::fullServerName(QLocalSocket* theWrappedObject) const +{ + return ( theWrappedObject->fullServerName()); +} + +bool PythonQtWrapper_QLocalSocket::isSequential(QLocalSocket* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_isSequential()); +} + +bool PythonQtWrapper_QLocalSocket::isValid(QLocalSocket* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +qint64 PythonQtWrapper_QLocalSocket::readBufferSize(QLocalSocket* theWrappedObject) const +{ + return ( theWrappedObject->readBufferSize()); +} + +qint64 PythonQtWrapper_QLocalSocket::readData(QLocalSocket* theWrappedObject, char* arg__1, qint64 arg__2) +{ + return ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_readData(arg__1, arg__2)); +} + +QString PythonQtWrapper_QLocalSocket::serverName(QLocalSocket* theWrappedObject) const +{ + return ( theWrappedObject->serverName()); +} + +void PythonQtWrapper_QLocalSocket::setReadBufferSize(QLocalSocket* theWrappedObject, qint64 size) +{ + ( theWrappedObject->setReadBufferSize(size)); +} + +QLocalSocket::LocalSocketState PythonQtWrapper_QLocalSocket::state(QLocalSocket* theWrappedObject) const +{ + return ( theWrappedObject->state()); +} + +bool PythonQtWrapper_QLocalSocket::waitForBytesWritten(QLocalSocket* theWrappedObject, int msecs) +{ + return ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_waitForBytesWritten(msecs)); +} + +bool PythonQtWrapper_QLocalSocket::waitForConnected(QLocalSocket* theWrappedObject, int msecs) +{ + return ( theWrappedObject->waitForConnected(msecs)); +} + +bool PythonQtWrapper_QLocalSocket::waitForDisconnected(QLocalSocket* theWrappedObject, int msecs) +{ + return ( theWrappedObject->waitForDisconnected(msecs)); +} + +bool PythonQtWrapper_QLocalSocket::waitForReadyRead(QLocalSocket* theWrappedObject, int msecs) +{ + return ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_waitForReadyRead(msecs)); +} + +qint64 PythonQtWrapper_QLocalSocket::writeData(QLocalSocket* theWrappedObject, const char* arg__1, qint64 arg__2) +{ + return ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_writeData(arg__1, arg__2)); +} + + + +PythonQtShell_QNetworkAccessManager::~PythonQtShell_QNetworkAccessManager() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QNetworkAccessManager::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkAccessManager::childEvent(arg__1); +} +QNetworkReply* PythonQtShell_QNetworkAccessManager::createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest& request, QIODevice* outgoingData) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createRequest"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QNetworkReply*" , "QNetworkAccessManager::Operation" , "const QNetworkRequest&" , "QIODevice*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QNetworkReply* returnValue; + void* args[4] = {NULL, (void*)&op, (void*)&request, (void*)&outgoingData}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createRequest", methodInfo, result); + } else { + returnValue = *((QNetworkReply**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkAccessManager::createRequest(op, request, outgoingData); +} +void PythonQtShell_QNetworkAccessManager::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkAccessManager::customEvent(arg__1); +} +bool PythonQtShell_QNetworkAccessManager::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkAccessManager::event(arg__1); +} +bool PythonQtShell_QNetworkAccessManager::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkAccessManager::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QNetworkAccessManager::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkAccessManager::timerEvent(arg__1); +} +QNetworkAccessManager* PythonQtWrapper_QNetworkAccessManager::new_QNetworkAccessManager(QObject* parent) +{ +return new PythonQtShell_QNetworkAccessManager(parent); } + +QAbstractNetworkCache* PythonQtWrapper_QNetworkAccessManager::cache(QNetworkAccessManager* theWrappedObject) const +{ + return ( theWrappedObject->cache()); +} + +void PythonQtWrapper_QNetworkAccessManager::clearAccessCache(QNetworkAccessManager* theWrappedObject) +{ + ( theWrappedObject->clearAccessCache()); +} + +QNetworkCookieJar* PythonQtWrapper_QNetworkAccessManager::cookieJar(QNetworkAccessManager* theWrappedObject) const +{ + return ( theWrappedObject->cookieJar()); +} + +QNetworkReply* PythonQtWrapper_QNetworkAccessManager::createRequest(QNetworkAccessManager* theWrappedObject, QNetworkAccessManager::Operation op, const QNetworkRequest& request, QIODevice* outgoingData) +{ + return ( ((PythonQtPublicPromoter_QNetworkAccessManager*)theWrappedObject)->promoted_createRequest(op, request, outgoingData)); +} + +QNetworkReply* PythonQtWrapper_QNetworkAccessManager::deleteResource(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request) +{ + return ( theWrappedObject->deleteResource(request)); +} + +QNetworkReply* PythonQtWrapper_QNetworkAccessManager::get(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request) +{ + return ( theWrappedObject->get(request)); +} + +QNetworkReply* PythonQtWrapper_QNetworkAccessManager::head(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request) +{ + return ( theWrappedObject->head(request)); +} + +QNetworkAccessManager::NetworkAccessibility PythonQtWrapper_QNetworkAccessManager::networkAccessible(QNetworkAccessManager* theWrappedObject) const +{ + return ( theWrappedObject->networkAccessible()); +} + +QNetworkReply* PythonQtWrapper_QNetworkAccessManager::post(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, QIODevice* data) +{ + return ( theWrappedObject->post(request, data)); +} + +QNetworkReply* PythonQtWrapper_QNetworkAccessManager::post(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, const QByteArray& data) +{ + return ( theWrappedObject->post(request, data)); +} + +QNetworkProxy PythonQtWrapper_QNetworkAccessManager::proxy(QNetworkAccessManager* theWrappedObject) const +{ + return ( theWrappedObject->proxy()); +} + +QNetworkProxyFactory* PythonQtWrapper_QNetworkAccessManager::proxyFactory(QNetworkAccessManager* theWrappedObject) const +{ + return ( theWrappedObject->proxyFactory()); +} + +QNetworkReply* PythonQtWrapper_QNetworkAccessManager::put(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, QIODevice* data) +{ + return ( theWrappedObject->put(request, data)); +} + +QNetworkReply* PythonQtWrapper_QNetworkAccessManager::put(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, const QByteArray& data) +{ + return ( theWrappedObject->put(request, data)); +} + +QNetworkReply* PythonQtWrapper_QNetworkAccessManager::sendCustomRequest(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, const QByteArray& verb, QIODevice* data) +{ + return ( theWrappedObject->sendCustomRequest(request, verb, data)); +} + +void PythonQtWrapper_QNetworkAccessManager::setCache(QNetworkAccessManager* theWrappedObject, QAbstractNetworkCache* cache) +{ + ( theWrappedObject->setCache(cache)); +} + +void PythonQtWrapper_QNetworkAccessManager::setCookieJar(QNetworkAccessManager* theWrappedObject, QNetworkCookieJar* cookieJar) +{ + ( theWrappedObject->setCookieJar(cookieJar)); +} + +void PythonQtWrapper_QNetworkAccessManager::setNetworkAccessible(QNetworkAccessManager* theWrappedObject, QNetworkAccessManager::NetworkAccessibility accessible) +{ + ( theWrappedObject->setNetworkAccessible(accessible)); +} + +void PythonQtWrapper_QNetworkAccessManager::setProxy(QNetworkAccessManager* theWrappedObject, const QNetworkProxy& proxy) +{ + ( theWrappedObject->setProxy(proxy)); +} + +void PythonQtWrapper_QNetworkAccessManager::setProxyFactory(QNetworkAccessManager* theWrappedObject, QNetworkProxyFactory* factory) +{ + ( theWrappedObject->setProxyFactory(factory)); +} + + + +QNetworkAddressEntry* PythonQtWrapper_QNetworkAddressEntry::new_QNetworkAddressEntry() +{ +return new QNetworkAddressEntry(); } + +QNetworkAddressEntry* PythonQtWrapper_QNetworkAddressEntry::new_QNetworkAddressEntry(const QNetworkAddressEntry& other) +{ +return new QNetworkAddressEntry(other); } + +QHostAddress PythonQtWrapper_QNetworkAddressEntry::broadcast(QNetworkAddressEntry* theWrappedObject) const +{ + return ( theWrappedObject->broadcast()); +} + +QHostAddress PythonQtWrapper_QNetworkAddressEntry::ip(QNetworkAddressEntry* theWrappedObject) const +{ + return ( theWrappedObject->ip()); +} + +QHostAddress PythonQtWrapper_QNetworkAddressEntry::netmask(QNetworkAddressEntry* theWrappedObject) const +{ + return ( theWrappedObject->netmask()); +} + +bool PythonQtWrapper_QNetworkAddressEntry::__ne__(QNetworkAddressEntry* theWrappedObject, const QNetworkAddressEntry& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QNetworkAddressEntry::__eq__(QNetworkAddressEntry* theWrappedObject, const QNetworkAddressEntry& other) const +{ + return ( (*theWrappedObject)== other); +} + +int PythonQtWrapper_QNetworkAddressEntry::prefixLength(QNetworkAddressEntry* theWrappedObject) const +{ + return ( theWrappedObject->prefixLength()); +} + +void PythonQtWrapper_QNetworkAddressEntry::setBroadcast(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newBroadcast) +{ + ( theWrappedObject->setBroadcast(newBroadcast)); +} + +void PythonQtWrapper_QNetworkAddressEntry::setIp(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newIp) +{ + ( theWrappedObject->setIp(newIp)); +} + +void PythonQtWrapper_QNetworkAddressEntry::setNetmask(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newNetmask) +{ + ( theWrappedObject->setNetmask(newNetmask)); +} + +void PythonQtWrapper_QNetworkAddressEntry::setPrefixLength(QNetworkAddressEntry* theWrappedObject, int length) +{ + ( theWrappedObject->setPrefixLength(length)); +} + +void PythonQtWrapper_QNetworkAddressEntry::swap(QNetworkAddressEntry* theWrappedObject, QNetworkAddressEntry& other) +{ + ( theWrappedObject->swap(other)); +} + + + +QNetworkCacheMetaData* PythonQtWrapper_QNetworkCacheMetaData::new_QNetworkCacheMetaData() +{ +return new QNetworkCacheMetaData(); } + +QNetworkCacheMetaData* PythonQtWrapper_QNetworkCacheMetaData::new_QNetworkCacheMetaData(const QNetworkCacheMetaData& other) +{ +return new QNetworkCacheMetaData(other); } + +QHash PythonQtWrapper_QNetworkCacheMetaData::attributes(QNetworkCacheMetaData* theWrappedObject) const +{ + return ( theWrappedObject->attributes()); +} + +QDateTime PythonQtWrapper_QNetworkCacheMetaData::expirationDate(QNetworkCacheMetaData* theWrappedObject) const +{ + return ( theWrappedObject->expirationDate()); +} + +bool PythonQtWrapper_QNetworkCacheMetaData::isValid(QNetworkCacheMetaData* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +QDateTime PythonQtWrapper_QNetworkCacheMetaData::lastModified(QNetworkCacheMetaData* theWrappedObject) const +{ + return ( theWrappedObject->lastModified()); +} + +bool PythonQtWrapper_QNetworkCacheMetaData::__ne__(QNetworkCacheMetaData* theWrappedObject, const QNetworkCacheMetaData& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QNetworkCacheMetaData::__eq__(QNetworkCacheMetaData* theWrappedObject, const QNetworkCacheMetaData& other) const +{ + return ( (*theWrappedObject)== other); +} + +QList > PythonQtWrapper_QNetworkCacheMetaData::rawHeaders(QNetworkCacheMetaData* theWrappedObject) const +{ + return ( theWrappedObject->rawHeaders()); +} + +bool PythonQtWrapper_QNetworkCacheMetaData::saveToDisk(QNetworkCacheMetaData* theWrappedObject) const +{ + return ( theWrappedObject->saveToDisk()); +} + +void PythonQtWrapper_QNetworkCacheMetaData::setAttributes(QNetworkCacheMetaData* theWrappedObject, const QHash& attributes) +{ + ( theWrappedObject->setAttributes(attributes)); +} + +void PythonQtWrapper_QNetworkCacheMetaData::setExpirationDate(QNetworkCacheMetaData* theWrappedObject, const QDateTime& dateTime) +{ + ( theWrappedObject->setExpirationDate(dateTime)); +} + +void PythonQtWrapper_QNetworkCacheMetaData::setLastModified(QNetworkCacheMetaData* theWrappedObject, const QDateTime& dateTime) +{ + ( theWrappedObject->setLastModified(dateTime)); +} + +void PythonQtWrapper_QNetworkCacheMetaData::setRawHeaders(QNetworkCacheMetaData* theWrappedObject, const QList >& headers) +{ + ( theWrappedObject->setRawHeaders(headers)); +} + +void PythonQtWrapper_QNetworkCacheMetaData::setSaveToDisk(QNetworkCacheMetaData* theWrappedObject, bool allow) +{ + ( theWrappedObject->setSaveToDisk(allow)); +} + +void PythonQtWrapper_QNetworkCacheMetaData::setUrl(QNetworkCacheMetaData* theWrappedObject, const QUrl& url) +{ + ( theWrappedObject->setUrl(url)); +} + +void PythonQtWrapper_QNetworkCacheMetaData::swap(QNetworkCacheMetaData* theWrappedObject, QNetworkCacheMetaData& other) +{ + ( theWrappedObject->swap(other)); +} + +QUrl PythonQtWrapper_QNetworkCacheMetaData::url(QNetworkCacheMetaData* theWrappedObject) const +{ + return ( theWrappedObject->url()); +} + + + +QNetworkCookie* PythonQtWrapper_QNetworkCookie::new_QNetworkCookie(const QByteArray& name, const QByteArray& value) +{ +return new QNetworkCookie(name, value); } + +QNetworkCookie* PythonQtWrapper_QNetworkCookie::new_QNetworkCookie(const QNetworkCookie& other) +{ +return new QNetworkCookie(other); } + +QString PythonQtWrapper_QNetworkCookie::domain(QNetworkCookie* theWrappedObject) const +{ + return ( theWrappedObject->domain()); +} + +QDateTime PythonQtWrapper_QNetworkCookie::expirationDate(QNetworkCookie* theWrappedObject) const +{ + return ( theWrappedObject->expirationDate()); +} + +bool PythonQtWrapper_QNetworkCookie::hasSameIdentifier(QNetworkCookie* theWrappedObject, const QNetworkCookie& other) const +{ + return ( theWrappedObject->hasSameIdentifier(other)); +} + +bool PythonQtWrapper_QNetworkCookie::isHttpOnly(QNetworkCookie* theWrappedObject) const +{ + return ( theWrappedObject->isHttpOnly()); +} + +bool PythonQtWrapper_QNetworkCookie::isSecure(QNetworkCookie* theWrappedObject) const +{ + return ( theWrappedObject->isSecure()); +} + +bool PythonQtWrapper_QNetworkCookie::isSessionCookie(QNetworkCookie* theWrappedObject) const +{ + return ( theWrappedObject->isSessionCookie()); +} + +QByteArray PythonQtWrapper_QNetworkCookie::name(QNetworkCookie* theWrappedObject) const +{ + return ( theWrappedObject->name()); +} + +void PythonQtWrapper_QNetworkCookie::normalize(QNetworkCookie* theWrappedObject, const QUrl& url) +{ + ( theWrappedObject->normalize(url)); +} + +bool PythonQtWrapper_QNetworkCookie::__ne__(QNetworkCookie* theWrappedObject, const QNetworkCookie& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QNetworkCookie::__eq__(QNetworkCookie* theWrappedObject, const QNetworkCookie& other) const +{ + return ( (*theWrappedObject)== other); +} + +QList PythonQtWrapper_QNetworkCookie::static_QNetworkCookie_parseCookies(const QByteArray& cookieString) +{ + return (QNetworkCookie::parseCookies(cookieString)); +} + +QString PythonQtWrapper_QNetworkCookie::path(QNetworkCookie* theWrappedObject) const +{ + return ( theWrappedObject->path()); +} + +void PythonQtWrapper_QNetworkCookie::setDomain(QNetworkCookie* theWrappedObject, const QString& domain) +{ + ( theWrappedObject->setDomain(domain)); +} + +void PythonQtWrapper_QNetworkCookie::setExpirationDate(QNetworkCookie* theWrappedObject, const QDateTime& date) +{ + ( theWrappedObject->setExpirationDate(date)); +} + +void PythonQtWrapper_QNetworkCookie::setHttpOnly(QNetworkCookie* theWrappedObject, bool enable) +{ + ( theWrappedObject->setHttpOnly(enable)); +} + +void PythonQtWrapper_QNetworkCookie::setName(QNetworkCookie* theWrappedObject, const QByteArray& cookieName) +{ + ( theWrappedObject->setName(cookieName)); +} + +void PythonQtWrapper_QNetworkCookie::setPath(QNetworkCookie* theWrappedObject, const QString& path) +{ + ( theWrappedObject->setPath(path)); +} + +void PythonQtWrapper_QNetworkCookie::setSecure(QNetworkCookie* theWrappedObject, bool enable) +{ + ( theWrappedObject->setSecure(enable)); +} + +void PythonQtWrapper_QNetworkCookie::setValue(QNetworkCookie* theWrappedObject, const QByteArray& value) +{ + ( theWrappedObject->setValue(value)); +} + +void PythonQtWrapper_QNetworkCookie::swap(QNetworkCookie* theWrappedObject, QNetworkCookie& other) +{ + ( theWrappedObject->swap(other)); +} + +QByteArray PythonQtWrapper_QNetworkCookie::toRawForm(QNetworkCookie* theWrappedObject, QNetworkCookie::RawForm form) const +{ + return ( theWrappedObject->toRawForm(form)); +} + +QByteArray PythonQtWrapper_QNetworkCookie::value(QNetworkCookie* theWrappedObject) const +{ + return ( theWrappedObject->value()); +} + +QString PythonQtWrapper_QNetworkCookie::py_toString(QNetworkCookie* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +PythonQtShell_QNetworkCookieJar::~PythonQtShell_QNetworkCookieJar() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QNetworkCookieJar::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkCookieJar::childEvent(arg__1); +} +QList PythonQtShell_QNetworkCookieJar::cookiesForUrl(const QUrl& url) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "cookiesForUrl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList" , "const QUrl&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QList returnValue; + void* args[2] = {NULL, (void*)&url}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("cookiesForUrl", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkCookieJar::cookiesForUrl(url); +} +void PythonQtShell_QNetworkCookieJar::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkCookieJar::customEvent(arg__1); +} +bool PythonQtShell_QNetworkCookieJar::deleteCookie(const QNetworkCookie& cookie) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "deleteCookie"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QNetworkCookie&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&cookie}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("deleteCookie", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkCookieJar::deleteCookie(cookie); +} +bool PythonQtShell_QNetworkCookieJar::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkCookieJar::event(arg__1); +} +bool PythonQtShell_QNetworkCookieJar::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkCookieJar::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QNetworkCookieJar::insertCookie(const QNetworkCookie& cookie) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertCookie"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QNetworkCookie&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&cookie}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertCookie", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkCookieJar::insertCookie(cookie); +} +bool PythonQtShell_QNetworkCookieJar::setCookiesFromUrl(const QList& cookieList, const QUrl& url) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setCookiesFromUrl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QList&" , "const QUrl&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&cookieList, (void*)&url}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setCookiesFromUrl", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkCookieJar::setCookiesFromUrl(cookieList, url); +} +void PythonQtShell_QNetworkCookieJar::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkCookieJar::timerEvent(arg__1); +} +bool PythonQtShell_QNetworkCookieJar::updateCookie(const QNetworkCookie& cookie) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCookie"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QNetworkCookie&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&cookie}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("updateCookie", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkCookieJar::updateCookie(cookie); +} +bool PythonQtShell_QNetworkCookieJar::validateCookie(const QNetworkCookie& cookie, const QUrl& url) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validateCookie"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QNetworkCookie&" , "const QUrl&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&cookie, (void*)&url}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("validateCookie", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkCookieJar::validateCookie(cookie, url); +} +QNetworkCookieJar* PythonQtWrapper_QNetworkCookieJar::new_QNetworkCookieJar(QObject* parent) +{ +return new PythonQtShell_QNetworkCookieJar(parent); } + +QList PythonQtWrapper_QNetworkCookieJar::cookiesForUrl(QNetworkCookieJar* theWrappedObject, const QUrl& url) const +{ + return ( ((PythonQtPublicPromoter_QNetworkCookieJar*)theWrappedObject)->promoted_cookiesForUrl(url)); +} + +bool PythonQtWrapper_QNetworkCookieJar::deleteCookie(QNetworkCookieJar* theWrappedObject, const QNetworkCookie& cookie) +{ + return ( ((PythonQtPublicPromoter_QNetworkCookieJar*)theWrappedObject)->promoted_deleteCookie(cookie)); +} + +bool PythonQtWrapper_QNetworkCookieJar::insertCookie(QNetworkCookieJar* theWrappedObject, const QNetworkCookie& cookie) +{ + return ( ((PythonQtPublicPromoter_QNetworkCookieJar*)theWrappedObject)->promoted_insertCookie(cookie)); +} + +bool PythonQtWrapper_QNetworkCookieJar::setCookiesFromUrl(QNetworkCookieJar* theWrappedObject, const QList& cookieList, const QUrl& url) +{ + return ( ((PythonQtPublicPromoter_QNetworkCookieJar*)theWrappedObject)->promoted_setCookiesFromUrl(cookieList, url)); +} + +bool PythonQtWrapper_QNetworkCookieJar::updateCookie(QNetworkCookieJar* theWrappedObject, const QNetworkCookie& cookie) +{ + return ( ((PythonQtPublicPromoter_QNetworkCookieJar*)theWrappedObject)->promoted_updateCookie(cookie)); +} + +bool PythonQtWrapper_QNetworkCookieJar::validateCookie(QNetworkCookieJar* theWrappedObject, const QNetworkCookie& cookie, const QUrl& url) const +{ + return ( ((PythonQtPublicPromoter_QNetworkCookieJar*)theWrappedObject)->promoted_validateCookie(cookie, url)); +} + + + +PythonQtShell_QNetworkDiskCache::~PythonQtShell_QNetworkDiskCache() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +qint64 PythonQtShell_QNetworkDiskCache::cacheSize() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "cacheSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("cacheSize", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkDiskCache::cacheSize(); +} +void PythonQtShell_QNetworkDiskCache::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkDiskCache::childEvent(arg__1); +} +void PythonQtShell_QNetworkDiskCache::clear() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkDiskCache::clear(); +} +void PythonQtShell_QNetworkDiskCache::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkDiskCache::customEvent(arg__1); +} +QIODevice* PythonQtShell_QNetworkDiskCache::data(const QUrl& url) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QIODevice*" , "const QUrl&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QIODevice* returnValue; + void* args[2] = {NULL, (void*)&url}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); + } else { + returnValue = *((QIODevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkDiskCache::data(url); +} +bool PythonQtShell_QNetworkDiskCache::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkDiskCache::event(arg__1); +} +bool PythonQtShell_QNetworkDiskCache::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkDiskCache::eventFilter(arg__1, arg__2); +} +qint64 PythonQtShell_QNetworkDiskCache::expire() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expire"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("expire", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkDiskCache::expire(); +} +void PythonQtShell_QNetworkDiskCache::insert(QIODevice* device) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insert"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QIODevice*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&device}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkDiskCache::insert(device); +} +QNetworkCacheMetaData PythonQtShell_QNetworkDiskCache::metaData(const QUrl& url) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metaData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QNetworkCacheMetaData" , "const QUrl&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QNetworkCacheMetaData returnValue; + void* args[2] = {NULL, (void*)&url}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metaData", methodInfo, result); + } else { + returnValue = *((QNetworkCacheMetaData*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkDiskCache::metaData(url); +} +QIODevice* PythonQtShell_QNetworkDiskCache::prepare(const QNetworkCacheMetaData& metaData) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "prepare"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QIODevice*" , "const QNetworkCacheMetaData&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QIODevice* returnValue; + void* args[2] = {NULL, (void*)&metaData}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("prepare", methodInfo, result); + } else { + returnValue = *((QIODevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkDiskCache::prepare(metaData); +} +bool PythonQtShell_QNetworkDiskCache::remove(const QUrl& url) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "remove"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QUrl&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&url}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("remove", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkDiskCache::remove(url); +} +void PythonQtShell_QNetworkDiskCache::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkDiskCache::timerEvent(arg__1); +} +void PythonQtShell_QNetworkDiskCache::updateMetaData(const QNetworkCacheMetaData& metaData) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateMetaData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QNetworkCacheMetaData&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&metaData}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkDiskCache::updateMetaData(metaData); +} +QNetworkDiskCache* PythonQtWrapper_QNetworkDiskCache::new_QNetworkDiskCache(QObject* parent) +{ +return new PythonQtShell_QNetworkDiskCache(parent); } + +QString PythonQtWrapper_QNetworkDiskCache::cacheDirectory(QNetworkDiskCache* theWrappedObject) const +{ + return ( theWrappedObject->cacheDirectory()); +} + +qint64 PythonQtWrapper_QNetworkDiskCache::cacheSize(QNetworkDiskCache* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QNetworkDiskCache*)theWrappedObject)->promoted_cacheSize()); +} + +void PythonQtWrapper_QNetworkDiskCache::clear(QNetworkDiskCache* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QNetworkDiskCache*)theWrappedObject)->promoted_clear()); +} + +QIODevice* PythonQtWrapper_QNetworkDiskCache::data(QNetworkDiskCache* theWrappedObject, const QUrl& url) +{ + return ( ((PythonQtPublicPromoter_QNetworkDiskCache*)theWrappedObject)->promoted_data(url)); +} + +qint64 PythonQtWrapper_QNetworkDiskCache::expire(QNetworkDiskCache* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QNetworkDiskCache*)theWrappedObject)->promoted_expire()); +} + +QNetworkCacheMetaData PythonQtWrapper_QNetworkDiskCache::fileMetaData(QNetworkDiskCache* theWrappedObject, const QString& fileName) const +{ + return ( theWrappedObject->fileMetaData(fileName)); +} + +void PythonQtWrapper_QNetworkDiskCache::insert(QNetworkDiskCache* theWrappedObject, QIODevice* device) +{ + ( ((PythonQtPublicPromoter_QNetworkDiskCache*)theWrappedObject)->promoted_insert(device)); +} + +qint64 PythonQtWrapper_QNetworkDiskCache::maximumCacheSize(QNetworkDiskCache* theWrappedObject) const +{ + return ( theWrappedObject->maximumCacheSize()); +} + +QNetworkCacheMetaData PythonQtWrapper_QNetworkDiskCache::metaData(QNetworkDiskCache* theWrappedObject, const QUrl& url) +{ + return ( ((PythonQtPublicPromoter_QNetworkDiskCache*)theWrappedObject)->promoted_metaData(url)); +} + +QIODevice* PythonQtWrapper_QNetworkDiskCache::prepare(QNetworkDiskCache* theWrappedObject, const QNetworkCacheMetaData& metaData) +{ + return ( ((PythonQtPublicPromoter_QNetworkDiskCache*)theWrappedObject)->promoted_prepare(metaData)); +} + +bool PythonQtWrapper_QNetworkDiskCache::remove(QNetworkDiskCache* theWrappedObject, const QUrl& url) +{ + return ( ((PythonQtPublicPromoter_QNetworkDiskCache*)theWrappedObject)->promoted_remove(url)); +} + +void PythonQtWrapper_QNetworkDiskCache::setCacheDirectory(QNetworkDiskCache* theWrappedObject, const QString& cacheDir) +{ + ( theWrappedObject->setCacheDirectory(cacheDir)); +} + +void PythonQtWrapper_QNetworkDiskCache::setMaximumCacheSize(QNetworkDiskCache* theWrappedObject, qint64 size) +{ + ( theWrappedObject->setMaximumCacheSize(size)); +} + +void PythonQtWrapper_QNetworkDiskCache::updateMetaData(QNetworkDiskCache* theWrappedObject, const QNetworkCacheMetaData& metaData) +{ + ( ((PythonQtPublicPromoter_QNetworkDiskCache*)theWrappedObject)->promoted_updateMetaData(metaData)); +} + + + +QNetworkInterface* PythonQtWrapper_QNetworkInterface::new_QNetworkInterface() +{ +return new QNetworkInterface(); } + +QNetworkInterface* PythonQtWrapper_QNetworkInterface::new_QNetworkInterface(const QNetworkInterface& other) +{ +return new QNetworkInterface(other); } + +QList PythonQtWrapper_QNetworkInterface::addressEntries(QNetworkInterface* theWrappedObject) const +{ + return ( theWrappedObject->addressEntries()); +} + +QList PythonQtWrapper_QNetworkInterface::static_QNetworkInterface_allAddresses() +{ + return (QNetworkInterface::allAddresses()); +} + +QList PythonQtWrapper_QNetworkInterface::static_QNetworkInterface_allInterfaces() +{ + return (QNetworkInterface::allInterfaces()); +} + +QNetworkInterface::InterfaceFlags PythonQtWrapper_QNetworkInterface::flags(QNetworkInterface* theWrappedObject) const +{ + return ( theWrappedObject->flags()); +} + +QString PythonQtWrapper_QNetworkInterface::hardwareAddress(QNetworkInterface* theWrappedObject) const +{ + return ( theWrappedObject->hardwareAddress()); +} + +QString PythonQtWrapper_QNetworkInterface::humanReadableName(QNetworkInterface* theWrappedObject) const +{ + return ( theWrappedObject->humanReadableName()); +} + +int PythonQtWrapper_QNetworkInterface::index(QNetworkInterface* theWrappedObject) const +{ + return ( theWrappedObject->index()); +} + +QNetworkInterface PythonQtWrapper_QNetworkInterface::static_QNetworkInterface_interfaceFromIndex(int index) +{ + return (QNetworkInterface::interfaceFromIndex(index)); +} + +QNetworkInterface PythonQtWrapper_QNetworkInterface::static_QNetworkInterface_interfaceFromName(const QString& name) +{ + return (QNetworkInterface::interfaceFromName(name)); +} + +bool PythonQtWrapper_QNetworkInterface::isValid(QNetworkInterface* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +QString PythonQtWrapper_QNetworkInterface::name(QNetworkInterface* theWrappedObject) const +{ + return ( theWrappedObject->name()); +} + +void PythonQtWrapper_QNetworkInterface::swap(QNetworkInterface* theWrappedObject, QNetworkInterface& other) +{ + ( theWrappedObject->swap(other)); +} + +QString PythonQtWrapper_QNetworkInterface::py_toString(QNetworkInterface* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QNetworkProxy* PythonQtWrapper_QNetworkProxy::new_QNetworkProxy() +{ +return new QNetworkProxy(); } + +QNetworkProxy* PythonQtWrapper_QNetworkProxy::new_QNetworkProxy(QNetworkProxy::ProxyType type, const QString& hostName, unsigned short port, const QString& user, const QString& password) +{ +return new QNetworkProxy(type, hostName, port, user, password); } + +QNetworkProxy* PythonQtWrapper_QNetworkProxy::new_QNetworkProxy(const QNetworkProxy& other) +{ +return new QNetworkProxy(other); } + +QNetworkProxy PythonQtWrapper_QNetworkProxy::static_QNetworkProxy_applicationProxy() +{ + return (QNetworkProxy::applicationProxy()); +} + +QNetworkProxy::Capabilities PythonQtWrapper_QNetworkProxy::capabilities(QNetworkProxy* theWrappedObject) const +{ + return ( theWrappedObject->capabilities()); +} + +bool PythonQtWrapper_QNetworkProxy::hasRawHeader(QNetworkProxy* theWrappedObject, const QByteArray& headerName) const +{ + return ( theWrappedObject->hasRawHeader(headerName)); +} + +QVariant PythonQtWrapper_QNetworkProxy::header(QNetworkProxy* theWrappedObject, QNetworkRequest::KnownHeaders header) const +{ + return ( theWrappedObject->header(header)); +} + +QString PythonQtWrapper_QNetworkProxy::hostName(QNetworkProxy* theWrappedObject) const +{ + return ( theWrappedObject->hostName()); +} + +bool PythonQtWrapper_QNetworkProxy::isCachingProxy(QNetworkProxy* theWrappedObject) const +{ + return ( theWrappedObject->isCachingProxy()); +} + +bool PythonQtWrapper_QNetworkProxy::isTransparentProxy(QNetworkProxy* theWrappedObject) const +{ + return ( theWrappedObject->isTransparentProxy()); +} + +bool PythonQtWrapper_QNetworkProxy::__ne__(QNetworkProxy* theWrappedObject, const QNetworkProxy& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QNetworkProxy::__eq__(QNetworkProxy* theWrappedObject, const QNetworkProxy& other) const +{ + return ( (*theWrappedObject)== other); +} + +QString PythonQtWrapper_QNetworkProxy::password(QNetworkProxy* theWrappedObject) const +{ + return ( theWrappedObject->password()); +} + +unsigned short PythonQtWrapper_QNetworkProxy::port(QNetworkProxy* theWrappedObject) const +{ + return ( theWrappedObject->port()); +} + +QByteArray PythonQtWrapper_QNetworkProxy::rawHeader(QNetworkProxy* theWrappedObject, const QByteArray& headerName) const +{ + return ( theWrappedObject->rawHeader(headerName)); +} + +QList PythonQtWrapper_QNetworkProxy::rawHeaderList(QNetworkProxy* theWrappedObject) const +{ + return ( theWrappedObject->rawHeaderList()); +} + +void PythonQtWrapper_QNetworkProxy::static_QNetworkProxy_setApplicationProxy(const QNetworkProxy& proxy) +{ + (QNetworkProxy::setApplicationProxy(proxy)); +} + +void PythonQtWrapper_QNetworkProxy::setCapabilities(QNetworkProxy* theWrappedObject, QNetworkProxy::Capabilities capab) +{ + ( theWrappedObject->setCapabilities(capab)); +} + +void PythonQtWrapper_QNetworkProxy::setHeader(QNetworkProxy* theWrappedObject, QNetworkRequest::KnownHeaders header, const QVariant& value) +{ + ( theWrappedObject->setHeader(header, value)); +} + +void PythonQtWrapper_QNetworkProxy::setHostName(QNetworkProxy* theWrappedObject, const QString& hostName) +{ + ( theWrappedObject->setHostName(hostName)); +} + +void PythonQtWrapper_QNetworkProxy::setPassword(QNetworkProxy* theWrappedObject, const QString& password) +{ + ( theWrappedObject->setPassword(password)); +} + +void PythonQtWrapper_QNetworkProxy::setPort(QNetworkProxy* theWrappedObject, unsigned short port) +{ + ( theWrappedObject->setPort(port)); +} + +void PythonQtWrapper_QNetworkProxy::setRawHeader(QNetworkProxy* theWrappedObject, const QByteArray& headerName, const QByteArray& value) +{ + ( theWrappedObject->setRawHeader(headerName, value)); +} + +void PythonQtWrapper_QNetworkProxy::setType(QNetworkProxy* theWrappedObject, QNetworkProxy::ProxyType type) +{ + ( theWrappedObject->setType(type)); +} + +void PythonQtWrapper_QNetworkProxy::setUser(QNetworkProxy* theWrappedObject, const QString& userName) +{ + ( theWrappedObject->setUser(userName)); +} + +void PythonQtWrapper_QNetworkProxy::swap(QNetworkProxy* theWrappedObject, QNetworkProxy& other) +{ + ( theWrappedObject->swap(other)); +} + +QNetworkProxy::ProxyType PythonQtWrapper_QNetworkProxy::type(QNetworkProxy* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + +QString PythonQtWrapper_QNetworkProxy::user(QNetworkProxy* theWrappedObject) const +{ + return ( theWrappedObject->user()); +} + +QString PythonQtWrapper_QNetworkProxy::py_toString(QNetworkProxy* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +PythonQtShell_QNetworkProxyFactory::~PythonQtShell_QNetworkProxyFactory() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QList PythonQtShell_QNetworkProxyFactory::queryProxy(const QNetworkProxyQuery& query) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "queryProxy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList" , "const QNetworkProxyQuery&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QList returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("queryProxy", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QList(); +} +QNetworkProxyFactory* PythonQtWrapper_QNetworkProxyFactory::new_QNetworkProxyFactory() +{ +return new PythonQtShell_QNetworkProxyFactory(); } + +QList PythonQtWrapper_QNetworkProxyFactory::static_QNetworkProxyFactory_proxyForQuery(const QNetworkProxyQuery& query) +{ + return (QNetworkProxyFactory::proxyForQuery(query)); +} + +void PythonQtWrapper_QNetworkProxyFactory::static_QNetworkProxyFactory_setApplicationProxyFactory(QNetworkProxyFactory* factory) +{ + (QNetworkProxyFactory::setApplicationProxyFactory(factory)); +} + +void PythonQtWrapper_QNetworkProxyFactory::static_QNetworkProxyFactory_setUseSystemConfiguration(bool enable) +{ + (QNetworkProxyFactory::setUseSystemConfiguration(enable)); +} + +QList PythonQtWrapper_QNetworkProxyFactory::static_QNetworkProxyFactory_systemProxyForQuery(const QNetworkProxyQuery& query) +{ + return (QNetworkProxyFactory::systemProxyForQuery(query)); +} + + + +QNetworkProxyQuery* PythonQtWrapper_QNetworkProxyQuery::new_QNetworkProxyQuery() +{ +return new QNetworkProxyQuery(); } + +QNetworkProxyQuery* PythonQtWrapper_QNetworkProxyQuery::new_QNetworkProxyQuery(const QNetworkProxyQuery& other) +{ +return new QNetworkProxyQuery(other); } + +QNetworkProxyQuery* PythonQtWrapper_QNetworkProxyQuery::new_QNetworkProxyQuery(const QString& hostname, int port, const QString& protocolTag, QNetworkProxyQuery::QueryType queryType) +{ +return new QNetworkProxyQuery(hostname, port, protocolTag, queryType); } + +QNetworkProxyQuery* PythonQtWrapper_QNetworkProxyQuery::new_QNetworkProxyQuery(const QUrl& requestUrl, QNetworkProxyQuery::QueryType queryType) +{ +return new QNetworkProxyQuery(requestUrl, queryType); } + +QNetworkProxyQuery* PythonQtWrapper_QNetworkProxyQuery::new_QNetworkProxyQuery(unsigned short bindPort, const QString& protocolTag, QNetworkProxyQuery::QueryType queryType) +{ +return new QNetworkProxyQuery(bindPort, protocolTag, queryType); } + +int PythonQtWrapper_QNetworkProxyQuery::localPort(QNetworkProxyQuery* theWrappedObject) const +{ + return ( theWrappedObject->localPort()); +} + +bool PythonQtWrapper_QNetworkProxyQuery::__ne__(QNetworkProxyQuery* theWrappedObject, const QNetworkProxyQuery& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QNetworkProxyQuery::__eq__(QNetworkProxyQuery* theWrappedObject, const QNetworkProxyQuery& other) const +{ + return ( (*theWrappedObject)== other); +} + +QString PythonQtWrapper_QNetworkProxyQuery::peerHostName(QNetworkProxyQuery* theWrappedObject) const +{ + return ( theWrappedObject->peerHostName()); +} + +int PythonQtWrapper_QNetworkProxyQuery::peerPort(QNetworkProxyQuery* theWrappedObject) const +{ + return ( theWrappedObject->peerPort()); +} + +QString PythonQtWrapper_QNetworkProxyQuery::protocolTag(QNetworkProxyQuery* theWrappedObject) const +{ + return ( theWrappedObject->protocolTag()); +} + +QNetworkProxyQuery::QueryType PythonQtWrapper_QNetworkProxyQuery::queryType(QNetworkProxyQuery* theWrappedObject) const +{ + return ( theWrappedObject->queryType()); +} + +void PythonQtWrapper_QNetworkProxyQuery::setLocalPort(QNetworkProxyQuery* theWrappedObject, int port) +{ + ( theWrappedObject->setLocalPort(port)); +} + +void PythonQtWrapper_QNetworkProxyQuery::setPeerHostName(QNetworkProxyQuery* theWrappedObject, const QString& hostname) +{ + ( theWrappedObject->setPeerHostName(hostname)); +} + +void PythonQtWrapper_QNetworkProxyQuery::setPeerPort(QNetworkProxyQuery* theWrappedObject, int port) +{ + ( theWrappedObject->setPeerPort(port)); +} + +void PythonQtWrapper_QNetworkProxyQuery::setProtocolTag(QNetworkProxyQuery* theWrappedObject, const QString& protocolTag) +{ + ( theWrappedObject->setProtocolTag(protocolTag)); +} + +void PythonQtWrapper_QNetworkProxyQuery::setQueryType(QNetworkProxyQuery* theWrappedObject, QNetworkProxyQuery::QueryType type) +{ + ( theWrappedObject->setQueryType(type)); +} + +void PythonQtWrapper_QNetworkProxyQuery::setUrl(QNetworkProxyQuery* theWrappedObject, const QUrl& url) +{ + ( theWrappedObject->setUrl(url)); +} + +void PythonQtWrapper_QNetworkProxyQuery::swap(QNetworkProxyQuery* theWrappedObject, QNetworkProxyQuery& other) +{ + ( theWrappedObject->swap(other)); +} + +QUrl PythonQtWrapper_QNetworkProxyQuery::url(QNetworkProxyQuery* theWrappedObject) const +{ + return ( theWrappedObject->url()); +} + + + +PythonQtShell_QNetworkReply::~PythonQtShell_QNetworkReply() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QNetworkReply::abort() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "abort"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +bool PythonQtShell_QNetworkReply::atEnd() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkReply::atEnd(); +} +qint64 PythonQtShell_QNetworkReply::bytesAvailable() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkReply::bytesAvailable(); +} +qint64 PythonQtShell_QNetworkReply::bytesToWrite() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkReply::bytesToWrite(); +} +bool PythonQtShell_QNetworkReply::canReadLine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkReply::canReadLine(); +} +void PythonQtShell_QNetworkReply::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkReply::childEvent(arg__1); +} +void PythonQtShell_QNetworkReply::close() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkReply::close(); +} +void PythonQtShell_QNetworkReply::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkReply::customEvent(arg__1); +} +bool PythonQtShell_QNetworkReply::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkReply::event(arg__1); +} +bool PythonQtShell_QNetworkReply::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkReply::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QNetworkReply::ignoreSslErrors() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ignoreSslErrors"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkReply::ignoreSslErrors(); +} +void PythonQtShell_QNetworkReply::ignoreSslErrorsImplementation(const QList& arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ignoreSslErrorsImplementation"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QList&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkReply::ignoreSslErrorsImplementation(arg__1); +} +bool PythonQtShell_QNetworkReply::isSequential() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkReply::isSequential(); +} +bool PythonQtShell_QNetworkReply::open(QIODevice::OpenMode mode) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkReply::open(mode); +} +qint64 PythonQtShell_QNetworkReply::pos() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkReply::pos(); +} +qint64 PythonQtShell_QNetworkReply::readData(char* data, qint64 maxlen) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return qint64(); +} +qint64 PythonQtShell_QNetworkReply::readLineData(char* data, qint64 maxlen) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkReply::readLineData(data, maxlen); +} +bool PythonQtShell_QNetworkReply::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkReply::reset(); +} +bool PythonQtShell_QNetworkReply::seek(qint64 pos) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkReply::seek(pos); +} +void PythonQtShell_QNetworkReply::setReadBufferSize(qint64 size) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setReadBufferSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&size}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkReply::setReadBufferSize(size); +} +void PythonQtShell_QNetworkReply::setSslConfigurationImplementation(const QSslConfiguration& arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSslConfigurationImplementation"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QSslConfiguration&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkReply::setSslConfigurationImplementation(arg__1); +} +qint64 PythonQtShell_QNetworkReply::size() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkReply::size(); +} +void PythonQtShell_QNetworkReply::sslConfigurationImplementation(QSslConfiguration& arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sslConfigurationImplementation"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QSslConfiguration&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkReply::sslConfigurationImplementation(arg__1); +} +void PythonQtShell_QNetworkReply::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QNetworkReply::timerEvent(arg__1); +} +bool PythonQtShell_QNetworkReply::waitForBytesWritten(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkReply::waitForBytesWritten(msecs); +} +bool PythonQtShell_QNetworkReply::waitForReadyRead(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkReply::waitForReadyRead(msecs); +} +qint64 PythonQtShell_QNetworkReply::writeData(const char* data, qint64 len) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&len}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QNetworkReply::writeData(data, len); +} +QVariant PythonQtWrapper_QNetworkReply::attribute(QNetworkReply* theWrappedObject, QNetworkRequest::Attribute code) const +{ + return ( theWrappedObject->attribute(code)); +} + +void PythonQtWrapper_QNetworkReply::close(QNetworkReply* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QNetworkReply*)theWrappedObject)->promoted_close()); +} + +QNetworkReply::NetworkError PythonQtWrapper_QNetworkReply::error(QNetworkReply* theWrappedObject) const +{ + return ( theWrappedObject->error()); +} + +bool PythonQtWrapper_QNetworkReply::hasRawHeader(QNetworkReply* theWrappedObject, const QByteArray& headerName) const +{ + return ( theWrappedObject->hasRawHeader(headerName)); +} + +QVariant PythonQtWrapper_QNetworkReply::header(QNetworkReply* theWrappedObject, QNetworkRequest::KnownHeaders header) const +{ + return ( theWrappedObject->header(header)); +} + +void PythonQtWrapper_QNetworkReply::ignoreSslErrors(QNetworkReply* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QNetworkReply*)theWrappedObject)->promoted_ignoreSslErrors()); +} + +void PythonQtWrapper_QNetworkReply::ignoreSslErrors(QNetworkReply* theWrappedObject, const QList& errors) +{ + ( theWrappedObject->ignoreSslErrors(errors)); +} + +void PythonQtWrapper_QNetworkReply::ignoreSslErrorsImplementation(QNetworkReply* theWrappedObject, const QList& arg__1) +{ + ( ((PythonQtPublicPromoter_QNetworkReply*)theWrappedObject)->promoted_ignoreSslErrorsImplementation(arg__1)); +} + +bool PythonQtWrapper_QNetworkReply::isFinished(QNetworkReply* theWrappedObject) const +{ + return ( theWrappedObject->isFinished()); +} + +bool PythonQtWrapper_QNetworkReply::isRunning(QNetworkReply* theWrappedObject) const +{ + return ( theWrappedObject->isRunning()); +} + +bool PythonQtWrapper_QNetworkReply::isSequential(QNetworkReply* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QNetworkReply*)theWrappedObject)->promoted_isSequential()); +} + +QNetworkAccessManager* PythonQtWrapper_QNetworkReply::manager(QNetworkReply* theWrappedObject) const +{ + return ( theWrappedObject->manager()); +} + +QNetworkAccessManager::Operation PythonQtWrapper_QNetworkReply::operation(QNetworkReply* theWrappedObject) const +{ + return ( theWrappedObject->operation()); +} + +QByteArray PythonQtWrapper_QNetworkReply::rawHeader(QNetworkReply* theWrappedObject, const QByteArray& headerName) const +{ + return ( theWrappedObject->rawHeader(headerName)); +} + +QList PythonQtWrapper_QNetworkReply::rawHeaderList(QNetworkReply* theWrappedObject) const +{ + return ( theWrappedObject->rawHeaderList()); +} + +const QList >* PythonQtWrapper_QNetworkReply::rawHeaderPairs(QNetworkReply* theWrappedObject) const +{ + return &( theWrappedObject->rawHeaderPairs()); +} + +qint64 PythonQtWrapper_QNetworkReply::readBufferSize(QNetworkReply* theWrappedObject) const +{ + return ( theWrappedObject->readBufferSize()); +} + +QNetworkRequest PythonQtWrapper_QNetworkReply::request(QNetworkReply* theWrappedObject) const +{ + return ( theWrappedObject->request()); +} + +void PythonQtWrapper_QNetworkReply::setReadBufferSize(QNetworkReply* theWrappedObject, qint64 size) +{ + ( ((PythonQtPublicPromoter_QNetworkReply*)theWrappedObject)->promoted_setReadBufferSize(size)); +} + +void PythonQtWrapper_QNetworkReply::setSslConfiguration(QNetworkReply* theWrappedObject, const QSslConfiguration& configuration) +{ + ( theWrappedObject->setSslConfiguration(configuration)); +} + +void PythonQtWrapper_QNetworkReply::setSslConfigurationImplementation(QNetworkReply* theWrappedObject, const QSslConfiguration& arg__1) +{ + ( ((PythonQtPublicPromoter_QNetworkReply*)theWrappedObject)->promoted_setSslConfigurationImplementation(arg__1)); +} + +QSslConfiguration PythonQtWrapper_QNetworkReply::sslConfiguration(QNetworkReply* theWrappedObject) const +{ + return ( theWrappedObject->sslConfiguration()); +} + +void PythonQtWrapper_QNetworkReply::sslConfigurationImplementation(QNetworkReply* theWrappedObject, QSslConfiguration& arg__1) const +{ + ( ((PythonQtPublicPromoter_QNetworkReply*)theWrappedObject)->promoted_sslConfigurationImplementation(arg__1)); +} + +QUrl PythonQtWrapper_QNetworkReply::url(QNetworkReply* theWrappedObject) const +{ + return ( theWrappedObject->url()); +} + +qint64 PythonQtWrapper_QNetworkReply::writeData(QNetworkReply* theWrappedObject, const char* data, qint64 len) +{ + return ( ((PythonQtPublicPromoter_QNetworkReply*)theWrappedObject)->promoted_writeData(data, len)); +} + + + +QNetworkRequest* PythonQtWrapper_QNetworkRequest::new_QNetworkRequest(const QNetworkRequest& other) +{ +return new QNetworkRequest(other); } + +QNetworkRequest* PythonQtWrapper_QNetworkRequest::new_QNetworkRequest(const QUrl& url) +{ +return new QNetworkRequest(url); } + +QVariant PythonQtWrapper_QNetworkRequest::attribute(QNetworkRequest* theWrappedObject, QNetworkRequest::Attribute code, const QVariant& defaultValue) const +{ + return ( theWrappedObject->attribute(code, defaultValue)); +} + +bool PythonQtWrapper_QNetworkRequest::hasRawHeader(QNetworkRequest* theWrappedObject, const QByteArray& headerName) const +{ + return ( theWrappedObject->hasRawHeader(headerName)); +} + +QVariant PythonQtWrapper_QNetworkRequest::header(QNetworkRequest* theWrappedObject, QNetworkRequest::KnownHeaders header) const +{ + return ( theWrappedObject->header(header)); +} + +bool PythonQtWrapper_QNetworkRequest::__ne__(QNetworkRequest* theWrappedObject, const QNetworkRequest& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QNetworkRequest::__eq__(QNetworkRequest* theWrappedObject, const QNetworkRequest& other) const +{ + return ( (*theWrappedObject)== other); +} + +QObject* PythonQtWrapper_QNetworkRequest::originatingObject(QNetworkRequest* theWrappedObject) const +{ + return ( theWrappedObject->originatingObject()); +} + +QNetworkRequest::Priority PythonQtWrapper_QNetworkRequest::priority(QNetworkRequest* theWrappedObject) const +{ + return ( theWrappedObject->priority()); +} + +QByteArray PythonQtWrapper_QNetworkRequest::rawHeader(QNetworkRequest* theWrappedObject, const QByteArray& headerName) const +{ + return ( theWrappedObject->rawHeader(headerName)); +} + +QList PythonQtWrapper_QNetworkRequest::rawHeaderList(QNetworkRequest* theWrappedObject) const +{ + return ( theWrappedObject->rawHeaderList()); +} + +void PythonQtWrapper_QNetworkRequest::setAttribute(QNetworkRequest* theWrappedObject, QNetworkRequest::Attribute code, const QVariant& value) +{ + ( theWrappedObject->setAttribute(code, value)); +} + +void PythonQtWrapper_QNetworkRequest::setHeader(QNetworkRequest* theWrappedObject, QNetworkRequest::KnownHeaders header, const QVariant& value) +{ + ( theWrappedObject->setHeader(header, value)); +} + +void PythonQtWrapper_QNetworkRequest::setOriginatingObject(QNetworkRequest* theWrappedObject, QObject* object) +{ + ( theWrappedObject->setOriginatingObject(object)); +} + +void PythonQtWrapper_QNetworkRequest::setPriority(QNetworkRequest* theWrappedObject, QNetworkRequest::Priority priority) +{ + ( theWrappedObject->setPriority(priority)); +} + +void PythonQtWrapper_QNetworkRequest::setRawHeader(QNetworkRequest* theWrappedObject, const QByteArray& headerName, const QByteArray& value) +{ + ( theWrappedObject->setRawHeader(headerName, value)); +} + +void PythonQtWrapper_QNetworkRequest::setSslConfiguration(QNetworkRequest* theWrappedObject, const QSslConfiguration& configuration) +{ + ( theWrappedObject->setSslConfiguration(configuration)); +} + +void PythonQtWrapper_QNetworkRequest::setUrl(QNetworkRequest* theWrappedObject, const QUrl& url) +{ + ( theWrappedObject->setUrl(url)); +} + +QSslConfiguration PythonQtWrapper_QNetworkRequest::sslConfiguration(QNetworkRequest* theWrappedObject) const +{ + return ( theWrappedObject->sslConfiguration()); +} + +void PythonQtWrapper_QNetworkRequest::swap(QNetworkRequest* theWrappedObject, QNetworkRequest& other) +{ + ( theWrappedObject->swap(other)); +} + +QUrl PythonQtWrapper_QNetworkRequest::url(QNetworkRequest* theWrappedObject) const +{ + return ( theWrappedObject->url()); +} + + + + + +QSslCertificate* PythonQtWrapper_QSslCertificate::new_QSslCertificate(QIODevice* device, QSsl::EncodingFormat format) +{ +return new QSslCertificate(device, format); } + +QSslCertificate* PythonQtWrapper_QSslCertificate::new_QSslCertificate(const QByteArray& data, QSsl::EncodingFormat format) +{ +return new QSslCertificate(data, format); } + +QSslCertificate* PythonQtWrapper_QSslCertificate::new_QSslCertificate(const QSslCertificate& other) +{ +return new QSslCertificate(other); } + +void PythonQtWrapper_QSslCertificate::clear(QSslCertificate* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +QByteArray PythonQtWrapper_QSslCertificate::digest(QSslCertificate* theWrappedObject, QCryptographicHash::Algorithm algorithm) const +{ + return ( theWrappedObject->digest(algorithm)); +} + +QDateTime PythonQtWrapper_QSslCertificate::effectiveDate(QSslCertificate* theWrappedObject) const +{ + return ( theWrappedObject->effectiveDate()); +} + +QDateTime PythonQtWrapper_QSslCertificate::expiryDate(QSslCertificate* theWrappedObject) const +{ + return ( theWrappedObject->expiryDate()); +} + +QList PythonQtWrapper_QSslCertificate::static_QSslCertificate_fromData(const QByteArray& data, QSsl::EncodingFormat format) +{ + return (QSslCertificate::fromData(data, format)); +} + +QList PythonQtWrapper_QSslCertificate::static_QSslCertificate_fromDevice(QIODevice* device, QSsl::EncodingFormat format) +{ + return (QSslCertificate::fromDevice(device, format)); +} + +QList PythonQtWrapper_QSslCertificate::static_QSslCertificate_fromPath(const QString& path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax) +{ + return (QSslCertificate::fromPath(path, format, syntax)); +} + +Qt::HANDLE PythonQtWrapper_QSslCertificate::handle(QSslCertificate* theWrappedObject) const +{ + return ( theWrappedObject->handle()); +} + +bool PythonQtWrapper_QSslCertificate::isBlacklisted(QSslCertificate* theWrappedObject) const +{ + return ( theWrappedObject->isBlacklisted()); +} + +bool PythonQtWrapper_QSslCertificate::isNull(QSslCertificate* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +QStringList PythonQtWrapper_QSslCertificate::issuerInfo(QSslCertificate* theWrappedObject, QSslCertificate::SubjectInfo info) const +{ + return ( theWrappedObject->issuerInfo(info)); +} + +QStringList PythonQtWrapper_QSslCertificate::issuerInfo(QSslCertificate* theWrappedObject, const QByteArray& attribute) const +{ + return ( theWrappedObject->issuerInfo(attribute)); +} + +QList PythonQtWrapper_QSslCertificate::issuerInfoAttributes(QSslCertificate* theWrappedObject) const +{ + return ( theWrappedObject->issuerInfoAttributes()); +} + +bool PythonQtWrapper_QSslCertificate::__ne__(QSslCertificate* theWrappedObject, const QSslCertificate& other) const +{ + return ( (*theWrappedObject)!= other); +} + +QSslCertificate* PythonQtWrapper_QSslCertificate::operator_assign(QSslCertificate* theWrappedObject, const QSslCertificate& other) +{ + return &( (*theWrappedObject)= other); +} + +bool PythonQtWrapper_QSslCertificate::__eq__(QSslCertificate* theWrappedObject, const QSslCertificate& other) const +{ + return ( (*theWrappedObject)== other); +} + +QSslKey PythonQtWrapper_QSslCertificate::publicKey(QSslCertificate* theWrappedObject) const +{ + return ( theWrappedObject->publicKey()); +} + +QByteArray PythonQtWrapper_QSslCertificate::serialNumber(QSslCertificate* theWrappedObject) const +{ + return ( theWrappedObject->serialNumber()); +} + +QStringList PythonQtWrapper_QSslCertificate::subjectInfo(QSslCertificate* theWrappedObject, QSslCertificate::SubjectInfo info) const +{ + return ( theWrappedObject->subjectInfo(info)); +} + +QStringList PythonQtWrapper_QSslCertificate::subjectInfo(QSslCertificate* theWrappedObject, const QByteArray& attribute) const +{ + return ( theWrappedObject->subjectInfo(attribute)); +} + +QList PythonQtWrapper_QSslCertificate::subjectInfoAttributes(QSslCertificate* theWrappedObject) const +{ + return ( theWrappedObject->subjectInfoAttributes()); +} + +void PythonQtWrapper_QSslCertificate::swap(QSslCertificate* theWrappedObject, QSslCertificate& other) +{ + ( theWrappedObject->swap(other)); +} + +QByteArray PythonQtWrapper_QSslCertificate::toDer(QSslCertificate* theWrappedObject) const +{ + return ( theWrappedObject->toDer()); +} + +QByteArray PythonQtWrapper_QSslCertificate::toPem(QSslCertificate* theWrappedObject) const +{ + return ( theWrappedObject->toPem()); +} + +QString PythonQtWrapper_QSslCertificate::toText(QSslCertificate* theWrappedObject) const +{ + return ( theWrappedObject->toText()); +} + +QList PythonQtWrapper_QSslCertificate::static_QSslCertificate_verify(QList certificateChain, const QString& hostName) +{ + return (QSslCertificate::verify(certificateChain, hostName)); +} + +QByteArray PythonQtWrapper_QSslCertificate::version(QSslCertificate* theWrappedObject) const +{ + return ( theWrappedObject->version()); +} + +QString PythonQtWrapper_QSslCertificate::py_toString(QSslCertificate* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QSslCipher* PythonQtWrapper_QSslCipher::new_QSslCipher() +{ +return new QSslCipher(); } + +QSslCipher* PythonQtWrapper_QSslCipher::new_QSslCipher(const QSslCipher& other) +{ +return new QSslCipher(other); } + +QSslCipher* PythonQtWrapper_QSslCipher::new_QSslCipher(const QString& name, QSsl::SslProtocol protocol) +{ +return new QSslCipher(name, protocol); } + +QString PythonQtWrapper_QSslCipher::authenticationMethod(QSslCipher* theWrappedObject) const +{ + return ( theWrappedObject->authenticationMethod()); +} + +QString PythonQtWrapper_QSslCipher::encryptionMethod(QSslCipher* theWrappedObject) const +{ + return ( theWrappedObject->encryptionMethod()); +} + +bool PythonQtWrapper_QSslCipher::isNull(QSslCipher* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +QString PythonQtWrapper_QSslCipher::keyExchangeMethod(QSslCipher* theWrappedObject) const +{ + return ( theWrappedObject->keyExchangeMethod()); +} + +QString PythonQtWrapper_QSslCipher::name(QSslCipher* theWrappedObject) const +{ + return ( theWrappedObject->name()); +} + +bool PythonQtWrapper_QSslCipher::__ne__(QSslCipher* theWrappedObject, const QSslCipher& other) const +{ + return ( (*theWrappedObject)!= other); +} + +QSslCipher* PythonQtWrapper_QSslCipher::operator_assign(QSslCipher* theWrappedObject, const QSslCipher& other) +{ + return &( (*theWrappedObject)= other); +} + +bool PythonQtWrapper_QSslCipher::__eq__(QSslCipher* theWrappedObject, const QSslCipher& other) const +{ + return ( (*theWrappedObject)== other); +} + +QSsl::SslProtocol PythonQtWrapper_QSslCipher::protocol(QSslCipher* theWrappedObject) const +{ + return ( theWrappedObject->protocol()); +} + +QString PythonQtWrapper_QSslCipher::protocolString(QSslCipher* theWrappedObject) const +{ + return ( theWrappedObject->protocolString()); +} + +int PythonQtWrapper_QSslCipher::supportedBits(QSslCipher* theWrappedObject) const +{ + return ( theWrappedObject->supportedBits()); +} + +void PythonQtWrapper_QSslCipher::swap(QSslCipher* theWrappedObject, QSslCipher& other) +{ + ( theWrappedObject->swap(other)); +} + +int PythonQtWrapper_QSslCipher::usedBits(QSslCipher* theWrappedObject) const +{ + return ( theWrappedObject->usedBits()); +} + +QString PythonQtWrapper_QSslCipher::py_toString(QSslCipher* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QSslConfiguration* PythonQtWrapper_QSslConfiguration::new_QSslConfiguration() +{ +return new QSslConfiguration(); } + +QSslConfiguration* PythonQtWrapper_QSslConfiguration::new_QSslConfiguration(const QSslConfiguration& other) +{ +return new QSslConfiguration(other); } + +QList PythonQtWrapper_QSslConfiguration::caCertificates(QSslConfiguration* theWrappedObject) const +{ + return ( theWrappedObject->caCertificates()); +} + +QList PythonQtWrapper_QSslConfiguration::ciphers(QSslConfiguration* theWrappedObject) const +{ + return ( theWrappedObject->ciphers()); +} + +QSslConfiguration PythonQtWrapper_QSslConfiguration::static_QSslConfiguration_defaultConfiguration() +{ + return (QSslConfiguration::defaultConfiguration()); +} + +bool PythonQtWrapper_QSslConfiguration::isNull(QSslConfiguration* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +QSslCertificate PythonQtWrapper_QSslConfiguration::localCertificate(QSslConfiguration* theWrappedObject) const +{ + return ( theWrappedObject->localCertificate()); +} + +bool PythonQtWrapper_QSslConfiguration::__ne__(QSslConfiguration* theWrappedObject, const QSslConfiguration& other) const +{ + return ( (*theWrappedObject)!= other); +} + +QSslConfiguration* PythonQtWrapper_QSslConfiguration::operator_assign(QSslConfiguration* theWrappedObject, const QSslConfiguration& other) +{ + return &( (*theWrappedObject)= other); +} + +bool PythonQtWrapper_QSslConfiguration::__eq__(QSslConfiguration* theWrappedObject, const QSslConfiguration& other) const +{ + return ( (*theWrappedObject)== other); +} + +QSslCertificate PythonQtWrapper_QSslConfiguration::peerCertificate(QSslConfiguration* theWrappedObject) const +{ + return ( theWrappedObject->peerCertificate()); +} + +QList PythonQtWrapper_QSslConfiguration::peerCertificateChain(QSslConfiguration* theWrappedObject) const +{ + return ( theWrappedObject->peerCertificateChain()); +} + +int PythonQtWrapper_QSslConfiguration::peerVerifyDepth(QSslConfiguration* theWrappedObject) const +{ + return ( theWrappedObject->peerVerifyDepth()); +} + +QSslSocket::PeerVerifyMode PythonQtWrapper_QSslConfiguration::peerVerifyMode(QSslConfiguration* theWrappedObject) const +{ + return ( theWrappedObject->peerVerifyMode()); +} + +QSslKey PythonQtWrapper_QSslConfiguration::privateKey(QSslConfiguration* theWrappedObject) const +{ + return ( theWrappedObject->privateKey()); +} + +QSsl::SslProtocol PythonQtWrapper_QSslConfiguration::protocol(QSslConfiguration* theWrappedObject) const +{ + return ( theWrappedObject->protocol()); +} + +QSslCipher PythonQtWrapper_QSslConfiguration::sessionCipher(QSslConfiguration* theWrappedObject) const +{ + return ( theWrappedObject->sessionCipher()); +} + +void PythonQtWrapper_QSslConfiguration::setCaCertificates(QSslConfiguration* theWrappedObject, const QList& certificates) +{ + ( theWrappedObject->setCaCertificates(certificates)); +} + +void PythonQtWrapper_QSslConfiguration::setCiphers(QSslConfiguration* theWrappedObject, const QList& ciphers) +{ + ( theWrappedObject->setCiphers(ciphers)); +} + +void PythonQtWrapper_QSslConfiguration::static_QSslConfiguration_setDefaultConfiguration(const QSslConfiguration& configuration) +{ + (QSslConfiguration::setDefaultConfiguration(configuration)); +} + +void PythonQtWrapper_QSslConfiguration::setLocalCertificate(QSslConfiguration* theWrappedObject, const QSslCertificate& certificate) +{ + ( theWrappedObject->setLocalCertificate(certificate)); +} + +void PythonQtWrapper_QSslConfiguration::setPeerVerifyDepth(QSslConfiguration* theWrappedObject, int depth) +{ + ( theWrappedObject->setPeerVerifyDepth(depth)); +} + +void PythonQtWrapper_QSslConfiguration::setPeerVerifyMode(QSslConfiguration* theWrappedObject, QSslSocket::PeerVerifyMode mode) +{ + ( theWrappedObject->setPeerVerifyMode(mode)); +} + +void PythonQtWrapper_QSslConfiguration::setPrivateKey(QSslConfiguration* theWrappedObject, const QSslKey& key) +{ + ( theWrappedObject->setPrivateKey(key)); +} + +void PythonQtWrapper_QSslConfiguration::setProtocol(QSslConfiguration* theWrappedObject, QSsl::SslProtocol protocol) +{ + ( theWrappedObject->setProtocol(protocol)); +} + +void PythonQtWrapper_QSslConfiguration::swap(QSslConfiguration* theWrappedObject, QSslConfiguration& other) +{ + ( theWrappedObject->swap(other)); +} + + + +QSslError* PythonQtWrapper_QSslError::new_QSslError() +{ +return new QSslError(); } + +QSslError* PythonQtWrapper_QSslError::new_QSslError(QSslError::SslError error) +{ +return new QSslError(error); } + +QSslError* PythonQtWrapper_QSslError::new_QSslError(QSslError::SslError error, const QSslCertificate& certificate) +{ +return new QSslError(error, certificate); } + +QSslError* PythonQtWrapper_QSslError::new_QSslError(const QSslError& other) +{ +return new QSslError(other); } + +QSslCertificate PythonQtWrapper_QSslError::certificate(QSslError* theWrappedObject) const +{ + return ( theWrappedObject->certificate()); +} + +QSslError::SslError PythonQtWrapper_QSslError::error(QSslError* theWrappedObject) const +{ + return ( theWrappedObject->error()); +} + +QString PythonQtWrapper_QSslError::errorString(QSslError* theWrappedObject) const +{ + return ( theWrappedObject->errorString()); +} + +bool PythonQtWrapper_QSslError::__ne__(QSslError* theWrappedObject, const QSslError& other) const +{ + return ( (*theWrappedObject)!= other); +} + +QSslError* PythonQtWrapper_QSslError::operator_assign(QSslError* theWrappedObject, const QSslError& other) +{ + return &( (*theWrappedObject)= other); +} + +bool PythonQtWrapper_QSslError::__eq__(QSslError* theWrappedObject, const QSslError& other) const +{ + return ( (*theWrappedObject)== other); +} + +void PythonQtWrapper_QSslError::swap(QSslError* theWrappedObject, QSslError& other) +{ + ( theWrappedObject->swap(other)); +} + +QString PythonQtWrapper_QSslError::py_toString(QSslError* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QSslKey* PythonQtWrapper_QSslKey::new_QSslKey() +{ +return new QSslKey(); } + +QSslKey* PythonQtWrapper_QSslKey::new_QSslKey(QIODevice* device, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format, QSsl::KeyType type, const QByteArray& passPhrase) +{ +return new QSslKey(device, algorithm, format, type, passPhrase); } + +QSslKey* PythonQtWrapper_QSslKey::new_QSslKey(Qt::HANDLE handle, QSsl::KeyType type) +{ +return new QSslKey(handle, type); } + +QSslKey* PythonQtWrapper_QSslKey::new_QSslKey(const QByteArray& encoded, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format, QSsl::KeyType type, const QByteArray& passPhrase) +{ +return new QSslKey(encoded, algorithm, format, type, passPhrase); } + +QSslKey* PythonQtWrapper_QSslKey::new_QSslKey(const QSslKey& other) +{ +return new QSslKey(other); } + +QSsl::KeyAlgorithm PythonQtWrapper_QSslKey::algorithm(QSslKey* theWrappedObject) const +{ + return ( theWrappedObject->algorithm()); +} + +void PythonQtWrapper_QSslKey::clear(QSslKey* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +Qt::HANDLE PythonQtWrapper_QSslKey::handle(QSslKey* theWrappedObject) const +{ + return ( theWrappedObject->handle()); +} + +bool PythonQtWrapper_QSslKey::isNull(QSslKey* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +int PythonQtWrapper_QSslKey::length(QSslKey* theWrappedObject) const +{ + return ( theWrappedObject->length()); +} + +bool PythonQtWrapper_QSslKey::__ne__(QSslKey* theWrappedObject, const QSslKey& key) const +{ + return ( (*theWrappedObject)!= key); +} + +QSslKey* PythonQtWrapper_QSslKey::operator_assign(QSslKey* theWrappedObject, const QSslKey& other) +{ + return &( (*theWrappedObject)= other); +} + +bool PythonQtWrapper_QSslKey::__eq__(QSslKey* theWrappedObject, const QSslKey& key) const +{ + return ( (*theWrappedObject)== key); +} + +void PythonQtWrapper_QSslKey::swap(QSslKey* theWrappedObject, QSslKey& other) +{ + ( theWrappedObject->swap(other)); +} + +QByteArray PythonQtWrapper_QSslKey::toDer(QSslKey* theWrappedObject, const QByteArray& passPhrase) const +{ + return ( theWrappedObject->toDer(passPhrase)); +} + +QByteArray PythonQtWrapper_QSslKey::toPem(QSslKey* theWrappedObject, const QByteArray& passPhrase) const +{ + return ( theWrappedObject->toPem(passPhrase)); +} + +QSsl::KeyType PythonQtWrapper_QSslKey::type(QSslKey* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + +QString PythonQtWrapper_QSslKey::py_toString(QSslKey* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +PythonQtShell_QSslSocket::~PythonQtShell_QSslSocket() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QSslSocket::atEnd() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::atEnd(); +} +qint64 PythonQtShell_QSslSocket::bytesAvailable() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::bytesAvailable(); +} +qint64 PythonQtShell_QSslSocket::bytesToWrite() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::bytesToWrite(); +} +bool PythonQtShell_QSslSocket::canReadLine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::canReadLine(); +} +void PythonQtShell_QSslSocket::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSslSocket::childEvent(arg__1); +} +void PythonQtShell_QSslSocket::close() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSslSocket::close(); +} +void PythonQtShell_QSslSocket::connectToHost(const QString& hostName, unsigned short port, QIODevice::OpenMode openMode, QAbstractSocket::NetworkLayerProtocol protocol) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "connectToHost"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&" , "unsigned short" , "QIODevice::OpenMode" , "QAbstractSocket::NetworkLayerProtocol"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&hostName, (void*)&port, (void*)&openMode, (void*)&protocol}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSslSocket::connectToHost(hostName, port, openMode, protocol); +} +void PythonQtShell_QSslSocket::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSslSocket::customEvent(arg__1); +} +void PythonQtShell_QSslSocket::disconnectFromHost() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "disconnectFromHost"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSslSocket::disconnectFromHost(); +} +bool PythonQtShell_QSslSocket::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::event(arg__1); +} +bool PythonQtShell_QSslSocket::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QSslSocket::isSequential() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::isSequential(); +} +bool PythonQtShell_QSslSocket::open(QIODevice::OpenMode mode) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::open(mode); +} +qint64 PythonQtShell_QSslSocket::pos() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::pos(); +} +qint64 PythonQtShell_QSslSocket::readData(char* data, qint64 maxlen) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::readData(data, maxlen); +} +qint64 PythonQtShell_QSslSocket::readLineData(char* data, qint64 maxlen) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::readLineData(data, maxlen); +} +bool PythonQtShell_QSslSocket::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::reset(); +} +void PythonQtShell_QSslSocket::resume() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resume"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSslSocket::resume(); +} +bool PythonQtShell_QSslSocket::seek(qint64 pos) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::seek(pos); +} +void PythonQtShell_QSslSocket::setReadBufferSize(qint64 size) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setReadBufferSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&size}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSslSocket::setReadBufferSize(size); +} +void PythonQtShell_QSslSocket::setSocketOption(QAbstractSocket::SocketOption option, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSocketOption"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractSocket::SocketOption" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&option, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSslSocket::setSocketOption(option, value); +} +qint64 PythonQtShell_QSslSocket::size() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::size(); +} +QVariant PythonQtShell_QSslSocket::socketOption(QAbstractSocket::SocketOption option) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "socketOption"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "QAbstractSocket::SocketOption"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&option}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("socketOption", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::socketOption(option); +} +void PythonQtShell_QSslSocket::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSslSocket::timerEvent(arg__1); +} +bool PythonQtShell_QSslSocket::waitForBytesWritten(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::waitForBytesWritten(msecs); +} +bool PythonQtShell_QSslSocket::waitForConnected(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForConnected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForConnected", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::waitForConnected(msecs); +} +bool PythonQtShell_QSslSocket::waitForDisconnected(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForDisconnected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForDisconnected", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::waitForDisconnected(msecs); +} +bool PythonQtShell_QSslSocket::waitForReadyRead(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::waitForReadyRead(msecs); +} +qint64 PythonQtShell_QSslSocket::writeData(const char* data, qint64 len) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&len}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSslSocket::writeData(data, len); +} +QSslSocket* PythonQtWrapper_QSslSocket::new_QSslSocket(QObject* parent) +{ +return new PythonQtShell_QSslSocket(parent); } + +void PythonQtWrapper_QSslSocket::abort(QSslSocket* theWrappedObject) +{ + ( theWrappedObject->abort()); +} + +void PythonQtWrapper_QSslSocket::addCaCertificate(QSslSocket* theWrappedObject, const QSslCertificate& certificate) +{ + ( theWrappedObject->addCaCertificate(certificate)); +} + +void PythonQtWrapper_QSslSocket::addCaCertificates(QSslSocket* theWrappedObject, const QList& certificates) +{ + ( theWrappedObject->addCaCertificates(certificates)); +} + +bool PythonQtWrapper_QSslSocket::addCaCertificates(QSslSocket* theWrappedObject, const QString& path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax) +{ + return ( theWrappedObject->addCaCertificates(path, format, syntax)); +} + +void PythonQtWrapper_QSslSocket::static_QSslSocket_addDefaultCaCertificate(const QSslCertificate& certificate) +{ + (QSslSocket::addDefaultCaCertificate(certificate)); +} + +void PythonQtWrapper_QSslSocket::static_QSslSocket_addDefaultCaCertificates(const QList& certificates) +{ + (QSslSocket::addDefaultCaCertificates(certificates)); +} + +bool PythonQtWrapper_QSslSocket::static_QSslSocket_addDefaultCaCertificates(const QString& path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax) +{ + return (QSslSocket::addDefaultCaCertificates(path, format, syntax)); +} + +bool PythonQtWrapper_QSslSocket::atEnd(QSslSocket* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_atEnd()); +} + +qint64 PythonQtWrapper_QSslSocket::bytesAvailable(QSslSocket* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_bytesAvailable()); +} + +qint64 PythonQtWrapper_QSslSocket::bytesToWrite(QSslSocket* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_bytesToWrite()); +} + +QList PythonQtWrapper_QSslSocket::caCertificates(QSslSocket* theWrappedObject) const +{ + return ( theWrappedObject->caCertificates()); +} + +bool PythonQtWrapper_QSslSocket::canReadLine(QSslSocket* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_canReadLine()); +} + +QList PythonQtWrapper_QSslSocket::ciphers(QSslSocket* theWrappedObject) const +{ + return ( theWrappedObject->ciphers()); +} + +void PythonQtWrapper_QSslSocket::close(QSslSocket* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_close()); +} + +void PythonQtWrapper_QSslSocket::connectToHost(QSslSocket* theWrappedObject, const QString& hostName, unsigned short port, QIODevice::OpenMode openMode, QAbstractSocket::NetworkLayerProtocol protocol) +{ + ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_connectToHost(hostName, port, openMode, protocol)); +} + +void PythonQtWrapper_QSslSocket::connectToHostEncrypted(QSslSocket* theWrappedObject, const QString& hostName, unsigned short port, QIODevice::OpenMode mode, QAbstractSocket::NetworkLayerProtocol protocol) +{ + ( theWrappedObject->connectToHostEncrypted(hostName, port, mode, protocol)); +} + +void PythonQtWrapper_QSslSocket::connectToHostEncrypted(QSslSocket* theWrappedObject, const QString& hostName, unsigned short port, const QString& sslPeerName, QIODevice::OpenMode mode, QAbstractSocket::NetworkLayerProtocol protocol) +{ + ( theWrappedObject->connectToHostEncrypted(hostName, port, sslPeerName, mode, protocol)); +} + +QList PythonQtWrapper_QSslSocket::static_QSslSocket_defaultCaCertificates() +{ + return (QSslSocket::defaultCaCertificates()); +} + +QList PythonQtWrapper_QSslSocket::static_QSslSocket_defaultCiphers() +{ + return (QSslSocket::defaultCiphers()); +} + +void PythonQtWrapper_QSslSocket::disconnectFromHost(QSslSocket* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_disconnectFromHost()); +} + +qint64 PythonQtWrapper_QSslSocket::encryptedBytesAvailable(QSslSocket* theWrappedObject) const +{ + return ( theWrappedObject->encryptedBytesAvailable()); +} + +qint64 PythonQtWrapper_QSslSocket::encryptedBytesToWrite(QSslSocket* theWrappedObject) const +{ + return ( theWrappedObject->encryptedBytesToWrite()); +} + +bool PythonQtWrapper_QSslSocket::flush(QSslSocket* theWrappedObject) +{ + return ( theWrappedObject->flush()); +} + +void PythonQtWrapper_QSslSocket::ignoreSslErrors(QSslSocket* theWrappedObject, const QList& errors) +{ + ( theWrappedObject->ignoreSslErrors(errors)); +} + +bool PythonQtWrapper_QSslSocket::isEncrypted(QSslSocket* theWrappedObject) const +{ + return ( theWrappedObject->isEncrypted()); +} + +QSslCertificate PythonQtWrapper_QSslSocket::localCertificate(QSslSocket* theWrappedObject) const +{ + return ( theWrappedObject->localCertificate()); +} + +QSslSocket::SslMode PythonQtWrapper_QSslSocket::mode(QSslSocket* theWrappedObject) const +{ + return ( theWrappedObject->mode()); +} + +QSslCertificate PythonQtWrapper_QSslSocket::peerCertificate(QSslSocket* theWrappedObject) const +{ + return ( theWrappedObject->peerCertificate()); +} + +QList PythonQtWrapper_QSslSocket::peerCertificateChain(QSslSocket* theWrappedObject) const +{ + return ( theWrappedObject->peerCertificateChain()); +} + +int PythonQtWrapper_QSslSocket::peerVerifyDepth(QSslSocket* theWrappedObject) const +{ + return ( theWrappedObject->peerVerifyDepth()); +} + +QSslSocket::PeerVerifyMode PythonQtWrapper_QSslSocket::peerVerifyMode(QSslSocket* theWrappedObject) const +{ + return ( theWrappedObject->peerVerifyMode()); +} + +QString PythonQtWrapper_QSslSocket::peerVerifyName(QSslSocket* theWrappedObject) const +{ + return ( theWrappedObject->peerVerifyName()); +} + +QSslKey PythonQtWrapper_QSslSocket::privateKey(QSslSocket* theWrappedObject) const +{ + return ( theWrappedObject->privateKey()); +} + +QSsl::SslProtocol PythonQtWrapper_QSslSocket::protocol(QSslSocket* theWrappedObject) const +{ + return ( theWrappedObject->protocol()); +} + +qint64 PythonQtWrapper_QSslSocket::readData(QSslSocket* theWrappedObject, char* data, qint64 maxlen) +{ + return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_readData(data, maxlen)); +} + +void PythonQtWrapper_QSslSocket::resume(QSslSocket* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_resume()); +} + +QSslCipher PythonQtWrapper_QSslSocket::sessionCipher(QSslSocket* theWrappedObject) const +{ + return ( theWrappedObject->sessionCipher()); +} + +void PythonQtWrapper_QSslSocket::setCaCertificates(QSslSocket* theWrappedObject, const QList& certificates) +{ + ( theWrappedObject->setCaCertificates(certificates)); +} + +void PythonQtWrapper_QSslSocket::setCiphers(QSslSocket* theWrappedObject, const QList& ciphers) +{ + ( theWrappedObject->setCiphers(ciphers)); +} + +void PythonQtWrapper_QSslSocket::setCiphers(QSslSocket* theWrappedObject, const QString& ciphers) +{ + ( theWrappedObject->setCiphers(ciphers)); +} + +void PythonQtWrapper_QSslSocket::static_QSslSocket_setDefaultCaCertificates(const QList& certificates) +{ + (QSslSocket::setDefaultCaCertificates(certificates)); +} + +void PythonQtWrapper_QSslSocket::static_QSslSocket_setDefaultCiphers(const QList& ciphers) +{ + (QSslSocket::setDefaultCiphers(ciphers)); +} + +void PythonQtWrapper_QSslSocket::setLocalCertificate(QSslSocket* theWrappedObject, const QSslCertificate& certificate) +{ + ( theWrappedObject->setLocalCertificate(certificate)); +} + +void PythonQtWrapper_QSslSocket::setLocalCertificate(QSslSocket* theWrappedObject, const QString& fileName, QSsl::EncodingFormat format) +{ + ( theWrappedObject->setLocalCertificate(fileName, format)); +} + +void PythonQtWrapper_QSslSocket::setPeerVerifyDepth(QSslSocket* theWrappedObject, int depth) +{ + ( theWrappedObject->setPeerVerifyDepth(depth)); +} + +void PythonQtWrapper_QSslSocket::setPeerVerifyMode(QSslSocket* theWrappedObject, QSslSocket::PeerVerifyMode mode) +{ + ( theWrappedObject->setPeerVerifyMode(mode)); +} + +void PythonQtWrapper_QSslSocket::setPeerVerifyName(QSslSocket* theWrappedObject, const QString& hostName) +{ + ( theWrappedObject->setPeerVerifyName(hostName)); +} + +void PythonQtWrapper_QSslSocket::setPrivateKey(QSslSocket* theWrappedObject, const QSslKey& key) +{ + ( theWrappedObject->setPrivateKey(key)); +} + +void PythonQtWrapper_QSslSocket::setPrivateKey(QSslSocket* theWrappedObject, const QString& fileName, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format, const QByteArray& passPhrase) +{ + ( theWrappedObject->setPrivateKey(fileName, algorithm, format, passPhrase)); +} + +void PythonQtWrapper_QSslSocket::setProtocol(QSslSocket* theWrappedObject, QSsl::SslProtocol protocol) +{ + ( theWrappedObject->setProtocol(protocol)); +} + +void PythonQtWrapper_QSslSocket::setReadBufferSize(QSslSocket* theWrappedObject, qint64 size) +{ + ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_setReadBufferSize(size)); +} + +void PythonQtWrapper_QSslSocket::setSocketOption(QSslSocket* theWrappedObject, QAbstractSocket::SocketOption option, const QVariant& value) +{ + ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_setSocketOption(option, value)); +} + +void PythonQtWrapper_QSslSocket::setSslConfiguration(QSslSocket* theWrappedObject, const QSslConfiguration& config) +{ + ( theWrappedObject->setSslConfiguration(config)); +} + +QVariant PythonQtWrapper_QSslSocket::socketOption(QSslSocket* theWrappedObject, QAbstractSocket::SocketOption option) +{ + return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_socketOption(option)); +} + +QSslConfiguration PythonQtWrapper_QSslSocket::sslConfiguration(QSslSocket* theWrappedObject) const +{ + return ( theWrappedObject->sslConfiguration()); +} + +QList PythonQtWrapper_QSslSocket::sslErrors(QSslSocket* theWrappedObject) const +{ + return ( theWrappedObject->sslErrors()); +} + +long PythonQtWrapper_QSslSocket::static_QSslSocket_sslLibraryVersionNumber() +{ + return (QSslSocket::sslLibraryVersionNumber()); +} + +QString PythonQtWrapper_QSslSocket::static_QSslSocket_sslLibraryVersionString() +{ + return (QSslSocket::sslLibraryVersionString()); +} + +QList PythonQtWrapper_QSslSocket::static_QSslSocket_supportedCiphers() +{ + return (QSslSocket::supportedCiphers()); +} + +bool PythonQtWrapper_QSslSocket::static_QSslSocket_supportsSsl() +{ + return (QSslSocket::supportsSsl()); +} + +QList PythonQtWrapper_QSslSocket::static_QSslSocket_systemCaCertificates() +{ + return (QSslSocket::systemCaCertificates()); +} + +bool PythonQtWrapper_QSslSocket::waitForBytesWritten(QSslSocket* theWrappedObject, int msecs) +{ + return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_waitForBytesWritten(msecs)); +} + +bool PythonQtWrapper_QSslSocket::waitForConnected(QSslSocket* theWrappedObject, int msecs) +{ + return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_waitForConnected(msecs)); +} + +bool PythonQtWrapper_QSslSocket::waitForDisconnected(QSslSocket* theWrappedObject, int msecs) +{ + return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_waitForDisconnected(msecs)); +} + +bool PythonQtWrapper_QSslSocket::waitForEncrypted(QSslSocket* theWrappedObject, int msecs) +{ + return ( theWrappedObject->waitForEncrypted(msecs)); +} + +bool PythonQtWrapper_QSslSocket::waitForReadyRead(QSslSocket* theWrappedObject, int msecs) +{ + return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_waitForReadyRead(msecs)); +} + +qint64 PythonQtWrapper_QSslSocket::writeData(QSslSocket* theWrappedObject, const char* data, qint64 len) +{ + return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_writeData(data, len)); +} + + + +PythonQtShell_QTcpServer::~PythonQtShell_QTcpServer() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QTcpServer::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTcpServer::childEvent(arg__1); +} +void PythonQtShell_QTcpServer::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTcpServer::customEvent(arg__1); +} +bool PythonQtShell_QTcpServer::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpServer::event(arg__1); +} +bool PythonQtShell_QTcpServer::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpServer::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QTcpServer::hasPendingConnections() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasPendingConnections"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasPendingConnections", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpServer::hasPendingConnections(); +} +QTcpSocket* PythonQtShell_QTcpServer::nextPendingConnection() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextPendingConnection"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QTcpSocket*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QTcpSocket* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nextPendingConnection", methodInfo, result); + } else { + returnValue = *((QTcpSocket**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpServer::nextPendingConnection(); +} +void PythonQtShell_QTcpServer::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTcpServer::timerEvent(arg__1); +} +QTcpServer* PythonQtWrapper_QTcpServer::new_QTcpServer(QObject* parent) +{ +return new PythonQtShell_QTcpServer(parent); } + +void PythonQtWrapper_QTcpServer::close(QTcpServer* theWrappedObject) +{ + ( theWrappedObject->close()); +} + +QString PythonQtWrapper_QTcpServer::errorString(QTcpServer* theWrappedObject) const +{ + return ( theWrappedObject->errorString()); +} + +bool PythonQtWrapper_QTcpServer::hasPendingConnections(QTcpServer* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QTcpServer*)theWrappedObject)->promoted_hasPendingConnections()); +} + +bool PythonQtWrapper_QTcpServer::isListening(QTcpServer* theWrappedObject) const +{ + return ( theWrappedObject->isListening()); +} + +bool PythonQtWrapper_QTcpServer::listen(QTcpServer* theWrappedObject, const QHostAddress& address, unsigned short port) +{ + return ( theWrappedObject->listen(address, port)); +} + +int PythonQtWrapper_QTcpServer::maxPendingConnections(QTcpServer* theWrappedObject) const +{ + return ( theWrappedObject->maxPendingConnections()); +} + +QTcpSocket* PythonQtWrapper_QTcpServer::nextPendingConnection(QTcpServer* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QTcpServer*)theWrappedObject)->promoted_nextPendingConnection()); +} + +void PythonQtWrapper_QTcpServer::pauseAccepting(QTcpServer* theWrappedObject) +{ + ( theWrappedObject->pauseAccepting()); +} + +QNetworkProxy PythonQtWrapper_QTcpServer::proxy(QTcpServer* theWrappedObject) const +{ + return ( theWrappedObject->proxy()); +} + +void PythonQtWrapper_QTcpServer::resumeAccepting(QTcpServer* theWrappedObject) +{ + ( theWrappedObject->resumeAccepting()); +} + +QHostAddress PythonQtWrapper_QTcpServer::serverAddress(QTcpServer* theWrappedObject) const +{ + return ( theWrappedObject->serverAddress()); +} + +QAbstractSocket::SocketError PythonQtWrapper_QTcpServer::serverError(QTcpServer* theWrappedObject) const +{ + return ( theWrappedObject->serverError()); +} + +unsigned short PythonQtWrapper_QTcpServer::serverPort(QTcpServer* theWrappedObject) const +{ + return ( theWrappedObject->serverPort()); +} + +void PythonQtWrapper_QTcpServer::setMaxPendingConnections(QTcpServer* theWrappedObject, int numConnections) +{ + ( theWrappedObject->setMaxPendingConnections(numConnections)); +} + +void PythonQtWrapper_QTcpServer::setProxy(QTcpServer* theWrappedObject, const QNetworkProxy& networkProxy) +{ + ( theWrappedObject->setProxy(networkProxy)); +} + +bool PythonQtWrapper_QTcpServer::waitForNewConnection(QTcpServer* theWrappedObject, int msec, bool* timedOut) +{ + return ( theWrappedObject->waitForNewConnection(msec, timedOut)); +} + + + +PythonQtShell_QTcpSocket::~PythonQtShell_QTcpSocket() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QTcpSocket::atEnd() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::atEnd(); +} +qint64 PythonQtShell_QTcpSocket::bytesAvailable() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::bytesAvailable(); +} +qint64 PythonQtShell_QTcpSocket::bytesToWrite() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::bytesToWrite(); +} +bool PythonQtShell_QTcpSocket::canReadLine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::canReadLine(); +} +void PythonQtShell_QTcpSocket::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTcpSocket::childEvent(arg__1); +} +void PythonQtShell_QTcpSocket::close() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTcpSocket::close(); +} +void PythonQtShell_QTcpSocket::connectToHost(const QHostAddress& address, unsigned short port, QIODevice::OpenMode mode) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "connectToHost"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QHostAddress&" , "unsigned short" , "QIODevice::OpenMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&address, (void*)&port, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTcpSocket::connectToHost(address, port, mode); +} +void PythonQtShell_QTcpSocket::connectToHost(const QString& hostName, unsigned short port, QIODevice::OpenMode mode, QAbstractSocket::NetworkLayerProtocol protocol) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "connectToHost"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&" , "unsigned short" , "QIODevice::OpenMode" , "QAbstractSocket::NetworkLayerProtocol"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&hostName, (void*)&port, (void*)&mode, (void*)&protocol}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTcpSocket::connectToHost(hostName, port, mode, protocol); +} +void PythonQtShell_QTcpSocket::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTcpSocket::customEvent(arg__1); +} +void PythonQtShell_QTcpSocket::disconnectFromHost() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "disconnectFromHost"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTcpSocket::disconnectFromHost(); +} +bool PythonQtShell_QTcpSocket::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::event(arg__1); +} +bool PythonQtShell_QTcpSocket::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QTcpSocket::isSequential() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::isSequential(); +} +bool PythonQtShell_QTcpSocket::open(QIODevice::OpenMode mode) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::open(mode); +} +qint64 PythonQtShell_QTcpSocket::pos() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::pos(); +} +qint64 PythonQtShell_QTcpSocket::readData(char* data, qint64 maxlen) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::readData(data, maxlen); +} +qint64 PythonQtShell_QTcpSocket::readLineData(char* data, qint64 maxlen) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::readLineData(data, maxlen); +} +bool PythonQtShell_QTcpSocket::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::reset(); +} +void PythonQtShell_QTcpSocket::resume() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resume"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTcpSocket::resume(); +} +bool PythonQtShell_QTcpSocket::seek(qint64 pos) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::seek(pos); +} +void PythonQtShell_QTcpSocket::setReadBufferSize(qint64 size) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setReadBufferSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&size}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTcpSocket::setReadBufferSize(size); +} +void PythonQtShell_QTcpSocket::setSocketOption(QAbstractSocket::SocketOption option, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSocketOption"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractSocket::SocketOption" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&option, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTcpSocket::setSocketOption(option, value); +} +qint64 PythonQtShell_QTcpSocket::size() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::size(); +} +QVariant PythonQtShell_QTcpSocket::socketOption(QAbstractSocket::SocketOption option) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "socketOption"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "QAbstractSocket::SocketOption"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&option}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("socketOption", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::socketOption(option); +} +void PythonQtShell_QTcpSocket::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QTcpSocket::timerEvent(arg__1); +} +bool PythonQtShell_QTcpSocket::waitForBytesWritten(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::waitForBytesWritten(msecs); +} +bool PythonQtShell_QTcpSocket::waitForConnected(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForConnected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForConnected", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::waitForConnected(msecs); +} +bool PythonQtShell_QTcpSocket::waitForDisconnected(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForDisconnected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForDisconnected", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::waitForDisconnected(msecs); +} +bool PythonQtShell_QTcpSocket::waitForReadyRead(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::waitForReadyRead(msecs); +} +qint64 PythonQtShell_QTcpSocket::writeData(const char* data, qint64 len) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&len}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QTcpSocket::writeData(data, len); +} +QTcpSocket* PythonQtWrapper_QTcpSocket::new_QTcpSocket(QObject* parent) +{ +return new PythonQtShell_QTcpSocket(parent); } + + + +PythonQtShell_QUdpSocket::~PythonQtShell_QUdpSocket() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QUdpSocket::atEnd() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::atEnd(); +} +qint64 PythonQtShell_QUdpSocket::bytesAvailable() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::bytesAvailable(); +} +qint64 PythonQtShell_QUdpSocket::bytesToWrite() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::bytesToWrite(); +} +bool PythonQtShell_QUdpSocket::canReadLine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::canReadLine(); +} +void PythonQtShell_QUdpSocket::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUdpSocket::childEvent(arg__1); +} +void PythonQtShell_QUdpSocket::close() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUdpSocket::close(); +} +void PythonQtShell_QUdpSocket::connectToHost(const QHostAddress& address, unsigned short port, QIODevice::OpenMode mode) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "connectToHost"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QHostAddress&" , "unsigned short" , "QIODevice::OpenMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&address, (void*)&port, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUdpSocket::connectToHost(address, port, mode); +} +void PythonQtShell_QUdpSocket::connectToHost(const QString& hostName, unsigned short port, QIODevice::OpenMode mode, QAbstractSocket::NetworkLayerProtocol protocol) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "connectToHost"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&" , "unsigned short" , "QIODevice::OpenMode" , "QAbstractSocket::NetworkLayerProtocol"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&hostName, (void*)&port, (void*)&mode, (void*)&protocol}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUdpSocket::connectToHost(hostName, port, mode, protocol); +} +void PythonQtShell_QUdpSocket::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUdpSocket::customEvent(arg__1); +} +void PythonQtShell_QUdpSocket::disconnectFromHost() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "disconnectFromHost"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUdpSocket::disconnectFromHost(); +} +bool PythonQtShell_QUdpSocket::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::event(arg__1); +} +bool PythonQtShell_QUdpSocket::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QUdpSocket::isSequential() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::isSequential(); +} +bool PythonQtShell_QUdpSocket::open(QIODevice::OpenMode mode) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&mode}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::open(mode); +} +qint64 PythonQtShell_QUdpSocket::pos() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::pos(); +} +qint64 PythonQtShell_QUdpSocket::readData(char* data, qint64 maxlen) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::readData(data, maxlen); +} +qint64 PythonQtShell_QUdpSocket::readLineData(char* data, qint64 maxlen) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::readLineData(data, maxlen); +} +bool PythonQtShell_QUdpSocket::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::reset(); +} +void PythonQtShell_QUdpSocket::resume() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resume"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUdpSocket::resume(); +} +bool PythonQtShell_QUdpSocket::seek(qint64 pos) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::seek(pos); +} +void PythonQtShell_QUdpSocket::setReadBufferSize(qint64 size) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setReadBufferSize"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&size}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUdpSocket::setReadBufferSize(size); +} +void PythonQtShell_QUdpSocket::setSocketOption(QAbstractSocket::SocketOption option, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSocketOption"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QAbstractSocket::SocketOption" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&option, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUdpSocket::setSocketOption(option, value); +} +qint64 PythonQtShell_QUdpSocket::size() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + qint64 returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::size(); +} +QVariant PythonQtShell_QUdpSocket::socketOption(QAbstractSocket::SocketOption option) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "socketOption"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "QAbstractSocket::SocketOption"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&option}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("socketOption", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::socketOption(option); +} +void PythonQtShell_QUdpSocket::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUdpSocket::timerEvent(arg__1); +} +bool PythonQtShell_QUdpSocket::waitForBytesWritten(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::waitForBytesWritten(msecs); +} +bool PythonQtShell_QUdpSocket::waitForConnected(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForConnected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForConnected", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::waitForConnected(msecs); +} +bool PythonQtShell_QUdpSocket::waitForDisconnected(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForDisconnected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForDisconnected", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::waitForDisconnected(msecs); +} +bool PythonQtShell_QUdpSocket::waitForReadyRead(int msecs) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&msecs}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::waitForReadyRead(msecs); +} +qint64 PythonQtShell_QUdpSocket::writeData(const char* data, qint64 len) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + qint64 returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&len}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); + } else { + returnValue = *((qint64*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUdpSocket::writeData(data, len); +} +QUdpSocket* PythonQtWrapper_QUdpSocket::new_QUdpSocket(QObject* parent) +{ +return new PythonQtShell_QUdpSocket(parent); } + +bool PythonQtWrapper_QUdpSocket::hasPendingDatagrams(QUdpSocket* theWrappedObject) const +{ + return ( theWrappedObject->hasPendingDatagrams()); +} + +bool PythonQtWrapper_QUdpSocket::joinMulticastGroup(QUdpSocket* theWrappedObject, const QHostAddress& groupAddress) +{ + return ( theWrappedObject->joinMulticastGroup(groupAddress)); +} + +bool PythonQtWrapper_QUdpSocket::joinMulticastGroup(QUdpSocket* theWrappedObject, const QHostAddress& groupAddress, const QNetworkInterface& iface) +{ + return ( theWrappedObject->joinMulticastGroup(groupAddress, iface)); +} + +bool PythonQtWrapper_QUdpSocket::leaveMulticastGroup(QUdpSocket* theWrappedObject, const QHostAddress& groupAddress) +{ + return ( theWrappedObject->leaveMulticastGroup(groupAddress)); +} + +bool PythonQtWrapper_QUdpSocket::leaveMulticastGroup(QUdpSocket* theWrappedObject, const QHostAddress& groupAddress, const QNetworkInterface& iface) +{ + return ( theWrappedObject->leaveMulticastGroup(groupAddress, iface)); +} + +QNetworkInterface PythonQtWrapper_QUdpSocket::multicastInterface(QUdpSocket* theWrappedObject) const +{ + return ( theWrappedObject->multicastInterface()); +} + +qint64 PythonQtWrapper_QUdpSocket::pendingDatagramSize(QUdpSocket* theWrappedObject) const +{ + return ( theWrappedObject->pendingDatagramSize()); +} + +qint64 PythonQtWrapper_QUdpSocket::readDatagram(QUdpSocket* theWrappedObject, char* data, qint64 maxlen, QHostAddress* host, unsigned short* port) +{ + return ( theWrappedObject->readDatagram(data, maxlen, host, port)); +} + +void PythonQtWrapper_QUdpSocket::setMulticastInterface(QUdpSocket* theWrappedObject, const QNetworkInterface& iface) +{ + ( theWrappedObject->setMulticastInterface(iface)); +} + +qint64 PythonQtWrapper_QUdpSocket::writeDatagram(QUdpSocket* theWrappedObject, const QByteArray& datagram, const QHostAddress& host, unsigned short port) +{ + return ( theWrappedObject->writeDatagram(datagram, host, port)); +} + + diff --git a/generated_cpp_50/com_trolltech_qt_network/com_trolltech_qt_network0.h b/generated_cpp_50/com_trolltech_qt_network/com_trolltech_qt_network0.h new file mode 100644 index 00000000..57ba67a0 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_network/com_trolltech_qt_network0.h @@ -0,0 +1,1484 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +class PythonQtShell_QAbstractNetworkCache : public QAbstractNetworkCache +{ +public: + PythonQtShell_QAbstractNetworkCache(QObject* parent = 0):QAbstractNetworkCache(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractNetworkCache(); + +virtual qint64 cacheSize() const; +virtual void childEvent(QChildEvent* arg__1); +virtual void clear(); +virtual void customEvent(QEvent* arg__1); +virtual QIODevice* data(const QUrl& url); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void insert(QIODevice* device); +virtual QNetworkCacheMetaData metaData(const QUrl& url); +virtual QIODevice* prepare(const QNetworkCacheMetaData& metaData); +virtual bool remove(const QUrl& url); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void updateMetaData(const QNetworkCacheMetaData& metaData); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QAbstractNetworkCache : public QObject +{ Q_OBJECT +public: +public slots: +void delete_QAbstractNetworkCache(QAbstractNetworkCache* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QAbstractSocket : public QAbstractSocket +{ +public: + PythonQtShell_QAbstractSocket(QAbstractSocket::SocketType socketType, QObject* parent):QAbstractSocket(socketType, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractSocket(); + +virtual bool atEnd() const; +virtual qint64 bytesAvailable() const; +virtual qint64 bytesToWrite() const; +virtual bool canReadLine() const; +virtual void childEvent(QChildEvent* arg__1); +virtual void close(); +virtual void connectToHost(const QHostAddress& address, unsigned short port, QIODevice::OpenMode mode = QIODevice::ReadWrite); +virtual void connectToHost(const QString& hostName, unsigned short port, QIODevice::OpenMode mode = QIODevice::ReadWrite, QAbstractSocket::NetworkLayerProtocol protocol = QAbstractSocket::AnyIPProtocol); +virtual void customEvent(QEvent* arg__1); +virtual void disconnectFromHost(); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool isSequential() const; +virtual bool open(QIODevice::OpenMode mode); +virtual qint64 pos() const; +virtual qint64 readData(char* data, qint64 maxlen); +virtual qint64 readLineData(char* data, qint64 maxlen); +virtual bool reset(); +virtual void resume(); +virtual bool seek(qint64 pos); +virtual void setReadBufferSize(qint64 size); +virtual void setSocketOption(QAbstractSocket::SocketOption option, const QVariant& value); +virtual qint64 size() const; +virtual QVariant socketOption(QAbstractSocket::SocketOption option); +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool waitForBytesWritten(int msecs = 30000); +virtual bool waitForConnected(int msecs = 30000); +virtual bool waitForDisconnected(int msecs = 30000); +virtual bool waitForReadyRead(int msecs = 30000); +virtual qint64 writeData(const char* data, qint64 len); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QAbstractSocket : public QAbstractSocket +{ public: +inline bool promoted_atEnd() const { return QAbstractSocket::atEnd(); } +inline qint64 promoted_bytesAvailable() const { return QAbstractSocket::bytesAvailable(); } +inline qint64 promoted_bytesToWrite() const { return QAbstractSocket::bytesToWrite(); } +inline bool promoted_canReadLine() const { return QAbstractSocket::canReadLine(); } +inline void promoted_close() { QAbstractSocket::close(); } +inline void promoted_connectToHost(const QHostAddress& address, unsigned short port, QIODevice::OpenMode mode = QIODevice::ReadWrite) { QAbstractSocket::connectToHost(address, port, mode); } +inline void promoted_connectToHost(const QString& hostName, unsigned short port, QIODevice::OpenMode mode = QIODevice::ReadWrite, QAbstractSocket::NetworkLayerProtocol protocol = QAbstractSocket::AnyIPProtocol) { QAbstractSocket::connectToHost(hostName, port, mode, protocol); } +inline void promoted_disconnectFromHost() { QAbstractSocket::disconnectFromHost(); } +inline bool promoted_isSequential() const { return QAbstractSocket::isSequential(); } +inline qint64 promoted_readData(char* data, qint64 maxlen) { return QAbstractSocket::readData(data, maxlen); } +inline qint64 promoted_readLineData(char* data, qint64 maxlen) { return QAbstractSocket::readLineData(data, maxlen); } +inline void promoted_resume() { QAbstractSocket::resume(); } +inline void promoted_setReadBufferSize(qint64 size) { QAbstractSocket::setReadBufferSize(size); } +inline void promoted_setSocketOption(QAbstractSocket::SocketOption option, const QVariant& value) { QAbstractSocket::setSocketOption(option, value); } +inline QVariant promoted_socketOption(QAbstractSocket::SocketOption option) { return QAbstractSocket::socketOption(option); } +inline bool promoted_waitForBytesWritten(int msecs = 30000) { return QAbstractSocket::waitForBytesWritten(msecs); } +inline bool promoted_waitForConnected(int msecs = 30000) { return QAbstractSocket::waitForConnected(msecs); } +inline bool promoted_waitForDisconnected(int msecs = 30000) { return QAbstractSocket::waitForDisconnected(msecs); } +inline bool promoted_waitForReadyRead(int msecs = 30000) { return QAbstractSocket::waitForReadyRead(msecs); } +inline qint64 promoted_writeData(const char* data, qint64 len) { return QAbstractSocket::writeData(data, len); } +}; + +class PythonQtWrapper_QAbstractSocket : public QObject +{ Q_OBJECT +public: +Q_ENUMS(PauseMode BindFlag ) +enum PauseMode{ + PauseNever = QAbstractSocket::PauseNever, PauseOnSslErrors = QAbstractSocket::PauseOnSslErrors}; +enum BindFlag{ + DefaultForPlatform = QAbstractSocket::DefaultForPlatform, ShareAddress = QAbstractSocket::ShareAddress, DontShareAddress = QAbstractSocket::DontShareAddress, ReuseAddressHint = QAbstractSocket::ReuseAddressHint}; +public slots: +QAbstractSocket* new_QAbstractSocket(QAbstractSocket::SocketType socketType, QObject* parent); +void delete_QAbstractSocket(QAbstractSocket* obj) { delete obj; } + void abort(QAbstractSocket* theWrappedObject); + bool atEnd(QAbstractSocket* theWrappedObject) const; + qint64 bytesAvailable(QAbstractSocket* theWrappedObject) const; + qint64 bytesToWrite(QAbstractSocket* theWrappedObject) const; + bool canReadLine(QAbstractSocket* theWrappedObject) const; + void close(QAbstractSocket* theWrappedObject); + void connectToHost(QAbstractSocket* theWrappedObject, const QHostAddress& address, unsigned short port, QIODevice::OpenMode mode = QIODevice::ReadWrite); + void connectToHost(QAbstractSocket* theWrappedObject, const QString& hostName, unsigned short port, QIODevice::OpenMode mode = QIODevice::ReadWrite, QAbstractSocket::NetworkLayerProtocol protocol = QAbstractSocket::AnyIPProtocol); + void disconnectFromHost(QAbstractSocket* theWrappedObject); + QAbstractSocket::SocketError error(QAbstractSocket* theWrappedObject) const; + bool flush(QAbstractSocket* theWrappedObject); + bool isSequential(QAbstractSocket* theWrappedObject) const; + bool isValid(QAbstractSocket* theWrappedObject) const; + QHostAddress localAddress(QAbstractSocket* theWrappedObject) const; + unsigned short localPort(QAbstractSocket* theWrappedObject) const; + QHostAddress peerAddress(QAbstractSocket* theWrappedObject) const; + QString peerName(QAbstractSocket* theWrappedObject) const; + unsigned short peerPort(QAbstractSocket* theWrappedObject) const; + QNetworkProxy proxy(QAbstractSocket* theWrappedObject) const; + qint64 readBufferSize(QAbstractSocket* theWrappedObject) const; + qint64 readData(QAbstractSocket* theWrappedObject, char* data, qint64 maxlen); + qint64 readLineData(QAbstractSocket* theWrappedObject, char* data, qint64 maxlen); + void resume(QAbstractSocket* theWrappedObject); + void setProxy(QAbstractSocket* theWrappedObject, const QNetworkProxy& networkProxy); + void setReadBufferSize(QAbstractSocket* theWrappedObject, qint64 size); + void setSocketOption(QAbstractSocket* theWrappedObject, QAbstractSocket::SocketOption option, const QVariant& value); + QVariant socketOption(QAbstractSocket* theWrappedObject, QAbstractSocket::SocketOption option); + QAbstractSocket::SocketType socketType(QAbstractSocket* theWrappedObject) const; + QAbstractSocket::SocketState state(QAbstractSocket* theWrappedObject) const; + bool waitForBytesWritten(QAbstractSocket* theWrappedObject, int msecs = 30000); + bool waitForConnected(QAbstractSocket* theWrappedObject, int msecs = 30000); + bool waitForDisconnected(QAbstractSocket* theWrappedObject, int msecs = 30000); + bool waitForReadyRead(QAbstractSocket* theWrappedObject, int msecs = 30000); + qint64 writeData(QAbstractSocket* theWrappedObject, const char* data, qint64 len); +}; + + + + + +class PythonQtWrapper_QAuthenticator : public QObject +{ Q_OBJECT +public: +public slots: +QAuthenticator* new_QAuthenticator(); +QAuthenticator* new_QAuthenticator(const QAuthenticator& other); +void delete_QAuthenticator(QAuthenticator* obj) { delete obj; } + bool isNull(QAuthenticator* theWrappedObject) const; + bool __ne__(QAuthenticator* theWrappedObject, const QAuthenticator& other) const; + bool __eq__(QAuthenticator* theWrappedObject, const QAuthenticator& other) const; + QVariant option(QAuthenticator* theWrappedObject, const QString& opt) const; + QHash options(QAuthenticator* theWrappedObject) const; + QString password(QAuthenticator* theWrappedObject) const; + QString realm(QAuthenticator* theWrappedObject) const; + void setOption(QAuthenticator* theWrappedObject, const QString& opt, const QVariant& value); + void setPassword(QAuthenticator* theWrappedObject, const QString& password); + void setUser(QAuthenticator* theWrappedObject, const QString& user); + QString user(QAuthenticator* theWrappedObject) const; + bool __nonzero__(QAuthenticator* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QHostAddress : public QObject +{ Q_OBJECT +public: +Q_ENUMS(SpecialAddress ) +enum SpecialAddress{ + Null = QHostAddress::Null, Broadcast = QHostAddress::Broadcast, LocalHost = QHostAddress::LocalHost, LocalHostIPv6 = QHostAddress::LocalHostIPv6, Any = QHostAddress::Any, AnyIPv6 = QHostAddress::AnyIPv6, AnyIPv4 = QHostAddress::AnyIPv4}; +public slots: +QHostAddress* new_QHostAddress(); +QHostAddress* new_QHostAddress(QHostAddress::SpecialAddress address); +QHostAddress* new_QHostAddress(const QHostAddress& copy); +QHostAddress* new_QHostAddress(const QIPv6Address& ip6Addr); +QHostAddress* new_QHostAddress(const QString& address); +QHostAddress* new_QHostAddress(unsigned int ip4Addr); +void delete_QHostAddress(QHostAddress* obj) { delete obj; } + void clear(QHostAddress* theWrappedObject); + bool isInSubnet(QHostAddress* theWrappedObject, const QHostAddress& subnet, int netmask) const; + bool isInSubnet(QHostAddress* theWrappedObject, const QPair& subnet) const; + bool isLoopback(QHostAddress* theWrappedObject) const; + bool isNull(QHostAddress* theWrappedObject) const; + bool __ne__(QHostAddress* theWrappedObject, QHostAddress::SpecialAddress address) const; + bool __ne__(QHostAddress* theWrappedObject, const QHostAddress& address) const; + bool __eq__(QHostAddress* theWrappedObject, QHostAddress::SpecialAddress address) const; + bool __eq__(QHostAddress* theWrappedObject, const QHostAddress& address) const; + QPair static_QHostAddress_parseSubnet(const QString& subnet); + QAbstractSocket::NetworkLayerProtocol protocol(QHostAddress* theWrappedObject) const; + QString scopeId(QHostAddress* theWrappedObject) const; + void setAddress(QHostAddress* theWrappedObject, const QIPv6Address& ip6Addr); + bool setAddress(QHostAddress* theWrappedObject, const QString& address); + void setAddress(QHostAddress* theWrappedObject, unsigned int ip4Addr); + void setScopeId(QHostAddress* theWrappedObject, const QString& id); + unsigned int toIPv4Address(QHostAddress* theWrappedObject) const; + QIPv6Address toIPv6Address(QHostAddress* theWrappedObject) const; + QString toString(QHostAddress* theWrappedObject) const; + QString py_toString(QHostAddress*); + bool __nonzero__(QHostAddress* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QHostInfo : public QObject +{ Q_OBJECT +public: +Q_ENUMS(HostInfoError ) +enum HostInfoError{ + NoError = QHostInfo::NoError, HostNotFound = QHostInfo::HostNotFound, UnknownError = QHostInfo::UnknownError}; +public slots: +QHostInfo* new_QHostInfo(const QHostInfo& d); +QHostInfo* new_QHostInfo(int lookupId = -1); +void delete_QHostInfo(QHostInfo* obj) { delete obj; } + void static_QHostInfo_abortHostLookup(int lookupId); + QList addresses(QHostInfo* theWrappedObject) const; + QHostInfo::HostInfoError error(QHostInfo* theWrappedObject) const; + QString errorString(QHostInfo* theWrappedObject) const; + QHostInfo static_QHostInfo_fromName(const QString& name); + QString hostName(QHostInfo* theWrappedObject) const; + QString static_QHostInfo_localDomainName(); + QString static_QHostInfo_localHostName(); + int static_QHostInfo_lookupHost(const QString& name, QObject* receiver, const char* member); + int lookupId(QHostInfo* theWrappedObject) const; + void setAddresses(QHostInfo* theWrappedObject, const QList& addresses); + void setError(QHostInfo* theWrappedObject, QHostInfo::HostInfoError error); + void setErrorString(QHostInfo* theWrappedObject, const QString& errorString); + void setHostName(QHostInfo* theWrappedObject, const QString& name); + void setLookupId(QHostInfo* theWrappedObject, int id); +}; + + + + + +class PythonQtShell_QIPv6Address : public QIPv6Address +{ +public: + PythonQtShell_QIPv6Address():QIPv6Address(),_wrapper(NULL) {}; + + ~PythonQtShell_QIPv6Address(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QIPv6Address : public QObject +{ Q_OBJECT +public: +public slots: +QIPv6Address* new_QIPv6Address(); +QIPv6Address* new_QIPv6Address(const QIPv6Address& other) { +PythonQtShell_QIPv6Address* a = new PythonQtShell_QIPv6Address(); +*((QIPv6Address*)a) = other; +return a; } +void delete_QIPv6Address(QIPv6Address* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QLocalServer : public QLocalServer +{ +public: + PythonQtShell_QLocalServer(QObject* parent = 0):QLocalServer(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QLocalServer(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool hasPendingConnections() const; +virtual void incomingConnection(quintptr socketDescriptor); +virtual QLocalSocket* nextPendingConnection(); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QLocalServer : public QLocalServer +{ public: +inline bool promoted_hasPendingConnections() const { return QLocalServer::hasPendingConnections(); } +inline void promoted_incomingConnection(quintptr socketDescriptor) { QLocalServer::incomingConnection(socketDescriptor); } +inline QLocalSocket* promoted_nextPendingConnection() { return QLocalServer::nextPendingConnection(); } +}; + +class PythonQtWrapper_QLocalServer : public QObject +{ Q_OBJECT +public: +public slots: +QLocalServer* new_QLocalServer(QObject* parent = 0); +void delete_QLocalServer(QLocalServer* obj) { delete obj; } + void close(QLocalServer* theWrappedObject); + QString errorString(QLocalServer* theWrappedObject) const; + QString fullServerName(QLocalServer* theWrappedObject) const; + bool hasPendingConnections(QLocalServer* theWrappedObject) const; + void incomingConnection(QLocalServer* theWrappedObject, quintptr socketDescriptor); + bool isListening(QLocalServer* theWrappedObject) const; + bool listen(QLocalServer* theWrappedObject, const QString& name); + int maxPendingConnections(QLocalServer* theWrappedObject) const; + QLocalSocket* nextPendingConnection(QLocalServer* theWrappedObject); + bool static_QLocalServer_removeServer(const QString& name); + QAbstractSocket::SocketError serverError(QLocalServer* theWrappedObject) const; + QString serverName(QLocalServer* theWrappedObject) const; + void setMaxPendingConnections(QLocalServer* theWrappedObject, int numConnections); + bool waitForNewConnection(QLocalServer* theWrappedObject, int msec = 0, bool* timedOut = 0); +}; + + + + + +class PythonQtShell_QLocalSocket : public QLocalSocket +{ +public: + PythonQtShell_QLocalSocket(QObject* parent = 0):QLocalSocket(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QLocalSocket(); + +virtual bool atEnd() const; +virtual qint64 bytesAvailable() const; +virtual qint64 bytesToWrite() const; +virtual bool canReadLine() const; +virtual void childEvent(QChildEvent* arg__1); +virtual void close(); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool isSequential() const; +virtual bool open(QIODevice::OpenMode mode); +virtual qint64 pos() const; +virtual qint64 readData(char* arg__1, qint64 arg__2); +virtual qint64 readLineData(char* data, qint64 maxlen); +virtual bool reset(); +virtual bool seek(qint64 pos); +virtual qint64 size() const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool waitForBytesWritten(int msecs = 30000); +virtual bool waitForReadyRead(int msecs = 30000); +virtual qint64 writeData(const char* arg__1, qint64 arg__2); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QLocalSocket : public QLocalSocket +{ public: +inline qint64 promoted_bytesAvailable() const { return QLocalSocket::bytesAvailable(); } +inline qint64 promoted_bytesToWrite() const { return QLocalSocket::bytesToWrite(); } +inline bool promoted_canReadLine() const { return QLocalSocket::canReadLine(); } +inline void promoted_close() { QLocalSocket::close(); } +inline bool promoted_isSequential() const { return QLocalSocket::isSequential(); } +inline qint64 promoted_readData(char* arg__1, qint64 arg__2) { return QLocalSocket::readData(arg__1, arg__2); } +inline bool promoted_waitForBytesWritten(int msecs = 30000) { return QLocalSocket::waitForBytesWritten(msecs); } +inline bool promoted_waitForReadyRead(int msecs = 30000) { return QLocalSocket::waitForReadyRead(msecs); } +inline qint64 promoted_writeData(const char* arg__1, qint64 arg__2) { return QLocalSocket::writeData(arg__1, arg__2); } +}; + +class PythonQtWrapper_QLocalSocket : public QObject +{ Q_OBJECT +public: +Q_ENUMS(LocalSocketState LocalSocketError ) +enum LocalSocketState{ + UnconnectedState = QLocalSocket::UnconnectedState, ConnectingState = QLocalSocket::ConnectingState, ConnectedState = QLocalSocket::ConnectedState, ClosingState = QLocalSocket::ClosingState}; +enum LocalSocketError{ + ConnectionRefusedError = QLocalSocket::ConnectionRefusedError, PeerClosedError = QLocalSocket::PeerClosedError, ServerNotFoundError = QLocalSocket::ServerNotFoundError, SocketAccessError = QLocalSocket::SocketAccessError, SocketResourceError = QLocalSocket::SocketResourceError, SocketTimeoutError = QLocalSocket::SocketTimeoutError, DatagramTooLargeError = QLocalSocket::DatagramTooLargeError, ConnectionError = QLocalSocket::ConnectionError, UnsupportedSocketOperationError = QLocalSocket::UnsupportedSocketOperationError, UnknownSocketError = QLocalSocket::UnknownSocketError, OperationError = QLocalSocket::OperationError}; +public slots: +QLocalSocket* new_QLocalSocket(QObject* parent = 0); +void delete_QLocalSocket(QLocalSocket* obj) { delete obj; } + void abort(QLocalSocket* theWrappedObject); + qint64 bytesAvailable(QLocalSocket* theWrappedObject) const; + qint64 bytesToWrite(QLocalSocket* theWrappedObject) const; + bool canReadLine(QLocalSocket* theWrappedObject) const; + void close(QLocalSocket* theWrappedObject); + void connectToServer(QLocalSocket* theWrappedObject, const QString& name, QIODevice::OpenMode openMode = QIODevice::ReadWrite); + void disconnectFromServer(QLocalSocket* theWrappedObject); + QLocalSocket::LocalSocketError error(QLocalSocket* theWrappedObject) const; + bool flush(QLocalSocket* theWrappedObject); + QString fullServerName(QLocalSocket* theWrappedObject) const; + bool isSequential(QLocalSocket* theWrappedObject) const; + bool isValid(QLocalSocket* theWrappedObject) const; + qint64 readBufferSize(QLocalSocket* theWrappedObject) const; + qint64 readData(QLocalSocket* theWrappedObject, char* arg__1, qint64 arg__2); + QString serverName(QLocalSocket* theWrappedObject) const; + void setReadBufferSize(QLocalSocket* theWrappedObject, qint64 size); + QLocalSocket::LocalSocketState state(QLocalSocket* theWrappedObject) const; + bool waitForBytesWritten(QLocalSocket* theWrappedObject, int msecs = 30000); + bool waitForConnected(QLocalSocket* theWrappedObject, int msecs = 30000); + bool waitForDisconnected(QLocalSocket* theWrappedObject, int msecs = 30000); + bool waitForReadyRead(QLocalSocket* theWrappedObject, int msecs = 30000); + qint64 writeData(QLocalSocket* theWrappedObject, const char* arg__1, qint64 arg__2); +}; + + + + + +class PythonQtShell_QNetworkAccessManager : public QNetworkAccessManager +{ +public: + PythonQtShell_QNetworkAccessManager(QObject* parent = 0):QNetworkAccessManager(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QNetworkAccessManager(); + +virtual void childEvent(QChildEvent* arg__1); +virtual QNetworkReply* createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest& request, QIODevice* outgoingData = 0); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QNetworkAccessManager : public QNetworkAccessManager +{ public: +inline QNetworkReply* promoted_createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest& request, QIODevice* outgoingData = 0) { return QNetworkAccessManager::createRequest(op, request, outgoingData); } +}; + +class PythonQtWrapper_QNetworkAccessManager : public QObject +{ Q_OBJECT +public: +Q_ENUMS(NetworkAccessibility Operation ) +enum NetworkAccessibility{ + UnknownAccessibility = QNetworkAccessManager::UnknownAccessibility, NotAccessible = QNetworkAccessManager::NotAccessible, Accessible = QNetworkAccessManager::Accessible}; +enum Operation{ + HeadOperation = QNetworkAccessManager::HeadOperation, GetOperation = QNetworkAccessManager::GetOperation, PutOperation = QNetworkAccessManager::PutOperation, PostOperation = QNetworkAccessManager::PostOperation, DeleteOperation = QNetworkAccessManager::DeleteOperation, CustomOperation = QNetworkAccessManager::CustomOperation, UnknownOperation = QNetworkAccessManager::UnknownOperation}; +public slots: +QNetworkAccessManager* new_QNetworkAccessManager(QObject* parent = 0); +void delete_QNetworkAccessManager(QNetworkAccessManager* obj) { delete obj; } + QAbstractNetworkCache* cache(QNetworkAccessManager* theWrappedObject) const; + void clearAccessCache(QNetworkAccessManager* theWrappedObject); + QNetworkCookieJar* cookieJar(QNetworkAccessManager* theWrappedObject) const; + QNetworkReply* createRequest(QNetworkAccessManager* theWrappedObject, QNetworkAccessManager::Operation op, const QNetworkRequest& request, QIODevice* outgoingData = 0); + QNetworkReply* deleteResource(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request); + QNetworkReply* get(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request); + QNetworkReply* head(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request); + QNetworkAccessManager::NetworkAccessibility networkAccessible(QNetworkAccessManager* theWrappedObject) const; + QNetworkReply* post(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, QIODevice* data); + QNetworkReply* post(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, const QByteArray& data); + QNetworkProxy proxy(QNetworkAccessManager* theWrappedObject) const; + QNetworkProxyFactory* proxyFactory(QNetworkAccessManager* theWrappedObject) const; + QNetworkReply* put(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, QIODevice* data); + QNetworkReply* put(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, const QByteArray& data); + QNetworkReply* sendCustomRequest(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, const QByteArray& verb, QIODevice* data = 0); + void setCache(QNetworkAccessManager* theWrappedObject, QAbstractNetworkCache* cache); + void setCookieJar(QNetworkAccessManager* theWrappedObject, QNetworkCookieJar* cookieJar); + void setNetworkAccessible(QNetworkAccessManager* theWrappedObject, QNetworkAccessManager::NetworkAccessibility accessible); + void setProxy(QNetworkAccessManager* theWrappedObject, const QNetworkProxy& proxy); + void setProxyFactory(QNetworkAccessManager* theWrappedObject, QNetworkProxyFactory* factory); +}; + + + + + +class PythonQtWrapper_QNetworkAddressEntry : public QObject +{ Q_OBJECT +public: +public slots: +QNetworkAddressEntry* new_QNetworkAddressEntry(); +QNetworkAddressEntry* new_QNetworkAddressEntry(const QNetworkAddressEntry& other); +void delete_QNetworkAddressEntry(QNetworkAddressEntry* obj) { delete obj; } + QHostAddress broadcast(QNetworkAddressEntry* theWrappedObject) const; + QHostAddress ip(QNetworkAddressEntry* theWrappedObject) const; + QHostAddress netmask(QNetworkAddressEntry* theWrappedObject) const; + bool __ne__(QNetworkAddressEntry* theWrappedObject, const QNetworkAddressEntry& other) const; + bool __eq__(QNetworkAddressEntry* theWrappedObject, const QNetworkAddressEntry& other) const; + int prefixLength(QNetworkAddressEntry* theWrappedObject) const; + void setBroadcast(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newBroadcast); + void setIp(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newIp); + void setNetmask(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newNetmask); + void setPrefixLength(QNetworkAddressEntry* theWrappedObject, int length); + void swap(QNetworkAddressEntry* theWrappedObject, QNetworkAddressEntry& other); +}; + + + + + +class PythonQtWrapper_QNetworkCacheMetaData : public QObject +{ Q_OBJECT +public: +public slots: +QNetworkCacheMetaData* new_QNetworkCacheMetaData(); +QNetworkCacheMetaData* new_QNetworkCacheMetaData(const QNetworkCacheMetaData& other); +void delete_QNetworkCacheMetaData(QNetworkCacheMetaData* obj) { delete obj; } + QHash attributes(QNetworkCacheMetaData* theWrappedObject) const; + QDateTime expirationDate(QNetworkCacheMetaData* theWrappedObject) const; + bool isValid(QNetworkCacheMetaData* theWrappedObject) const; + QDateTime lastModified(QNetworkCacheMetaData* theWrappedObject) const; + bool __ne__(QNetworkCacheMetaData* theWrappedObject, const QNetworkCacheMetaData& other) const; + bool __eq__(QNetworkCacheMetaData* theWrappedObject, const QNetworkCacheMetaData& other) const; + QList > rawHeaders(QNetworkCacheMetaData* theWrappedObject) const; + bool saveToDisk(QNetworkCacheMetaData* theWrappedObject) const; + void setAttributes(QNetworkCacheMetaData* theWrappedObject, const QHash& attributes); + void setExpirationDate(QNetworkCacheMetaData* theWrappedObject, const QDateTime& dateTime); + void setLastModified(QNetworkCacheMetaData* theWrappedObject, const QDateTime& dateTime); + void setRawHeaders(QNetworkCacheMetaData* theWrappedObject, const QList >& headers); + void setSaveToDisk(QNetworkCacheMetaData* theWrappedObject, bool allow); + void setUrl(QNetworkCacheMetaData* theWrappedObject, const QUrl& url); + void swap(QNetworkCacheMetaData* theWrappedObject, QNetworkCacheMetaData& other); + QUrl url(QNetworkCacheMetaData* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QNetworkCookie : public QObject +{ Q_OBJECT +public: +Q_ENUMS(RawForm ) +enum RawForm{ + NameAndValueOnly = QNetworkCookie::NameAndValueOnly, Full = QNetworkCookie::Full}; +public slots: +QNetworkCookie* new_QNetworkCookie(const QByteArray& name = QByteArray(), const QByteArray& value = QByteArray()); +QNetworkCookie* new_QNetworkCookie(const QNetworkCookie& other); +void delete_QNetworkCookie(QNetworkCookie* obj) { delete obj; } + QString domain(QNetworkCookie* theWrappedObject) const; + QDateTime expirationDate(QNetworkCookie* theWrappedObject) const; + bool hasSameIdentifier(QNetworkCookie* theWrappedObject, const QNetworkCookie& other) const; + bool isHttpOnly(QNetworkCookie* theWrappedObject) const; + bool isSecure(QNetworkCookie* theWrappedObject) const; + bool isSessionCookie(QNetworkCookie* theWrappedObject) const; + QByteArray name(QNetworkCookie* theWrappedObject) const; + void normalize(QNetworkCookie* theWrappedObject, const QUrl& url); + bool __ne__(QNetworkCookie* theWrappedObject, const QNetworkCookie& other) const; + bool __eq__(QNetworkCookie* theWrappedObject, const QNetworkCookie& other) const; + QList static_QNetworkCookie_parseCookies(const QByteArray& cookieString); + QString path(QNetworkCookie* theWrappedObject) const; + void setDomain(QNetworkCookie* theWrappedObject, const QString& domain); + void setExpirationDate(QNetworkCookie* theWrappedObject, const QDateTime& date); + void setHttpOnly(QNetworkCookie* theWrappedObject, bool enable); + void setName(QNetworkCookie* theWrappedObject, const QByteArray& cookieName); + void setPath(QNetworkCookie* theWrappedObject, const QString& path); + void setSecure(QNetworkCookie* theWrappedObject, bool enable); + void setValue(QNetworkCookie* theWrappedObject, const QByteArray& value); + void swap(QNetworkCookie* theWrappedObject, QNetworkCookie& other); + QByteArray toRawForm(QNetworkCookie* theWrappedObject, QNetworkCookie::RawForm form = QNetworkCookie::Full) const; + QByteArray value(QNetworkCookie* theWrappedObject) const; + QString py_toString(QNetworkCookie*); +}; + + + + + +class PythonQtShell_QNetworkCookieJar : public QNetworkCookieJar +{ +public: + PythonQtShell_QNetworkCookieJar(QObject* parent = 0):QNetworkCookieJar(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QNetworkCookieJar(); + +virtual void childEvent(QChildEvent* arg__1); +virtual QList cookiesForUrl(const QUrl& url) const; +virtual void customEvent(QEvent* arg__1); +virtual bool deleteCookie(const QNetworkCookie& cookie); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool insertCookie(const QNetworkCookie& cookie); +virtual bool setCookiesFromUrl(const QList& cookieList, const QUrl& url); +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool updateCookie(const QNetworkCookie& cookie); +virtual bool validateCookie(const QNetworkCookie& cookie, const QUrl& url) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QNetworkCookieJar : public QNetworkCookieJar +{ public: +inline QList promoted_cookiesForUrl(const QUrl& url) const { return QNetworkCookieJar::cookiesForUrl(url); } +inline bool promoted_deleteCookie(const QNetworkCookie& cookie) { return QNetworkCookieJar::deleteCookie(cookie); } +inline bool promoted_insertCookie(const QNetworkCookie& cookie) { return QNetworkCookieJar::insertCookie(cookie); } +inline bool promoted_setCookiesFromUrl(const QList& cookieList, const QUrl& url) { return QNetworkCookieJar::setCookiesFromUrl(cookieList, url); } +inline bool promoted_updateCookie(const QNetworkCookie& cookie) { return QNetworkCookieJar::updateCookie(cookie); } +inline bool promoted_validateCookie(const QNetworkCookie& cookie, const QUrl& url) const { return QNetworkCookieJar::validateCookie(cookie, url); } +}; + +class PythonQtWrapper_QNetworkCookieJar : public QObject +{ Q_OBJECT +public: +public slots: +QNetworkCookieJar* new_QNetworkCookieJar(QObject* parent = 0); +void delete_QNetworkCookieJar(QNetworkCookieJar* obj) { delete obj; } + QList cookiesForUrl(QNetworkCookieJar* theWrappedObject, const QUrl& url) const; + bool deleteCookie(QNetworkCookieJar* theWrappedObject, const QNetworkCookie& cookie); + bool insertCookie(QNetworkCookieJar* theWrappedObject, const QNetworkCookie& cookie); + bool setCookiesFromUrl(QNetworkCookieJar* theWrappedObject, const QList& cookieList, const QUrl& url); + bool updateCookie(QNetworkCookieJar* theWrappedObject, const QNetworkCookie& cookie); + bool validateCookie(QNetworkCookieJar* theWrappedObject, const QNetworkCookie& cookie, const QUrl& url) const; +}; + + + + + +class PythonQtShell_QNetworkDiskCache : public QNetworkDiskCache +{ +public: + PythonQtShell_QNetworkDiskCache(QObject* parent = 0):QNetworkDiskCache(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QNetworkDiskCache(); + +virtual qint64 cacheSize() const; +virtual void childEvent(QChildEvent* arg__1); +virtual void clear(); +virtual void customEvent(QEvent* arg__1); +virtual QIODevice* data(const QUrl& url); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual qint64 expire(); +virtual void insert(QIODevice* device); +virtual QNetworkCacheMetaData metaData(const QUrl& url); +virtual QIODevice* prepare(const QNetworkCacheMetaData& metaData); +virtual bool remove(const QUrl& url); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void updateMetaData(const QNetworkCacheMetaData& metaData); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QNetworkDiskCache : public QNetworkDiskCache +{ public: +inline qint64 promoted_cacheSize() const { return QNetworkDiskCache::cacheSize(); } +inline void promoted_clear() { QNetworkDiskCache::clear(); } +inline QIODevice* promoted_data(const QUrl& url) { return QNetworkDiskCache::data(url); } +inline qint64 promoted_expire() { return QNetworkDiskCache::expire(); } +inline void promoted_insert(QIODevice* device) { QNetworkDiskCache::insert(device); } +inline QNetworkCacheMetaData promoted_metaData(const QUrl& url) { return QNetworkDiskCache::metaData(url); } +inline QIODevice* promoted_prepare(const QNetworkCacheMetaData& metaData) { return QNetworkDiskCache::prepare(metaData); } +inline bool promoted_remove(const QUrl& url) { return QNetworkDiskCache::remove(url); } +inline void promoted_updateMetaData(const QNetworkCacheMetaData& metaData) { QNetworkDiskCache::updateMetaData(metaData); } +}; + +class PythonQtWrapper_QNetworkDiskCache : public QObject +{ Q_OBJECT +public: +public slots: +QNetworkDiskCache* new_QNetworkDiskCache(QObject* parent = 0); +void delete_QNetworkDiskCache(QNetworkDiskCache* obj) { delete obj; } + QString cacheDirectory(QNetworkDiskCache* theWrappedObject) const; + qint64 cacheSize(QNetworkDiskCache* theWrappedObject) const; + void clear(QNetworkDiskCache* theWrappedObject); + QIODevice* data(QNetworkDiskCache* theWrappedObject, const QUrl& url); + qint64 expire(QNetworkDiskCache* theWrappedObject); + QNetworkCacheMetaData fileMetaData(QNetworkDiskCache* theWrappedObject, const QString& fileName) const; + void insert(QNetworkDiskCache* theWrappedObject, QIODevice* device); + qint64 maximumCacheSize(QNetworkDiskCache* theWrappedObject) const; + QNetworkCacheMetaData metaData(QNetworkDiskCache* theWrappedObject, const QUrl& url); + QIODevice* prepare(QNetworkDiskCache* theWrappedObject, const QNetworkCacheMetaData& metaData); + bool remove(QNetworkDiskCache* theWrappedObject, const QUrl& url); + void setCacheDirectory(QNetworkDiskCache* theWrappedObject, const QString& cacheDir); + void setMaximumCacheSize(QNetworkDiskCache* theWrappedObject, qint64 size); + void updateMetaData(QNetworkDiskCache* theWrappedObject, const QNetworkCacheMetaData& metaData); +}; + + + + + +class PythonQtWrapper_QNetworkInterface : public QObject +{ Q_OBJECT +public: +Q_ENUMS(InterfaceFlag ) +Q_FLAGS(InterfaceFlags ) +enum InterfaceFlag{ + IsUp = QNetworkInterface::IsUp, IsRunning = QNetworkInterface::IsRunning, CanBroadcast = QNetworkInterface::CanBroadcast, IsLoopBack = QNetworkInterface::IsLoopBack, IsPointToPoint = QNetworkInterface::IsPointToPoint, CanMulticast = QNetworkInterface::CanMulticast}; +Q_DECLARE_FLAGS(InterfaceFlags, InterfaceFlag) +public slots: +QNetworkInterface* new_QNetworkInterface(); +QNetworkInterface* new_QNetworkInterface(const QNetworkInterface& other); +void delete_QNetworkInterface(QNetworkInterface* obj) { delete obj; } + QList addressEntries(QNetworkInterface* theWrappedObject) const; + QList static_QNetworkInterface_allAddresses(); + QList static_QNetworkInterface_allInterfaces(); + QNetworkInterface::InterfaceFlags flags(QNetworkInterface* theWrappedObject) const; + QString hardwareAddress(QNetworkInterface* theWrappedObject) const; + QString humanReadableName(QNetworkInterface* theWrappedObject) const; + int index(QNetworkInterface* theWrappedObject) const; + QNetworkInterface static_QNetworkInterface_interfaceFromIndex(int index); + QNetworkInterface static_QNetworkInterface_interfaceFromName(const QString& name); + bool isValid(QNetworkInterface* theWrappedObject) const; + QString name(QNetworkInterface* theWrappedObject) const; + void swap(QNetworkInterface* theWrappedObject, QNetworkInterface& other); + QString py_toString(QNetworkInterface*); +}; + + + + + +class PythonQtWrapper_QNetworkProxy : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Capability ProxyType ) +Q_FLAGS(Capabilities ) +enum Capability{ + TunnelingCapability = QNetworkProxy::TunnelingCapability, ListeningCapability = QNetworkProxy::ListeningCapability, UdpTunnelingCapability = QNetworkProxy::UdpTunnelingCapability, CachingCapability = QNetworkProxy::CachingCapability, HostNameLookupCapability = QNetworkProxy::HostNameLookupCapability}; +enum ProxyType{ + DefaultProxy = QNetworkProxy::DefaultProxy, Socks5Proxy = QNetworkProxy::Socks5Proxy, NoProxy = QNetworkProxy::NoProxy, HttpProxy = QNetworkProxy::HttpProxy, HttpCachingProxy = QNetworkProxy::HttpCachingProxy, FtpCachingProxy = QNetworkProxy::FtpCachingProxy}; +Q_DECLARE_FLAGS(Capabilities, Capability) +public slots: +QNetworkProxy* new_QNetworkProxy(); +QNetworkProxy* new_QNetworkProxy(QNetworkProxy::ProxyType type, const QString& hostName = QString(), unsigned short port = 0, const QString& user = QString(), const QString& password = QString()); +QNetworkProxy* new_QNetworkProxy(const QNetworkProxy& other); +void delete_QNetworkProxy(QNetworkProxy* obj) { delete obj; } + QNetworkProxy static_QNetworkProxy_applicationProxy(); + QNetworkProxy::Capabilities capabilities(QNetworkProxy* theWrappedObject) const; + bool hasRawHeader(QNetworkProxy* theWrappedObject, const QByteArray& headerName) const; + QVariant header(QNetworkProxy* theWrappedObject, QNetworkRequest::KnownHeaders header) const; + QString hostName(QNetworkProxy* theWrappedObject) const; + bool isCachingProxy(QNetworkProxy* theWrappedObject) const; + bool isTransparentProxy(QNetworkProxy* theWrappedObject) const; + bool __ne__(QNetworkProxy* theWrappedObject, const QNetworkProxy& other) const; + bool __eq__(QNetworkProxy* theWrappedObject, const QNetworkProxy& other) const; + QString password(QNetworkProxy* theWrappedObject) const; + unsigned short port(QNetworkProxy* theWrappedObject) const; + QByteArray rawHeader(QNetworkProxy* theWrappedObject, const QByteArray& headerName) const; + QList rawHeaderList(QNetworkProxy* theWrappedObject) const; + void static_QNetworkProxy_setApplicationProxy(const QNetworkProxy& proxy); + void setCapabilities(QNetworkProxy* theWrappedObject, QNetworkProxy::Capabilities capab); + void setHeader(QNetworkProxy* theWrappedObject, QNetworkRequest::KnownHeaders header, const QVariant& value); + void setHostName(QNetworkProxy* theWrappedObject, const QString& hostName); + void setPassword(QNetworkProxy* theWrappedObject, const QString& password); + void setPort(QNetworkProxy* theWrappedObject, unsigned short port); + void setRawHeader(QNetworkProxy* theWrappedObject, const QByteArray& headerName, const QByteArray& value); + void setType(QNetworkProxy* theWrappedObject, QNetworkProxy::ProxyType type); + void setUser(QNetworkProxy* theWrappedObject, const QString& userName); + void swap(QNetworkProxy* theWrappedObject, QNetworkProxy& other); + QNetworkProxy::ProxyType type(QNetworkProxy* theWrappedObject) const; + QString user(QNetworkProxy* theWrappedObject) const; + QString py_toString(QNetworkProxy*); +}; + + + + + +class PythonQtShell_QNetworkProxyFactory : public QNetworkProxyFactory +{ +public: + PythonQtShell_QNetworkProxyFactory():QNetworkProxyFactory(),_wrapper(NULL) {}; + + ~PythonQtShell_QNetworkProxyFactory(); + +virtual QList queryProxy(const QNetworkProxyQuery& query = QNetworkProxyQuery()); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QNetworkProxyFactory : public QObject +{ Q_OBJECT +public: +public slots: +QNetworkProxyFactory* new_QNetworkProxyFactory(); +void delete_QNetworkProxyFactory(QNetworkProxyFactory* obj) { delete obj; } + QList static_QNetworkProxyFactory_proxyForQuery(const QNetworkProxyQuery& query); + void static_QNetworkProxyFactory_setApplicationProxyFactory(QNetworkProxyFactory* factory); + void static_QNetworkProxyFactory_setUseSystemConfiguration(bool enable); + QList static_QNetworkProxyFactory_systemProxyForQuery(const QNetworkProxyQuery& query = QNetworkProxyQuery()); +}; + + + + + +class PythonQtWrapper_QNetworkProxyQuery : public QObject +{ Q_OBJECT +public: +Q_ENUMS(QueryType ) +enum QueryType{ + TcpSocket = QNetworkProxyQuery::TcpSocket, UdpSocket = QNetworkProxyQuery::UdpSocket, TcpServer = QNetworkProxyQuery::TcpServer, UrlRequest = QNetworkProxyQuery::UrlRequest}; +public slots: +QNetworkProxyQuery* new_QNetworkProxyQuery(); +QNetworkProxyQuery* new_QNetworkProxyQuery(const QNetworkProxyQuery& other); +QNetworkProxyQuery* new_QNetworkProxyQuery(const QString& hostname, int port, const QString& protocolTag = QString(), QNetworkProxyQuery::QueryType queryType = QNetworkProxyQuery::TcpSocket); +QNetworkProxyQuery* new_QNetworkProxyQuery(const QUrl& requestUrl, QNetworkProxyQuery::QueryType queryType = QNetworkProxyQuery::UrlRequest); +QNetworkProxyQuery* new_QNetworkProxyQuery(unsigned short bindPort, const QString& protocolTag = QString(), QNetworkProxyQuery::QueryType queryType = QNetworkProxyQuery::TcpServer); +void delete_QNetworkProxyQuery(QNetworkProxyQuery* obj) { delete obj; } + int localPort(QNetworkProxyQuery* theWrappedObject) const; + bool __ne__(QNetworkProxyQuery* theWrappedObject, const QNetworkProxyQuery& other) const; + bool __eq__(QNetworkProxyQuery* theWrappedObject, const QNetworkProxyQuery& other) const; + QString peerHostName(QNetworkProxyQuery* theWrappedObject) const; + int peerPort(QNetworkProxyQuery* theWrappedObject) const; + QString protocolTag(QNetworkProxyQuery* theWrappedObject) const; + QNetworkProxyQuery::QueryType queryType(QNetworkProxyQuery* theWrappedObject) const; + void setLocalPort(QNetworkProxyQuery* theWrappedObject, int port); + void setPeerHostName(QNetworkProxyQuery* theWrappedObject, const QString& hostname); + void setPeerPort(QNetworkProxyQuery* theWrappedObject, int port); + void setProtocolTag(QNetworkProxyQuery* theWrappedObject, const QString& protocolTag); + void setQueryType(QNetworkProxyQuery* theWrappedObject, QNetworkProxyQuery::QueryType type); + void setUrl(QNetworkProxyQuery* theWrappedObject, const QUrl& url); + void swap(QNetworkProxyQuery* theWrappedObject, QNetworkProxyQuery& other); + QUrl url(QNetworkProxyQuery* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QNetworkReply : public QNetworkReply +{ +public: + PythonQtShell_QNetworkReply(QObject* parent = 0):QNetworkReply(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QNetworkReply(); + +virtual void abort(); +virtual bool atEnd() const; +virtual qint64 bytesAvailable() const; +virtual qint64 bytesToWrite() const; +virtual bool canReadLine() const; +virtual void childEvent(QChildEvent* arg__1); +virtual void close(); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void ignoreSslErrors(); +virtual void ignoreSslErrorsImplementation(const QList& arg__1); +virtual bool isSequential() const; +virtual bool open(QIODevice::OpenMode mode); +virtual qint64 pos() const; +virtual qint64 readData(char* data, qint64 maxlen); +virtual qint64 readLineData(char* data, qint64 maxlen); +virtual bool reset(); +virtual bool seek(qint64 pos); +virtual void setReadBufferSize(qint64 size); +virtual void setSslConfigurationImplementation(const QSslConfiguration& arg__1); +virtual qint64 size() const; +virtual void sslConfigurationImplementation(QSslConfiguration& arg__1) const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool waitForBytesWritten(int msecs); +virtual bool waitForReadyRead(int msecs); +virtual qint64 writeData(const char* data, qint64 len); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QNetworkReply : public QNetworkReply +{ public: +inline void promoted_close() { QNetworkReply::close(); } +inline void promoted_ignoreSslErrors() { QNetworkReply::ignoreSslErrors(); } +inline void promoted_ignoreSslErrorsImplementation(const QList& arg__1) { QNetworkReply::ignoreSslErrorsImplementation(arg__1); } +inline bool promoted_isSequential() const { return QNetworkReply::isSequential(); } +inline void promoted_setReadBufferSize(qint64 size) { QNetworkReply::setReadBufferSize(size); } +inline void promoted_setSslConfigurationImplementation(const QSslConfiguration& arg__1) { QNetworkReply::setSslConfigurationImplementation(arg__1); } +inline void promoted_sslConfigurationImplementation(QSslConfiguration& arg__1) const { QNetworkReply::sslConfigurationImplementation(arg__1); } +inline qint64 promoted_writeData(const char* data, qint64 len) { return QNetworkReply::writeData(data, len); } +}; + +class PythonQtWrapper_QNetworkReply : public QObject +{ Q_OBJECT +public: +public slots: +void delete_QNetworkReply(QNetworkReply* obj) { delete obj; } + QVariant attribute(QNetworkReply* theWrappedObject, QNetworkRequest::Attribute code) const; + void close(QNetworkReply* theWrappedObject); + QNetworkReply::NetworkError error(QNetworkReply* theWrappedObject) const; + bool hasRawHeader(QNetworkReply* theWrappedObject, const QByteArray& headerName) const; + QVariant header(QNetworkReply* theWrappedObject, QNetworkRequest::KnownHeaders header) const; + void ignoreSslErrors(QNetworkReply* theWrappedObject); + void ignoreSslErrors(QNetworkReply* theWrappedObject, const QList& errors); + void ignoreSslErrorsImplementation(QNetworkReply* theWrappedObject, const QList& arg__1); + bool isFinished(QNetworkReply* theWrappedObject) const; + bool isRunning(QNetworkReply* theWrappedObject) const; + bool isSequential(QNetworkReply* theWrappedObject) const; + QNetworkAccessManager* manager(QNetworkReply* theWrappedObject) const; + QNetworkAccessManager::Operation operation(QNetworkReply* theWrappedObject) const; + QByteArray rawHeader(QNetworkReply* theWrappedObject, const QByteArray& headerName) const; + QList rawHeaderList(QNetworkReply* theWrappedObject) const; + const QList >* rawHeaderPairs(QNetworkReply* theWrappedObject) const; + qint64 readBufferSize(QNetworkReply* theWrappedObject) const; + QNetworkRequest request(QNetworkReply* theWrappedObject) const; + void setReadBufferSize(QNetworkReply* theWrappedObject, qint64 size); + void setSslConfiguration(QNetworkReply* theWrappedObject, const QSslConfiguration& configuration); + void setSslConfigurationImplementation(QNetworkReply* theWrappedObject, const QSslConfiguration& arg__1); + QSslConfiguration sslConfiguration(QNetworkReply* theWrappedObject) const; + void sslConfigurationImplementation(QNetworkReply* theWrappedObject, QSslConfiguration& arg__1) const; + QUrl url(QNetworkReply* theWrappedObject) const; + qint64 writeData(QNetworkReply* theWrappedObject, const char* data, qint64 len); +}; + + + + + +class PythonQtWrapper_QNetworkRequest : public QObject +{ Q_OBJECT +public: +Q_ENUMS(CacheLoadControl Attribute Priority KnownHeaders LoadControl ) +enum CacheLoadControl{ + AlwaysNetwork = QNetworkRequest::AlwaysNetwork, PreferNetwork = QNetworkRequest::PreferNetwork, PreferCache = QNetworkRequest::PreferCache, AlwaysCache = QNetworkRequest::AlwaysCache}; +enum Attribute{ + HttpStatusCodeAttribute = QNetworkRequest::HttpStatusCodeAttribute, HttpReasonPhraseAttribute = QNetworkRequest::HttpReasonPhraseAttribute, RedirectionTargetAttribute = QNetworkRequest::RedirectionTargetAttribute, ConnectionEncryptedAttribute = QNetworkRequest::ConnectionEncryptedAttribute, CacheLoadControlAttribute = QNetworkRequest::CacheLoadControlAttribute, CacheSaveControlAttribute = QNetworkRequest::CacheSaveControlAttribute, SourceIsFromCacheAttribute = QNetworkRequest::SourceIsFromCacheAttribute, DoNotBufferUploadDataAttribute = QNetworkRequest::DoNotBufferUploadDataAttribute, HttpPipeliningAllowedAttribute = QNetworkRequest::HttpPipeliningAllowedAttribute, HttpPipeliningWasUsedAttribute = QNetworkRequest::HttpPipeliningWasUsedAttribute, CustomVerbAttribute = QNetworkRequest::CustomVerbAttribute, CookieLoadControlAttribute = QNetworkRequest::CookieLoadControlAttribute, AuthenticationReuseAttribute = QNetworkRequest::AuthenticationReuseAttribute, CookieSaveControlAttribute = QNetworkRequest::CookieSaveControlAttribute, MaximumDownloadBufferSizeAttribute = QNetworkRequest::MaximumDownloadBufferSizeAttribute, DownloadBufferAttribute = QNetworkRequest::DownloadBufferAttribute, SynchronousRequestAttribute = QNetworkRequest::SynchronousRequestAttribute, BackgroundRequestAttribute = QNetworkRequest::BackgroundRequestAttribute, User = QNetworkRequest::User, UserMax = QNetworkRequest::UserMax}; +enum Priority{ + HighPriority = QNetworkRequest::HighPriority, NormalPriority = QNetworkRequest::NormalPriority, LowPriority = QNetworkRequest::LowPriority}; +enum KnownHeaders{ + ContentTypeHeader = QNetworkRequest::ContentTypeHeader, ContentLengthHeader = QNetworkRequest::ContentLengthHeader, LocationHeader = QNetworkRequest::LocationHeader, LastModifiedHeader = QNetworkRequest::LastModifiedHeader, CookieHeader = QNetworkRequest::CookieHeader, SetCookieHeader = QNetworkRequest::SetCookieHeader, ContentDispositionHeader = QNetworkRequest::ContentDispositionHeader, UserAgentHeader = QNetworkRequest::UserAgentHeader, ServerHeader = QNetworkRequest::ServerHeader}; +enum LoadControl{ + Automatic = QNetworkRequest::Automatic, Manual = QNetworkRequest::Manual}; +public slots: +QNetworkRequest* new_QNetworkRequest(const QNetworkRequest& other); +QNetworkRequest* new_QNetworkRequest(const QUrl& url = QUrl()); +void delete_QNetworkRequest(QNetworkRequest* obj) { delete obj; } + QVariant attribute(QNetworkRequest* theWrappedObject, QNetworkRequest::Attribute code, const QVariant& defaultValue = QVariant()) const; + bool hasRawHeader(QNetworkRequest* theWrappedObject, const QByteArray& headerName) const; + QVariant header(QNetworkRequest* theWrappedObject, QNetworkRequest::KnownHeaders header) const; + bool __ne__(QNetworkRequest* theWrappedObject, const QNetworkRequest& other) const; + bool __eq__(QNetworkRequest* theWrappedObject, const QNetworkRequest& other) const; + QObject* originatingObject(QNetworkRequest* theWrappedObject) const; + QNetworkRequest::Priority priority(QNetworkRequest* theWrappedObject) const; + QByteArray rawHeader(QNetworkRequest* theWrappedObject, const QByteArray& headerName) const; + QList rawHeaderList(QNetworkRequest* theWrappedObject) const; + void setAttribute(QNetworkRequest* theWrappedObject, QNetworkRequest::Attribute code, const QVariant& value); + void setHeader(QNetworkRequest* theWrappedObject, QNetworkRequest::KnownHeaders header, const QVariant& value); + void setOriginatingObject(QNetworkRequest* theWrappedObject, QObject* object); + void setPriority(QNetworkRequest* theWrappedObject, QNetworkRequest::Priority priority); + void setRawHeader(QNetworkRequest* theWrappedObject, const QByteArray& headerName, const QByteArray& value); + void setSslConfiguration(QNetworkRequest* theWrappedObject, const QSslConfiguration& configuration); + void setUrl(QNetworkRequest* theWrappedObject, const QUrl& url); + QSslConfiguration sslConfiguration(QNetworkRequest* theWrappedObject) const; + void swap(QNetworkRequest* theWrappedObject, QNetworkRequest& other); + QUrl url(QNetworkRequest* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QSsl : public QObject +{ Q_OBJECT +public: +Q_ENUMS(SslProtocol KeyAlgorithm EncodingFormat KeyType ) +enum SslProtocol{ + SslV3 = QSsl::SslV3, SslV2 = QSsl::SslV2, TlsV1_0 = QSsl::TlsV1_0, TlsV1_1 = QSsl::TlsV1_1, TlsV1_2 = QSsl::TlsV1_2, AnyProtocol = QSsl::AnyProtocol, TlsV1SslV3 = QSsl::TlsV1SslV3, SecureProtocols = QSsl::SecureProtocols, UnknownProtocol = QSsl::UnknownProtocol}; +enum KeyAlgorithm{ + Opaque = QSsl::Opaque, Rsa = QSsl::Rsa, Dsa = QSsl::Dsa}; +enum EncodingFormat{ + Pem = QSsl::Pem, Der = QSsl::Der}; +enum KeyType{ + PrivateKey = QSsl::PrivateKey, PublicKey = QSsl::PublicKey}; +public slots: +}; + + + + + +class PythonQtWrapper_QSslCertificate : public QObject +{ Q_OBJECT +public: +Q_ENUMS(SubjectInfo ) +enum SubjectInfo{ + Organization = QSslCertificate::Organization, CommonName = QSslCertificate::CommonName, LocalityName = QSslCertificate::LocalityName, OrganizationalUnitName = QSslCertificate::OrganizationalUnitName, CountryName = QSslCertificate::CountryName, StateOrProvinceName = QSslCertificate::StateOrProvinceName, DistinguishedNameQualifier = QSslCertificate::DistinguishedNameQualifier, SerialNumber = QSslCertificate::SerialNumber, EmailAddress = QSslCertificate::EmailAddress}; +public slots: +QSslCertificate* new_QSslCertificate(QIODevice* device, QSsl::EncodingFormat format = QSsl::Pem); +QSslCertificate* new_QSslCertificate(const QByteArray& data = QByteArray(), QSsl::EncodingFormat format = QSsl::Pem); +QSslCertificate* new_QSslCertificate(const QSslCertificate& other); +void delete_QSslCertificate(QSslCertificate* obj) { delete obj; } + void clear(QSslCertificate* theWrappedObject); + QByteArray digest(QSslCertificate* theWrappedObject, QCryptographicHash::Algorithm algorithm = QCryptographicHash::Md5) const; + QDateTime effectiveDate(QSslCertificate* theWrappedObject) const; + QDateTime expiryDate(QSslCertificate* theWrappedObject) const; + QList static_QSslCertificate_fromData(const QByteArray& data, QSsl::EncodingFormat format = QSsl::Pem); + QList static_QSslCertificate_fromDevice(QIODevice* device, QSsl::EncodingFormat format = QSsl::Pem); + QList static_QSslCertificate_fromPath(const QString& path, QSsl::EncodingFormat format = QSsl::Pem, QRegExp::PatternSyntax syntax = QRegExp::FixedString); + Qt::HANDLE handle(QSslCertificate* theWrappedObject) const; + bool isBlacklisted(QSslCertificate* theWrappedObject) const; + bool isNull(QSslCertificate* theWrappedObject) const; + QStringList issuerInfo(QSslCertificate* theWrappedObject, QSslCertificate::SubjectInfo info) const; + QStringList issuerInfo(QSslCertificate* theWrappedObject, const QByteArray& attribute) const; + QList issuerInfoAttributes(QSslCertificate* theWrappedObject) const; + bool __ne__(QSslCertificate* theWrappedObject, const QSslCertificate& other) const; + QSslCertificate* operator_assign(QSslCertificate* theWrappedObject, const QSslCertificate& other); + bool __eq__(QSslCertificate* theWrappedObject, const QSslCertificate& other) const; + QSslKey publicKey(QSslCertificate* theWrappedObject) const; + QByteArray serialNumber(QSslCertificate* theWrappedObject) const; + QStringList subjectInfo(QSslCertificate* theWrappedObject, QSslCertificate::SubjectInfo info) const; + QStringList subjectInfo(QSslCertificate* theWrappedObject, const QByteArray& attribute) const; + QList subjectInfoAttributes(QSslCertificate* theWrappedObject) const; + void swap(QSslCertificate* theWrappedObject, QSslCertificate& other); + QByteArray toDer(QSslCertificate* theWrappedObject) const; + QByteArray toPem(QSslCertificate* theWrappedObject) const; + QString toText(QSslCertificate* theWrappedObject) const; + QList static_QSslCertificate_verify(QList certificateChain, const QString& hostName = QString()); + QByteArray version(QSslCertificate* theWrappedObject) const; + QString py_toString(QSslCertificate*); + bool __nonzero__(QSslCertificate* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QSslCipher : public QObject +{ Q_OBJECT +public: +public slots: +QSslCipher* new_QSslCipher(); +QSslCipher* new_QSslCipher(const QSslCipher& other); +QSslCipher* new_QSslCipher(const QString& name, QSsl::SslProtocol protocol); +void delete_QSslCipher(QSslCipher* obj) { delete obj; } + QString authenticationMethod(QSslCipher* theWrappedObject) const; + QString encryptionMethod(QSslCipher* theWrappedObject) const; + bool isNull(QSslCipher* theWrappedObject) const; + QString keyExchangeMethod(QSslCipher* theWrappedObject) const; + QString name(QSslCipher* theWrappedObject) const; + bool __ne__(QSslCipher* theWrappedObject, const QSslCipher& other) const; + QSslCipher* operator_assign(QSslCipher* theWrappedObject, const QSslCipher& other); + bool __eq__(QSslCipher* theWrappedObject, const QSslCipher& other) const; + QSsl::SslProtocol protocol(QSslCipher* theWrappedObject) const; + QString protocolString(QSslCipher* theWrappedObject) const; + int supportedBits(QSslCipher* theWrappedObject) const; + void swap(QSslCipher* theWrappedObject, QSslCipher& other); + int usedBits(QSslCipher* theWrappedObject) const; + QString py_toString(QSslCipher*); + bool __nonzero__(QSslCipher* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QSslConfiguration : public QObject +{ Q_OBJECT +public: +public slots: +QSslConfiguration* new_QSslConfiguration(); +QSslConfiguration* new_QSslConfiguration(const QSslConfiguration& other); +void delete_QSslConfiguration(QSslConfiguration* obj) { delete obj; } + QList caCertificates(QSslConfiguration* theWrappedObject) const; + QList ciphers(QSslConfiguration* theWrappedObject) const; + QSslConfiguration static_QSslConfiguration_defaultConfiguration(); + bool isNull(QSslConfiguration* theWrappedObject) const; + QSslCertificate localCertificate(QSslConfiguration* theWrappedObject) const; + bool __ne__(QSslConfiguration* theWrappedObject, const QSslConfiguration& other) const; + QSslConfiguration* operator_assign(QSslConfiguration* theWrappedObject, const QSslConfiguration& other); + bool __eq__(QSslConfiguration* theWrappedObject, const QSslConfiguration& other) const; + QSslCertificate peerCertificate(QSslConfiguration* theWrappedObject) const; + QList peerCertificateChain(QSslConfiguration* theWrappedObject) const; + int peerVerifyDepth(QSslConfiguration* theWrappedObject) const; + QSslSocket::PeerVerifyMode peerVerifyMode(QSslConfiguration* theWrappedObject) const; + QSslKey privateKey(QSslConfiguration* theWrappedObject) const; + QSsl::SslProtocol protocol(QSslConfiguration* theWrappedObject) const; + QSslCipher sessionCipher(QSslConfiguration* theWrappedObject) const; + void setCaCertificates(QSslConfiguration* theWrappedObject, const QList& certificates); + void setCiphers(QSslConfiguration* theWrappedObject, const QList& ciphers); + void static_QSslConfiguration_setDefaultConfiguration(const QSslConfiguration& configuration); + void setLocalCertificate(QSslConfiguration* theWrappedObject, const QSslCertificate& certificate); + void setPeerVerifyDepth(QSslConfiguration* theWrappedObject, int depth); + void setPeerVerifyMode(QSslConfiguration* theWrappedObject, QSslSocket::PeerVerifyMode mode); + void setPrivateKey(QSslConfiguration* theWrappedObject, const QSslKey& key); + void setProtocol(QSslConfiguration* theWrappedObject, QSsl::SslProtocol protocol); + void swap(QSslConfiguration* theWrappedObject, QSslConfiguration& other); + bool __nonzero__(QSslConfiguration* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QSslError : public QObject +{ Q_OBJECT +public: +Q_ENUMS(SslError ) +enum SslError{ + NoError = QSslError::NoError, UnableToGetIssuerCertificate = QSslError::UnableToGetIssuerCertificate, UnableToDecryptCertificateSignature = QSslError::UnableToDecryptCertificateSignature, UnableToDecodeIssuerPublicKey = QSslError::UnableToDecodeIssuerPublicKey, CertificateSignatureFailed = QSslError::CertificateSignatureFailed, CertificateNotYetValid = QSslError::CertificateNotYetValid, CertificateExpired = QSslError::CertificateExpired, InvalidNotBeforeField = QSslError::InvalidNotBeforeField, InvalidNotAfterField = QSslError::InvalidNotAfterField, SelfSignedCertificate = QSslError::SelfSignedCertificate, SelfSignedCertificateInChain = QSslError::SelfSignedCertificateInChain, UnableToGetLocalIssuerCertificate = QSslError::UnableToGetLocalIssuerCertificate, UnableToVerifyFirstCertificate = QSslError::UnableToVerifyFirstCertificate, CertificateRevoked = QSslError::CertificateRevoked, InvalidCaCertificate = QSslError::InvalidCaCertificate, PathLengthExceeded = QSslError::PathLengthExceeded, InvalidPurpose = QSslError::InvalidPurpose, CertificateUntrusted = QSslError::CertificateUntrusted, CertificateRejected = QSslError::CertificateRejected, SubjectIssuerMismatch = QSslError::SubjectIssuerMismatch, AuthorityIssuerSerialNumberMismatch = QSslError::AuthorityIssuerSerialNumberMismatch, NoPeerCertificate = QSslError::NoPeerCertificate, HostNameMismatch = QSslError::HostNameMismatch, NoSslSupport = QSslError::NoSslSupport, CertificateBlacklisted = QSslError::CertificateBlacklisted, UnspecifiedError = QSslError::UnspecifiedError}; +public slots: +QSslError* new_QSslError(); +QSslError* new_QSslError(QSslError::SslError error); +QSslError* new_QSslError(QSslError::SslError error, const QSslCertificate& certificate); +QSslError* new_QSslError(const QSslError& other); +void delete_QSslError(QSslError* obj) { delete obj; } + QSslCertificate certificate(QSslError* theWrappedObject) const; + QSslError::SslError error(QSslError* theWrappedObject) const; + QString errorString(QSslError* theWrappedObject) const; + bool __ne__(QSslError* theWrappedObject, const QSslError& other) const; + QSslError* operator_assign(QSslError* theWrappedObject, const QSslError& other); + bool __eq__(QSslError* theWrappedObject, const QSslError& other) const; + void swap(QSslError* theWrappedObject, QSslError& other); + QString py_toString(QSslError*); +}; + + + + + +class PythonQtWrapper_QSslKey : public QObject +{ Q_OBJECT +public: +public slots: +QSslKey* new_QSslKey(); +QSslKey* new_QSslKey(QIODevice* device, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format = QSsl::Pem, QSsl::KeyType type = QSsl::PrivateKey, const QByteArray& passPhrase = QByteArray()); +QSslKey* new_QSslKey(Qt::HANDLE handle, QSsl::KeyType type = QSsl::PrivateKey); +QSslKey* new_QSslKey(const QByteArray& encoded, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format = QSsl::Pem, QSsl::KeyType type = QSsl::PrivateKey, const QByteArray& passPhrase = QByteArray()); +QSslKey* new_QSslKey(const QSslKey& other); +void delete_QSslKey(QSslKey* obj) { delete obj; } + QSsl::KeyAlgorithm algorithm(QSslKey* theWrappedObject) const; + void clear(QSslKey* theWrappedObject); + Qt::HANDLE handle(QSslKey* theWrappedObject) const; + bool isNull(QSslKey* theWrappedObject) const; + int length(QSslKey* theWrappedObject) const; + bool __ne__(QSslKey* theWrappedObject, const QSslKey& key) const; + QSslKey* operator_assign(QSslKey* theWrappedObject, const QSslKey& other); + bool __eq__(QSslKey* theWrappedObject, const QSslKey& key) const; + void swap(QSslKey* theWrappedObject, QSslKey& other); + QByteArray toDer(QSslKey* theWrappedObject, const QByteArray& passPhrase = QByteArray()) const; + QByteArray toPem(QSslKey* theWrappedObject, const QByteArray& passPhrase = QByteArray()) const; + QSsl::KeyType type(QSslKey* theWrappedObject) const; + QString py_toString(QSslKey*); + bool __nonzero__(QSslKey* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtShell_QSslSocket : public QSslSocket +{ +public: + PythonQtShell_QSslSocket(QObject* parent = 0):QSslSocket(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QSslSocket(); + +virtual bool atEnd() const; +virtual qint64 bytesAvailable() const; +virtual qint64 bytesToWrite() const; +virtual bool canReadLine() const; +virtual void childEvent(QChildEvent* arg__1); +virtual void close(); +virtual void connectToHost(const QString& hostName, unsigned short port, QIODevice::OpenMode openMode = QIODevice::ReadWrite, QAbstractSocket::NetworkLayerProtocol protocol = QAbstractSocket::AnyIPProtocol); +virtual void customEvent(QEvent* arg__1); +virtual void disconnectFromHost(); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool isSequential() const; +virtual bool open(QIODevice::OpenMode mode); +virtual qint64 pos() const; +virtual qint64 readData(char* data, qint64 maxlen); +virtual qint64 readLineData(char* data, qint64 maxlen); +virtual bool reset(); +virtual void resume(); +virtual bool seek(qint64 pos); +virtual void setReadBufferSize(qint64 size); +virtual void setSocketOption(QAbstractSocket::SocketOption option, const QVariant& value); +virtual qint64 size() const; +virtual QVariant socketOption(QAbstractSocket::SocketOption option); +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool waitForBytesWritten(int msecs = 30000); +virtual bool waitForConnected(int msecs = 30000); +virtual bool waitForDisconnected(int msecs = 30000); +virtual bool waitForReadyRead(int msecs = 30000); +virtual qint64 writeData(const char* data, qint64 len); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSslSocket : public QSslSocket +{ public: +inline bool promoted_atEnd() const { return QSslSocket::atEnd(); } +inline qint64 promoted_bytesAvailable() const { return QSslSocket::bytesAvailable(); } +inline qint64 promoted_bytesToWrite() const { return QSslSocket::bytesToWrite(); } +inline bool promoted_canReadLine() const { return QSslSocket::canReadLine(); } +inline void promoted_close() { QSslSocket::close(); } +inline void promoted_connectToHost(const QString& hostName, unsigned short port, QIODevice::OpenMode openMode = QIODevice::ReadWrite, QAbstractSocket::NetworkLayerProtocol protocol = QAbstractSocket::AnyIPProtocol) { QSslSocket::connectToHost(hostName, port, openMode, protocol); } +inline void promoted_disconnectFromHost() { QSslSocket::disconnectFromHost(); } +inline qint64 promoted_readData(char* data, qint64 maxlen) { return QSslSocket::readData(data, maxlen); } +inline void promoted_resume() { QSslSocket::resume(); } +inline void promoted_setReadBufferSize(qint64 size) { QSslSocket::setReadBufferSize(size); } +inline void promoted_setSocketOption(QAbstractSocket::SocketOption option, const QVariant& value) { QSslSocket::setSocketOption(option, value); } +inline QVariant promoted_socketOption(QAbstractSocket::SocketOption option) { return QSslSocket::socketOption(option); } +inline bool promoted_waitForBytesWritten(int msecs = 30000) { return QSslSocket::waitForBytesWritten(msecs); } +inline bool promoted_waitForConnected(int msecs = 30000) { return QSslSocket::waitForConnected(msecs); } +inline bool promoted_waitForDisconnected(int msecs = 30000) { return QSslSocket::waitForDisconnected(msecs); } +inline bool promoted_waitForReadyRead(int msecs = 30000) { return QSslSocket::waitForReadyRead(msecs); } +inline qint64 promoted_writeData(const char* data, qint64 len) { return QSslSocket::writeData(data, len); } +}; + +class PythonQtWrapper_QSslSocket : public QObject +{ Q_OBJECT +public: +Q_ENUMS(SslMode PeerVerifyMode ) +enum SslMode{ + UnencryptedMode = QSslSocket::UnencryptedMode, SslClientMode = QSslSocket::SslClientMode, SslServerMode = QSslSocket::SslServerMode}; +enum PeerVerifyMode{ + VerifyNone = QSslSocket::VerifyNone, QueryPeer = QSslSocket::QueryPeer, VerifyPeer = QSslSocket::VerifyPeer, AutoVerifyPeer = QSslSocket::AutoVerifyPeer}; +public slots: +QSslSocket* new_QSslSocket(QObject* parent = 0); +void delete_QSslSocket(QSslSocket* obj) { delete obj; } + void abort(QSslSocket* theWrappedObject); + void addCaCertificate(QSslSocket* theWrappedObject, const QSslCertificate& certificate); + void addCaCertificates(QSslSocket* theWrappedObject, const QList& certificates); + bool addCaCertificates(QSslSocket* theWrappedObject, const QString& path, QSsl::EncodingFormat format = QSsl::Pem, QRegExp::PatternSyntax syntax = QRegExp::FixedString); + void static_QSslSocket_addDefaultCaCertificate(const QSslCertificate& certificate); + void static_QSslSocket_addDefaultCaCertificates(const QList& certificates); + bool static_QSslSocket_addDefaultCaCertificates(const QString& path, QSsl::EncodingFormat format = QSsl::Pem, QRegExp::PatternSyntax syntax = QRegExp::FixedString); + bool atEnd(QSslSocket* theWrappedObject) const; + qint64 bytesAvailable(QSslSocket* theWrappedObject) const; + qint64 bytesToWrite(QSslSocket* theWrappedObject) const; + QList caCertificates(QSslSocket* theWrappedObject) const; + bool canReadLine(QSslSocket* theWrappedObject) const; + QList ciphers(QSslSocket* theWrappedObject) const; + void close(QSslSocket* theWrappedObject); + void connectToHost(QSslSocket* theWrappedObject, const QString& hostName, unsigned short port, QIODevice::OpenMode openMode = QIODevice::ReadWrite, QAbstractSocket::NetworkLayerProtocol protocol = QAbstractSocket::AnyIPProtocol); + void connectToHostEncrypted(QSslSocket* theWrappedObject, const QString& hostName, unsigned short port, QIODevice::OpenMode mode = QIODevice::ReadWrite, QAbstractSocket::NetworkLayerProtocol protocol = QAbstractSocket::AnyIPProtocol); + void connectToHostEncrypted(QSslSocket* theWrappedObject, const QString& hostName, unsigned short port, const QString& sslPeerName, QIODevice::OpenMode mode = QIODevice::ReadWrite, QAbstractSocket::NetworkLayerProtocol protocol = QAbstractSocket::AnyIPProtocol); + QList static_QSslSocket_defaultCaCertificates(); + QList static_QSslSocket_defaultCiphers(); + void disconnectFromHost(QSslSocket* theWrappedObject); + qint64 encryptedBytesAvailable(QSslSocket* theWrappedObject) const; + qint64 encryptedBytesToWrite(QSslSocket* theWrappedObject) const; + bool flush(QSslSocket* theWrappedObject); + void ignoreSslErrors(QSslSocket* theWrappedObject, const QList& errors); + bool isEncrypted(QSslSocket* theWrappedObject) const; + QSslCertificate localCertificate(QSslSocket* theWrappedObject) const; + QSslSocket::SslMode mode(QSslSocket* theWrappedObject) const; + QSslCertificate peerCertificate(QSslSocket* theWrappedObject) const; + QList peerCertificateChain(QSslSocket* theWrappedObject) const; + int peerVerifyDepth(QSslSocket* theWrappedObject) const; + QSslSocket::PeerVerifyMode peerVerifyMode(QSslSocket* theWrappedObject) const; + QString peerVerifyName(QSslSocket* theWrappedObject) const; + QSslKey privateKey(QSslSocket* theWrappedObject) const; + QSsl::SslProtocol protocol(QSslSocket* theWrappedObject) const; + qint64 readData(QSslSocket* theWrappedObject, char* data, qint64 maxlen); + void resume(QSslSocket* theWrappedObject); + QSslCipher sessionCipher(QSslSocket* theWrappedObject) const; + void setCaCertificates(QSslSocket* theWrappedObject, const QList& certificates); + void setCiphers(QSslSocket* theWrappedObject, const QList& ciphers); + void setCiphers(QSslSocket* theWrappedObject, const QString& ciphers); + void static_QSslSocket_setDefaultCaCertificates(const QList& certificates); + void static_QSslSocket_setDefaultCiphers(const QList& ciphers); + void setLocalCertificate(QSslSocket* theWrappedObject, const QSslCertificate& certificate); + void setLocalCertificate(QSslSocket* theWrappedObject, const QString& fileName, QSsl::EncodingFormat format = QSsl::Pem); + void setPeerVerifyDepth(QSslSocket* theWrappedObject, int depth); + void setPeerVerifyMode(QSslSocket* theWrappedObject, QSslSocket::PeerVerifyMode mode); + void setPeerVerifyName(QSslSocket* theWrappedObject, const QString& hostName); + void setPrivateKey(QSslSocket* theWrappedObject, const QSslKey& key); + void setPrivateKey(QSslSocket* theWrappedObject, const QString& fileName, QSsl::KeyAlgorithm algorithm = QSsl::Rsa, QSsl::EncodingFormat format = QSsl::Pem, const QByteArray& passPhrase = QByteArray()); + void setProtocol(QSslSocket* theWrappedObject, QSsl::SslProtocol protocol); + void setReadBufferSize(QSslSocket* theWrappedObject, qint64 size); + void setSocketOption(QSslSocket* theWrappedObject, QAbstractSocket::SocketOption option, const QVariant& value); + void setSslConfiguration(QSslSocket* theWrappedObject, const QSslConfiguration& config); + QVariant socketOption(QSslSocket* theWrappedObject, QAbstractSocket::SocketOption option); + QSslConfiguration sslConfiguration(QSslSocket* theWrappedObject) const; + QList sslErrors(QSslSocket* theWrappedObject) const; + long static_QSslSocket_sslLibraryVersionNumber(); + QString static_QSslSocket_sslLibraryVersionString(); + QList static_QSslSocket_supportedCiphers(); + bool static_QSslSocket_supportsSsl(); + QList static_QSslSocket_systemCaCertificates(); + bool waitForBytesWritten(QSslSocket* theWrappedObject, int msecs = 30000); + bool waitForConnected(QSslSocket* theWrappedObject, int msecs = 30000); + bool waitForDisconnected(QSslSocket* theWrappedObject, int msecs = 30000); + bool waitForEncrypted(QSslSocket* theWrappedObject, int msecs = 30000); + bool waitForReadyRead(QSslSocket* theWrappedObject, int msecs = 30000); + qint64 writeData(QSslSocket* theWrappedObject, const char* data, qint64 len); +}; + + + + + +class PythonQtShell_QTcpServer : public QTcpServer +{ +public: + PythonQtShell_QTcpServer(QObject* parent = 0):QTcpServer(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QTcpServer(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool hasPendingConnections() const; +virtual QTcpSocket* nextPendingConnection(); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QTcpServer : public QTcpServer +{ public: +inline bool promoted_hasPendingConnections() const { return QTcpServer::hasPendingConnections(); } +inline QTcpSocket* promoted_nextPendingConnection() { return QTcpServer::nextPendingConnection(); } +}; + +class PythonQtWrapper_QTcpServer : public QObject +{ Q_OBJECT +public: +public slots: +QTcpServer* new_QTcpServer(QObject* parent = 0); +void delete_QTcpServer(QTcpServer* obj) { delete obj; } + void close(QTcpServer* theWrappedObject); + QString errorString(QTcpServer* theWrappedObject) const; + bool hasPendingConnections(QTcpServer* theWrappedObject) const; + bool isListening(QTcpServer* theWrappedObject) const; + bool listen(QTcpServer* theWrappedObject, const QHostAddress& address = QHostAddress::Any, unsigned short port = 0); + int maxPendingConnections(QTcpServer* theWrappedObject) const; + QTcpSocket* nextPendingConnection(QTcpServer* theWrappedObject); + void pauseAccepting(QTcpServer* theWrappedObject); + QNetworkProxy proxy(QTcpServer* theWrappedObject) const; + void resumeAccepting(QTcpServer* theWrappedObject); + QHostAddress serverAddress(QTcpServer* theWrappedObject) const; + QAbstractSocket::SocketError serverError(QTcpServer* theWrappedObject) const; + unsigned short serverPort(QTcpServer* theWrappedObject) const; + void setMaxPendingConnections(QTcpServer* theWrappedObject, int numConnections); + void setProxy(QTcpServer* theWrappedObject, const QNetworkProxy& networkProxy); + bool waitForNewConnection(QTcpServer* theWrappedObject, int msec = 0, bool* timedOut = 0); +}; + + + + + +class PythonQtShell_QTcpSocket : public QTcpSocket +{ +public: + PythonQtShell_QTcpSocket(QObject* parent = 0):QTcpSocket(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QTcpSocket(); + +virtual bool atEnd() const; +virtual qint64 bytesAvailable() const; +virtual qint64 bytesToWrite() const; +virtual bool canReadLine() const; +virtual void childEvent(QChildEvent* arg__1); +virtual void close(); +virtual void connectToHost(const QHostAddress& address, unsigned short port, QIODevice::OpenMode mode); +virtual void connectToHost(const QString& hostName, unsigned short port, QIODevice::OpenMode mode, QAbstractSocket::NetworkLayerProtocol protocol); +virtual void customEvent(QEvent* arg__1); +virtual void disconnectFromHost(); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool isSequential() const; +virtual bool open(QIODevice::OpenMode mode); +virtual qint64 pos() const; +virtual qint64 readData(char* data, qint64 maxlen); +virtual qint64 readLineData(char* data, qint64 maxlen); +virtual bool reset(); +virtual void resume(); +virtual bool seek(qint64 pos); +virtual void setReadBufferSize(qint64 size); +virtual void setSocketOption(QAbstractSocket::SocketOption option, const QVariant& value); +virtual qint64 size() const; +virtual QVariant socketOption(QAbstractSocket::SocketOption option); +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool waitForBytesWritten(int msecs); +virtual bool waitForConnected(int msecs); +virtual bool waitForDisconnected(int msecs); +virtual bool waitForReadyRead(int msecs); +virtual qint64 writeData(const char* data, qint64 len); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QTcpSocket : public QObject +{ Q_OBJECT +public: +public slots: +QTcpSocket* new_QTcpSocket(QObject* parent = 0); +void delete_QTcpSocket(QTcpSocket* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QUdpSocket : public QUdpSocket +{ +public: + PythonQtShell_QUdpSocket(QObject* parent = 0):QUdpSocket(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QUdpSocket(); + +virtual bool atEnd() const; +virtual qint64 bytesAvailable() const; +virtual qint64 bytesToWrite() const; +virtual bool canReadLine() const; +virtual void childEvent(QChildEvent* arg__1); +virtual void close(); +virtual void connectToHost(const QHostAddress& address, unsigned short port, QIODevice::OpenMode mode); +virtual void connectToHost(const QString& hostName, unsigned short port, QIODevice::OpenMode mode, QAbstractSocket::NetworkLayerProtocol protocol); +virtual void customEvent(QEvent* arg__1); +virtual void disconnectFromHost(); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool isSequential() const; +virtual bool open(QIODevice::OpenMode mode); +virtual qint64 pos() const; +virtual qint64 readData(char* data, qint64 maxlen); +virtual qint64 readLineData(char* data, qint64 maxlen); +virtual bool reset(); +virtual void resume(); +virtual bool seek(qint64 pos); +virtual void setReadBufferSize(qint64 size); +virtual void setSocketOption(QAbstractSocket::SocketOption option, const QVariant& value); +virtual qint64 size() const; +virtual QVariant socketOption(QAbstractSocket::SocketOption option); +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool waitForBytesWritten(int msecs); +virtual bool waitForConnected(int msecs); +virtual bool waitForDisconnected(int msecs); +virtual bool waitForReadyRead(int msecs); +virtual qint64 writeData(const char* data, qint64 len); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QUdpSocket : public QObject +{ Q_OBJECT +public: +public slots: +QUdpSocket* new_QUdpSocket(QObject* parent = 0); +void delete_QUdpSocket(QUdpSocket* obj) { delete obj; } + bool hasPendingDatagrams(QUdpSocket* theWrappedObject) const; + bool joinMulticastGroup(QUdpSocket* theWrappedObject, const QHostAddress& groupAddress); + bool joinMulticastGroup(QUdpSocket* theWrappedObject, const QHostAddress& groupAddress, const QNetworkInterface& iface); + bool leaveMulticastGroup(QUdpSocket* theWrappedObject, const QHostAddress& groupAddress); + bool leaveMulticastGroup(QUdpSocket* theWrappedObject, const QHostAddress& groupAddress, const QNetworkInterface& iface); + QNetworkInterface multicastInterface(QUdpSocket* theWrappedObject) const; + qint64 pendingDatagramSize(QUdpSocket* theWrappedObject) const; + qint64 readDatagram(QUdpSocket* theWrappedObject, char* data, qint64 maxlen, QHostAddress* host = 0, unsigned short* port = 0); + void setMulticastInterface(QUdpSocket* theWrappedObject, const QNetworkInterface& iface); + qint64 writeDatagram(QUdpSocket* theWrappedObject, const QByteArray& datagram, const QHostAddress& host, unsigned short port); +}; + + diff --git a/generated_cpp_50/com_trolltech_qt_network/com_trolltech_qt_network_init.cpp b/generated_cpp_50/com_trolltech_qt_network/com_trolltech_qt_network_init.cpp new file mode 100644 index 00000000..b5660311 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_network/com_trolltech_qt_network_init.cpp @@ -0,0 +1,37 @@ +#include +#include "com_trolltech_qt_network0.h" + + +void PythonQt_init_QtNetwork(PyObject* module) { +PythonQt::priv()->registerClass(&QAbstractNetworkCache::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QAbstractSocket::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QAuthenticator", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QHostAddress", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QHostInfo", "", "QtNetwork", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QIPv6Address", "", "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QLocalServer::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QLocalSocket::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QNetworkAccessManager::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QNetworkAddressEntry", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QNetworkCacheMetaData", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QNetworkCookie", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerClass(&QNetworkCookieJar::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QNetworkDiskCache::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QNetworkInterface", "", "QtNetwork", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QNetworkProxy", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QNetworkProxyFactory", "", "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QNetworkProxyQuery", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerClass(&QNetworkReply::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QNetworkRequest", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QSsl", "", "QtNetwork", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QSslCertificate", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QSslCipher", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QSslConfiguration", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QSslError", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QSslKey", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerClass(&QSslSocket::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QTcpServer::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QTcpSocket::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QUdpSocket::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); + +} diff --git a/generated_cpp_50/com_trolltech_qt_opengl/com_trolltech_qt_opengl.pri b/generated_cpp_50/com_trolltech_qt_opengl/com_trolltech_qt_opengl.pri new file mode 100644 index 00000000..9ef686c4 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_opengl/com_trolltech_qt_opengl.pri @@ -0,0 +1,6 @@ +HEADERS += \ + $$PWD/com_trolltech_qt_opengl0.h \ + +SOURCES += \ + $$PWD/com_trolltech_qt_opengl0.cpp \ + $$PWD/com_trolltech_qt_opengl_init.cpp diff --git a/generated_cpp_50/com_trolltech_qt_opengl/com_trolltech_qt_opengl0.cpp b/generated_cpp_50/com_trolltech_qt_opengl/com_trolltech_qt_opengl0.cpp new file mode 100644 index 00000000..0dca1921 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_opengl/com_trolltech_qt_opengl0.cpp @@ -0,0 +1,2931 @@ +#include "com_trolltech_qt_opengl0.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QGLBuffer* PythonQtWrapper_QGLBuffer::new_QGLBuffer() +{ +return new QGLBuffer(); } + +QGLBuffer* PythonQtWrapper_QGLBuffer::new_QGLBuffer(QGLBuffer::Type type) +{ +return new QGLBuffer(type); } + +QGLBuffer* PythonQtWrapper_QGLBuffer::new_QGLBuffer(const QGLBuffer& other) +{ +return new QGLBuffer(other); } + +void PythonQtWrapper_QGLBuffer::allocate(QGLBuffer* theWrappedObject, const void* data, int count) +{ + ( theWrappedObject->allocate(data, count)); +} + +void PythonQtWrapper_QGLBuffer::allocate(QGLBuffer* theWrappedObject, int count) +{ + ( theWrappedObject->allocate(count)); +} + +bool PythonQtWrapper_QGLBuffer::bind(QGLBuffer* theWrappedObject) +{ + return ( theWrappedObject->bind()); +} + +bool PythonQtWrapper_QGLBuffer::create(QGLBuffer* theWrappedObject) +{ + return ( theWrappedObject->create()); +} + +void PythonQtWrapper_QGLBuffer::destroy(QGLBuffer* theWrappedObject) +{ + ( theWrappedObject->destroy()); +} + +bool PythonQtWrapper_QGLBuffer::isCreated(QGLBuffer* theWrappedObject) const +{ + return ( theWrappedObject->isCreated()); +} + +void* PythonQtWrapper_QGLBuffer::map(QGLBuffer* theWrappedObject, QGLBuffer::Access access) +{ + return ( theWrappedObject->map(access)); +} + +QGLBuffer* PythonQtWrapper_QGLBuffer::operator_assign(QGLBuffer* theWrappedObject, const QGLBuffer& other) +{ + return &( (*theWrappedObject)= other); +} + +bool PythonQtWrapper_QGLBuffer::read(QGLBuffer* theWrappedObject, int offset, void* data, int count) +{ + return ( theWrappedObject->read(offset, data, count)); +} + +void PythonQtWrapper_QGLBuffer::release(QGLBuffer* theWrappedObject) +{ + ( theWrappedObject->release()); +} + +void PythonQtWrapper_QGLBuffer::static_QGLBuffer_release(QGLBuffer::Type type) +{ + (QGLBuffer::release(type)); +} + +void PythonQtWrapper_QGLBuffer::setUsagePattern(QGLBuffer* theWrappedObject, QGLBuffer::UsagePattern value) +{ + ( theWrappedObject->setUsagePattern(value)); +} + +int PythonQtWrapper_QGLBuffer::size(QGLBuffer* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +QGLBuffer::Type PythonQtWrapper_QGLBuffer::type(QGLBuffer* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + +bool PythonQtWrapper_QGLBuffer::unmap(QGLBuffer* theWrappedObject) +{ + return ( theWrappedObject->unmap()); +} + +QGLBuffer::UsagePattern PythonQtWrapper_QGLBuffer::usagePattern(QGLBuffer* theWrappedObject) const +{ + return ( theWrappedObject->usagePattern()); +} + +void PythonQtWrapper_QGLBuffer::write(QGLBuffer* theWrappedObject, int offset, const void* data, int count) +{ + ( theWrappedObject->write(offset, data, count)); +} + + + +PythonQtShell_QGLColormap::~PythonQtShell_QGLColormap() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QGLColormap* PythonQtWrapper_QGLColormap::new_QGLColormap() +{ +return new PythonQtShell_QGLColormap(); } + +QGLColormap* PythonQtWrapper_QGLColormap::new_QGLColormap(const QGLColormap& arg__1) +{ +return new PythonQtShell_QGLColormap(arg__1); } + +QColor PythonQtWrapper_QGLColormap::entryColor(QGLColormap* theWrappedObject, int idx) const +{ + return ( theWrappedObject->entryColor(idx)); +} + +unsigned int PythonQtWrapper_QGLColormap::entryRgb(QGLColormap* theWrappedObject, int idx) const +{ + return ( theWrappedObject->entryRgb(idx)); +} + +int PythonQtWrapper_QGLColormap::find(QGLColormap* theWrappedObject, unsigned int color) const +{ + return ( theWrappedObject->find(color)); +} + +int PythonQtWrapper_QGLColormap::findNearest(QGLColormap* theWrappedObject, unsigned int color) const +{ + return ( theWrappedObject->findNearest(color)); +} + +bool PythonQtWrapper_QGLColormap::isEmpty(QGLColormap* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +void PythonQtWrapper_QGLColormap::setEntries(QGLColormap* theWrappedObject, int count, const unsigned int* colors, int base) +{ + ( theWrappedObject->setEntries(count, colors, base)); +} + +void PythonQtWrapper_QGLColormap::setEntry(QGLColormap* theWrappedObject, int idx, const QColor& color) +{ + ( theWrappedObject->setEntry(idx, color)); +} + +void PythonQtWrapper_QGLColormap::setEntry(QGLColormap* theWrappedObject, int idx, unsigned int color) +{ + ( theWrappedObject->setEntry(idx, color)); +} + +int PythonQtWrapper_QGLColormap::size(QGLColormap* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + + + +PythonQtShell_QGLContext::~PythonQtShell_QGLContext() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QGLContext::chooseContext(const QGLContext* shareContext) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "chooseContext"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGLContext*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&shareContext}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("chooseContext", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLContext::chooseContext(shareContext); +} +bool PythonQtShell_QGLContext::create(const QGLContext* shareContext) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "create"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QGLContext*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&shareContext}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("create", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLContext::create(shareContext); +} +void PythonQtShell_QGLContext::doneCurrent() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doneCurrent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLContext::doneCurrent(); +} +void PythonQtShell_QGLContext::makeCurrent() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "makeCurrent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLContext::makeCurrent(); +} +void PythonQtShell_QGLContext::swapBuffers() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "swapBuffers"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLContext::swapBuffers(); +} +QGLContext* PythonQtWrapper_QGLContext::new_QGLContext(const QGLFormat& format) +{ +return new PythonQtShell_QGLContext(format); } + +QGLContext* PythonQtWrapper_QGLContext::new_QGLContext(const QGLFormat& format, QPaintDevice* device) +{ +return new PythonQtShell_QGLContext(format, device); } + +bool PythonQtWrapper_QGLContext::static_QGLContext_areSharing(const QGLContext* context1, const QGLContext* context2) +{ + return (QGLContext::areSharing(context1, context2)); +} + +bool PythonQtWrapper_QGLContext::chooseContext(QGLContext* theWrappedObject, const QGLContext* shareContext) +{ + return ( ((PythonQtPublicPromoter_QGLContext*)theWrappedObject)->promoted_chooseContext(shareContext)); +} + +bool PythonQtWrapper_QGLContext::create(QGLContext* theWrappedObject, const QGLContext* shareContext) +{ + return ( ((PythonQtPublicPromoter_QGLContext*)theWrappedObject)->promoted_create(shareContext)); +} + +const QGLContext* PythonQtWrapper_QGLContext::static_QGLContext_currentContext() +{ + return (QGLContext::currentContext()); +} + +QPaintDevice* PythonQtWrapper_QGLContext::device(QGLContext* theWrappedObject) const +{ + return ( theWrappedObject->device()); +} + +void PythonQtWrapper_QGLContext::doneCurrent(QGLContext* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGLContext*)theWrappedObject)->promoted_doneCurrent()); +} + +QGLFormat PythonQtWrapper_QGLContext::format(QGLContext* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +QGLFunctions* PythonQtWrapper_QGLContext::functions(QGLContext* theWrappedObject) const +{ + return ( theWrappedObject->functions()); +} + +bool PythonQtWrapper_QGLContext::isSharing(QGLContext* theWrappedObject) const +{ + return ( theWrappedObject->isSharing()); +} + +bool PythonQtWrapper_QGLContext::isValid(QGLContext* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +void PythonQtWrapper_QGLContext::makeCurrent(QGLContext* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGLContext*)theWrappedObject)->promoted_makeCurrent()); +} + +void PythonQtWrapper_QGLContext::moveToThread(QGLContext* theWrappedObject, QThread* thread) +{ + ( theWrappedObject->moveToThread(thread)); +} + +QColor PythonQtWrapper_QGLContext::overlayTransparentColor(QGLContext* theWrappedObject) const +{ + return ( theWrappedObject->overlayTransparentColor()); +} + +QGLFormat PythonQtWrapper_QGLContext::requestedFormat(QGLContext* theWrappedObject) const +{ + return ( theWrappedObject->requestedFormat()); +} + +void PythonQtWrapper_QGLContext::reset(QGLContext* theWrappedObject) +{ + ( theWrappedObject->reset()); +} + +void PythonQtWrapper_QGLContext::setFormat(QGLContext* theWrappedObject, const QGLFormat& format) +{ + ( theWrappedObject->setFormat(format)); +} + +void PythonQtWrapper_QGLContext::static_QGLContext_setTextureCacheLimit(int size) +{ + (QGLContext::setTextureCacheLimit(size)); +} + +void PythonQtWrapper_QGLContext::swapBuffers(QGLContext* theWrappedObject) const +{ + ( ((PythonQtPublicPromoter_QGLContext*)theWrappedObject)->promoted_swapBuffers()); +} + +int PythonQtWrapper_QGLContext::static_QGLContext_textureCacheLimit() +{ + return (QGLContext::textureCacheLimit()); +} + + + +PythonQtShell_QGLFramebufferObject::~PythonQtShell_QGLFramebufferObject() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +int PythonQtShell_QGLFramebufferObject::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLFramebufferObject::devType(); +} +void PythonQtShell_QGLFramebufferObject::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLFramebufferObject::initPainter(painter); +} +int PythonQtShell_QGLFramebufferObject::metric(QPaintDevice::PaintDeviceMetric metric) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&metric}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLFramebufferObject::metric(metric); +} +QPaintEngine* PythonQtShell_QGLFramebufferObject::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLFramebufferObject::paintEngine(); +} +QPaintDevice* PythonQtShell_QGLFramebufferObject::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLFramebufferObject::redirected(offset); +} +QPainter* PythonQtShell_QGLFramebufferObject::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLFramebufferObject::sharedPainter(); +} +QGLFramebufferObject* PythonQtWrapper_QGLFramebufferObject::new_QGLFramebufferObject(const QSize& size, const QGLFramebufferObjectFormat& format) +{ +return new PythonQtShell_QGLFramebufferObject(size, format); } + +QGLFramebufferObject* PythonQtWrapper_QGLFramebufferObject::new_QGLFramebufferObject(int width, int height, const QGLFramebufferObjectFormat& format) +{ +return new PythonQtShell_QGLFramebufferObject(width, height, format); } + +QGLFramebufferObject::Attachment PythonQtWrapper_QGLFramebufferObject::attachment(QGLFramebufferObject* theWrappedObject) const +{ + return ( theWrappedObject->attachment()); +} + +bool PythonQtWrapper_QGLFramebufferObject::bind(QGLFramebufferObject* theWrappedObject) +{ + return ( theWrappedObject->bind()); +} + +bool PythonQtWrapper_QGLFramebufferObject::static_QGLFramebufferObject_bindDefault() +{ + return (QGLFramebufferObject::bindDefault()); +} + +int PythonQtWrapper_QGLFramebufferObject::devType(QGLFramebufferObject* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGLFramebufferObject*)theWrappedObject)->promoted_devType()); +} + +QGLFramebufferObjectFormat PythonQtWrapper_QGLFramebufferObject::format(QGLFramebufferObject* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +bool PythonQtWrapper_QGLFramebufferObject::static_QGLFramebufferObject_hasOpenGLFramebufferBlit() +{ + return (QGLFramebufferObject::hasOpenGLFramebufferBlit()); +} + +bool PythonQtWrapper_QGLFramebufferObject::static_QGLFramebufferObject_hasOpenGLFramebufferObjects() +{ + return (QGLFramebufferObject::hasOpenGLFramebufferObjects()); +} + +bool PythonQtWrapper_QGLFramebufferObject::isBound(QGLFramebufferObject* theWrappedObject) const +{ + return ( theWrappedObject->isBound()); +} + +bool PythonQtWrapper_QGLFramebufferObject::isValid(QGLFramebufferObject* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +int PythonQtWrapper_QGLFramebufferObject::metric(QGLFramebufferObject* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const +{ + return ( ((PythonQtPublicPromoter_QGLFramebufferObject*)theWrappedObject)->promoted_metric(metric)); +} + +QPaintEngine* PythonQtWrapper_QGLFramebufferObject::paintEngine(QGLFramebufferObject* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGLFramebufferObject*)theWrappedObject)->promoted_paintEngine()); +} + +bool PythonQtWrapper_QGLFramebufferObject::release(QGLFramebufferObject* theWrappedObject) +{ + return ( theWrappedObject->release()); +} + +QSize PythonQtWrapper_QGLFramebufferObject::size(QGLFramebufferObject* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +QImage PythonQtWrapper_QGLFramebufferObject::toImage(QGLFramebufferObject* theWrappedObject) const +{ + return ( theWrappedObject->toImage()); +} + + + +QGLFramebufferObjectFormat* PythonQtWrapper_QGLFramebufferObjectFormat::new_QGLFramebufferObjectFormat() +{ +return new QGLFramebufferObjectFormat(); } + +QGLFramebufferObjectFormat* PythonQtWrapper_QGLFramebufferObjectFormat::new_QGLFramebufferObjectFormat(const QGLFramebufferObjectFormat& other) +{ +return new QGLFramebufferObjectFormat(other); } + +QGLFramebufferObject::Attachment PythonQtWrapper_QGLFramebufferObjectFormat::attachment(QGLFramebufferObjectFormat* theWrappedObject) const +{ + return ( theWrappedObject->attachment()); +} + +bool PythonQtWrapper_QGLFramebufferObjectFormat::mipmap(QGLFramebufferObjectFormat* theWrappedObject) const +{ + return ( theWrappedObject->mipmap()); +} + +bool PythonQtWrapper_QGLFramebufferObjectFormat::__ne__(QGLFramebufferObjectFormat* theWrappedObject, const QGLFramebufferObjectFormat& other) const +{ + return ( (*theWrappedObject)!= other); +} + +QGLFramebufferObjectFormat* PythonQtWrapper_QGLFramebufferObjectFormat::operator_assign(QGLFramebufferObjectFormat* theWrappedObject, const QGLFramebufferObjectFormat& other) +{ + return &( (*theWrappedObject)= other); +} + +bool PythonQtWrapper_QGLFramebufferObjectFormat::__eq__(QGLFramebufferObjectFormat* theWrappedObject, const QGLFramebufferObjectFormat& other) const +{ + return ( (*theWrappedObject)== other); +} + +int PythonQtWrapper_QGLFramebufferObjectFormat::samples(QGLFramebufferObjectFormat* theWrappedObject) const +{ + return ( theWrappedObject->samples()); +} + +void PythonQtWrapper_QGLFramebufferObjectFormat::setAttachment(QGLFramebufferObjectFormat* theWrappedObject, QGLFramebufferObject::Attachment attachment) +{ + ( theWrappedObject->setAttachment(attachment)); +} + +void PythonQtWrapper_QGLFramebufferObjectFormat::setMipmap(QGLFramebufferObjectFormat* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setMipmap(enabled)); +} + +void PythonQtWrapper_QGLFramebufferObjectFormat::setSamples(QGLFramebufferObjectFormat* theWrappedObject, int samples) +{ + ( theWrappedObject->setSamples(samples)); +} + + + +QGLFunctions* PythonQtWrapper_QGLFunctions::new_QGLFunctions() +{ +return new QGLFunctions(); } + +QGLFunctions* PythonQtWrapper_QGLFunctions::new_QGLFunctions(const QGLContext* context) +{ +return new QGLFunctions(context); } + +void PythonQtWrapper_QGLFunctions::glReleaseShaderCompiler(QGLFunctions* theWrappedObject) +{ + ( theWrappedObject->glReleaseShaderCompiler()); +} + +bool PythonQtWrapper_QGLFunctions::hasOpenGLFeature(QGLFunctions* theWrappedObject, QGLFunctions::OpenGLFeature feature) const +{ + return ( theWrappedObject->hasOpenGLFeature(feature)); +} + +void PythonQtWrapper_QGLFunctions::initializeGLFunctions(QGLFunctions* theWrappedObject, const QGLContext* context) +{ + ( theWrappedObject->initializeGLFunctions(context)); +} + + + +PythonQtShell_QGLPixelBuffer::~PythonQtShell_QGLPixelBuffer() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +int PythonQtShell_QGLPixelBuffer::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLPixelBuffer::devType(); +} +void PythonQtShell_QGLPixelBuffer::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLPixelBuffer::initPainter(painter); +} +int PythonQtShell_QGLPixelBuffer::metric(QPaintDevice::PaintDeviceMetric metric) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&metric}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLPixelBuffer::metric(metric); +} +QPaintEngine* PythonQtShell_QGLPixelBuffer::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLPixelBuffer::paintEngine(); +} +QPaintDevice* PythonQtShell_QGLPixelBuffer::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLPixelBuffer::redirected(offset); +} +QPainter* PythonQtShell_QGLPixelBuffer::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLPixelBuffer::sharedPainter(); +} +QGLPixelBuffer* PythonQtWrapper_QGLPixelBuffer::new_QGLPixelBuffer(const QSize& size, const QGLFormat& format, QGLWidget* shareWidget) +{ +return new PythonQtShell_QGLPixelBuffer(size, format, shareWidget); } + +QGLPixelBuffer* PythonQtWrapper_QGLPixelBuffer::new_QGLPixelBuffer(int width, int height, const QGLFormat& format, QGLWidget* shareWidget) +{ +return new PythonQtShell_QGLPixelBuffer(width, height, format, shareWidget); } + +QGLContext* PythonQtWrapper_QGLPixelBuffer::context(QGLPixelBuffer* theWrappedObject) const +{ + return ( theWrappedObject->context()); +} + +int PythonQtWrapper_QGLPixelBuffer::devType(QGLPixelBuffer* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGLPixelBuffer*)theWrappedObject)->promoted_devType()); +} + +bool PythonQtWrapper_QGLPixelBuffer::doneCurrent(QGLPixelBuffer* theWrappedObject) +{ + return ( theWrappedObject->doneCurrent()); +} + +QGLFormat PythonQtWrapper_QGLPixelBuffer::format(QGLPixelBuffer* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +Qt::HANDLE PythonQtWrapper_QGLPixelBuffer::handle(QGLPixelBuffer* theWrappedObject) const +{ + return ( theWrappedObject->handle()); +} + +bool PythonQtWrapper_QGLPixelBuffer::static_QGLPixelBuffer_hasOpenGLPbuffers() +{ + return (QGLPixelBuffer::hasOpenGLPbuffers()); +} + +bool PythonQtWrapper_QGLPixelBuffer::isValid(QGLPixelBuffer* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +bool PythonQtWrapper_QGLPixelBuffer::makeCurrent(QGLPixelBuffer* theWrappedObject) +{ + return ( theWrappedObject->makeCurrent()); +} + +int PythonQtWrapper_QGLPixelBuffer::metric(QGLPixelBuffer* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const +{ + return ( ((PythonQtPublicPromoter_QGLPixelBuffer*)theWrappedObject)->promoted_metric(metric)); +} + +QPaintEngine* PythonQtWrapper_QGLPixelBuffer::paintEngine(QGLPixelBuffer* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGLPixelBuffer*)theWrappedObject)->promoted_paintEngine()); +} + +void PythonQtWrapper_QGLPixelBuffer::releaseFromDynamicTexture(QGLPixelBuffer* theWrappedObject) +{ + ( theWrappedObject->releaseFromDynamicTexture()); +} + +QSize PythonQtWrapper_QGLPixelBuffer::size(QGLPixelBuffer* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +QImage PythonQtWrapper_QGLPixelBuffer::toImage(QGLPixelBuffer* theWrappedObject) const +{ + return ( theWrappedObject->toImage()); +} + + + +PythonQtShell_QGLShader::~PythonQtShell_QGLShader() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGLShader::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLShader::childEvent(arg__1); +} +void PythonQtShell_QGLShader::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLShader::customEvent(arg__1); +} +bool PythonQtShell_QGLShader::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLShader::event(arg__1); +} +bool PythonQtShell_QGLShader::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLShader::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QGLShader::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLShader::timerEvent(arg__1); +} +QGLShader* PythonQtWrapper_QGLShader::new_QGLShader(QGLShader::ShaderType type, QObject* parent) +{ +return new PythonQtShell_QGLShader(type, parent); } + +QGLShader* PythonQtWrapper_QGLShader::new_QGLShader(QGLShader::ShaderType type, const QGLContext* context, QObject* parent) +{ +return new PythonQtShell_QGLShader(type, context, parent); } + +bool PythonQtWrapper_QGLShader::compileSourceCode(QGLShader* theWrappedObject, const QByteArray& source) +{ + return ( theWrappedObject->compileSourceCode(source)); +} + +bool PythonQtWrapper_QGLShader::compileSourceCode(QGLShader* theWrappedObject, const QString& source) +{ + return ( theWrappedObject->compileSourceCode(source)); +} + +bool PythonQtWrapper_QGLShader::compileSourceCode(QGLShader* theWrappedObject, const char* source) +{ + return ( theWrappedObject->compileSourceCode(source)); +} + +bool PythonQtWrapper_QGLShader::compileSourceFile(QGLShader* theWrappedObject, const QString& fileName) +{ + return ( theWrappedObject->compileSourceFile(fileName)); +} + +bool PythonQtWrapper_QGLShader::static_QGLShader_hasOpenGLShaders(QGLShader::ShaderType type, const QGLContext* context) +{ + return (QGLShader::hasOpenGLShaders(type, context)); +} + +bool PythonQtWrapper_QGLShader::isCompiled(QGLShader* theWrappedObject) const +{ + return ( theWrappedObject->isCompiled()); +} + +QString PythonQtWrapper_QGLShader::log(QGLShader* theWrappedObject) const +{ + return ( theWrappedObject->log()); +} + +QGLShader::ShaderType PythonQtWrapper_QGLShader::shaderType(QGLShader* theWrappedObject) const +{ + return ( theWrappedObject->shaderType()); +} + +QByteArray PythonQtWrapper_QGLShader::sourceCode(QGLShader* theWrappedObject) const +{ + return ( theWrappedObject->sourceCode()); +} + + + +PythonQtShell_QGLShaderProgram::~PythonQtShell_QGLShaderProgram() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGLShaderProgram::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLShaderProgram::childEvent(arg__1); +} +void PythonQtShell_QGLShaderProgram::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLShaderProgram::customEvent(arg__1); +} +bool PythonQtShell_QGLShaderProgram::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLShaderProgram::event(arg__1); +} +bool PythonQtShell_QGLShaderProgram::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLShaderProgram::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QGLShaderProgram::link() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "link"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("link", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLShaderProgram::link(); +} +void PythonQtShell_QGLShaderProgram::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLShaderProgram::timerEvent(arg__1); +} +QGLShaderProgram* PythonQtWrapper_QGLShaderProgram::new_QGLShaderProgram(QObject* parent) +{ +return new PythonQtShell_QGLShaderProgram(parent); } + +QGLShaderProgram* PythonQtWrapper_QGLShaderProgram::new_QGLShaderProgram(const QGLContext* context, QObject* parent) +{ +return new PythonQtShell_QGLShaderProgram(context, parent); } + +bool PythonQtWrapper_QGLShaderProgram::addShader(QGLShaderProgram* theWrappedObject, QGLShader* shader) +{ + return ( theWrappedObject->addShader(shader)); +} + +bool PythonQtWrapper_QGLShaderProgram::addShaderFromSourceCode(QGLShaderProgram* theWrappedObject, QGLShader::ShaderType type, const QByteArray& source) +{ + return ( theWrappedObject->addShaderFromSourceCode(type, source)); +} + +bool PythonQtWrapper_QGLShaderProgram::addShaderFromSourceCode(QGLShaderProgram* theWrappedObject, QGLShader::ShaderType type, const QString& source) +{ + return ( theWrappedObject->addShaderFromSourceCode(type, source)); +} + +bool PythonQtWrapper_QGLShaderProgram::addShaderFromSourceCode(QGLShaderProgram* theWrappedObject, QGLShader::ShaderType type, const char* source) +{ + return ( theWrappedObject->addShaderFromSourceCode(type, source)); +} + +bool PythonQtWrapper_QGLShaderProgram::addShaderFromSourceFile(QGLShaderProgram* theWrappedObject, QGLShader::ShaderType type, const QString& fileName) +{ + return ( theWrappedObject->addShaderFromSourceFile(type, fileName)); +} + +int PythonQtWrapper_QGLShaderProgram::attributeLocation(QGLShaderProgram* theWrappedObject, const QByteArray& name) const +{ + return ( theWrappedObject->attributeLocation(name)); +} + +int PythonQtWrapper_QGLShaderProgram::attributeLocation(QGLShaderProgram* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->attributeLocation(name)); +} + +int PythonQtWrapper_QGLShaderProgram::attributeLocation(QGLShaderProgram* theWrappedObject, const char* name) const +{ + return ( theWrappedObject->attributeLocation(name)); +} + +bool PythonQtWrapper_QGLShaderProgram::bind(QGLShaderProgram* theWrappedObject) +{ + return ( theWrappedObject->bind()); +} + +void PythonQtWrapper_QGLShaderProgram::bindAttributeLocation(QGLShaderProgram* theWrappedObject, const QByteArray& name, int location) +{ + ( theWrappedObject->bindAttributeLocation(name, location)); +} + +void PythonQtWrapper_QGLShaderProgram::bindAttributeLocation(QGLShaderProgram* theWrappedObject, const QString& name, int location) +{ + ( theWrappedObject->bindAttributeLocation(name, location)); +} + +void PythonQtWrapper_QGLShaderProgram::bindAttributeLocation(QGLShaderProgram* theWrappedObject, const char* name, int location) +{ + ( theWrappedObject->bindAttributeLocation(name, location)); +} + +void PythonQtWrapper_QGLShaderProgram::disableAttributeArray(QGLShaderProgram* theWrappedObject, const char* name) +{ + ( theWrappedObject->disableAttributeArray(name)); +} + +void PythonQtWrapper_QGLShaderProgram::disableAttributeArray(QGLShaderProgram* theWrappedObject, int location) +{ + ( theWrappedObject->disableAttributeArray(location)); +} + +void PythonQtWrapper_QGLShaderProgram::enableAttributeArray(QGLShaderProgram* theWrappedObject, const char* name) +{ + ( theWrappedObject->enableAttributeArray(name)); +} + +void PythonQtWrapper_QGLShaderProgram::enableAttributeArray(QGLShaderProgram* theWrappedObject, int location) +{ + ( theWrappedObject->enableAttributeArray(location)); +} + +int PythonQtWrapper_QGLShaderProgram::geometryOutputVertexCount(QGLShaderProgram* theWrappedObject) const +{ + return ( theWrappedObject->geometryOutputVertexCount()); +} + +bool PythonQtWrapper_QGLShaderProgram::static_QGLShaderProgram_hasOpenGLShaderPrograms(const QGLContext* context) +{ + return (QGLShaderProgram::hasOpenGLShaderPrograms(context)); +} + +bool PythonQtWrapper_QGLShaderProgram::isLinked(QGLShaderProgram* theWrappedObject) const +{ + return ( theWrappedObject->isLinked()); +} + +bool PythonQtWrapper_QGLShaderProgram::link(QGLShaderProgram* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QGLShaderProgram*)theWrappedObject)->promoted_link()); +} + +QString PythonQtWrapper_QGLShaderProgram::log(QGLShaderProgram* theWrappedObject) const +{ + return ( theWrappedObject->log()); +} + +int PythonQtWrapper_QGLShaderProgram::maxGeometryOutputVertices(QGLShaderProgram* theWrappedObject) const +{ + return ( theWrappedObject->maxGeometryOutputVertices()); +} + +void PythonQtWrapper_QGLShaderProgram::release(QGLShaderProgram* theWrappedObject) +{ + ( theWrappedObject->release()); +} + +void PythonQtWrapper_QGLShaderProgram::removeAllShaders(QGLShaderProgram* theWrappedObject) +{ + ( theWrappedObject->removeAllShaders()); +} + +void PythonQtWrapper_QGLShaderProgram::removeShader(QGLShaderProgram* theWrappedObject, QGLShader* shader) +{ + ( theWrappedObject->removeShader(shader)); +} + +void PythonQtWrapper_QGLShaderProgram::setAttributeArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector2D* values, int stride) +{ + ( theWrappedObject->setAttributeArray(name, values, stride)); +} + +void PythonQtWrapper_QGLShaderProgram::setAttributeArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector3D* values, int stride) +{ + ( theWrappedObject->setAttributeArray(name, values, stride)); +} + +void PythonQtWrapper_QGLShaderProgram::setAttributeArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector4D* values, int stride) +{ + ( theWrappedObject->setAttributeArray(name, values, stride)); +} + +void PythonQtWrapper_QGLShaderProgram::setAttributeArray(QGLShaderProgram* theWrappedObject, int location, const QVector2D* values, int stride) +{ + ( theWrappedObject->setAttributeArray(location, values, stride)); +} + +void PythonQtWrapper_QGLShaderProgram::setAttributeArray(QGLShaderProgram* theWrappedObject, int location, const QVector3D* values, int stride) +{ + ( theWrappedObject->setAttributeArray(location, values, stride)); +} + +void PythonQtWrapper_QGLShaderProgram::setAttributeArray(QGLShaderProgram* theWrappedObject, int location, const QVector4D* values, int stride) +{ + ( theWrappedObject->setAttributeArray(location, values, stride)); +} + +void PythonQtWrapper_QGLShaderProgram::setAttributeValue(QGLShaderProgram* theWrappedObject, const char* name, const QColor& value) +{ + ( theWrappedObject->setAttributeValue(name, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setAttributeValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector2D& value) +{ + ( theWrappedObject->setAttributeValue(name, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setAttributeValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector3D& value) +{ + ( theWrappedObject->setAttributeValue(name, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setAttributeValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector4D& value) +{ + ( theWrappedObject->setAttributeValue(name, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setAttributeValue(QGLShaderProgram* theWrappedObject, int location, const QColor& value) +{ + ( theWrappedObject->setAttributeValue(location, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setAttributeValue(QGLShaderProgram* theWrappedObject, int location, const QVector2D& value) +{ + ( theWrappedObject->setAttributeValue(location, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setAttributeValue(QGLShaderProgram* theWrappedObject, int location, const QVector3D& value) +{ + ( theWrappedObject->setAttributeValue(location, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setAttributeValue(QGLShaderProgram* theWrappedObject, int location, const QVector4D& value) +{ + ( theWrappedObject->setAttributeValue(location, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setGeometryOutputVertexCount(QGLShaderProgram* theWrappedObject, int count) +{ + ( theWrappedObject->setGeometryOutputVertexCount(count)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QColor& color) +{ + ( theWrappedObject->setUniformValue(name, color)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QMatrix3x3& value) +{ + ( theWrappedObject->setUniformValue(name, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QMatrix4x4& value) +{ + ( theWrappedObject->setUniformValue(name, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QPoint& point) +{ + ( theWrappedObject->setUniformValue(name, point)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QPointF& point) +{ + ( theWrappedObject->setUniformValue(name, point)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QSize& size) +{ + ( theWrappedObject->setUniformValue(name, size)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QSizeF& size) +{ + ( theWrappedObject->setUniformValue(name, size)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QTransform& value) +{ + ( theWrappedObject->setUniformValue(name, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector2D& value) +{ + ( theWrappedObject->setUniformValue(name, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector3D& value) +{ + ( theWrappedObject->setUniformValue(name, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector4D& value) +{ + ( theWrappedObject->setUniformValue(name, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QColor& color) +{ + ( theWrappedObject->setUniformValue(location, color)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QMatrix3x3& value) +{ + ( theWrappedObject->setUniformValue(location, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QMatrix4x4& value) +{ + ( theWrappedObject->setUniformValue(location, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QPoint& point) +{ + ( theWrappedObject->setUniformValue(location, point)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QPointF& point) +{ + ( theWrappedObject->setUniformValue(location, point)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QSize& size) +{ + ( theWrappedObject->setUniformValue(location, size)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QSizeF& size) +{ + ( theWrappedObject->setUniformValue(location, size)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QTransform& value) +{ + ( theWrappedObject->setUniformValue(location, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QVector2D& value) +{ + ( theWrappedObject->setUniformValue(location, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QVector3D& value) +{ + ( theWrappedObject->setUniformValue(location, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QVector4D& value) +{ + ( theWrappedObject->setUniformValue(location, value)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValueArray(QGLShaderProgram* theWrappedObject, const char* name, const QMatrix3x3* values, int count) +{ + ( theWrappedObject->setUniformValueArray(name, values, count)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValueArray(QGLShaderProgram* theWrappedObject, const char* name, const QMatrix4x4* values, int count) +{ + ( theWrappedObject->setUniformValueArray(name, values, count)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValueArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector2D* values, int count) +{ + ( theWrappedObject->setUniformValueArray(name, values, count)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValueArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector3D* values, int count) +{ + ( theWrappedObject->setUniformValueArray(name, values, count)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValueArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector4D* values, int count) +{ + ( theWrappedObject->setUniformValueArray(name, values, count)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValueArray(QGLShaderProgram* theWrappedObject, int location, const QMatrix3x3* values, int count) +{ + ( theWrappedObject->setUniformValueArray(location, values, count)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValueArray(QGLShaderProgram* theWrappedObject, int location, const QMatrix4x4* values, int count) +{ + ( theWrappedObject->setUniformValueArray(location, values, count)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValueArray(QGLShaderProgram* theWrappedObject, int location, const QVector2D* values, int count) +{ + ( theWrappedObject->setUniformValueArray(location, values, count)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValueArray(QGLShaderProgram* theWrappedObject, int location, const QVector3D* values, int count) +{ + ( theWrappedObject->setUniformValueArray(location, values, count)); +} + +void PythonQtWrapper_QGLShaderProgram::setUniformValueArray(QGLShaderProgram* theWrappedObject, int location, const QVector4D* values, int count) +{ + ( theWrappedObject->setUniformValueArray(location, values, count)); +} + +QList PythonQtWrapper_QGLShaderProgram::shaders(QGLShaderProgram* theWrappedObject) const +{ + return ( theWrappedObject->shaders()); +} + +int PythonQtWrapper_QGLShaderProgram::uniformLocation(QGLShaderProgram* theWrappedObject, const QByteArray& name) const +{ + return ( theWrappedObject->uniformLocation(name)); +} + +int PythonQtWrapper_QGLShaderProgram::uniformLocation(QGLShaderProgram* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->uniformLocation(name)); +} + +int PythonQtWrapper_QGLShaderProgram::uniformLocation(QGLShaderProgram* theWrappedObject, const char* name) const +{ + return ( theWrappedObject->uniformLocation(name)); +} + + + +PythonQtShell_QGLWidget::~PythonQtShell_QGLWidget() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGLWidget::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::actionEvent(arg__1); +} +void PythonQtShell_QGLWidget::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::changeEvent(arg__1); +} +void PythonQtShell_QGLWidget::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::childEvent(arg__1); +} +void PythonQtShell_QGLWidget::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::closeEvent(arg__1); +} +void PythonQtShell_QGLWidget::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::contextMenuEvent(arg__1); +} +void PythonQtShell_QGLWidget::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::customEvent(arg__1); +} +int PythonQtShell_QGLWidget::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLWidget::devType(); +} +void PythonQtShell_QGLWidget::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::dragEnterEvent(arg__1); +} +void PythonQtShell_QGLWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::dragLeaveEvent(arg__1); +} +void PythonQtShell_QGLWidget::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::dragMoveEvent(arg__1); +} +void PythonQtShell_QGLWidget::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::dropEvent(arg__1); +} +void PythonQtShell_QGLWidget::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::enterEvent(arg__1); +} +bool PythonQtShell_QGLWidget::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLWidget::event(arg__1); +} +bool PythonQtShell_QGLWidget::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLWidget::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QGLWidget::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::focusInEvent(arg__1); +} +bool PythonQtShell_QGLWidget::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLWidget::focusNextPrevChild(next); +} +void PythonQtShell_QGLWidget::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::focusOutEvent(arg__1); +} +void PythonQtShell_QGLWidget::glDraw() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "glDraw"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::glDraw(); +} +void PythonQtShell_QGLWidget::glInit() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "glInit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::glInit(); +} +bool PythonQtShell_QGLWidget::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLWidget::hasHeightForWidth(); +} +int PythonQtShell_QGLWidget::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLWidget::heightForWidth(arg__1); +} +void PythonQtShell_QGLWidget::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::hideEvent(arg__1); +} +void PythonQtShell_QGLWidget::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::initPainter(painter); +} +void PythonQtShell_QGLWidget::initializeGL() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initializeGL"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::initializeGL(); +} +void PythonQtShell_QGLWidget::initializeOverlayGL() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initializeOverlayGL"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::initializeOverlayGL(); +} +void PythonQtShell_QGLWidget::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QGLWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLWidget::inputMethodQuery(arg__1); +} +void PythonQtShell_QGLWidget::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::keyPressEvent(arg__1); +} +void PythonQtShell_QGLWidget::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::keyReleaseEvent(arg__1); +} +void PythonQtShell_QGLWidget::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::leaveEvent(arg__1); +} +int PythonQtShell_QGLWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLWidget::metric(arg__1); +} +QSize PythonQtShell_QGLWidget::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLWidget::minimumSizeHint(); +} +void PythonQtShell_QGLWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QGLWidget::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::mouseMoveEvent(arg__1); +} +void PythonQtShell_QGLWidget::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::mousePressEvent(arg__1); +} +void PythonQtShell_QGLWidget::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QGLWidget::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::moveEvent(arg__1); +} +bool PythonQtShell_QGLWidget::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLWidget::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QGLWidget::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLWidget::paintEngine(); +} +void PythonQtShell_QGLWidget::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::paintEvent(arg__1); +} +void PythonQtShell_QGLWidget::paintGL() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintGL"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::paintGL(); +} +void PythonQtShell_QGLWidget::paintOverlayGL() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintOverlayGL"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::paintOverlayGL(); +} +QPaintDevice* PythonQtShell_QGLWidget::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLWidget::redirected(offset); +} +void PythonQtShell_QGLWidget::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::resizeEvent(arg__1); +} +void PythonQtShell_QGLWidget::resizeGL(int w, int h) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeGL"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&w, (void*)&h}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::resizeGL(w, h); +} +void PythonQtShell_QGLWidget::resizeOverlayGL(int w, int h) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeOverlayGL"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&w, (void*)&h}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::resizeOverlayGL(w, h); +} +QPainter* PythonQtShell_QGLWidget::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLWidget::sharedPainter(); +} +void PythonQtShell_QGLWidget::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::showEvent(arg__1); +} +QSize PythonQtShell_QGLWidget::sizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGLWidget::sizeHint(); +} +void PythonQtShell_QGLWidget::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::tabletEvent(arg__1); +} +void PythonQtShell_QGLWidget::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::timerEvent(arg__1); +} +void PythonQtShell_QGLWidget::updateGL() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGL"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::updateGL(); +} +void PythonQtShell_QGLWidget::updateOverlayGL() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateOverlayGL"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::updateOverlayGL(); +} +void PythonQtShell_QGLWidget::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGLWidget::wheelEvent(arg__1); +} +QGLWidget* PythonQtWrapper_QGLWidget::new_QGLWidget(QGLContext* context, QWidget* parent, const QGLWidget* shareWidget, Qt::WindowFlags f) +{ +return new PythonQtShell_QGLWidget(context, parent, shareWidget, f); } + +QGLWidget* PythonQtWrapper_QGLWidget::new_QGLWidget(QWidget* parent, const QGLWidget* shareWidget, Qt::WindowFlags f) +{ +return new PythonQtShell_QGLWidget(parent, shareWidget, f); } + +QGLWidget* PythonQtWrapper_QGLWidget::new_QGLWidget(const QGLFormat& format, QWidget* parent, const QGLWidget* shareWidget, Qt::WindowFlags f) +{ +return new PythonQtShell_QGLWidget(format, parent, shareWidget, f); } + +const QGLColormap* PythonQtWrapper_QGLWidget::colormap(QGLWidget* theWrappedObject) const +{ + return &( theWrappedObject->colormap()); +} + +QGLContext* PythonQtWrapper_QGLWidget::context(QGLWidget* theWrappedObject) const +{ + return ( theWrappedObject->context()); +} + +QImage PythonQtWrapper_QGLWidget::static_QGLWidget_convertToGLFormat(const QImage& img) +{ + return (QGLWidget::convertToGLFormat(img)); +} + +void PythonQtWrapper_QGLWidget::doneCurrent(QGLWidget* theWrappedObject) +{ + ( theWrappedObject->doneCurrent()); +} + +bool PythonQtWrapper_QGLWidget::doubleBuffer(QGLWidget* theWrappedObject) const +{ + return ( theWrappedObject->doubleBuffer()); +} + +bool PythonQtWrapper_QGLWidget::event(QGLWidget* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QGLWidget*)theWrappedObject)->promoted_event(arg__1)); +} + +QGLFormat PythonQtWrapper_QGLWidget::format(QGLWidget* theWrappedObject) const +{ + return ( theWrappedObject->format()); +} + +void PythonQtWrapper_QGLWidget::glDraw(QGLWidget* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGLWidget*)theWrappedObject)->promoted_glDraw()); +} + +void PythonQtWrapper_QGLWidget::glInit(QGLWidget* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGLWidget*)theWrappedObject)->promoted_glInit()); +} + +QImage PythonQtWrapper_QGLWidget::grabFrameBuffer(QGLWidget* theWrappedObject, bool withAlpha) +{ + return ( theWrappedObject->grabFrameBuffer(withAlpha)); +} + +void PythonQtWrapper_QGLWidget::initializeGL(QGLWidget* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGLWidget*)theWrappedObject)->promoted_initializeGL()); +} + +void PythonQtWrapper_QGLWidget::initializeOverlayGL(QGLWidget* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGLWidget*)theWrappedObject)->promoted_initializeOverlayGL()); +} + +bool PythonQtWrapper_QGLWidget::isSharing(QGLWidget* theWrappedObject) const +{ + return ( theWrappedObject->isSharing()); +} + +bool PythonQtWrapper_QGLWidget::isValid(QGLWidget* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +void PythonQtWrapper_QGLWidget::makeCurrent(QGLWidget* theWrappedObject) +{ + ( theWrappedObject->makeCurrent()); +} + +void PythonQtWrapper_QGLWidget::makeOverlayCurrent(QGLWidget* theWrappedObject) +{ + ( theWrappedObject->makeOverlayCurrent()); +} + +const QGLContext* PythonQtWrapper_QGLWidget::overlayContext(QGLWidget* theWrappedObject) const +{ + return ( theWrappedObject->overlayContext()); +} + +QPaintEngine* PythonQtWrapper_QGLWidget::paintEngine(QGLWidget* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QGLWidget*)theWrappedObject)->promoted_paintEngine()); +} + +void PythonQtWrapper_QGLWidget::paintEvent(QGLWidget* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGLWidget*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +void PythonQtWrapper_QGLWidget::paintGL(QGLWidget* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGLWidget*)theWrappedObject)->promoted_paintGL()); +} + +void PythonQtWrapper_QGLWidget::paintOverlayGL(QGLWidget* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGLWidget*)theWrappedObject)->promoted_paintOverlayGL()); +} + +void PythonQtWrapper_QGLWidget::qglClearColor(QGLWidget* theWrappedObject, const QColor& c) const +{ + ( theWrappedObject->qglClearColor(c)); +} + +void PythonQtWrapper_QGLWidget::qglColor(QGLWidget* theWrappedObject, const QColor& c) const +{ + ( theWrappedObject->qglColor(c)); +} + +QPixmap PythonQtWrapper_QGLWidget::renderPixmap(QGLWidget* theWrappedObject, int w, int h, bool useContext) +{ + return ( theWrappedObject->renderPixmap(w, h, useContext)); +} + +void PythonQtWrapper_QGLWidget::renderText(QGLWidget* theWrappedObject, double x, double y, double z, const QString& str, const QFont& fnt) +{ + ( theWrappedObject->renderText(x, y, z, str, fnt)); +} + +void PythonQtWrapper_QGLWidget::renderText(QGLWidget* theWrappedObject, int x, int y, const QString& str, const QFont& fnt) +{ + ( theWrappedObject->renderText(x, y, str, fnt)); +} + +void PythonQtWrapper_QGLWidget::resizeEvent(QGLWidget* theWrappedObject, QResizeEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGLWidget*)theWrappedObject)->promoted_resizeEvent(arg__1)); +} + +void PythonQtWrapper_QGLWidget::resizeGL(QGLWidget* theWrappedObject, int w, int h) +{ + ( ((PythonQtPublicPromoter_QGLWidget*)theWrappedObject)->promoted_resizeGL(w, h)); +} + +void PythonQtWrapper_QGLWidget::resizeOverlayGL(QGLWidget* theWrappedObject, int w, int h) +{ + ( ((PythonQtPublicPromoter_QGLWidget*)theWrappedObject)->promoted_resizeOverlayGL(w, h)); +} + +void PythonQtWrapper_QGLWidget::setColormap(QGLWidget* theWrappedObject, const QGLColormap& map) +{ + ( theWrappedObject->setColormap(map)); +} + +void PythonQtWrapper_QGLWidget::swapBuffers(QGLWidget* theWrappedObject) +{ + ( theWrappedObject->swapBuffers()); +} + +void PythonQtWrapper_QGLWidget::updateGL(QGLWidget* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGLWidget*)theWrappedObject)->promoted_updateGL()); +} + +void PythonQtWrapper_QGLWidget::updateOverlayGL(QGLWidget* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGLWidget*)theWrappedObject)->promoted_updateOverlayGL()); +} + + diff --git a/generated_cpp_50/com_trolltech_qt_opengl/com_trolltech_qt_opengl0.h b/generated_cpp_50/com_trolltech_qt_opengl/com_trolltech_qt_opengl0.h new file mode 100644 index 00000000..83bfdbfe --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_opengl/com_trolltech_qt_opengl0.h @@ -0,0 +1,618 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +class PythonQtWrapper_QGLBuffer : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Type UsagePattern Access ) +enum Type{ + VertexBuffer = QGLBuffer::VertexBuffer, IndexBuffer = QGLBuffer::IndexBuffer, PixelPackBuffer = QGLBuffer::PixelPackBuffer, PixelUnpackBuffer = QGLBuffer::PixelUnpackBuffer}; +enum UsagePattern{ + StreamDraw = QGLBuffer::StreamDraw, StreamRead = QGLBuffer::StreamRead, StreamCopy = QGLBuffer::StreamCopy, StaticDraw = QGLBuffer::StaticDraw, StaticRead = QGLBuffer::StaticRead, StaticCopy = QGLBuffer::StaticCopy, DynamicDraw = QGLBuffer::DynamicDraw, DynamicRead = QGLBuffer::DynamicRead, DynamicCopy = QGLBuffer::DynamicCopy}; +enum Access{ + ReadOnly = QGLBuffer::ReadOnly, WriteOnly = QGLBuffer::WriteOnly, ReadWrite = QGLBuffer::ReadWrite}; +public slots: +QGLBuffer* new_QGLBuffer(); +QGLBuffer* new_QGLBuffer(QGLBuffer::Type type); +QGLBuffer* new_QGLBuffer(const QGLBuffer& other); +void delete_QGLBuffer(QGLBuffer* obj) { delete obj; } + void allocate(QGLBuffer* theWrappedObject, const void* data, int count); + void allocate(QGLBuffer* theWrappedObject, int count); + bool bind(QGLBuffer* theWrappedObject); + bool create(QGLBuffer* theWrappedObject); + void destroy(QGLBuffer* theWrappedObject); + bool isCreated(QGLBuffer* theWrappedObject) const; + void* map(QGLBuffer* theWrappedObject, QGLBuffer::Access access); + QGLBuffer* operator_assign(QGLBuffer* theWrappedObject, const QGLBuffer& other); + bool read(QGLBuffer* theWrappedObject, int offset, void* data, int count); + void release(QGLBuffer* theWrappedObject); + void static_QGLBuffer_release(QGLBuffer::Type type); + void setUsagePattern(QGLBuffer* theWrappedObject, QGLBuffer::UsagePattern value); + int size(QGLBuffer* theWrappedObject) const; + QGLBuffer::Type type(QGLBuffer* theWrappedObject) const; + bool unmap(QGLBuffer* theWrappedObject); + QGLBuffer::UsagePattern usagePattern(QGLBuffer* theWrappedObject) const; + void write(QGLBuffer* theWrappedObject, int offset, const void* data, int count); +}; + + + + + +class PythonQtShell_QGLColormap : public QGLColormap +{ +public: + PythonQtShell_QGLColormap():QGLColormap(),_wrapper(NULL) {}; + PythonQtShell_QGLColormap(const QGLColormap& arg__1):QGLColormap(arg__1),_wrapper(NULL) {}; + + ~PythonQtShell_QGLColormap(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QGLColormap : public QObject +{ Q_OBJECT +public: +public slots: +QGLColormap* new_QGLColormap(); +QGLColormap* new_QGLColormap(const QGLColormap& arg__1); +void delete_QGLColormap(QGLColormap* obj) { delete obj; } + QColor entryColor(QGLColormap* theWrappedObject, int idx) const; + unsigned int entryRgb(QGLColormap* theWrappedObject, int idx) const; + int find(QGLColormap* theWrappedObject, unsigned int color) const; + int findNearest(QGLColormap* theWrappedObject, unsigned int color) const; + bool isEmpty(QGLColormap* theWrappedObject) const; + void setEntries(QGLColormap* theWrappedObject, int count, const unsigned int* colors, int base = 0); + void setEntry(QGLColormap* theWrappedObject, int idx, const QColor& color); + void setEntry(QGLColormap* theWrappedObject, int idx, unsigned int color); + int size(QGLColormap* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGLContext : public QGLContext +{ +public: + PythonQtShell_QGLContext(const QGLFormat& format):QGLContext(format),_wrapper(NULL) {}; + PythonQtShell_QGLContext(const QGLFormat& format, QPaintDevice* device):QGLContext(format, device),_wrapper(NULL) {}; + + ~PythonQtShell_QGLContext(); + +virtual bool chooseContext(const QGLContext* shareContext = 0); +virtual bool create(const QGLContext* shareContext = 0); +virtual void doneCurrent(); +virtual void makeCurrent(); +virtual void swapBuffers() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGLContext : public QGLContext +{ public: +inline bool promoted_chooseContext(const QGLContext* shareContext = 0) { return QGLContext::chooseContext(shareContext); } +inline bool promoted_create(const QGLContext* shareContext = 0) { return QGLContext::create(shareContext); } +inline void promoted_doneCurrent() { QGLContext::doneCurrent(); } +inline void promoted_makeCurrent() { QGLContext::makeCurrent(); } +inline void promoted_swapBuffers() const { QGLContext::swapBuffers(); } +}; + +class PythonQtWrapper_QGLContext : public QObject +{ Q_OBJECT +public: +Q_ENUMS(BindOption ) +Q_FLAGS(BindOptions ) +enum BindOption{ + NoBindOption = QGLContext::NoBindOption, InvertedYBindOption = QGLContext::InvertedYBindOption, MipmapBindOption = QGLContext::MipmapBindOption, PremultipliedAlphaBindOption = QGLContext::PremultipliedAlphaBindOption, LinearFilteringBindOption = QGLContext::LinearFilteringBindOption, MemoryManagedBindOption = QGLContext::MemoryManagedBindOption, CanFlipNativePixmapBindOption = QGLContext::CanFlipNativePixmapBindOption, TemporarilyCachedBindOption = QGLContext::TemporarilyCachedBindOption, DefaultBindOption = QGLContext::DefaultBindOption, InternalBindOption = QGLContext::InternalBindOption}; +Q_DECLARE_FLAGS(BindOptions, BindOption) +public slots: +QGLContext* new_QGLContext(const QGLFormat& format); +QGLContext* new_QGLContext(const QGLFormat& format, QPaintDevice* device); +void delete_QGLContext(QGLContext* obj) { delete obj; } + bool static_QGLContext_areSharing(const QGLContext* context1, const QGLContext* context2); + bool chooseContext(QGLContext* theWrappedObject, const QGLContext* shareContext = 0); + bool create(QGLContext* theWrappedObject, const QGLContext* shareContext = 0); + const QGLContext* static_QGLContext_currentContext(); + QPaintDevice* device(QGLContext* theWrappedObject) const; + void doneCurrent(QGLContext* theWrappedObject); + QGLFormat format(QGLContext* theWrappedObject) const; + QGLFunctions* functions(QGLContext* theWrappedObject) const; + bool isSharing(QGLContext* theWrappedObject) const; + bool isValid(QGLContext* theWrappedObject) const; + void makeCurrent(QGLContext* theWrappedObject); + void moveToThread(QGLContext* theWrappedObject, QThread* thread); + QColor overlayTransparentColor(QGLContext* theWrappedObject) const; + QGLFormat requestedFormat(QGLContext* theWrappedObject) const; + void reset(QGLContext* theWrappedObject); + void setFormat(QGLContext* theWrappedObject, const QGLFormat& format); + void static_QGLContext_setTextureCacheLimit(int size); + void swapBuffers(QGLContext* theWrappedObject) const; + int static_QGLContext_textureCacheLimit(); +}; + + + + + +class PythonQtShell_QGLFramebufferObject : public QGLFramebufferObject +{ +public: + PythonQtShell_QGLFramebufferObject(const QSize& size, const QGLFramebufferObjectFormat& format):QGLFramebufferObject(size, format),_wrapper(NULL) {}; + PythonQtShell_QGLFramebufferObject(int width, int height, const QGLFramebufferObjectFormat& format):QGLFramebufferObject(width, height, format),_wrapper(NULL) {}; + + ~PythonQtShell_QGLFramebufferObject(); + +virtual int devType() const; +virtual void initPainter(QPainter* painter) const; +virtual int metric(QPaintDevice::PaintDeviceMetric metric) const; +virtual QPaintEngine* paintEngine() const; +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual QPainter* sharedPainter() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGLFramebufferObject : public QGLFramebufferObject +{ public: +inline int promoted_devType() const { return QGLFramebufferObject::devType(); } +inline int promoted_metric(QPaintDevice::PaintDeviceMetric metric) const { return QGLFramebufferObject::metric(metric); } +inline QPaintEngine* promoted_paintEngine() const { return QGLFramebufferObject::paintEngine(); } +}; + +class PythonQtWrapper_QGLFramebufferObject : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Attachment ) +enum Attachment{ + NoAttachment = QGLFramebufferObject::NoAttachment, CombinedDepthStencil = QGLFramebufferObject::CombinedDepthStencil, Depth = QGLFramebufferObject::Depth}; +public slots: +QGLFramebufferObject* new_QGLFramebufferObject(const QSize& size, const QGLFramebufferObjectFormat& format); +QGLFramebufferObject* new_QGLFramebufferObject(int width, int height, const QGLFramebufferObjectFormat& format); +void delete_QGLFramebufferObject(QGLFramebufferObject* obj) { delete obj; } + QGLFramebufferObject::Attachment attachment(QGLFramebufferObject* theWrappedObject) const; + bool bind(QGLFramebufferObject* theWrappedObject); + bool static_QGLFramebufferObject_bindDefault(); + int devType(QGLFramebufferObject* theWrappedObject) const; + QGLFramebufferObjectFormat format(QGLFramebufferObject* theWrappedObject) const; + bool static_QGLFramebufferObject_hasOpenGLFramebufferBlit(); + bool static_QGLFramebufferObject_hasOpenGLFramebufferObjects(); + bool isBound(QGLFramebufferObject* theWrappedObject) const; + bool isValid(QGLFramebufferObject* theWrappedObject) const; + int metric(QGLFramebufferObject* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const; + QPaintEngine* paintEngine(QGLFramebufferObject* theWrappedObject) const; + bool release(QGLFramebufferObject* theWrappedObject); + QSize size(QGLFramebufferObject* theWrappedObject) const; + QImage toImage(QGLFramebufferObject* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QGLFramebufferObjectFormat : public QObject +{ Q_OBJECT +public: +public slots: +QGLFramebufferObjectFormat* new_QGLFramebufferObjectFormat(); +QGLFramebufferObjectFormat* new_QGLFramebufferObjectFormat(const QGLFramebufferObjectFormat& other); +void delete_QGLFramebufferObjectFormat(QGLFramebufferObjectFormat* obj) { delete obj; } + QGLFramebufferObject::Attachment attachment(QGLFramebufferObjectFormat* theWrappedObject) const; + bool mipmap(QGLFramebufferObjectFormat* theWrappedObject) const; + bool __ne__(QGLFramebufferObjectFormat* theWrappedObject, const QGLFramebufferObjectFormat& other) const; + QGLFramebufferObjectFormat* operator_assign(QGLFramebufferObjectFormat* theWrappedObject, const QGLFramebufferObjectFormat& other); + bool __eq__(QGLFramebufferObjectFormat* theWrappedObject, const QGLFramebufferObjectFormat& other) const; + int samples(QGLFramebufferObjectFormat* theWrappedObject) const; + void setAttachment(QGLFramebufferObjectFormat* theWrappedObject, QGLFramebufferObject::Attachment attachment); + void setMipmap(QGLFramebufferObjectFormat* theWrappedObject, bool enabled); + void setSamples(QGLFramebufferObjectFormat* theWrappedObject, int samples); +}; + + + + + +class PythonQtWrapper_QGLFunctions : public QObject +{ Q_OBJECT +public: +Q_ENUMS(OpenGLFeature ) +enum OpenGLFeature{ + Multitexture = QGLFunctions::Multitexture, Shaders = QGLFunctions::Shaders, Buffers = QGLFunctions::Buffers, Framebuffers = QGLFunctions::Framebuffers, BlendColor = QGLFunctions::BlendColor, BlendEquation = QGLFunctions::BlendEquation, BlendEquationSeparate = QGLFunctions::BlendEquationSeparate, BlendFuncSeparate = QGLFunctions::BlendFuncSeparate, BlendSubtract = QGLFunctions::BlendSubtract, CompressedTextures = QGLFunctions::CompressedTextures, Multisample = QGLFunctions::Multisample, StencilSeparate = QGLFunctions::StencilSeparate, NPOTTextures = QGLFunctions::NPOTTextures}; +public slots: +QGLFunctions* new_QGLFunctions(); +QGLFunctions* new_QGLFunctions(const QGLContext* context); +void delete_QGLFunctions(QGLFunctions* obj) { delete obj; } + void glReleaseShaderCompiler(QGLFunctions* theWrappedObject); + bool hasOpenGLFeature(QGLFunctions* theWrappedObject, QGLFunctions::OpenGLFeature feature) const; + void initializeGLFunctions(QGLFunctions* theWrappedObject, const QGLContext* context = 0); +}; + + + + + +class PythonQtShell_QGLPixelBuffer : public QGLPixelBuffer +{ +public: + PythonQtShell_QGLPixelBuffer(const QSize& size, const QGLFormat& format = QGLFormat::defaultFormat(), QGLWidget* shareWidget = 0):QGLPixelBuffer(size, format, shareWidget),_wrapper(NULL) {}; + PythonQtShell_QGLPixelBuffer(int width, int height, const QGLFormat& format = QGLFormat::defaultFormat(), QGLWidget* shareWidget = 0):QGLPixelBuffer(width, height, format, shareWidget),_wrapper(NULL) {}; + + ~PythonQtShell_QGLPixelBuffer(); + +virtual int devType() const; +virtual void initPainter(QPainter* painter) const; +virtual int metric(QPaintDevice::PaintDeviceMetric metric) const; +virtual QPaintEngine* paintEngine() const; +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual QPainter* sharedPainter() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGLPixelBuffer : public QGLPixelBuffer +{ public: +inline int promoted_devType() const { return QGLPixelBuffer::devType(); } +inline int promoted_metric(QPaintDevice::PaintDeviceMetric metric) const { return QGLPixelBuffer::metric(metric); } +inline QPaintEngine* promoted_paintEngine() const { return QGLPixelBuffer::paintEngine(); } +}; + +class PythonQtWrapper_QGLPixelBuffer : public QObject +{ Q_OBJECT +public: +public slots: +QGLPixelBuffer* new_QGLPixelBuffer(const QSize& size, const QGLFormat& format = QGLFormat::defaultFormat(), QGLWidget* shareWidget = 0); +QGLPixelBuffer* new_QGLPixelBuffer(int width, int height, const QGLFormat& format = QGLFormat::defaultFormat(), QGLWidget* shareWidget = 0); +void delete_QGLPixelBuffer(QGLPixelBuffer* obj) { delete obj; } + QGLContext* context(QGLPixelBuffer* theWrappedObject) const; + int devType(QGLPixelBuffer* theWrappedObject) const; + bool doneCurrent(QGLPixelBuffer* theWrappedObject); + QGLFormat format(QGLPixelBuffer* theWrappedObject) const; + Qt::HANDLE handle(QGLPixelBuffer* theWrappedObject) const; + bool static_QGLPixelBuffer_hasOpenGLPbuffers(); + bool isValid(QGLPixelBuffer* theWrappedObject) const; + bool makeCurrent(QGLPixelBuffer* theWrappedObject); + int metric(QGLPixelBuffer* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const; + QPaintEngine* paintEngine(QGLPixelBuffer* theWrappedObject) const; + void releaseFromDynamicTexture(QGLPixelBuffer* theWrappedObject); + QSize size(QGLPixelBuffer* theWrappedObject) const; + QImage toImage(QGLPixelBuffer* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGLShader : public QGLShader +{ +public: + PythonQtShell_QGLShader(QGLShader::ShaderType type, QObject* parent = 0):QGLShader(type, parent),_wrapper(NULL) {}; + PythonQtShell_QGLShader(QGLShader::ShaderType type, const QGLContext* context, QObject* parent = 0):QGLShader(type, context, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGLShader(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QGLShader : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ShaderTypeBit ) +Q_FLAGS(ShaderType ) +enum ShaderTypeBit{ + Vertex = QGLShader::Vertex, Fragment = QGLShader::Fragment, Geometry = QGLShader::Geometry}; +Q_DECLARE_FLAGS(ShaderType, ShaderTypeBit) +public slots: +QGLShader* new_QGLShader(QGLShader::ShaderType type, QObject* parent = 0); +QGLShader* new_QGLShader(QGLShader::ShaderType type, const QGLContext* context, QObject* parent = 0); +void delete_QGLShader(QGLShader* obj) { delete obj; } + bool compileSourceCode(QGLShader* theWrappedObject, const QByteArray& source); + bool compileSourceCode(QGLShader* theWrappedObject, const QString& source); + bool compileSourceCode(QGLShader* theWrappedObject, const char* source); + bool compileSourceFile(QGLShader* theWrappedObject, const QString& fileName); + bool static_QGLShader_hasOpenGLShaders(QGLShader::ShaderType type, const QGLContext* context = 0); + bool isCompiled(QGLShader* theWrappedObject) const; + QString log(QGLShader* theWrappedObject) const; + QGLShader::ShaderType shaderType(QGLShader* theWrappedObject) const; + QByteArray sourceCode(QGLShader* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QGLShaderProgram : public QGLShaderProgram +{ +public: + PythonQtShell_QGLShaderProgram(QObject* parent = 0):QGLShaderProgram(parent),_wrapper(NULL) {}; + PythonQtShell_QGLShaderProgram(const QGLContext* context, QObject* parent = 0):QGLShaderProgram(context, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGLShaderProgram(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool link(); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGLShaderProgram : public QGLShaderProgram +{ public: +inline bool promoted_link() { return QGLShaderProgram::link(); } +}; + +class PythonQtWrapper_QGLShaderProgram : public QObject +{ Q_OBJECT +public: +public slots: +QGLShaderProgram* new_QGLShaderProgram(QObject* parent = 0); +QGLShaderProgram* new_QGLShaderProgram(const QGLContext* context, QObject* parent = 0); +void delete_QGLShaderProgram(QGLShaderProgram* obj) { delete obj; } + bool addShader(QGLShaderProgram* theWrappedObject, QGLShader* shader); + bool addShaderFromSourceCode(QGLShaderProgram* theWrappedObject, QGLShader::ShaderType type, const QByteArray& source); + bool addShaderFromSourceCode(QGLShaderProgram* theWrappedObject, QGLShader::ShaderType type, const QString& source); + bool addShaderFromSourceCode(QGLShaderProgram* theWrappedObject, QGLShader::ShaderType type, const char* source); + bool addShaderFromSourceFile(QGLShaderProgram* theWrappedObject, QGLShader::ShaderType type, const QString& fileName); + int attributeLocation(QGLShaderProgram* theWrappedObject, const QByteArray& name) const; + int attributeLocation(QGLShaderProgram* theWrappedObject, const QString& name) const; + int attributeLocation(QGLShaderProgram* theWrappedObject, const char* name) const; + bool bind(QGLShaderProgram* theWrappedObject); + void bindAttributeLocation(QGLShaderProgram* theWrappedObject, const QByteArray& name, int location); + void bindAttributeLocation(QGLShaderProgram* theWrappedObject, const QString& name, int location); + void bindAttributeLocation(QGLShaderProgram* theWrappedObject, const char* name, int location); + void disableAttributeArray(QGLShaderProgram* theWrappedObject, const char* name); + void disableAttributeArray(QGLShaderProgram* theWrappedObject, int location); + void enableAttributeArray(QGLShaderProgram* theWrappedObject, const char* name); + void enableAttributeArray(QGLShaderProgram* theWrappedObject, int location); + int geometryOutputVertexCount(QGLShaderProgram* theWrappedObject) const; + bool static_QGLShaderProgram_hasOpenGLShaderPrograms(const QGLContext* context = 0); + bool isLinked(QGLShaderProgram* theWrappedObject) const; + bool link(QGLShaderProgram* theWrappedObject); + QString log(QGLShaderProgram* theWrappedObject) const; + int maxGeometryOutputVertices(QGLShaderProgram* theWrappedObject) const; + void release(QGLShaderProgram* theWrappedObject); + void removeAllShaders(QGLShaderProgram* theWrappedObject); + void removeShader(QGLShaderProgram* theWrappedObject, QGLShader* shader); + void setAttributeArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector2D* values, int stride = 0); + void setAttributeArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector3D* values, int stride = 0); + void setAttributeArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector4D* values, int stride = 0); + void setAttributeArray(QGLShaderProgram* theWrappedObject, int location, const QVector2D* values, int stride = 0); + void setAttributeArray(QGLShaderProgram* theWrappedObject, int location, const QVector3D* values, int stride = 0); + void setAttributeArray(QGLShaderProgram* theWrappedObject, int location, const QVector4D* values, int stride = 0); + void setAttributeValue(QGLShaderProgram* theWrappedObject, const char* name, const QColor& value); + void setAttributeValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector2D& value); + void setAttributeValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector3D& value); + void setAttributeValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector4D& value); + void setAttributeValue(QGLShaderProgram* theWrappedObject, int location, const QColor& value); + void setAttributeValue(QGLShaderProgram* theWrappedObject, int location, const QVector2D& value); + void setAttributeValue(QGLShaderProgram* theWrappedObject, int location, const QVector3D& value); + void setAttributeValue(QGLShaderProgram* theWrappedObject, int location, const QVector4D& value); + void setGeometryOutputVertexCount(QGLShaderProgram* theWrappedObject, int count); + void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QColor& color); + void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QMatrix3x3& value); + void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QMatrix4x4& value); + void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QPoint& point); + void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QPointF& point); + void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QSize& size); + void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QSizeF& size); + void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QTransform& value); + void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector2D& value); + void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector3D& value); + void setUniformValue(QGLShaderProgram* theWrappedObject, const char* name, const QVector4D& value); + void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QColor& color); + void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QMatrix3x3& value); + void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QMatrix4x4& value); + void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QPoint& point); + void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QPointF& point); + void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QSize& size); + void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QSizeF& size); + void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QTransform& value); + void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QVector2D& value); + void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QVector3D& value); + void setUniformValue(QGLShaderProgram* theWrappedObject, int location, const QVector4D& value); + void setUniformValueArray(QGLShaderProgram* theWrappedObject, const char* name, const QMatrix3x3* values, int count); + void setUniformValueArray(QGLShaderProgram* theWrappedObject, const char* name, const QMatrix4x4* values, int count); + void setUniformValueArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector2D* values, int count); + void setUniformValueArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector3D* values, int count); + void setUniformValueArray(QGLShaderProgram* theWrappedObject, const char* name, const QVector4D* values, int count); + void setUniformValueArray(QGLShaderProgram* theWrappedObject, int location, const QMatrix3x3* values, int count); + void setUniformValueArray(QGLShaderProgram* theWrappedObject, int location, const QMatrix4x4* values, int count); + void setUniformValueArray(QGLShaderProgram* theWrappedObject, int location, const QVector2D* values, int count); + void setUniformValueArray(QGLShaderProgram* theWrappedObject, int location, const QVector3D* values, int count); + void setUniformValueArray(QGLShaderProgram* theWrappedObject, int location, const QVector4D* values, int count); + QList shaders(QGLShaderProgram* theWrappedObject) const; + int uniformLocation(QGLShaderProgram* theWrappedObject, const QByteArray& name) const; + int uniformLocation(QGLShaderProgram* theWrappedObject, const QString& name) const; + int uniformLocation(QGLShaderProgram* theWrappedObject, const char* name) const; +}; + + + + + +class PythonQtShell_QGLWidget : public QGLWidget +{ +public: + PythonQtShell_QGLWidget(QGLContext* context, QWidget* parent = 0, const QGLWidget* shareWidget = 0, Qt::WindowFlags f = 0):QGLWidget(context, parent, shareWidget, f),_wrapper(NULL) {}; + PythonQtShell_QGLWidget(QWidget* parent = 0, const QGLWidget* shareWidget = 0, Qt::WindowFlags f = 0):QGLWidget(parent, shareWidget, f),_wrapper(NULL) {}; + PythonQtShell_QGLWidget(const QGLFormat& format, QWidget* parent = 0, const QGLWidget* shareWidget = 0, Qt::WindowFlags f = 0):QGLWidget(format, parent, shareWidget, f),_wrapper(NULL) {}; + + ~PythonQtShell_QGLWidget(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual void glDraw(); +virtual void glInit(); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void initializeGL(); +virtual void initializeOverlayGL(); +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual void paintGL(); +virtual void paintOverlayGL(); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual void resizeGL(int w, int h); +virtual void resizeOverlayGL(int w, int h); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual QSize sizeHint() const; +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void updateGL(); +virtual void updateOverlayGL(); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGLWidget : public QGLWidget +{ public: +inline bool promoted_event(QEvent* arg__1) { return QGLWidget::event(arg__1); } +inline void promoted_glDraw() { QGLWidget::glDraw(); } +inline void promoted_glInit() { QGLWidget::glInit(); } +inline void promoted_initializeGL() { QGLWidget::initializeGL(); } +inline void promoted_initializeOverlayGL() { QGLWidget::initializeOverlayGL(); } +inline QPaintEngine* promoted_paintEngine() const { return QGLWidget::paintEngine(); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QGLWidget::paintEvent(arg__1); } +inline void promoted_paintGL() { QGLWidget::paintGL(); } +inline void promoted_paintOverlayGL() { QGLWidget::paintOverlayGL(); } +inline void promoted_resizeEvent(QResizeEvent* arg__1) { QGLWidget::resizeEvent(arg__1); } +inline void promoted_resizeGL(int w, int h) { QGLWidget::resizeGL(w, h); } +inline void promoted_resizeOverlayGL(int w, int h) { QGLWidget::resizeOverlayGL(w, h); } +inline void promoted_updateGL() { QGLWidget::updateGL(); } +inline void promoted_updateOverlayGL() { QGLWidget::updateOverlayGL(); } +}; + +class PythonQtWrapper_QGLWidget : public QObject +{ Q_OBJECT +public: +public slots: +QGLWidget* new_QGLWidget(QGLContext* context, QWidget* parent = 0, const QGLWidget* shareWidget = 0, Qt::WindowFlags f = 0); +QGLWidget* new_QGLWidget(QWidget* parent = 0, const QGLWidget* shareWidget = 0, Qt::WindowFlags f = 0); +QGLWidget* new_QGLWidget(const QGLFormat& format, QWidget* parent = 0, const QGLWidget* shareWidget = 0, Qt::WindowFlags f = 0); +void delete_QGLWidget(QGLWidget* obj) { delete obj; } + const QGLColormap* colormap(QGLWidget* theWrappedObject) const; + QGLContext* context(QGLWidget* theWrappedObject) const; + QImage static_QGLWidget_convertToGLFormat(const QImage& img); + void doneCurrent(QGLWidget* theWrappedObject); + bool doubleBuffer(QGLWidget* theWrappedObject) const; + bool event(QGLWidget* theWrappedObject, QEvent* arg__1); + QGLFormat format(QGLWidget* theWrappedObject) const; + void glDraw(QGLWidget* theWrappedObject); + void glInit(QGLWidget* theWrappedObject); + QImage grabFrameBuffer(QGLWidget* theWrappedObject, bool withAlpha = false); + void initializeGL(QGLWidget* theWrappedObject); + void initializeOverlayGL(QGLWidget* theWrappedObject); + bool isSharing(QGLWidget* theWrappedObject) const; + bool isValid(QGLWidget* theWrappedObject) const; + void makeCurrent(QGLWidget* theWrappedObject); + void makeOverlayCurrent(QGLWidget* theWrappedObject); + const QGLContext* overlayContext(QGLWidget* theWrappedObject) const; + QPaintEngine* paintEngine(QGLWidget* theWrappedObject) const; + void paintEvent(QGLWidget* theWrappedObject, QPaintEvent* arg__1); + void paintGL(QGLWidget* theWrappedObject); + void paintOverlayGL(QGLWidget* theWrappedObject); + void qglClearColor(QGLWidget* theWrappedObject, const QColor& c) const; + void qglColor(QGLWidget* theWrappedObject, const QColor& c) const; + QPixmap renderPixmap(QGLWidget* theWrappedObject, int w = 0, int h = 0, bool useContext = false); + void renderText(QGLWidget* theWrappedObject, double x, double y, double z, const QString& str, const QFont& fnt = QFont()); + void renderText(QGLWidget* theWrappedObject, int x, int y, const QString& str, const QFont& fnt = QFont()); + void resizeEvent(QGLWidget* theWrappedObject, QResizeEvent* arg__1); + void resizeGL(QGLWidget* theWrappedObject, int w, int h); + void resizeOverlayGL(QGLWidget* theWrappedObject, int w, int h); + void setColormap(QGLWidget* theWrappedObject, const QGLColormap& map); + void swapBuffers(QGLWidget* theWrappedObject); + void updateGL(QGLWidget* theWrappedObject); + void updateOverlayGL(QGLWidget* theWrappedObject); +}; + + diff --git a/generated_cpp_50/com_trolltech_qt_opengl/com_trolltech_qt_opengl_init.cpp b/generated_cpp_50/com_trolltech_qt_opengl/com_trolltech_qt_opengl_init.cpp new file mode 100644 index 00000000..ce49c47d --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_opengl/com_trolltech_qt_opengl_init.cpp @@ -0,0 +1,19 @@ +#include +#include "com_trolltech_qt_opengl0.h" + + +void PythonQt_init_QtOpenGL(PyObject* module) { +PythonQt::priv()->registerCPPClass("QGLBuffer", "", "QtOpenGL", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QGLColormap", "", "QtOpenGL", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QGLContext", "", "QtOpenGL", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QGLFramebufferObject", "", "QtOpenGL", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::self()->addParentClass("QGLFramebufferObject", "QPaintDevice",PythonQtUpcastingOffset()); +PythonQt::priv()->registerCPPClass("QGLFramebufferObjectFormat", "", "QtOpenGL", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QGLFunctions", "", "QtOpenGL", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QGLPixelBuffer", "", "QtOpenGL", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::self()->addParentClass("QGLPixelBuffer", "QPaintDevice",PythonQtUpcastingOffset()); +PythonQt::priv()->registerClass(&QGLShader::staticMetaObject, "QtOpenGL", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGLShaderProgram::staticMetaObject, "QtOpenGL", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QGLWidget::staticMetaObject, "QtOpenGL", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); + +} diff --git a/generated_cpp_50/com_trolltech_qt_sql/com_trolltech_qt_sql.pri b/generated_cpp_50/com_trolltech_qt_sql/com_trolltech_qt_sql.pri new file mode 100644 index 00000000..38611e2c --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_sql/com_trolltech_qt_sql.pri @@ -0,0 +1,6 @@ +HEADERS += \ + $$PWD/com_trolltech_qt_sql0.h \ + +SOURCES += \ + $$PWD/com_trolltech_qt_sql0.cpp \ + $$PWD/com_trolltech_qt_sql_init.cpp diff --git a/generated_cpp_50/com_trolltech_qt_sql/com_trolltech_qt_sql0.cpp b/generated_cpp_50/com_trolltech_qt_sql/com_trolltech_qt_sql0.cpp new file mode 100644 index 00000000..45dc4530 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_sql/com_trolltech_qt_sql0.cpp @@ -0,0 +1,6712 @@ +#include "com_trolltech_qt_sql0.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +PythonQtShell_QSqlDatabase::~PythonQtShell_QSqlDatabase() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QSqlDatabase* PythonQtWrapper_QSqlDatabase::new_QSqlDatabase() +{ +return new PythonQtShell_QSqlDatabase(); } + +QSqlDatabase* PythonQtWrapper_QSqlDatabase::new_QSqlDatabase(const QSqlDatabase& other) +{ +return new PythonQtShell_QSqlDatabase(other); } + +QSqlDatabase PythonQtWrapper_QSqlDatabase::static_QSqlDatabase_addDatabase(QSqlDriver* driver, const QString& connectionName) +{ + return (QSqlDatabase::addDatabase(driver, connectionName)); +} + +QSqlDatabase PythonQtWrapper_QSqlDatabase::static_QSqlDatabase_addDatabase(const QString& type, const QString& connectionName) +{ + return (QSqlDatabase::addDatabase(type, connectionName)); +} + +QSqlDatabase PythonQtWrapper_QSqlDatabase::static_QSqlDatabase_cloneDatabase(const QSqlDatabase& other, const QString& connectionName) +{ + return (QSqlDatabase::cloneDatabase(other, connectionName)); +} + +void PythonQtWrapper_QSqlDatabase::close(QSqlDatabase* theWrappedObject) +{ + ( theWrappedObject->close()); +} + +bool PythonQtWrapper_QSqlDatabase::commit(QSqlDatabase* theWrappedObject) +{ + return ( theWrappedObject->commit()); +} + +QString PythonQtWrapper_QSqlDatabase::connectOptions(QSqlDatabase* theWrappedObject) const +{ + return ( theWrappedObject->connectOptions()); +} + +QString PythonQtWrapper_QSqlDatabase::connectionName(QSqlDatabase* theWrappedObject) const +{ + return ( theWrappedObject->connectionName()); +} + +QStringList PythonQtWrapper_QSqlDatabase::static_QSqlDatabase_connectionNames() +{ + return (QSqlDatabase::connectionNames()); +} + +bool PythonQtWrapper_QSqlDatabase::static_QSqlDatabase_contains(const QString& connectionName) +{ + return (QSqlDatabase::contains(connectionName)); +} + +QSqlDatabase PythonQtWrapper_QSqlDatabase::static_QSqlDatabase_database(const QString& connectionName, bool open) +{ + return (QSqlDatabase::database(connectionName, open)); +} + +QString PythonQtWrapper_QSqlDatabase::databaseName(QSqlDatabase* theWrappedObject) const +{ + return ( theWrappedObject->databaseName()); +} + +QSqlDriver* PythonQtWrapper_QSqlDatabase::driver(QSqlDatabase* theWrappedObject) const +{ + return ( theWrappedObject->driver()); +} + +QString PythonQtWrapper_QSqlDatabase::driverName(QSqlDatabase* theWrappedObject) const +{ + return ( theWrappedObject->driverName()); +} + +QStringList PythonQtWrapper_QSqlDatabase::static_QSqlDatabase_drivers() +{ + return (QSqlDatabase::drivers()); +} + +QSqlQuery PythonQtWrapper_QSqlDatabase::exec(QSqlDatabase* theWrappedObject, const QString& query) const +{ + return ( theWrappedObject->exec(query)); +} + +QString PythonQtWrapper_QSqlDatabase::hostName(QSqlDatabase* theWrappedObject) const +{ + return ( theWrappedObject->hostName()); +} + +bool PythonQtWrapper_QSqlDatabase::static_QSqlDatabase_isDriverAvailable(const QString& name) +{ + return (QSqlDatabase::isDriverAvailable(name)); +} + +bool PythonQtWrapper_QSqlDatabase::isOpen(QSqlDatabase* theWrappedObject) const +{ + return ( theWrappedObject->isOpen()); +} + +bool PythonQtWrapper_QSqlDatabase::isOpenError(QSqlDatabase* theWrappedObject) const +{ + return ( theWrappedObject->isOpenError()); +} + +bool PythonQtWrapper_QSqlDatabase::isValid(QSqlDatabase* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +QSqlError PythonQtWrapper_QSqlDatabase::lastError(QSqlDatabase* theWrappedObject) const +{ + return ( theWrappedObject->lastError()); +} + +QSql::NumericalPrecisionPolicy PythonQtWrapper_QSqlDatabase::numericalPrecisionPolicy(QSqlDatabase* theWrappedObject) const +{ + return ( theWrappedObject->numericalPrecisionPolicy()); +} + +bool PythonQtWrapper_QSqlDatabase::open(QSqlDatabase* theWrappedObject) +{ + return ( theWrappedObject->open()); +} + +bool PythonQtWrapper_QSqlDatabase::open(QSqlDatabase* theWrappedObject, const QString& user, const QString& password) +{ + return ( theWrappedObject->open(user, password)); +} + +QString PythonQtWrapper_QSqlDatabase::password(QSqlDatabase* theWrappedObject) const +{ + return ( theWrappedObject->password()); +} + +int PythonQtWrapper_QSqlDatabase::port(QSqlDatabase* theWrappedObject) const +{ + return ( theWrappedObject->port()); +} + +QSqlIndex PythonQtWrapper_QSqlDatabase::primaryIndex(QSqlDatabase* theWrappedObject, const QString& tablename) const +{ + return ( theWrappedObject->primaryIndex(tablename)); +} + +QSqlRecord PythonQtWrapper_QSqlDatabase::record(QSqlDatabase* theWrappedObject, const QString& tablename) const +{ + return ( theWrappedObject->record(tablename)); +} + +void PythonQtWrapper_QSqlDatabase::static_QSqlDatabase_registerSqlDriver(const QString& name, QSqlDriverCreatorBase* creator) +{ + (QSqlDatabase::registerSqlDriver(name, creator)); +} + +void PythonQtWrapper_QSqlDatabase::static_QSqlDatabase_removeDatabase(const QString& connectionName) +{ + (QSqlDatabase::removeDatabase(connectionName)); +} + +bool PythonQtWrapper_QSqlDatabase::rollback(QSqlDatabase* theWrappedObject) +{ + return ( theWrappedObject->rollback()); +} + +void PythonQtWrapper_QSqlDatabase::setConnectOptions(QSqlDatabase* theWrappedObject, const QString& options) +{ + ( theWrappedObject->setConnectOptions(options)); +} + +void PythonQtWrapper_QSqlDatabase::setDatabaseName(QSqlDatabase* theWrappedObject, const QString& name) +{ + ( theWrappedObject->setDatabaseName(name)); +} + +void PythonQtWrapper_QSqlDatabase::setHostName(QSqlDatabase* theWrappedObject, const QString& host) +{ + ( theWrappedObject->setHostName(host)); +} + +void PythonQtWrapper_QSqlDatabase::setNumericalPrecisionPolicy(QSqlDatabase* theWrappedObject, QSql::NumericalPrecisionPolicy precisionPolicy) +{ + ( theWrappedObject->setNumericalPrecisionPolicy(precisionPolicy)); +} + +void PythonQtWrapper_QSqlDatabase::setPassword(QSqlDatabase* theWrappedObject, const QString& password) +{ + ( theWrappedObject->setPassword(password)); +} + +void PythonQtWrapper_QSqlDatabase::setPort(QSqlDatabase* theWrappedObject, int p) +{ + ( theWrappedObject->setPort(p)); +} + +void PythonQtWrapper_QSqlDatabase::setUserName(QSqlDatabase* theWrappedObject, const QString& name) +{ + ( theWrappedObject->setUserName(name)); +} + +QStringList PythonQtWrapper_QSqlDatabase::tables(QSqlDatabase* theWrappedObject, QSql::TableType type) const +{ + return ( theWrappedObject->tables(type)); +} + +bool PythonQtWrapper_QSqlDatabase::transaction(QSqlDatabase* theWrappedObject) +{ + return ( theWrappedObject->transaction()); +} + +QString PythonQtWrapper_QSqlDatabase::userName(QSqlDatabase* theWrappedObject) const +{ + return ( theWrappedObject->userName()); +} + +QString PythonQtWrapper_QSqlDatabase::py_toString(QSqlDatabase* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +PythonQtShell_QSqlDriver::~PythonQtShell_QSqlDriver() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QSqlDriver::beginTransaction() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "beginTransaction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("beginTransaction", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::beginTransaction(); +} +bool PythonQtShell_QSqlDriver::cancelQuery() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "cancelQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("cancelQuery", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::cancelQuery(); +} +void PythonQtShell_QSqlDriver::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlDriver::childEvent(arg__1); +} +void PythonQtShell_QSqlDriver::close() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +bool PythonQtShell_QSqlDriver::commitTransaction() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitTransaction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("commitTransaction", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::commitTransaction(); +} +QSqlResult* PythonQtShell_QSqlDriver::createResult() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createResult"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSqlResult*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSqlResult* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createResult", methodInfo, result); + } else { + returnValue = *((QSqlResult**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +void PythonQtShell_QSqlDriver::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlDriver::customEvent(arg__1); +} +QString PythonQtShell_QSqlDriver::escapeIdentifier(const QString& identifier, QSqlDriver::IdentifierType type) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "escapeIdentifier"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "const QString&" , "QSqlDriver::IdentifierType"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QString returnValue; + void* args[3] = {NULL, (void*)&identifier, (void*)&type}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("escapeIdentifier", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::escapeIdentifier(identifier, type); +} +bool PythonQtShell_QSqlDriver::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::event(arg__1); +} +bool PythonQtShell_QSqlDriver::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::eventFilter(arg__1, arg__2); +} +QString PythonQtShell_QSqlDriver::formatValue(const QSqlField& field, bool trimStrings) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "formatValue"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "const QSqlField&" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QString returnValue; + void* args[3] = {NULL, (void*)&field, (void*)&trimStrings}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("formatValue", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::formatValue(field, trimStrings); +} +QVariant PythonQtShell_QSqlDriver::handle() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "handle"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QVariant returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("handle", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::handle(); +} +bool PythonQtShell_QSqlDriver::hasFeature(QSqlDriver::DriverFeature f) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasFeature"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QSqlDriver::DriverFeature"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&f}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasFeature", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QSqlDriver::isIdentifierEscaped(const QString& identifier, QSqlDriver::IdentifierType type) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIdentifierEscaped"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "QSqlDriver::IdentifierType"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&identifier, (void*)&type}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isIdentifierEscaped", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::isIdentifierEscaped(identifier, type); +} +bool PythonQtShell_QSqlDriver::isOpen() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isOpen"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isOpen", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::isOpen(); +} +bool PythonQtShell_QSqlDriver::open(const QString& db, const QString& user, const QString& password, const QString& host, int port, const QString& connOpts) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QString&" , "const QString&" , "int" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(7, argumentList); + bool returnValue; + void* args[7] = {NULL, (void*)&db, (void*)&user, (void*)&password, (void*)&host, (void*)&port, (void*)&connOpts}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +QSqlIndex PythonQtShell_QSqlDriver::primaryIndex(const QString& tableName) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "primaryIndex"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSqlIndex" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QSqlIndex returnValue; + void* args[2] = {NULL, (void*)&tableName}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("primaryIndex", methodInfo, result); + } else { + returnValue = *((QSqlIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::primaryIndex(tableName); +} +QSqlRecord PythonQtShell_QSqlDriver::record(const QString& tableName) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "record"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSqlRecord" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QSqlRecord returnValue; + void* args[2] = {NULL, (void*)&tableName}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("record", methodInfo, result); + } else { + returnValue = *((QSqlRecord*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::record(tableName); +} +bool PythonQtShell_QSqlDriver::rollbackTransaction() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rollbackTransaction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("rollbackTransaction", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::rollbackTransaction(); +} +void PythonQtShell_QSqlDriver::setLastError(const QSqlError& e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setLastError"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QSqlError&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlDriver::setLastError(e); +} +void PythonQtShell_QSqlDriver::setOpen(bool o) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setOpen"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&o}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlDriver::setOpen(o); +} +void PythonQtShell_QSqlDriver::setOpenError(bool e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setOpenError"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlDriver::setOpenError(e); +} +QString PythonQtShell_QSqlDriver::sqlStatement(QSqlDriver::StatementType type, const QString& tableName, const QSqlRecord& rec, bool preparedStatement) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sqlStatement"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "QSqlDriver::StatementType" , "const QString&" , "const QSqlRecord&" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + QString returnValue; + void* args[5] = {NULL, (void*)&type, (void*)&tableName, (void*)&rec, (void*)&preparedStatement}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sqlStatement", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::sqlStatement(type, tableName, rec, preparedStatement); +} +QString PythonQtShell_QSqlDriver::stripDelimiters(const QString& identifier, QSqlDriver::IdentifierType type) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stripDelimiters"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "const QString&" , "QSqlDriver::IdentifierType"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QString returnValue; + void* args[3] = {NULL, (void*)&identifier, (void*)&type}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("stripDelimiters", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::stripDelimiters(identifier, type); +} +bool PythonQtShell_QSqlDriver::subscribeToNotification(const QString& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subscribeToNotification"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("subscribeToNotification", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::subscribeToNotification(name); +} +QStringList PythonQtShell_QSqlDriver::subscribedToNotifications() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subscribedToNotifications"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStringList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStringList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("subscribedToNotifications", methodInfo, result); + } else { + returnValue = *((QStringList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::subscribedToNotifications(); +} +QStringList PythonQtShell_QSqlDriver::tables(QSql::TableType tableType) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tables"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStringList" , "QSql::TableType"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QStringList returnValue; + void* args[2] = {NULL, (void*)&tableType}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("tables", methodInfo, result); + } else { + returnValue = *((QStringList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::tables(tableType); +} +void PythonQtShell_QSqlDriver::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlDriver::timerEvent(arg__1); +} +bool PythonQtShell_QSqlDriver::unsubscribeFromNotification(const QString& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unsubscribeFromNotification"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("unsubscribeFromNotification", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlDriver::unsubscribeFromNotification(name); +} +QSqlDriver* PythonQtWrapper_QSqlDriver::new_QSqlDriver(QObject* parent) +{ +return new PythonQtShell_QSqlDriver(parent); } + +bool PythonQtWrapper_QSqlDriver::beginTransaction(QSqlDriver* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_beginTransaction()); +} + +bool PythonQtWrapper_QSqlDriver::cancelQuery(QSqlDriver* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_cancelQuery()); +} + +bool PythonQtWrapper_QSqlDriver::commitTransaction(QSqlDriver* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_commitTransaction()); +} + +QString PythonQtWrapper_QSqlDriver::escapeIdentifier(QSqlDriver* theWrappedObject, const QString& identifier, QSqlDriver::IdentifierType type) const +{ + return ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_escapeIdentifier(identifier, type)); +} + +QString PythonQtWrapper_QSqlDriver::formatValue(QSqlDriver* theWrappedObject, const QSqlField& field, bool trimStrings) const +{ + return ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_formatValue(field, trimStrings)); +} + +QVariant PythonQtWrapper_QSqlDriver::handle(QSqlDriver* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_handle()); +} + +bool PythonQtWrapper_QSqlDriver::isIdentifierEscaped(QSqlDriver* theWrappedObject, const QString& identifier, QSqlDriver::IdentifierType type) const +{ + return ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_isIdentifierEscaped(identifier, type)); +} + +bool PythonQtWrapper_QSqlDriver::isOpen(QSqlDriver* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_isOpen()); +} + +bool PythonQtWrapper_QSqlDriver::isOpenError(QSqlDriver* theWrappedObject) const +{ + return ( theWrappedObject->isOpenError()); +} + +QSqlError PythonQtWrapper_QSqlDriver::lastError(QSqlDriver* theWrappedObject) const +{ + return ( theWrappedObject->lastError()); +} + +QSql::NumericalPrecisionPolicy PythonQtWrapper_QSqlDriver::numericalPrecisionPolicy(QSqlDriver* theWrappedObject) const +{ + return ( theWrappedObject->numericalPrecisionPolicy()); +} + +QSqlIndex PythonQtWrapper_QSqlDriver::primaryIndex(QSqlDriver* theWrappedObject, const QString& tableName) const +{ + return ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_primaryIndex(tableName)); +} + +QSqlRecord PythonQtWrapper_QSqlDriver::record(QSqlDriver* theWrappedObject, const QString& tableName) const +{ + return ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_record(tableName)); +} + +bool PythonQtWrapper_QSqlDriver::rollbackTransaction(QSqlDriver* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_rollbackTransaction()); +} + +void PythonQtWrapper_QSqlDriver::setLastError(QSqlDriver* theWrappedObject, const QSqlError& e) +{ + ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_setLastError(e)); +} + +void PythonQtWrapper_QSqlDriver::setNumericalPrecisionPolicy(QSqlDriver* theWrappedObject, QSql::NumericalPrecisionPolicy precisionPolicy) +{ + ( theWrappedObject->setNumericalPrecisionPolicy(precisionPolicy)); +} + +void PythonQtWrapper_QSqlDriver::setOpen(QSqlDriver* theWrappedObject, bool o) +{ + ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_setOpen(o)); +} + +void PythonQtWrapper_QSqlDriver::setOpenError(QSqlDriver* theWrappedObject, bool e) +{ + ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_setOpenError(e)); +} + +QString PythonQtWrapper_QSqlDriver::sqlStatement(QSqlDriver* theWrappedObject, QSqlDriver::StatementType type, const QString& tableName, const QSqlRecord& rec, bool preparedStatement) const +{ + return ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_sqlStatement(type, tableName, rec, preparedStatement)); +} + +QString PythonQtWrapper_QSqlDriver::stripDelimiters(QSqlDriver* theWrappedObject, const QString& identifier, QSqlDriver::IdentifierType type) const +{ + return ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_stripDelimiters(identifier, type)); +} + +bool PythonQtWrapper_QSqlDriver::subscribeToNotification(QSqlDriver* theWrappedObject, const QString& name) +{ + return ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_subscribeToNotification(name)); +} + +QStringList PythonQtWrapper_QSqlDriver::subscribedToNotifications(QSqlDriver* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_subscribedToNotifications()); +} + +QStringList PythonQtWrapper_QSqlDriver::tables(QSqlDriver* theWrappedObject, QSql::TableType tableType) const +{ + return ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_tables(tableType)); +} + +bool PythonQtWrapper_QSqlDriver::unsubscribeFromNotification(QSqlDriver* theWrappedObject, const QString& name) +{ + return ( ((PythonQtPublicPromoter_QSqlDriver*)theWrappedObject)->promoted_unsubscribeFromNotification(name)); +} + + + +PythonQtShell_QSqlDriverCreatorBase::~PythonQtShell_QSqlDriverCreatorBase() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QSqlDriver* PythonQtShell_QSqlDriverCreatorBase::createObject() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createObject"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSqlDriver*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSqlDriver* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createObject", methodInfo, result); + } else { + returnValue = *((QSqlDriver**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +QSqlDriverCreatorBase* PythonQtWrapper_QSqlDriverCreatorBase::new_QSqlDriverCreatorBase() +{ +return new PythonQtShell_QSqlDriverCreatorBase(); } + + + +QSqlError* PythonQtWrapper_QSqlError::new_QSqlError(const QSqlError& other) +{ +return new QSqlError(other); } + +QSqlError* PythonQtWrapper_QSqlError::new_QSqlError(const QString& driverText, const QString& databaseText, QSqlError::ErrorType type, int number) +{ +return new QSqlError(driverText, databaseText, type, number); } + +QString PythonQtWrapper_QSqlError::databaseText(QSqlError* theWrappedObject) const +{ + return ( theWrappedObject->databaseText()); +} + +QString PythonQtWrapper_QSqlError::driverText(QSqlError* theWrappedObject) const +{ + return ( theWrappedObject->driverText()); +} + +bool PythonQtWrapper_QSqlError::isValid(QSqlError* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +int PythonQtWrapper_QSqlError::number(QSqlError* theWrappedObject) const +{ + return ( theWrappedObject->number()); +} + +bool PythonQtWrapper_QSqlError::__ne__(QSqlError* theWrappedObject, const QSqlError& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QSqlError::__eq__(QSqlError* theWrappedObject, const QSqlError& other) const +{ + return ( (*theWrappedObject)== other); +} + +void PythonQtWrapper_QSqlError::setDatabaseText(QSqlError* theWrappedObject, const QString& databaseText) +{ + ( theWrappedObject->setDatabaseText(databaseText)); +} + +void PythonQtWrapper_QSqlError::setDriverText(QSqlError* theWrappedObject, const QString& driverText) +{ + ( theWrappedObject->setDriverText(driverText)); +} + +void PythonQtWrapper_QSqlError::setNumber(QSqlError* theWrappedObject, int number) +{ + ( theWrappedObject->setNumber(number)); +} + +void PythonQtWrapper_QSqlError::setType(QSqlError* theWrappedObject, QSqlError::ErrorType type) +{ + ( theWrappedObject->setType(type)); +} + +QString PythonQtWrapper_QSqlError::text(QSqlError* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + +QSqlError::ErrorType PythonQtWrapper_QSqlError::type(QSqlError* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + +QString PythonQtWrapper_QSqlError::py_toString(QSqlError* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QSqlField* PythonQtWrapper_QSqlField::new_QSqlField(const QSqlField& other) +{ +return new QSqlField(other); } + +QSqlField* PythonQtWrapper_QSqlField::new_QSqlField(const QString& fieldName, QVariant::Type type) +{ +return new QSqlField(fieldName, type); } + +void PythonQtWrapper_QSqlField::clear(QSqlField* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +QVariant PythonQtWrapper_QSqlField::defaultValue(QSqlField* theWrappedObject) const +{ + return ( theWrappedObject->defaultValue()); +} + +bool PythonQtWrapper_QSqlField::isAutoValue(QSqlField* theWrappedObject) const +{ + return ( theWrappedObject->isAutoValue()); +} + +bool PythonQtWrapper_QSqlField::isGenerated(QSqlField* theWrappedObject) const +{ + return ( theWrappedObject->isGenerated()); +} + +bool PythonQtWrapper_QSqlField::isNull(QSqlField* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QSqlField::isReadOnly(QSqlField* theWrappedObject) const +{ + return ( theWrappedObject->isReadOnly()); +} + +bool PythonQtWrapper_QSqlField::isValid(QSqlField* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +int PythonQtWrapper_QSqlField::length(QSqlField* theWrappedObject) const +{ + return ( theWrappedObject->length()); +} + +QString PythonQtWrapper_QSqlField::name(QSqlField* theWrappedObject) const +{ + return ( theWrappedObject->name()); +} + +bool PythonQtWrapper_QSqlField::__ne__(QSqlField* theWrappedObject, const QSqlField& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QSqlField::__eq__(QSqlField* theWrappedObject, const QSqlField& other) const +{ + return ( (*theWrappedObject)== other); +} + +int PythonQtWrapper_QSqlField::precision(QSqlField* theWrappedObject) const +{ + return ( theWrappedObject->precision()); +} + +QSqlField::RequiredStatus PythonQtWrapper_QSqlField::requiredStatus(QSqlField* theWrappedObject) const +{ + return ( theWrappedObject->requiredStatus()); +} + +void PythonQtWrapper_QSqlField::setAutoValue(QSqlField* theWrappedObject, bool autoVal) +{ + ( theWrappedObject->setAutoValue(autoVal)); +} + +void PythonQtWrapper_QSqlField::setDefaultValue(QSqlField* theWrappedObject, const QVariant& value) +{ + ( theWrappedObject->setDefaultValue(value)); +} + +void PythonQtWrapper_QSqlField::setGenerated(QSqlField* theWrappedObject, bool gen) +{ + ( theWrappedObject->setGenerated(gen)); +} + +void PythonQtWrapper_QSqlField::setLength(QSqlField* theWrappedObject, int fieldLength) +{ + ( theWrappedObject->setLength(fieldLength)); +} + +void PythonQtWrapper_QSqlField::setName(QSqlField* theWrappedObject, const QString& name) +{ + ( theWrappedObject->setName(name)); +} + +void PythonQtWrapper_QSqlField::setPrecision(QSqlField* theWrappedObject, int precision) +{ + ( theWrappedObject->setPrecision(precision)); +} + +void PythonQtWrapper_QSqlField::setReadOnly(QSqlField* theWrappedObject, bool readOnly) +{ + ( theWrappedObject->setReadOnly(readOnly)); +} + +void PythonQtWrapper_QSqlField::setRequired(QSqlField* theWrappedObject, bool required) +{ + ( theWrappedObject->setRequired(required)); +} + +void PythonQtWrapper_QSqlField::setRequiredStatus(QSqlField* theWrappedObject, QSqlField::RequiredStatus status) +{ + ( theWrappedObject->setRequiredStatus(status)); +} + +void PythonQtWrapper_QSqlField::setSqlType(QSqlField* theWrappedObject, int type) +{ + ( theWrappedObject->setSqlType(type)); +} + +void PythonQtWrapper_QSqlField::setType(QSqlField* theWrappedObject, QVariant::Type type) +{ + ( theWrappedObject->setType(type)); +} + +void PythonQtWrapper_QSqlField::setValue(QSqlField* theWrappedObject, const QVariant& value) +{ + ( theWrappedObject->setValue(value)); +} + +QVariant::Type PythonQtWrapper_QSqlField::type(QSqlField* theWrappedObject) const +{ + return ( theWrappedObject->type()); +} + +int PythonQtWrapper_QSqlField::typeID(QSqlField* theWrappedObject) const +{ + return ( theWrappedObject->typeID()); +} + +QVariant PythonQtWrapper_QSqlField::value(QSqlField* theWrappedObject) const +{ + return ( theWrappedObject->value()); +} + +QString PythonQtWrapper_QSqlField::py_toString(QSqlField* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QSqlIndex* PythonQtWrapper_QSqlIndex::new_QSqlIndex(const QSqlIndex& other) +{ +return new QSqlIndex(other); } + +QSqlIndex* PythonQtWrapper_QSqlIndex::new_QSqlIndex(const QString& cursorName, const QString& name) +{ +return new QSqlIndex(cursorName, name); } + +void PythonQtWrapper_QSqlIndex::append(QSqlIndex* theWrappedObject, const QSqlField& field) +{ + ( theWrappedObject->append(field)); +} + +void PythonQtWrapper_QSqlIndex::append(QSqlIndex* theWrappedObject, const QSqlField& field, bool desc) +{ + ( theWrappedObject->append(field, desc)); +} + +QString PythonQtWrapper_QSqlIndex::cursorName(QSqlIndex* theWrappedObject) const +{ + return ( theWrappedObject->cursorName()); +} + +bool PythonQtWrapper_QSqlIndex::isDescending(QSqlIndex* theWrappedObject, int i) const +{ + return ( theWrappedObject->isDescending(i)); +} + +QString PythonQtWrapper_QSqlIndex::name(QSqlIndex* theWrappedObject) const +{ + return ( theWrappedObject->name()); +} + +void PythonQtWrapper_QSqlIndex::setCursorName(QSqlIndex* theWrappedObject, const QString& cursorName) +{ + ( theWrappedObject->setCursorName(cursorName)); +} + +void PythonQtWrapper_QSqlIndex::setDescending(QSqlIndex* theWrappedObject, int i, bool desc) +{ + ( theWrappedObject->setDescending(i, desc)); +} + +void PythonQtWrapper_QSqlIndex::setName(QSqlIndex* theWrappedObject, const QString& name) +{ + ( theWrappedObject->setName(name)); +} + + + +QSqlQuery* PythonQtWrapper_QSqlQuery::new_QSqlQuery(QSqlDatabase db) +{ +return new QSqlQuery(db); } + +QSqlQuery* PythonQtWrapper_QSqlQuery::new_QSqlQuery(QSqlResult* r) +{ +return new QSqlQuery(r); } + +QSqlQuery* PythonQtWrapper_QSqlQuery::new_QSqlQuery(const QSqlQuery& other) +{ +return new QSqlQuery(other); } + +QSqlQuery* PythonQtWrapper_QSqlQuery::new_QSqlQuery(const QString& query, QSqlDatabase db) +{ +return new QSqlQuery(query, db); } + +void PythonQtWrapper_QSqlQuery::addBindValue(QSqlQuery* theWrappedObject, const QVariant& val, QSql::ParamType type) +{ + ( theWrappedObject->addBindValue(val, type)); +} + +int PythonQtWrapper_QSqlQuery::at(QSqlQuery* theWrappedObject) const +{ + return ( theWrappedObject->at()); +} + +void PythonQtWrapper_QSqlQuery::bindValue(QSqlQuery* theWrappedObject, const QString& placeholder, const QVariant& val, QSql::ParamType type) +{ + ( theWrappedObject->bindValue(placeholder, val, type)); +} + +void PythonQtWrapper_QSqlQuery::bindValue(QSqlQuery* theWrappedObject, int pos, const QVariant& val, QSql::ParamType type) +{ + ( theWrappedObject->bindValue(pos, val, type)); +} + +QVariant PythonQtWrapper_QSqlQuery::boundValue(QSqlQuery* theWrappedObject, const QString& placeholder) const +{ + return ( theWrappedObject->boundValue(placeholder)); +} + +QVariant PythonQtWrapper_QSqlQuery::boundValue(QSqlQuery* theWrappedObject, int pos) const +{ + return ( theWrappedObject->boundValue(pos)); +} + +QMap PythonQtWrapper_QSqlQuery::boundValues(QSqlQuery* theWrappedObject) const +{ + return ( theWrappedObject->boundValues()); +} + +void PythonQtWrapper_QSqlQuery::clear(QSqlQuery* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +const QSqlDriver* PythonQtWrapper_QSqlQuery::driver(QSqlQuery* theWrappedObject) const +{ + return ( theWrappedObject->driver()); +} + +bool PythonQtWrapper_QSqlQuery::exec(QSqlQuery* theWrappedObject) +{ + return ( theWrappedObject->exec()); +} + +bool PythonQtWrapper_QSqlQuery::exec(QSqlQuery* theWrappedObject, const QString& query) +{ + return ( theWrappedObject->exec(query)); +} + +bool PythonQtWrapper_QSqlQuery::execBatch(QSqlQuery* theWrappedObject, QSqlQuery::BatchExecutionMode mode) +{ + return ( theWrappedObject->execBatch(mode)); +} + +QString PythonQtWrapper_QSqlQuery::executedQuery(QSqlQuery* theWrappedObject) const +{ + return ( theWrappedObject->executedQuery()); +} + +void PythonQtWrapper_QSqlQuery::finish(QSqlQuery* theWrappedObject) +{ + ( theWrappedObject->finish()); +} + +bool PythonQtWrapper_QSqlQuery::first(QSqlQuery* theWrappedObject) +{ + return ( theWrappedObject->first()); +} + +bool PythonQtWrapper_QSqlQuery::isActive(QSqlQuery* theWrappedObject) const +{ + return ( theWrappedObject->isActive()); +} + +bool PythonQtWrapper_QSqlQuery::isForwardOnly(QSqlQuery* theWrappedObject) const +{ + return ( theWrappedObject->isForwardOnly()); +} + +bool PythonQtWrapper_QSqlQuery::isNull(QSqlQuery* theWrappedObject, int field) const +{ + return ( theWrappedObject->isNull(field)); +} + +bool PythonQtWrapper_QSqlQuery::isSelect(QSqlQuery* theWrappedObject) const +{ + return ( theWrappedObject->isSelect()); +} + +bool PythonQtWrapper_QSqlQuery::isValid(QSqlQuery* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +bool PythonQtWrapper_QSqlQuery::last(QSqlQuery* theWrappedObject) +{ + return ( theWrappedObject->last()); +} + +QSqlError PythonQtWrapper_QSqlQuery::lastError(QSqlQuery* theWrappedObject) const +{ + return ( theWrappedObject->lastError()); +} + +QVariant PythonQtWrapper_QSqlQuery::lastInsertId(QSqlQuery* theWrappedObject) const +{ + return ( theWrappedObject->lastInsertId()); +} + +QString PythonQtWrapper_QSqlQuery::lastQuery(QSqlQuery* theWrappedObject) const +{ + return ( theWrappedObject->lastQuery()); +} + +bool PythonQtWrapper_QSqlQuery::next(QSqlQuery* theWrappedObject) +{ + return ( theWrappedObject->next()); +} + +bool PythonQtWrapper_QSqlQuery::nextResult(QSqlQuery* theWrappedObject) +{ + return ( theWrappedObject->nextResult()); +} + +int PythonQtWrapper_QSqlQuery::numRowsAffected(QSqlQuery* theWrappedObject) const +{ + return ( theWrappedObject->numRowsAffected()); +} + +QSql::NumericalPrecisionPolicy PythonQtWrapper_QSqlQuery::numericalPrecisionPolicy(QSqlQuery* theWrappedObject) const +{ + return ( theWrappedObject->numericalPrecisionPolicy()); +} + +bool PythonQtWrapper_QSqlQuery::prepare(QSqlQuery* theWrappedObject, const QString& query) +{ + return ( theWrappedObject->prepare(query)); +} + +bool PythonQtWrapper_QSqlQuery::previous(QSqlQuery* theWrappedObject) +{ + return ( theWrappedObject->previous()); +} + +QSqlRecord PythonQtWrapper_QSqlQuery::record(QSqlQuery* theWrappedObject) const +{ + return ( theWrappedObject->record()); +} + +const QSqlResult* PythonQtWrapper_QSqlQuery::result(QSqlQuery* theWrappedObject) const +{ + return ( theWrappedObject->result()); +} + +bool PythonQtWrapper_QSqlQuery::seek(QSqlQuery* theWrappedObject, int i, bool relative) +{ + return ( theWrappedObject->seek(i, relative)); +} + +void PythonQtWrapper_QSqlQuery::setForwardOnly(QSqlQuery* theWrappedObject, bool forward) +{ + ( theWrappedObject->setForwardOnly(forward)); +} + +void PythonQtWrapper_QSqlQuery::setNumericalPrecisionPolicy(QSqlQuery* theWrappedObject, QSql::NumericalPrecisionPolicy precisionPolicy) +{ + ( theWrappedObject->setNumericalPrecisionPolicy(precisionPolicy)); +} + +int PythonQtWrapper_QSqlQuery::size(QSqlQuery* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +QVariant PythonQtWrapper_QSqlQuery::value(QSqlQuery* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->value(name)); +} + +QVariant PythonQtWrapper_QSqlQuery::value(QSqlQuery* theWrappedObject, int i) const +{ + return ( theWrappedObject->value(i)); +} + + + +PythonQtShell_QSqlQueryModel::~PythonQtShell_QSqlQueryModel() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QModelIndex PythonQtShell_QSqlQueryModel::buddy(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "buddy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("buddy", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::buddy(index); +} +bool PythonQtShell_QSqlQueryModel::canDropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canDropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canDropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::canDropMimeData(data, action, row, column, parent); +} +bool PythonQtShell_QSqlQueryModel::canFetchMore(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canFetchMore"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canFetchMore", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::canFetchMore(parent); +} +void PythonQtShell_QSqlQueryModel::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlQueryModel::childEvent(arg__1); +} +void PythonQtShell_QSqlQueryModel::clear() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlQueryModel::clear(); +} +int PythonQtShell_QSqlQueryModel::columnCount(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "columnCount"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("columnCount", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::columnCount(parent); +} +void PythonQtShell_QSqlQueryModel::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlQueryModel::customEvent(arg__1); +} +QVariant PythonQtShell_QSqlQueryModel::data(const QModelIndex& item, int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&item, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::data(item, role); +} +bool PythonQtShell_QSqlQueryModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::dropMimeData(data, action, row, column, parent); +} +bool PythonQtShell_QSqlQueryModel::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::event(arg__1); +} +bool PythonQtShell_QSqlQueryModel::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QSqlQueryModel::fetchMore(const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchMore"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlQueryModel::fetchMore(parent); +} +Qt::ItemFlags PythonQtShell_QSqlQueryModel::flags(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "flags"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + Qt::ItemFlags returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("flags", methodInfo, result); + } else { + returnValue = *((Qt::ItemFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::flags(index); +} +QVariant PythonQtShell_QSqlQueryModel::headerData(int section, Qt::Orientation orientation, int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "headerData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "int" , "Qt::Orientation" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QVariant returnValue; + void* args[4] = {NULL, (void*)§ion, (void*)&orientation, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("headerData", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::headerData(section, orientation, role); +} +QModelIndex PythonQtShell_QSqlQueryModel::index(int row, int column, const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "index"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QModelIndex returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("index", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::index(row, column, parent); +} +QModelIndex PythonQtShell_QSqlQueryModel::indexInQuery(const QModelIndex& item) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexInQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&item}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexInQuery", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::indexInQuery(item); +} +bool PythonQtShell_QSqlQueryModel::insertColumns(int column, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::insertColumns(column, count, parent); +} +bool PythonQtShell_QSqlQueryModel::insertRows(int row, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::insertRows(row, count, parent); +} +QMap PythonQtShell_QSqlQueryModel::itemData(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMap" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMap returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemData", methodInfo, result); + } else { + returnValue = *((QMap*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::itemData(index); +} +QList PythonQtShell_QSqlQueryModel::match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "match"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList" , "const QModelIndex&" , "int" , "const QVariant&" , "int" , "Qt::MatchFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + QList returnValue; + void* args[6] = {NULL, (void*)&start, (void*)&role, (void*)&value, (void*)&hits, (void*)&flags}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("match", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::match(start, role, value, hits, flags); +} +QMimeData* PythonQtShell_QSqlQueryModel::mimeData(const QList& indexes) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMimeData*" , "const QList&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMimeData* returnValue; + void* args[2] = {NULL, (void*)&indexes}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); + } else { + returnValue = *((QMimeData**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::mimeData(indexes); +} +QStringList PythonQtShell_QSqlQueryModel::mimeTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStringList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStringList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); + } else { + returnValue = *((QStringList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::mimeTypes(); +} +bool PythonQtShell_QSqlQueryModel::moveColumns(const QModelIndex& sourceParent, int sourceColumn, int count, const QModelIndex& destinationParent, int destinationChild) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "int" , "int" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&sourceParent, (void*)&sourceColumn, (void*)&count, (void*)&destinationParent, (void*)&destinationChild}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("moveColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); +} +bool PythonQtShell_QSqlQueryModel::moveRows(const QModelIndex& sourceParent, int sourceRow, int count, const QModelIndex& destinationParent, int destinationChild) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "int" , "int" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&sourceParent, (void*)&sourceRow, (void*)&count, (void*)&destinationParent, (void*)&destinationChild}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("moveRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); +} +void PythonQtShell_QSqlQueryModel::queryChange() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "queryChange"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlQueryModel::queryChange(); +} +bool PythonQtShell_QSqlQueryModel::removeColumns(int column, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("removeColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::removeColumns(column, count, parent); +} +bool PythonQtShell_QSqlQueryModel::removeRows(int row, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("removeRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::removeRows(row, count, parent); +} +void PythonQtShell_QSqlQueryModel::revert() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "revert"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlQueryModel::revert(); +} +QHash PythonQtShell_QSqlQueryModel::roleNames() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "roleNames"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QHash"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QHash returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("roleNames", methodInfo, result); + } else { + returnValue = *((QHash*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::roleNames(); +} +int PythonQtShell_QSqlQueryModel::rowCount(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowCount"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("rowCount", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::rowCount(parent); +} +bool PythonQtShell_QSqlQueryModel::setData(const QModelIndex& index, const QVariant& value, int role) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::setData(index, value, role); +} +bool PythonQtShell_QSqlQueryModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setHeaderData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setHeaderData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::setHeaderData(section, orientation, value, role); +} +bool PythonQtShell_QSqlQueryModel::setItemData(const QModelIndex& index, const QMap& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setItemData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setItemData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::setItemData(index, roles); +} +QModelIndex PythonQtShell_QSqlQueryModel::sibling(int row, int column, const QModelIndex& idx) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sibling"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QModelIndex returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&idx}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sibling", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::sibling(row, column, idx); +} +void PythonQtShell_QSqlQueryModel::sort(int column, Qt::SortOrder order) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sort"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "Qt::SortOrder"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&column, (void*)&order}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlQueryModel::sort(column, order); +} +QSize PythonQtShell_QSqlQueryModel::span(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "span"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QSize returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("span", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::span(index); +} +bool PythonQtShell_QSqlQueryModel::submit() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "submit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("submit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::submit(); +} +Qt::DropActions PythonQtShell_QSqlQueryModel::supportedDragActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDragActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDragActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::supportedDragActions(); +} +Qt::DropActions PythonQtShell_QSqlQueryModel::supportedDropActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlQueryModel::supportedDropActions(); +} +void PythonQtShell_QSqlQueryModel::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlQueryModel::timerEvent(arg__1); +} +QSqlQueryModel* PythonQtWrapper_QSqlQueryModel::new_QSqlQueryModel(QObject* parent) +{ +return new PythonQtShell_QSqlQueryModel(parent); } + +bool PythonQtWrapper_QSqlQueryModel::canFetchMore(QSqlQueryModel* theWrappedObject, const QModelIndex& parent) const +{ + return ( ((PythonQtPublicPromoter_QSqlQueryModel*)theWrappedObject)->promoted_canFetchMore(parent)); +} + +void PythonQtWrapper_QSqlQueryModel::clear(QSqlQueryModel* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QSqlQueryModel*)theWrappedObject)->promoted_clear()); +} + +int PythonQtWrapper_QSqlQueryModel::columnCount(QSqlQueryModel* theWrappedObject, const QModelIndex& parent) const +{ + return ( ((PythonQtPublicPromoter_QSqlQueryModel*)theWrappedObject)->promoted_columnCount(parent)); +} + +QVariant PythonQtWrapper_QSqlQueryModel::data(QSqlQueryModel* theWrappedObject, const QModelIndex& item, int role) const +{ + return ( ((PythonQtPublicPromoter_QSqlQueryModel*)theWrappedObject)->promoted_data(item, role)); +} + +void PythonQtWrapper_QSqlQueryModel::fetchMore(QSqlQueryModel* theWrappedObject, const QModelIndex& parent) +{ + ( ((PythonQtPublicPromoter_QSqlQueryModel*)theWrappedObject)->promoted_fetchMore(parent)); +} + +QVariant PythonQtWrapper_QSqlQueryModel::headerData(QSqlQueryModel* theWrappedObject, int section, Qt::Orientation orientation, int role) const +{ + return ( ((PythonQtPublicPromoter_QSqlQueryModel*)theWrappedObject)->promoted_headerData(section, orientation, role)); +} + +QModelIndex PythonQtWrapper_QSqlQueryModel::indexInQuery(QSqlQueryModel* theWrappedObject, const QModelIndex& item) const +{ + return ( ((PythonQtPublicPromoter_QSqlQueryModel*)theWrappedObject)->promoted_indexInQuery(item)); +} + +bool PythonQtWrapper_QSqlQueryModel::insertColumns(QSqlQueryModel* theWrappedObject, int column, int count, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QSqlQueryModel*)theWrappedObject)->promoted_insertColumns(column, count, parent)); +} + +QSqlError PythonQtWrapper_QSqlQueryModel::lastError(QSqlQueryModel* theWrappedObject) const +{ + return ( theWrappedObject->lastError()); +} + +QSqlQuery PythonQtWrapper_QSqlQueryModel::query(QSqlQueryModel* theWrappedObject) const +{ + return ( theWrappedObject->query()); +} + +void PythonQtWrapper_QSqlQueryModel::queryChange(QSqlQueryModel* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QSqlQueryModel*)theWrappedObject)->promoted_queryChange()); +} + +QSqlRecord PythonQtWrapper_QSqlQueryModel::record(QSqlQueryModel* theWrappedObject) const +{ + return ( theWrappedObject->record()); +} + +QSqlRecord PythonQtWrapper_QSqlQueryModel::record(QSqlQueryModel* theWrappedObject, int row) const +{ + return ( theWrappedObject->record(row)); +} + +bool PythonQtWrapper_QSqlQueryModel::removeColumns(QSqlQueryModel* theWrappedObject, int column, int count, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QSqlQueryModel*)theWrappedObject)->promoted_removeColumns(column, count, parent)); +} + +int PythonQtWrapper_QSqlQueryModel::rowCount(QSqlQueryModel* theWrappedObject, const QModelIndex& parent) const +{ + return ( ((PythonQtPublicPromoter_QSqlQueryModel*)theWrappedObject)->promoted_rowCount(parent)); +} + +bool PythonQtWrapper_QSqlQueryModel::setHeaderData(QSqlQueryModel* theWrappedObject, int section, Qt::Orientation orientation, const QVariant& value, int role) +{ + return ( ((PythonQtPublicPromoter_QSqlQueryModel*)theWrappedObject)->promoted_setHeaderData(section, orientation, value, role)); +} + +void PythonQtWrapper_QSqlQueryModel::setQuery(QSqlQueryModel* theWrappedObject, const QSqlQuery& query) +{ + ( theWrappedObject->setQuery(query)); +} + +void PythonQtWrapper_QSqlQueryModel::setQuery(QSqlQueryModel* theWrappedObject, const QString& query, const QSqlDatabase& db) +{ + ( theWrappedObject->setQuery(query, db)); +} + + + +QSqlRecord* PythonQtWrapper_QSqlRecord::new_QSqlRecord() +{ +return new QSqlRecord(); } + +QSqlRecord* PythonQtWrapper_QSqlRecord::new_QSqlRecord(const QSqlRecord& other) +{ +return new QSqlRecord(other); } + +void PythonQtWrapper_QSqlRecord::append(QSqlRecord* theWrappedObject, const QSqlField& field) +{ + ( theWrappedObject->append(field)); +} + +void PythonQtWrapper_QSqlRecord::clear(QSqlRecord* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +void PythonQtWrapper_QSqlRecord::clearValues(QSqlRecord* theWrappedObject) +{ + ( theWrappedObject->clearValues()); +} + +bool PythonQtWrapper_QSqlRecord::contains(QSqlRecord* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->contains(name)); +} + +int PythonQtWrapper_QSqlRecord::count(QSqlRecord* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +QSqlField PythonQtWrapper_QSqlRecord::field(QSqlRecord* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->field(name)); +} + +QSqlField PythonQtWrapper_QSqlRecord::field(QSqlRecord* theWrappedObject, int i) const +{ + return ( theWrappedObject->field(i)); +} + +QString PythonQtWrapper_QSqlRecord::fieldName(QSqlRecord* theWrappedObject, int i) const +{ + return ( theWrappedObject->fieldName(i)); +} + +int PythonQtWrapper_QSqlRecord::indexOf(QSqlRecord* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->indexOf(name)); +} + +void PythonQtWrapper_QSqlRecord::insert(QSqlRecord* theWrappedObject, int pos, const QSqlField& field) +{ + ( theWrappedObject->insert(pos, field)); +} + +bool PythonQtWrapper_QSqlRecord::isEmpty(QSqlRecord* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +bool PythonQtWrapper_QSqlRecord::isGenerated(QSqlRecord* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->isGenerated(name)); +} + +bool PythonQtWrapper_QSqlRecord::isGenerated(QSqlRecord* theWrappedObject, int i) const +{ + return ( theWrappedObject->isGenerated(i)); +} + +bool PythonQtWrapper_QSqlRecord::isNull(QSqlRecord* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->isNull(name)); +} + +bool PythonQtWrapper_QSqlRecord::isNull(QSqlRecord* theWrappedObject, int i) const +{ + return ( theWrappedObject->isNull(i)); +} + +bool PythonQtWrapper_QSqlRecord::__ne__(QSqlRecord* theWrappedObject, const QSqlRecord& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QSqlRecord::__eq__(QSqlRecord* theWrappedObject, const QSqlRecord& other) const +{ + return ( (*theWrappedObject)== other); +} + +void PythonQtWrapper_QSqlRecord::remove(QSqlRecord* theWrappedObject, int pos) +{ + ( theWrappedObject->remove(pos)); +} + +void PythonQtWrapper_QSqlRecord::replace(QSqlRecord* theWrappedObject, int pos, const QSqlField& field) +{ + ( theWrappedObject->replace(pos, field)); +} + +void PythonQtWrapper_QSqlRecord::setGenerated(QSqlRecord* theWrappedObject, const QString& name, bool generated) +{ + ( theWrappedObject->setGenerated(name, generated)); +} + +void PythonQtWrapper_QSqlRecord::setGenerated(QSqlRecord* theWrappedObject, int i, bool generated) +{ + ( theWrappedObject->setGenerated(i, generated)); +} + +void PythonQtWrapper_QSqlRecord::setNull(QSqlRecord* theWrappedObject, const QString& name) +{ + ( theWrappedObject->setNull(name)); +} + +void PythonQtWrapper_QSqlRecord::setNull(QSqlRecord* theWrappedObject, int i) +{ + ( theWrappedObject->setNull(i)); +} + +void PythonQtWrapper_QSqlRecord::setValue(QSqlRecord* theWrappedObject, const QString& name, const QVariant& val) +{ + ( theWrappedObject->setValue(name, val)); +} + +void PythonQtWrapper_QSqlRecord::setValue(QSqlRecord* theWrappedObject, int i, const QVariant& val) +{ + ( theWrappedObject->setValue(i, val)); +} + +QVariant PythonQtWrapper_QSqlRecord::value(QSqlRecord* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->value(name)); +} + +QVariant PythonQtWrapper_QSqlRecord::value(QSqlRecord* theWrappedObject, int i) const +{ + return ( theWrappedObject->value(i)); +} + +QString PythonQtWrapper_QSqlRecord::py_toString(QSqlRecord* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +QSqlRelation* PythonQtWrapper_QSqlRelation::new_QSqlRelation() +{ +return new QSqlRelation(); } + +QSqlRelation* PythonQtWrapper_QSqlRelation::new_QSqlRelation(const QString& aTableName, const QString& indexCol, const QString& displayCol) +{ +return new QSqlRelation(aTableName, indexCol, displayCol); } + +QString PythonQtWrapper_QSqlRelation::displayColumn(QSqlRelation* theWrappedObject) const +{ + return ( theWrappedObject->displayColumn()); +} + +QString PythonQtWrapper_QSqlRelation::indexColumn(QSqlRelation* theWrappedObject) const +{ + return ( theWrappedObject->indexColumn()); +} + +bool PythonQtWrapper_QSqlRelation::isValid(QSqlRelation* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +QString PythonQtWrapper_QSqlRelation::tableName(QSqlRelation* theWrappedObject) const +{ + return ( theWrappedObject->tableName()); +} + + + +PythonQtShell_QSqlRelationalTableModel::~PythonQtShell_QSqlRelationalTableModel() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QModelIndex PythonQtShell_QSqlRelationalTableModel::buddy(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "buddy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("buddy", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::buddy(index); +} +bool PythonQtShell_QSqlRelationalTableModel::canDropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canDropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canDropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::canDropMimeData(data, action, row, column, parent); +} +bool PythonQtShell_QSqlRelationalTableModel::canFetchMore(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canFetchMore"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canFetchMore", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::canFetchMore(parent); +} +void PythonQtShell_QSqlRelationalTableModel::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlRelationalTableModel::childEvent(arg__1); +} +void PythonQtShell_QSqlRelationalTableModel::clear() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlRelationalTableModel::clear(); +} +int PythonQtShell_QSqlRelationalTableModel::columnCount(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "columnCount"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("columnCount", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::columnCount(parent); +} +void PythonQtShell_QSqlRelationalTableModel::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlRelationalTableModel::customEvent(arg__1); +} +QVariant PythonQtShell_QSqlRelationalTableModel::data(const QModelIndex& item, int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&item, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::data(item, role); +} +bool PythonQtShell_QSqlRelationalTableModel::deleteRowFromTable(int row) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "deleteRowFromTable"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&row}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("deleteRowFromTable", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::deleteRowFromTable(row); +} +bool PythonQtShell_QSqlRelationalTableModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::dropMimeData(data, action, row, column, parent); +} +bool PythonQtShell_QSqlRelationalTableModel::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::event(arg__1); +} +bool PythonQtShell_QSqlRelationalTableModel::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QSqlRelationalTableModel::fetchMore(const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchMore"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlRelationalTableModel::fetchMore(parent); +} +Qt::ItemFlags PythonQtShell_QSqlRelationalTableModel::flags(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "flags"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + Qt::ItemFlags returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("flags", methodInfo, result); + } else { + returnValue = *((Qt::ItemFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::flags(index); +} +QVariant PythonQtShell_QSqlRelationalTableModel::headerData(int section, Qt::Orientation orientation, int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "headerData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "int" , "Qt::Orientation" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QVariant returnValue; + void* args[4] = {NULL, (void*)§ion, (void*)&orientation, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("headerData", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::headerData(section, orientation, role); +} +QModelIndex PythonQtShell_QSqlRelationalTableModel::index(int row, int column, const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "index"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QModelIndex returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("index", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::index(row, column, parent); +} +QModelIndex PythonQtShell_QSqlRelationalTableModel::indexInQuery(const QModelIndex& item) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexInQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&item}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexInQuery", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::indexInQuery(item); +} +bool PythonQtShell_QSqlRelationalTableModel::insertColumns(int column, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::insertColumns(column, count, parent); +} +bool PythonQtShell_QSqlRelationalTableModel::insertRowIntoTable(const QSqlRecord& values) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertRowIntoTable"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QSqlRecord&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&values}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertRowIntoTable", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::insertRowIntoTable(values); +} +bool PythonQtShell_QSqlRelationalTableModel::insertRows(int row, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::insertRows(row, count, parent); +} +QMap PythonQtShell_QSqlRelationalTableModel::itemData(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMap" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMap returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemData", methodInfo, result); + } else { + returnValue = *((QMap*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::itemData(index); +} +QList PythonQtShell_QSqlRelationalTableModel::match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "match"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList" , "const QModelIndex&" , "int" , "const QVariant&" , "int" , "Qt::MatchFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + QList returnValue; + void* args[6] = {NULL, (void*)&start, (void*)&role, (void*)&value, (void*)&hits, (void*)&flags}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("match", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::match(start, role, value, hits, flags); +} +QMimeData* PythonQtShell_QSqlRelationalTableModel::mimeData(const QList& indexes) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMimeData*" , "const QList&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMimeData* returnValue; + void* args[2] = {NULL, (void*)&indexes}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); + } else { + returnValue = *((QMimeData**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::mimeData(indexes); +} +QStringList PythonQtShell_QSqlRelationalTableModel::mimeTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStringList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStringList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); + } else { + returnValue = *((QStringList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::mimeTypes(); +} +bool PythonQtShell_QSqlRelationalTableModel::moveColumns(const QModelIndex& sourceParent, int sourceColumn, int count, const QModelIndex& destinationParent, int destinationChild) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "int" , "int" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&sourceParent, (void*)&sourceColumn, (void*)&count, (void*)&destinationParent, (void*)&destinationChild}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("moveColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); +} +bool PythonQtShell_QSqlRelationalTableModel::moveRows(const QModelIndex& sourceParent, int sourceRow, int count, const QModelIndex& destinationParent, int destinationChild) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "int" , "int" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&sourceParent, (void*)&sourceRow, (void*)&count, (void*)&destinationParent, (void*)&destinationChild}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("moveRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); +} +QString PythonQtShell_QSqlRelationalTableModel::orderByClause() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "orderByClause"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QString returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("orderByClause", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::orderByClause(); +} +void PythonQtShell_QSqlRelationalTableModel::queryChange() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "queryChange"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlRelationalTableModel::queryChange(); +} +QSqlTableModel* PythonQtShell_QSqlRelationalTableModel::relationModel(int column) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "relationModel"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSqlTableModel*" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QSqlTableModel* returnValue; + void* args[2] = {NULL, (void*)&column}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("relationModel", methodInfo, result); + } else { + returnValue = *((QSqlTableModel**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::relationModel(column); +} +bool PythonQtShell_QSqlRelationalTableModel::removeColumns(int column, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("removeColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::removeColumns(column, count, parent); +} +bool PythonQtShell_QSqlRelationalTableModel::removeRows(int row, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("removeRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::removeRows(row, count, parent); +} +void PythonQtShell_QSqlRelationalTableModel::revert() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "revert"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlRelationalTableModel::revert(); +} +void PythonQtShell_QSqlRelationalTableModel::revertRow(int row) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "revertRow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&row}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlRelationalTableModel::revertRow(row); +} +QHash PythonQtShell_QSqlRelationalTableModel::roleNames() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "roleNames"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QHash"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QHash returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("roleNames", methodInfo, result); + } else { + returnValue = *((QHash*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::roleNames(); +} +int PythonQtShell_QSqlRelationalTableModel::rowCount(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowCount"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("rowCount", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::rowCount(parent); +} +bool PythonQtShell_QSqlRelationalTableModel::select() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "select"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("select", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::select(); +} +bool PythonQtShell_QSqlRelationalTableModel::selectRow(int row) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectRow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&row}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectRow", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::selectRow(row); +} +QString PythonQtShell_QSqlRelationalTableModel::selectStatement() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectStatement"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QString returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectStatement", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::selectStatement(); +} +bool PythonQtShell_QSqlRelationalTableModel::setData(const QModelIndex& item, const QVariant& value, int role) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&item, (void*)&value, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::setData(item, value, role); +} +void PythonQtShell_QSqlRelationalTableModel::setEditStrategy(QSqlTableModel::EditStrategy strategy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setEditStrategy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QSqlTableModel::EditStrategy"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&strategy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlRelationalTableModel::setEditStrategy(strategy); +} +void PythonQtShell_QSqlRelationalTableModel::setFilter(const QString& filter) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&filter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlRelationalTableModel::setFilter(filter); +} +bool PythonQtShell_QSqlRelationalTableModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setHeaderData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setHeaderData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::setHeaderData(section, orientation, value, role); +} +bool PythonQtShell_QSqlRelationalTableModel::setItemData(const QModelIndex& index, const QMap& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setItemData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setItemData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::setItemData(index, roles); +} +void PythonQtShell_QSqlRelationalTableModel::setRelation(int column, const QSqlRelation& relation) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRelation"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "const QSqlRelation&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&column, (void*)&relation}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlRelationalTableModel::setRelation(column, relation); +} +void PythonQtShell_QSqlRelationalTableModel::setSort(int column, Qt::SortOrder order) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSort"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "Qt::SortOrder"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&column, (void*)&order}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlRelationalTableModel::setSort(column, order); +} +void PythonQtShell_QSqlRelationalTableModel::setTable(const QString& tableName) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setTable"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&tableName}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlRelationalTableModel::setTable(tableName); +} +QModelIndex PythonQtShell_QSqlRelationalTableModel::sibling(int row, int column, const QModelIndex& idx) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sibling"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QModelIndex returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&idx}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sibling", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::sibling(row, column, idx); +} +void PythonQtShell_QSqlRelationalTableModel::sort(int column, Qt::SortOrder order) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sort"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "Qt::SortOrder"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&column, (void*)&order}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlRelationalTableModel::sort(column, order); +} +QSize PythonQtShell_QSqlRelationalTableModel::span(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "span"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QSize returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("span", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::span(index); +} +bool PythonQtShell_QSqlRelationalTableModel::submit() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "submit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("submit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::submit(); +} +Qt::DropActions PythonQtShell_QSqlRelationalTableModel::supportedDragActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDragActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDragActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::supportedDragActions(); +} +Qt::DropActions PythonQtShell_QSqlRelationalTableModel::supportedDropActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::supportedDropActions(); +} +void PythonQtShell_QSqlRelationalTableModel::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlRelationalTableModel::timerEvent(arg__1); +} +bool PythonQtShell_QSqlRelationalTableModel::updateRowInTable(int row, const QSqlRecord& values) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateRowInTable"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "const QSqlRecord&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&row, (void*)&values}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("updateRowInTable", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlRelationalTableModel::updateRowInTable(row, values); +} +QSqlRelationalTableModel* PythonQtWrapper_QSqlRelationalTableModel::new_QSqlRelationalTableModel(QObject* parent, QSqlDatabase db) +{ +return new PythonQtShell_QSqlRelationalTableModel(parent, db); } + +void PythonQtWrapper_QSqlRelationalTableModel::clear(QSqlRelationalTableModel* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QSqlRelationalTableModel*)theWrappedObject)->promoted_clear()); +} + +QVariant PythonQtWrapper_QSqlRelationalTableModel::data(QSqlRelationalTableModel* theWrappedObject, const QModelIndex& item, int role) const +{ + return ( ((PythonQtPublicPromoter_QSqlRelationalTableModel*)theWrappedObject)->promoted_data(item, role)); +} + +bool PythonQtWrapper_QSqlRelationalTableModel::insertRowIntoTable(QSqlRelationalTableModel* theWrappedObject, const QSqlRecord& values) +{ + return ( ((PythonQtPublicPromoter_QSqlRelationalTableModel*)theWrappedObject)->promoted_insertRowIntoTable(values)); +} + +QString PythonQtWrapper_QSqlRelationalTableModel::orderByClause(QSqlRelationalTableModel* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSqlRelationalTableModel*)theWrappedObject)->promoted_orderByClause()); +} + +QSqlRelation PythonQtWrapper_QSqlRelationalTableModel::relation(QSqlRelationalTableModel* theWrappedObject, int column) const +{ + return ( theWrappedObject->relation(column)); +} + +QSqlTableModel* PythonQtWrapper_QSqlRelationalTableModel::relationModel(QSqlRelationalTableModel* theWrappedObject, int column) const +{ + return ( ((PythonQtPublicPromoter_QSqlRelationalTableModel*)theWrappedObject)->promoted_relationModel(column)); +} + +bool PythonQtWrapper_QSqlRelationalTableModel::removeColumns(QSqlRelationalTableModel* theWrappedObject, int column, int count, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QSqlRelationalTableModel*)theWrappedObject)->promoted_removeColumns(column, count, parent)); +} + +void PythonQtWrapper_QSqlRelationalTableModel::revertRow(QSqlRelationalTableModel* theWrappedObject, int row) +{ + ( ((PythonQtPublicPromoter_QSqlRelationalTableModel*)theWrappedObject)->promoted_revertRow(row)); +} + +bool PythonQtWrapper_QSqlRelationalTableModel::select(QSqlRelationalTableModel* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QSqlRelationalTableModel*)theWrappedObject)->promoted_select()); +} + +QString PythonQtWrapper_QSqlRelationalTableModel::selectStatement(QSqlRelationalTableModel* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSqlRelationalTableModel*)theWrappedObject)->promoted_selectStatement()); +} + +bool PythonQtWrapper_QSqlRelationalTableModel::setData(QSqlRelationalTableModel* theWrappedObject, const QModelIndex& item, const QVariant& value, int role) +{ + return ( ((PythonQtPublicPromoter_QSqlRelationalTableModel*)theWrappedObject)->promoted_setData(item, value, role)); +} + +void PythonQtWrapper_QSqlRelationalTableModel::setRelation(QSqlRelationalTableModel* theWrappedObject, int column, const QSqlRelation& relation) +{ + ( ((PythonQtPublicPromoter_QSqlRelationalTableModel*)theWrappedObject)->promoted_setRelation(column, relation)); +} + +void PythonQtWrapper_QSqlRelationalTableModel::setTable(QSqlRelationalTableModel* theWrappedObject, const QString& tableName) +{ + ( ((PythonQtPublicPromoter_QSqlRelationalTableModel*)theWrappedObject)->promoted_setTable(tableName)); +} + +bool PythonQtWrapper_QSqlRelationalTableModel::updateRowInTable(QSqlRelationalTableModel* theWrappedObject, int row, const QSqlRecord& values) +{ + return ( ((PythonQtPublicPromoter_QSqlRelationalTableModel*)theWrappedObject)->promoted_updateRowInTable(row, values)); +} + + + +PythonQtShell_QSqlResult::~PythonQtShell_QSqlResult() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QSqlResult::bindValue(const QString& placeholder, const QVariant& val, QSql::ParamType type) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bindValue"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&" , "const QVariant&" , "QSql::ParamType"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&placeholder, (void*)&val, (void*)&type}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlResult::bindValue(placeholder, val, type); +} +void PythonQtShell_QSqlResult::bindValue(int pos, const QVariant& val, QSql::ParamType type) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bindValue"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "const QVariant&" , "QSql::ParamType"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&pos, (void*)&val, (void*)&type}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlResult::bindValue(pos, val, type); +} +QVariant PythonQtShell_QSqlResult::data(int i) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&i}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVariant(); +} +void PythonQtShell_QSqlResult::detachFromResultSet() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "detachFromResultSet"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlResult::detachFromResultSet(); +} +bool PythonQtShell_QSqlResult::exec() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlResult::exec(); +} +bool PythonQtShell_QSqlResult::execBatch(bool arrayBind) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "execBatch"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arrayBind}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("execBatch", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlResult::execBatch(arrayBind); +} +bool PythonQtShell_QSqlResult::fetch(int i) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetch"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&i}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("fetch", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QSqlResult::fetchFirst() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchFirst"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("fetchFirst", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QSqlResult::fetchLast() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchLast"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("fetchLast", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QSqlResult::fetchNext() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchNext"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("fetchNext", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlResult::fetchNext(); +} +bool PythonQtShell_QSqlResult::fetchPrevious() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchPrevious"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("fetchPrevious", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlResult::fetchPrevious(); +} +QVariant PythonQtShell_QSqlResult::handle() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "handle"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QVariant returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("handle", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlResult::handle(); +} +bool PythonQtShell_QSqlResult::isNull(int i) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isNull"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&i}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("isNull", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +QVariant PythonQtShell_QSqlResult::lastInsertId() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "lastInsertId"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QVariant returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("lastInsertId", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlResult::lastInsertId(); +} +bool PythonQtShell_QSqlResult::nextResult() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextResult"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nextResult", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlResult::nextResult(); +} +int PythonQtShell_QSqlResult::numRowsAffected() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "numRowsAffected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("numRowsAffected", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +bool PythonQtShell_QSqlResult::prepare(const QString& query) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "prepare"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("prepare", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlResult::prepare(query); +} +QSqlRecord PythonQtShell_QSqlResult::record() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "record"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSqlRecord"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSqlRecord returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("record", methodInfo, result); + } else { + returnValue = *((QSqlRecord*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlResult::record(); +} +bool PythonQtShell_QSqlResult::reset(const QString& sqlquery) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&sqlquery}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QSqlResult::savePrepare(const QString& sqlquery) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "savePrepare"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&sqlquery}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("savePrepare", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlResult::savePrepare(sqlquery); +} +void PythonQtShell_QSqlResult::setActive(bool a) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setActive"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&a}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlResult::setActive(a); +} +void PythonQtShell_QSqlResult::setAt(int at) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&at}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlResult::setAt(at); +} +void PythonQtShell_QSqlResult::setForwardOnly(bool forward) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setForwardOnly"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&forward}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlResult::setForwardOnly(forward); +} +void PythonQtShell_QSqlResult::setLastError(const QSqlError& e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setLastError"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QSqlError&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlResult::setLastError(e); +} +void PythonQtShell_QSqlResult::setNumericalPrecisionPolicy(QSql::NumericalPrecisionPolicy policy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setNumericalPrecisionPolicy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QSql::NumericalPrecisionPolicy"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&policy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlResult::setNumericalPrecisionPolicy(policy); +} +void PythonQtShell_QSqlResult::setQuery(const QString& query) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlResult::setQuery(query); +} +void PythonQtShell_QSqlResult::setSelect(bool s) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelect"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&s}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlResult::setSelect(s); +} +int PythonQtShell_QSqlResult::size() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +void PythonQtShell_QSqlResult::virtual_hook(int id, void* data) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "virtual_hook"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "void*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&id, (void*)&data}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlResult::virtual_hook(id, data); +} +void PythonQtWrapper_QSqlResult::bindValue(QSqlResult* theWrappedObject, const QString& placeholder, const QVariant& val, QSql::ParamType type) +{ + ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_bindValue(placeholder, val, type)); +} + +void PythonQtWrapper_QSqlResult::bindValue(QSqlResult* theWrappedObject, int pos, const QVariant& val, QSql::ParamType type) +{ + ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_bindValue(pos, val, type)); +} + +void PythonQtWrapper_QSqlResult::detachFromResultSet(QSqlResult* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_detachFromResultSet()); +} + +bool PythonQtWrapper_QSqlResult::exec(QSqlResult* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_exec()); +} + +bool PythonQtWrapper_QSqlResult::execBatch(QSqlResult* theWrappedObject, bool arrayBind) +{ + return ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_execBatch(arrayBind)); +} + +bool PythonQtWrapper_QSqlResult::fetchNext(QSqlResult* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_fetchNext()); +} + +bool PythonQtWrapper_QSqlResult::fetchPrevious(QSqlResult* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_fetchPrevious()); +} + +QVariant PythonQtWrapper_QSqlResult::handle(QSqlResult* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_handle()); +} + +QVariant PythonQtWrapper_QSqlResult::lastInsertId(QSqlResult* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_lastInsertId()); +} + +bool PythonQtWrapper_QSqlResult::nextResult(QSqlResult* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_nextResult()); +} + +bool PythonQtWrapper_QSqlResult::prepare(QSqlResult* theWrappedObject, const QString& query) +{ + return ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_prepare(query)); +} + +QSqlRecord PythonQtWrapper_QSqlResult::record(QSqlResult* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_record()); +} + +bool PythonQtWrapper_QSqlResult::savePrepare(QSqlResult* theWrappedObject, const QString& sqlquery) +{ + return ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_savePrepare(sqlquery)); +} + +void PythonQtWrapper_QSqlResult::setActive(QSqlResult* theWrappedObject, bool a) +{ + ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_setActive(a)); +} + +void PythonQtWrapper_QSqlResult::setAt(QSqlResult* theWrappedObject, int at) +{ + ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_setAt(at)); +} + +void PythonQtWrapper_QSqlResult::setForwardOnly(QSqlResult* theWrappedObject, bool forward) +{ + ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_setForwardOnly(forward)); +} + +void PythonQtWrapper_QSqlResult::setLastError(QSqlResult* theWrappedObject, const QSqlError& e) +{ + ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_setLastError(e)); +} + +void PythonQtWrapper_QSqlResult::setNumericalPrecisionPolicy(QSqlResult* theWrappedObject, QSql::NumericalPrecisionPolicy policy) +{ + ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_setNumericalPrecisionPolicy(policy)); +} + +void PythonQtWrapper_QSqlResult::setQuery(QSqlResult* theWrappedObject, const QString& query) +{ + ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_setQuery(query)); +} + +void PythonQtWrapper_QSqlResult::setSelect(QSqlResult* theWrappedObject, bool s) +{ + ( ((PythonQtPublicPromoter_QSqlResult*)theWrappedObject)->promoted_setSelect(s)); +} + + + +PythonQtShell_QSqlTableModel::~PythonQtShell_QSqlTableModel() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QModelIndex PythonQtShell_QSqlTableModel::buddy(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "buddy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("buddy", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::buddy(index); +} +bool PythonQtShell_QSqlTableModel::canDropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canDropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canDropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::canDropMimeData(data, action, row, column, parent); +} +bool PythonQtShell_QSqlTableModel::canFetchMore(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canFetchMore"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("canFetchMore", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::canFetchMore(parent); +} +void PythonQtShell_QSqlTableModel::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlTableModel::childEvent(arg__1); +} +void PythonQtShell_QSqlTableModel::clear() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlTableModel::clear(); +} +int PythonQtShell_QSqlTableModel::columnCount(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "columnCount"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("columnCount", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::columnCount(parent); +} +void PythonQtShell_QSqlTableModel::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlTableModel::customEvent(arg__1); +} +QVariant PythonQtShell_QSqlTableModel::data(const QModelIndex& idx, int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&idx, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::data(idx, role); +} +bool PythonQtShell_QSqlTableModel::deleteRowFromTable(int row) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "deleteRowFromTable"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&row}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("deleteRowFromTable", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::deleteRowFromTable(row); +} +bool PythonQtShell_QSqlTableModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::dropMimeData(data, action, row, column, parent); +} +bool PythonQtShell_QSqlTableModel::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::event(arg__1); +} +bool PythonQtShell_QSqlTableModel::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QSqlTableModel::fetchMore(const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchMore"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlTableModel::fetchMore(parent); +} +Qt::ItemFlags PythonQtShell_QSqlTableModel::flags(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "flags"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + Qt::ItemFlags returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("flags", methodInfo, result); + } else { + returnValue = *((Qt::ItemFlags*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::flags(index); +} +QVariant PythonQtShell_QSqlTableModel::headerData(int section, Qt::Orientation orientation, int role) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "headerData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "int" , "Qt::Orientation" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QVariant returnValue; + void* args[4] = {NULL, (void*)§ion, (void*)&orientation, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("headerData", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::headerData(section, orientation, role); +} +QModelIndex PythonQtShell_QSqlTableModel::index(int row, int column, const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "index"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QModelIndex returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("index", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::index(row, column, parent); +} +QModelIndex PythonQtShell_QSqlTableModel::indexInQuery(const QModelIndex& item) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexInQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QModelIndex returnValue; + void* args[2] = {NULL, (void*)&item}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("indexInQuery", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::indexInQuery(item); +} +bool PythonQtShell_QSqlTableModel::insertColumns(int column, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::insertColumns(column, count, parent); +} +bool PythonQtShell_QSqlTableModel::insertRowIntoTable(const QSqlRecord& values) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertRowIntoTable"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QSqlRecord&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&values}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertRowIntoTable", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::insertRowIntoTable(values); +} +bool PythonQtShell_QSqlTableModel::insertRows(int row, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("insertRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::insertRows(row, count, parent); +} +QMap PythonQtShell_QSqlTableModel::itemData(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMap" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMap returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemData", methodInfo, result); + } else { + returnValue = *((QMap*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::itemData(index); +} +QList PythonQtShell_QSqlTableModel::match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "match"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList" , "const QModelIndex&" , "int" , "const QVariant&" , "int" , "Qt::MatchFlags"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + QList returnValue; + void* args[6] = {NULL, (void*)&start, (void*)&role, (void*)&value, (void*)&hits, (void*)&flags}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("match", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::match(start, role, value, hits, flags); +} +QMimeData* PythonQtShell_QSqlTableModel::mimeData(const QList& indexes) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QMimeData*" , "const QList&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QMimeData* returnValue; + void* args[2] = {NULL, (void*)&indexes}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); + } else { + returnValue = *((QMimeData**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::mimeData(indexes); +} +QStringList PythonQtShell_QSqlTableModel::mimeTypes() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QStringList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QStringList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); + } else { + returnValue = *((QStringList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::mimeTypes(); +} +bool PythonQtShell_QSqlTableModel::moveColumns(const QModelIndex& sourceParent, int sourceColumn, int count, const QModelIndex& destinationParent, int destinationChild) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "int" , "int" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&sourceParent, (void*)&sourceColumn, (void*)&count, (void*)&destinationParent, (void*)&destinationChild}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("moveColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::moveColumns(sourceParent, sourceColumn, count, destinationParent, destinationChild); +} +bool PythonQtShell_QSqlTableModel::moveRows(const QModelIndex& sourceParent, int sourceRow, int count, const QModelIndex& destinationParent, int destinationChild) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "int" , "int" , "const QModelIndex&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&sourceParent, (void*)&sourceRow, (void*)&count, (void*)&destinationParent, (void*)&destinationChild}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("moveRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::moveRows(sourceParent, sourceRow, count, destinationParent, destinationChild); +} +QString PythonQtShell_QSqlTableModel::orderByClause() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "orderByClause"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QString returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("orderByClause", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::orderByClause(); +} +void PythonQtShell_QSqlTableModel::queryChange() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "queryChange"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlTableModel::queryChange(); +} +bool PythonQtShell_QSqlTableModel::removeColumns(int column, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeColumns"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("removeColumns", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::removeColumns(column, count, parent); +} +bool PythonQtShell_QSqlTableModel::removeRows(int row, int count, const QModelIndex& parent) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeRows"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("removeRows", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::removeRows(row, count, parent); +} +void PythonQtShell_QSqlTableModel::revert() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "revert"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlTableModel::revert(); +} +void PythonQtShell_QSqlTableModel::revertRow(int row) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "revertRow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&row}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlTableModel::revertRow(row); +} +QHash PythonQtShell_QSqlTableModel::roleNames() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "roleNames"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QHash"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QHash returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("roleNames", methodInfo, result); + } else { + returnValue = *((QHash*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::roleNames(); +} +int PythonQtShell_QSqlTableModel::rowCount(const QModelIndex& parent) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowCount"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&parent}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("rowCount", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::rowCount(parent); +} +bool PythonQtShell_QSqlTableModel::select() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "select"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("select", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::select(); +} +bool PythonQtShell_QSqlTableModel::selectRow(int row) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectRow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&row}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectRow", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::selectRow(row); +} +QString PythonQtShell_QSqlTableModel::selectStatement() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectStatement"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QString returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("selectStatement", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::selectStatement(); +} +bool PythonQtShell_QSqlTableModel::setData(const QModelIndex& index, const QVariant& value, int role) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::setData(index, value, role); +} +void PythonQtShell_QSqlTableModel::setEditStrategy(QSqlTableModel::EditStrategy strategy) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setEditStrategy"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QSqlTableModel::EditStrategy"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&strategy}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlTableModel::setEditStrategy(strategy); +} +void PythonQtShell_QSqlTableModel::setFilter(const QString& filter) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&filter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlTableModel::setFilter(filter); +} +bool PythonQtShell_QSqlTableModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setHeaderData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setHeaderData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::setHeaderData(section, orientation, value, role); +} +bool PythonQtShell_QSqlTableModel::setItemData(const QModelIndex& index, const QMap& roles) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setItemData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&index, (void*)&roles}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("setItemData", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::setItemData(index, roles); +} +void PythonQtShell_QSqlTableModel::setSort(int column, Qt::SortOrder order) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSort"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "Qt::SortOrder"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&column, (void*)&order}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlTableModel::setSort(column, order); +} +void PythonQtShell_QSqlTableModel::setTable(const QString& tableName) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setTable"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&tableName}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlTableModel::setTable(tableName); +} +QModelIndex PythonQtShell_QSqlTableModel::sibling(int row, int column, const QModelIndex& idx) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sibling"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QModelIndex returnValue; + void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&idx}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sibling", methodInfo, result); + } else { + returnValue = *((QModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::sibling(row, column, idx); +} +void PythonQtShell_QSqlTableModel::sort(int column, Qt::SortOrder order) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sort"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "int" , "Qt::SortOrder"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&column, (void*)&order}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlTableModel::sort(column, order); +} +QSize PythonQtShell_QSqlTableModel::span(const QModelIndex& index) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "span"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize" , "const QModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QSize returnValue; + void* args[2] = {NULL, (void*)&index}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("span", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::span(index); +} +bool PythonQtShell_QSqlTableModel::submit() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "submit"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("submit", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::submit(); +} +Qt::DropActions PythonQtShell_QSqlTableModel::supportedDragActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDragActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDragActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::supportedDragActions(); +} +Qt::DropActions PythonQtShell_QSqlTableModel::supportedDropActions() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::DropActions"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + Qt::DropActions returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); + } else { + returnValue = *((Qt::DropActions*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::supportedDropActions(); +} +void PythonQtShell_QSqlTableModel::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSqlTableModel::timerEvent(arg__1); +} +bool PythonQtShell_QSqlTableModel::updateRowInTable(int row, const QSqlRecord& values) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateRowInTable"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "int" , "const QSqlRecord&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&row, (void*)&values}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("updateRowInTable", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSqlTableModel::updateRowInTable(row, values); +} +QSqlTableModel* PythonQtWrapper_QSqlTableModel::new_QSqlTableModel(QObject* parent, QSqlDatabase db) +{ +return new PythonQtShell_QSqlTableModel(parent, db); } + +void PythonQtWrapper_QSqlTableModel::clear(QSqlTableModel* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_clear()); +} + +QVariant PythonQtWrapper_QSqlTableModel::data(QSqlTableModel* theWrappedObject, const QModelIndex& idx, int role) const +{ + return ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_data(idx, role)); +} + +QSqlDatabase PythonQtWrapper_QSqlTableModel::database(QSqlTableModel* theWrappedObject) const +{ + return ( theWrappedObject->database()); +} + +bool PythonQtWrapper_QSqlTableModel::deleteRowFromTable(QSqlTableModel* theWrappedObject, int row) +{ + return ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_deleteRowFromTable(row)); +} + +QSqlTableModel::EditStrategy PythonQtWrapper_QSqlTableModel::editStrategy(QSqlTableModel* theWrappedObject) const +{ + return ( theWrappedObject->editStrategy()); +} + +int PythonQtWrapper_QSqlTableModel::fieldIndex(QSqlTableModel* theWrappedObject, const QString& fieldName) const +{ + return ( theWrappedObject->fieldIndex(fieldName)); +} + +QString PythonQtWrapper_QSqlTableModel::filter(QSqlTableModel* theWrappedObject) const +{ + return ( theWrappedObject->filter()); +} + +Qt::ItemFlags PythonQtWrapper_QSqlTableModel::flags(QSqlTableModel* theWrappedObject, const QModelIndex& index) const +{ + return ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_flags(index)); +} + +QVariant PythonQtWrapper_QSqlTableModel::headerData(QSqlTableModel* theWrappedObject, int section, Qt::Orientation orientation, int role) const +{ + return ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_headerData(section, orientation, role)); +} + +QModelIndex PythonQtWrapper_QSqlTableModel::indexInQuery(QSqlTableModel* theWrappedObject, const QModelIndex& item) const +{ + return ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_indexInQuery(item)); +} + +bool PythonQtWrapper_QSqlTableModel::insertRecord(QSqlTableModel* theWrappedObject, int row, const QSqlRecord& record) +{ + return ( theWrappedObject->insertRecord(row, record)); +} + +bool PythonQtWrapper_QSqlTableModel::insertRowIntoTable(QSqlTableModel* theWrappedObject, const QSqlRecord& values) +{ + return ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_insertRowIntoTable(values)); +} + +bool PythonQtWrapper_QSqlTableModel::insertRows(QSqlTableModel* theWrappedObject, int row, int count, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_insertRows(row, count, parent)); +} + +bool PythonQtWrapper_QSqlTableModel::isDirty(QSqlTableModel* theWrappedObject) const +{ + return ( theWrappedObject->isDirty()); +} + +bool PythonQtWrapper_QSqlTableModel::isDirty(QSqlTableModel* theWrappedObject, const QModelIndex& index) const +{ + return ( theWrappedObject->isDirty(index)); +} + +QString PythonQtWrapper_QSqlTableModel::orderByClause(QSqlTableModel* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_orderByClause()); +} + +QSqlIndex PythonQtWrapper_QSqlTableModel::primaryKey(QSqlTableModel* theWrappedObject) const +{ + return ( theWrappedObject->primaryKey()); +} + +QSqlRecord PythonQtWrapper_QSqlTableModel::record(QSqlTableModel* theWrappedObject) const +{ + return ( theWrappedObject->record()); +} + +QSqlRecord PythonQtWrapper_QSqlTableModel::record(QSqlTableModel* theWrappedObject, int row) const +{ + return ( theWrappedObject->record(row)); +} + +bool PythonQtWrapper_QSqlTableModel::removeColumns(QSqlTableModel* theWrappedObject, int column, int count, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_removeColumns(column, count, parent)); +} + +bool PythonQtWrapper_QSqlTableModel::removeRows(QSqlTableModel* theWrappedObject, int row, int count, const QModelIndex& parent) +{ + return ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_removeRows(row, count, parent)); +} + +void PythonQtWrapper_QSqlTableModel::revert(QSqlTableModel* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_revert()); +} + +void PythonQtWrapper_QSqlTableModel::revertRow(QSqlTableModel* theWrappedObject, int row) +{ + ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_revertRow(row)); +} + +int PythonQtWrapper_QSqlTableModel::rowCount(QSqlTableModel* theWrappedObject, const QModelIndex& parent) const +{ + return ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_rowCount(parent)); +} + +bool PythonQtWrapper_QSqlTableModel::select(QSqlTableModel* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_select()); +} + +bool PythonQtWrapper_QSqlTableModel::selectRow(QSqlTableModel* theWrappedObject, int row) +{ + return ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_selectRow(row)); +} + +QString PythonQtWrapper_QSqlTableModel::selectStatement(QSqlTableModel* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_selectStatement()); +} + +bool PythonQtWrapper_QSqlTableModel::setData(QSqlTableModel* theWrappedObject, const QModelIndex& index, const QVariant& value, int role) +{ + return ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_setData(index, value, role)); +} + +void PythonQtWrapper_QSqlTableModel::setEditStrategy(QSqlTableModel* theWrappedObject, QSqlTableModel::EditStrategy strategy) +{ + ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_setEditStrategy(strategy)); +} + +void PythonQtWrapper_QSqlTableModel::setFilter(QSqlTableModel* theWrappedObject, const QString& filter) +{ + ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_setFilter(filter)); +} + +bool PythonQtWrapper_QSqlTableModel::setRecord(QSqlTableModel* theWrappedObject, int row, const QSqlRecord& record) +{ + return ( theWrappedObject->setRecord(row, record)); +} + +void PythonQtWrapper_QSqlTableModel::setSort(QSqlTableModel* theWrappedObject, int column, Qt::SortOrder order) +{ + ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_setSort(column, order)); +} + +void PythonQtWrapper_QSqlTableModel::setTable(QSqlTableModel* theWrappedObject, const QString& tableName) +{ + ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_setTable(tableName)); +} + +void PythonQtWrapper_QSqlTableModel::sort(QSqlTableModel* theWrappedObject, int column, Qt::SortOrder order) +{ + ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_sort(column, order)); +} + +bool PythonQtWrapper_QSqlTableModel::submit(QSqlTableModel* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_submit()); +} + +QString PythonQtWrapper_QSqlTableModel::tableName(QSqlTableModel* theWrappedObject) const +{ + return ( theWrappedObject->tableName()); +} + +bool PythonQtWrapper_QSqlTableModel::updateRowInTable(QSqlTableModel* theWrappedObject, int row, const QSqlRecord& values) +{ + return ( ((PythonQtPublicPromoter_QSqlTableModel*)theWrappedObject)->promoted_updateRowInTable(row, values)); +} + + diff --git a/generated_cpp_50/com_trolltech_qt_sql/com_trolltech_qt_sql0.h b/generated_cpp_50/com_trolltech_qt_sql/com_trolltech_qt_sql0.h new file mode 100644 index 00000000..bc16c4dd --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_sql/com_trolltech_qt_sql0.h @@ -0,0 +1,911 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +class PythonQtWrapper_QSql : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ParamTypeFlag Location NumericalPrecisionPolicy TableType ) +Q_FLAGS(ParamType ) +enum ParamTypeFlag{ + In = QSql::In, Out = QSql::Out, InOut = QSql::InOut, Binary = QSql::Binary}; +enum Location{ + BeforeFirstRow = QSql::BeforeFirstRow, AfterLastRow = QSql::AfterLastRow}; +enum NumericalPrecisionPolicy{ + LowPrecisionInt32 = QSql::LowPrecisionInt32, LowPrecisionInt64 = QSql::LowPrecisionInt64, LowPrecisionDouble = QSql::LowPrecisionDouble, HighPrecision = QSql::HighPrecision}; +enum TableType{ + Tables = QSql::Tables, SystemTables = QSql::SystemTables, Views = QSql::Views, AllTables = QSql::AllTables}; +Q_DECLARE_FLAGS(ParamType, ParamTypeFlag) +public slots: +}; + + + + + +class PythonQtShell_QSqlDatabase : public QSqlDatabase +{ +public: + PythonQtShell_QSqlDatabase():QSqlDatabase(),_wrapper(NULL) {}; + PythonQtShell_QSqlDatabase(QSqlDriver* driver):QSqlDatabase(driver),_wrapper(NULL) {}; + PythonQtShell_QSqlDatabase(const QSqlDatabase& other):QSqlDatabase(other),_wrapper(NULL) {}; + PythonQtShell_QSqlDatabase(const QString& type):QSqlDatabase(type),_wrapper(NULL) {}; + + ~PythonQtShell_QSqlDatabase(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QSqlDatabase : public QObject +{ Q_OBJECT +public: +public slots: +QSqlDatabase* new_QSqlDatabase(); +QSqlDatabase* new_QSqlDatabase(const QSqlDatabase& other); +void delete_QSqlDatabase(QSqlDatabase* obj) { delete obj; } + QSqlDatabase static_QSqlDatabase_addDatabase(QSqlDriver* driver, const QString& connectionName = QLatin1String(QSqlDatabase::defaultConnection)); + QSqlDatabase static_QSqlDatabase_addDatabase(const QString& type, const QString& connectionName = QLatin1String(QSqlDatabase::defaultConnection)); + QSqlDatabase static_QSqlDatabase_cloneDatabase(const QSqlDatabase& other, const QString& connectionName); + void close(QSqlDatabase* theWrappedObject); + bool commit(QSqlDatabase* theWrappedObject); + QString connectOptions(QSqlDatabase* theWrappedObject) const; + QString connectionName(QSqlDatabase* theWrappedObject) const; + QStringList static_QSqlDatabase_connectionNames(); + bool static_QSqlDatabase_contains(const QString& connectionName = QLatin1String(QSqlDatabase::defaultConnection)); + QSqlDatabase static_QSqlDatabase_database(const QString& connectionName = QLatin1String(QSqlDatabase::defaultConnection), bool open = true); + QString databaseName(QSqlDatabase* theWrappedObject) const; + QSqlDriver* driver(QSqlDatabase* theWrappedObject) const; + QString driverName(QSqlDatabase* theWrappedObject) const; + QStringList static_QSqlDatabase_drivers(); + QSqlQuery exec(QSqlDatabase* theWrappedObject, const QString& query = QString()) const; + QString hostName(QSqlDatabase* theWrappedObject) const; + bool static_QSqlDatabase_isDriverAvailable(const QString& name); + bool isOpen(QSqlDatabase* theWrappedObject) const; + bool isOpenError(QSqlDatabase* theWrappedObject) const; + bool isValid(QSqlDatabase* theWrappedObject) const; + QSqlError lastError(QSqlDatabase* theWrappedObject) const; + QSql::NumericalPrecisionPolicy numericalPrecisionPolicy(QSqlDatabase* theWrappedObject) const; + bool open(QSqlDatabase* theWrappedObject); + bool open(QSqlDatabase* theWrappedObject, const QString& user, const QString& password); + QString password(QSqlDatabase* theWrappedObject) const; + int port(QSqlDatabase* theWrappedObject) const; + QSqlIndex primaryIndex(QSqlDatabase* theWrappedObject, const QString& tablename) const; + QSqlRecord record(QSqlDatabase* theWrappedObject, const QString& tablename) const; + void static_QSqlDatabase_registerSqlDriver(const QString& name, QSqlDriverCreatorBase* creator); + void static_QSqlDatabase_removeDatabase(const QString& connectionName); + bool rollback(QSqlDatabase* theWrappedObject); + void setConnectOptions(QSqlDatabase* theWrappedObject, const QString& options = QString()); + void setDatabaseName(QSqlDatabase* theWrappedObject, const QString& name); + void setHostName(QSqlDatabase* theWrappedObject, const QString& host); + void setNumericalPrecisionPolicy(QSqlDatabase* theWrappedObject, QSql::NumericalPrecisionPolicy precisionPolicy); + void setPassword(QSqlDatabase* theWrappedObject, const QString& password); + void setPort(QSqlDatabase* theWrappedObject, int p); + void setUserName(QSqlDatabase* theWrappedObject, const QString& name); + QStringList tables(QSqlDatabase* theWrappedObject, QSql::TableType type = QSql::Tables) const; + bool transaction(QSqlDatabase* theWrappedObject); + QString userName(QSqlDatabase* theWrappedObject) const; + QString py_toString(QSqlDatabase*); +}; + + + + + +class PythonQtShell_QSqlDriver : public QSqlDriver +{ +public: + PythonQtShell_QSqlDriver(QObject* parent = 0):QSqlDriver(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QSqlDriver(); + +virtual bool beginTransaction(); +virtual bool cancelQuery(); +virtual void childEvent(QChildEvent* arg__1); +virtual void close(); +virtual bool commitTransaction(); +virtual QSqlResult* createResult() const; +virtual void customEvent(QEvent* arg__1); +virtual QString escapeIdentifier(const QString& identifier, QSqlDriver::IdentifierType type) const; +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual QString formatValue(const QSqlField& field, bool trimStrings = false) const; +virtual QVariant handle() const; +virtual bool hasFeature(QSqlDriver::DriverFeature f) const; +virtual bool isIdentifierEscaped(const QString& identifier, QSqlDriver::IdentifierType type) const; +virtual bool isOpen() const; +virtual bool open(const QString& db, const QString& user = QString(), const QString& password = QString(), const QString& host = QString(), int port = -1, const QString& connOpts = QString()); +virtual QSqlIndex primaryIndex(const QString& tableName) const; +virtual QSqlRecord record(const QString& tableName) const; +virtual bool rollbackTransaction(); +virtual void setLastError(const QSqlError& e); +virtual void setOpen(bool o); +virtual void setOpenError(bool e); +virtual QString sqlStatement(QSqlDriver::StatementType type, const QString& tableName, const QSqlRecord& rec, bool preparedStatement) const; +virtual QString stripDelimiters(const QString& identifier, QSqlDriver::IdentifierType type) const; +virtual bool subscribeToNotification(const QString& name); +virtual QStringList subscribedToNotifications() const; +virtual QStringList tables(QSql::TableType tableType) const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool unsubscribeFromNotification(const QString& name); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSqlDriver : public QSqlDriver +{ public: +inline bool promoted_beginTransaction() { return QSqlDriver::beginTransaction(); } +inline bool promoted_cancelQuery() { return QSqlDriver::cancelQuery(); } +inline bool promoted_commitTransaction() { return QSqlDriver::commitTransaction(); } +inline QString promoted_escapeIdentifier(const QString& identifier, QSqlDriver::IdentifierType type) const { return QSqlDriver::escapeIdentifier(identifier, type); } +inline QString promoted_formatValue(const QSqlField& field, bool trimStrings = false) const { return QSqlDriver::formatValue(field, trimStrings); } +inline QVariant promoted_handle() const { return QSqlDriver::handle(); } +inline bool promoted_isIdentifierEscaped(const QString& identifier, QSqlDriver::IdentifierType type) const { return QSqlDriver::isIdentifierEscaped(identifier, type); } +inline bool promoted_isOpen() const { return QSqlDriver::isOpen(); } +inline QSqlIndex promoted_primaryIndex(const QString& tableName) const { return QSqlDriver::primaryIndex(tableName); } +inline QSqlRecord promoted_record(const QString& tableName) const { return QSqlDriver::record(tableName); } +inline bool promoted_rollbackTransaction() { return QSqlDriver::rollbackTransaction(); } +inline void promoted_setLastError(const QSqlError& e) { QSqlDriver::setLastError(e); } +inline void promoted_setOpen(bool o) { QSqlDriver::setOpen(o); } +inline void promoted_setOpenError(bool e) { QSqlDriver::setOpenError(e); } +inline QString promoted_sqlStatement(QSqlDriver::StatementType type, const QString& tableName, const QSqlRecord& rec, bool preparedStatement) const { return QSqlDriver::sqlStatement(type, tableName, rec, preparedStatement); } +inline QString promoted_stripDelimiters(const QString& identifier, QSqlDriver::IdentifierType type) const { return QSqlDriver::stripDelimiters(identifier, type); } +inline bool promoted_subscribeToNotification(const QString& name) { return QSqlDriver::subscribeToNotification(name); } +inline QStringList promoted_subscribedToNotifications() const { return QSqlDriver::subscribedToNotifications(); } +inline QStringList promoted_tables(QSql::TableType tableType) const { return QSqlDriver::tables(tableType); } +inline bool promoted_unsubscribeFromNotification(const QString& name) { return QSqlDriver::unsubscribeFromNotification(name); } +}; + +class PythonQtWrapper_QSqlDriver : public QObject +{ Q_OBJECT +public: +Q_ENUMS(IdentifierType DriverFeature StatementType ) +enum IdentifierType{ + FieldName = QSqlDriver::FieldName, TableName = QSqlDriver::TableName}; +enum DriverFeature{ + Transactions = QSqlDriver::Transactions, QuerySize = QSqlDriver::QuerySize, BLOB = QSqlDriver::BLOB, Unicode = QSqlDriver::Unicode, PreparedQueries = QSqlDriver::PreparedQueries, NamedPlaceholders = QSqlDriver::NamedPlaceholders, PositionalPlaceholders = QSqlDriver::PositionalPlaceholders, LastInsertId = QSqlDriver::LastInsertId, BatchOperations = QSqlDriver::BatchOperations, SimpleLocking = QSqlDriver::SimpleLocking, LowPrecisionNumbers = QSqlDriver::LowPrecisionNumbers, EventNotifications = QSqlDriver::EventNotifications, FinishQuery = QSqlDriver::FinishQuery, MultipleResultSets = QSqlDriver::MultipleResultSets, CancelQuery = QSqlDriver::CancelQuery}; +enum StatementType{ + WhereStatement = QSqlDriver::WhereStatement, SelectStatement = QSqlDriver::SelectStatement, UpdateStatement = QSqlDriver::UpdateStatement, InsertStatement = QSqlDriver::InsertStatement, DeleteStatement = QSqlDriver::DeleteStatement}; +public slots: +QSqlDriver* new_QSqlDriver(QObject* parent = 0); +void delete_QSqlDriver(QSqlDriver* obj) { delete obj; } + bool beginTransaction(QSqlDriver* theWrappedObject); + bool cancelQuery(QSqlDriver* theWrappedObject); + bool commitTransaction(QSqlDriver* theWrappedObject); + QString escapeIdentifier(QSqlDriver* theWrappedObject, const QString& identifier, QSqlDriver::IdentifierType type) const; + QString formatValue(QSqlDriver* theWrappedObject, const QSqlField& field, bool trimStrings = false) const; + QVariant handle(QSqlDriver* theWrappedObject) const; + bool isIdentifierEscaped(QSqlDriver* theWrappedObject, const QString& identifier, QSqlDriver::IdentifierType type) const; + bool isOpen(QSqlDriver* theWrappedObject) const; + bool isOpenError(QSqlDriver* theWrappedObject) const; + QSqlError lastError(QSqlDriver* theWrappedObject) const; + QSql::NumericalPrecisionPolicy numericalPrecisionPolicy(QSqlDriver* theWrappedObject) const; + QSqlIndex primaryIndex(QSqlDriver* theWrappedObject, const QString& tableName) const; + QSqlRecord record(QSqlDriver* theWrappedObject, const QString& tableName) const; + bool rollbackTransaction(QSqlDriver* theWrappedObject); + void setLastError(QSqlDriver* theWrappedObject, const QSqlError& e); + void setNumericalPrecisionPolicy(QSqlDriver* theWrappedObject, QSql::NumericalPrecisionPolicy precisionPolicy); + void setOpen(QSqlDriver* theWrappedObject, bool o); + void setOpenError(QSqlDriver* theWrappedObject, bool e); + QString sqlStatement(QSqlDriver* theWrappedObject, QSqlDriver::StatementType type, const QString& tableName, const QSqlRecord& rec, bool preparedStatement) const; + QString stripDelimiters(QSqlDriver* theWrappedObject, const QString& identifier, QSqlDriver::IdentifierType type) const; + bool subscribeToNotification(QSqlDriver* theWrappedObject, const QString& name); + QStringList subscribedToNotifications(QSqlDriver* theWrappedObject) const; + QStringList tables(QSqlDriver* theWrappedObject, QSql::TableType tableType) const; + bool unsubscribeFromNotification(QSqlDriver* theWrappedObject, const QString& name); +}; + + + + + +class PythonQtShell_QSqlDriverCreatorBase : public QSqlDriverCreatorBase +{ +public: + PythonQtShell_QSqlDriverCreatorBase():QSqlDriverCreatorBase(),_wrapper(NULL) {}; + + ~PythonQtShell_QSqlDriverCreatorBase(); + +virtual QSqlDriver* createObject() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QSqlDriverCreatorBase : public QObject +{ Q_OBJECT +public: +public slots: +QSqlDriverCreatorBase* new_QSqlDriverCreatorBase(); +void delete_QSqlDriverCreatorBase(QSqlDriverCreatorBase* obj) { delete obj; } +}; + + + + + +class PythonQtWrapper_QSqlError : public QObject +{ Q_OBJECT +public: +Q_ENUMS(ErrorType ) +enum ErrorType{ + NoError = QSqlError::NoError, ConnectionError = QSqlError::ConnectionError, StatementError = QSqlError::StatementError, TransactionError = QSqlError::TransactionError, UnknownError = QSqlError::UnknownError}; +public slots: +QSqlError* new_QSqlError(const QSqlError& other); +QSqlError* new_QSqlError(const QString& driverText = QString(), const QString& databaseText = QString(), QSqlError::ErrorType type = QSqlError::NoError, int number = -1); +void delete_QSqlError(QSqlError* obj) { delete obj; } + QString databaseText(QSqlError* theWrappedObject) const; + QString driverText(QSqlError* theWrappedObject) const; + bool isValid(QSqlError* theWrappedObject) const; + int number(QSqlError* theWrappedObject) const; + bool __ne__(QSqlError* theWrappedObject, const QSqlError& other) const; + bool __eq__(QSqlError* theWrappedObject, const QSqlError& other) const; + void setDatabaseText(QSqlError* theWrappedObject, const QString& databaseText); + void setDriverText(QSqlError* theWrappedObject, const QString& driverText); + void setNumber(QSqlError* theWrappedObject, int number); + void setType(QSqlError* theWrappedObject, QSqlError::ErrorType type); + QString text(QSqlError* theWrappedObject) const; + QSqlError::ErrorType type(QSqlError* theWrappedObject) const; + QString py_toString(QSqlError*); +}; + + + + + +class PythonQtWrapper_QSqlField : public QObject +{ Q_OBJECT +public: +Q_ENUMS(RequiredStatus ) +enum RequiredStatus{ + Unknown = QSqlField::Unknown, Optional = QSqlField::Optional, Required = QSqlField::Required}; +public slots: +QSqlField* new_QSqlField(const QSqlField& other); +QSqlField* new_QSqlField(const QString& fieldName = QString(), QVariant::Type type = QVariant::Invalid); +void delete_QSqlField(QSqlField* obj) { delete obj; } + void clear(QSqlField* theWrappedObject); + QVariant defaultValue(QSqlField* theWrappedObject) const; + bool isAutoValue(QSqlField* theWrappedObject) const; + bool isGenerated(QSqlField* theWrappedObject) const; + bool isNull(QSqlField* theWrappedObject) const; + bool isReadOnly(QSqlField* theWrappedObject) const; + bool isValid(QSqlField* theWrappedObject) const; + int length(QSqlField* theWrappedObject) const; + QString name(QSqlField* theWrappedObject) const; + bool __ne__(QSqlField* theWrappedObject, const QSqlField& other) const; + bool __eq__(QSqlField* theWrappedObject, const QSqlField& other) const; + int precision(QSqlField* theWrappedObject) const; + QSqlField::RequiredStatus requiredStatus(QSqlField* theWrappedObject) const; + void setAutoValue(QSqlField* theWrappedObject, bool autoVal); + void setDefaultValue(QSqlField* theWrappedObject, const QVariant& value); + void setGenerated(QSqlField* theWrappedObject, bool gen); + void setLength(QSqlField* theWrappedObject, int fieldLength); + void setName(QSqlField* theWrappedObject, const QString& name); + void setPrecision(QSqlField* theWrappedObject, int precision); + void setReadOnly(QSqlField* theWrappedObject, bool readOnly); + void setRequired(QSqlField* theWrappedObject, bool required); + void setRequiredStatus(QSqlField* theWrappedObject, QSqlField::RequiredStatus status); + void setSqlType(QSqlField* theWrappedObject, int type); + void setType(QSqlField* theWrappedObject, QVariant::Type type); + void setValue(QSqlField* theWrappedObject, const QVariant& value); + QVariant::Type type(QSqlField* theWrappedObject) const; + int typeID(QSqlField* theWrappedObject) const; + QVariant value(QSqlField* theWrappedObject) const; + QString py_toString(QSqlField*); + bool __nonzero__(QSqlField* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QSqlIndex : public QObject +{ Q_OBJECT +public: +public slots: +QSqlIndex* new_QSqlIndex(const QSqlIndex& other); +QSqlIndex* new_QSqlIndex(const QString& cursorName = QString(), const QString& name = QString()); +void delete_QSqlIndex(QSqlIndex* obj) { delete obj; } + void append(QSqlIndex* theWrappedObject, const QSqlField& field); + void append(QSqlIndex* theWrappedObject, const QSqlField& field, bool desc); + QString cursorName(QSqlIndex* theWrappedObject) const; + bool isDescending(QSqlIndex* theWrappedObject, int i) const; + QString name(QSqlIndex* theWrappedObject) const; + void setCursorName(QSqlIndex* theWrappedObject, const QString& cursorName); + void setDescending(QSqlIndex* theWrappedObject, int i, bool desc); + void setName(QSqlIndex* theWrappedObject, const QString& name); +}; + + + + + +class PythonQtWrapper_QSqlQuery : public QObject +{ Q_OBJECT +public: +Q_ENUMS(BatchExecutionMode ) +enum BatchExecutionMode{ + ValuesAsRows = QSqlQuery::ValuesAsRows, ValuesAsColumns = QSqlQuery::ValuesAsColumns}; +public slots: +QSqlQuery* new_QSqlQuery(QSqlDatabase db); +QSqlQuery* new_QSqlQuery(QSqlResult* r); +QSqlQuery* new_QSqlQuery(const QSqlQuery& other); +QSqlQuery* new_QSqlQuery(const QString& query = QString(), QSqlDatabase db = QSqlDatabase()); +void delete_QSqlQuery(QSqlQuery* obj) { delete obj; } + void addBindValue(QSqlQuery* theWrappedObject, const QVariant& val, QSql::ParamType type = QSql::In); + int at(QSqlQuery* theWrappedObject) const; + void bindValue(QSqlQuery* theWrappedObject, const QString& placeholder, const QVariant& val, QSql::ParamType type = QSql::In); + void bindValue(QSqlQuery* theWrappedObject, int pos, const QVariant& val, QSql::ParamType type = QSql::In); + QVariant boundValue(QSqlQuery* theWrappedObject, const QString& placeholder) const; + QVariant boundValue(QSqlQuery* theWrappedObject, int pos) const; + QMap boundValues(QSqlQuery* theWrappedObject) const; + void clear(QSqlQuery* theWrappedObject); + const QSqlDriver* driver(QSqlQuery* theWrappedObject) const; + bool exec(QSqlQuery* theWrappedObject); + bool exec(QSqlQuery* theWrappedObject, const QString& query); + bool execBatch(QSqlQuery* theWrappedObject, QSqlQuery::BatchExecutionMode mode = QSqlQuery::ValuesAsRows); + QString executedQuery(QSqlQuery* theWrappedObject) const; + void finish(QSqlQuery* theWrappedObject); + bool first(QSqlQuery* theWrappedObject); + bool isActive(QSqlQuery* theWrappedObject) const; + bool isForwardOnly(QSqlQuery* theWrappedObject) const; + bool isNull(QSqlQuery* theWrappedObject, int field) const; + bool isSelect(QSqlQuery* theWrappedObject) const; + bool isValid(QSqlQuery* theWrappedObject) const; + bool last(QSqlQuery* theWrappedObject); + QSqlError lastError(QSqlQuery* theWrappedObject) const; + QVariant lastInsertId(QSqlQuery* theWrappedObject) const; + QString lastQuery(QSqlQuery* theWrappedObject) const; + bool next(QSqlQuery* theWrappedObject); + bool nextResult(QSqlQuery* theWrappedObject); + int numRowsAffected(QSqlQuery* theWrappedObject) const; + QSql::NumericalPrecisionPolicy numericalPrecisionPolicy(QSqlQuery* theWrappedObject) const; + bool prepare(QSqlQuery* theWrappedObject, const QString& query); + bool previous(QSqlQuery* theWrappedObject); + QSqlRecord record(QSqlQuery* theWrappedObject) const; + const QSqlResult* result(QSqlQuery* theWrappedObject) const; + bool seek(QSqlQuery* theWrappedObject, int i, bool relative = false); + void setForwardOnly(QSqlQuery* theWrappedObject, bool forward); + void setNumericalPrecisionPolicy(QSqlQuery* theWrappedObject, QSql::NumericalPrecisionPolicy precisionPolicy); + int size(QSqlQuery* theWrappedObject) const; + QVariant value(QSqlQuery* theWrappedObject, const QString& name) const; + QVariant value(QSqlQuery* theWrappedObject, int i) const; +}; + + + + + +class PythonQtShell_QSqlQueryModel : public QSqlQueryModel +{ +public: + PythonQtShell_QSqlQueryModel(QObject* parent = 0):QSqlQueryModel(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QSqlQueryModel(); + +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 = QModelIndex()) const; +virtual void childEvent(QChildEvent* arg__1); +virtual void clear(); +virtual int columnCount(const QModelIndex& parent = QModelIndex()) const; +virtual void customEvent(QEvent* arg__1); +virtual QVariant data(const QModelIndex& item, int role = Qt::DisplayRole) const; +virtual bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fetchMore(const QModelIndex& parent = QModelIndex()); +virtual Qt::ItemFlags flags(const QModelIndex& index) const; +virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; +virtual QModelIndex index(int row, int column, const QModelIndex& parent) const; +virtual QModelIndex indexInQuery(const QModelIndex& item) const; +virtual bool insertColumns(int column, int count, const QModelIndex& parent = QModelIndex()); +virtual bool insertRows(int row, int count, const QModelIndex& parent); +virtual QMap itemData(const QModelIndex& index) const; +virtual QList match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const; +virtual QMimeData* mimeData(const QList& 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 void queryChange(); +virtual bool removeColumns(int column, int count, const QModelIndex& parent = QModelIndex()); +virtual bool removeRows(int row, int count, const QModelIndex& parent); +virtual void revert(); +virtual QHash roleNames() const; +virtual int rowCount(const QModelIndex& parent = QModelIndex()) 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 = Qt::EditRole); +virtual bool setItemData(const QModelIndex& index, const QMap& roles); +virtual QModelIndex sibling(int row, int column, const QModelIndex& idx) const; +virtual void sort(int column, Qt::SortOrder order); +virtual QSize span(const QModelIndex& index) const; +virtual bool submit(); +virtual Qt::DropActions supportedDragActions() const; +virtual Qt::DropActions supportedDropActions() const; +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSqlQueryModel : public QSqlQueryModel +{ public: +inline bool promoted_canFetchMore(const QModelIndex& parent = QModelIndex()) const { return QSqlQueryModel::canFetchMore(parent); } +inline void promoted_clear() { QSqlQueryModel::clear(); } +inline int promoted_columnCount(const QModelIndex& parent = QModelIndex()) const { return QSqlQueryModel::columnCount(parent); } +inline QVariant promoted_data(const QModelIndex& item, int role = Qt::DisplayRole) const { return QSqlQueryModel::data(item, role); } +inline void promoted_fetchMore(const QModelIndex& parent = QModelIndex()) { QSqlQueryModel::fetchMore(parent); } +inline QVariant promoted_headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const { return QSqlQueryModel::headerData(section, orientation, role); } +inline QModelIndex promoted_indexInQuery(const QModelIndex& item) const { return QSqlQueryModel::indexInQuery(item); } +inline bool promoted_insertColumns(int column, int count, const QModelIndex& parent = QModelIndex()) { return QSqlQueryModel::insertColumns(column, count, parent); } +inline void promoted_queryChange() { QSqlQueryModel::queryChange(); } +inline bool promoted_removeColumns(int column, int count, const QModelIndex& parent = QModelIndex()) { return QSqlQueryModel::removeColumns(column, count, parent); } +inline int promoted_rowCount(const QModelIndex& parent = QModelIndex()) const { return QSqlQueryModel::rowCount(parent); } +inline bool promoted_setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role = Qt::EditRole) { return QSqlQueryModel::setHeaderData(section, orientation, value, role); } +}; + +class PythonQtWrapper_QSqlQueryModel : public QObject +{ Q_OBJECT +public: +public slots: +QSqlQueryModel* new_QSqlQueryModel(QObject* parent = 0); +void delete_QSqlQueryModel(QSqlQueryModel* obj) { delete obj; } + bool canFetchMore(QSqlQueryModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const; + void clear(QSqlQueryModel* theWrappedObject); + int columnCount(QSqlQueryModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const; + QVariant data(QSqlQueryModel* theWrappedObject, const QModelIndex& item, int role = Qt::DisplayRole) const; + void fetchMore(QSqlQueryModel* theWrappedObject, const QModelIndex& parent = QModelIndex()); + QVariant headerData(QSqlQueryModel* theWrappedObject, int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; + QModelIndex indexInQuery(QSqlQueryModel* theWrappedObject, const QModelIndex& item) const; + bool insertColumns(QSqlQueryModel* theWrappedObject, int column, int count, const QModelIndex& parent = QModelIndex()); + QSqlError lastError(QSqlQueryModel* theWrappedObject) const; + QSqlQuery query(QSqlQueryModel* theWrappedObject) const; + void queryChange(QSqlQueryModel* theWrappedObject); + QSqlRecord record(QSqlQueryModel* theWrappedObject) const; + QSqlRecord record(QSqlQueryModel* theWrappedObject, int row) const; + bool removeColumns(QSqlQueryModel* theWrappedObject, int column, int count, const QModelIndex& parent = QModelIndex()); + int rowCount(QSqlQueryModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const; + bool setHeaderData(QSqlQueryModel* theWrappedObject, int section, Qt::Orientation orientation, const QVariant& value, int role = Qt::EditRole); + void setQuery(QSqlQueryModel* theWrappedObject, const QSqlQuery& query); + void setQuery(QSqlQueryModel* theWrappedObject, const QString& query, const QSqlDatabase& db = QSqlDatabase()); +}; + + + + + +class PythonQtWrapper_QSqlRecord : public QObject +{ Q_OBJECT +public: +public slots: +QSqlRecord* new_QSqlRecord(); +QSqlRecord* new_QSqlRecord(const QSqlRecord& other); +void delete_QSqlRecord(QSqlRecord* obj) { delete obj; } + void append(QSqlRecord* theWrappedObject, const QSqlField& field); + void clear(QSqlRecord* theWrappedObject); + void clearValues(QSqlRecord* theWrappedObject); + bool contains(QSqlRecord* theWrappedObject, const QString& name) const; + int count(QSqlRecord* theWrappedObject) const; + QSqlField field(QSqlRecord* theWrappedObject, const QString& name) const; + QSqlField field(QSqlRecord* theWrappedObject, int i) const; + QString fieldName(QSqlRecord* theWrappedObject, int i) const; + int indexOf(QSqlRecord* theWrappedObject, const QString& name) const; + void insert(QSqlRecord* theWrappedObject, int pos, const QSqlField& field); + bool isEmpty(QSqlRecord* theWrappedObject) const; + bool isGenerated(QSqlRecord* theWrappedObject, const QString& name) const; + bool isGenerated(QSqlRecord* theWrappedObject, int i) const; + bool isNull(QSqlRecord* theWrappedObject, const QString& name) const; + bool isNull(QSqlRecord* theWrappedObject, int i) const; + bool __ne__(QSqlRecord* theWrappedObject, const QSqlRecord& other) const; + bool __eq__(QSqlRecord* theWrappedObject, const QSqlRecord& other) const; + void remove(QSqlRecord* theWrappedObject, int pos); + void replace(QSqlRecord* theWrappedObject, int pos, const QSqlField& field); + void setGenerated(QSqlRecord* theWrappedObject, const QString& name, bool generated); + void setGenerated(QSqlRecord* theWrappedObject, int i, bool generated); + void setNull(QSqlRecord* theWrappedObject, const QString& name); + void setNull(QSqlRecord* theWrappedObject, int i); + void setValue(QSqlRecord* theWrappedObject, const QString& name, const QVariant& val); + void setValue(QSqlRecord* theWrappedObject, int i, const QVariant& val); + QVariant value(QSqlRecord* theWrappedObject, const QString& name) const; + QVariant value(QSqlRecord* theWrappedObject, int i) const; + QString py_toString(QSqlRecord*); +}; + + + + + +class PythonQtWrapper_QSqlRelation : public QObject +{ Q_OBJECT +public: +public slots: +QSqlRelation* new_QSqlRelation(); +QSqlRelation* new_QSqlRelation(const QString& aTableName, const QString& indexCol, const QString& displayCol); +QSqlRelation* new_QSqlRelation(const QSqlRelation& other) { +QSqlRelation* a = new QSqlRelation(); +*((QSqlRelation*)a) = other; +return a; } +void delete_QSqlRelation(QSqlRelation* obj) { delete obj; } + QString displayColumn(QSqlRelation* theWrappedObject) const; + QString indexColumn(QSqlRelation* theWrappedObject) const; + bool isValid(QSqlRelation* theWrappedObject) const; + QString tableName(QSqlRelation* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QSqlRelationalTableModel : public QSqlRelationalTableModel +{ +public: + PythonQtShell_QSqlRelationalTableModel(QObject* parent = 0, QSqlDatabase db = QSqlDatabase()):QSqlRelationalTableModel(parent, db),_wrapper(NULL) {}; + + ~PythonQtShell_QSqlRelationalTableModel(); + +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 childEvent(QChildEvent* arg__1); +virtual void clear(); +virtual int columnCount(const QModelIndex& parent) const; +virtual void customEvent(QEvent* arg__1); +virtual QVariant data(const QModelIndex& item, int role = Qt::DisplayRole) const; +virtual bool deleteRowFromTable(int row); +virtual bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fetchMore(const QModelIndex& parent); +virtual Qt::ItemFlags flags(const QModelIndex& index) const; +virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const; +virtual QModelIndex index(int row, int column, const QModelIndex& parent) const; +virtual QModelIndex indexInQuery(const QModelIndex& item) const; +virtual bool insertColumns(int column, int count, const QModelIndex& parent); +virtual bool insertRowIntoTable(const QSqlRecord& values); +virtual bool insertRows(int row, int count, const QModelIndex& parent); +virtual QMap itemData(const QModelIndex& index) const; +virtual QList match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const; +virtual QMimeData* mimeData(const QList& 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 QString orderByClause() const; +virtual void queryChange(); +virtual QSqlTableModel* relationModel(int column) const; +virtual bool removeColumns(int column, int count, const QModelIndex& parent = QModelIndex()); +virtual bool removeRows(int row, int count, const QModelIndex& parent); +virtual void revert(); +virtual void revertRow(int row); +virtual QHash roleNames() const; +virtual int rowCount(const QModelIndex& parent) const; +virtual bool select(); +virtual bool selectRow(int row); +virtual QString selectStatement() const; +virtual bool setData(const QModelIndex& item, const QVariant& value, int role = Qt::EditRole); +virtual void setEditStrategy(QSqlTableModel::EditStrategy strategy); +virtual void setFilter(const QString& filter); +virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role); +virtual bool setItemData(const QModelIndex& index, const QMap& roles); +virtual void setRelation(int column, const QSqlRelation& relation); +virtual void setSort(int column, Qt::SortOrder order); +virtual void setTable(const QString& tableName); +virtual QModelIndex sibling(int row, int column, const QModelIndex& idx) const; +virtual void sort(int column, Qt::SortOrder order); +virtual QSize span(const QModelIndex& index) const; +virtual bool submit(); +virtual Qt::DropActions supportedDragActions() const; +virtual Qt::DropActions supportedDropActions() const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool updateRowInTable(int row, const QSqlRecord& values); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSqlRelationalTableModel : public QSqlRelationalTableModel +{ public: +inline void promoted_clear() { QSqlRelationalTableModel::clear(); } +inline QVariant promoted_data(const QModelIndex& item, int role = Qt::DisplayRole) const { return QSqlRelationalTableModel::data(item, role); } +inline bool promoted_insertRowIntoTable(const QSqlRecord& values) { return QSqlRelationalTableModel::insertRowIntoTable(values); } +inline QString promoted_orderByClause() const { return QSqlRelationalTableModel::orderByClause(); } +inline QSqlTableModel* promoted_relationModel(int column) const { return QSqlRelationalTableModel::relationModel(column); } +inline bool promoted_removeColumns(int column, int count, const QModelIndex& parent = QModelIndex()) { return QSqlRelationalTableModel::removeColumns(column, count, parent); } +inline void promoted_revertRow(int row) { QSqlRelationalTableModel::revertRow(row); } +inline bool promoted_select() { return QSqlRelationalTableModel::select(); } +inline QString promoted_selectStatement() const { return QSqlRelationalTableModel::selectStatement(); } +inline bool promoted_setData(const QModelIndex& item, const QVariant& value, int role = Qt::EditRole) { return QSqlRelationalTableModel::setData(item, value, role); } +inline void promoted_setRelation(int column, const QSqlRelation& relation) { QSqlRelationalTableModel::setRelation(column, relation); } +inline void promoted_setTable(const QString& tableName) { QSqlRelationalTableModel::setTable(tableName); } +inline bool promoted_updateRowInTable(int row, const QSqlRecord& values) { return QSqlRelationalTableModel::updateRowInTable(row, values); } +}; + +class PythonQtWrapper_QSqlRelationalTableModel : public QObject +{ Q_OBJECT +public: +public slots: +QSqlRelationalTableModel* new_QSqlRelationalTableModel(QObject* parent = 0, QSqlDatabase db = QSqlDatabase()); +void delete_QSqlRelationalTableModel(QSqlRelationalTableModel* obj) { delete obj; } + void clear(QSqlRelationalTableModel* theWrappedObject); + QVariant data(QSqlRelationalTableModel* theWrappedObject, const QModelIndex& item, int role = Qt::DisplayRole) const; + bool insertRowIntoTable(QSqlRelationalTableModel* theWrappedObject, const QSqlRecord& values); + QString orderByClause(QSqlRelationalTableModel* theWrappedObject) const; + QSqlRelation relation(QSqlRelationalTableModel* theWrappedObject, int column) const; + QSqlTableModel* relationModel(QSqlRelationalTableModel* theWrappedObject, int column) const; + bool removeColumns(QSqlRelationalTableModel* theWrappedObject, int column, int count, const QModelIndex& parent = QModelIndex()); + void revertRow(QSqlRelationalTableModel* theWrappedObject, int row); + bool select(QSqlRelationalTableModel* theWrappedObject); + QString selectStatement(QSqlRelationalTableModel* theWrappedObject) const; + bool setData(QSqlRelationalTableModel* theWrappedObject, const QModelIndex& item, const QVariant& value, int role = Qt::EditRole); + void setRelation(QSqlRelationalTableModel* theWrappedObject, int column, const QSqlRelation& relation); + void setTable(QSqlRelationalTableModel* theWrappedObject, const QString& tableName); + bool updateRowInTable(QSqlRelationalTableModel* theWrappedObject, int row, const QSqlRecord& values); +}; + + + + + +class PythonQtShell_QSqlResult : public QSqlResult +{ +public: + PythonQtShell_QSqlResult(const QSqlDriver* db):QSqlResult(db),_wrapper(NULL) {}; + + ~PythonQtShell_QSqlResult(); + +virtual void bindValue(const QString& placeholder, const QVariant& val, QSql::ParamType type); +virtual void bindValue(int pos, const QVariant& val, QSql::ParamType type); +virtual QVariant data(int i); +virtual void detachFromResultSet(); +virtual bool exec(); +virtual bool execBatch(bool arrayBind = false); +virtual bool fetch(int i); +virtual bool fetchFirst(); +virtual bool fetchLast(); +virtual bool fetchNext(); +virtual bool fetchPrevious(); +virtual QVariant handle() const; +virtual bool isNull(int i); +virtual QVariant lastInsertId() const; +virtual bool nextResult(); +virtual int numRowsAffected(); +virtual bool prepare(const QString& query); +virtual QSqlRecord record() const; +virtual bool reset(const QString& sqlquery); +virtual bool savePrepare(const QString& sqlquery); +virtual void setActive(bool a); +virtual void setAt(int at); +virtual void setForwardOnly(bool forward); +virtual void setLastError(const QSqlError& e); +virtual void setNumericalPrecisionPolicy(QSql::NumericalPrecisionPolicy policy); +virtual void setQuery(const QString& query); +virtual void setSelect(bool s); +virtual int size(); +virtual void virtual_hook(int id, void* data); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSqlResult : public QSqlResult +{ public: +inline void promoted_bindValue(const QString& placeholder, const QVariant& val, QSql::ParamType type) { QSqlResult::bindValue(placeholder, val, type); } +inline void promoted_bindValue(int pos, const QVariant& val, QSql::ParamType type) { QSqlResult::bindValue(pos, val, type); } +inline void promoted_detachFromResultSet() { QSqlResult::detachFromResultSet(); } +inline bool promoted_exec() { return QSqlResult::exec(); } +inline bool promoted_execBatch(bool arrayBind = false) { return QSqlResult::execBatch(arrayBind); } +inline bool promoted_fetchNext() { return QSqlResult::fetchNext(); } +inline bool promoted_fetchPrevious() { return QSqlResult::fetchPrevious(); } +inline QVariant promoted_handle() const { return QSqlResult::handle(); } +inline QVariant promoted_lastInsertId() const { return QSqlResult::lastInsertId(); } +inline bool promoted_nextResult() { return QSqlResult::nextResult(); } +inline bool promoted_prepare(const QString& query) { return QSqlResult::prepare(query); } +inline QSqlRecord promoted_record() const { return QSqlResult::record(); } +inline bool promoted_savePrepare(const QString& sqlquery) { return QSqlResult::savePrepare(sqlquery); } +inline void promoted_setActive(bool a) { QSqlResult::setActive(a); } +inline void promoted_setAt(int at) { QSqlResult::setAt(at); } +inline void promoted_setForwardOnly(bool forward) { QSqlResult::setForwardOnly(forward); } +inline void promoted_setLastError(const QSqlError& e) { QSqlResult::setLastError(e); } +inline void promoted_setNumericalPrecisionPolicy(QSql::NumericalPrecisionPolicy policy) { QSqlResult::setNumericalPrecisionPolicy(policy); } +inline void promoted_setQuery(const QString& query) { QSqlResult::setQuery(query); } +inline void promoted_setSelect(bool s) { QSqlResult::setSelect(s); } +}; + +class PythonQtWrapper_QSqlResult : public QObject +{ Q_OBJECT +public: +public slots: +void delete_QSqlResult(QSqlResult* obj) { delete obj; } + void bindValue(QSqlResult* theWrappedObject, const QString& placeholder, const QVariant& val, QSql::ParamType type); + void bindValue(QSqlResult* theWrappedObject, int pos, const QVariant& val, QSql::ParamType type); + void detachFromResultSet(QSqlResult* theWrappedObject); + bool exec(QSqlResult* theWrappedObject); + bool execBatch(QSqlResult* theWrappedObject, bool arrayBind = false); + bool fetchNext(QSqlResult* theWrappedObject); + bool fetchPrevious(QSqlResult* theWrappedObject); + QVariant handle(QSqlResult* theWrappedObject) const; + QVariant lastInsertId(QSqlResult* theWrappedObject) const; + bool nextResult(QSqlResult* theWrappedObject); + bool prepare(QSqlResult* theWrappedObject, const QString& query); + QSqlRecord record(QSqlResult* theWrappedObject) const; + bool savePrepare(QSqlResult* theWrappedObject, const QString& sqlquery); + void setActive(QSqlResult* theWrappedObject, bool a); + void setAt(QSqlResult* theWrappedObject, int at); + void setForwardOnly(QSqlResult* theWrappedObject, bool forward); + void setLastError(QSqlResult* theWrappedObject, const QSqlError& e); + void setNumericalPrecisionPolicy(QSqlResult* theWrappedObject, QSql::NumericalPrecisionPolicy policy); + void setQuery(QSqlResult* theWrappedObject, const QString& query); + void setSelect(QSqlResult* theWrappedObject, bool s); +}; + + + + + +class PythonQtShell_QSqlTableModel : public QSqlTableModel +{ +public: + PythonQtShell_QSqlTableModel(QObject* parent = 0, QSqlDatabase db = QSqlDatabase()):QSqlTableModel(parent, db),_wrapper(NULL) {}; + + ~PythonQtShell_QSqlTableModel(); + +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 childEvent(QChildEvent* arg__1); +virtual void clear(); +virtual int columnCount(const QModelIndex& parent) const; +virtual void customEvent(QEvent* arg__1); +virtual QVariant data(const QModelIndex& idx, int role = Qt::DisplayRole) const; +virtual bool deleteRowFromTable(int row); +virtual bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void fetchMore(const QModelIndex& parent); +virtual Qt::ItemFlags flags(const QModelIndex& index) const; +virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; +virtual QModelIndex index(int row, int column, const QModelIndex& parent) const; +virtual QModelIndex indexInQuery(const QModelIndex& item) const; +virtual bool insertColumns(int column, int count, const QModelIndex& parent); +virtual bool insertRowIntoTable(const QSqlRecord& values); +virtual bool insertRows(int row, int count, const QModelIndex& parent = QModelIndex()); +virtual QMap itemData(const QModelIndex& index) const; +virtual QList match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const; +virtual QMimeData* mimeData(const QList& 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 QString orderByClause() const; +virtual void queryChange(); +virtual bool removeColumns(int column, int count, const QModelIndex& parent = QModelIndex()); +virtual bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex()); +virtual void revert(); +virtual void revertRow(int row); +virtual QHash roleNames() const; +virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; +virtual bool select(); +virtual bool selectRow(int row); +virtual QString selectStatement() const; +virtual bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); +virtual void setEditStrategy(QSqlTableModel::EditStrategy strategy); +virtual void setFilter(const QString& filter); +virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role); +virtual bool setItemData(const QModelIndex& index, const QMap& roles); +virtual void setSort(int column, Qt::SortOrder order); +virtual void setTable(const QString& tableName); +virtual QModelIndex sibling(int row, int column, const QModelIndex& idx) const; +virtual void sort(int column, Qt::SortOrder order); +virtual QSize span(const QModelIndex& index) const; +virtual bool submit(); +virtual Qt::DropActions supportedDragActions() const; +virtual Qt::DropActions supportedDropActions() const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual bool updateRowInTable(int row, const QSqlRecord& values); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSqlTableModel : public QSqlTableModel +{ public: +inline void promoted_clear() { QSqlTableModel::clear(); } +inline QVariant promoted_data(const QModelIndex& idx, int role = Qt::DisplayRole) const { return QSqlTableModel::data(idx, role); } +inline bool promoted_deleteRowFromTable(int row) { return QSqlTableModel::deleteRowFromTable(row); } +inline Qt::ItemFlags promoted_flags(const QModelIndex& index) const { return QSqlTableModel::flags(index); } +inline QVariant promoted_headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const { return QSqlTableModel::headerData(section, orientation, role); } +inline QModelIndex promoted_indexInQuery(const QModelIndex& item) const { return QSqlTableModel::indexInQuery(item); } +inline bool promoted_insertRowIntoTable(const QSqlRecord& values) { return QSqlTableModel::insertRowIntoTable(values); } +inline bool promoted_insertRows(int row, int count, const QModelIndex& parent = QModelIndex()) { return QSqlTableModel::insertRows(row, count, parent); } +inline QString promoted_orderByClause() const { return QSqlTableModel::orderByClause(); } +inline bool promoted_removeColumns(int column, int count, const QModelIndex& parent = QModelIndex()) { return QSqlTableModel::removeColumns(column, count, parent); } +inline bool promoted_removeRows(int row, int count, const QModelIndex& parent = QModelIndex()) { return QSqlTableModel::removeRows(row, count, parent); } +inline void promoted_revert() { QSqlTableModel::revert(); } +inline void promoted_revertRow(int row) { QSqlTableModel::revertRow(row); } +inline int promoted_rowCount(const QModelIndex& parent = QModelIndex()) const { return QSqlTableModel::rowCount(parent); } +inline bool promoted_select() { return QSqlTableModel::select(); } +inline bool promoted_selectRow(int row) { return QSqlTableModel::selectRow(row); } +inline QString promoted_selectStatement() const { return QSqlTableModel::selectStatement(); } +inline bool promoted_setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) { return QSqlTableModel::setData(index, value, role); } +inline void promoted_setEditStrategy(QSqlTableModel::EditStrategy strategy) { QSqlTableModel::setEditStrategy(strategy); } +inline void promoted_setFilter(const QString& filter) { QSqlTableModel::setFilter(filter); } +inline void promoted_setSort(int column, Qt::SortOrder order) { QSqlTableModel::setSort(column, order); } +inline void promoted_setTable(const QString& tableName) { QSqlTableModel::setTable(tableName); } +inline void promoted_sort(int column, Qt::SortOrder order) { QSqlTableModel::sort(column, order); } +inline bool promoted_submit() { return QSqlTableModel::submit(); } +inline bool promoted_updateRowInTable(int row, const QSqlRecord& values) { return QSqlTableModel::updateRowInTable(row, values); } +}; + +class PythonQtWrapper_QSqlTableModel : public QObject +{ Q_OBJECT +public: +Q_ENUMS(EditStrategy ) +enum EditStrategy{ + OnFieldChange = QSqlTableModel::OnFieldChange, OnRowChange = QSqlTableModel::OnRowChange, OnManualSubmit = QSqlTableModel::OnManualSubmit}; +public slots: +QSqlTableModel* new_QSqlTableModel(QObject* parent = 0, QSqlDatabase db = QSqlDatabase()); +void delete_QSqlTableModel(QSqlTableModel* obj) { delete obj; } + void clear(QSqlTableModel* theWrappedObject); + QVariant data(QSqlTableModel* theWrappedObject, const QModelIndex& idx, int role = Qt::DisplayRole) const; + QSqlDatabase database(QSqlTableModel* theWrappedObject) const; + bool deleteRowFromTable(QSqlTableModel* theWrappedObject, int row); + QSqlTableModel::EditStrategy editStrategy(QSqlTableModel* theWrappedObject) const; + int fieldIndex(QSqlTableModel* theWrappedObject, const QString& fieldName) const; + QString filter(QSqlTableModel* theWrappedObject) const; + Qt::ItemFlags flags(QSqlTableModel* theWrappedObject, const QModelIndex& index) const; + QVariant headerData(QSqlTableModel* theWrappedObject, int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; + QModelIndex indexInQuery(QSqlTableModel* theWrappedObject, const QModelIndex& item) const; + bool insertRecord(QSqlTableModel* theWrappedObject, int row, const QSqlRecord& record); + bool insertRowIntoTable(QSqlTableModel* theWrappedObject, const QSqlRecord& values); + bool insertRows(QSqlTableModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex()); + bool isDirty(QSqlTableModel* theWrappedObject) const; + bool isDirty(QSqlTableModel* theWrappedObject, const QModelIndex& index) const; + QString orderByClause(QSqlTableModel* theWrappedObject) const; + QSqlIndex primaryKey(QSqlTableModel* theWrappedObject) const; + QSqlRecord record(QSqlTableModel* theWrappedObject) const; + QSqlRecord record(QSqlTableModel* theWrappedObject, int row) const; + bool removeColumns(QSqlTableModel* theWrappedObject, int column, int count, const QModelIndex& parent = QModelIndex()); + bool removeRows(QSqlTableModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex()); + void revert(QSqlTableModel* theWrappedObject); + void revertRow(QSqlTableModel* theWrappedObject, int row); + int rowCount(QSqlTableModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const; + bool select(QSqlTableModel* theWrappedObject); + bool selectRow(QSqlTableModel* theWrappedObject, int row); + QString selectStatement(QSqlTableModel* theWrappedObject) const; + bool setData(QSqlTableModel* theWrappedObject, const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); + void setEditStrategy(QSqlTableModel* theWrappedObject, QSqlTableModel::EditStrategy strategy); + void setFilter(QSqlTableModel* theWrappedObject, const QString& filter); + bool setRecord(QSqlTableModel* theWrappedObject, int row, const QSqlRecord& record); + void setSort(QSqlTableModel* theWrappedObject, int column, Qt::SortOrder order); + void setTable(QSqlTableModel* theWrappedObject, const QString& tableName); + void sort(QSqlTableModel* theWrappedObject, int column, Qt::SortOrder order); + bool submit(QSqlTableModel* theWrappedObject); + QString tableName(QSqlTableModel* theWrappedObject) const; + bool updateRowInTable(QSqlTableModel* theWrappedObject, int row, const QSqlRecord& values); +}; + + diff --git a/generated_cpp_50/com_trolltech_qt_sql/com_trolltech_qt_sql_init.cpp b/generated_cpp_50/com_trolltech_qt_sql/com_trolltech_qt_sql_init.cpp new file mode 100644 index 00000000..8c1ee065 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_sql/com_trolltech_qt_sql_init.cpp @@ -0,0 +1,21 @@ +#include +#include "com_trolltech_qt_sql0.h" + + +void PythonQt_init_QtSql(PyObject* module) { +PythonQt::priv()->registerCPPClass("QSql", "", "QtSql", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QSqlDatabase", "", "QtSql", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QSqlDriver::staticMetaObject, "QtSql", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QSqlDriverCreatorBase", "", "QtSql", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QSqlError", "", "QtSql", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QSqlField", "", "QtSql", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QSqlIndex", "QSqlRecord", "QtSql", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QSqlQuery", "", "QtSql", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerClass(&QSqlQueryModel::staticMetaObject, "QtSql", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QSqlRecord", "", "QtSql", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QSqlRelation", "", "QtSql", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerClass(&QSqlRelationalTableModel::staticMetaObject, "QtSql", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QSqlResult", "", "QtSql", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QSqlTableModel::staticMetaObject, "QtSql", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); + +} diff --git a/generated_cpp_50/com_trolltech_qt_svg/com_trolltech_qt_svg.pri b/generated_cpp_50/com_trolltech_qt_svg/com_trolltech_qt_svg.pri new file mode 100644 index 00000000..eeea5942 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_svg/com_trolltech_qt_svg.pri @@ -0,0 +1,6 @@ +HEADERS += \ + $$PWD/com_trolltech_qt_svg0.h \ + +SOURCES += \ + $$PWD/com_trolltech_qt_svg0.cpp \ + $$PWD/com_trolltech_qt_svg_init.cpp diff --git a/generated_cpp_50/com_trolltech_qt_svg/com_trolltech_qt_svg0.cpp b/generated_cpp_50/com_trolltech_qt_svg/com_trolltech_qt_svg0.cpp new file mode 100644 index 00000000..20829873 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_svg/com_trolltech_qt_svg0.cpp @@ -0,0 +1,1407 @@ +#include "com_trolltech_qt_svg0.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +PythonQtShell_QSvgGenerator::~PythonQtShell_QSvgGenerator() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +int PythonQtShell_QSvgGenerator::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgGenerator::devType(); +} +void PythonQtShell_QSvgGenerator::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgGenerator::initPainter(painter); +} +int PythonQtShell_QSvgGenerator::metric(QPaintDevice::PaintDeviceMetric metric) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&metric}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgGenerator::metric(metric); +} +QPaintEngine* PythonQtShell_QSvgGenerator::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgGenerator::paintEngine(); +} +QPaintDevice* PythonQtShell_QSvgGenerator::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgGenerator::redirected(offset); +} +QPainter* PythonQtShell_QSvgGenerator::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgGenerator::sharedPainter(); +} +QSvgGenerator* PythonQtWrapper_QSvgGenerator::new_QSvgGenerator() +{ +return new PythonQtShell_QSvgGenerator(); } + +QString PythonQtWrapper_QSvgGenerator::description(QSvgGenerator* theWrappedObject) const +{ + return ( theWrappedObject->description()); +} + +QString PythonQtWrapper_QSvgGenerator::fileName(QSvgGenerator* theWrappedObject) const +{ + return ( theWrappedObject->fileName()); +} + +int PythonQtWrapper_QSvgGenerator::metric(QSvgGenerator* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const +{ + return ( ((PythonQtPublicPromoter_QSvgGenerator*)theWrappedObject)->promoted_metric(metric)); +} + +QIODevice* PythonQtWrapper_QSvgGenerator::outputDevice(QSvgGenerator* theWrappedObject) const +{ + return ( theWrappedObject->outputDevice()); +} + +QPaintEngine* PythonQtWrapper_QSvgGenerator::paintEngine(QSvgGenerator* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QSvgGenerator*)theWrappedObject)->promoted_paintEngine()); +} + +int PythonQtWrapper_QSvgGenerator::resolution(QSvgGenerator* theWrappedObject) const +{ + return ( theWrappedObject->resolution()); +} + +void PythonQtWrapper_QSvgGenerator::setDescription(QSvgGenerator* theWrappedObject, const QString& description) +{ + ( theWrappedObject->setDescription(description)); +} + +void PythonQtWrapper_QSvgGenerator::setFileName(QSvgGenerator* theWrappedObject, const QString& fileName) +{ + ( theWrappedObject->setFileName(fileName)); +} + +void PythonQtWrapper_QSvgGenerator::setOutputDevice(QSvgGenerator* theWrappedObject, QIODevice* outputDevice) +{ + ( theWrappedObject->setOutputDevice(outputDevice)); +} + +void PythonQtWrapper_QSvgGenerator::setResolution(QSvgGenerator* theWrappedObject, int dpi) +{ + ( theWrappedObject->setResolution(dpi)); +} + +void PythonQtWrapper_QSvgGenerator::setSize(QSvgGenerator* theWrappedObject, const QSize& size) +{ + ( theWrappedObject->setSize(size)); +} + +void PythonQtWrapper_QSvgGenerator::setTitle(QSvgGenerator* theWrappedObject, const QString& title) +{ + ( theWrappedObject->setTitle(title)); +} + +void PythonQtWrapper_QSvgGenerator::setViewBox(QSvgGenerator* theWrappedObject, const QRect& viewBox) +{ + ( theWrappedObject->setViewBox(viewBox)); +} + +void PythonQtWrapper_QSvgGenerator::setViewBox(QSvgGenerator* theWrappedObject, const QRectF& viewBox) +{ + ( theWrappedObject->setViewBox(viewBox)); +} + +QSize PythonQtWrapper_QSvgGenerator::size(QSvgGenerator* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + +QString PythonQtWrapper_QSvgGenerator::title(QSvgGenerator* theWrappedObject) const +{ + return ( theWrappedObject->title()); +} + +QRect PythonQtWrapper_QSvgGenerator::viewBox(QSvgGenerator* theWrappedObject) const +{ + return ( theWrappedObject->viewBox()); +} + +QRectF PythonQtWrapper_QSvgGenerator::viewBoxF(QSvgGenerator* theWrappedObject) const +{ + return ( theWrappedObject->viewBoxF()); +} + + + +PythonQtShell_QSvgRenderer::~PythonQtShell_QSvgRenderer() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QSvgRenderer::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgRenderer::childEvent(arg__1); +} +void PythonQtShell_QSvgRenderer::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgRenderer::customEvent(arg__1); +} +bool PythonQtShell_QSvgRenderer::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgRenderer::event(arg__1); +} +bool PythonQtShell_QSvgRenderer::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgRenderer::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QSvgRenderer::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgRenderer::timerEvent(arg__1); +} +QSvgRenderer* PythonQtWrapper_QSvgRenderer::new_QSvgRenderer(QObject* parent) +{ +return new PythonQtShell_QSvgRenderer(parent); } + +QSvgRenderer* PythonQtWrapper_QSvgRenderer::new_QSvgRenderer(QXmlStreamReader* contents, QObject* parent) +{ +return new PythonQtShell_QSvgRenderer(contents, parent); } + +QSvgRenderer* PythonQtWrapper_QSvgRenderer::new_QSvgRenderer(const QByteArray& contents, QObject* parent) +{ +return new PythonQtShell_QSvgRenderer(contents, parent); } + +QSvgRenderer* PythonQtWrapper_QSvgRenderer::new_QSvgRenderer(const QString& filename, QObject* parent) +{ +return new PythonQtShell_QSvgRenderer(filename, parent); } + +bool PythonQtWrapper_QSvgRenderer::animated(QSvgRenderer* theWrappedObject) const +{ + return ( theWrappedObject->animated()); +} + +int PythonQtWrapper_QSvgRenderer::animationDuration(QSvgRenderer* theWrappedObject) const +{ + return ( theWrappedObject->animationDuration()); +} + +QRectF PythonQtWrapper_QSvgRenderer::boundsOnElement(QSvgRenderer* theWrappedObject, const QString& id) const +{ + return ( theWrappedObject->boundsOnElement(id)); +} + +int PythonQtWrapper_QSvgRenderer::currentFrame(QSvgRenderer* theWrappedObject) const +{ + return ( theWrappedObject->currentFrame()); +} + +QSize PythonQtWrapper_QSvgRenderer::defaultSize(QSvgRenderer* theWrappedObject) const +{ + return ( theWrappedObject->defaultSize()); +} + +bool PythonQtWrapper_QSvgRenderer::elementExists(QSvgRenderer* theWrappedObject, const QString& id) const +{ + return ( theWrappedObject->elementExists(id)); +} + +int PythonQtWrapper_QSvgRenderer::framesPerSecond(QSvgRenderer* theWrappedObject) const +{ + return ( theWrappedObject->framesPerSecond()); +} + +bool PythonQtWrapper_QSvgRenderer::isValid(QSvgRenderer* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +QMatrix PythonQtWrapper_QSvgRenderer::matrixForElement(QSvgRenderer* theWrappedObject, const QString& id) const +{ + return ( theWrappedObject->matrixForElement(id)); +} + +void PythonQtWrapper_QSvgRenderer::setCurrentFrame(QSvgRenderer* theWrappedObject, int arg__1) +{ + ( theWrappedObject->setCurrentFrame(arg__1)); +} + +void PythonQtWrapper_QSvgRenderer::setFramesPerSecond(QSvgRenderer* theWrappedObject, int num) +{ + ( theWrappedObject->setFramesPerSecond(num)); +} + +void PythonQtWrapper_QSvgRenderer::setViewBox(QSvgRenderer* theWrappedObject, const QRect& viewbox) +{ + ( theWrappedObject->setViewBox(viewbox)); +} + +void PythonQtWrapper_QSvgRenderer::setViewBox(QSvgRenderer* theWrappedObject, const QRectF& viewbox) +{ + ( theWrappedObject->setViewBox(viewbox)); +} + +QRect PythonQtWrapper_QSvgRenderer::viewBox(QSvgRenderer* theWrappedObject) const +{ + return ( theWrappedObject->viewBox()); +} + +QRectF PythonQtWrapper_QSvgRenderer::viewBoxF(QSvgRenderer* theWrappedObject) const +{ + return ( theWrappedObject->viewBoxF()); +} + + + +PythonQtShell_QSvgWidget::~PythonQtShell_QSvgWidget() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QSvgWidget::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::actionEvent(arg__1); +} +void PythonQtShell_QSvgWidget::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::changeEvent(arg__1); +} +void PythonQtShell_QSvgWidget::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::childEvent(arg__1); +} +void PythonQtShell_QSvgWidget::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::closeEvent(arg__1); +} +void PythonQtShell_QSvgWidget::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::contextMenuEvent(arg__1); +} +void PythonQtShell_QSvgWidget::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::customEvent(arg__1); +} +int PythonQtShell_QSvgWidget::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgWidget::devType(); +} +void PythonQtShell_QSvgWidget::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::dragEnterEvent(arg__1); +} +void PythonQtShell_QSvgWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::dragLeaveEvent(arg__1); +} +void PythonQtShell_QSvgWidget::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::dragMoveEvent(arg__1); +} +void PythonQtShell_QSvgWidget::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::dropEvent(arg__1); +} +void PythonQtShell_QSvgWidget::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::enterEvent(arg__1); +} +bool PythonQtShell_QSvgWidget::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgWidget::event(arg__1); +} +bool PythonQtShell_QSvgWidget::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgWidget::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QSvgWidget::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::focusInEvent(arg__1); +} +bool PythonQtShell_QSvgWidget::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgWidget::focusNextPrevChild(next); +} +void PythonQtShell_QSvgWidget::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::focusOutEvent(arg__1); +} +bool PythonQtShell_QSvgWidget::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgWidget::hasHeightForWidth(); +} +int PythonQtShell_QSvgWidget::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgWidget::heightForWidth(arg__1); +} +void PythonQtShell_QSvgWidget::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::hideEvent(arg__1); +} +void PythonQtShell_QSvgWidget::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::initPainter(painter); +} +void PythonQtShell_QSvgWidget::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QSvgWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgWidget::inputMethodQuery(arg__1); +} +void PythonQtShell_QSvgWidget::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::keyPressEvent(arg__1); +} +void PythonQtShell_QSvgWidget::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::keyReleaseEvent(arg__1); +} +void PythonQtShell_QSvgWidget::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::leaveEvent(arg__1); +} +int PythonQtShell_QSvgWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgWidget::metric(arg__1); +} +QSize PythonQtShell_QSvgWidget::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgWidget::minimumSizeHint(); +} +void PythonQtShell_QSvgWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QSvgWidget::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::mouseMoveEvent(arg__1); +} +void PythonQtShell_QSvgWidget::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::mousePressEvent(arg__1); +} +void PythonQtShell_QSvgWidget::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QSvgWidget::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::moveEvent(arg__1); +} +bool PythonQtShell_QSvgWidget::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgWidget::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QSvgWidget::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgWidget::paintEngine(); +} +void PythonQtShell_QSvgWidget::paintEvent(QPaintEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::paintEvent(event); +} +QPaintDevice* PythonQtShell_QSvgWidget::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgWidget::redirected(offset); +} +void PythonQtShell_QSvgWidget::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QSvgWidget::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSvgWidget::sharedPainter(); +} +void PythonQtShell_QSvgWidget::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::showEvent(arg__1); +} +void PythonQtShell_QSvgWidget::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::tabletEvent(arg__1); +} +void PythonQtShell_QSvgWidget::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::timerEvent(arg__1); +} +void PythonQtShell_QSvgWidget::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QSvgWidget::wheelEvent(arg__1); +} +QSvgWidget* PythonQtWrapper_QSvgWidget::new_QSvgWidget(QWidget* parent) +{ +return new PythonQtShell_QSvgWidget(parent); } + +QSvgWidget* PythonQtWrapper_QSvgWidget::new_QSvgWidget(const QString& file, QWidget* parent) +{ +return new PythonQtShell_QSvgWidget(file, parent); } + +void PythonQtWrapper_QSvgWidget::paintEvent(QSvgWidget* theWrappedObject, QPaintEvent* event) +{ + ( ((PythonQtPublicPromoter_QSvgWidget*)theWrappedObject)->promoted_paintEvent(event)); +} + +QSvgRenderer* PythonQtWrapper_QSvgWidget::renderer(QSvgWidget* theWrappedObject) const +{ + return ( theWrappedObject->renderer()); +} + +QSize PythonQtWrapper_QSvgWidget::sizeHint(QSvgWidget* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + + diff --git a/generated_cpp_50/com_trolltech_qt_svg/com_trolltech_qt_svg0.h b/generated_cpp_50/com_trolltech_qt_svg/com_trolltech_qt_svg0.h new file mode 100644 index 00000000..642fd09e --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_svg/com_trolltech_qt_svg0.h @@ -0,0 +1,220 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +class PythonQtShell_QSvgGenerator : public QSvgGenerator +{ +public: + PythonQtShell_QSvgGenerator():QSvgGenerator(),_wrapper(NULL) {}; + + ~PythonQtShell_QSvgGenerator(); + +virtual int devType() const; +virtual void initPainter(QPainter* painter) const; +virtual int metric(QPaintDevice::PaintDeviceMetric metric) const; +virtual QPaintEngine* paintEngine() const; +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual QPainter* sharedPainter() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSvgGenerator : public QSvgGenerator +{ public: +inline int promoted_metric(QPaintDevice::PaintDeviceMetric metric) const { return QSvgGenerator::metric(metric); } +inline QPaintEngine* promoted_paintEngine() const { return QSvgGenerator::paintEngine(); } +}; + +class PythonQtWrapper_QSvgGenerator : public QObject +{ Q_OBJECT +public: +public slots: +QSvgGenerator* new_QSvgGenerator(); +void delete_QSvgGenerator(QSvgGenerator* obj) { delete obj; } + QString description(QSvgGenerator* theWrappedObject) const; + QString fileName(QSvgGenerator* theWrappedObject) const; + int metric(QSvgGenerator* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const; + QIODevice* outputDevice(QSvgGenerator* theWrappedObject) const; + QPaintEngine* paintEngine(QSvgGenerator* theWrappedObject) const; + int resolution(QSvgGenerator* theWrappedObject) const; + void setDescription(QSvgGenerator* theWrappedObject, const QString& description); + void setFileName(QSvgGenerator* theWrappedObject, const QString& fileName); + void setOutputDevice(QSvgGenerator* theWrappedObject, QIODevice* outputDevice); + void setResolution(QSvgGenerator* theWrappedObject, int dpi); + void setSize(QSvgGenerator* theWrappedObject, const QSize& size); + void setTitle(QSvgGenerator* theWrappedObject, const QString& title); + void setViewBox(QSvgGenerator* theWrappedObject, const QRect& viewBox); + void setViewBox(QSvgGenerator* theWrappedObject, const QRectF& viewBox); + QSize size(QSvgGenerator* theWrappedObject) const; + QString title(QSvgGenerator* theWrappedObject) const; + QRect viewBox(QSvgGenerator* theWrappedObject) const; + QRectF viewBoxF(QSvgGenerator* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QSvgRenderer : public QSvgRenderer +{ +public: + PythonQtShell_QSvgRenderer(QObject* parent = 0):QSvgRenderer(parent),_wrapper(NULL) {}; + PythonQtShell_QSvgRenderer(QXmlStreamReader* contents, QObject* parent = 0):QSvgRenderer(contents, parent),_wrapper(NULL) {}; + PythonQtShell_QSvgRenderer(const QByteArray& contents, QObject* parent = 0):QSvgRenderer(contents, parent),_wrapper(NULL) {}; + PythonQtShell_QSvgRenderer(const QString& filename, QObject* parent = 0):QSvgRenderer(filename, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QSvgRenderer(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QSvgRenderer : public QObject +{ Q_OBJECT +public: +public slots: +QSvgRenderer* new_QSvgRenderer(QObject* parent = 0); +QSvgRenderer* new_QSvgRenderer(QXmlStreamReader* contents, QObject* parent = 0); +QSvgRenderer* new_QSvgRenderer(const QByteArray& contents, QObject* parent = 0); +QSvgRenderer* new_QSvgRenderer(const QString& filename, QObject* parent = 0); +void delete_QSvgRenderer(QSvgRenderer* obj) { delete obj; } + bool animated(QSvgRenderer* theWrappedObject) const; + int animationDuration(QSvgRenderer* theWrappedObject) const; + QRectF boundsOnElement(QSvgRenderer* theWrappedObject, const QString& id) const; + int currentFrame(QSvgRenderer* theWrappedObject) const; + QSize defaultSize(QSvgRenderer* theWrappedObject) const; + bool elementExists(QSvgRenderer* theWrappedObject, const QString& id) const; + int framesPerSecond(QSvgRenderer* theWrappedObject) const; + bool isValid(QSvgRenderer* theWrappedObject) const; + QMatrix matrixForElement(QSvgRenderer* theWrappedObject, const QString& id) const; + void setCurrentFrame(QSvgRenderer* theWrappedObject, int arg__1); + void setFramesPerSecond(QSvgRenderer* theWrappedObject, int num); + void setViewBox(QSvgRenderer* theWrappedObject, const QRect& viewbox); + void setViewBox(QSvgRenderer* theWrappedObject, const QRectF& viewbox); + QRect viewBox(QSvgRenderer* theWrappedObject) const; + QRectF viewBoxF(QSvgRenderer* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QSvgWidget : public QSvgWidget +{ +public: + PythonQtShell_QSvgWidget(QWidget* parent = 0):QSvgWidget(parent),_wrapper(NULL) {}; + PythonQtShell_QSvgWidget(const QString& file, QWidget* parent = 0):QSvgWidget(file, parent),_wrapper(NULL) {}; + + ~PythonQtShell_QSvgWidget(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* event); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSvgWidget : public QSvgWidget +{ public: +inline void promoted_paintEvent(QPaintEvent* event) { QSvgWidget::paintEvent(event); } +}; + +class PythonQtWrapper_QSvgWidget : public QObject +{ Q_OBJECT +public: +public slots: +QSvgWidget* new_QSvgWidget(QWidget* parent = 0); +QSvgWidget* new_QSvgWidget(const QString& file, QWidget* parent = 0); +void delete_QSvgWidget(QSvgWidget* obj) { delete obj; } + void paintEvent(QSvgWidget* theWrappedObject, QPaintEvent* event); + QSvgRenderer* renderer(QSvgWidget* theWrappedObject) const; + QSize sizeHint(QSvgWidget* theWrappedObject) const; +}; + + diff --git a/generated_cpp_50/com_trolltech_qt_svg/com_trolltech_qt_svg_init.cpp b/generated_cpp_50/com_trolltech_qt_svg/com_trolltech_qt_svg_init.cpp new file mode 100644 index 00000000..a82e8cc3 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_svg/com_trolltech_qt_svg_init.cpp @@ -0,0 +1,11 @@ +#include +#include "com_trolltech_qt_svg0.h" + + +void PythonQt_init_QtSvg(PyObject* module) { +PythonQt::priv()->registerCPPClass("QSvgGenerator", "", "QtSvg", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::self()->addParentClass("QSvgGenerator", "QPaintDevice",PythonQtUpcastingOffset()); +PythonQt::priv()->registerClass(&QSvgRenderer::staticMetaObject, "QtSvg", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QSvgWidget::staticMetaObject, "QtSvg", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); + +} diff --git a/generated_cpp_50/com_trolltech_qt_uitools/com_trolltech_qt_uitools.pri b/generated_cpp_50/com_trolltech_qt_uitools/com_trolltech_qt_uitools.pri new file mode 100644 index 00000000..680ce525 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_uitools/com_trolltech_qt_uitools.pri @@ -0,0 +1,6 @@ +HEADERS += \ + $$PWD/com_trolltech_qt_uitools0.h \ + +SOURCES += \ + $$PWD/com_trolltech_qt_uitools0.cpp \ + $$PWD/com_trolltech_qt_uitools_init.cpp diff --git a/generated_cpp_50/com_trolltech_qt_uitools/com_trolltech_qt_uitools0.cpp b/generated_cpp_50/com_trolltech_qt_uitools/com_trolltech_qt_uitools0.cpp new file mode 100644 index 00000000..38926347 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_uitools/com_trolltech_qt_uitools0.cpp @@ -0,0 +1,331 @@ +#include "com_trolltech_qt_uitools0.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +PythonQtShell_QUiLoader::~PythonQtShell_QUiLoader() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QUiLoader::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUiLoader::childEvent(arg__1); +} +QAction* PythonQtShell_QUiLoader::createAction(QObject* parent, const QString& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QAction*" , "QObject*" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QAction* returnValue; + void* args[3] = {NULL, (void*)&parent, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createAction", methodInfo, result); + } else { + returnValue = *((QAction**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUiLoader::createAction(parent, name); +} +QActionGroup* PythonQtShell_QUiLoader::createActionGroup(QObject* parent, const QString& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createActionGroup"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QActionGroup*" , "QObject*" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QActionGroup* returnValue; + void* args[3] = {NULL, (void*)&parent, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createActionGroup", methodInfo, result); + } else { + returnValue = *((QActionGroup**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUiLoader::createActionGroup(parent, name); +} +QLayout* PythonQtShell_QUiLoader::createLayout(const QString& className, QObject* parent, const QString& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createLayout"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QLayout*" , "const QString&" , "QObject*" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QLayout* returnValue; + void* args[4] = {NULL, (void*)&className, (void*)&parent, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createLayout", methodInfo, result); + } else { + returnValue = *((QLayout**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUiLoader::createLayout(className, parent, name); +} +QWidget* PythonQtShell_QUiLoader::createWidget(const QString& className, QWidget* parent, const QString& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createWidget"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QWidget*" , "const QString&" , "QWidget*" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + QWidget* returnValue; + void* args[4] = {NULL, (void*)&className, (void*)&parent, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createWidget", methodInfo, result); + } else { + returnValue = *((QWidget**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUiLoader::createWidget(className, parent, name); +} +void PythonQtShell_QUiLoader::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUiLoader::customEvent(arg__1); +} +bool PythonQtShell_QUiLoader::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUiLoader::event(arg__1); +} +bool PythonQtShell_QUiLoader::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUiLoader::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QUiLoader::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QUiLoader::timerEvent(arg__1); +} +QUiLoader* PythonQtWrapper_QUiLoader::new_QUiLoader(QObject* parent) +{ +return new PythonQtShell_QUiLoader(parent); } + +void PythonQtWrapper_QUiLoader::addPluginPath(QUiLoader* theWrappedObject, const QString& path) +{ + ( theWrappedObject->addPluginPath(path)); +} + +QStringList PythonQtWrapper_QUiLoader::availableLayouts(QUiLoader* theWrappedObject) const +{ + return ( theWrappedObject->availableLayouts()); +} + +QStringList PythonQtWrapper_QUiLoader::availableWidgets(QUiLoader* theWrappedObject) const +{ + return ( theWrappedObject->availableWidgets()); +} + +void PythonQtWrapper_QUiLoader::clearPluginPaths(QUiLoader* theWrappedObject) +{ + ( theWrappedObject->clearPluginPaths()); +} + +QAction* PythonQtWrapper_QUiLoader::createAction(QUiLoader* theWrappedObject, QObject* parent, const QString& name) +{ + return ( ((PythonQtPublicPromoter_QUiLoader*)theWrappedObject)->promoted_createAction(parent, name)); +} + +QActionGroup* PythonQtWrapper_QUiLoader::createActionGroup(QUiLoader* theWrappedObject, QObject* parent, const QString& name) +{ + return ( ((PythonQtPublicPromoter_QUiLoader*)theWrappedObject)->promoted_createActionGroup(parent, name)); +} + +QLayout* PythonQtWrapper_QUiLoader::createLayout(QUiLoader* theWrappedObject, const QString& className, QObject* parent, const QString& name) +{ + return ( ((PythonQtPublicPromoter_QUiLoader*)theWrappedObject)->promoted_createLayout(className, parent, name)); +} + +QWidget* PythonQtWrapper_QUiLoader::createWidget(QUiLoader* theWrappedObject, const QString& className, QWidget* parent, const QString& name) +{ + return ( ((PythonQtPublicPromoter_QUiLoader*)theWrappedObject)->promoted_createWidget(className, parent, name)); +} + +QString PythonQtWrapper_QUiLoader::errorString(QUiLoader* theWrappedObject) const +{ + return ( theWrappedObject->errorString()); +} + +bool PythonQtWrapper_QUiLoader::isLanguageChangeEnabled(QUiLoader* theWrappedObject) const +{ + return ( theWrappedObject->isLanguageChangeEnabled()); +} + +bool PythonQtWrapper_QUiLoader::isTranslationEnabled(QUiLoader* theWrappedObject) const +{ + return ( theWrappedObject->isTranslationEnabled()); +} + +QWidget* PythonQtWrapper_QUiLoader::load(QUiLoader* theWrappedObject, QIODevice* device, QWidget* parentWidget) +{ + return ( theWrappedObject->load(device, parentWidget)); +} + +QStringList PythonQtWrapper_QUiLoader::pluginPaths(QUiLoader* theWrappedObject) const +{ + return ( theWrappedObject->pluginPaths()); +} + +void PythonQtWrapper_QUiLoader::setLanguageChangeEnabled(QUiLoader* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setLanguageChangeEnabled(enabled)); +} + +void PythonQtWrapper_QUiLoader::setTranslationEnabled(QUiLoader* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setTranslationEnabled(enabled)); +} + +void PythonQtWrapper_QUiLoader::setWorkingDirectory(QUiLoader* theWrappedObject, const QDir& dir) +{ + ( theWrappedObject->setWorkingDirectory(dir)); +} + +QDir PythonQtWrapper_QUiLoader::workingDirectory(QUiLoader* theWrappedObject) const +{ + return ( theWrappedObject->workingDirectory()); +} + + diff --git a/generated_cpp_50/com_trolltech_qt_uitools/com_trolltech_qt_uitools0.h b/generated_cpp_50/com_trolltech_qt_uitools/com_trolltech_qt_uitools0.h new file mode 100644 index 00000000..8ee5d57e --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_uitools/com_trolltech_qt_uitools0.h @@ -0,0 +1,72 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +class PythonQtShell_QUiLoader : public QUiLoader +{ +public: + PythonQtShell_QUiLoader(QObject* parent = 0):QUiLoader(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QUiLoader(); + +virtual void childEvent(QChildEvent* arg__1); +virtual QAction* createAction(QObject* parent = 0, const QString& name = QString()); +virtual QActionGroup* createActionGroup(QObject* parent = 0, const QString& name = QString()); +virtual QLayout* createLayout(const QString& className, QObject* parent = 0, const QString& name = QString()); +virtual QWidget* createWidget(const QString& className, QWidget* parent = 0, const QString& name = QString()); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QUiLoader : public QUiLoader +{ public: +inline QAction* promoted_createAction(QObject* parent = 0, const QString& name = QString()) { return QUiLoader::createAction(parent, name); } +inline QActionGroup* promoted_createActionGroup(QObject* parent = 0, const QString& name = QString()) { return QUiLoader::createActionGroup(parent, name); } +inline QLayout* promoted_createLayout(const QString& className, QObject* parent = 0, const QString& name = QString()) { return QUiLoader::createLayout(className, parent, name); } +inline QWidget* promoted_createWidget(const QString& className, QWidget* parent = 0, const QString& name = QString()) { return QUiLoader::createWidget(className, parent, name); } +}; + +class PythonQtWrapper_QUiLoader : public QObject +{ Q_OBJECT +public: +public slots: +QUiLoader* new_QUiLoader(QObject* parent = 0); +void delete_QUiLoader(QUiLoader* obj) { delete obj; } + void addPluginPath(QUiLoader* theWrappedObject, const QString& path); + QStringList availableLayouts(QUiLoader* theWrappedObject) const; + QStringList availableWidgets(QUiLoader* theWrappedObject) const; + void clearPluginPaths(QUiLoader* theWrappedObject); + QAction* createAction(QUiLoader* theWrappedObject, QObject* parent = 0, const QString& name = QString()); + QActionGroup* createActionGroup(QUiLoader* theWrappedObject, QObject* parent = 0, const QString& name = QString()); + QLayout* createLayout(QUiLoader* theWrappedObject, const QString& className, QObject* parent = 0, const QString& name = QString()); + QWidget* createWidget(QUiLoader* theWrappedObject, const QString& className, QWidget* parent = 0, const QString& name = QString()); + QString errorString(QUiLoader* theWrappedObject) const; + bool isLanguageChangeEnabled(QUiLoader* theWrappedObject) const; + bool isTranslationEnabled(QUiLoader* theWrappedObject) const; + QWidget* load(QUiLoader* theWrappedObject, QIODevice* device, QWidget* parentWidget = 0); + QStringList pluginPaths(QUiLoader* theWrappedObject) const; + void setLanguageChangeEnabled(QUiLoader* theWrappedObject, bool enabled); + void setTranslationEnabled(QUiLoader* theWrappedObject, bool enabled); + void setWorkingDirectory(QUiLoader* theWrappedObject, const QDir& dir); + QDir workingDirectory(QUiLoader* theWrappedObject) const; +}; + + diff --git a/generated_cpp_50/com_trolltech_qt_uitools/com_trolltech_qt_uitools_init.cpp b/generated_cpp_50/com_trolltech_qt_uitools/com_trolltech_qt_uitools_init.cpp new file mode 100644 index 00000000..5f465d4f --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_uitools/com_trolltech_qt_uitools_init.cpp @@ -0,0 +1,8 @@ +#include +#include "com_trolltech_qt_uitools0.h" + + +void PythonQt_init_QtUiTools(PyObject* module) { +PythonQt::priv()->registerClass(&QUiLoader::staticMetaObject, "QtUiTools", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); + +} diff --git a/generated_cpp_50/com_trolltech_qt_webkit/com_trolltech_qt_webkit.pri b/generated_cpp_50/com_trolltech_qt_webkit/com_trolltech_qt_webkit.pri new file mode 100644 index 00000000..4ae397cc --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_webkit/com_trolltech_qt_webkit.pri @@ -0,0 +1,6 @@ +HEADERS += \ + $$PWD/com_trolltech_qt_webkit0.h \ + +SOURCES += \ + $$PWD/com_trolltech_qt_webkit0.cpp \ + $$PWD/com_trolltech_qt_webkit_init.cpp diff --git a/generated_cpp_50/com_trolltech_qt_webkit/com_trolltech_qt_webkit0.cpp b/generated_cpp_50/com_trolltech_qt_webkit/com_trolltech_qt_webkit0.cpp new file mode 100644 index 00000000..2b8c4648 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_webkit/com_trolltech_qt_webkit0.cpp @@ -0,0 +1,5332 @@ +#include "com_trolltech_qt_webkit0.h" + +#include +#include +#include + +#if defined(QT_WEBKITWIDGETS_LIB) + +PythonQtShell_QGraphicsWebView::~PythonQtShell_QGraphicsWebView() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QGraphicsWebView::changeEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::changeEvent(event); +} +void PythonQtShell_QGraphicsWebView::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::childEvent(arg__1); +} +void PythonQtShell_QGraphicsWebView::closeEvent(QCloseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::closeEvent(event); +} +void PythonQtShell_QGraphicsWebView::contextMenuEvent(QGraphicsSceneContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::contextMenuEvent(arg__1); +} +void PythonQtShell_QGraphicsWebView::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::customEvent(arg__1); +} +void PythonQtShell_QGraphicsWebView::dragEnterEvent(QGraphicsSceneDragDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::dragEnterEvent(arg__1); +} +void PythonQtShell_QGraphicsWebView::dragLeaveEvent(QGraphicsSceneDragDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::dragLeaveEvent(arg__1); +} +void PythonQtShell_QGraphicsWebView::dragMoveEvent(QGraphicsSceneDragDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::dragMoveEvent(arg__1); +} +void PythonQtShell_QGraphicsWebView::dropEvent(QGraphicsSceneDragDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::dropEvent(arg__1); +} +bool PythonQtShell_QGraphicsWebView::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsWebView::event(arg__1); +} +bool PythonQtShell_QGraphicsWebView::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsWebView::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QGraphicsWebView::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::focusInEvent(arg__1); +} +bool PythonQtShell_QGraphicsWebView::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsWebView::focusNextPrevChild(next); +} +void PythonQtShell_QGraphicsWebView::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::focusOutEvent(arg__1); +} +void PythonQtShell_QGraphicsWebView::getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getContentsMargins"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "qreal*" , "qreal*" , "qreal*" , "qreal*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&left, (void*)&top, (void*)&right, (void*)&bottom}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::getContentsMargins(left, top, right, bottom); +} +void PythonQtShell_QGraphicsWebView::grabKeyboardEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "grabKeyboardEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::grabKeyboardEvent(event); +} +void PythonQtShell_QGraphicsWebView::grabMouseEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "grabMouseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::grabMouseEvent(event); +} +void PythonQtShell_QGraphicsWebView::hideEvent(QHideEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::hideEvent(event); +} +void PythonQtShell_QGraphicsWebView::hoverLeaveEvent(QGraphicsSceneHoverEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::hoverLeaveEvent(arg__1); +} +void PythonQtShell_QGraphicsWebView::hoverMoveEvent(QGraphicsSceneHoverEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::hoverMoveEvent(arg__1); +} +void PythonQtShell_QGraphicsWebView::initStyleOption(QStyleOption* option) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initStyleOption"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QStyleOption*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&option}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::initStyleOption(option); +} +void PythonQtShell_QGraphicsWebView::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QGraphicsWebView::inputMethodQuery(Qt::InputMethodQuery query) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&query}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsWebView::inputMethodQuery(query); +} +QVariant PythonQtShell_QGraphicsWebView::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemChange"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "QGraphicsItem::GraphicsItemChange" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&change, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("itemChange", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsWebView::itemChange(change, value); +} +void PythonQtShell_QGraphicsWebView::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::keyPressEvent(arg__1); +} +void PythonQtShell_QGraphicsWebView::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::keyReleaseEvent(arg__1); +} +void PythonQtShell_QGraphicsWebView::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QGraphicsWebView::mouseMoveEvent(QGraphicsSceneMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::mouseMoveEvent(arg__1); +} +void PythonQtShell_QGraphicsWebView::mousePressEvent(QGraphicsSceneMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::mousePressEvent(arg__1); +} +void PythonQtShell_QGraphicsWebView::mouseReleaseEvent(QGraphicsSceneMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QGraphicsWebView::moveEvent(QGraphicsSceneMoveEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::moveEvent(event); +} +void PythonQtShell_QGraphicsWebView::paint(QPainter* arg__1, const QStyleOptionGraphicsItem* options, QWidget* widget) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&arg__1, (void*)&options, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::paint(arg__1, options, widget); +} +void PythonQtShell_QGraphicsWebView::paintWindowFrame(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintWindowFrame"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::paintWindowFrame(painter, option, widget); +} +void PythonQtShell_QGraphicsWebView::polishEvent() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polishEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::polishEvent(); +} +QVariant PythonQtShell_QGraphicsWebView::propertyChange(const QString& propertyName, const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "propertyChange"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QString&" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QVariant returnValue; + void* args[3] = {NULL, (void*)&propertyName, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("propertyChange", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsWebView::propertyChange(propertyName, value); +} +void PythonQtShell_QGraphicsWebView::resizeEvent(QGraphicsSceneResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::resizeEvent(event); +} +bool PythonQtShell_QGraphicsWebView::sceneEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sceneEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsWebView::sceneEvent(arg__1); +} +void PythonQtShell_QGraphicsWebView::setGeometry(const QRectF& rect) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QRectF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&rect}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::setGeometry(rect); +} +void PythonQtShell_QGraphicsWebView::showEvent(QShowEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::showEvent(event); +} +QSizeF PythonQtShell_QGraphicsWebView::sizeHint(Qt::SizeHint which, const QSizeF& constraint) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSizeF" , "Qt::SizeHint" , "const QSizeF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QSizeF returnValue; + void* args[3] = {NULL, (void*)&which, (void*)&constraint}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); + } else { + returnValue = *((QSizeF*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsWebView::sizeHint(which, constraint); +} +void PythonQtShell_QGraphicsWebView::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::timerEvent(arg__1); +} +void PythonQtShell_QGraphicsWebView::ungrabKeyboardEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ungrabKeyboardEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::ungrabKeyboardEvent(event); +} +void PythonQtShell_QGraphicsWebView::ungrabMouseEvent(QEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ungrabMouseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::ungrabMouseEvent(event); +} +void PythonQtShell_QGraphicsWebView::updateGeometry() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::updateGeometry(); +} +void PythonQtShell_QGraphicsWebView::wheelEvent(QGraphicsSceneWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QGraphicsSceneWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QGraphicsWebView::wheelEvent(arg__1); +} +bool PythonQtShell_QGraphicsWebView::windowFrameEvent(QEvent* e) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "windowFrameEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&e}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("windowFrameEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsWebView::windowFrameEvent(e); +} +Qt::WindowFrameSection PythonQtShell_QGraphicsWebView::windowFrameSectionAt(const QPointF& pos) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "windowFrameSectionAt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"Qt::WindowFrameSection" , "const QPointF&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + Qt::WindowFrameSection returnValue; + void* args[2] = {NULL, (void*)&pos}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("windowFrameSectionAt", methodInfo, result); + } else { + returnValue = *((Qt::WindowFrameSection*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QGraphicsWebView::windowFrameSectionAt(pos); +} +QGraphicsWebView* PythonQtWrapper_QGraphicsWebView::new_QGraphicsWebView(QGraphicsItem* parent) +{ +return new PythonQtShell_QGraphicsWebView(parent); } + +void PythonQtWrapper_QGraphicsWebView::contextMenuEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneContextMenuEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_contextMenuEvent(arg__1)); +} + +void PythonQtWrapper_QGraphicsWebView::dragEnterEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneDragDropEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_dragEnterEvent(arg__1)); +} + +void PythonQtWrapper_QGraphicsWebView::dragLeaveEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneDragDropEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_dragLeaveEvent(arg__1)); +} + +void PythonQtWrapper_QGraphicsWebView::dragMoveEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneDragDropEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_dragMoveEvent(arg__1)); +} + +void PythonQtWrapper_QGraphicsWebView::dropEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneDragDropEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_dropEvent(arg__1)); +} + +bool PythonQtWrapper_QGraphicsWebView::event(QGraphicsWebView* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_event(arg__1)); +} + +bool PythonQtWrapper_QGraphicsWebView::findText(QGraphicsWebView* theWrappedObject, const QString& subString, QWebPage::FindFlags options) +{ + return ( theWrappedObject->findText(subString, options)); +} + +void PythonQtWrapper_QGraphicsWebView::focusInEvent(QGraphicsWebView* theWrappedObject, QFocusEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_focusInEvent(arg__1)); +} + +bool PythonQtWrapper_QGraphicsWebView::focusNextPrevChild(QGraphicsWebView* theWrappedObject, bool next) +{ + return ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_focusNextPrevChild(next)); +} + +void PythonQtWrapper_QGraphicsWebView::focusOutEvent(QGraphicsWebView* theWrappedObject, QFocusEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_focusOutEvent(arg__1)); +} + +QWebHistory* PythonQtWrapper_QGraphicsWebView::history(QGraphicsWebView* theWrappedObject) const +{ + return ( theWrappedObject->history()); +} + +void PythonQtWrapper_QGraphicsWebView::hoverLeaveEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneHoverEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_hoverLeaveEvent(arg__1)); +} + +void PythonQtWrapper_QGraphicsWebView::hoverMoveEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneHoverEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_hoverMoveEvent(arg__1)); +} + +QIcon PythonQtWrapper_QGraphicsWebView::icon(QGraphicsWebView* theWrappedObject) const +{ + return ( theWrappedObject->icon()); +} + +void PythonQtWrapper_QGraphicsWebView::inputMethodEvent(QGraphicsWebView* theWrappedObject, QInputMethodEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_inputMethodEvent(arg__1)); +} + +QVariant PythonQtWrapper_QGraphicsWebView::inputMethodQuery(QGraphicsWebView* theWrappedObject, Qt::InputMethodQuery query) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_inputMethodQuery(query)); +} + +bool PythonQtWrapper_QGraphicsWebView::isModified(QGraphicsWebView* theWrappedObject) const +{ + return ( theWrappedObject->isModified()); +} + +bool PythonQtWrapper_QGraphicsWebView::isTiledBackingStoreFrozen(QGraphicsWebView* theWrappedObject) const +{ + return ( theWrappedObject->isTiledBackingStoreFrozen()); +} + +QVariant PythonQtWrapper_QGraphicsWebView::itemChange(QGraphicsWebView* theWrappedObject, QGraphicsItem::GraphicsItemChange change, const QVariant& value) +{ + return ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_itemChange(change, value)); +} + +void PythonQtWrapper_QGraphicsWebView::keyPressEvent(QGraphicsWebView* theWrappedObject, QKeyEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_keyPressEvent(arg__1)); +} + +void PythonQtWrapper_QGraphicsWebView::keyReleaseEvent(QGraphicsWebView* theWrappedObject, QKeyEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_keyReleaseEvent(arg__1)); +} + +void PythonQtWrapper_QGraphicsWebView::load(QGraphicsWebView* theWrappedObject, const QNetworkRequest& request, QNetworkAccessManager::Operation operation, const QByteArray& body) +{ + ( theWrappedObject->load(request, operation, body)); +} + +void PythonQtWrapper_QGraphicsWebView::load(QGraphicsWebView* theWrappedObject, const QUrl& url) +{ + ( theWrappedObject->load(url)); +} + +void PythonQtWrapper_QGraphicsWebView::mouseDoubleClickEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_mouseDoubleClickEvent(arg__1)); +} + +void PythonQtWrapper_QGraphicsWebView::mouseMoveEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); +} + +void PythonQtWrapper_QGraphicsWebView::mousePressEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_mousePressEvent(arg__1)); +} + +void PythonQtWrapper_QGraphicsWebView::mouseReleaseEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); +} + +QWebPage* PythonQtWrapper_QGraphicsWebView::page(QGraphicsWebView* theWrappedObject) const +{ + return ( theWrappedObject->page()); +} + +QAction* PythonQtWrapper_QGraphicsWebView::pageAction(QGraphicsWebView* theWrappedObject, QWebPage::WebAction action) const +{ + return ( theWrappedObject->pageAction(action)); +} + +void PythonQtWrapper_QGraphicsWebView::paint(QGraphicsWebView* theWrappedObject, QPainter* arg__1, const QStyleOptionGraphicsItem* options, QWidget* widget) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_paint(arg__1, options, widget)); +} + +QPainter::RenderHints PythonQtWrapper_QGraphicsWebView::renderHints(QGraphicsWebView* theWrappedObject) const +{ + return ( theWrappedObject->renderHints()); +} + +bool PythonQtWrapper_QGraphicsWebView::resizesToContents(QGraphicsWebView* theWrappedObject) const +{ + return ( theWrappedObject->resizesToContents()); +} + +bool PythonQtWrapper_QGraphicsWebView::sceneEvent(QGraphicsWebView* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_sceneEvent(arg__1)); +} + +void PythonQtWrapper_QGraphicsWebView::setContent(QGraphicsWebView* theWrappedObject, const QByteArray& data, const QString& mimeType, const QUrl& baseUrl) +{ + ( theWrappedObject->setContent(data, mimeType, baseUrl)); +} + +void PythonQtWrapper_QGraphicsWebView::setGeometry(QGraphicsWebView* theWrappedObject, const QRectF& rect) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_setGeometry(rect)); +} + +void PythonQtWrapper_QGraphicsWebView::setHtml(QGraphicsWebView* theWrappedObject, const QString& html, const QUrl& baseUrl) +{ + ( theWrappedObject->setHtml(html, baseUrl)); +} + +void PythonQtWrapper_QGraphicsWebView::setPage(QGraphicsWebView* theWrappedObject, QWebPage* arg__1) +{ + ( theWrappedObject->setPage(arg__1)); +} + +void PythonQtWrapper_QGraphicsWebView::setRenderHint(QGraphicsWebView* theWrappedObject, QPainter::RenderHint arg__1, bool enabled) +{ + ( theWrappedObject->setRenderHint(arg__1, enabled)); +} + +void PythonQtWrapper_QGraphicsWebView::setRenderHints(QGraphicsWebView* theWrappedObject, QPainter::RenderHints arg__1) +{ + ( theWrappedObject->setRenderHints(arg__1)); +} + +void PythonQtWrapper_QGraphicsWebView::setResizesToContents(QGraphicsWebView* theWrappedObject, bool enabled) +{ + ( theWrappedObject->setResizesToContents(enabled)); +} + +void PythonQtWrapper_QGraphicsWebView::setTiledBackingStoreFrozen(QGraphicsWebView* theWrappedObject, bool frozen) +{ + ( theWrappedObject->setTiledBackingStoreFrozen(frozen)); +} + +void PythonQtWrapper_QGraphicsWebView::setUrl(QGraphicsWebView* theWrappedObject, const QUrl& arg__1) +{ + ( theWrappedObject->setUrl(arg__1)); +} + +void PythonQtWrapper_QGraphicsWebView::setZoomFactor(QGraphicsWebView* theWrappedObject, qreal arg__1) +{ + ( theWrappedObject->setZoomFactor(arg__1)); +} + +QWebSettings* PythonQtWrapper_QGraphicsWebView::settings(QGraphicsWebView* theWrappedObject) const +{ + return ( theWrappedObject->settings()); +} + +QSizeF PythonQtWrapper_QGraphicsWebView::sizeHint(QGraphicsWebView* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint) const +{ + return ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_sizeHint(which, constraint)); +} + +QString PythonQtWrapper_QGraphicsWebView::title(QGraphicsWebView* theWrappedObject) const +{ + return ( theWrappedObject->title()); +} + +void PythonQtWrapper_QGraphicsWebView::triggerPageAction(QGraphicsWebView* theWrappedObject, QWebPage::WebAction action, bool checked) +{ + ( theWrappedObject->triggerPageAction(action, checked)); +} + +void PythonQtWrapper_QGraphicsWebView::updateGeometry(QGraphicsWebView* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_updateGeometry()); +} + +QUrl PythonQtWrapper_QGraphicsWebView::url(QGraphicsWebView* theWrappedObject) const +{ + return ( theWrappedObject->url()); +} + +void PythonQtWrapper_QGraphicsWebView::wheelEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneWheelEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QGraphicsWebView*)theWrappedObject)->promoted_wheelEvent(arg__1)); +} + +qreal PythonQtWrapper_QGraphicsWebView::zoomFactor(QGraphicsWebView* theWrappedObject) const +{ + return ( theWrappedObject->zoomFactor()); +} + +#endif + +QWebElement* PythonQtWrapper_QWebElement::new_QWebElement() +{ +return new QWebElement(); } + +QWebElement* PythonQtWrapper_QWebElement::new_QWebElement(const QWebElement& arg__1) +{ +return new QWebElement(arg__1); } + +void PythonQtWrapper_QWebElement::addClass(QWebElement* theWrappedObject, const QString& name) +{ + ( theWrappedObject->addClass(name)); +} + +void PythonQtWrapper_QWebElement::appendInside(QWebElement* theWrappedObject, const QString& markup) +{ + ( theWrappedObject->appendInside(markup)); +} + +void PythonQtWrapper_QWebElement::appendInside(QWebElement* theWrappedObject, const QWebElement& element) +{ + ( theWrappedObject->appendInside(element)); +} + +void PythonQtWrapper_QWebElement::appendOutside(QWebElement* theWrappedObject, const QString& markup) +{ + ( theWrappedObject->appendOutside(markup)); +} + +void PythonQtWrapper_QWebElement::appendOutside(QWebElement* theWrappedObject, const QWebElement& element) +{ + ( theWrappedObject->appendOutside(element)); +} + +QString PythonQtWrapper_QWebElement::attribute(QWebElement* theWrappedObject, const QString& name, const QString& defaultValue) const +{ + return ( theWrappedObject->attribute(name, defaultValue)); +} + +QString PythonQtWrapper_QWebElement::attributeNS(QWebElement* theWrappedObject, const QString& namespaceUri, const QString& name, const QString& defaultValue) const +{ + return ( theWrappedObject->attributeNS(namespaceUri, name, defaultValue)); +} + +QStringList PythonQtWrapper_QWebElement::attributeNames(QWebElement* theWrappedObject, const QString& namespaceUri) const +{ + return ( theWrappedObject->attributeNames(namespaceUri)); +} + +QStringList PythonQtWrapper_QWebElement::classes(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->classes()); +} + +QWebElement PythonQtWrapper_QWebElement::clone(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->clone()); +} + +QWebElement PythonQtWrapper_QWebElement::document(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->document()); +} + +void PythonQtWrapper_QWebElement::encloseContentsWith(QWebElement* theWrappedObject, const QString& markup) +{ + ( theWrappedObject->encloseContentsWith(markup)); +} + +void PythonQtWrapper_QWebElement::encloseContentsWith(QWebElement* theWrappedObject, const QWebElement& element) +{ + ( theWrappedObject->encloseContentsWith(element)); +} + +void PythonQtWrapper_QWebElement::encloseWith(QWebElement* theWrappedObject, const QString& markup) +{ + ( theWrappedObject->encloseWith(markup)); +} + +void PythonQtWrapper_QWebElement::encloseWith(QWebElement* theWrappedObject, const QWebElement& element) +{ + ( theWrappedObject->encloseWith(element)); +} + +QVariant PythonQtWrapper_QWebElement::evaluateJavaScript(QWebElement* theWrappedObject, const QString& scriptSource) +{ + return ( theWrappedObject->evaluateJavaScript(scriptSource)); +} + +QWebElement PythonQtWrapper_QWebElement::findFirst(QWebElement* theWrappedObject, const QString& selectorQuery) const +{ + return ( theWrappedObject->findFirst(selectorQuery)); +} + +QWebElement PythonQtWrapper_QWebElement::firstChild(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->firstChild()); +} + +QRect PythonQtWrapper_QWebElement::geometry(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->geometry()); +} + +bool PythonQtWrapper_QWebElement::hasAttribute(QWebElement* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->hasAttribute(name)); +} + +bool PythonQtWrapper_QWebElement::hasAttributeNS(QWebElement* theWrappedObject, const QString& namespaceUri, const QString& name) const +{ + return ( theWrappedObject->hasAttributeNS(namespaceUri, name)); +} + +bool PythonQtWrapper_QWebElement::hasAttributes(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->hasAttributes()); +} + +bool PythonQtWrapper_QWebElement::hasClass(QWebElement* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->hasClass(name)); +} + +bool PythonQtWrapper_QWebElement::hasFocus(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->hasFocus()); +} + +bool PythonQtWrapper_QWebElement::isNull(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +QWebElement PythonQtWrapper_QWebElement::lastChild(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->lastChild()); +} + +QString PythonQtWrapper_QWebElement::localName(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->localName()); +} + +QString PythonQtWrapper_QWebElement::namespaceUri(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->namespaceUri()); +} + +QWebElement PythonQtWrapper_QWebElement::nextSibling(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->nextSibling()); +} + +bool PythonQtWrapper_QWebElement::__ne__(QWebElement* theWrappedObject, const QWebElement& o) const +{ + return ( (*theWrappedObject)!= o); +} + +QWebElement* PythonQtWrapper_QWebElement::operator_assign(QWebElement* theWrappedObject, const QWebElement& arg__1) +{ + return &( (*theWrappedObject)= arg__1); +} + +bool PythonQtWrapper_QWebElement::__eq__(QWebElement* theWrappedObject, const QWebElement& o) const +{ + return ( (*theWrappedObject)== o); +} + +QWebElement PythonQtWrapper_QWebElement::parent(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->parent()); +} + +QString PythonQtWrapper_QWebElement::prefix(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->prefix()); +} + +void PythonQtWrapper_QWebElement::prependInside(QWebElement* theWrappedObject, const QString& markup) +{ + ( theWrappedObject->prependInside(markup)); +} + +void PythonQtWrapper_QWebElement::prependInside(QWebElement* theWrappedObject, const QWebElement& element) +{ + ( theWrappedObject->prependInside(element)); +} + +void PythonQtWrapper_QWebElement::prependOutside(QWebElement* theWrappedObject, const QString& markup) +{ + ( theWrappedObject->prependOutside(markup)); +} + +void PythonQtWrapper_QWebElement::prependOutside(QWebElement* theWrappedObject, const QWebElement& element) +{ + ( theWrappedObject->prependOutside(element)); +} + +QWebElement PythonQtWrapper_QWebElement::previousSibling(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->previousSibling()); +} + +void PythonQtWrapper_QWebElement::removeAllChildren(QWebElement* theWrappedObject) +{ + ( theWrappedObject->removeAllChildren()); +} + +void PythonQtWrapper_QWebElement::removeAttribute(QWebElement* theWrappedObject, const QString& name) +{ + ( theWrappedObject->removeAttribute(name)); +} + +void PythonQtWrapper_QWebElement::removeAttributeNS(QWebElement* theWrappedObject, const QString& namespaceUri, const QString& name) +{ + ( theWrappedObject->removeAttributeNS(namespaceUri, name)); +} + +void PythonQtWrapper_QWebElement::removeClass(QWebElement* theWrappedObject, const QString& name) +{ + ( theWrappedObject->removeClass(name)); +} + +void PythonQtWrapper_QWebElement::removeFromDocument(QWebElement* theWrappedObject) +{ + ( theWrappedObject->removeFromDocument()); +} + +void PythonQtWrapper_QWebElement::render(QWebElement* theWrappedObject, QPainter* painter) +{ + ( theWrappedObject->render(painter)); +} + +void PythonQtWrapper_QWebElement::render(QWebElement* theWrappedObject, QPainter* painter, const QRect& clipRect) +{ + ( theWrappedObject->render(painter, clipRect)); +} + +void PythonQtWrapper_QWebElement::replace(QWebElement* theWrappedObject, const QString& markup) +{ + ( theWrappedObject->replace(markup)); +} + +void PythonQtWrapper_QWebElement::replace(QWebElement* theWrappedObject, const QWebElement& element) +{ + ( theWrappedObject->replace(element)); +} + +void PythonQtWrapper_QWebElement::setAttribute(QWebElement* theWrappedObject, const QString& name, const QString& value) +{ + ( theWrappedObject->setAttribute(name, value)); +} + +void PythonQtWrapper_QWebElement::setAttributeNS(QWebElement* theWrappedObject, const QString& namespaceUri, const QString& name, const QString& value) +{ + ( theWrappedObject->setAttributeNS(namespaceUri, name, value)); +} + +void PythonQtWrapper_QWebElement::setFocus(QWebElement* theWrappedObject) +{ + ( theWrappedObject->setFocus()); +} + +void PythonQtWrapper_QWebElement::setInnerXml(QWebElement* theWrappedObject, const QString& markup) +{ + ( theWrappedObject->setInnerXml(markup)); +} + +void PythonQtWrapper_QWebElement::setOuterXml(QWebElement* theWrappedObject, const QString& markup) +{ + ( theWrappedObject->setOuterXml(markup)); +} + +void PythonQtWrapper_QWebElement::setPlainText(QWebElement* theWrappedObject, const QString& text) +{ + ( theWrappedObject->setPlainText(text)); +} + +void PythonQtWrapper_QWebElement::setStyleProperty(QWebElement* theWrappedObject, const QString& name, const QString& value) +{ + ( theWrappedObject->setStyleProperty(name, value)); +} + +QString PythonQtWrapper_QWebElement::styleProperty(QWebElement* theWrappedObject, const QString& name, QWebElement::StyleResolveStrategy strategy) const +{ + return ( theWrappedObject->styleProperty(name, strategy)); +} + +QString PythonQtWrapper_QWebElement::tagName(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->tagName()); +} + +QWebElement* PythonQtWrapper_QWebElement::takeFromDocument(QWebElement* theWrappedObject) +{ + return &( theWrappedObject->takeFromDocument()); +} + +QString PythonQtWrapper_QWebElement::toInnerXml(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->toInnerXml()); +} + +QString PythonQtWrapper_QWebElement::toOuterXml(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->toOuterXml()); +} + +QString PythonQtWrapper_QWebElement::toPlainText(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->toPlainText()); +} + +void PythonQtWrapper_QWebElement::toggleClass(QWebElement* theWrappedObject, const QString& name) +{ + ( theWrappedObject->toggleClass(name)); +} + +QWebFrame* PythonQtWrapper_QWebElement::webFrame(QWebElement* theWrappedObject) const +{ + return ( theWrappedObject->webFrame()); +} + +#if defined(QT_WEBKITWIDGETS_LIB) + +QUrl PythonQtWrapper_QWebFrame::baseUrl(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->baseUrl()); +} + +QList PythonQtWrapper_QWebFrame::childFrames(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->childFrames()); +} + +QSize PythonQtWrapper_QWebFrame::contentsSize(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->contentsSize()); +} + +QWebElement PythonQtWrapper_QWebFrame::documentElement(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->documentElement()); +} + +bool PythonQtWrapper_QWebFrame::event(QWebFrame* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QWebFrame*)theWrappedObject)->promoted_event(arg__1)); +} + +QWebElement PythonQtWrapper_QWebFrame::findFirstElement(QWebFrame* theWrappedObject, const QString& selectorQuery) const +{ + return ( theWrappedObject->findFirstElement(selectorQuery)); +} + +QString PythonQtWrapper_QWebFrame::frameName(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->frameName()); +} + +QRect PythonQtWrapper_QWebFrame::geometry(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->geometry()); +} + +bool PythonQtWrapper_QWebFrame::hasFocus(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->hasFocus()); +} + +QWebHitTestResult PythonQtWrapper_QWebFrame::hitTestContent(QWebFrame* theWrappedObject, const QPoint& pos) const +{ + return ( theWrappedObject->hitTestContent(pos)); +} + +QIcon PythonQtWrapper_QWebFrame::icon(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->icon()); +} + +void PythonQtWrapper_QWebFrame::load(QWebFrame* theWrappedObject, const QNetworkRequest& request, QNetworkAccessManager::Operation operation, const QByteArray& body) +{ + ( theWrappedObject->load(request, operation, body)); +} + +void PythonQtWrapper_QWebFrame::load(QWebFrame* theWrappedObject, const QUrl& url) +{ + ( theWrappedObject->load(url)); +} + +QMultiMap PythonQtWrapper_QWebFrame::metaData(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->metaData()); +} + +QWebPage* PythonQtWrapper_QWebFrame::page(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->page()); +} + +QWebFrame* PythonQtWrapper_QWebFrame::parentFrame(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->parentFrame()); +} + +QPoint PythonQtWrapper_QWebFrame::pos(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->pos()); +} + +void PythonQtWrapper_QWebFrame::render(QWebFrame* theWrappedObject, QPainter* arg__1, const QRegion& clip) +{ + ( theWrappedObject->render(arg__1, clip)); +} + +QUrl PythonQtWrapper_QWebFrame::requestedUrl(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->requestedUrl()); +} + +void PythonQtWrapper_QWebFrame::scroll(QWebFrame* theWrappedObject, int arg__1, int arg__2) +{ + ( theWrappedObject->scroll(arg__1, arg__2)); +} + +QRect PythonQtWrapper_QWebFrame::scrollBarGeometry(QWebFrame* theWrappedObject, Qt::Orientation orientation) const +{ + return ( theWrappedObject->scrollBarGeometry(orientation)); +} + +int PythonQtWrapper_QWebFrame::scrollBarMaximum(QWebFrame* theWrappedObject, Qt::Orientation orientation) const +{ + return ( theWrappedObject->scrollBarMaximum(orientation)); +} + +int PythonQtWrapper_QWebFrame::scrollBarMinimum(QWebFrame* theWrappedObject, Qt::Orientation orientation) const +{ + return ( theWrappedObject->scrollBarMinimum(orientation)); +} + +Qt::ScrollBarPolicy PythonQtWrapper_QWebFrame::scrollBarPolicy(QWebFrame* theWrappedObject, Qt::Orientation orientation) const +{ + return ( theWrappedObject->scrollBarPolicy(orientation)); +} + +int PythonQtWrapper_QWebFrame::scrollBarValue(QWebFrame* theWrappedObject, Qt::Orientation orientation) const +{ + return ( theWrappedObject->scrollBarValue(orientation)); +} + +QPoint PythonQtWrapper_QWebFrame::scrollPosition(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->scrollPosition()); +} + +void PythonQtWrapper_QWebFrame::scrollToAnchor(QWebFrame* theWrappedObject, const QString& anchor) +{ + ( theWrappedObject->scrollToAnchor(anchor)); +} + +void PythonQtWrapper_QWebFrame::setContent(QWebFrame* theWrappedObject, const QByteArray& data, const QString& mimeType, const QUrl& baseUrl) +{ + ( theWrappedObject->setContent(data, mimeType, baseUrl)); +} + +void PythonQtWrapper_QWebFrame::setFocus(QWebFrame* theWrappedObject) +{ + ( theWrappedObject->setFocus()); +} + +void PythonQtWrapper_QWebFrame::setHtml(QWebFrame* theWrappedObject, const QString& html, const QUrl& baseUrl) +{ + ( theWrappedObject->setHtml(html, baseUrl)); +} + +void PythonQtWrapper_QWebFrame::setScrollBarPolicy(QWebFrame* theWrappedObject, Qt::Orientation orientation, Qt::ScrollBarPolicy policy) +{ + ( theWrappedObject->setScrollBarPolicy(orientation, policy)); +} + +void PythonQtWrapper_QWebFrame::setScrollBarValue(QWebFrame* theWrappedObject, Qt::Orientation orientation, int value) +{ + ( theWrappedObject->setScrollBarValue(orientation, value)); +} + +void PythonQtWrapper_QWebFrame::setScrollPosition(QWebFrame* theWrappedObject, const QPoint& pos) +{ + ( theWrappedObject->setScrollPosition(pos)); +} + +void PythonQtWrapper_QWebFrame::setTextSizeMultiplier(QWebFrame* theWrappedObject, qreal factor) +{ + ( theWrappedObject->setTextSizeMultiplier(factor)); +} + +void PythonQtWrapper_QWebFrame::setUrl(QWebFrame* theWrappedObject, const QUrl& url) +{ + ( theWrappedObject->setUrl(url)); +} + +void PythonQtWrapper_QWebFrame::setZoomFactor(QWebFrame* theWrappedObject, qreal factor) +{ + ( theWrappedObject->setZoomFactor(factor)); +} + +qreal PythonQtWrapper_QWebFrame::textSizeMultiplier(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->textSizeMultiplier()); +} + +QString PythonQtWrapper_QWebFrame::title(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->title()); +} + +QString PythonQtWrapper_QWebFrame::toHtml(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->toHtml()); +} + +QString PythonQtWrapper_QWebFrame::toPlainText(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->toPlainText()); +} + +QUrl PythonQtWrapper_QWebFrame::url(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->url()); +} + +qreal PythonQtWrapper_QWebFrame::zoomFactor(QWebFrame* theWrappedObject) const +{ + return ( theWrappedObject->zoomFactor()); +} + +#endif + +PythonQtShell_QWebHistoryInterface::~PythonQtShell_QWebHistoryInterface() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QWebHistoryInterface::addHistoryEntry(const QString& url) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "addHistoryEntry"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&url}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QWebHistoryInterface::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebHistoryInterface::childEvent(arg__1); +} +void PythonQtShell_QWebHistoryInterface::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebHistoryInterface::customEvent(arg__1); +} +bool PythonQtShell_QWebHistoryInterface::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebHistoryInterface::event(arg__1); +} +bool PythonQtShell_QWebHistoryInterface::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebHistoryInterface::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QWebHistoryInterface::historyContains(const QString& url) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "historyContains"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&url}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("historyContains", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +void PythonQtShell_QWebHistoryInterface::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebHistoryInterface::timerEvent(arg__1); +} +QWebHistoryInterface* PythonQtWrapper_QWebHistoryInterface::new_QWebHistoryInterface(QObject* parent) +{ +return new PythonQtShell_QWebHistoryInterface(parent); } + +QWebHistoryInterface* PythonQtWrapper_QWebHistoryInterface::static_QWebHistoryInterface_defaultInterface() +{ + return (QWebHistoryInterface::defaultInterface()); +} + +void PythonQtWrapper_QWebHistoryInterface::static_QWebHistoryInterface_setDefaultInterface(QWebHistoryInterface* defaultInterface) +{ + (QWebHistoryInterface::setDefaultInterface(defaultInterface)); +} + +#if defined(QT_WEBKITWIDGETS_LIB) + +QWebHitTestResult* PythonQtWrapper_QWebHitTestResult::new_QWebHitTestResult() +{ +return new QWebHitTestResult(); } + +QWebHitTestResult* PythonQtWrapper_QWebHitTestResult::new_QWebHitTestResult(const QWebHitTestResult& other) +{ +return new QWebHitTestResult(other); } + +QString PythonQtWrapper_QWebHitTestResult::alternateText(QWebHitTestResult* theWrappedObject) const +{ + return ( theWrappedObject->alternateText()); +} + +QRect PythonQtWrapper_QWebHitTestResult::boundingRect(QWebHitTestResult* theWrappedObject) const +{ + return ( theWrappedObject->boundingRect()); +} + +QWebElement PythonQtWrapper_QWebHitTestResult::element(QWebHitTestResult* theWrappedObject) const +{ + return ( theWrappedObject->element()); +} + +QWebElement PythonQtWrapper_QWebHitTestResult::enclosingBlockElement(QWebHitTestResult* theWrappedObject) const +{ + return ( theWrappedObject->enclosingBlockElement()); +} + +QWebFrame* PythonQtWrapper_QWebHitTestResult::frame(QWebHitTestResult* theWrappedObject) const +{ + return ( theWrappedObject->frame()); +} + +QUrl PythonQtWrapper_QWebHitTestResult::imageUrl(QWebHitTestResult* theWrappedObject) const +{ + return ( theWrappedObject->imageUrl()); +} + +bool PythonQtWrapper_QWebHitTestResult::isContentEditable(QWebHitTestResult* theWrappedObject) const +{ + return ( theWrappedObject->isContentEditable()); +} + +bool PythonQtWrapper_QWebHitTestResult::isContentSelected(QWebHitTestResult* theWrappedObject) const +{ + return ( theWrappedObject->isContentSelected()); +} + +bool PythonQtWrapper_QWebHitTestResult::isNull(QWebHitTestResult* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +QWebElement PythonQtWrapper_QWebHitTestResult::linkElement(QWebHitTestResult* theWrappedObject) const +{ + return ( theWrappedObject->linkElement()); +} + +QWebFrame* PythonQtWrapper_QWebHitTestResult::linkTargetFrame(QWebHitTestResult* theWrappedObject) const +{ + return ( theWrappedObject->linkTargetFrame()); +} + +QString PythonQtWrapper_QWebHitTestResult::linkText(QWebHitTestResult* theWrappedObject) const +{ + return ( theWrappedObject->linkText()); +} + +QUrl PythonQtWrapper_QWebHitTestResult::linkTitle(QWebHitTestResult* theWrappedObject) const +{ + return ( theWrappedObject->linkTitle()); +} + +QUrl PythonQtWrapper_QWebHitTestResult::linkUrl(QWebHitTestResult* theWrappedObject) const +{ + return ( theWrappedObject->linkUrl()); +} + +QPixmap PythonQtWrapper_QWebHitTestResult::pixmap(QWebHitTestResult* theWrappedObject) const +{ + return ( theWrappedObject->pixmap()); +} + +QPoint PythonQtWrapper_QWebHitTestResult::pos(QWebHitTestResult* theWrappedObject) const +{ + return ( theWrappedObject->pos()); +} + +QString PythonQtWrapper_QWebHitTestResult::title(QWebHitTestResult* theWrappedObject) const +{ + return ( theWrappedObject->title()); +} + + + +PythonQtShell_QWebInspector::~PythonQtShell_QWebInspector() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QWebInspector::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::actionEvent(arg__1); +} +void PythonQtShell_QWebInspector::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::changeEvent(arg__1); +} +void PythonQtShell_QWebInspector::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::childEvent(arg__1); +} +void PythonQtShell_QWebInspector::closeEvent(QCloseEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::closeEvent(event); +} +void PythonQtShell_QWebInspector::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::contextMenuEvent(arg__1); +} +void PythonQtShell_QWebInspector::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::customEvent(arg__1); +} +int PythonQtShell_QWebInspector::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebInspector::devType(); +} +void PythonQtShell_QWebInspector::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::dragEnterEvent(arg__1); +} +void PythonQtShell_QWebInspector::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::dragLeaveEvent(arg__1); +} +void PythonQtShell_QWebInspector::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::dragMoveEvent(arg__1); +} +void PythonQtShell_QWebInspector::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::dropEvent(arg__1); +} +void PythonQtShell_QWebInspector::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::enterEvent(arg__1); +} +bool PythonQtShell_QWebInspector::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebInspector::event(arg__1); +} +bool PythonQtShell_QWebInspector::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebInspector::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QWebInspector::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::focusInEvent(arg__1); +} +bool PythonQtShell_QWebInspector::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebInspector::focusNextPrevChild(next); +} +void PythonQtShell_QWebInspector::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::focusOutEvent(arg__1); +} +bool PythonQtShell_QWebInspector::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebInspector::hasHeightForWidth(); +} +int PythonQtShell_QWebInspector::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebInspector::heightForWidth(arg__1); +} +void PythonQtShell_QWebInspector::hideEvent(QHideEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::hideEvent(event); +} +void PythonQtShell_QWebInspector::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::initPainter(painter); +} +void PythonQtShell_QWebInspector::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QWebInspector::inputMethodQuery(Qt::InputMethodQuery arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebInspector::inputMethodQuery(arg__1); +} +void PythonQtShell_QWebInspector::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::keyPressEvent(arg__1); +} +void PythonQtShell_QWebInspector::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::keyReleaseEvent(arg__1); +} +void PythonQtShell_QWebInspector::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::leaveEvent(arg__1); +} +int PythonQtShell_QWebInspector::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebInspector::metric(arg__1); +} +QSize PythonQtShell_QWebInspector::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebInspector::minimumSizeHint(); +} +void PythonQtShell_QWebInspector::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QWebInspector::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::mouseMoveEvent(arg__1); +} +void PythonQtShell_QWebInspector::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::mousePressEvent(arg__1); +} +void PythonQtShell_QWebInspector::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QWebInspector::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::moveEvent(arg__1); +} +bool PythonQtShell_QWebInspector::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebInspector::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QWebInspector::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebInspector::paintEngine(); +} +void PythonQtShell_QWebInspector::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QWebInspector::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebInspector::redirected(offset); +} +void PythonQtShell_QWebInspector::resizeEvent(QResizeEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::resizeEvent(event); +} +QPainter* PythonQtShell_QWebInspector::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebInspector::sharedPainter(); +} +void PythonQtShell_QWebInspector::showEvent(QShowEvent* event) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&event}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::showEvent(event); +} +void PythonQtShell_QWebInspector::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::tabletEvent(arg__1); +} +void PythonQtShell_QWebInspector::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::timerEvent(arg__1); +} +void PythonQtShell_QWebInspector::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebInspector::wheelEvent(arg__1); +} +QWebInspector* PythonQtWrapper_QWebInspector::new_QWebInspector(QWidget* parent) +{ +return new PythonQtShell_QWebInspector(parent); } + +void PythonQtWrapper_QWebInspector::closeEvent(QWebInspector* theWrappedObject, QCloseEvent* event) +{ + ( ((PythonQtPublicPromoter_QWebInspector*)theWrappedObject)->promoted_closeEvent(event)); +} + +bool PythonQtWrapper_QWebInspector::event(QWebInspector* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QWebInspector*)theWrappedObject)->promoted_event(arg__1)); +} + +void PythonQtWrapper_QWebInspector::hideEvent(QWebInspector* theWrappedObject, QHideEvent* event) +{ + ( ((PythonQtPublicPromoter_QWebInspector*)theWrappedObject)->promoted_hideEvent(event)); +} + +QWebPage* PythonQtWrapper_QWebInspector::page(QWebInspector* theWrappedObject) const +{ + return ( theWrappedObject->page()); +} + +void PythonQtWrapper_QWebInspector::resizeEvent(QWebInspector* theWrappedObject, QResizeEvent* event) +{ + ( ((PythonQtPublicPromoter_QWebInspector*)theWrappedObject)->promoted_resizeEvent(event)); +} + +void PythonQtWrapper_QWebInspector::setPage(QWebInspector* theWrappedObject, QWebPage* page) +{ + ( theWrappedObject->setPage(page)); +} + +void PythonQtWrapper_QWebInspector::showEvent(QWebInspector* theWrappedObject, QShowEvent* event) +{ + ( ((PythonQtPublicPromoter_QWebInspector*)theWrappedObject)->promoted_showEvent(event)); +} + +QSize PythonQtWrapper_QWebInspector::sizeHint(QWebInspector* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + + + +PythonQtShell_QWebPage::~PythonQtShell_QWebPage() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QWebPage::acceptNavigationRequest(QWebFrame* frame, const QNetworkRequest& request, QWebPage::NavigationType type) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "acceptNavigationRequest"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QWebFrame*" , "const QNetworkRequest&" , "QWebPage::NavigationType"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&frame, (void*)&request, (void*)&type}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("acceptNavigationRequest", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebPage::acceptNavigationRequest(frame, request, type); +} +void PythonQtShell_QWebPage::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebPage::childEvent(arg__1); +} +QString PythonQtShell_QWebPage::chooseFile(QWebFrame* originatingFrame, const QString& oldFile) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "chooseFile"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "QWebFrame*" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QString returnValue; + void* args[3] = {NULL, (void*)&originatingFrame, (void*)&oldFile}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("chooseFile", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebPage::chooseFile(originatingFrame, oldFile); +} +QObject* PythonQtShell_QWebPage::createPlugin(const QString& classid, const QUrl& url, const QStringList& paramNames, const QStringList& paramValues) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createPlugin"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QObject*" , "const QString&" , "const QUrl&" , "const QStringList&" , "const QStringList&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + QObject* returnValue; + void* args[5] = {NULL, (void*)&classid, (void*)&url, (void*)¶mNames, (void*)¶mValues}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createPlugin", methodInfo, result); + } else { + returnValue = *((QObject**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebPage::createPlugin(classid, url, paramNames, paramValues); +} +QWebPage* PythonQtShell_QWebPage::createWindow(QWebPage::WebWindowType type) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createWindow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QWebPage*" , "QWebPage::WebWindowType"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QWebPage* returnValue; + void* args[2] = {NULL, (void*)&type}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createWindow", methodInfo, result); + } else { + returnValue = *((QWebPage**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebPage::createWindow(type); +} +void PythonQtShell_QWebPage::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebPage::customEvent(arg__1); +} +bool PythonQtShell_QWebPage::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebPage::event(arg__1); +} +bool PythonQtShell_QWebPage::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebPage::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QWebPage::extension(QWebPage::Extension extension, const QWebPage::ExtensionOption* option, QWebPage::ExtensionReturn* output) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "extension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QWebPage::Extension" , "const QWebPage::ExtensionOption*" , "QWebPage::ExtensionReturn*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&extension, (void*)&option, (void*)&output}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("extension", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebPage::extension(extension, option, output); +} +void PythonQtShell_QWebPage::javaScriptAlert(QWebFrame* originatingFrame, const QString& msg) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "javaScriptAlert"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWebFrame*" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&originatingFrame, (void*)&msg}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebPage::javaScriptAlert(originatingFrame, msg); +} +bool PythonQtShell_QWebPage::javaScriptConfirm(QWebFrame* originatingFrame, const QString& msg) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "javaScriptConfirm"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QWebFrame*" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&originatingFrame, (void*)&msg}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("javaScriptConfirm", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebPage::javaScriptConfirm(originatingFrame, msg); +} +void PythonQtShell_QWebPage::javaScriptConsoleMessage(const QString& message, int lineNumber, const QString& sourceID) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "javaScriptConsoleMessage"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&" , "int" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + void* args[4] = {NULL, (void*)&message, (void*)&lineNumber, (void*)&sourceID}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebPage::javaScriptConsoleMessage(message, lineNumber, sourceID); +} +bool PythonQtShell_QWebPage::javaScriptPrompt(QWebFrame* originatingFrame, const QString& msg, const QString& defaultValue, QString* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "javaScriptPrompt"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QWebFrame*" , "const QString&" , "const QString&" , "QString*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)&originatingFrame, (void*)&msg, (void*)&defaultValue, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("javaScriptPrompt", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebPage::javaScriptPrompt(originatingFrame, msg, defaultValue, result); +} +bool PythonQtShell_QWebPage::shouldInterruptJavaScript() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "shouldInterruptJavaScript"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("shouldInterruptJavaScript", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebPage::shouldInterruptJavaScript(); +} +bool PythonQtShell_QWebPage::supportsExtension(QWebPage::Extension extension) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportsExtension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QWebPage::Extension"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&extension}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportsExtension", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebPage::supportsExtension(extension); +} +void PythonQtShell_QWebPage::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebPage::timerEvent(arg__1); +} +void PythonQtShell_QWebPage::triggerAction(QWebPage::WebAction action, bool checked) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "triggerAction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWebPage::WebAction" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&action, (void*)&checked}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebPage::triggerAction(action, checked); +} +QString PythonQtShell_QWebPage::userAgentForUrl(const QUrl& url) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "userAgentForUrl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "const QUrl&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QString returnValue; + void* args[2] = {NULL, (void*)&url}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("userAgentForUrl", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebPage::userAgentForUrl(url); +} +QWebPage* PythonQtWrapper_QWebPage::new_QWebPage(QObject* parent) +{ +return new PythonQtShell_QWebPage(parent); } + +bool PythonQtWrapper_QWebPage::acceptNavigationRequest(QWebPage* theWrappedObject, QWebFrame* frame, const QNetworkRequest& request, QWebPage::NavigationType type) +{ + return ( ((PythonQtPublicPromoter_QWebPage*)theWrappedObject)->promoted_acceptNavigationRequest(frame, request, type)); +} + +QAction* PythonQtWrapper_QWebPage::action(QWebPage* theWrappedObject, QWebPage::WebAction action) const +{ + return ( theWrappedObject->action(action)); +} + +quint64 PythonQtWrapper_QWebPage::bytesReceived(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->bytesReceived()); +} + +QString PythonQtWrapper_QWebPage::chooseFile(QWebPage* theWrappedObject, QWebFrame* originatingFrame, const QString& oldFile) +{ + return ( ((PythonQtPublicPromoter_QWebPage*)theWrappedObject)->promoted_chooseFile(originatingFrame, oldFile)); +} + +QObject* PythonQtWrapper_QWebPage::createPlugin(QWebPage* theWrappedObject, const QString& classid, const QUrl& url, const QStringList& paramNames, const QStringList& paramValues) +{ + return ( ((PythonQtPublicPromoter_QWebPage*)theWrappedObject)->promoted_createPlugin(classid, url, paramNames, paramValues)); +} + +QMenu* PythonQtWrapper_QWebPage::createStandardContextMenu(QWebPage* theWrappedObject) +{ + return ( theWrappedObject->createStandardContextMenu()); +} + +QWebPage* PythonQtWrapper_QWebPage::createWindow(QWebPage* theWrappedObject, QWebPage::WebWindowType type) +{ + return ( ((PythonQtPublicPromoter_QWebPage*)theWrappedObject)->promoted_createWindow(type)); +} + +QWebFrame* PythonQtWrapper_QWebPage::currentFrame(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->currentFrame()); +} + +bool PythonQtWrapper_QWebPage::event(QWebPage* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QWebPage*)theWrappedObject)->promoted_event(arg__1)); +} + +bool PythonQtWrapper_QWebPage::extension(QWebPage* theWrappedObject, QWebPage::Extension extension, const QWebPage::ExtensionOption* option, QWebPage::ExtensionReturn* output) +{ + return ( ((PythonQtPublicPromoter_QWebPage*)theWrappedObject)->promoted_extension(extension, option, output)); +} + +bool PythonQtWrapper_QWebPage::findText(QWebPage* theWrappedObject, const QString& subString, QWebPage::FindFlags options) +{ + return ( theWrappedObject->findText(subString, options)); +} + +bool PythonQtWrapper_QWebPage::focusNextPrevChild(QWebPage* theWrappedObject, bool next) +{ + return ( theWrappedObject->focusNextPrevChild(next)); +} + +bool PythonQtWrapper_QWebPage::forwardUnsupportedContent(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->forwardUnsupportedContent()); +} + +QWebFrame* PythonQtWrapper_QWebPage::frameAt(QWebPage* theWrappedObject, const QPoint& pos) const +{ + return ( theWrappedObject->frameAt(pos)); +} + +bool PythonQtWrapper_QWebPage::hasSelection(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->hasSelection()); +} + +QWebHistory* PythonQtWrapper_QWebPage::history(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->history()); +} + +QVariant PythonQtWrapper_QWebPage::inputMethodQuery(QWebPage* theWrappedObject, Qt::InputMethodQuery property) const +{ + return ( theWrappedObject->inputMethodQuery(property)); +} + +bool PythonQtWrapper_QWebPage::isContentEditable(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->isContentEditable()); +} + +bool PythonQtWrapper_QWebPage::isModified(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->isModified()); +} + +void PythonQtWrapper_QWebPage::javaScriptAlert(QWebPage* theWrappedObject, QWebFrame* originatingFrame, const QString& msg) +{ + ( ((PythonQtPublicPromoter_QWebPage*)theWrappedObject)->promoted_javaScriptAlert(originatingFrame, msg)); +} + +bool PythonQtWrapper_QWebPage::javaScriptConfirm(QWebPage* theWrappedObject, QWebFrame* originatingFrame, const QString& msg) +{ + return ( ((PythonQtPublicPromoter_QWebPage*)theWrappedObject)->promoted_javaScriptConfirm(originatingFrame, msg)); +} + +void PythonQtWrapper_QWebPage::javaScriptConsoleMessage(QWebPage* theWrappedObject, const QString& message, int lineNumber, const QString& sourceID) +{ + ( ((PythonQtPublicPromoter_QWebPage*)theWrappedObject)->promoted_javaScriptConsoleMessage(message, lineNumber, sourceID)); +} + +bool PythonQtWrapper_QWebPage::javaScriptPrompt(QWebPage* theWrappedObject, QWebFrame* originatingFrame, const QString& msg, const QString& defaultValue, QString* result) +{ + return ( ((PythonQtPublicPromoter_QWebPage*)theWrappedObject)->promoted_javaScriptPrompt(originatingFrame, msg, defaultValue, result)); +} + +QWebPage::LinkDelegationPolicy PythonQtWrapper_QWebPage::linkDelegationPolicy(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->linkDelegationPolicy()); +} + +QWebFrame* PythonQtWrapper_QWebPage::mainFrame(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->mainFrame()); +} + +QNetworkAccessManager* PythonQtWrapper_QWebPage::networkAccessManager(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->networkAccessManager()); +} + +QPalette PythonQtWrapper_QWebPage::palette(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->palette()); +} + +QWebPluginFactory* PythonQtWrapper_QWebPage::pluginFactory(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->pluginFactory()); +} + +QSize PythonQtWrapper_QWebPage::preferredContentsSize(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->preferredContentsSize()); +} + +QString PythonQtWrapper_QWebPage::selectedHtml(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->selectedHtml()); +} + +QString PythonQtWrapper_QWebPage::selectedText(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->selectedText()); +} + +void PythonQtWrapper_QWebPage::setActualVisibleContentRect(QWebPage* theWrappedObject, const QRect& rect) const +{ + ( theWrappedObject->setActualVisibleContentRect(rect)); +} + +void PythonQtWrapper_QWebPage::setContentEditable(QWebPage* theWrappedObject, bool editable) +{ + ( theWrappedObject->setContentEditable(editable)); +} + +void PythonQtWrapper_QWebPage::setForwardUnsupportedContent(QWebPage* theWrappedObject, bool forward) +{ + ( theWrappedObject->setForwardUnsupportedContent(forward)); +} + +void PythonQtWrapper_QWebPage::setLinkDelegationPolicy(QWebPage* theWrappedObject, QWebPage::LinkDelegationPolicy policy) +{ + ( theWrappedObject->setLinkDelegationPolicy(policy)); +} + +void PythonQtWrapper_QWebPage::setNetworkAccessManager(QWebPage* theWrappedObject, QNetworkAccessManager* manager) +{ + ( theWrappedObject->setNetworkAccessManager(manager)); +} + +void PythonQtWrapper_QWebPage::setPalette(QWebPage* theWrappedObject, const QPalette& palette) +{ + ( theWrappedObject->setPalette(palette)); +} + +void PythonQtWrapper_QWebPage::setPluginFactory(QWebPage* theWrappedObject, QWebPluginFactory* factory) +{ + ( theWrappedObject->setPluginFactory(factory)); +} + +void PythonQtWrapper_QWebPage::setPreferredContentsSize(QWebPage* theWrappedObject, const QSize& size) const +{ + ( theWrappedObject->setPreferredContentsSize(size)); +} + +void PythonQtWrapper_QWebPage::setView(QWebPage* theWrappedObject, QWidget* view) +{ + ( theWrappedObject->setView(view)); +} + +void PythonQtWrapper_QWebPage::setViewportSize(QWebPage* theWrappedObject, const QSize& size) const +{ + ( theWrappedObject->setViewportSize(size)); +} + +QWebSettings* PythonQtWrapper_QWebPage::settings(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->settings()); +} + +bool PythonQtWrapper_QWebPage::shouldInterruptJavaScript(QWebPage* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QWebPage*)theWrappedObject)->promoted_shouldInterruptJavaScript()); +} + +QStringList PythonQtWrapper_QWebPage::supportedContentTypes(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->supportedContentTypes()); +} + +bool PythonQtWrapper_QWebPage::supportsContentType(QWebPage* theWrappedObject, const QString& mimeType) const +{ + return ( theWrappedObject->supportsContentType(mimeType)); +} + +bool PythonQtWrapper_QWebPage::supportsExtension(QWebPage* theWrappedObject, QWebPage::Extension extension) const +{ + return ( ((PythonQtPublicPromoter_QWebPage*)theWrappedObject)->promoted_supportsExtension(extension)); +} + +bool PythonQtWrapper_QWebPage::swallowContextMenuEvent(QWebPage* theWrappedObject, QContextMenuEvent* event) +{ + return ( theWrappedObject->swallowContextMenuEvent(event)); +} + +quint64 PythonQtWrapper_QWebPage::totalBytes(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->totalBytes()); +} + +void PythonQtWrapper_QWebPage::triggerAction(QWebPage* theWrappedObject, QWebPage::WebAction action, bool checked) +{ + ( ((PythonQtPublicPromoter_QWebPage*)theWrappedObject)->promoted_triggerAction(action, checked)); +} + +QUndoStack* PythonQtWrapper_QWebPage::undoStack(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->undoStack()); +} + +void PythonQtWrapper_QWebPage::updatePositionDependentActions(QWebPage* theWrappedObject, const QPoint& pos) +{ + ( theWrappedObject->updatePositionDependentActions(pos)); +} + +QString PythonQtWrapper_QWebPage::userAgentForUrl(QWebPage* theWrappedObject, const QUrl& url) const +{ + return ( ((PythonQtPublicPromoter_QWebPage*)theWrappedObject)->promoted_userAgentForUrl(url)); +} + +QWidget* PythonQtWrapper_QWebPage::view(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->view()); +} + +QSize PythonQtWrapper_QWebPage::viewportSize(QWebPage* theWrappedObject) const +{ + return ( theWrappedObject->viewportSize()); +} + + + +PythonQtShell_QWebPage_ChooseMultipleFilesExtensionOption::~PythonQtShell_QWebPage_ChooseMultipleFilesExtensionOption() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QWebPage::ChooseMultipleFilesExtensionOption* PythonQtWrapper_QWebPage_ChooseMultipleFilesExtensionOption::new_QWebPage_ChooseMultipleFilesExtensionOption() +{ +return new PythonQtShell_QWebPage_ChooseMultipleFilesExtensionOption(); } + + + +PythonQtShell_QWebPage_ChooseMultipleFilesExtensionReturn::~PythonQtShell_QWebPage_ChooseMultipleFilesExtensionReturn() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QWebPage::ChooseMultipleFilesExtensionReturn* PythonQtWrapper_QWebPage_ChooseMultipleFilesExtensionReturn::new_QWebPage_ChooseMultipleFilesExtensionReturn() +{ +return new PythonQtShell_QWebPage_ChooseMultipleFilesExtensionReturn(); } + + + +PythonQtShell_QWebPage_ErrorPageExtensionOption::~PythonQtShell_QWebPage_ErrorPageExtensionOption() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QWebPage::ErrorPageExtensionOption* PythonQtWrapper_QWebPage_ErrorPageExtensionOption::new_QWebPage_ErrorPageExtensionOption() +{ +return new PythonQtShell_QWebPage_ErrorPageExtensionOption(); } + + + +PythonQtShell_QWebPage_ErrorPageExtensionReturn::~PythonQtShell_QWebPage_ErrorPageExtensionReturn() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QWebPage::ErrorPageExtensionReturn* PythonQtWrapper_QWebPage_ErrorPageExtensionReturn::new_QWebPage_ErrorPageExtensionReturn() +{ +return new PythonQtShell_QWebPage_ErrorPageExtensionReturn(); } + + + +PythonQtShell_QWebPage_ExtensionOption::~PythonQtShell_QWebPage_ExtensionOption() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QWebPage::ExtensionOption* PythonQtWrapper_QWebPage_ExtensionOption::new_QWebPage_ExtensionOption() +{ +return new PythonQtShell_QWebPage_ExtensionOption(); } + + + +PythonQtShell_QWebPage_ExtensionReturn::~PythonQtShell_QWebPage_ExtensionReturn() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QWebPage::ExtensionReturn* PythonQtWrapper_QWebPage_ExtensionReturn::new_QWebPage_ExtensionReturn() +{ +return new PythonQtShell_QWebPage_ExtensionReturn(); } + +#endif + +PythonQtShell_QWebPluginFactory::~PythonQtShell_QWebPluginFactory() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QWebPluginFactory::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebPluginFactory::childEvent(arg__1); +} +QObject* PythonQtShell_QWebPluginFactory::create(const QString& mimeType, const QUrl& arg__2, const QStringList& argumentNames, const QStringList& argumentValues) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "create"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QObject*" , "const QString&" , "const QUrl&" , "const QStringList&" , "const QStringList&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + QObject* returnValue; + void* args[5] = {NULL, (void*)&mimeType, (void*)&arg__2, (void*)&argumentNames, (void*)&argumentValues}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("create", methodInfo, result); + } else { + returnValue = *((QObject**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +void PythonQtShell_QWebPluginFactory::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebPluginFactory::customEvent(arg__1); +} +bool PythonQtShell_QWebPluginFactory::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebPluginFactory::event(arg__1); +} +bool PythonQtShell_QWebPluginFactory::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebPluginFactory::eventFilter(arg__1, arg__2); +} +bool PythonQtShell_QWebPluginFactory::extension(QWebPluginFactory::Extension extension, const QWebPluginFactory::ExtensionOption* option, QWebPluginFactory::ExtensionReturn* output) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "extension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QWebPluginFactory::Extension" , "const QWebPluginFactory::ExtensionOption*" , "QWebPluginFactory::ExtensionReturn*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&extension, (void*)&option, (void*)&output}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("extension", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebPluginFactory::extension(extension, option, output); +} +QList PythonQtShell_QWebPluginFactory::plugins() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "plugins"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QList"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QList returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("plugins", methodInfo, result); + } else { + returnValue = *((QList*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QList(); +} +void PythonQtShell_QWebPluginFactory::refreshPlugins() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "refreshPlugins"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebPluginFactory::refreshPlugins(); +} +bool PythonQtShell_QWebPluginFactory::supportsExtension(QWebPluginFactory::Extension extension) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportsExtension"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QWebPluginFactory::Extension"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&extension}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("supportsExtension", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebPluginFactory::supportsExtension(extension); +} +void PythonQtShell_QWebPluginFactory::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebPluginFactory::timerEvent(arg__1); +} +QWebPluginFactory* PythonQtWrapper_QWebPluginFactory::new_QWebPluginFactory(QObject* parent) +{ +return new PythonQtShell_QWebPluginFactory(parent); } + +bool PythonQtWrapper_QWebPluginFactory::extension(QWebPluginFactory* theWrappedObject, QWebPluginFactory::Extension extension, const QWebPluginFactory::ExtensionOption* option, QWebPluginFactory::ExtensionReturn* output) +{ + return ( ((PythonQtPublicPromoter_QWebPluginFactory*)theWrappedObject)->promoted_extension(extension, option, output)); +} + +void PythonQtWrapper_QWebPluginFactory::refreshPlugins(QWebPluginFactory* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QWebPluginFactory*)theWrappedObject)->promoted_refreshPlugins()); +} + +bool PythonQtWrapper_QWebPluginFactory::supportsExtension(QWebPluginFactory* theWrappedObject, QWebPluginFactory::Extension extension) const +{ + return ( ((PythonQtPublicPromoter_QWebPluginFactory*)theWrappedObject)->promoted_supportsExtension(extension)); +} + + + +PythonQtShell_QWebPluginFactory_ExtensionOption::~PythonQtShell_QWebPluginFactory_ExtensionOption() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QWebPluginFactory::ExtensionOption* PythonQtWrapper_QWebPluginFactory_ExtensionOption::new_QWebPluginFactory_ExtensionOption() +{ +return new PythonQtShell_QWebPluginFactory_ExtensionOption(); } + + + +PythonQtShell_QWebPluginFactory_ExtensionReturn::~PythonQtShell_QWebPluginFactory_ExtensionReturn() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QWebPluginFactory::ExtensionReturn* PythonQtWrapper_QWebPluginFactory_ExtensionReturn::new_QWebPluginFactory_ExtensionReturn() +{ +return new PythonQtShell_QWebPluginFactory_ExtensionReturn(); } + + + +PythonQtShell_QWebPluginFactory_MimeType::~PythonQtShell_QWebPluginFactory_MimeType() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QWebPluginFactory::MimeType* PythonQtWrapper_QWebPluginFactory_MimeType::new_QWebPluginFactory_MimeType() +{ +return new PythonQtShell_QWebPluginFactory_MimeType(); } + +bool PythonQtWrapper_QWebPluginFactory_MimeType::__ne__(QWebPluginFactory::MimeType* theWrappedObject, const QWebPluginFactory::MimeType& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QWebPluginFactory_MimeType::__eq__(QWebPluginFactory::MimeType* theWrappedObject, const QWebPluginFactory::MimeType& other) const +{ + return ( (*theWrappedObject)== other); +} + + + +PythonQtShell_QWebPluginFactory_Plugin::~PythonQtShell_QWebPluginFactory_Plugin() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QWebPluginFactory::Plugin* PythonQtWrapper_QWebPluginFactory_Plugin::new_QWebPluginFactory_Plugin() +{ +return new PythonQtShell_QWebPluginFactory_Plugin(); } + + + +void PythonQtWrapper_QWebSettings::static_QWebSettings_clearIconDatabase() +{ + (QWebSettings::clearIconDatabase()); +} + +void PythonQtWrapper_QWebSettings::static_QWebSettings_clearMemoryCaches() +{ + (QWebSettings::clearMemoryCaches()); +} + +QString PythonQtWrapper_QWebSettings::defaultTextEncoding(QWebSettings* theWrappedObject) const +{ + return ( theWrappedObject->defaultTextEncoding()); +} + +void PythonQtWrapper_QWebSettings::static_QWebSettings_enablePersistentStorage(const QString& path) +{ + (QWebSettings::enablePersistentStorage(path)); +} + +QString PythonQtWrapper_QWebSettings::fontFamily(QWebSettings* theWrappedObject, QWebSettings::FontFamily which) const +{ + return ( theWrappedObject->fontFamily(which)); +} + +int PythonQtWrapper_QWebSettings::fontSize(QWebSettings* theWrappedObject, QWebSettings::FontSize type) const +{ + return ( theWrappedObject->fontSize(type)); +} + +QWebSettings* PythonQtWrapper_QWebSettings::static_QWebSettings_globalSettings() +{ + return (QWebSettings::globalSettings()); +} + +QString PythonQtWrapper_QWebSettings::static_QWebSettings_iconDatabasePath() +{ + return (QWebSettings::iconDatabasePath()); +} + +QIcon PythonQtWrapper_QWebSettings::static_QWebSettings_iconForUrl(const QUrl& url) +{ + return (QWebSettings::iconForUrl(url)); +} + +QString PythonQtWrapper_QWebSettings::localStoragePath(QWebSettings* theWrappedObject) const +{ + return ( theWrappedObject->localStoragePath()); +} + +int PythonQtWrapper_QWebSettings::static_QWebSettings_maximumPagesInCache() +{ + return (QWebSettings::maximumPagesInCache()); +} + +qint64 PythonQtWrapper_QWebSettings::static_QWebSettings_offlineStorageDefaultQuota() +{ + return (QWebSettings::offlineStorageDefaultQuota()); +} + +QString PythonQtWrapper_QWebSettings::static_QWebSettings_offlineStoragePath() +{ + return (QWebSettings::offlineStoragePath()); +} + +QString PythonQtWrapper_QWebSettings::static_QWebSettings_offlineWebApplicationCachePath() +{ + return (QWebSettings::offlineWebApplicationCachePath()); +} + +qint64 PythonQtWrapper_QWebSettings::static_QWebSettings_offlineWebApplicationCacheQuota() +{ + return (QWebSettings::offlineWebApplicationCacheQuota()); +} + +void PythonQtWrapper_QWebSettings::resetAttribute(QWebSettings* theWrappedObject, QWebSettings::WebAttribute attr) +{ + ( theWrappedObject->resetAttribute(attr)); +} + +void PythonQtWrapper_QWebSettings::resetFontFamily(QWebSettings* theWrappedObject, QWebSettings::FontFamily which) +{ + ( theWrappedObject->resetFontFamily(which)); +} + +void PythonQtWrapper_QWebSettings::resetFontSize(QWebSettings* theWrappedObject, QWebSettings::FontSize type) +{ + ( theWrappedObject->resetFontSize(type)); +} + +void PythonQtWrapper_QWebSettings::setAttribute(QWebSettings* theWrappedObject, QWebSettings::WebAttribute attr, bool on) +{ + ( theWrappedObject->setAttribute(attr, on)); +} + +void PythonQtWrapper_QWebSettings::setDefaultTextEncoding(QWebSettings* theWrappedObject, const QString& encoding) +{ + ( theWrappedObject->setDefaultTextEncoding(encoding)); +} + +void PythonQtWrapper_QWebSettings::setFontFamily(QWebSettings* theWrappedObject, QWebSettings::FontFamily which, const QString& family) +{ + ( theWrappedObject->setFontFamily(which, family)); +} + +void PythonQtWrapper_QWebSettings::setFontSize(QWebSettings* theWrappedObject, QWebSettings::FontSize type, int size) +{ + ( theWrappedObject->setFontSize(type, size)); +} + +void PythonQtWrapper_QWebSettings::static_QWebSettings_setIconDatabasePath(const QString& location) +{ + (QWebSettings::setIconDatabasePath(location)); +} + +void PythonQtWrapper_QWebSettings::setLocalStoragePath(QWebSettings* theWrappedObject, const QString& path) +{ + ( theWrappedObject->setLocalStoragePath(path)); +} + +void PythonQtWrapper_QWebSettings::static_QWebSettings_setMaximumPagesInCache(int pages) +{ + (QWebSettings::setMaximumPagesInCache(pages)); +} + +void PythonQtWrapper_QWebSettings::static_QWebSettings_setObjectCacheCapacities(int cacheMinDeadCapacity, int cacheMaxDead, int totalCapacity) +{ + (QWebSettings::setObjectCacheCapacities(cacheMinDeadCapacity, cacheMaxDead, totalCapacity)); +} + +void PythonQtWrapper_QWebSettings::static_QWebSettings_setOfflineStorageDefaultQuota(qint64 maximumSize) +{ + (QWebSettings::setOfflineStorageDefaultQuota(maximumSize)); +} + +void PythonQtWrapper_QWebSettings::static_QWebSettings_setOfflineStoragePath(const QString& path) +{ + (QWebSettings::setOfflineStoragePath(path)); +} + +void PythonQtWrapper_QWebSettings::static_QWebSettings_setOfflineWebApplicationCachePath(const QString& path) +{ + (QWebSettings::setOfflineWebApplicationCachePath(path)); +} + +void PythonQtWrapper_QWebSettings::static_QWebSettings_setOfflineWebApplicationCacheQuota(qint64 maximumSize) +{ + (QWebSettings::setOfflineWebApplicationCacheQuota(maximumSize)); +} + +void PythonQtWrapper_QWebSettings::setUserStyleSheetUrl(QWebSettings* theWrappedObject, const QUrl& location) +{ + ( theWrappedObject->setUserStyleSheetUrl(location)); +} + +void PythonQtWrapper_QWebSettings::static_QWebSettings_setWebGraphic(QWebSettings::WebGraphic type, const QPixmap& graphic) +{ + (QWebSettings::setWebGraphic(type, graphic)); +} + +bool PythonQtWrapper_QWebSettings::testAttribute(QWebSettings* theWrappedObject, QWebSettings::WebAttribute attr) const +{ + return ( theWrappedObject->testAttribute(attr)); +} + +QUrl PythonQtWrapper_QWebSettings::userStyleSheetUrl(QWebSettings* theWrappedObject) const +{ + return ( theWrappedObject->userStyleSheetUrl()); +} + +QPixmap PythonQtWrapper_QWebSettings::static_QWebSettings_webGraphic(QWebSettings::WebGraphic type) +{ + return (QWebSettings::webGraphic(type)); +} + +#if defined(QT_WEBKITWIDGETS_LIB) + +PythonQtShell_QWebView::~PythonQtShell_QWebView() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QWebView::actionEvent(QActionEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QActionEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::actionEvent(arg__1); +} +void PythonQtShell_QWebView::changeEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::changeEvent(arg__1); +} +void PythonQtShell_QWebView::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::childEvent(arg__1); +} +void PythonQtShell_QWebView::closeEvent(QCloseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QCloseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::closeEvent(arg__1); +} +void PythonQtShell_QWebView::contextMenuEvent(QContextMenuEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QContextMenuEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::contextMenuEvent(arg__1); +} +QWebView* PythonQtShell_QWebView::createWindow(QWebPage::WebWindowType type) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createWindow"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QWebView*" , "QWebPage::WebWindowType"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QWebView* returnValue; + void* args[2] = {NULL, (void*)&type}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("createWindow", methodInfo, result); + } else { + returnValue = *((QWebView**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebView::createWindow(type); +} +void PythonQtShell_QWebView::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::customEvent(arg__1); +} +int PythonQtShell_QWebView::devType() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebView::devType(); +} +void PythonQtShell_QWebView::dragEnterEvent(QDragEnterEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragEnterEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::dragEnterEvent(arg__1); +} +void PythonQtShell_QWebView::dragLeaveEvent(QDragLeaveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::dragLeaveEvent(arg__1); +} +void PythonQtShell_QWebView::dragMoveEvent(QDragMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDragMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::dragMoveEvent(arg__1); +} +void PythonQtShell_QWebView::dropEvent(QDropEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QDropEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::dropEvent(arg__1); +} +void PythonQtShell_QWebView::enterEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::enterEvent(arg__1); +} +bool PythonQtShell_QWebView::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebView::event(arg__1); +} +bool PythonQtShell_QWebView::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebView::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QWebView::focusInEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::focusInEvent(arg__1); +} +bool PythonQtShell_QWebView::focusNextPrevChild(bool next) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&next}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebView::focusNextPrevChild(next); +} +void PythonQtShell_QWebView::focusOutEvent(QFocusEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QFocusEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::focusOutEvent(arg__1); +} +bool PythonQtShell_QWebView::hasHeightForWidth() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebView::hasHeightForWidth(); +} +int PythonQtShell_QWebView::heightForWidth(int arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebView::heightForWidth(arg__1); +} +void PythonQtShell_QWebView::hideEvent(QHideEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QHideEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::hideEvent(arg__1); +} +void PythonQtShell_QWebView::initPainter(QPainter* painter) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&painter}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::initPainter(painter); +} +void PythonQtShell_QWebView::inputMethodEvent(QInputMethodEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QInputMethodEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::inputMethodEvent(arg__1); +} +QVariant PythonQtShell_QWebView::inputMethodQuery(Qt::InputMethodQuery property) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&property}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebView::inputMethodQuery(property); +} +void PythonQtShell_QWebView::keyPressEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::keyPressEvent(arg__1); +} +void PythonQtShell_QWebView::keyReleaseEvent(QKeyEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QKeyEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::keyReleaseEvent(arg__1); +} +void PythonQtShell_QWebView::leaveEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::leaveEvent(arg__1); +} +int PythonQtShell_QWebView::metric(QPaintDevice::PaintDeviceMetric arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + int returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebView::metric(arg__1); +} +QSize PythonQtShell_QWebView::minimumSizeHint() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QSize"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QSize returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); + } else { + returnValue = *((QSize*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebView::minimumSizeHint(); +} +void PythonQtShell_QWebView::mouseDoubleClickEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::mouseDoubleClickEvent(arg__1); +} +void PythonQtShell_QWebView::mouseMoveEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::mouseMoveEvent(arg__1); +} +void PythonQtShell_QWebView::mousePressEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::mousePressEvent(arg__1); +} +void PythonQtShell_QWebView::mouseReleaseEvent(QMouseEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMouseEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::mouseReleaseEvent(arg__1); +} +void PythonQtShell_QWebView::moveEvent(QMoveEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QMoveEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::moveEvent(arg__1); +} +bool PythonQtShell_QWebView::nativeEvent(const QByteArray& eventType, void* message, long* result) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nativeEvent", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebView::nativeEvent(eventType, message, result); +} +QPaintEngine* PythonQtShell_QWebView::paintEngine() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintEngine*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPaintEngine* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); + } else { + returnValue = *((QPaintEngine**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebView::paintEngine(); +} +void PythonQtShell_QWebView::paintEvent(QPaintEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QPaintEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::paintEvent(arg__1); +} +QPaintDevice* PythonQtShell_QWebView::redirected(QPoint* offset) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QPaintDevice* returnValue; + void* args[2] = {NULL, (void*)&offset}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("redirected", methodInfo, result); + } else { + returnValue = *((QPaintDevice**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebView::redirected(offset); +} +void PythonQtShell_QWebView::resizeEvent(QResizeEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QResizeEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::resizeEvent(arg__1); +} +QPainter* PythonQtShell_QWebView::sharedPainter() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QPainter*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QPainter* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("sharedPainter", methodInfo, result); + } else { + returnValue = *((QPainter**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QWebView::sharedPainter(); +} +void PythonQtShell_QWebView::showEvent(QShowEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QShowEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::showEvent(arg__1); +} +void PythonQtShell_QWebView::tabletEvent(QTabletEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTabletEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::tabletEvent(arg__1); +} +void PythonQtShell_QWebView::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::timerEvent(arg__1); +} +void PythonQtShell_QWebView::wheelEvent(QWheelEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QWheelEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QWebView::wheelEvent(arg__1); +} +QWebView* PythonQtWrapper_QWebView::new_QWebView(QWidget* parent) +{ +return new PythonQtShell_QWebView(parent); } + +void PythonQtWrapper_QWebView::changeEvent(QWebView* theWrappedObject, QEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_changeEvent(arg__1)); +} + +void PythonQtWrapper_QWebView::contextMenuEvent(QWebView* theWrappedObject, QContextMenuEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_contextMenuEvent(arg__1)); +} + +QWebView* PythonQtWrapper_QWebView::createWindow(QWebView* theWrappedObject, QWebPage::WebWindowType type) +{ + return ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_createWindow(type)); +} + +void PythonQtWrapper_QWebView::dragEnterEvent(QWebView* theWrappedObject, QDragEnterEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_dragEnterEvent(arg__1)); +} + +void PythonQtWrapper_QWebView::dragLeaveEvent(QWebView* theWrappedObject, QDragLeaveEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_dragLeaveEvent(arg__1)); +} + +void PythonQtWrapper_QWebView::dragMoveEvent(QWebView* theWrappedObject, QDragMoveEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_dragMoveEvent(arg__1)); +} + +void PythonQtWrapper_QWebView::dropEvent(QWebView* theWrappedObject, QDropEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_dropEvent(arg__1)); +} + +bool PythonQtWrapper_QWebView::event(QWebView* theWrappedObject, QEvent* arg__1) +{ + return ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_event(arg__1)); +} + +bool PythonQtWrapper_QWebView::findText(QWebView* theWrappedObject, const QString& subString, QWebPage::FindFlags options) +{ + return ( theWrappedObject->findText(subString, options)); +} + +void PythonQtWrapper_QWebView::focusInEvent(QWebView* theWrappedObject, QFocusEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_focusInEvent(arg__1)); +} + +bool PythonQtWrapper_QWebView::focusNextPrevChild(QWebView* theWrappedObject, bool next) +{ + return ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_focusNextPrevChild(next)); +} + +void PythonQtWrapper_QWebView::focusOutEvent(QWebView* theWrappedObject, QFocusEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_focusOutEvent(arg__1)); +} + +bool PythonQtWrapper_QWebView::hasSelection(QWebView* theWrappedObject) const +{ + return ( theWrappedObject->hasSelection()); +} + +QWebHistory* PythonQtWrapper_QWebView::history(QWebView* theWrappedObject) const +{ + return ( theWrappedObject->history()); +} + +QIcon PythonQtWrapper_QWebView::icon(QWebView* theWrappedObject) const +{ + return ( theWrappedObject->icon()); +} + +void PythonQtWrapper_QWebView::inputMethodEvent(QWebView* theWrappedObject, QInputMethodEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_inputMethodEvent(arg__1)); +} + +QVariant PythonQtWrapper_QWebView::inputMethodQuery(QWebView* theWrappedObject, Qt::InputMethodQuery property) const +{ + return ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_inputMethodQuery(property)); +} + +bool PythonQtWrapper_QWebView::isModified(QWebView* theWrappedObject) const +{ + return ( theWrappedObject->isModified()); +} + +void PythonQtWrapper_QWebView::keyPressEvent(QWebView* theWrappedObject, QKeyEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_keyPressEvent(arg__1)); +} + +void PythonQtWrapper_QWebView::keyReleaseEvent(QWebView* theWrappedObject, QKeyEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_keyReleaseEvent(arg__1)); +} + +void PythonQtWrapper_QWebView::load(QWebView* theWrappedObject, const QNetworkRequest& request, QNetworkAccessManager::Operation operation, const QByteArray& body) +{ + ( theWrappedObject->load(request, operation, body)); +} + +void PythonQtWrapper_QWebView::load(QWebView* theWrappedObject, const QUrl& url) +{ + ( theWrappedObject->load(url)); +} + +void PythonQtWrapper_QWebView::mouseDoubleClickEvent(QWebView* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_mouseDoubleClickEvent(arg__1)); +} + +void PythonQtWrapper_QWebView::mouseMoveEvent(QWebView* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); +} + +void PythonQtWrapper_QWebView::mousePressEvent(QWebView* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_mousePressEvent(arg__1)); +} + +void PythonQtWrapper_QWebView::mouseReleaseEvent(QWebView* theWrappedObject, QMouseEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); +} + +QWebPage* PythonQtWrapper_QWebView::page(QWebView* theWrappedObject) const +{ + return ( theWrappedObject->page()); +} + +QAction* PythonQtWrapper_QWebView::pageAction(QWebView* theWrappedObject, QWebPage::WebAction action) const +{ + return ( theWrappedObject->pageAction(action)); +} + +void PythonQtWrapper_QWebView::paintEvent(QWebView* theWrappedObject, QPaintEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_paintEvent(arg__1)); +} + +QPainter::RenderHints PythonQtWrapper_QWebView::renderHints(QWebView* theWrappedObject) const +{ + return ( theWrappedObject->renderHints()); +} + +void PythonQtWrapper_QWebView::resizeEvent(QWebView* theWrappedObject, QResizeEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_resizeEvent(arg__1)); +} + +QString PythonQtWrapper_QWebView::selectedHtml(QWebView* theWrappedObject) const +{ + return ( theWrappedObject->selectedHtml()); +} + +QString PythonQtWrapper_QWebView::selectedText(QWebView* theWrappedObject) const +{ + return ( theWrappedObject->selectedText()); +} + +void PythonQtWrapper_QWebView::setContent(QWebView* theWrappedObject, const QByteArray& data, const QString& mimeType, const QUrl& baseUrl) +{ + ( theWrappedObject->setContent(data, mimeType, baseUrl)); +} + +void PythonQtWrapper_QWebView::setHtml(QWebView* theWrappedObject, const QString& html, const QUrl& baseUrl) +{ + ( theWrappedObject->setHtml(html, baseUrl)); +} + +void PythonQtWrapper_QWebView::setPage(QWebView* theWrappedObject, QWebPage* page) +{ + ( theWrappedObject->setPage(page)); +} + +void PythonQtWrapper_QWebView::setRenderHint(QWebView* theWrappedObject, QPainter::RenderHint hint, bool enabled) +{ + ( theWrappedObject->setRenderHint(hint, enabled)); +} + +void PythonQtWrapper_QWebView::setRenderHints(QWebView* theWrappedObject, QPainter::RenderHints hints) +{ + ( theWrappedObject->setRenderHints(hints)); +} + +void PythonQtWrapper_QWebView::setTextSizeMultiplier(QWebView* theWrappedObject, qreal factor) +{ + ( theWrappedObject->setTextSizeMultiplier(factor)); +} + +void PythonQtWrapper_QWebView::setUrl(QWebView* theWrappedObject, const QUrl& url) +{ + ( theWrappedObject->setUrl(url)); +} + +void PythonQtWrapper_QWebView::setZoomFactor(QWebView* theWrappedObject, qreal factor) +{ + ( theWrappedObject->setZoomFactor(factor)); +} + +QWebSettings* PythonQtWrapper_QWebView::settings(QWebView* theWrappedObject) const +{ + return ( theWrappedObject->settings()); +} + +QSize PythonQtWrapper_QWebView::sizeHint(QWebView* theWrappedObject) const +{ + return ( theWrappedObject->sizeHint()); +} + +qreal PythonQtWrapper_QWebView::textSizeMultiplier(QWebView* theWrappedObject) const +{ + return ( theWrappedObject->textSizeMultiplier()); +} + +QString PythonQtWrapper_QWebView::title(QWebView* theWrappedObject) const +{ + return ( theWrappedObject->title()); +} + +void PythonQtWrapper_QWebView::triggerPageAction(QWebView* theWrappedObject, QWebPage::WebAction action, bool checked) +{ + ( theWrappedObject->triggerPageAction(action, checked)); +} + +QUrl PythonQtWrapper_QWebView::url(QWebView* theWrappedObject) const +{ + return ( theWrappedObject->url()); +} + +void PythonQtWrapper_QWebView::wheelEvent(QWebView* theWrappedObject, QWheelEvent* arg__1) +{ + ( ((PythonQtPublicPromoter_QWebView*)theWrappedObject)->promoted_wheelEvent(arg__1)); +} + +qreal PythonQtWrapper_QWebView::zoomFactor(QWebView* theWrappedObject) const +{ + return ( theWrappedObject->zoomFactor()); +} + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_webkit/com_trolltech_qt_webkit0.h b/generated_cpp_50/com_trolltech_qt_webkit/com_trolltech_qt_webkit0.h new file mode 100644 index 00000000..fced9a9a --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_webkit/com_trolltech_qt_webkit0.h @@ -0,0 +1,1135 @@ +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined(QT_WEBKITWIDGETS_LIB) +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#endif + +#if defined(QT_WEBKITWIDGETS_LIB) + +class PythonQtShell_QGraphicsWebView : public QGraphicsWebView +{ +public: + PythonQtShell_QGraphicsWebView(QGraphicsItem* parent = 0):QGraphicsWebView(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QGraphicsWebView(); + +virtual void changeEvent(QEvent* event); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* event); +virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* arg__1); +virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* arg__1); +virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* arg__1); +virtual void dropEvent(QGraphicsSceneDragDropEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; +virtual void grabKeyboardEvent(QEvent* event); +virtual void grabMouseEvent(QEvent* event); +virtual void hideEvent(QHideEvent* event); +virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* arg__1); +virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* arg__1); +virtual void initStyleOption(QStyleOption* option) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; +virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value); +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* arg__1); +virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* arg__1); +virtual void mousePressEvent(QGraphicsSceneMouseEvent* arg__1); +virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* arg__1); +virtual void moveEvent(QGraphicsSceneMoveEvent* event); +virtual void paint(QPainter* arg__1, const QStyleOptionGraphicsItem* options, QWidget* widget = 0); +virtual void paintWindowFrame(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); +virtual void polishEvent(); +virtual QVariant propertyChange(const QString& propertyName, const QVariant& value); +virtual void resizeEvent(QGraphicsSceneResizeEvent* event); +virtual bool sceneEvent(QEvent* arg__1); +virtual void setGeometry(const QRectF& rect); +virtual void showEvent(QShowEvent* event); +virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF& constraint) const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual void ungrabKeyboardEvent(QEvent* event); +virtual void ungrabMouseEvent(QEvent* event); +virtual void updateGeometry(); +virtual void wheelEvent(QGraphicsSceneWheelEvent* arg__1); +virtual bool windowFrameEvent(QEvent* e); +virtual Qt::WindowFrameSection windowFrameSectionAt(const QPointF& pos) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QGraphicsWebView : public QGraphicsWebView +{ public: +inline void promoted_contextMenuEvent(QGraphicsSceneContextMenuEvent* arg__1) { QGraphicsWebView::contextMenuEvent(arg__1); } +inline void promoted_dragEnterEvent(QGraphicsSceneDragDropEvent* arg__1) { QGraphicsWebView::dragEnterEvent(arg__1); } +inline void promoted_dragLeaveEvent(QGraphicsSceneDragDropEvent* arg__1) { QGraphicsWebView::dragLeaveEvent(arg__1); } +inline void promoted_dragMoveEvent(QGraphicsSceneDragDropEvent* arg__1) { QGraphicsWebView::dragMoveEvent(arg__1); } +inline void promoted_dropEvent(QGraphicsSceneDragDropEvent* arg__1) { QGraphicsWebView::dropEvent(arg__1); } +inline bool promoted_event(QEvent* arg__1) { return QGraphicsWebView::event(arg__1); } +inline void promoted_focusInEvent(QFocusEvent* arg__1) { QGraphicsWebView::focusInEvent(arg__1); } +inline bool promoted_focusNextPrevChild(bool next) { return QGraphicsWebView::focusNextPrevChild(next); } +inline void promoted_focusOutEvent(QFocusEvent* arg__1) { QGraphicsWebView::focusOutEvent(arg__1); } +inline void promoted_hoverLeaveEvent(QGraphicsSceneHoverEvent* arg__1) { QGraphicsWebView::hoverLeaveEvent(arg__1); } +inline void promoted_hoverMoveEvent(QGraphicsSceneHoverEvent* arg__1) { QGraphicsWebView::hoverMoveEvent(arg__1); } +inline void promoted_inputMethodEvent(QInputMethodEvent* arg__1) { QGraphicsWebView::inputMethodEvent(arg__1); } +inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery query) const { return QGraphicsWebView::inputMethodQuery(query); } +inline QVariant promoted_itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) { return QGraphicsWebView::itemChange(change, value); } +inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QGraphicsWebView::keyPressEvent(arg__1); } +inline void promoted_keyReleaseEvent(QKeyEvent* arg__1) { QGraphicsWebView::keyReleaseEvent(arg__1); } +inline void promoted_mouseDoubleClickEvent(QGraphicsSceneMouseEvent* arg__1) { QGraphicsWebView::mouseDoubleClickEvent(arg__1); } +inline void promoted_mouseMoveEvent(QGraphicsSceneMouseEvent* arg__1) { QGraphicsWebView::mouseMoveEvent(arg__1); } +inline void promoted_mousePressEvent(QGraphicsSceneMouseEvent* arg__1) { QGraphicsWebView::mousePressEvent(arg__1); } +inline void promoted_mouseReleaseEvent(QGraphicsSceneMouseEvent* arg__1) { QGraphicsWebView::mouseReleaseEvent(arg__1); } +inline void promoted_paint(QPainter* arg__1, const QStyleOptionGraphicsItem* options, QWidget* widget = 0) { QGraphicsWebView::paint(arg__1, options, widget); } +inline bool promoted_sceneEvent(QEvent* arg__1) { return QGraphicsWebView::sceneEvent(arg__1); } +inline void promoted_setGeometry(const QRectF& rect) { QGraphicsWebView::setGeometry(rect); } +inline QSizeF promoted_sizeHint(Qt::SizeHint which, const QSizeF& constraint) const { return QGraphicsWebView::sizeHint(which, constraint); } +inline void promoted_updateGeometry() { QGraphicsWebView::updateGeometry(); } +inline void promoted_wheelEvent(QGraphicsSceneWheelEvent* arg__1) { QGraphicsWebView::wheelEvent(arg__1); } +}; + +class PythonQtWrapper_QGraphicsWebView : public QObject +{ Q_OBJECT +public: +public slots: +QGraphicsWebView* new_QGraphicsWebView(QGraphicsItem* parent = 0); +void delete_QGraphicsWebView(QGraphicsWebView* obj) { delete obj; } + void contextMenuEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneContextMenuEvent* arg__1); + void dragEnterEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneDragDropEvent* arg__1); + void dragLeaveEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneDragDropEvent* arg__1); + void dragMoveEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneDragDropEvent* arg__1); + void dropEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneDragDropEvent* arg__1); + bool event(QGraphicsWebView* theWrappedObject, QEvent* arg__1); + bool findText(QGraphicsWebView* theWrappedObject, const QString& subString, QWebPage::FindFlags options = 0); + void focusInEvent(QGraphicsWebView* theWrappedObject, QFocusEvent* arg__1); + bool focusNextPrevChild(QGraphicsWebView* theWrappedObject, bool next); + void focusOutEvent(QGraphicsWebView* theWrappedObject, QFocusEvent* arg__1); + QWebHistory* history(QGraphicsWebView* theWrappedObject) const; + void hoverLeaveEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneHoverEvent* arg__1); + void hoverMoveEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneHoverEvent* arg__1); + QIcon icon(QGraphicsWebView* theWrappedObject) const; + void inputMethodEvent(QGraphicsWebView* theWrappedObject, QInputMethodEvent* arg__1); + QVariant inputMethodQuery(QGraphicsWebView* theWrappedObject, Qt::InputMethodQuery query) const; + bool isModified(QGraphicsWebView* theWrappedObject) const; + bool isTiledBackingStoreFrozen(QGraphicsWebView* theWrappedObject) const; + QVariant itemChange(QGraphicsWebView* theWrappedObject, QGraphicsItem::GraphicsItemChange change, const QVariant& value); + void keyPressEvent(QGraphicsWebView* theWrappedObject, QKeyEvent* arg__1); + void keyReleaseEvent(QGraphicsWebView* theWrappedObject, QKeyEvent* arg__1); + void load(QGraphicsWebView* theWrappedObject, const QNetworkRequest& request, QNetworkAccessManager::Operation operation = QNetworkAccessManager::GetOperation, const QByteArray& body = QByteArray()); + void load(QGraphicsWebView* theWrappedObject, const QUrl& url); + void mouseDoubleClickEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneMouseEvent* arg__1); + void mouseMoveEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneMouseEvent* arg__1); + void mousePressEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneMouseEvent* arg__1); + void mouseReleaseEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneMouseEvent* arg__1); + QWebPage* page(QGraphicsWebView* theWrappedObject) const; + QAction* pageAction(QGraphicsWebView* theWrappedObject, QWebPage::WebAction action) const; + void paint(QGraphicsWebView* theWrappedObject, QPainter* arg__1, const QStyleOptionGraphicsItem* options, QWidget* widget = 0); + QPainter::RenderHints renderHints(QGraphicsWebView* theWrappedObject) const; + bool resizesToContents(QGraphicsWebView* theWrappedObject) const; + bool sceneEvent(QGraphicsWebView* theWrappedObject, QEvent* arg__1); + void setContent(QGraphicsWebView* theWrappedObject, const QByteArray& data, const QString& mimeType = QString(), const QUrl& baseUrl = QUrl()); + void setGeometry(QGraphicsWebView* theWrappedObject, const QRectF& rect); + void setHtml(QGraphicsWebView* theWrappedObject, const QString& html, const QUrl& baseUrl = QUrl()); + void setPage(QGraphicsWebView* theWrappedObject, QWebPage* arg__1); + void setRenderHint(QGraphicsWebView* theWrappedObject, QPainter::RenderHint arg__1, bool enabled = true); + void setRenderHints(QGraphicsWebView* theWrappedObject, QPainter::RenderHints arg__1); + void setResizesToContents(QGraphicsWebView* theWrappedObject, bool enabled); + void setTiledBackingStoreFrozen(QGraphicsWebView* theWrappedObject, bool frozen); + void setUrl(QGraphicsWebView* theWrappedObject, const QUrl& arg__1); + void setZoomFactor(QGraphicsWebView* theWrappedObject, qreal arg__1); + QWebSettings* settings(QGraphicsWebView* theWrappedObject) const; + QSizeF sizeHint(QGraphicsWebView* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint) const; + QString title(QGraphicsWebView* theWrappedObject) const; + void triggerPageAction(QGraphicsWebView* theWrappedObject, QWebPage::WebAction action, bool checked = false); + void updateGeometry(QGraphicsWebView* theWrappedObject); + QUrl url(QGraphicsWebView* theWrappedObject) const; + void wheelEvent(QGraphicsWebView* theWrappedObject, QGraphicsSceneWheelEvent* arg__1); + qreal zoomFactor(QGraphicsWebView* theWrappedObject) const; +}; + +#endif + + + +class PythonQtWrapper_QWebElement : public QObject +{ Q_OBJECT +public: +Q_ENUMS(StyleResolveStrategy ) +enum StyleResolveStrategy{ + InlineStyle = QWebElement::InlineStyle, CascadedStyle = QWebElement::CascadedStyle, ComputedStyle = QWebElement::ComputedStyle}; +public slots: +QWebElement* new_QWebElement(); +QWebElement* new_QWebElement(const QWebElement& arg__1); +void delete_QWebElement(QWebElement* obj) { delete obj; } + void addClass(QWebElement* theWrappedObject, const QString& name); + void appendInside(QWebElement* theWrappedObject, const QString& markup); + void appendInside(QWebElement* theWrappedObject, const QWebElement& element); + void appendOutside(QWebElement* theWrappedObject, const QString& markup); + void appendOutside(QWebElement* theWrappedObject, const QWebElement& element); + QString attribute(QWebElement* theWrappedObject, const QString& name, const QString& defaultValue = QString()) const; + QString attributeNS(QWebElement* theWrappedObject, const QString& namespaceUri, const QString& name, const QString& defaultValue = QString()) const; + QStringList attributeNames(QWebElement* theWrappedObject, const QString& namespaceUri = QString()) const; + QStringList classes(QWebElement* theWrappedObject) const; + QWebElement clone(QWebElement* theWrappedObject) const; + QWebElement document(QWebElement* theWrappedObject) const; + void encloseContentsWith(QWebElement* theWrappedObject, const QString& markup); + void encloseContentsWith(QWebElement* theWrappedObject, const QWebElement& element); + void encloseWith(QWebElement* theWrappedObject, const QString& markup); + void encloseWith(QWebElement* theWrappedObject, const QWebElement& element); + QVariant evaluateJavaScript(QWebElement* theWrappedObject, const QString& scriptSource); + QWebElement findFirst(QWebElement* theWrappedObject, const QString& selectorQuery) const; + QWebElement firstChild(QWebElement* theWrappedObject) const; + QRect geometry(QWebElement* theWrappedObject) const; + bool hasAttribute(QWebElement* theWrappedObject, const QString& name) const; + bool hasAttributeNS(QWebElement* theWrappedObject, const QString& namespaceUri, const QString& name) const; + bool hasAttributes(QWebElement* theWrappedObject) const; + bool hasClass(QWebElement* theWrappedObject, const QString& name) const; + bool hasFocus(QWebElement* theWrappedObject) const; + bool isNull(QWebElement* theWrappedObject) const; + QWebElement lastChild(QWebElement* theWrappedObject) const; + QString localName(QWebElement* theWrappedObject) const; + QString namespaceUri(QWebElement* theWrappedObject) const; + QWebElement nextSibling(QWebElement* theWrappedObject) const; + bool __ne__(QWebElement* theWrappedObject, const QWebElement& o) const; + QWebElement* operator_assign(QWebElement* theWrappedObject, const QWebElement& arg__1); + bool __eq__(QWebElement* theWrappedObject, const QWebElement& o) const; + QWebElement parent(QWebElement* theWrappedObject) const; + QString prefix(QWebElement* theWrappedObject) const; + void prependInside(QWebElement* theWrappedObject, const QString& markup); + void prependInside(QWebElement* theWrappedObject, const QWebElement& element); + void prependOutside(QWebElement* theWrappedObject, const QString& markup); + void prependOutside(QWebElement* theWrappedObject, const QWebElement& element); + QWebElement previousSibling(QWebElement* theWrappedObject) const; + void removeAllChildren(QWebElement* theWrappedObject); + void removeAttribute(QWebElement* theWrappedObject, const QString& name); + void removeAttributeNS(QWebElement* theWrappedObject, const QString& namespaceUri, const QString& name); + void removeClass(QWebElement* theWrappedObject, const QString& name); + void removeFromDocument(QWebElement* theWrappedObject); + void render(QWebElement* theWrappedObject, QPainter* painter); + void render(QWebElement* theWrappedObject, QPainter* painter, const QRect& clipRect); + void replace(QWebElement* theWrappedObject, const QString& markup); + void replace(QWebElement* theWrappedObject, const QWebElement& element); + void setAttribute(QWebElement* theWrappedObject, const QString& name, const QString& value); + void setAttributeNS(QWebElement* theWrappedObject, const QString& namespaceUri, const QString& name, const QString& value); + void setFocus(QWebElement* theWrappedObject); + void setInnerXml(QWebElement* theWrappedObject, const QString& markup); + void setOuterXml(QWebElement* theWrappedObject, const QString& markup); + void setPlainText(QWebElement* theWrappedObject, const QString& text); + void setStyleProperty(QWebElement* theWrappedObject, const QString& name, const QString& value); + QString styleProperty(QWebElement* theWrappedObject, const QString& name, QWebElement::StyleResolveStrategy strategy) const; + QString tagName(QWebElement* theWrappedObject) const; + QWebElement* takeFromDocument(QWebElement* theWrappedObject); + QString toInnerXml(QWebElement* theWrappedObject) const; + QString toOuterXml(QWebElement* theWrappedObject) const; + QString toPlainText(QWebElement* theWrappedObject) const; + void toggleClass(QWebElement* theWrappedObject, const QString& name); + QWebFrame* webFrame(QWebElement* theWrappedObject) const; + bool __nonzero__(QWebElement* obj) { return !obj->isNull(); } +}; + + + +#if defined(QT_WEBKITWIDGETS_LIB) + +class PythonQtPublicPromoter_QWebFrame : public QWebFrame +{ public: +inline bool promoted_event(QEvent* arg__1) { return QWebFrame::event(arg__1); } +}; + +class PythonQtWrapper_QWebFrame : public QObject +{ Q_OBJECT +public: +Q_ENUMS(RenderLayer ) +enum RenderLayer{ + ContentsLayer = QWebFrame::ContentsLayer, ScrollBarLayer = QWebFrame::ScrollBarLayer, PanIconLayer = QWebFrame::PanIconLayer, AllLayers = QWebFrame::AllLayers}; +public slots: + QUrl baseUrl(QWebFrame* theWrappedObject) const; + QList childFrames(QWebFrame* theWrappedObject) const; + QSize contentsSize(QWebFrame* theWrappedObject) const; + QWebElement documentElement(QWebFrame* theWrappedObject) const; + bool event(QWebFrame* theWrappedObject, QEvent* arg__1); + QWebElement findFirstElement(QWebFrame* theWrappedObject, const QString& selectorQuery) const; + QString frameName(QWebFrame* theWrappedObject) const; + QRect geometry(QWebFrame* theWrappedObject) const; + bool hasFocus(QWebFrame* theWrappedObject) const; + QWebHitTestResult hitTestContent(QWebFrame* theWrappedObject, const QPoint& pos) const; + QIcon icon(QWebFrame* theWrappedObject) const; + void load(QWebFrame* theWrappedObject, const QNetworkRequest& request, QNetworkAccessManager::Operation operation = QNetworkAccessManager::GetOperation, const QByteArray& body = QByteArray()); + void load(QWebFrame* theWrappedObject, const QUrl& url); + QMultiMap metaData(QWebFrame* theWrappedObject) const; + QWebPage* page(QWebFrame* theWrappedObject) const; + QWebFrame* parentFrame(QWebFrame* theWrappedObject) const; + QPoint pos(QWebFrame* theWrappedObject) const; + void render(QWebFrame* theWrappedObject, QPainter* arg__1, const QRegion& clip = QRegion()); + QUrl requestedUrl(QWebFrame* theWrappedObject) const; + void scroll(QWebFrame* theWrappedObject, int arg__1, int arg__2); + QRect scrollBarGeometry(QWebFrame* theWrappedObject, Qt::Orientation orientation) const; + int scrollBarMaximum(QWebFrame* theWrappedObject, Qt::Orientation orientation) const; + int scrollBarMinimum(QWebFrame* theWrappedObject, Qt::Orientation orientation) const; + Qt::ScrollBarPolicy scrollBarPolicy(QWebFrame* theWrappedObject, Qt::Orientation orientation) const; + int scrollBarValue(QWebFrame* theWrappedObject, Qt::Orientation orientation) const; + QPoint scrollPosition(QWebFrame* theWrappedObject) const; + void scrollToAnchor(QWebFrame* theWrappedObject, const QString& anchor); + void setContent(QWebFrame* theWrappedObject, const QByteArray& data, const QString& mimeType = QString(), const QUrl& baseUrl = QUrl()); + void setFocus(QWebFrame* theWrappedObject); + void setHtml(QWebFrame* theWrappedObject, const QString& html, const QUrl& baseUrl = QUrl()); + void setScrollBarPolicy(QWebFrame* theWrappedObject, Qt::Orientation orientation, Qt::ScrollBarPolicy policy); + void setScrollBarValue(QWebFrame* theWrappedObject, Qt::Orientation orientation, int value); + void setScrollPosition(QWebFrame* theWrappedObject, const QPoint& pos); + void setTextSizeMultiplier(QWebFrame* theWrappedObject, qreal factor); + void setUrl(QWebFrame* theWrappedObject, const QUrl& url); + void setZoomFactor(QWebFrame* theWrappedObject, qreal factor); + qreal textSizeMultiplier(QWebFrame* theWrappedObject) const; + QString title(QWebFrame* theWrappedObject) const; + QString toHtml(QWebFrame* theWrappedObject) const; + QString toPlainText(QWebFrame* theWrappedObject) const; + QUrl url(QWebFrame* theWrappedObject) const; + qreal zoomFactor(QWebFrame* theWrappedObject) const; +}; + +#endif + + + +class PythonQtShell_QWebHistoryInterface : public QWebHistoryInterface +{ +public: + PythonQtShell_QWebHistoryInterface(QObject* parent = 0):QWebHistoryInterface(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QWebHistoryInterface(); + +virtual void addHistoryEntry(const QString& url); +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool historyContains(const QString& url) const; +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QWebHistoryInterface : public QObject +{ Q_OBJECT +public: +public slots: +QWebHistoryInterface* new_QWebHistoryInterface(QObject* parent = 0); +void delete_QWebHistoryInterface(QWebHistoryInterface* obj) { delete obj; } + QWebHistoryInterface* static_QWebHistoryInterface_defaultInterface(); + void static_QWebHistoryInterface_setDefaultInterface(QWebHistoryInterface* defaultInterface); +}; + + + +#if defined(QT_WEBKITWIDGETS_LIB) + +class PythonQtWrapper_QWebHitTestResult : public QObject +{ Q_OBJECT +public: +public slots: +QWebHitTestResult* new_QWebHitTestResult(); +QWebHitTestResult* new_QWebHitTestResult(const QWebHitTestResult& other); +void delete_QWebHitTestResult(QWebHitTestResult* obj) { delete obj; } + QString alternateText(QWebHitTestResult* theWrappedObject) const; + QRect boundingRect(QWebHitTestResult* theWrappedObject) const; + QWebElement element(QWebHitTestResult* theWrappedObject) const; + QWebElement enclosingBlockElement(QWebHitTestResult* theWrappedObject) const; + QWebFrame* frame(QWebHitTestResult* theWrappedObject) const; + QUrl imageUrl(QWebHitTestResult* theWrappedObject) const; + bool isContentEditable(QWebHitTestResult* theWrappedObject) const; + bool isContentSelected(QWebHitTestResult* theWrappedObject) const; + bool isNull(QWebHitTestResult* theWrappedObject) const; + QWebElement linkElement(QWebHitTestResult* theWrappedObject) const; + QWebFrame* linkTargetFrame(QWebHitTestResult* theWrappedObject) const; + QString linkText(QWebHitTestResult* theWrappedObject) const; + QUrl linkTitle(QWebHitTestResult* theWrappedObject) const; + QUrl linkUrl(QWebHitTestResult* theWrappedObject) const; + QPixmap pixmap(QWebHitTestResult* theWrappedObject) const; + QPoint pos(QWebHitTestResult* theWrappedObject) const; + QString title(QWebHitTestResult* theWrappedObject) const; + bool __nonzero__(QWebHitTestResult* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtShell_QWebInspector : public QWebInspector +{ +public: + PythonQtShell_QWebInspector(QWidget* parent = 0):QWebInspector(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QWebInspector(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* event); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* event); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* event); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* event); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QWebInspector : public QWebInspector +{ public: +inline void promoted_closeEvent(QCloseEvent* event) { QWebInspector::closeEvent(event); } +inline bool promoted_event(QEvent* arg__1) { return QWebInspector::event(arg__1); } +inline void promoted_hideEvent(QHideEvent* event) { QWebInspector::hideEvent(event); } +inline void promoted_resizeEvent(QResizeEvent* event) { QWebInspector::resizeEvent(event); } +inline void promoted_showEvent(QShowEvent* event) { QWebInspector::showEvent(event); } +}; + +class PythonQtWrapper_QWebInspector : public QObject +{ Q_OBJECT +public: +public slots: +QWebInspector* new_QWebInspector(QWidget* parent = 0); +void delete_QWebInspector(QWebInspector* obj) { delete obj; } + void closeEvent(QWebInspector* theWrappedObject, QCloseEvent* event); + bool event(QWebInspector* theWrappedObject, QEvent* arg__1); + void hideEvent(QWebInspector* theWrappedObject, QHideEvent* event); + QWebPage* page(QWebInspector* theWrappedObject) const; + void resizeEvent(QWebInspector* theWrappedObject, QResizeEvent* event); + void setPage(QWebInspector* theWrappedObject, QWebPage* page); + void showEvent(QWebInspector* theWrappedObject, QShowEvent* event); + QSize sizeHint(QWebInspector* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QWebPage : public QWebPage +{ +public: + PythonQtShell_QWebPage(QObject* parent = 0):QWebPage(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QWebPage(); + +virtual bool acceptNavigationRequest(QWebFrame* frame, const QNetworkRequest& request, QWebPage::NavigationType type); +virtual void childEvent(QChildEvent* arg__1); +virtual QString chooseFile(QWebFrame* originatingFrame, const QString& oldFile); +virtual QObject* createPlugin(const QString& classid, const QUrl& url, const QStringList& paramNames, const QStringList& paramValues); +virtual QWebPage* createWindow(QWebPage::WebWindowType type); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool extension(QWebPage::Extension extension, const QWebPage::ExtensionOption* option = 0, QWebPage::ExtensionReturn* output = 0); +virtual void javaScriptAlert(QWebFrame* originatingFrame, const QString& msg); +virtual bool javaScriptConfirm(QWebFrame* originatingFrame, const QString& msg); +virtual void javaScriptConsoleMessage(const QString& message, int lineNumber, const QString& sourceID); +virtual bool javaScriptPrompt(QWebFrame* originatingFrame, const QString& msg, const QString& defaultValue, QString* result); +virtual bool shouldInterruptJavaScript(); +virtual bool supportsExtension(QWebPage::Extension extension) const; +virtual void timerEvent(QTimerEvent* arg__1); +virtual void triggerAction(QWebPage::WebAction action, bool checked = false); +virtual QString userAgentForUrl(const QUrl& url) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QWebPage : public QWebPage +{ public: +inline bool promoted_acceptNavigationRequest(QWebFrame* frame, const QNetworkRequest& request, QWebPage::NavigationType type) { return QWebPage::acceptNavigationRequest(frame, request, type); } +inline QString promoted_chooseFile(QWebFrame* originatingFrame, const QString& oldFile) { return QWebPage::chooseFile(originatingFrame, oldFile); } +inline QObject* promoted_createPlugin(const QString& classid, const QUrl& url, const QStringList& paramNames, const QStringList& paramValues) { return QWebPage::createPlugin(classid, url, paramNames, paramValues); } +inline QWebPage* promoted_createWindow(QWebPage::WebWindowType type) { return QWebPage::createWindow(type); } +inline bool promoted_event(QEvent* arg__1) { return QWebPage::event(arg__1); } +inline bool promoted_extension(QWebPage::Extension extension, const QWebPage::ExtensionOption* option = 0, QWebPage::ExtensionReturn* output = 0) { return QWebPage::extension(extension, option, output); } +inline void promoted_javaScriptAlert(QWebFrame* originatingFrame, const QString& msg) { QWebPage::javaScriptAlert(originatingFrame, msg); } +inline bool promoted_javaScriptConfirm(QWebFrame* originatingFrame, const QString& msg) { return QWebPage::javaScriptConfirm(originatingFrame, msg); } +inline void promoted_javaScriptConsoleMessage(const QString& message, int lineNumber, const QString& sourceID) { QWebPage::javaScriptConsoleMessage(message, lineNumber, sourceID); } +inline bool promoted_javaScriptPrompt(QWebFrame* originatingFrame, const QString& msg, const QString& defaultValue, QString* result) { return QWebPage::javaScriptPrompt(originatingFrame, msg, defaultValue, result); } +inline bool promoted_shouldInterruptJavaScript() { return QWebPage::shouldInterruptJavaScript(); } +inline bool promoted_supportsExtension(QWebPage::Extension extension) const { return QWebPage::supportsExtension(extension); } +inline void promoted_triggerAction(QWebPage::WebAction action, bool checked = false) { QWebPage::triggerAction(action, checked); } +inline QString promoted_userAgentForUrl(const QUrl& url) const { return QWebPage::userAgentForUrl(url); } +}; + +class PythonQtWrapper_QWebPage : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Extension WebWindowType ErrorDomain FindFlag ) +Q_FLAGS(FindFlags ) +enum Extension{ + ChooseMultipleFilesExtension = QWebPage::ChooseMultipleFilesExtension, ErrorPageExtension = QWebPage::ErrorPageExtension}; +enum WebWindowType{ + WebBrowserWindow = QWebPage::WebBrowserWindow, WebModalDialog = QWebPage::WebModalDialog}; +enum ErrorDomain{ + QtNetwork = QWebPage::QtNetwork, Http = QWebPage::Http, WebKit = QWebPage::WebKit}; +enum FindFlag{ + FindBackward = QWebPage::FindBackward, FindCaseSensitively = QWebPage::FindCaseSensitively, FindWrapsAroundDocument = QWebPage::FindWrapsAroundDocument, HighlightAllOccurrences = QWebPage::HighlightAllOccurrences}; +Q_DECLARE_FLAGS(FindFlags, FindFlag) +public slots: +QWebPage* new_QWebPage(QObject* parent = 0); +void delete_QWebPage(QWebPage* obj) { delete obj; } + bool acceptNavigationRequest(QWebPage* theWrappedObject, QWebFrame* frame, const QNetworkRequest& request, QWebPage::NavigationType type); + QAction* action(QWebPage* theWrappedObject, QWebPage::WebAction action) const; + quint64 bytesReceived(QWebPage* theWrappedObject) const; + QString chooseFile(QWebPage* theWrappedObject, QWebFrame* originatingFrame, const QString& oldFile); + QObject* createPlugin(QWebPage* theWrappedObject, const QString& classid, const QUrl& url, const QStringList& paramNames, const QStringList& paramValues); + QMenu* createStandardContextMenu(QWebPage* theWrappedObject); + QWebPage* createWindow(QWebPage* theWrappedObject, QWebPage::WebWindowType type); + QWebFrame* currentFrame(QWebPage* theWrappedObject) const; + bool event(QWebPage* theWrappedObject, QEvent* arg__1); + bool extension(QWebPage* theWrappedObject, QWebPage::Extension extension, const QWebPage::ExtensionOption* option = 0, QWebPage::ExtensionReturn* output = 0); + bool findText(QWebPage* theWrappedObject, const QString& subString, QWebPage::FindFlags options = 0); + bool focusNextPrevChild(QWebPage* theWrappedObject, bool next); + bool forwardUnsupportedContent(QWebPage* theWrappedObject) const; + QWebFrame* frameAt(QWebPage* theWrappedObject, const QPoint& pos) const; + bool hasSelection(QWebPage* theWrappedObject) const; + QWebHistory* history(QWebPage* theWrappedObject) const; + QVariant inputMethodQuery(QWebPage* theWrappedObject, Qt::InputMethodQuery property) const; + bool isContentEditable(QWebPage* theWrappedObject) const; + bool isModified(QWebPage* theWrappedObject) const; + void javaScriptAlert(QWebPage* theWrappedObject, QWebFrame* originatingFrame, const QString& msg); + bool javaScriptConfirm(QWebPage* theWrappedObject, QWebFrame* originatingFrame, const QString& msg); + void javaScriptConsoleMessage(QWebPage* theWrappedObject, const QString& message, int lineNumber, const QString& sourceID); + bool javaScriptPrompt(QWebPage* theWrappedObject, QWebFrame* originatingFrame, const QString& msg, const QString& defaultValue, QString* result); + QWebPage::LinkDelegationPolicy linkDelegationPolicy(QWebPage* theWrappedObject) const; + QWebFrame* mainFrame(QWebPage* theWrappedObject) const; + QNetworkAccessManager* networkAccessManager(QWebPage* theWrappedObject) const; + QPalette palette(QWebPage* theWrappedObject) const; + QWebPluginFactory* pluginFactory(QWebPage* theWrappedObject) const; + QSize preferredContentsSize(QWebPage* theWrappedObject) const; + QString selectedHtml(QWebPage* theWrappedObject) const; + QString selectedText(QWebPage* theWrappedObject) const; + void setActualVisibleContentRect(QWebPage* theWrappedObject, const QRect& rect) const; + void setContentEditable(QWebPage* theWrappedObject, bool editable); + void setForwardUnsupportedContent(QWebPage* theWrappedObject, bool forward); + void setLinkDelegationPolicy(QWebPage* theWrappedObject, QWebPage::LinkDelegationPolicy policy); + void setNetworkAccessManager(QWebPage* theWrappedObject, QNetworkAccessManager* manager); + void setPalette(QWebPage* theWrappedObject, const QPalette& palette); + void setPluginFactory(QWebPage* theWrappedObject, QWebPluginFactory* factory); + void setPreferredContentsSize(QWebPage* theWrappedObject, const QSize& size) const; + void setView(QWebPage* theWrappedObject, QWidget* view); + void setViewportSize(QWebPage* theWrappedObject, const QSize& size) const; + QWebSettings* settings(QWebPage* theWrappedObject) const; + bool shouldInterruptJavaScript(QWebPage* theWrappedObject); + QStringList supportedContentTypes(QWebPage* theWrappedObject) const; + bool supportsContentType(QWebPage* theWrappedObject, const QString& mimeType) const; + bool supportsExtension(QWebPage* theWrappedObject, QWebPage::Extension extension) const; + bool swallowContextMenuEvent(QWebPage* theWrappedObject, QContextMenuEvent* event); + quint64 totalBytes(QWebPage* theWrappedObject) const; + void triggerAction(QWebPage* theWrappedObject, QWebPage::WebAction action, bool checked = false); + QUndoStack* undoStack(QWebPage* theWrappedObject) const; + void updatePositionDependentActions(QWebPage* theWrappedObject, const QPoint& pos); + QString userAgentForUrl(QWebPage* theWrappedObject, const QUrl& url) const; + QWidget* view(QWebPage* theWrappedObject) const; + QSize viewportSize(QWebPage* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QWebPage_ChooseMultipleFilesExtensionOption : public QWebPage::ChooseMultipleFilesExtensionOption +{ +public: + PythonQtShell_QWebPage_ChooseMultipleFilesExtensionOption():QWebPage::ChooseMultipleFilesExtensionOption(),_wrapper(NULL) {}; + + ~PythonQtShell_QWebPage_ChooseMultipleFilesExtensionOption(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QWebPage_ChooseMultipleFilesExtensionOption : public QObject +{ Q_OBJECT +public: +public slots: +QWebPage::ChooseMultipleFilesExtensionOption* new_QWebPage_ChooseMultipleFilesExtensionOption(); +void delete_QWebPage_ChooseMultipleFilesExtensionOption(QWebPage::ChooseMultipleFilesExtensionOption* obj) { delete obj; } +void py_set_suggestedFileNames(QWebPage::ChooseMultipleFilesExtensionOption* theWrappedObject, QStringList suggestedFileNames){ theWrappedObject->suggestedFileNames = suggestedFileNames; } +QStringList py_get_suggestedFileNames(QWebPage::ChooseMultipleFilesExtensionOption* theWrappedObject){ return theWrappedObject->suggestedFileNames; } +void py_set_parentFrame(QWebPage::ChooseMultipleFilesExtensionOption* theWrappedObject, QWebFrame* parentFrame){ theWrappedObject->parentFrame = parentFrame; } +QWebFrame* py_get_parentFrame(QWebPage::ChooseMultipleFilesExtensionOption* theWrappedObject){ return theWrappedObject->parentFrame; } +}; + + + + + +class PythonQtShell_QWebPage_ChooseMultipleFilesExtensionReturn : public QWebPage::ChooseMultipleFilesExtensionReturn +{ +public: + PythonQtShell_QWebPage_ChooseMultipleFilesExtensionReturn():QWebPage::ChooseMultipleFilesExtensionReturn(),_wrapper(NULL) {}; + + ~PythonQtShell_QWebPage_ChooseMultipleFilesExtensionReturn(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QWebPage_ChooseMultipleFilesExtensionReturn : public QObject +{ Q_OBJECT +public: +public slots: +QWebPage::ChooseMultipleFilesExtensionReturn* new_QWebPage_ChooseMultipleFilesExtensionReturn(); +void delete_QWebPage_ChooseMultipleFilesExtensionReturn(QWebPage::ChooseMultipleFilesExtensionReturn* obj) { delete obj; } +void py_set_fileNames(QWebPage::ChooseMultipleFilesExtensionReturn* theWrappedObject, QStringList fileNames){ theWrappedObject->fileNames = fileNames; } +QStringList py_get_fileNames(QWebPage::ChooseMultipleFilesExtensionReturn* theWrappedObject){ return theWrappedObject->fileNames; } +}; + + + + + +class PythonQtShell_QWebPage_ErrorPageExtensionOption : public QWebPage::ErrorPageExtensionOption +{ +public: + PythonQtShell_QWebPage_ErrorPageExtensionOption():QWebPage::ErrorPageExtensionOption(),_wrapper(NULL) {}; + + ~PythonQtShell_QWebPage_ErrorPageExtensionOption(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QWebPage_ErrorPageExtensionOption : public QObject +{ Q_OBJECT +public: +public slots: +QWebPage::ErrorPageExtensionOption* new_QWebPage_ErrorPageExtensionOption(); +void delete_QWebPage_ErrorPageExtensionOption(QWebPage::ErrorPageExtensionOption* obj) { delete obj; } +void py_set_errorString(QWebPage::ErrorPageExtensionOption* theWrappedObject, QString errorString){ theWrappedObject->errorString = errorString; } +QString py_get_errorString(QWebPage::ErrorPageExtensionOption* theWrappedObject){ return theWrappedObject->errorString; } +void py_set_frame(QWebPage::ErrorPageExtensionOption* theWrappedObject, QWebFrame* frame){ theWrappedObject->frame = frame; } +QWebFrame* py_get_frame(QWebPage::ErrorPageExtensionOption* theWrappedObject){ return theWrappedObject->frame; } +void py_set_domain(QWebPage::ErrorPageExtensionOption* theWrappedObject, QWebPage::ErrorDomain domain){ theWrappedObject->domain = domain; } +QWebPage::ErrorDomain py_get_domain(QWebPage::ErrorPageExtensionOption* theWrappedObject){ return theWrappedObject->domain; } +void py_set_url(QWebPage::ErrorPageExtensionOption* theWrappedObject, QUrl url){ theWrappedObject->url = url; } +QUrl py_get_url(QWebPage::ErrorPageExtensionOption* theWrappedObject){ return theWrappedObject->url; } +void py_set_error(QWebPage::ErrorPageExtensionOption* theWrappedObject, int error){ theWrappedObject->error = error; } +int py_get_error(QWebPage::ErrorPageExtensionOption* theWrappedObject){ return theWrappedObject->error; } +}; + + + + + +class PythonQtShell_QWebPage_ErrorPageExtensionReturn : public QWebPage::ErrorPageExtensionReturn +{ +public: + PythonQtShell_QWebPage_ErrorPageExtensionReturn():QWebPage::ErrorPageExtensionReturn(),_wrapper(NULL) {}; + + ~PythonQtShell_QWebPage_ErrorPageExtensionReturn(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QWebPage_ErrorPageExtensionReturn : public QObject +{ Q_OBJECT +public: +public slots: +QWebPage::ErrorPageExtensionReturn* new_QWebPage_ErrorPageExtensionReturn(); +void delete_QWebPage_ErrorPageExtensionReturn(QWebPage::ErrorPageExtensionReturn* obj) { delete obj; } +void py_set_contentType(QWebPage::ErrorPageExtensionReturn* theWrappedObject, QString contentType){ theWrappedObject->contentType = contentType; } +QString py_get_contentType(QWebPage::ErrorPageExtensionReturn* theWrappedObject){ return theWrappedObject->contentType; } +void py_set_content(QWebPage::ErrorPageExtensionReturn* theWrappedObject, QByteArray content){ theWrappedObject->content = content; } +QByteArray py_get_content(QWebPage::ErrorPageExtensionReturn* theWrappedObject){ return theWrappedObject->content; } +void py_set_encoding(QWebPage::ErrorPageExtensionReturn* theWrappedObject, QString encoding){ theWrappedObject->encoding = encoding; } +QString py_get_encoding(QWebPage::ErrorPageExtensionReturn* theWrappedObject){ return theWrappedObject->encoding; } +void py_set_baseUrl(QWebPage::ErrorPageExtensionReturn* theWrappedObject, QUrl baseUrl){ theWrappedObject->baseUrl = baseUrl; } +QUrl py_get_baseUrl(QWebPage::ErrorPageExtensionReturn* theWrappedObject){ return theWrappedObject->baseUrl; } +}; + + + + + +class PythonQtShell_QWebPage_ExtensionOption : public QWebPage::ExtensionOption +{ +public: + PythonQtShell_QWebPage_ExtensionOption():QWebPage::ExtensionOption(),_wrapper(NULL) {}; + + ~PythonQtShell_QWebPage_ExtensionOption(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QWebPage_ExtensionOption : public QObject +{ Q_OBJECT +public: +public slots: +QWebPage::ExtensionOption* new_QWebPage_ExtensionOption(); +void delete_QWebPage_ExtensionOption(QWebPage::ExtensionOption* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QWebPage_ExtensionReturn : public QWebPage::ExtensionReturn +{ +public: + PythonQtShell_QWebPage_ExtensionReturn():QWebPage::ExtensionReturn(),_wrapper(NULL) {}; + + ~PythonQtShell_QWebPage_ExtensionReturn(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QWebPage_ExtensionReturn : public QObject +{ Q_OBJECT +public: +public slots: +QWebPage::ExtensionReturn* new_QWebPage_ExtensionReturn(); +void delete_QWebPage_ExtensionReturn(QWebPage::ExtensionReturn* obj) { delete obj; } +}; + +#endif + + + +class PythonQtShell_QWebPluginFactory : public QWebPluginFactory +{ +public: + PythonQtShell_QWebPluginFactory(QObject* parent = 0):QWebPluginFactory(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QWebPluginFactory(); + +virtual void childEvent(QChildEvent* arg__1); +virtual QObject* create(const QString& mimeType, const QUrl& arg__2, const QStringList& argumentNames, const QStringList& argumentValues) const; +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual bool extension(QWebPluginFactory::Extension extension, const QWebPluginFactory::ExtensionOption* option = 0, QWebPluginFactory::ExtensionReturn* output = 0); +virtual QList plugins() const; +virtual void refreshPlugins(); +virtual bool supportsExtension(QWebPluginFactory::Extension extension) const; +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QWebPluginFactory : public QWebPluginFactory +{ public: +inline bool promoted_extension(QWebPluginFactory::Extension extension, const QWebPluginFactory::ExtensionOption* option = 0, QWebPluginFactory::ExtensionReturn* output = 0) { return QWebPluginFactory::extension(extension, option, output); } +inline void promoted_refreshPlugins() { QWebPluginFactory::refreshPlugins(); } +inline bool promoted_supportsExtension(QWebPluginFactory::Extension extension) const { return QWebPluginFactory::supportsExtension(extension); } +}; + +class PythonQtWrapper_QWebPluginFactory : public QObject +{ Q_OBJECT +public: +Q_ENUMS(Extension ) +enum Extension{ +}; +public slots: +QWebPluginFactory* new_QWebPluginFactory(QObject* parent = 0); +void delete_QWebPluginFactory(QWebPluginFactory* obj) { delete obj; } + bool extension(QWebPluginFactory* theWrappedObject, QWebPluginFactory::Extension extension, const QWebPluginFactory::ExtensionOption* option = 0, QWebPluginFactory::ExtensionReturn* output = 0); + void refreshPlugins(QWebPluginFactory* theWrappedObject); + bool supportsExtension(QWebPluginFactory* theWrappedObject, QWebPluginFactory::Extension extension) const; +}; + + + + + +class PythonQtShell_QWebPluginFactory_ExtensionOption : public QWebPluginFactory::ExtensionOption +{ +public: + PythonQtShell_QWebPluginFactory_ExtensionOption():QWebPluginFactory::ExtensionOption(),_wrapper(NULL) {}; + + ~PythonQtShell_QWebPluginFactory_ExtensionOption(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QWebPluginFactory_ExtensionOption : public QObject +{ Q_OBJECT +public: +public slots: +QWebPluginFactory::ExtensionOption* new_QWebPluginFactory_ExtensionOption(); +void delete_QWebPluginFactory_ExtensionOption(QWebPluginFactory::ExtensionOption* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QWebPluginFactory_ExtensionReturn : public QWebPluginFactory::ExtensionReturn +{ +public: + PythonQtShell_QWebPluginFactory_ExtensionReturn():QWebPluginFactory::ExtensionReturn(),_wrapper(NULL) {}; + + ~PythonQtShell_QWebPluginFactory_ExtensionReturn(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QWebPluginFactory_ExtensionReturn : public QObject +{ Q_OBJECT +public: +public slots: +QWebPluginFactory::ExtensionReturn* new_QWebPluginFactory_ExtensionReturn(); +void delete_QWebPluginFactory_ExtensionReturn(QWebPluginFactory::ExtensionReturn* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QWebPluginFactory_MimeType : public QWebPluginFactory::MimeType +{ +public: + PythonQtShell_QWebPluginFactory_MimeType():QWebPluginFactory::MimeType(),_wrapper(NULL) {}; + + ~PythonQtShell_QWebPluginFactory_MimeType(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QWebPluginFactory_MimeType : public QObject +{ Q_OBJECT +public: +public slots: +QWebPluginFactory::MimeType* new_QWebPluginFactory_MimeType(); +QWebPluginFactory::MimeType* new_QWebPluginFactory_MimeType(const QWebPluginFactory::MimeType& other) { +PythonQtShell_QWebPluginFactory_MimeType* a = new PythonQtShell_QWebPluginFactory_MimeType(); +*((QWebPluginFactory::MimeType*)a) = other; +return a; } +void delete_QWebPluginFactory_MimeType(QWebPluginFactory::MimeType* obj) { delete obj; } + bool __ne__(QWebPluginFactory::MimeType* theWrappedObject, const QWebPluginFactory::MimeType& other) const; + bool __eq__(QWebPluginFactory::MimeType* theWrappedObject, const QWebPluginFactory::MimeType& other) const; +void py_set_fileExtensions(QWebPluginFactory::MimeType* theWrappedObject, QStringList fileExtensions){ theWrappedObject->fileExtensions = fileExtensions; } +QStringList py_get_fileExtensions(QWebPluginFactory::MimeType* theWrappedObject){ return theWrappedObject->fileExtensions; } +void py_set_description(QWebPluginFactory::MimeType* theWrappedObject, QString description){ theWrappedObject->description = description; } +QString py_get_description(QWebPluginFactory::MimeType* theWrappedObject){ return theWrappedObject->description; } +void py_set_name(QWebPluginFactory::MimeType* theWrappedObject, QString name){ theWrappedObject->name = name; } +QString py_get_name(QWebPluginFactory::MimeType* theWrappedObject){ return theWrappedObject->name; } +}; + + + + + +class PythonQtShell_QWebPluginFactory_Plugin : public QWebPluginFactory::Plugin +{ +public: + PythonQtShell_QWebPluginFactory_Plugin():QWebPluginFactory::Plugin(),_wrapper(NULL) {}; + + ~PythonQtShell_QWebPluginFactory_Plugin(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QWebPluginFactory_Plugin : public QObject +{ Q_OBJECT +public: +public slots: +QWebPluginFactory::Plugin* new_QWebPluginFactory_Plugin(); +QWebPluginFactory::Plugin* new_QWebPluginFactory_Plugin(const QWebPluginFactory::Plugin& other) { +PythonQtShell_QWebPluginFactory_Plugin* a = new PythonQtShell_QWebPluginFactory_Plugin(); +*((QWebPluginFactory::Plugin*)a) = other; +return a; } +void delete_QWebPluginFactory_Plugin(QWebPluginFactory::Plugin* obj) { delete obj; } +void py_set_description(QWebPluginFactory::Plugin* theWrappedObject, QString description){ theWrappedObject->description = description; } +QString py_get_description(QWebPluginFactory::Plugin* theWrappedObject){ return theWrappedObject->description; } +void py_set_name(QWebPluginFactory::Plugin* theWrappedObject, QString name){ theWrappedObject->name = name; } +QString py_get_name(QWebPluginFactory::Plugin* theWrappedObject){ return theWrappedObject->name; } +}; + + + + + +class PythonQtWrapper_QWebSettings : public QObject +{ Q_OBJECT +public: +Q_ENUMS(WebAttribute FontFamily FontSize WebGraphic ) +enum WebAttribute{ + AutoLoadImages = QWebSettings::AutoLoadImages, JavascriptEnabled = QWebSettings::JavascriptEnabled, JavaEnabled = QWebSettings::JavaEnabled, PluginsEnabled = QWebSettings::PluginsEnabled, PrivateBrowsingEnabled = QWebSettings::PrivateBrowsingEnabled, JavascriptCanOpenWindows = QWebSettings::JavascriptCanOpenWindows, JavascriptCanAccessClipboard = QWebSettings::JavascriptCanAccessClipboard, DeveloperExtrasEnabled = QWebSettings::DeveloperExtrasEnabled, LinksIncludedInFocusChain = QWebSettings::LinksIncludedInFocusChain, ZoomTextOnly = QWebSettings::ZoomTextOnly, PrintElementBackgrounds = QWebSettings::PrintElementBackgrounds, OfflineStorageDatabaseEnabled = QWebSettings::OfflineStorageDatabaseEnabled, OfflineWebApplicationCacheEnabled = QWebSettings::OfflineWebApplicationCacheEnabled, LocalStorageEnabled = QWebSettings::LocalStorageEnabled, LocalStorageDatabaseEnabled = QWebSettings::LocalStorageDatabaseEnabled, LocalContentCanAccessRemoteUrls = QWebSettings::LocalContentCanAccessRemoteUrls, DnsPrefetchEnabled = QWebSettings::DnsPrefetchEnabled, XSSAuditingEnabled = QWebSettings::XSSAuditingEnabled, AcceleratedCompositingEnabled = QWebSettings::AcceleratedCompositingEnabled, SpatialNavigationEnabled = QWebSettings::SpatialNavigationEnabled, LocalContentCanAccessFileUrls = QWebSettings::LocalContentCanAccessFileUrls, TiledBackingStoreEnabled = QWebSettings::TiledBackingStoreEnabled, FrameFlatteningEnabled = QWebSettings::FrameFlatteningEnabled, SiteSpecificQuirksEnabled = QWebSettings::SiteSpecificQuirksEnabled, JavascriptCanCloseWindows = QWebSettings::JavascriptCanCloseWindows, WebGLEnabled = QWebSettings::WebGLEnabled, CSSRegionsEnabled = QWebSettings::CSSRegionsEnabled, HyperlinkAuditingEnabled = QWebSettings::HyperlinkAuditingEnabled, CSSGridLayoutEnabled = QWebSettings::CSSGridLayoutEnabled, ScrollAnimatorEnabled = QWebSettings::ScrollAnimatorEnabled, CaretBrowsingEnabled = QWebSettings::CaretBrowsingEnabled, NotificationsEnabled = QWebSettings::NotificationsEnabled}; +enum FontFamily{ + StandardFont = QWebSettings::StandardFont, FixedFont = QWebSettings::FixedFont, SerifFont = QWebSettings::SerifFont, SansSerifFont = QWebSettings::SansSerifFont, CursiveFont = QWebSettings::CursiveFont, FantasyFont = QWebSettings::FantasyFont}; +enum FontSize{ + MinimumFontSize = QWebSettings::MinimumFontSize, MinimumLogicalFontSize = QWebSettings::MinimumLogicalFontSize, DefaultFontSize = QWebSettings::DefaultFontSize, DefaultFixedFontSize = QWebSettings::DefaultFixedFontSize}; +enum WebGraphic{ + MissingImageGraphic = QWebSettings::MissingImageGraphic, MissingPluginGraphic = QWebSettings::MissingPluginGraphic, DefaultFrameIconGraphic = QWebSettings::DefaultFrameIconGraphic, TextAreaSizeGripCornerGraphic = QWebSettings::TextAreaSizeGripCornerGraphic, DeleteButtonGraphic = QWebSettings::DeleteButtonGraphic, InputSpeechButtonGraphic = QWebSettings::InputSpeechButtonGraphic, SearchCancelButtonGraphic = QWebSettings::SearchCancelButtonGraphic, SearchCancelButtonPressedGraphic = QWebSettings::SearchCancelButtonPressedGraphic}; +public slots: + void static_QWebSettings_clearIconDatabase(); + void static_QWebSettings_clearMemoryCaches(); + QString defaultTextEncoding(QWebSettings* theWrappedObject) const; + void static_QWebSettings_enablePersistentStorage(const QString& path = QString()); + QString fontFamily(QWebSettings* theWrappedObject, QWebSettings::FontFamily which) const; + int fontSize(QWebSettings* theWrappedObject, QWebSettings::FontSize type) const; + QWebSettings* static_QWebSettings_globalSettings(); + QString static_QWebSettings_iconDatabasePath(); + QIcon static_QWebSettings_iconForUrl(const QUrl& url); + QString localStoragePath(QWebSettings* theWrappedObject) const; + int static_QWebSettings_maximumPagesInCache(); + qint64 static_QWebSettings_offlineStorageDefaultQuota(); + QString static_QWebSettings_offlineStoragePath(); + QString static_QWebSettings_offlineWebApplicationCachePath(); + qint64 static_QWebSettings_offlineWebApplicationCacheQuota(); + void resetAttribute(QWebSettings* theWrappedObject, QWebSettings::WebAttribute attr); + void resetFontFamily(QWebSettings* theWrappedObject, QWebSettings::FontFamily which); + void resetFontSize(QWebSettings* theWrappedObject, QWebSettings::FontSize type); + void setAttribute(QWebSettings* theWrappedObject, QWebSettings::WebAttribute attr, bool on); + void setDefaultTextEncoding(QWebSettings* theWrappedObject, const QString& encoding); + void setFontFamily(QWebSettings* theWrappedObject, QWebSettings::FontFamily which, const QString& family); + void setFontSize(QWebSettings* theWrappedObject, QWebSettings::FontSize type, int size); + void static_QWebSettings_setIconDatabasePath(const QString& location); + void setLocalStoragePath(QWebSettings* theWrappedObject, const QString& path); + void static_QWebSettings_setMaximumPagesInCache(int pages); + void static_QWebSettings_setObjectCacheCapacities(int cacheMinDeadCapacity, int cacheMaxDead, int totalCapacity); + void static_QWebSettings_setOfflineStorageDefaultQuota(qint64 maximumSize); + void static_QWebSettings_setOfflineStoragePath(const QString& path); + void static_QWebSettings_setOfflineWebApplicationCachePath(const QString& path); + void static_QWebSettings_setOfflineWebApplicationCacheQuota(qint64 maximumSize); + void setUserStyleSheetUrl(QWebSettings* theWrappedObject, const QUrl& location); + void static_QWebSettings_setWebGraphic(QWebSettings::WebGraphic type, const QPixmap& graphic); + bool testAttribute(QWebSettings* theWrappedObject, QWebSettings::WebAttribute attr) const; + QUrl userStyleSheetUrl(QWebSettings* theWrappedObject) const; + QPixmap static_QWebSettings_webGraphic(QWebSettings::WebGraphic type); +}; + + + +#if defined(QT_WEBKITWIDGETS_LIB) + +class PythonQtShell_QWebView : public QWebView +{ +public: + PythonQtShell_QWebView(QWidget* parent = 0):QWebView(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QWebView(); + +virtual void actionEvent(QActionEvent* arg__1); +virtual void changeEvent(QEvent* arg__1); +virtual void childEvent(QChildEvent* arg__1); +virtual void closeEvent(QCloseEvent* arg__1); +virtual void contextMenuEvent(QContextMenuEvent* arg__1); +virtual QWebView* createWindow(QWebPage::WebWindowType type); +virtual void customEvent(QEvent* arg__1); +virtual int devType() const; +virtual void dragEnterEvent(QDragEnterEvent* arg__1); +virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); +virtual void dragMoveEvent(QDragMoveEvent* arg__1); +virtual void dropEvent(QDropEvent* arg__1); +virtual void enterEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void focusInEvent(QFocusEvent* arg__1); +virtual bool focusNextPrevChild(bool next); +virtual void focusOutEvent(QFocusEvent* arg__1); +virtual bool hasHeightForWidth() const; +virtual int heightForWidth(int arg__1) const; +virtual void hideEvent(QHideEvent* arg__1); +virtual void initPainter(QPainter* painter) const; +virtual void inputMethodEvent(QInputMethodEvent* arg__1); +virtual QVariant inputMethodQuery(Qt::InputMethodQuery property) const; +virtual void keyPressEvent(QKeyEvent* arg__1); +virtual void keyReleaseEvent(QKeyEvent* arg__1); +virtual void leaveEvent(QEvent* arg__1); +virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; +virtual QSize minimumSizeHint() const; +virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); +virtual void mouseMoveEvent(QMouseEvent* arg__1); +virtual void mousePressEvent(QMouseEvent* arg__1); +virtual void mouseReleaseEvent(QMouseEvent* arg__1); +virtual void moveEvent(QMoveEvent* arg__1); +virtual bool nativeEvent(const QByteArray& eventType, void* message, long* result); +virtual QPaintEngine* paintEngine() const; +virtual void paintEvent(QPaintEvent* arg__1); +virtual QPaintDevice* redirected(QPoint* offset) const; +virtual void resizeEvent(QResizeEvent* arg__1); +virtual QPainter* sharedPainter() const; +virtual void showEvent(QShowEvent* arg__1); +virtual void tabletEvent(QTabletEvent* arg__1); +virtual void timerEvent(QTimerEvent* arg__1); +virtual void wheelEvent(QWheelEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QWebView : public QWebView +{ public: +inline void promoted_changeEvent(QEvent* arg__1) { QWebView::changeEvent(arg__1); } +inline void promoted_contextMenuEvent(QContextMenuEvent* arg__1) { QWebView::contextMenuEvent(arg__1); } +inline QWebView* promoted_createWindow(QWebPage::WebWindowType type) { return QWebView::createWindow(type); } +inline void promoted_dragEnterEvent(QDragEnterEvent* arg__1) { QWebView::dragEnterEvent(arg__1); } +inline void promoted_dragLeaveEvent(QDragLeaveEvent* arg__1) { QWebView::dragLeaveEvent(arg__1); } +inline void promoted_dragMoveEvent(QDragMoveEvent* arg__1) { QWebView::dragMoveEvent(arg__1); } +inline void promoted_dropEvent(QDropEvent* arg__1) { QWebView::dropEvent(arg__1); } +inline bool promoted_event(QEvent* arg__1) { return QWebView::event(arg__1); } +inline void promoted_focusInEvent(QFocusEvent* arg__1) { QWebView::focusInEvent(arg__1); } +inline bool promoted_focusNextPrevChild(bool next) { return QWebView::focusNextPrevChild(next); } +inline void promoted_focusOutEvent(QFocusEvent* arg__1) { QWebView::focusOutEvent(arg__1); } +inline void promoted_inputMethodEvent(QInputMethodEvent* arg__1) { QWebView::inputMethodEvent(arg__1); } +inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery property) const { return QWebView::inputMethodQuery(property); } +inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QWebView::keyPressEvent(arg__1); } +inline void promoted_keyReleaseEvent(QKeyEvent* arg__1) { QWebView::keyReleaseEvent(arg__1); } +inline void promoted_mouseDoubleClickEvent(QMouseEvent* arg__1) { QWebView::mouseDoubleClickEvent(arg__1); } +inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QWebView::mouseMoveEvent(arg__1); } +inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QWebView::mousePressEvent(arg__1); } +inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QWebView::mouseReleaseEvent(arg__1); } +inline void promoted_paintEvent(QPaintEvent* arg__1) { QWebView::paintEvent(arg__1); } +inline void promoted_resizeEvent(QResizeEvent* arg__1) { QWebView::resizeEvent(arg__1); } +inline void promoted_wheelEvent(QWheelEvent* arg__1) { QWebView::wheelEvent(arg__1); } +}; + +class PythonQtWrapper_QWebView : public QObject +{ Q_OBJECT +public: +public slots: +QWebView* new_QWebView(QWidget* parent = 0); +void delete_QWebView(QWebView* obj) { delete obj; } + void changeEvent(QWebView* theWrappedObject, QEvent* arg__1); + void contextMenuEvent(QWebView* theWrappedObject, QContextMenuEvent* arg__1); + QWebView* createWindow(QWebView* theWrappedObject, QWebPage::WebWindowType type); + void dragEnterEvent(QWebView* theWrappedObject, QDragEnterEvent* arg__1); + void dragLeaveEvent(QWebView* theWrappedObject, QDragLeaveEvent* arg__1); + void dragMoveEvent(QWebView* theWrappedObject, QDragMoveEvent* arg__1); + void dropEvent(QWebView* theWrappedObject, QDropEvent* arg__1); + bool event(QWebView* theWrappedObject, QEvent* arg__1); + bool findText(QWebView* theWrappedObject, const QString& subString, QWebPage::FindFlags options = 0); + void focusInEvent(QWebView* theWrappedObject, QFocusEvent* arg__1); + bool focusNextPrevChild(QWebView* theWrappedObject, bool next); + void focusOutEvent(QWebView* theWrappedObject, QFocusEvent* arg__1); + bool hasSelection(QWebView* theWrappedObject) const; + QWebHistory* history(QWebView* theWrappedObject) const; + QIcon icon(QWebView* theWrappedObject) const; + void inputMethodEvent(QWebView* theWrappedObject, QInputMethodEvent* arg__1); + QVariant inputMethodQuery(QWebView* theWrappedObject, Qt::InputMethodQuery property) const; + bool isModified(QWebView* theWrappedObject) const; + void keyPressEvent(QWebView* theWrappedObject, QKeyEvent* arg__1); + void keyReleaseEvent(QWebView* theWrappedObject, QKeyEvent* arg__1); + void load(QWebView* theWrappedObject, const QNetworkRequest& request, QNetworkAccessManager::Operation operation = QNetworkAccessManager::GetOperation, const QByteArray& body = QByteArray()); + void load(QWebView* theWrappedObject, const QUrl& url); + void mouseDoubleClickEvent(QWebView* theWrappedObject, QMouseEvent* arg__1); + void mouseMoveEvent(QWebView* theWrappedObject, QMouseEvent* arg__1); + void mousePressEvent(QWebView* theWrappedObject, QMouseEvent* arg__1); + void mouseReleaseEvent(QWebView* theWrappedObject, QMouseEvent* arg__1); + QWebPage* page(QWebView* theWrappedObject) const; + QAction* pageAction(QWebView* theWrappedObject, QWebPage::WebAction action) const; + void paintEvent(QWebView* theWrappedObject, QPaintEvent* arg__1); + QPainter::RenderHints renderHints(QWebView* theWrappedObject) const; + void resizeEvent(QWebView* theWrappedObject, QResizeEvent* arg__1); + QString selectedHtml(QWebView* theWrappedObject) const; + QString selectedText(QWebView* theWrappedObject) const; + void setContent(QWebView* theWrappedObject, const QByteArray& data, const QString& mimeType = QString(), const QUrl& baseUrl = QUrl()); + void setHtml(QWebView* theWrappedObject, const QString& html, const QUrl& baseUrl = QUrl()); + void setPage(QWebView* theWrappedObject, QWebPage* page); + void setRenderHint(QWebView* theWrappedObject, QPainter::RenderHint hint, bool enabled = true); + void setRenderHints(QWebView* theWrappedObject, QPainter::RenderHints hints); + void setTextSizeMultiplier(QWebView* theWrappedObject, qreal factor); + void setUrl(QWebView* theWrappedObject, const QUrl& url); + void setZoomFactor(QWebView* theWrappedObject, qreal factor); + QWebSettings* settings(QWebView* theWrappedObject) const; + QSize sizeHint(QWebView* theWrappedObject) const; + qreal textSizeMultiplier(QWebView* theWrappedObject) const; + QString title(QWebView* theWrappedObject) const; + void triggerPageAction(QWebView* theWrappedObject, QWebPage::WebAction action, bool checked = false); + QUrl url(QWebView* theWrappedObject) const; + void wheelEvent(QWebView* theWrappedObject, QWheelEvent* arg__1); + qreal zoomFactor(QWebView* theWrappedObject) const; +}; + +#endif diff --git a/generated_cpp_50/com_trolltech_qt_webkit/com_trolltech_qt_webkit_init.cpp b/generated_cpp_50/com_trolltech_qt_webkit/com_trolltech_qt_webkit_init.cpp new file mode 100644 index 00000000..17e79d3d --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_webkit/com_trolltech_qt_webkit_init.cpp @@ -0,0 +1,34 @@ +#include +#include "com_trolltech_qt_webkit0.h" + + +void PythonQt_init_QtWebKit(PyObject* module) { +#if defined(QT_WEBKITWIDGETS_LIB) +PythonQt::priv()->registerClass(&QGraphicsWebView::staticMetaObject, "QtWebKit", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerCPPClass("QWebElement", "", "QtWebKit", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +#if defined(QT_WEBKITWIDGETS_LIB) +PythonQt::priv()->registerClass(&QWebFrame::staticMetaObject, "QtWebKit", PythonQtCreateObject, NULL, module, 0); +#endif +PythonQt::priv()->registerClass(&QWebHistoryInterface::staticMetaObject, "QtWebKit", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#if defined(QT_WEBKITWIDGETS_LIB) +PythonQt::priv()->registerCPPClass("QWebHitTestResult", "", "QtWebKit", PythonQtCreateObject, NULL, module, PythonQt::Type_NonZero); +PythonQt::priv()->registerClass(&QWebInspector::staticMetaObject, "QtWebKit", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QWebPage::staticMetaObject, "QtWebKit", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QWebPage::ChooseMultipleFilesExtensionOption", "QWebPage::ExtensionOption", "QtWebKit", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QWebPage::ChooseMultipleFilesExtensionReturn", "QWebPage::ExtensionReturn", "QtWebKit", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QWebPage::ErrorPageExtensionOption", "QWebPage::ExtensionOption", "QtWebKit", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QWebPage::ErrorPageExtensionReturn", "QWebPage::ExtensionReturn", "QtWebKit", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QWebPage::ExtensionOption", "", "QtWebKit", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QWebPage::ExtensionReturn", "", "QtWebKit", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +PythonQt::priv()->registerClass(&QWebPluginFactory::staticMetaObject, "QtWebKit", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QWebPluginFactory::ExtensionOption", "", "QtWebKit", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QWebPluginFactory::ExtensionReturn", "", "QtWebKit", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QWebPluginFactory::MimeType", "", "QtWebKit", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QWebPluginFactory::Plugin", "", "QtWebKit", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QWebSettings", "", "QtWebKit", PythonQtCreateObject, NULL, module, 0); +#if defined(QT_WEBKITWIDGETS_LIB) +PythonQt::priv()->registerClass(&QWebView::staticMetaObject, "QtWebKit", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +#endif +} diff --git a/generated_cpp_50/com_trolltech_qt_xml/com_trolltech_qt_xml.pri b/generated_cpp_50/com_trolltech_qt_xml/com_trolltech_qt_xml.pri new file mode 100644 index 00000000..08630adb --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_xml/com_trolltech_qt_xml.pri @@ -0,0 +1,6 @@ +HEADERS += \ + $$PWD/com_trolltech_qt_xml0.h \ + +SOURCES += \ + $$PWD/com_trolltech_qt_xml0.cpp \ + $$PWD/com_trolltech_qt_xml_init.cpp diff --git a/generated_cpp_50/com_trolltech_qt_xml/com_trolltech_qt_xml0.cpp b/generated_cpp_50/com_trolltech_qt_xml/com_trolltech_qt_xml0.cpp new file mode 100644 index 00000000..713f6d55 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_xml/com_trolltech_qt_xml0.cpp @@ -0,0 +1,4477 @@ +#include "com_trolltech_qt_xml0.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QDomAttr* PythonQtWrapper_QDomAttr::new_QDomAttr() +{ +return new QDomAttr(); } + +QDomAttr* PythonQtWrapper_QDomAttr::new_QDomAttr(const QDomAttr& x) +{ +return new QDomAttr(x); } + +QString PythonQtWrapper_QDomAttr::name(QDomAttr* theWrappedObject) const +{ + return ( theWrappedObject->name()); +} + +QDomElement PythonQtWrapper_QDomAttr::ownerElement(QDomAttr* theWrappedObject) const +{ + return ( theWrappedObject->ownerElement()); +} + +void PythonQtWrapper_QDomAttr::setValue(QDomAttr* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setValue(arg__1)); +} + +bool PythonQtWrapper_QDomAttr::specified(QDomAttr* theWrappedObject) const +{ + return ( theWrappedObject->specified()); +} + +QString PythonQtWrapper_QDomAttr::value(QDomAttr* theWrappedObject) const +{ + return ( theWrappedObject->value()); +} + + + +QDomCDATASection* PythonQtWrapper_QDomCDATASection::new_QDomCDATASection() +{ +return new QDomCDATASection(); } + +QDomCDATASection* PythonQtWrapper_QDomCDATASection::new_QDomCDATASection(const QDomCDATASection& x) +{ +return new QDomCDATASection(x); } + + + +QDomCharacterData* PythonQtWrapper_QDomCharacterData::new_QDomCharacterData() +{ +return new QDomCharacterData(); } + +QDomCharacterData* PythonQtWrapper_QDomCharacterData::new_QDomCharacterData(const QDomCharacterData& x) +{ +return new QDomCharacterData(x); } + +void PythonQtWrapper_QDomCharacterData::appendData(QDomCharacterData* theWrappedObject, const QString& arg) +{ + ( theWrappedObject->appendData(arg)); +} + +QString PythonQtWrapper_QDomCharacterData::data(QDomCharacterData* theWrappedObject) const +{ + return ( theWrappedObject->data()); +} + +void PythonQtWrapper_QDomCharacterData::deleteData(QDomCharacterData* theWrappedObject, unsigned long offset, unsigned long count) +{ + ( theWrappedObject->deleteData(offset, count)); +} + +void PythonQtWrapper_QDomCharacterData::insertData(QDomCharacterData* theWrappedObject, unsigned long offset, const QString& arg) +{ + ( theWrappedObject->insertData(offset, arg)); +} + +int PythonQtWrapper_QDomCharacterData::length(QDomCharacterData* theWrappedObject) const +{ + return ( theWrappedObject->length()); +} + +void PythonQtWrapper_QDomCharacterData::replaceData(QDomCharacterData* theWrappedObject, unsigned long offset, unsigned long count, const QString& arg) +{ + ( theWrappedObject->replaceData(offset, count, arg)); +} + +void PythonQtWrapper_QDomCharacterData::setData(QDomCharacterData* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setData(arg__1)); +} + +QString PythonQtWrapper_QDomCharacterData::substringData(QDomCharacterData* theWrappedObject, unsigned long offset, unsigned long count) +{ + return ( theWrappedObject->substringData(offset, count)); +} + + + +QDomComment* PythonQtWrapper_QDomComment::new_QDomComment() +{ +return new QDomComment(); } + +QDomComment* PythonQtWrapper_QDomComment::new_QDomComment(const QDomComment& x) +{ +return new QDomComment(x); } + + + +QDomDocument* PythonQtWrapper_QDomDocument::new_QDomDocument() +{ +return new QDomDocument(); } + +QDomDocument* PythonQtWrapper_QDomDocument::new_QDomDocument(const QDomDocument& x) +{ +return new QDomDocument(x); } + +QDomDocument* PythonQtWrapper_QDomDocument::new_QDomDocument(const QDomDocumentType& doctype) +{ +return new QDomDocument(doctype); } + +QDomDocument* PythonQtWrapper_QDomDocument::new_QDomDocument(const QString& name) +{ +return new QDomDocument(name); } + +QDomAttr PythonQtWrapper_QDomDocument::createAttribute(QDomDocument* theWrappedObject, const QString& name) +{ + return ( theWrappedObject->createAttribute(name)); +} + +QDomAttr PythonQtWrapper_QDomDocument::createAttributeNS(QDomDocument* theWrappedObject, const QString& nsURI, const QString& qName) +{ + return ( theWrappedObject->createAttributeNS(nsURI, qName)); +} + +QDomCDATASection PythonQtWrapper_QDomDocument::createCDATASection(QDomDocument* theWrappedObject, const QString& data) +{ + return ( theWrappedObject->createCDATASection(data)); +} + +QDomComment PythonQtWrapper_QDomDocument::createComment(QDomDocument* theWrappedObject, const QString& data) +{ + return ( theWrappedObject->createComment(data)); +} + +QDomDocumentFragment PythonQtWrapper_QDomDocument::createDocumentFragment(QDomDocument* theWrappedObject) +{ + return ( theWrappedObject->createDocumentFragment()); +} + +QDomElement PythonQtWrapper_QDomDocument::createElement(QDomDocument* theWrappedObject, const QString& tagName) +{ + return ( theWrappedObject->createElement(tagName)); +} + +QDomElement PythonQtWrapper_QDomDocument::createElementNS(QDomDocument* theWrappedObject, const QString& nsURI, const QString& qName) +{ + return ( theWrappedObject->createElementNS(nsURI, qName)); +} + +QDomEntityReference PythonQtWrapper_QDomDocument::createEntityReference(QDomDocument* theWrappedObject, const QString& name) +{ + return ( theWrappedObject->createEntityReference(name)); +} + +QDomProcessingInstruction PythonQtWrapper_QDomDocument::createProcessingInstruction(QDomDocument* theWrappedObject, const QString& target, const QString& data) +{ + return ( theWrappedObject->createProcessingInstruction(target, data)); +} + +QDomText PythonQtWrapper_QDomDocument::createTextNode(QDomDocument* theWrappedObject, const QString& data) +{ + return ( theWrappedObject->createTextNode(data)); +} + +QDomDocumentType PythonQtWrapper_QDomDocument::doctype(QDomDocument* theWrappedObject) const +{ + return ( theWrappedObject->doctype()); +} + +QDomElement PythonQtWrapper_QDomDocument::documentElement(QDomDocument* theWrappedObject) const +{ + return ( theWrappedObject->documentElement()); +} + +QDomElement PythonQtWrapper_QDomDocument::elementById(QDomDocument* theWrappedObject, const QString& elementId) +{ + return ( theWrappedObject->elementById(elementId)); +} + +QDomNodeList PythonQtWrapper_QDomDocument::elementsByTagName(QDomDocument* theWrappedObject, const QString& tagname) const +{ + return ( theWrappedObject->elementsByTagName(tagname)); +} + +QDomNodeList PythonQtWrapper_QDomDocument::elementsByTagNameNS(QDomDocument* theWrappedObject, const QString& nsURI, const QString& localName) +{ + return ( theWrappedObject->elementsByTagNameNS(nsURI, localName)); +} + +QDomImplementation PythonQtWrapper_QDomDocument::implementation(QDomDocument* theWrappedObject) const +{ + return ( theWrappedObject->implementation()); +} + +QDomNode PythonQtWrapper_QDomDocument::importNode(QDomDocument* theWrappedObject, const QDomNode& importedNode, bool deep) +{ + return ( theWrappedObject->importNode(importedNode, deep)); +} + +bool PythonQtWrapper_QDomDocument::setContent(QDomDocument* theWrappedObject, QIODevice* dev, QString* errorMsg, int* errorLine, int* errorColumn) +{ + return ( theWrappedObject->setContent(dev, errorMsg, errorLine, errorColumn)); +} + +bool PythonQtWrapper_QDomDocument::setContent(QDomDocument* theWrappedObject, QIODevice* dev, bool namespaceProcessing, QString* errorMsg, int* errorLine, int* errorColumn) +{ + return ( theWrappedObject->setContent(dev, namespaceProcessing, errorMsg, errorLine, errorColumn)); +} + +bool PythonQtWrapper_QDomDocument::setContent(QDomDocument* theWrappedObject, QXmlInputSource* source, QXmlReader* reader, QString* errorMsg, int* errorLine, int* errorColumn) +{ + return ( theWrappedObject->setContent(source, reader, errorMsg, errorLine, errorColumn)); +} + +bool PythonQtWrapper_QDomDocument::setContent(QDomDocument* theWrappedObject, QXmlInputSource* source, bool namespaceProcessing, QString* errorMsg, int* errorLine, int* errorColumn) +{ + return ( theWrappedObject->setContent(source, namespaceProcessing, errorMsg, errorLine, errorColumn)); +} + +bool PythonQtWrapper_QDomDocument::setContent(QDomDocument* theWrappedObject, const QByteArray& text, QString* errorMsg, int* errorLine, int* errorColumn) +{ + return ( theWrappedObject->setContent(text, errorMsg, errorLine, errorColumn)); +} + +bool PythonQtWrapper_QDomDocument::setContent(QDomDocument* theWrappedObject, const QByteArray& text, bool namespaceProcessing, QString* errorMsg, int* errorLine, int* errorColumn) +{ + return ( theWrappedObject->setContent(text, namespaceProcessing, errorMsg, errorLine, errorColumn)); +} + +bool PythonQtWrapper_QDomDocument::setContent(QDomDocument* theWrappedObject, const QString& text, QString* errorMsg, int* errorLine, int* errorColumn) +{ + return ( theWrappedObject->setContent(text, errorMsg, errorLine, errorColumn)); +} + +bool PythonQtWrapper_QDomDocument::setContent(QDomDocument* theWrappedObject, const QString& text, bool namespaceProcessing, QString* errorMsg, int* errorLine, int* errorColumn) +{ + return ( theWrappedObject->setContent(text, namespaceProcessing, errorMsg, errorLine, errorColumn)); +} + +QByteArray PythonQtWrapper_QDomDocument::toByteArray(QDomDocument* theWrappedObject, int arg__1) const +{ + return ( theWrappedObject->toByteArray(arg__1)); +} + +QString PythonQtWrapper_QDomDocument::toString(QDomDocument* theWrappedObject, int arg__1) const +{ + return ( theWrappedObject->toString(arg__1)); +} + +QString PythonQtWrapper_QDomDocument::py_toString(QDomDocument* obj) { return obj->toString(); } + + +QDomDocumentFragment* PythonQtWrapper_QDomDocumentFragment::new_QDomDocumentFragment() +{ +return new QDomDocumentFragment(); } + +QDomDocumentFragment* PythonQtWrapper_QDomDocumentFragment::new_QDomDocumentFragment(const QDomDocumentFragment& x) +{ +return new QDomDocumentFragment(x); } + + + +QDomDocumentType* PythonQtWrapper_QDomDocumentType::new_QDomDocumentType() +{ +return new QDomDocumentType(); } + +QDomDocumentType* PythonQtWrapper_QDomDocumentType::new_QDomDocumentType(const QDomDocumentType& x) +{ +return new QDomDocumentType(x); } + +QDomNamedNodeMap PythonQtWrapper_QDomDocumentType::entities(QDomDocumentType* theWrappedObject) const +{ + return ( theWrappedObject->entities()); +} + +QString PythonQtWrapper_QDomDocumentType::internalSubset(QDomDocumentType* theWrappedObject) const +{ + return ( theWrappedObject->internalSubset()); +} + +QString PythonQtWrapper_QDomDocumentType::name(QDomDocumentType* theWrappedObject) const +{ + return ( theWrappedObject->name()); +} + +QDomNamedNodeMap PythonQtWrapper_QDomDocumentType::notations(QDomDocumentType* theWrappedObject) const +{ + return ( theWrappedObject->notations()); +} + +QString PythonQtWrapper_QDomDocumentType::publicId(QDomDocumentType* theWrappedObject) const +{ + return ( theWrappedObject->publicId()); +} + +QString PythonQtWrapper_QDomDocumentType::systemId(QDomDocumentType* theWrappedObject) const +{ + return ( theWrappedObject->systemId()); +} + + + +QDomElement* PythonQtWrapper_QDomElement::new_QDomElement() +{ +return new QDomElement(); } + +QDomElement* PythonQtWrapper_QDomElement::new_QDomElement(const QDomElement& x) +{ +return new QDomElement(x); } + +QString PythonQtWrapper_QDomElement::attribute(QDomElement* theWrappedObject, const QString& name, const QString& defValue) const +{ + return ( theWrappedObject->attribute(name, defValue)); +} + +QString PythonQtWrapper_QDomElement::attributeNS(QDomElement* theWrappedObject, const QString nsURI, const QString& localName, const QString& defValue) const +{ + return ( theWrappedObject->attributeNS(nsURI, localName, defValue)); +} + +QDomAttr PythonQtWrapper_QDomElement::attributeNode(QDomElement* theWrappedObject, const QString& name) +{ + return ( theWrappedObject->attributeNode(name)); +} + +QDomAttr PythonQtWrapper_QDomElement::attributeNodeNS(QDomElement* theWrappedObject, const QString& nsURI, const QString& localName) +{ + return ( theWrappedObject->attributeNodeNS(nsURI, localName)); +} + +QDomNamedNodeMap PythonQtWrapper_QDomElement::attributes(QDomElement* theWrappedObject) const +{ + return ( theWrappedObject->attributes()); +} + +QDomNodeList PythonQtWrapper_QDomElement::elementsByTagName(QDomElement* theWrappedObject, const QString& tagname) const +{ + return ( theWrappedObject->elementsByTagName(tagname)); +} + +QDomNodeList PythonQtWrapper_QDomElement::elementsByTagNameNS(QDomElement* theWrappedObject, const QString& nsURI, const QString& localName) const +{ + return ( theWrappedObject->elementsByTagNameNS(nsURI, localName)); +} + +bool PythonQtWrapper_QDomElement::hasAttribute(QDomElement* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->hasAttribute(name)); +} + +bool PythonQtWrapper_QDomElement::hasAttributeNS(QDomElement* theWrappedObject, const QString& nsURI, const QString& localName) const +{ + return ( theWrappedObject->hasAttributeNS(nsURI, localName)); +} + +void PythonQtWrapper_QDomElement::removeAttribute(QDomElement* theWrappedObject, const QString& name) +{ + ( theWrappedObject->removeAttribute(name)); +} + +void PythonQtWrapper_QDomElement::removeAttributeNS(QDomElement* theWrappedObject, const QString& nsURI, const QString& localName) +{ + ( theWrappedObject->removeAttributeNS(nsURI, localName)); +} + +QDomAttr PythonQtWrapper_QDomElement::removeAttributeNode(QDomElement* theWrappedObject, const QDomAttr& oldAttr) +{ + return ( theWrappedObject->removeAttributeNode(oldAttr)); +} + +void PythonQtWrapper_QDomElement::setAttribute(QDomElement* theWrappedObject, const QString& name, const QString& value) +{ + ( theWrappedObject->setAttribute(name, value)); +} + +void PythonQtWrapper_QDomElement::setAttribute(QDomElement* theWrappedObject, const QString& name, double value) +{ + ( theWrappedObject->setAttribute(name, value)); +} + +void PythonQtWrapper_QDomElement::setAttribute(QDomElement* theWrappedObject, const QString& name, float value) +{ + ( theWrappedObject->setAttribute(name, value)); +} + +void PythonQtWrapper_QDomElement::setAttribute(QDomElement* theWrappedObject, const QString& name, int value) +{ + ( theWrappedObject->setAttribute(name, value)); +} + +void PythonQtWrapper_QDomElement::setAttribute(QDomElement* theWrappedObject, const QString& name, qlonglong value) +{ + ( theWrappedObject->setAttribute(name, value)); +} + +void PythonQtWrapper_QDomElement::setAttributeNS(QDomElement* theWrappedObject, const QString nsURI, const QString& qName, const QString& value) +{ + ( theWrappedObject->setAttributeNS(nsURI, qName, value)); +} + +void PythonQtWrapper_QDomElement::setAttributeNS(QDomElement* theWrappedObject, const QString nsURI, const QString& qName, double value) +{ + ( theWrappedObject->setAttributeNS(nsURI, qName, value)); +} + +void PythonQtWrapper_QDomElement::setAttributeNS(QDomElement* theWrappedObject, const QString nsURI, const QString& qName, int value) +{ + ( theWrappedObject->setAttributeNS(nsURI, qName, value)); +} + +void PythonQtWrapper_QDomElement::setAttributeNS(QDomElement* theWrappedObject, const QString nsURI, const QString& qName, qlonglong value) +{ + ( theWrappedObject->setAttributeNS(nsURI, qName, value)); +} + +QDomAttr PythonQtWrapper_QDomElement::setAttributeNode(QDomElement* theWrappedObject, const QDomAttr& newAttr) +{ + return ( theWrappedObject->setAttributeNode(newAttr)); +} + +QDomAttr PythonQtWrapper_QDomElement::setAttributeNodeNS(QDomElement* theWrappedObject, const QDomAttr& newAttr) +{ + return ( theWrappedObject->setAttributeNodeNS(newAttr)); +} + +void PythonQtWrapper_QDomElement::setTagName(QDomElement* theWrappedObject, const QString& name) +{ + ( theWrappedObject->setTagName(name)); +} + +QString PythonQtWrapper_QDomElement::tagName(QDomElement* theWrappedObject) const +{ + return ( theWrappedObject->tagName()); +} + +QString PythonQtWrapper_QDomElement::text(QDomElement* theWrappedObject) const +{ + return ( theWrappedObject->text()); +} + + + +QDomEntity* PythonQtWrapper_QDomEntity::new_QDomEntity() +{ +return new QDomEntity(); } + +QDomEntity* PythonQtWrapper_QDomEntity::new_QDomEntity(const QDomEntity& x) +{ +return new QDomEntity(x); } + +QString PythonQtWrapper_QDomEntity::notationName(QDomEntity* theWrappedObject) const +{ + return ( theWrappedObject->notationName()); +} + +QString PythonQtWrapper_QDomEntity::publicId(QDomEntity* theWrappedObject) const +{ + return ( theWrappedObject->publicId()); +} + +QString PythonQtWrapper_QDomEntity::systemId(QDomEntity* theWrappedObject) const +{ + return ( theWrappedObject->systemId()); +} + + + +QDomEntityReference* PythonQtWrapper_QDomEntityReference::new_QDomEntityReference() +{ +return new QDomEntityReference(); } + +QDomEntityReference* PythonQtWrapper_QDomEntityReference::new_QDomEntityReference(const QDomEntityReference& x) +{ +return new QDomEntityReference(x); } + + + +QDomImplementation* PythonQtWrapper_QDomImplementation::new_QDomImplementation() +{ +return new QDomImplementation(); } + +QDomImplementation* PythonQtWrapper_QDomImplementation::new_QDomImplementation(const QDomImplementation& arg__1) +{ +return new QDomImplementation(arg__1); } + +QDomDocument PythonQtWrapper_QDomImplementation::createDocument(QDomImplementation* theWrappedObject, const QString& nsURI, const QString& qName, const QDomDocumentType& doctype) +{ + return ( theWrappedObject->createDocument(nsURI, qName, doctype)); +} + +QDomDocumentType PythonQtWrapper_QDomImplementation::createDocumentType(QDomImplementation* theWrappedObject, const QString& qName, const QString& publicId, const QString& systemId) +{ + return ( theWrappedObject->createDocumentType(qName, publicId, systemId)); +} + +bool PythonQtWrapper_QDomImplementation::hasFeature(QDomImplementation* theWrappedObject, const QString& feature, const QString& version) const +{ + return ( theWrappedObject->hasFeature(feature, version)); +} + +QDomImplementation::InvalidDataPolicy PythonQtWrapper_QDomImplementation::static_QDomImplementation_invalidDataPolicy() +{ + return (QDomImplementation::invalidDataPolicy()); +} + +bool PythonQtWrapper_QDomImplementation::isNull(QDomImplementation* theWrappedObject) +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QDomImplementation::__ne__(QDomImplementation* theWrappedObject, const QDomImplementation& arg__1) const +{ + return ( (*theWrappedObject)!= arg__1); +} + +bool PythonQtWrapper_QDomImplementation::__eq__(QDomImplementation* theWrappedObject, const QDomImplementation& arg__1) const +{ + return ( (*theWrappedObject)== arg__1); +} + +void PythonQtWrapper_QDomImplementation::static_QDomImplementation_setInvalidDataPolicy(QDomImplementation::InvalidDataPolicy policy) +{ + (QDomImplementation::setInvalidDataPolicy(policy)); +} + + + +QDomNamedNodeMap* PythonQtWrapper_QDomNamedNodeMap::new_QDomNamedNodeMap() +{ +return new QDomNamedNodeMap(); } + +QDomNamedNodeMap* PythonQtWrapper_QDomNamedNodeMap::new_QDomNamedNodeMap(const QDomNamedNodeMap& arg__1) +{ +return new QDomNamedNodeMap(arg__1); } + +bool PythonQtWrapper_QDomNamedNodeMap::contains(QDomNamedNodeMap* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->contains(name)); +} + +int PythonQtWrapper_QDomNamedNodeMap::count(QDomNamedNodeMap* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +bool PythonQtWrapper_QDomNamedNodeMap::isEmpty(QDomNamedNodeMap* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +QDomNode PythonQtWrapper_QDomNamedNodeMap::item(QDomNamedNodeMap* theWrappedObject, int index) const +{ + return ( theWrappedObject->item(index)); +} + +int PythonQtWrapper_QDomNamedNodeMap::length(QDomNamedNodeMap* theWrappedObject) const +{ + return ( theWrappedObject->length()); +} + +QDomNode PythonQtWrapper_QDomNamedNodeMap::namedItem(QDomNamedNodeMap* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->namedItem(name)); +} + +QDomNode PythonQtWrapper_QDomNamedNodeMap::namedItemNS(QDomNamedNodeMap* theWrappedObject, const QString& nsURI, const QString& localName) const +{ + return ( theWrappedObject->namedItemNS(nsURI, localName)); +} + +bool PythonQtWrapper_QDomNamedNodeMap::__ne__(QDomNamedNodeMap* theWrappedObject, const QDomNamedNodeMap& arg__1) const +{ + return ( (*theWrappedObject)!= arg__1); +} + +bool PythonQtWrapper_QDomNamedNodeMap::__eq__(QDomNamedNodeMap* theWrappedObject, const QDomNamedNodeMap& arg__1) const +{ + return ( (*theWrappedObject)== arg__1); +} + +QDomNode PythonQtWrapper_QDomNamedNodeMap::removeNamedItem(QDomNamedNodeMap* theWrappedObject, const QString& name) +{ + return ( theWrappedObject->removeNamedItem(name)); +} + +QDomNode PythonQtWrapper_QDomNamedNodeMap::removeNamedItemNS(QDomNamedNodeMap* theWrappedObject, const QString& nsURI, const QString& localName) +{ + return ( theWrappedObject->removeNamedItemNS(nsURI, localName)); +} + +QDomNode PythonQtWrapper_QDomNamedNodeMap::setNamedItem(QDomNamedNodeMap* theWrappedObject, const QDomNode& newNode) +{ + return ( theWrappedObject->setNamedItem(newNode)); +} + +QDomNode PythonQtWrapper_QDomNamedNodeMap::setNamedItemNS(QDomNamedNodeMap* theWrappedObject, const QDomNode& newNode) +{ + return ( theWrappedObject->setNamedItemNS(newNode)); +} + +int PythonQtWrapper_QDomNamedNodeMap::size(QDomNamedNodeMap* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + + + +QDomNode* PythonQtWrapper_QDomNode::new_QDomNode() +{ +return new QDomNode(); } + +QDomNode* PythonQtWrapper_QDomNode::new_QDomNode(const QDomNode& arg__1) +{ +return new QDomNode(arg__1); } + +QDomNode PythonQtWrapper_QDomNode::appendChild(QDomNode* theWrappedObject, const QDomNode& newChild) +{ + return ( theWrappedObject->appendChild(newChild)); +} + +QDomNodeList PythonQtWrapper_QDomNode::childNodes(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->childNodes()); +} + +void PythonQtWrapper_QDomNode::clear(QDomNode* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +QDomNode PythonQtWrapper_QDomNode::cloneNode(QDomNode* theWrappedObject, bool deep) const +{ + return ( theWrappedObject->cloneNode(deep)); +} + +int PythonQtWrapper_QDomNode::columnNumber(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->columnNumber()); +} + +QDomNode PythonQtWrapper_QDomNode::firstChild(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->firstChild()); +} + +QDomElement PythonQtWrapper_QDomNode::firstChildElement(QDomNode* theWrappedObject, const QString& tagName) const +{ + return ( theWrappedObject->firstChildElement(tagName)); +} + +bool PythonQtWrapper_QDomNode::hasAttributes(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->hasAttributes()); +} + +bool PythonQtWrapper_QDomNode::hasChildNodes(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->hasChildNodes()); +} + +QDomNode PythonQtWrapper_QDomNode::insertAfter(QDomNode* theWrappedObject, const QDomNode& newChild, const QDomNode& refChild) +{ + return ( theWrappedObject->insertAfter(newChild, refChild)); +} + +QDomNode PythonQtWrapper_QDomNode::insertBefore(QDomNode* theWrappedObject, const QDomNode& newChild, const QDomNode& refChild) +{ + return ( theWrappedObject->insertBefore(newChild, refChild)); +} + +bool PythonQtWrapper_QDomNode::isAttr(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->isAttr()); +} + +bool PythonQtWrapper_QDomNode::isCDATASection(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->isCDATASection()); +} + +bool PythonQtWrapper_QDomNode::isCharacterData(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->isCharacterData()); +} + +bool PythonQtWrapper_QDomNode::isComment(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->isComment()); +} + +bool PythonQtWrapper_QDomNode::isDocument(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->isDocument()); +} + +bool PythonQtWrapper_QDomNode::isDocumentFragment(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->isDocumentFragment()); +} + +bool PythonQtWrapper_QDomNode::isDocumentType(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->isDocumentType()); +} + +bool PythonQtWrapper_QDomNode::isElement(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->isElement()); +} + +bool PythonQtWrapper_QDomNode::isEntity(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->isEntity()); +} + +bool PythonQtWrapper_QDomNode::isEntityReference(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->isEntityReference()); +} + +bool PythonQtWrapper_QDomNode::isNotation(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->isNotation()); +} + +bool PythonQtWrapper_QDomNode::isNull(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +bool PythonQtWrapper_QDomNode::isProcessingInstruction(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->isProcessingInstruction()); +} + +bool PythonQtWrapper_QDomNode::isSupported(QDomNode* theWrappedObject, const QString& feature, const QString& version) const +{ + return ( theWrappedObject->isSupported(feature, version)); +} + +bool PythonQtWrapper_QDomNode::isText(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->isText()); +} + +QDomNode PythonQtWrapper_QDomNode::lastChild(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->lastChild()); +} + +QDomElement PythonQtWrapper_QDomNode::lastChildElement(QDomNode* theWrappedObject, const QString& tagName) const +{ + return ( theWrappedObject->lastChildElement(tagName)); +} + +int PythonQtWrapper_QDomNode::lineNumber(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->lineNumber()); +} + +QString PythonQtWrapper_QDomNode::localName(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->localName()); +} + +QDomNode PythonQtWrapper_QDomNode::namedItem(QDomNode* theWrappedObject, const QString& name) const +{ + return ( theWrappedObject->namedItem(name)); +} + +QString PythonQtWrapper_QDomNode::namespaceURI(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->namespaceURI()); +} + +QDomNode PythonQtWrapper_QDomNode::nextSibling(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->nextSibling()); +} + +QDomElement PythonQtWrapper_QDomNode::nextSiblingElement(QDomNode* theWrappedObject, const QString& taName) const +{ + return ( theWrappedObject->nextSiblingElement(taName)); +} + +QString PythonQtWrapper_QDomNode::nodeName(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->nodeName()); +} + +QDomNode::NodeType PythonQtWrapper_QDomNode::nodeType(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->nodeType()); +} + +QString PythonQtWrapper_QDomNode::nodeValue(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->nodeValue()); +} + +void PythonQtWrapper_QDomNode::normalize(QDomNode* theWrappedObject) +{ + ( theWrappedObject->normalize()); +} + +bool PythonQtWrapper_QDomNode::__ne__(QDomNode* theWrappedObject, const QDomNode& arg__1) const +{ + return ( (*theWrappedObject)!= arg__1); +} + +void PythonQtWrapper_QDomNode::writeTo(QDomNode* theWrappedObject, QTextStream& arg__1) +{ + arg__1 << (*theWrappedObject); +} + +bool PythonQtWrapper_QDomNode::__eq__(QDomNode* theWrappedObject, const QDomNode& arg__1) const +{ + return ( (*theWrappedObject)== arg__1); +} + +QDomDocument PythonQtWrapper_QDomNode::ownerDocument(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->ownerDocument()); +} + +QDomNode PythonQtWrapper_QDomNode::parentNode(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->parentNode()); +} + +QString PythonQtWrapper_QDomNode::prefix(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->prefix()); +} + +QDomNode PythonQtWrapper_QDomNode::previousSibling(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->previousSibling()); +} + +QDomElement PythonQtWrapper_QDomNode::previousSiblingElement(QDomNode* theWrappedObject, const QString& tagName) const +{ + return ( theWrappedObject->previousSiblingElement(tagName)); +} + +QDomNode PythonQtWrapper_QDomNode::removeChild(QDomNode* theWrappedObject, const QDomNode& oldChild) +{ + return ( theWrappedObject->removeChild(oldChild)); +} + +QDomNode PythonQtWrapper_QDomNode::replaceChild(QDomNode* theWrappedObject, const QDomNode& newChild, const QDomNode& oldChild) +{ + return ( theWrappedObject->replaceChild(newChild, oldChild)); +} + +void PythonQtWrapper_QDomNode::save(QDomNode* theWrappedObject, QTextStream& arg__1, int arg__2, QDomNode::EncodingPolicy arg__3) const +{ + ( theWrappedObject->save(arg__1, arg__2, arg__3)); +} + +void PythonQtWrapper_QDomNode::setNodeValue(QDomNode* theWrappedObject, const QString& arg__1) +{ + ( theWrappedObject->setNodeValue(arg__1)); +} + +void PythonQtWrapper_QDomNode::setPrefix(QDomNode* theWrappedObject, const QString& pre) +{ + ( theWrappedObject->setPrefix(pre)); +} + +QDomAttr PythonQtWrapper_QDomNode::toAttr(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->toAttr()); +} + +QDomCDATASection PythonQtWrapper_QDomNode::toCDATASection(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->toCDATASection()); +} + +QDomCharacterData PythonQtWrapper_QDomNode::toCharacterData(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->toCharacterData()); +} + +QDomComment PythonQtWrapper_QDomNode::toComment(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->toComment()); +} + +QDomDocument PythonQtWrapper_QDomNode::toDocument(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->toDocument()); +} + +QDomDocumentFragment PythonQtWrapper_QDomNode::toDocumentFragment(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->toDocumentFragment()); +} + +QDomDocumentType PythonQtWrapper_QDomNode::toDocumentType(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->toDocumentType()); +} + +QDomElement PythonQtWrapper_QDomNode::toElement(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->toElement()); +} + +QDomEntity PythonQtWrapper_QDomNode::toEntity(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->toEntity()); +} + +QDomEntityReference PythonQtWrapper_QDomNode::toEntityReference(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->toEntityReference()); +} + +QDomNotation PythonQtWrapper_QDomNode::toNotation(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->toNotation()); +} + +QDomProcessingInstruction PythonQtWrapper_QDomNode::toProcessingInstruction(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->toProcessingInstruction()); +} + +QDomText PythonQtWrapper_QDomNode::toText(QDomNode* theWrappedObject) const +{ + return ( theWrappedObject->toText()); +} + + + +QDomNodeList* PythonQtWrapper_QDomNodeList::new_QDomNodeList() +{ +return new QDomNodeList(); } + +QDomNodeList* PythonQtWrapper_QDomNodeList::new_QDomNodeList(const QDomNodeList& arg__1) +{ +return new QDomNodeList(arg__1); } + +QDomNode PythonQtWrapper_QDomNodeList::at(QDomNodeList* theWrappedObject, int index) const +{ + return ( theWrappedObject->at(index)); +} + +int PythonQtWrapper_QDomNodeList::count(QDomNodeList* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +bool PythonQtWrapper_QDomNodeList::isEmpty(QDomNodeList* theWrappedObject) const +{ + return ( theWrappedObject->isEmpty()); +} + +QDomNode PythonQtWrapper_QDomNodeList::item(QDomNodeList* theWrappedObject, int index) const +{ + return ( theWrappedObject->item(index)); +} + +int PythonQtWrapper_QDomNodeList::length(QDomNodeList* theWrappedObject) const +{ + return ( theWrappedObject->length()); +} + +bool PythonQtWrapper_QDomNodeList::__ne__(QDomNodeList* theWrappedObject, const QDomNodeList& arg__1) const +{ + return ( (*theWrappedObject)!= arg__1); +} + +bool PythonQtWrapper_QDomNodeList::__eq__(QDomNodeList* theWrappedObject, const QDomNodeList& arg__1) const +{ + return ( (*theWrappedObject)== arg__1); +} + +int PythonQtWrapper_QDomNodeList::size(QDomNodeList* theWrappedObject) const +{ + return ( theWrappedObject->size()); +} + + + +QDomNotation* PythonQtWrapper_QDomNotation::new_QDomNotation() +{ +return new QDomNotation(); } + +QDomNotation* PythonQtWrapper_QDomNotation::new_QDomNotation(const QDomNotation& x) +{ +return new QDomNotation(x); } + +QString PythonQtWrapper_QDomNotation::publicId(QDomNotation* theWrappedObject) const +{ + return ( theWrappedObject->publicId()); +} + +QString PythonQtWrapper_QDomNotation::systemId(QDomNotation* theWrappedObject) const +{ + return ( theWrappedObject->systemId()); +} + + + +QDomProcessingInstruction* PythonQtWrapper_QDomProcessingInstruction::new_QDomProcessingInstruction() +{ +return new QDomProcessingInstruction(); } + +QDomProcessingInstruction* PythonQtWrapper_QDomProcessingInstruction::new_QDomProcessingInstruction(const QDomProcessingInstruction& x) +{ +return new QDomProcessingInstruction(x); } + +QString PythonQtWrapper_QDomProcessingInstruction::data(QDomProcessingInstruction* theWrappedObject) const +{ + return ( theWrappedObject->data()); +} + +void PythonQtWrapper_QDomProcessingInstruction::setData(QDomProcessingInstruction* theWrappedObject, const QString& d) +{ + ( theWrappedObject->setData(d)); +} + +QString PythonQtWrapper_QDomProcessingInstruction::target(QDomProcessingInstruction* theWrappedObject) const +{ + return ( theWrappedObject->target()); +} + + + +QDomText* PythonQtWrapper_QDomText::new_QDomText() +{ +return new QDomText(); } + +QDomText* PythonQtWrapper_QDomText::new_QDomText(const QDomText& x) +{ +return new QDomText(x); } + +QDomText PythonQtWrapper_QDomText::splitText(QDomText* theWrappedObject, int offset) +{ + return ( theWrappedObject->splitText(offset)); +} + + + +PythonQtShell_QXmlAttributes::~PythonQtShell_QXmlAttributes() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QXmlAttributes* PythonQtWrapper_QXmlAttributes::new_QXmlAttributes() +{ +return new PythonQtShell_QXmlAttributes(); } + +void PythonQtWrapper_QXmlAttributes::append(QXmlAttributes* theWrappedObject, const QString& qName, const QString& uri, const QString& localPart, const QString& value) +{ + ( theWrappedObject->append(qName, uri, localPart, value)); +} + +void PythonQtWrapper_QXmlAttributes::clear(QXmlAttributes* theWrappedObject) +{ + ( theWrappedObject->clear()); +} + +int PythonQtWrapper_QXmlAttributes::count(QXmlAttributes* theWrappedObject) const +{ + return ( theWrappedObject->count()); +} + +int PythonQtWrapper_QXmlAttributes::index(QXmlAttributes* theWrappedObject, const QString& qName) const +{ + return ( theWrappedObject->index(qName)); +} + +int PythonQtWrapper_QXmlAttributes::index(QXmlAttributes* theWrappedObject, const QString& uri, const QString& localPart) const +{ + return ( theWrappedObject->index(uri, localPart)); +} + +int PythonQtWrapper_QXmlAttributes::length(QXmlAttributes* theWrappedObject) const +{ + return ( theWrappedObject->length()); +} + +QString PythonQtWrapper_QXmlAttributes::localName(QXmlAttributes* theWrappedObject, int index) const +{ + return ( theWrappedObject->localName(index)); +} + +QString PythonQtWrapper_QXmlAttributes::qName(QXmlAttributes* theWrappedObject, int index) const +{ + return ( theWrappedObject->qName(index)); +} + +QString PythonQtWrapper_QXmlAttributes::type(QXmlAttributes* theWrappedObject, const QString& qName) const +{ + return ( theWrappedObject->type(qName)); +} + +QString PythonQtWrapper_QXmlAttributes::type(QXmlAttributes* theWrappedObject, const QString& uri, const QString& localName) const +{ + return ( theWrappedObject->type(uri, localName)); +} + +QString PythonQtWrapper_QXmlAttributes::type(QXmlAttributes* theWrappedObject, int index) const +{ + return ( theWrappedObject->type(index)); +} + +QString PythonQtWrapper_QXmlAttributes::uri(QXmlAttributes* theWrappedObject, int index) const +{ + return ( theWrappedObject->uri(index)); +} + +QString PythonQtWrapper_QXmlAttributes::value(QXmlAttributes* theWrappedObject, const QString& qName) const +{ + return ( theWrappedObject->value(qName)); +} + +QString PythonQtWrapper_QXmlAttributes::value(QXmlAttributes* theWrappedObject, const QString& uri, const QString& localName) const +{ + return ( theWrappedObject->value(uri, localName)); +} + +QString PythonQtWrapper_QXmlAttributes::value(QXmlAttributes* theWrappedObject, int index) const +{ + return ( theWrappedObject->value(index)); +} + + + +PythonQtShell_QXmlContentHandler::~PythonQtShell_QXmlContentHandler() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QXmlContentHandler::characters(const QString& ch) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "characters"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&ch}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("characters", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlContentHandler::endDocument() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endDocument"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("endDocument", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlContentHandler::endElement(const QString& namespaceURI, const QString& localName, const QString& qName) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endElement"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&namespaceURI, (void*)&localName, (void*)&qName}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("endElement", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlContentHandler::endPrefixMapping(const QString& prefix) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endPrefixMapping"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&prefix}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("endPrefixMapping", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +QString PythonQtShell_QXmlContentHandler::errorString() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "errorString"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QString returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("errorString", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QString(); +} +bool PythonQtShell_QXmlContentHandler::ignorableWhitespace(const QString& ch) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ignorableWhitespace"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&ch}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("ignorableWhitespace", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlContentHandler::processingInstruction(const QString& target, const QString& data) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "processingInstruction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&target, (void*)&data}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("processingInstruction", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +void PythonQtShell_QXmlContentHandler::setDocumentLocator(QXmlLocator* locator) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setDocumentLocator"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QXmlLocator*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&locator}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +bool PythonQtShell_QXmlContentHandler::skippedEntity(const QString& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "skippedEntity"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("skippedEntity", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlContentHandler::startDocument() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDocument"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("startDocument", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlContentHandler::startElement(const QString& namespaceURI, const QString& localName, const QString& qName, const QXmlAttributes& atts) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startElement"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QString&" , "const QXmlAttributes&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)&namespaceURI, (void*)&localName, (void*)&qName, (void*)&atts}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("startElement", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlContentHandler::startPrefixMapping(const QString& prefix, const QString& uri) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startPrefixMapping"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&prefix, (void*)&uri}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("startPrefixMapping", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +QXmlContentHandler* PythonQtWrapper_QXmlContentHandler::new_QXmlContentHandler() +{ +return new PythonQtShell_QXmlContentHandler(); } + + + +PythonQtShell_QXmlDTDHandler::~PythonQtShell_QXmlDTDHandler() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QString PythonQtShell_QXmlDTDHandler::errorString() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "errorString"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QString returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("errorString", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QString(); +} +bool PythonQtShell_QXmlDTDHandler::notationDecl(const QString& name, const QString& publicId, const QString& systemId) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "notationDecl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&name, (void*)&publicId, (void*)&systemId}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("notationDecl", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlDTDHandler::unparsedEntityDecl(const QString& name, const QString& publicId, const QString& systemId, const QString& notationName) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unparsedEntityDecl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)&name, (void*)&publicId, (void*)&systemId, (void*)¬ationName}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("unparsedEntityDecl", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +QXmlDTDHandler* PythonQtWrapper_QXmlDTDHandler::new_QXmlDTDHandler() +{ +return new PythonQtShell_QXmlDTDHandler(); } + + + +PythonQtShell_QXmlDeclHandler::~PythonQtShell_QXmlDeclHandler() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QXmlDeclHandler::attributeDecl(const QString& eName, const QString& aName, const QString& type, const QString& valueDefault, const QString& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "attributeDecl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QString&" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&eName, (void*)&aName, (void*)&type, (void*)&valueDefault, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("attributeDecl", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +QString PythonQtShell_QXmlDeclHandler::errorString() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "errorString"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QString returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("errorString", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QString(); +} +bool PythonQtShell_QXmlDeclHandler::externalEntityDecl(const QString& name, const QString& publicId, const QString& systemId) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "externalEntityDecl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&name, (void*)&publicId, (void*)&systemId}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("externalEntityDecl", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlDeclHandler::internalEntityDecl(const QString& name, const QString& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "internalEntityDecl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&name, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("internalEntityDecl", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +QXmlDeclHandler* PythonQtWrapper_QXmlDeclHandler::new_QXmlDeclHandler() +{ +return new PythonQtShell_QXmlDeclHandler(); } + + + +PythonQtShell_QXmlDefaultHandler::~PythonQtShell_QXmlDefaultHandler() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QXmlDefaultHandler::attributeDecl(const QString& eName, const QString& aName, const QString& type, const QString& valueDefault, const QString& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "attributeDecl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QString&" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); + bool returnValue; + void* args[6] = {NULL, (void*)&eName, (void*)&aName, (void*)&type, (void*)&valueDefault, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("attributeDecl", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::attributeDecl(eName, aName, type, valueDefault, value); +} +bool PythonQtShell_QXmlDefaultHandler::characters(const QString& ch) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "characters"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&ch}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("characters", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::characters(ch); +} +bool PythonQtShell_QXmlDefaultHandler::comment(const QString& ch) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "comment"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&ch}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("comment", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::comment(ch); +} +bool PythonQtShell_QXmlDefaultHandler::endCDATA() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endCDATA"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("endCDATA", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::endCDATA(); +} +bool PythonQtShell_QXmlDefaultHandler::endDTD() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endDTD"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("endDTD", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::endDTD(); +} +bool PythonQtShell_QXmlDefaultHandler::endDocument() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endDocument"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("endDocument", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::endDocument(); +} +bool PythonQtShell_QXmlDefaultHandler::endElement(const QString& namespaceURI, const QString& localName, const QString& qName) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endElement"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&namespaceURI, (void*)&localName, (void*)&qName}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("endElement", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::endElement(namespaceURI, localName, qName); +} +bool PythonQtShell_QXmlDefaultHandler::endEntity(const QString& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endEntity"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("endEntity", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::endEntity(name); +} +bool PythonQtShell_QXmlDefaultHandler::endPrefixMapping(const QString& prefix) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endPrefixMapping"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&prefix}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("endPrefixMapping", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::endPrefixMapping(prefix); +} +bool PythonQtShell_QXmlDefaultHandler::error(const QXmlParseException& exception) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "error"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QXmlParseException&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&exception}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("error", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::error(exception); +} +QString PythonQtShell_QXmlDefaultHandler::errorString() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "errorString"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QString returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("errorString", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::errorString(); +} +bool PythonQtShell_QXmlDefaultHandler::externalEntityDecl(const QString& name, const QString& publicId, const QString& systemId) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "externalEntityDecl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&name, (void*)&publicId, (void*)&systemId}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("externalEntityDecl", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::externalEntityDecl(name, publicId, systemId); +} +bool PythonQtShell_QXmlDefaultHandler::fatalError(const QXmlParseException& exception) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fatalError"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QXmlParseException&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&exception}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("fatalError", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::fatalError(exception); +} +bool PythonQtShell_QXmlDefaultHandler::ignorableWhitespace(const QString& ch) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ignorableWhitespace"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&ch}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("ignorableWhitespace", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::ignorableWhitespace(ch); +} +bool PythonQtShell_QXmlDefaultHandler::internalEntityDecl(const QString& name, const QString& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "internalEntityDecl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&name, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("internalEntityDecl", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::internalEntityDecl(name, value); +} +bool PythonQtShell_QXmlDefaultHandler::notationDecl(const QString& name, const QString& publicId, const QString& systemId) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "notationDecl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&name, (void*)&publicId, (void*)&systemId}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("notationDecl", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::notationDecl(name, publicId, systemId); +} +bool PythonQtShell_QXmlDefaultHandler::processingInstruction(const QString& target, const QString& data) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "processingInstruction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&target, (void*)&data}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("processingInstruction", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::processingInstruction(target, data); +} +bool PythonQtShell_QXmlDefaultHandler::resolveEntity(const QString& publicId, const QString& systemId, QXmlInputSource*& ret) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resolveEntity"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "QXmlInputSource*&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&publicId, (void*)&systemId, (void*)&ret}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("resolveEntity", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::resolveEntity(publicId, systemId, ret); +} +void PythonQtShell_QXmlDefaultHandler::setDocumentLocator(QXmlLocator* locator) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setDocumentLocator"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QXmlLocator*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&locator}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlDefaultHandler::setDocumentLocator(locator); +} +bool PythonQtShell_QXmlDefaultHandler::skippedEntity(const QString& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "skippedEntity"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("skippedEntity", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::skippedEntity(name); +} +bool PythonQtShell_QXmlDefaultHandler::startCDATA() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startCDATA"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("startCDATA", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::startCDATA(); +} +bool PythonQtShell_QXmlDefaultHandler::startDTD(const QString& name, const QString& publicId, const QString& systemId) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDTD"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&name, (void*)&publicId, (void*)&systemId}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("startDTD", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::startDTD(name, publicId, systemId); +} +bool PythonQtShell_QXmlDefaultHandler::startDocument() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDocument"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("startDocument", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::startDocument(); +} +bool PythonQtShell_QXmlDefaultHandler::startElement(const QString& namespaceURI, const QString& localName, const QString& qName, const QXmlAttributes& atts) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startElement"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QString&" , "const QXmlAttributes&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)&namespaceURI, (void*)&localName, (void*)&qName, (void*)&atts}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("startElement", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::startElement(namespaceURI, localName, qName, atts); +} +bool PythonQtShell_QXmlDefaultHandler::startEntity(const QString& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startEntity"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("startEntity", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::startEntity(name); +} +bool PythonQtShell_QXmlDefaultHandler::startPrefixMapping(const QString& prefix, const QString& uri) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startPrefixMapping"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&prefix, (void*)&uri}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("startPrefixMapping", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::startPrefixMapping(prefix, uri); +} +bool PythonQtShell_QXmlDefaultHandler::unparsedEntityDecl(const QString& name, const QString& publicId, const QString& systemId, const QString& notationName) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unparsedEntityDecl"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + bool returnValue; + void* args[5] = {NULL, (void*)&name, (void*)&publicId, (void*)&systemId, (void*)¬ationName}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("unparsedEntityDecl", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::unparsedEntityDecl(name, publicId, systemId, notationName); +} +bool PythonQtShell_QXmlDefaultHandler::warning(const QXmlParseException& exception) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "warning"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QXmlParseException&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&exception}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("warning", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlDefaultHandler::warning(exception); +} +QXmlDefaultHandler* PythonQtWrapper_QXmlDefaultHandler::new_QXmlDefaultHandler() +{ +return new PythonQtShell_QXmlDefaultHandler(); } + +bool PythonQtWrapper_QXmlDefaultHandler::attributeDecl(QXmlDefaultHandler* theWrappedObject, const QString& eName, const QString& aName, const QString& type, const QString& valueDefault, const QString& value) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_attributeDecl(eName, aName, type, valueDefault, value)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::characters(QXmlDefaultHandler* theWrappedObject, const QString& ch) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_characters(ch)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::comment(QXmlDefaultHandler* theWrappedObject, const QString& ch) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_comment(ch)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::endCDATA(QXmlDefaultHandler* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_endCDATA()); +} + +bool PythonQtWrapper_QXmlDefaultHandler::endDTD(QXmlDefaultHandler* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_endDTD()); +} + +bool PythonQtWrapper_QXmlDefaultHandler::endDocument(QXmlDefaultHandler* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_endDocument()); +} + +bool PythonQtWrapper_QXmlDefaultHandler::endElement(QXmlDefaultHandler* theWrappedObject, const QString& namespaceURI, const QString& localName, const QString& qName) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_endElement(namespaceURI, localName, qName)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::endEntity(QXmlDefaultHandler* theWrappedObject, const QString& name) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_endEntity(name)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::endPrefixMapping(QXmlDefaultHandler* theWrappedObject, const QString& prefix) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_endPrefixMapping(prefix)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::error(QXmlDefaultHandler* theWrappedObject, const QXmlParseException& exception) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_error(exception)); +} + +QString PythonQtWrapper_QXmlDefaultHandler::errorString(QXmlDefaultHandler* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_errorString()); +} + +bool PythonQtWrapper_QXmlDefaultHandler::externalEntityDecl(QXmlDefaultHandler* theWrappedObject, const QString& name, const QString& publicId, const QString& systemId) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_externalEntityDecl(name, publicId, systemId)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::fatalError(QXmlDefaultHandler* theWrappedObject, const QXmlParseException& exception) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_fatalError(exception)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::ignorableWhitespace(QXmlDefaultHandler* theWrappedObject, const QString& ch) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_ignorableWhitespace(ch)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::internalEntityDecl(QXmlDefaultHandler* theWrappedObject, const QString& name, const QString& value) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_internalEntityDecl(name, value)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::notationDecl(QXmlDefaultHandler* theWrappedObject, const QString& name, const QString& publicId, const QString& systemId) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_notationDecl(name, publicId, systemId)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::processingInstruction(QXmlDefaultHandler* theWrappedObject, const QString& target, const QString& data) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_processingInstruction(target, data)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::resolveEntity(QXmlDefaultHandler* theWrappedObject, const QString& publicId, const QString& systemId, QXmlInputSource*& ret) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_resolveEntity(publicId, systemId, ret)); +} + +void PythonQtWrapper_QXmlDefaultHandler::setDocumentLocator(QXmlDefaultHandler* theWrappedObject, QXmlLocator* locator) +{ + ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_setDocumentLocator(locator)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::skippedEntity(QXmlDefaultHandler* theWrappedObject, const QString& name) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_skippedEntity(name)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::startCDATA(QXmlDefaultHandler* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_startCDATA()); +} + +bool PythonQtWrapper_QXmlDefaultHandler::startDTD(QXmlDefaultHandler* theWrappedObject, const QString& name, const QString& publicId, const QString& systemId) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_startDTD(name, publicId, systemId)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::startDocument(QXmlDefaultHandler* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_startDocument()); +} + +bool PythonQtWrapper_QXmlDefaultHandler::startElement(QXmlDefaultHandler* theWrappedObject, const QString& namespaceURI, const QString& localName, const QString& qName, const QXmlAttributes& atts) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_startElement(namespaceURI, localName, qName, atts)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::startEntity(QXmlDefaultHandler* theWrappedObject, const QString& name) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_startEntity(name)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::startPrefixMapping(QXmlDefaultHandler* theWrappedObject, const QString& prefix, const QString& uri) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_startPrefixMapping(prefix, uri)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::unparsedEntityDecl(QXmlDefaultHandler* theWrappedObject, const QString& name, const QString& publicId, const QString& systemId, const QString& notationName) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_unparsedEntityDecl(name, publicId, systemId, notationName)); +} + +bool PythonQtWrapper_QXmlDefaultHandler::warning(QXmlDefaultHandler* theWrappedObject, const QXmlParseException& exception) +{ + return ( ((PythonQtPublicPromoter_QXmlDefaultHandler*)theWrappedObject)->promoted_warning(exception)); +} + + + +PythonQtShell_QXmlEntityResolver::~PythonQtShell_QXmlEntityResolver() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QString PythonQtShell_QXmlEntityResolver::errorString() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "errorString"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QString returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("errorString", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QString(); +} +bool PythonQtShell_QXmlEntityResolver::resolveEntity(const QString& publicId, const QString& systemId, QXmlInputSource*& ret) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resolveEntity"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "QXmlInputSource*&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&publicId, (void*)&systemId, (void*)&ret}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("resolveEntity", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +QXmlEntityResolver* PythonQtWrapper_QXmlEntityResolver::new_QXmlEntityResolver() +{ +return new PythonQtShell_QXmlEntityResolver(); } + + + +PythonQtShell_QXmlErrorHandler::~PythonQtShell_QXmlErrorHandler() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QXmlErrorHandler::error(const QXmlParseException& exception) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "error"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QXmlParseException&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&exception}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("error", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +QString PythonQtShell_QXmlErrorHandler::errorString() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "errorString"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QString returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("errorString", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QString(); +} +bool PythonQtShell_QXmlErrorHandler::fatalError(const QXmlParseException& exception) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fatalError"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QXmlParseException&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&exception}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("fatalError", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlErrorHandler::warning(const QXmlParseException& exception) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "warning"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QXmlParseException&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&exception}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("warning", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +QXmlErrorHandler* PythonQtWrapper_QXmlErrorHandler::new_QXmlErrorHandler() +{ +return new PythonQtShell_QXmlErrorHandler(); } + + + +PythonQtShell_QXmlInputSource::~PythonQtShell_QXmlInputSource() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QString PythonQtShell_QXmlInputSource::data() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QString returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlInputSource::data(); +} +void PythonQtShell_QXmlInputSource::fetchData() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlInputSource::fetchData(); +} +QString PythonQtShell_QXmlInputSource::fromRawData(const QByteArray& data, bool beginning) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fromRawData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "const QByteArray&" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QString returnValue; + void* args[3] = {NULL, (void*)&data, (void*)&beginning}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("fromRawData", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlInputSource::fromRawData(data, beginning); +} +QChar PythonQtShell_QXmlInputSource::next() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "next"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QChar"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QChar returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("next", methodInfo, result); + } else { + returnValue = *((QChar*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlInputSource::next(); +} +void PythonQtShell_QXmlInputSource::reset() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlInputSource::reset(); +} +void PythonQtShell_QXmlInputSource::setData(const QByteArray& dat) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QByteArray&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&dat}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlInputSource::setData(dat); +} +void PythonQtShell_QXmlInputSource::setData(const QString& dat) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&dat}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlInputSource::setData(dat); +} +QXmlInputSource* PythonQtWrapper_QXmlInputSource::new_QXmlInputSource() +{ +return new PythonQtShell_QXmlInputSource(); } + +QXmlInputSource* PythonQtWrapper_QXmlInputSource::new_QXmlInputSource(QIODevice* dev) +{ +return new PythonQtShell_QXmlInputSource(dev); } + +QString PythonQtWrapper_QXmlInputSource::data(QXmlInputSource* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QXmlInputSource*)theWrappedObject)->promoted_data()); +} + +void PythonQtWrapper_QXmlInputSource::fetchData(QXmlInputSource* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QXmlInputSource*)theWrappedObject)->promoted_fetchData()); +} + +QString PythonQtWrapper_QXmlInputSource::fromRawData(QXmlInputSource* theWrappedObject, const QByteArray& data, bool beginning) +{ + return ( ((PythonQtPublicPromoter_QXmlInputSource*)theWrappedObject)->promoted_fromRawData(data, beginning)); +} + +QChar PythonQtWrapper_QXmlInputSource::next(QXmlInputSource* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QXmlInputSource*)theWrappedObject)->promoted_next()); +} + +void PythonQtWrapper_QXmlInputSource::reset(QXmlInputSource* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QXmlInputSource*)theWrappedObject)->promoted_reset()); +} + +void PythonQtWrapper_QXmlInputSource::setData(QXmlInputSource* theWrappedObject, const QByteArray& dat) +{ + ( ((PythonQtPublicPromoter_QXmlInputSource*)theWrappedObject)->promoted_setData(dat)); +} + +void PythonQtWrapper_QXmlInputSource::setData(QXmlInputSource* theWrappedObject, const QString& dat) +{ + ( ((PythonQtPublicPromoter_QXmlInputSource*)theWrappedObject)->promoted_setData(dat)); +} + + + +PythonQtShell_QXmlLexicalHandler::~PythonQtShell_QXmlLexicalHandler() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +bool PythonQtShell_QXmlLexicalHandler::comment(const QString& ch) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "comment"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&ch}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("comment", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlLexicalHandler::endCDATA() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endCDATA"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("endCDATA", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlLexicalHandler::endDTD() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endDTD"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("endDTD", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlLexicalHandler::endEntity(const QString& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endEntity"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("endEntity", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +QString PythonQtShell_QXmlLexicalHandler::errorString() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "errorString"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QString returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("errorString", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QString(); +} +bool PythonQtShell_QXmlLexicalHandler::startCDATA() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startCDATA"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("startCDATA", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlLexicalHandler::startDTD(const QString& name, const QString& publicId, const QString& systemId) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDTD"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); + bool returnValue; + void* args[4] = {NULL, (void*)&name, (void*)&publicId, (void*)&systemId}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("startDTD", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlLexicalHandler::startEntity(const QString& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startEntity"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("startEntity", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +QXmlLexicalHandler* PythonQtWrapper_QXmlLexicalHandler::new_QXmlLexicalHandler() +{ +return new PythonQtShell_QXmlLexicalHandler(); } + + + +PythonQtShell_QXmlLocator::~PythonQtShell_QXmlLocator() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +int PythonQtShell_QXmlLocator::columnNumber() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "columnNumber"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("columnNumber", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +int PythonQtShell_QXmlLocator::lineNumber() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "lineNumber"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"int"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + int returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("lineNumber", methodInfo, result); + } else { + returnValue = *((int*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return int(); +} +QXmlLocator* PythonQtWrapper_QXmlLocator::new_QXmlLocator() +{ +return new PythonQtShell_QXmlLocator(); } + + + +QXmlParseException* PythonQtWrapper_QXmlParseException::new_QXmlParseException(const QString& name, int c, int l, const QString& p, const QString& s) +{ +return new QXmlParseException(name, c, l, p, s); } + +QXmlParseException* PythonQtWrapper_QXmlParseException::new_QXmlParseException(const QXmlParseException& other) +{ +return new QXmlParseException(other); } + +int PythonQtWrapper_QXmlParseException::columnNumber(QXmlParseException* theWrappedObject) const +{ + return ( theWrappedObject->columnNumber()); +} + +int PythonQtWrapper_QXmlParseException::lineNumber(QXmlParseException* theWrappedObject) const +{ + return ( theWrappedObject->lineNumber()); +} + +QString PythonQtWrapper_QXmlParseException::message(QXmlParseException* theWrappedObject) const +{ + return ( theWrappedObject->message()); +} + +QString PythonQtWrapper_QXmlParseException::publicId(QXmlParseException* theWrappedObject) const +{ + return ( theWrappedObject->publicId()); +} + +QString PythonQtWrapper_QXmlParseException::systemId(QXmlParseException* theWrappedObject) const +{ + return ( theWrappedObject->systemId()); +} + + + +PythonQtShell_QXmlReader::~PythonQtShell_QXmlReader() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QXmlDTDHandler* PythonQtShell_QXmlReader::DTDHandler() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "DTDHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlDTDHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QXmlDTDHandler* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("DTDHandler", methodInfo, result); + } else { + returnValue = *((QXmlDTDHandler**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +QXmlContentHandler* PythonQtShell_QXmlReader::contentHandler() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contentHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlContentHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QXmlContentHandler* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("contentHandler", methodInfo, result); + } else { + returnValue = *((QXmlContentHandler**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +QXmlDeclHandler* PythonQtShell_QXmlReader::declHandler() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "declHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlDeclHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QXmlDeclHandler* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("declHandler", methodInfo, result); + } else { + returnValue = *((QXmlDeclHandler**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +QXmlEntityResolver* PythonQtShell_QXmlReader::entityResolver() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "entityResolver"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlEntityResolver*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QXmlEntityResolver* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("entityResolver", methodInfo, result); + } else { + returnValue = *((QXmlEntityResolver**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +QXmlErrorHandler* PythonQtShell_QXmlReader::errorHandler() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "errorHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlErrorHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QXmlErrorHandler* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("errorHandler", methodInfo, result); + } else { + returnValue = *((QXmlErrorHandler**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +bool PythonQtShell_QXmlReader::feature(const QString& name, bool* ok) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "feature"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "bool*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&name, (void*)&ok}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("feature", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlReader::hasFeature(const QString& name) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasFeature"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasFeature", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlReader::hasProperty(const QString& name) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasProperty"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasProperty", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +QXmlLexicalHandler* PythonQtShell_QXmlReader::lexicalHandler() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "lexicalHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlLexicalHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QXmlLexicalHandler* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("lexicalHandler", methodInfo, result); + } else { + returnValue = *((QXmlLexicalHandler**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +bool PythonQtShell_QXmlReader::parse(const QXmlInputSource& input) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "parse"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QXmlInputSource&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&input}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("parse", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +bool PythonQtShell_QXmlReader::parse(const QXmlInputSource* input) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "parse"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QXmlInputSource*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&input}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("parse", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return bool(); +} +void* PythonQtShell_QXmlReader::property(const QString& name, bool* ok) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "property"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"void*" , "const QString&" , "bool*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* returnValue; + void* args[3] = {NULL, (void*)&name, (void*)&ok}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("property", methodInfo, result); + } else { + returnValue = *((void**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return 0; +} +void PythonQtShell_QXmlReader::setContentHandler(QXmlContentHandler* handler) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setContentHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QXmlContentHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&handler}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QXmlReader::setDTDHandler(QXmlDTDHandler* handler) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setDTDHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QXmlDTDHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&handler}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QXmlReader::setDeclHandler(QXmlDeclHandler* handler) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setDeclHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QXmlDeclHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&handler}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QXmlReader::setEntityResolver(QXmlEntityResolver* handler) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setEntityResolver"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QXmlEntityResolver*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&handler}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QXmlReader::setErrorHandler(QXmlErrorHandler* handler) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setErrorHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QXmlErrorHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&handler}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QXmlReader::setFeature(const QString& name, bool value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setFeature"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&name, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QXmlReader::setLexicalHandler(QXmlLexicalHandler* handler) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setLexicalHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QXmlLexicalHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&handler}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QXmlReader::setProperty(const QString& name, void* value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setProperty"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&" , "void*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&name, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +QXmlReader* PythonQtWrapper_QXmlReader::new_QXmlReader() +{ +return new PythonQtShell_QXmlReader(); } + + + +PythonQtShell_QXmlSimpleReader::~PythonQtShell_QXmlSimpleReader() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QXmlDTDHandler* PythonQtShell_QXmlSimpleReader::DTDHandler() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "DTDHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlDTDHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QXmlDTDHandler* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("DTDHandler", methodInfo, result); + } else { + returnValue = *((QXmlDTDHandler**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlSimpleReader::DTDHandler(); +} +QXmlContentHandler* PythonQtShell_QXmlSimpleReader::contentHandler() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contentHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlContentHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QXmlContentHandler* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("contentHandler", methodInfo, result); + } else { + returnValue = *((QXmlContentHandler**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlSimpleReader::contentHandler(); +} +QXmlDeclHandler* PythonQtShell_QXmlSimpleReader::declHandler() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "declHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlDeclHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QXmlDeclHandler* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("declHandler", methodInfo, result); + } else { + returnValue = *((QXmlDeclHandler**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlSimpleReader::declHandler(); +} +QXmlEntityResolver* PythonQtShell_QXmlSimpleReader::entityResolver() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "entityResolver"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlEntityResolver*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QXmlEntityResolver* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("entityResolver", methodInfo, result); + } else { + returnValue = *((QXmlEntityResolver**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlSimpleReader::entityResolver(); +} +QXmlErrorHandler* PythonQtShell_QXmlSimpleReader::errorHandler() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "errorHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlErrorHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QXmlErrorHandler* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("errorHandler", methodInfo, result); + } else { + returnValue = *((QXmlErrorHandler**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlSimpleReader::errorHandler(); +} +bool PythonQtShell_QXmlSimpleReader::feature(const QString& name, bool* ok) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "feature"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&" , "bool*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&name, (void*)&ok}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("feature", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlSimpleReader::feature(name, ok); +} +bool PythonQtShell_QXmlSimpleReader::hasFeature(const QString& name) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasFeature"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasFeature", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlSimpleReader::hasFeature(name); +} +bool PythonQtShell_QXmlSimpleReader::hasProperty(const QString& name) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasProperty"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("hasProperty", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlSimpleReader::hasProperty(name); +} +QXmlLexicalHandler* PythonQtShell_QXmlSimpleReader::lexicalHandler() const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "lexicalHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlLexicalHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + QXmlLexicalHandler* returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("lexicalHandler", methodInfo, result); + } else { + returnValue = *((QXmlLexicalHandler**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlSimpleReader::lexicalHandler(); +} +bool PythonQtShell_QXmlSimpleReader::parse(const QXmlInputSource& input) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "parse"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QXmlInputSource&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&input}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("parse", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlSimpleReader::parse(input); +} +bool PythonQtShell_QXmlSimpleReader::parse(const QXmlInputSource* input) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "parse"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QXmlInputSource*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&input}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("parse", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlSimpleReader::parse(input); +} +bool PythonQtShell_QXmlSimpleReader::parse(const QXmlInputSource* input, bool incremental) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "parse"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "const QXmlInputSource*" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&input, (void*)&incremental}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("parse", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlSimpleReader::parse(input, incremental); +} +bool PythonQtShell_QXmlSimpleReader::parseContinue() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "parseContinue"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + bool returnValue; + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("parseContinue", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlSimpleReader::parseContinue(); +} +void* PythonQtShell_QXmlSimpleReader::property(const QString& name, bool* ok) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "property"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"void*" , "const QString&" , "bool*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* returnValue; + void* args[3] = {NULL, (void*)&name, (void*)&ok}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("property", methodInfo, result); + } else { + returnValue = *((void**)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlSimpleReader::property(name, ok); +} +void PythonQtShell_QXmlSimpleReader::setContentHandler(QXmlContentHandler* handler) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setContentHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QXmlContentHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&handler}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSimpleReader::setContentHandler(handler); +} +void PythonQtShell_QXmlSimpleReader::setDTDHandler(QXmlDTDHandler* handler) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setDTDHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QXmlDTDHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&handler}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSimpleReader::setDTDHandler(handler); +} +void PythonQtShell_QXmlSimpleReader::setDeclHandler(QXmlDeclHandler* handler) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setDeclHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QXmlDeclHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&handler}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSimpleReader::setDeclHandler(handler); +} +void PythonQtShell_QXmlSimpleReader::setEntityResolver(QXmlEntityResolver* handler) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setEntityResolver"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QXmlEntityResolver*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&handler}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSimpleReader::setEntityResolver(handler); +} +void PythonQtShell_QXmlSimpleReader::setErrorHandler(QXmlErrorHandler* handler) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setErrorHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QXmlErrorHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&handler}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSimpleReader::setErrorHandler(handler); +} +void PythonQtShell_QXmlSimpleReader::setFeature(const QString& name, bool value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setFeature"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&" , "bool"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&name, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSimpleReader::setFeature(name, value); +} +void PythonQtShell_QXmlSimpleReader::setLexicalHandler(QXmlLexicalHandler* handler) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setLexicalHandler"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QXmlLexicalHandler*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&handler}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSimpleReader::setLexicalHandler(handler); +} +void PythonQtShell_QXmlSimpleReader::setProperty(const QString& name, void* value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setProperty"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&" , "void*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&name, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSimpleReader::setProperty(name, value); +} +QXmlSimpleReader* PythonQtWrapper_QXmlSimpleReader::new_QXmlSimpleReader() +{ +return new PythonQtShell_QXmlSimpleReader(); } + +QXmlDTDHandler* PythonQtWrapper_QXmlSimpleReader::DTDHandler(QXmlSimpleReader* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_DTDHandler()); +} + +QXmlContentHandler* PythonQtWrapper_QXmlSimpleReader::contentHandler(QXmlSimpleReader* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_contentHandler()); +} + +QXmlDeclHandler* PythonQtWrapper_QXmlSimpleReader::declHandler(QXmlSimpleReader* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_declHandler()); +} + +QXmlEntityResolver* PythonQtWrapper_QXmlSimpleReader::entityResolver(QXmlSimpleReader* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_entityResolver()); +} + +QXmlErrorHandler* PythonQtWrapper_QXmlSimpleReader::errorHandler(QXmlSimpleReader* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_errorHandler()); +} + +bool PythonQtWrapper_QXmlSimpleReader::feature(QXmlSimpleReader* theWrappedObject, const QString& name, bool* ok) const +{ + return ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_feature(name, ok)); +} + +bool PythonQtWrapper_QXmlSimpleReader::hasFeature(QXmlSimpleReader* theWrappedObject, const QString& name) const +{ + return ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_hasFeature(name)); +} + +bool PythonQtWrapper_QXmlSimpleReader::hasProperty(QXmlSimpleReader* theWrappedObject, const QString& name) const +{ + return ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_hasProperty(name)); +} + +QXmlLexicalHandler* PythonQtWrapper_QXmlSimpleReader::lexicalHandler(QXmlSimpleReader* theWrappedObject) const +{ + return ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_lexicalHandler()); +} + +bool PythonQtWrapper_QXmlSimpleReader::parse(QXmlSimpleReader* theWrappedObject, const QXmlInputSource& input) +{ + return ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_parse(input)); +} + +bool PythonQtWrapper_QXmlSimpleReader::parse(QXmlSimpleReader* theWrappedObject, const QXmlInputSource* input) +{ + return ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_parse(input)); +} + +bool PythonQtWrapper_QXmlSimpleReader::parse(QXmlSimpleReader* theWrappedObject, const QXmlInputSource* input, bool incremental) +{ + return ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_parse(input, incremental)); +} + +bool PythonQtWrapper_QXmlSimpleReader::parseContinue(QXmlSimpleReader* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_parseContinue()); +} + +void* PythonQtWrapper_QXmlSimpleReader::property(QXmlSimpleReader* theWrappedObject, const QString& name, bool* ok) const +{ + return ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_property(name, ok)); +} + +void PythonQtWrapper_QXmlSimpleReader::setContentHandler(QXmlSimpleReader* theWrappedObject, QXmlContentHandler* handler) +{ + ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_setContentHandler(handler)); +} + +void PythonQtWrapper_QXmlSimpleReader::setDTDHandler(QXmlSimpleReader* theWrappedObject, QXmlDTDHandler* handler) +{ + ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_setDTDHandler(handler)); +} + +void PythonQtWrapper_QXmlSimpleReader::setDeclHandler(QXmlSimpleReader* theWrappedObject, QXmlDeclHandler* handler) +{ + ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_setDeclHandler(handler)); +} + +void PythonQtWrapper_QXmlSimpleReader::setEntityResolver(QXmlSimpleReader* theWrappedObject, QXmlEntityResolver* handler) +{ + ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_setEntityResolver(handler)); +} + +void PythonQtWrapper_QXmlSimpleReader::setErrorHandler(QXmlSimpleReader* theWrappedObject, QXmlErrorHandler* handler) +{ + ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_setErrorHandler(handler)); +} + +void PythonQtWrapper_QXmlSimpleReader::setFeature(QXmlSimpleReader* theWrappedObject, const QString& name, bool value) +{ + ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_setFeature(name, value)); +} + +void PythonQtWrapper_QXmlSimpleReader::setLexicalHandler(QXmlSimpleReader* theWrappedObject, QXmlLexicalHandler* handler) +{ + ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_setLexicalHandler(handler)); +} + +void PythonQtWrapper_QXmlSimpleReader::setProperty(QXmlSimpleReader* theWrappedObject, const QString& name, void* value) +{ + ( ((PythonQtPublicPromoter_QXmlSimpleReader*)theWrappedObject)->promoted_setProperty(name, value)); +} + + diff --git a/generated_cpp_50/com_trolltech_qt_xml/com_trolltech_qt_xml0.h b/generated_cpp_50/com_trolltech_qt_xml/com_trolltech_qt_xml0.h new file mode 100644 index 00000000..0c8ca9aa --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_xml/com_trolltech_qt_xml0.h @@ -0,0 +1,983 @@ +#include +#include +#include +#include +#include +#include +#include +#include + + + +class PythonQtWrapper_QDomAttr : public QObject +{ Q_OBJECT +public: +public slots: +QDomAttr* new_QDomAttr(); +QDomAttr* new_QDomAttr(const QDomAttr& x); +void delete_QDomAttr(QDomAttr* obj) { delete obj; } + QString name(QDomAttr* theWrappedObject) const; + QDomElement ownerElement(QDomAttr* theWrappedObject) const; + void setValue(QDomAttr* theWrappedObject, const QString& arg__1); + bool specified(QDomAttr* theWrappedObject) const; + QString value(QDomAttr* theWrappedObject) const; + bool __nonzero__(QDomAttr* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QDomCDATASection : public QObject +{ Q_OBJECT +public: +public slots: +QDomCDATASection* new_QDomCDATASection(); +QDomCDATASection* new_QDomCDATASection(const QDomCDATASection& x); +void delete_QDomCDATASection(QDomCDATASection* obj) { delete obj; } + bool __nonzero__(QDomCDATASection* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QDomCharacterData : public QObject +{ Q_OBJECT +public: +public slots: +QDomCharacterData* new_QDomCharacterData(); +QDomCharacterData* new_QDomCharacterData(const QDomCharacterData& x); +void delete_QDomCharacterData(QDomCharacterData* obj) { delete obj; } + void appendData(QDomCharacterData* theWrappedObject, const QString& arg); + QString data(QDomCharacterData* theWrappedObject) const; + void deleteData(QDomCharacterData* theWrappedObject, unsigned long offset, unsigned long count); + void insertData(QDomCharacterData* theWrappedObject, unsigned long offset, const QString& arg); + int length(QDomCharacterData* theWrappedObject) const; + void replaceData(QDomCharacterData* theWrappedObject, unsigned long offset, unsigned long count, const QString& arg); + void setData(QDomCharacterData* theWrappedObject, const QString& arg__1); + QString substringData(QDomCharacterData* theWrappedObject, unsigned long offset, unsigned long count); + bool __nonzero__(QDomCharacterData* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QDomComment : public QObject +{ Q_OBJECT +public: +public slots: +QDomComment* new_QDomComment(); +QDomComment* new_QDomComment(const QDomComment& x); +void delete_QDomComment(QDomComment* obj) { delete obj; } + bool __nonzero__(QDomComment* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QDomDocument : public QObject +{ Q_OBJECT +public: +public slots: +QDomDocument* new_QDomDocument(); +QDomDocument* new_QDomDocument(const QDomDocument& x); +QDomDocument* new_QDomDocument(const QDomDocumentType& doctype); +QDomDocument* new_QDomDocument(const QString& name); +void delete_QDomDocument(QDomDocument* obj) { delete obj; } + QDomAttr createAttribute(QDomDocument* theWrappedObject, const QString& name); + QDomAttr createAttributeNS(QDomDocument* theWrappedObject, const QString& nsURI, const QString& qName); + QDomCDATASection createCDATASection(QDomDocument* theWrappedObject, const QString& data); + QDomComment createComment(QDomDocument* theWrappedObject, const QString& data); + QDomDocumentFragment createDocumentFragment(QDomDocument* theWrappedObject); + QDomElement createElement(QDomDocument* theWrappedObject, const QString& tagName); + QDomElement createElementNS(QDomDocument* theWrappedObject, const QString& nsURI, const QString& qName); + QDomEntityReference createEntityReference(QDomDocument* theWrappedObject, const QString& name); + QDomProcessingInstruction createProcessingInstruction(QDomDocument* theWrappedObject, const QString& target, const QString& data); + QDomText createTextNode(QDomDocument* theWrappedObject, const QString& data); + QDomDocumentType doctype(QDomDocument* theWrappedObject) const; + QDomElement documentElement(QDomDocument* theWrappedObject) const; + QDomElement elementById(QDomDocument* theWrappedObject, const QString& elementId); + QDomNodeList elementsByTagName(QDomDocument* theWrappedObject, const QString& tagname) const; + QDomNodeList elementsByTagNameNS(QDomDocument* theWrappedObject, const QString& nsURI, const QString& localName); + QDomImplementation implementation(QDomDocument* theWrappedObject) const; + QDomNode importNode(QDomDocument* theWrappedObject, const QDomNode& importedNode, bool deep); + bool setContent(QDomDocument* theWrappedObject, QIODevice* dev, QString* errorMsg = 0, int* errorLine = 0, int* errorColumn = 0); + bool setContent(QDomDocument* theWrappedObject, QIODevice* dev, bool namespaceProcessing, QString* errorMsg = 0, int* errorLine = 0, int* errorColumn = 0); + bool setContent(QDomDocument* theWrappedObject, QXmlInputSource* source, QXmlReader* reader, QString* errorMsg = 0, int* errorLine = 0, int* errorColumn = 0); + bool setContent(QDomDocument* theWrappedObject, QXmlInputSource* source, bool namespaceProcessing, QString* errorMsg = 0, int* errorLine = 0, int* errorColumn = 0); + bool setContent(QDomDocument* theWrappedObject, const QByteArray& text, QString* errorMsg = 0, int* errorLine = 0, int* errorColumn = 0); + bool setContent(QDomDocument* theWrappedObject, const QByteArray& text, bool namespaceProcessing, QString* errorMsg = 0, int* errorLine = 0, int* errorColumn = 0); + bool setContent(QDomDocument* theWrappedObject, const QString& text, QString* errorMsg = 0, int* errorLine = 0, int* errorColumn = 0); + bool setContent(QDomDocument* theWrappedObject, const QString& text, bool namespaceProcessing, QString* errorMsg = 0, int* errorLine = 0, int* errorColumn = 0); + QByteArray toByteArray(QDomDocument* theWrappedObject, int arg__1 = 1) const; + QString toString(QDomDocument* theWrappedObject, int arg__1 = 1) const; + QString py_toString(QDomDocument*); + bool __nonzero__(QDomDocument* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QDomDocumentFragment : public QObject +{ Q_OBJECT +public: +public slots: +QDomDocumentFragment* new_QDomDocumentFragment(); +QDomDocumentFragment* new_QDomDocumentFragment(const QDomDocumentFragment& x); +void delete_QDomDocumentFragment(QDomDocumentFragment* obj) { delete obj; } + bool __nonzero__(QDomDocumentFragment* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QDomDocumentType : public QObject +{ Q_OBJECT +public: +public slots: +QDomDocumentType* new_QDomDocumentType(); +QDomDocumentType* new_QDomDocumentType(const QDomDocumentType& x); +void delete_QDomDocumentType(QDomDocumentType* obj) { delete obj; } + QDomNamedNodeMap entities(QDomDocumentType* theWrappedObject) const; + QString internalSubset(QDomDocumentType* theWrappedObject) const; + QString name(QDomDocumentType* theWrappedObject) const; + QDomNamedNodeMap notations(QDomDocumentType* theWrappedObject) const; + QString publicId(QDomDocumentType* theWrappedObject) const; + QString systemId(QDomDocumentType* theWrappedObject) const; + bool __nonzero__(QDomDocumentType* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QDomElement : public QObject +{ Q_OBJECT +public: +public slots: +QDomElement* new_QDomElement(); +QDomElement* new_QDomElement(const QDomElement& x); +void delete_QDomElement(QDomElement* obj) { delete obj; } + QString attribute(QDomElement* theWrappedObject, const QString& name, const QString& defValue = QString()) const; + QString attributeNS(QDomElement* theWrappedObject, const QString nsURI, const QString& localName, const QString& defValue = QString()) const; + QDomAttr attributeNode(QDomElement* theWrappedObject, const QString& name); + QDomAttr attributeNodeNS(QDomElement* theWrappedObject, const QString& nsURI, const QString& localName); + QDomNamedNodeMap attributes(QDomElement* theWrappedObject) const; + QDomNodeList elementsByTagName(QDomElement* theWrappedObject, const QString& tagname) const; + QDomNodeList elementsByTagNameNS(QDomElement* theWrappedObject, const QString& nsURI, const QString& localName) const; + bool hasAttribute(QDomElement* theWrappedObject, const QString& name) const; + bool hasAttributeNS(QDomElement* theWrappedObject, const QString& nsURI, const QString& localName) const; + void removeAttribute(QDomElement* theWrappedObject, const QString& name); + void removeAttributeNS(QDomElement* theWrappedObject, const QString& nsURI, const QString& localName); + QDomAttr removeAttributeNode(QDomElement* theWrappedObject, const QDomAttr& oldAttr); + void setAttribute(QDomElement* theWrappedObject, const QString& name, const QString& value); + void setAttribute(QDomElement* theWrappedObject, const QString& name, double value); + void setAttribute(QDomElement* theWrappedObject, const QString& name, float value); + void setAttribute(QDomElement* theWrappedObject, const QString& name, int value); + void setAttribute(QDomElement* theWrappedObject, const QString& name, qlonglong value); + void setAttributeNS(QDomElement* theWrappedObject, const QString nsURI, const QString& qName, const QString& value); + void setAttributeNS(QDomElement* theWrappedObject, const QString nsURI, const QString& qName, double value); + void setAttributeNS(QDomElement* theWrappedObject, const QString nsURI, const QString& qName, int value); + void setAttributeNS(QDomElement* theWrappedObject, const QString nsURI, const QString& qName, qlonglong value); + QDomAttr setAttributeNode(QDomElement* theWrappedObject, const QDomAttr& newAttr); + QDomAttr setAttributeNodeNS(QDomElement* theWrappedObject, const QDomAttr& newAttr); + void setTagName(QDomElement* theWrappedObject, const QString& name); + QString tagName(QDomElement* theWrappedObject) const; + QString text(QDomElement* theWrappedObject) const; + bool __nonzero__(QDomElement* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QDomEntity : public QObject +{ Q_OBJECT +public: +public slots: +QDomEntity* new_QDomEntity(); +QDomEntity* new_QDomEntity(const QDomEntity& x); +void delete_QDomEntity(QDomEntity* obj) { delete obj; } + QString notationName(QDomEntity* theWrappedObject) const; + QString publicId(QDomEntity* theWrappedObject) const; + QString systemId(QDomEntity* theWrappedObject) const; + bool __nonzero__(QDomEntity* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QDomEntityReference : public QObject +{ Q_OBJECT +public: +public slots: +QDomEntityReference* new_QDomEntityReference(); +QDomEntityReference* new_QDomEntityReference(const QDomEntityReference& x); +void delete_QDomEntityReference(QDomEntityReference* obj) { delete obj; } + bool __nonzero__(QDomEntityReference* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QDomImplementation : public QObject +{ Q_OBJECT +public: +Q_ENUMS(InvalidDataPolicy ) +enum InvalidDataPolicy{ + AcceptInvalidChars = QDomImplementation::AcceptInvalidChars, DropInvalidChars = QDomImplementation::DropInvalidChars, ReturnNullNode = QDomImplementation::ReturnNullNode}; +public slots: +QDomImplementation* new_QDomImplementation(); +QDomImplementation* new_QDomImplementation(const QDomImplementation& arg__1); +void delete_QDomImplementation(QDomImplementation* obj) { delete obj; } + QDomDocument createDocument(QDomImplementation* theWrappedObject, const QString& nsURI, const QString& qName, const QDomDocumentType& doctype); + QDomDocumentType createDocumentType(QDomImplementation* theWrappedObject, const QString& qName, const QString& publicId, const QString& systemId); + bool hasFeature(QDomImplementation* theWrappedObject, const QString& feature, const QString& version) const; + QDomImplementation::InvalidDataPolicy static_QDomImplementation_invalidDataPolicy(); + bool isNull(QDomImplementation* theWrappedObject); + bool __ne__(QDomImplementation* theWrappedObject, const QDomImplementation& arg__1) const; + bool __eq__(QDomImplementation* theWrappedObject, const QDomImplementation& arg__1) const; + void static_QDomImplementation_setInvalidDataPolicy(QDomImplementation::InvalidDataPolicy policy); + bool __nonzero__(QDomImplementation* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QDomNamedNodeMap : public QObject +{ Q_OBJECT +public: +public slots: +QDomNamedNodeMap* new_QDomNamedNodeMap(); +QDomNamedNodeMap* new_QDomNamedNodeMap(const QDomNamedNodeMap& arg__1); +void delete_QDomNamedNodeMap(QDomNamedNodeMap* obj) { delete obj; } + bool contains(QDomNamedNodeMap* theWrappedObject, const QString& name) const; + int count(QDomNamedNodeMap* theWrappedObject) const; + bool isEmpty(QDomNamedNodeMap* theWrappedObject) const; + QDomNode item(QDomNamedNodeMap* theWrappedObject, int index) const; + int length(QDomNamedNodeMap* theWrappedObject) const; + QDomNode namedItem(QDomNamedNodeMap* theWrappedObject, const QString& name) const; + QDomNode namedItemNS(QDomNamedNodeMap* theWrappedObject, const QString& nsURI, const QString& localName) const; + bool __ne__(QDomNamedNodeMap* theWrappedObject, const QDomNamedNodeMap& arg__1) const; + bool __eq__(QDomNamedNodeMap* theWrappedObject, const QDomNamedNodeMap& arg__1) const; + QDomNode removeNamedItem(QDomNamedNodeMap* theWrappedObject, const QString& name); + QDomNode removeNamedItemNS(QDomNamedNodeMap* theWrappedObject, const QString& nsURI, const QString& localName); + QDomNode setNamedItem(QDomNamedNodeMap* theWrappedObject, const QDomNode& newNode); + QDomNode setNamedItemNS(QDomNamedNodeMap* theWrappedObject, const QDomNode& newNode); + int size(QDomNamedNodeMap* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QDomNode : public QObject +{ Q_OBJECT +public: +Q_ENUMS(EncodingPolicy NodeType ) +enum EncodingPolicy{ + EncodingFromDocument = QDomNode::EncodingFromDocument, EncodingFromTextStream = QDomNode::EncodingFromTextStream}; +enum NodeType{ + ElementNode = QDomNode::ElementNode, AttributeNode = QDomNode::AttributeNode, TextNode = QDomNode::TextNode, CDATASectionNode = QDomNode::CDATASectionNode, EntityReferenceNode = QDomNode::EntityReferenceNode, EntityNode = QDomNode::EntityNode, ProcessingInstructionNode = QDomNode::ProcessingInstructionNode, CommentNode = QDomNode::CommentNode, DocumentNode = QDomNode::DocumentNode, DocumentTypeNode = QDomNode::DocumentTypeNode, DocumentFragmentNode = QDomNode::DocumentFragmentNode, NotationNode = QDomNode::NotationNode, BaseNode = QDomNode::BaseNode, CharacterDataNode = QDomNode::CharacterDataNode}; +public slots: +QDomNode* new_QDomNode(); +QDomNode* new_QDomNode(const QDomNode& arg__1); +void delete_QDomNode(QDomNode* obj) { delete obj; } + QDomNode appendChild(QDomNode* theWrappedObject, const QDomNode& newChild); + QDomNodeList childNodes(QDomNode* theWrappedObject) const; + void clear(QDomNode* theWrappedObject); + QDomNode cloneNode(QDomNode* theWrappedObject, bool deep = true) const; + int columnNumber(QDomNode* theWrappedObject) const; + QDomNode firstChild(QDomNode* theWrappedObject) const; + QDomElement firstChildElement(QDomNode* theWrappedObject, const QString& tagName = QString()) const; + bool hasAttributes(QDomNode* theWrappedObject) const; + bool hasChildNodes(QDomNode* theWrappedObject) const; + QDomNode insertAfter(QDomNode* theWrappedObject, const QDomNode& newChild, const QDomNode& refChild); + QDomNode insertBefore(QDomNode* theWrappedObject, const QDomNode& newChild, const QDomNode& refChild); + bool isAttr(QDomNode* theWrappedObject) const; + bool isCDATASection(QDomNode* theWrappedObject) const; + bool isCharacterData(QDomNode* theWrappedObject) const; + bool isComment(QDomNode* theWrappedObject) const; + bool isDocument(QDomNode* theWrappedObject) const; + bool isDocumentFragment(QDomNode* theWrappedObject) const; + bool isDocumentType(QDomNode* theWrappedObject) const; + bool isElement(QDomNode* theWrappedObject) const; + bool isEntity(QDomNode* theWrappedObject) const; + bool isEntityReference(QDomNode* theWrappedObject) const; + bool isNotation(QDomNode* theWrappedObject) const; + bool isNull(QDomNode* theWrappedObject) const; + bool isProcessingInstruction(QDomNode* theWrappedObject) const; + bool isSupported(QDomNode* theWrappedObject, const QString& feature, const QString& version) const; + bool isText(QDomNode* theWrappedObject) const; + QDomNode lastChild(QDomNode* theWrappedObject) const; + QDomElement lastChildElement(QDomNode* theWrappedObject, const QString& tagName = QString()) const; + int lineNumber(QDomNode* theWrappedObject) const; + QString localName(QDomNode* theWrappedObject) const; + QDomNode namedItem(QDomNode* theWrappedObject, const QString& name) const; + QString namespaceURI(QDomNode* theWrappedObject) const; + QDomNode nextSibling(QDomNode* theWrappedObject) const; + QDomElement nextSiblingElement(QDomNode* theWrappedObject, const QString& taName = QString()) const; + QString nodeName(QDomNode* theWrappedObject) const; + QDomNode::NodeType nodeType(QDomNode* theWrappedObject) const; + QString nodeValue(QDomNode* theWrappedObject) const; + void normalize(QDomNode* theWrappedObject); + bool __ne__(QDomNode* theWrappedObject, const QDomNode& arg__1) const; + void writeTo(QDomNode* theWrappedObject, QTextStream& arg__1); + bool __eq__(QDomNode* theWrappedObject, const QDomNode& arg__1) const; + QDomDocument ownerDocument(QDomNode* theWrappedObject) const; + QDomNode parentNode(QDomNode* theWrappedObject) const; + QString prefix(QDomNode* theWrappedObject) const; + QDomNode previousSibling(QDomNode* theWrappedObject) const; + QDomElement previousSiblingElement(QDomNode* theWrappedObject, const QString& tagName = QString()) const; + QDomNode removeChild(QDomNode* theWrappedObject, const QDomNode& oldChild); + QDomNode replaceChild(QDomNode* theWrappedObject, const QDomNode& newChild, const QDomNode& oldChild); + void save(QDomNode* theWrappedObject, QTextStream& arg__1, int arg__2, QDomNode::EncodingPolicy arg__3 = QDomNode::EncodingFromDocument) const; + void setNodeValue(QDomNode* theWrappedObject, const QString& arg__1); + void setPrefix(QDomNode* theWrappedObject, const QString& pre); + QDomAttr toAttr(QDomNode* theWrappedObject) const; + QDomCDATASection toCDATASection(QDomNode* theWrappedObject) const; + QDomCharacterData toCharacterData(QDomNode* theWrappedObject) const; + QDomComment toComment(QDomNode* theWrappedObject) const; + QDomDocument toDocument(QDomNode* theWrappedObject) const; + QDomDocumentFragment toDocumentFragment(QDomNode* theWrappedObject) const; + QDomDocumentType toDocumentType(QDomNode* theWrappedObject) const; + QDomElement toElement(QDomNode* theWrappedObject) const; + QDomEntity toEntity(QDomNode* theWrappedObject) const; + QDomEntityReference toEntityReference(QDomNode* theWrappedObject) const; + QDomNotation toNotation(QDomNode* theWrappedObject) const; + QDomProcessingInstruction toProcessingInstruction(QDomNode* theWrappedObject) const; + QDomText toText(QDomNode* theWrappedObject) const; + bool __nonzero__(QDomNode* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QDomNodeList : public QObject +{ Q_OBJECT +public: +public slots: +QDomNodeList* new_QDomNodeList(); +QDomNodeList* new_QDomNodeList(const QDomNodeList& arg__1); +void delete_QDomNodeList(QDomNodeList* obj) { delete obj; } + QDomNode at(QDomNodeList* theWrappedObject, int index) const; + int count(QDomNodeList* theWrappedObject) const; + bool isEmpty(QDomNodeList* theWrappedObject) const; + QDomNode item(QDomNodeList* theWrappedObject, int index) const; + int length(QDomNodeList* theWrappedObject) const; + bool __ne__(QDomNodeList* theWrappedObject, const QDomNodeList& arg__1) const; + bool __eq__(QDomNodeList* theWrappedObject, const QDomNodeList& arg__1) const; + int size(QDomNodeList* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QDomNotation : public QObject +{ Q_OBJECT +public: +public slots: +QDomNotation* new_QDomNotation(); +QDomNotation* new_QDomNotation(const QDomNotation& x); +void delete_QDomNotation(QDomNotation* obj) { delete obj; } + QString publicId(QDomNotation* theWrappedObject) const; + QString systemId(QDomNotation* theWrappedObject) const; + bool __nonzero__(QDomNotation* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QDomProcessingInstruction : public QObject +{ Q_OBJECT +public: +public slots: +QDomProcessingInstruction* new_QDomProcessingInstruction(); +QDomProcessingInstruction* new_QDomProcessingInstruction(const QDomProcessingInstruction& x); +void delete_QDomProcessingInstruction(QDomProcessingInstruction* obj) { delete obj; } + QString data(QDomProcessingInstruction* theWrappedObject) const; + void setData(QDomProcessingInstruction* theWrappedObject, const QString& d); + QString target(QDomProcessingInstruction* theWrappedObject) const; + bool __nonzero__(QDomProcessingInstruction* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QDomText : public QObject +{ Q_OBJECT +public: +public slots: +QDomText* new_QDomText(); +QDomText* new_QDomText(const QDomText& x); +void delete_QDomText(QDomText* obj) { delete obj; } + QDomText splitText(QDomText* theWrappedObject, int offset); + bool __nonzero__(QDomText* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtShell_QXmlAttributes : public QXmlAttributes +{ +public: + PythonQtShell_QXmlAttributes():QXmlAttributes(),_wrapper(NULL) {}; + + ~PythonQtShell_QXmlAttributes(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QXmlAttributes : public QObject +{ Q_OBJECT +public: +public slots: +QXmlAttributes* new_QXmlAttributes(); +QXmlAttributes* new_QXmlAttributes(const QXmlAttributes& other) { +PythonQtShell_QXmlAttributes* a = new PythonQtShell_QXmlAttributes(); +*((QXmlAttributes*)a) = other; +return a; } +void delete_QXmlAttributes(QXmlAttributes* obj) { delete obj; } + void append(QXmlAttributes* theWrappedObject, const QString& qName, const QString& uri, const QString& localPart, const QString& value); + void clear(QXmlAttributes* theWrappedObject); + int count(QXmlAttributes* theWrappedObject) const; + int index(QXmlAttributes* theWrappedObject, const QString& qName) const; + int index(QXmlAttributes* theWrappedObject, const QString& uri, const QString& localPart) const; + int length(QXmlAttributes* theWrappedObject) const; + QString localName(QXmlAttributes* theWrappedObject, int index) const; + QString qName(QXmlAttributes* theWrappedObject, int index) const; + QString type(QXmlAttributes* theWrappedObject, const QString& qName) const; + QString type(QXmlAttributes* theWrappedObject, const QString& uri, const QString& localName) const; + QString type(QXmlAttributes* theWrappedObject, int index) const; + QString uri(QXmlAttributes* theWrappedObject, int index) const; + QString value(QXmlAttributes* theWrappedObject, const QString& qName) const; + QString value(QXmlAttributes* theWrappedObject, const QString& uri, const QString& localName) const; + QString value(QXmlAttributes* theWrappedObject, int index) const; +}; + + + + + +class PythonQtShell_QXmlContentHandler : public QXmlContentHandler +{ +public: + PythonQtShell_QXmlContentHandler():QXmlContentHandler(),_wrapper(NULL) {}; + + ~PythonQtShell_QXmlContentHandler(); + +virtual bool characters(const QString& ch); +virtual bool endDocument(); +virtual bool endElement(const QString& namespaceURI, const QString& localName, const QString& qName); +virtual bool endPrefixMapping(const QString& prefix); +virtual QString errorString() const; +virtual bool ignorableWhitespace(const QString& ch); +virtual bool processingInstruction(const QString& target, const QString& data); +virtual void setDocumentLocator(QXmlLocator* locator); +virtual bool skippedEntity(const QString& name); +virtual bool startDocument(); +virtual bool startElement(const QString& namespaceURI, const QString& localName, const QString& qName, const QXmlAttributes& atts); +virtual bool startPrefixMapping(const QString& prefix, const QString& uri); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QXmlContentHandler : public QObject +{ Q_OBJECT +public: +public slots: +QXmlContentHandler* new_QXmlContentHandler(); +void delete_QXmlContentHandler(QXmlContentHandler* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QXmlDTDHandler : public QXmlDTDHandler +{ +public: + PythonQtShell_QXmlDTDHandler():QXmlDTDHandler(),_wrapper(NULL) {}; + + ~PythonQtShell_QXmlDTDHandler(); + +virtual QString errorString() const; +virtual bool notationDecl(const QString& name, const QString& publicId, const QString& systemId); +virtual bool unparsedEntityDecl(const QString& name, const QString& publicId, const QString& systemId, const QString& notationName); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QXmlDTDHandler : public QObject +{ Q_OBJECT +public: +public slots: +QXmlDTDHandler* new_QXmlDTDHandler(); +void delete_QXmlDTDHandler(QXmlDTDHandler* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QXmlDeclHandler : public QXmlDeclHandler +{ +public: + PythonQtShell_QXmlDeclHandler():QXmlDeclHandler(),_wrapper(NULL) {}; + + ~PythonQtShell_QXmlDeclHandler(); + +virtual bool attributeDecl(const QString& eName, const QString& aName, const QString& type, const QString& valueDefault, const QString& value); +virtual QString errorString() const; +virtual bool externalEntityDecl(const QString& name, const QString& publicId, const QString& systemId); +virtual bool internalEntityDecl(const QString& name, const QString& value); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QXmlDeclHandler : public QObject +{ Q_OBJECT +public: +public slots: +QXmlDeclHandler* new_QXmlDeclHandler(); +void delete_QXmlDeclHandler(QXmlDeclHandler* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QXmlDefaultHandler : public QXmlDefaultHandler +{ +public: + PythonQtShell_QXmlDefaultHandler():QXmlDefaultHandler(),_wrapper(NULL) {}; + + ~PythonQtShell_QXmlDefaultHandler(); + +virtual bool attributeDecl(const QString& eName, const QString& aName, const QString& type, const QString& valueDefault, const QString& value); +virtual bool characters(const QString& ch); +virtual bool comment(const QString& ch); +virtual bool endCDATA(); +virtual bool endDTD(); +virtual bool endDocument(); +virtual bool endElement(const QString& namespaceURI, const QString& localName, const QString& qName); +virtual bool endEntity(const QString& name); +virtual bool endPrefixMapping(const QString& prefix); +virtual bool error(const QXmlParseException& exception); +virtual QString errorString() const; +virtual bool externalEntityDecl(const QString& name, const QString& publicId, const QString& systemId); +virtual bool fatalError(const QXmlParseException& exception); +virtual bool ignorableWhitespace(const QString& ch); +virtual bool internalEntityDecl(const QString& name, const QString& value); +virtual bool notationDecl(const QString& name, const QString& publicId, const QString& systemId); +virtual bool processingInstruction(const QString& target, const QString& data); +virtual bool resolveEntity(const QString& publicId, const QString& systemId, QXmlInputSource*& ret); +virtual void setDocumentLocator(QXmlLocator* locator); +virtual bool skippedEntity(const QString& name); +virtual bool startCDATA(); +virtual bool startDTD(const QString& name, const QString& publicId, const QString& systemId); +virtual bool startDocument(); +virtual bool startElement(const QString& namespaceURI, const QString& localName, const QString& qName, const QXmlAttributes& atts); +virtual bool startEntity(const QString& name); +virtual bool startPrefixMapping(const QString& prefix, const QString& uri); +virtual bool unparsedEntityDecl(const QString& name, const QString& publicId, const QString& systemId, const QString& notationName); +virtual bool warning(const QXmlParseException& exception); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QXmlDefaultHandler : public QXmlDefaultHandler +{ public: +inline bool promoted_attributeDecl(const QString& eName, const QString& aName, const QString& type, const QString& valueDefault, const QString& value) { return QXmlDefaultHandler::attributeDecl(eName, aName, type, valueDefault, value); } +inline bool promoted_characters(const QString& ch) { return QXmlDefaultHandler::characters(ch); } +inline bool promoted_comment(const QString& ch) { return QXmlDefaultHandler::comment(ch); } +inline bool promoted_endCDATA() { return QXmlDefaultHandler::endCDATA(); } +inline bool promoted_endDTD() { return QXmlDefaultHandler::endDTD(); } +inline bool promoted_endDocument() { return QXmlDefaultHandler::endDocument(); } +inline bool promoted_endElement(const QString& namespaceURI, const QString& localName, const QString& qName) { return QXmlDefaultHandler::endElement(namespaceURI, localName, qName); } +inline bool promoted_endEntity(const QString& name) { return QXmlDefaultHandler::endEntity(name); } +inline bool promoted_endPrefixMapping(const QString& prefix) { return QXmlDefaultHandler::endPrefixMapping(prefix); } +inline bool promoted_error(const QXmlParseException& exception) { return QXmlDefaultHandler::error(exception); } +inline QString promoted_errorString() const { return QXmlDefaultHandler::errorString(); } +inline bool promoted_externalEntityDecl(const QString& name, const QString& publicId, const QString& systemId) { return QXmlDefaultHandler::externalEntityDecl(name, publicId, systemId); } +inline bool promoted_fatalError(const QXmlParseException& exception) { return QXmlDefaultHandler::fatalError(exception); } +inline bool promoted_ignorableWhitespace(const QString& ch) { return QXmlDefaultHandler::ignorableWhitespace(ch); } +inline bool promoted_internalEntityDecl(const QString& name, const QString& value) { return QXmlDefaultHandler::internalEntityDecl(name, value); } +inline bool promoted_notationDecl(const QString& name, const QString& publicId, const QString& systemId) { return QXmlDefaultHandler::notationDecl(name, publicId, systemId); } +inline bool promoted_processingInstruction(const QString& target, const QString& data) { return QXmlDefaultHandler::processingInstruction(target, data); } +inline bool promoted_resolveEntity(const QString& publicId, const QString& systemId, QXmlInputSource*& ret) { return QXmlDefaultHandler::resolveEntity(publicId, systemId, ret); } +inline void promoted_setDocumentLocator(QXmlLocator* locator) { QXmlDefaultHandler::setDocumentLocator(locator); } +inline bool promoted_skippedEntity(const QString& name) { return QXmlDefaultHandler::skippedEntity(name); } +inline bool promoted_startCDATA() { return QXmlDefaultHandler::startCDATA(); } +inline bool promoted_startDTD(const QString& name, const QString& publicId, const QString& systemId) { return QXmlDefaultHandler::startDTD(name, publicId, systemId); } +inline bool promoted_startDocument() { return QXmlDefaultHandler::startDocument(); } +inline bool promoted_startElement(const QString& namespaceURI, const QString& localName, const QString& qName, const QXmlAttributes& atts) { return QXmlDefaultHandler::startElement(namespaceURI, localName, qName, atts); } +inline bool promoted_startEntity(const QString& name) { return QXmlDefaultHandler::startEntity(name); } +inline bool promoted_startPrefixMapping(const QString& prefix, const QString& uri) { return QXmlDefaultHandler::startPrefixMapping(prefix, uri); } +inline bool promoted_unparsedEntityDecl(const QString& name, const QString& publicId, const QString& systemId, const QString& notationName) { return QXmlDefaultHandler::unparsedEntityDecl(name, publicId, systemId, notationName); } +inline bool promoted_warning(const QXmlParseException& exception) { return QXmlDefaultHandler::warning(exception); } +}; + +class PythonQtWrapper_QXmlDefaultHandler : public QObject +{ Q_OBJECT +public: +public slots: +QXmlDefaultHandler* new_QXmlDefaultHandler(); +void delete_QXmlDefaultHandler(QXmlDefaultHandler* obj) { delete obj; } + bool attributeDecl(QXmlDefaultHandler* theWrappedObject, const QString& eName, const QString& aName, const QString& type, const QString& valueDefault, const QString& value); + bool characters(QXmlDefaultHandler* theWrappedObject, const QString& ch); + bool comment(QXmlDefaultHandler* theWrappedObject, const QString& ch); + bool endCDATA(QXmlDefaultHandler* theWrappedObject); + bool endDTD(QXmlDefaultHandler* theWrappedObject); + bool endDocument(QXmlDefaultHandler* theWrappedObject); + bool endElement(QXmlDefaultHandler* theWrappedObject, const QString& namespaceURI, const QString& localName, const QString& qName); + bool endEntity(QXmlDefaultHandler* theWrappedObject, const QString& name); + bool endPrefixMapping(QXmlDefaultHandler* theWrappedObject, const QString& prefix); + bool error(QXmlDefaultHandler* theWrappedObject, const QXmlParseException& exception); + QString errorString(QXmlDefaultHandler* theWrappedObject) const; + bool externalEntityDecl(QXmlDefaultHandler* theWrappedObject, const QString& name, const QString& publicId, const QString& systemId); + bool fatalError(QXmlDefaultHandler* theWrappedObject, const QXmlParseException& exception); + bool ignorableWhitespace(QXmlDefaultHandler* theWrappedObject, const QString& ch); + bool internalEntityDecl(QXmlDefaultHandler* theWrappedObject, const QString& name, const QString& value); + bool notationDecl(QXmlDefaultHandler* theWrappedObject, const QString& name, const QString& publicId, const QString& systemId); + bool processingInstruction(QXmlDefaultHandler* theWrappedObject, const QString& target, const QString& data); + bool resolveEntity(QXmlDefaultHandler* theWrappedObject, const QString& publicId, const QString& systemId, QXmlInputSource*& ret); + void setDocumentLocator(QXmlDefaultHandler* theWrappedObject, QXmlLocator* locator); + bool skippedEntity(QXmlDefaultHandler* theWrappedObject, const QString& name); + bool startCDATA(QXmlDefaultHandler* theWrappedObject); + bool startDTD(QXmlDefaultHandler* theWrappedObject, const QString& name, const QString& publicId, const QString& systemId); + bool startDocument(QXmlDefaultHandler* theWrappedObject); + bool startElement(QXmlDefaultHandler* theWrappedObject, const QString& namespaceURI, const QString& localName, const QString& qName, const QXmlAttributes& atts); + bool startEntity(QXmlDefaultHandler* theWrappedObject, const QString& name); + bool startPrefixMapping(QXmlDefaultHandler* theWrappedObject, const QString& prefix, const QString& uri); + bool unparsedEntityDecl(QXmlDefaultHandler* theWrappedObject, const QString& name, const QString& publicId, const QString& systemId, const QString& notationName); + bool warning(QXmlDefaultHandler* theWrappedObject, const QXmlParseException& exception); +}; + + + + + +class PythonQtShell_QXmlEntityResolver : public QXmlEntityResolver +{ +public: + PythonQtShell_QXmlEntityResolver():QXmlEntityResolver(),_wrapper(NULL) {}; + + ~PythonQtShell_QXmlEntityResolver(); + +virtual QString errorString() const; +virtual bool resolveEntity(const QString& publicId, const QString& systemId, QXmlInputSource*& ret); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QXmlEntityResolver : public QObject +{ Q_OBJECT +public: +public slots: +QXmlEntityResolver* new_QXmlEntityResolver(); +void delete_QXmlEntityResolver(QXmlEntityResolver* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QXmlErrorHandler : public QXmlErrorHandler +{ +public: + PythonQtShell_QXmlErrorHandler():QXmlErrorHandler(),_wrapper(NULL) {}; + + ~PythonQtShell_QXmlErrorHandler(); + +virtual bool error(const QXmlParseException& exception); +virtual QString errorString() const; +virtual bool fatalError(const QXmlParseException& exception); +virtual bool warning(const QXmlParseException& exception); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QXmlErrorHandler : public QObject +{ Q_OBJECT +public: +public slots: +QXmlErrorHandler* new_QXmlErrorHandler(); +void delete_QXmlErrorHandler(QXmlErrorHandler* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QXmlInputSource : public QXmlInputSource +{ +public: + PythonQtShell_QXmlInputSource():QXmlInputSource(),_wrapper(NULL) {}; + PythonQtShell_QXmlInputSource(QIODevice* dev):QXmlInputSource(dev),_wrapper(NULL) {}; + + ~PythonQtShell_QXmlInputSource(); + +virtual QString data() const; +virtual void fetchData(); +virtual QString fromRawData(const QByteArray& data, bool beginning = false); +virtual QChar next(); +virtual void reset(); +virtual void setData(const QByteArray& dat); +virtual void setData(const QString& dat); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QXmlInputSource : public QXmlInputSource +{ public: +inline QString promoted_data() const { return QXmlInputSource::data(); } +inline void promoted_fetchData() { QXmlInputSource::fetchData(); } +inline QString promoted_fromRawData(const QByteArray& data, bool beginning = false) { return QXmlInputSource::fromRawData(data, beginning); } +inline QChar promoted_next() { return QXmlInputSource::next(); } +inline void promoted_reset() { QXmlInputSource::reset(); } +inline void promoted_setData(const QByteArray& dat) { QXmlInputSource::setData(dat); } +inline void promoted_setData(const QString& dat) { QXmlInputSource::setData(dat); } +}; + +class PythonQtWrapper_QXmlInputSource : public QObject +{ Q_OBJECT +public: +public slots: +QXmlInputSource* new_QXmlInputSource(); +QXmlInputSource* new_QXmlInputSource(QIODevice* dev); +void delete_QXmlInputSource(QXmlInputSource* obj) { delete obj; } + QString data(QXmlInputSource* theWrappedObject) const; + void fetchData(QXmlInputSource* theWrappedObject); + QString fromRawData(QXmlInputSource* theWrappedObject, const QByteArray& data, bool beginning = false); + QChar next(QXmlInputSource* theWrappedObject); + void reset(QXmlInputSource* theWrappedObject); + void setData(QXmlInputSource* theWrappedObject, const QByteArray& dat); + void setData(QXmlInputSource* theWrappedObject, const QString& dat); +}; + + + + + +class PythonQtShell_QXmlLexicalHandler : public QXmlLexicalHandler +{ +public: + PythonQtShell_QXmlLexicalHandler():QXmlLexicalHandler(),_wrapper(NULL) {}; + + ~PythonQtShell_QXmlLexicalHandler(); + +virtual bool comment(const QString& ch); +virtual bool endCDATA(); +virtual bool endDTD(); +virtual bool endEntity(const QString& name); +virtual QString errorString() const; +virtual bool startCDATA(); +virtual bool startDTD(const QString& name, const QString& publicId, const QString& systemId); +virtual bool startEntity(const QString& name); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QXmlLexicalHandler : public QObject +{ Q_OBJECT +public: +public slots: +QXmlLexicalHandler* new_QXmlLexicalHandler(); +void delete_QXmlLexicalHandler(QXmlLexicalHandler* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QXmlLocator : public QXmlLocator +{ +public: + PythonQtShell_QXmlLocator():QXmlLocator(),_wrapper(NULL) {}; + + ~PythonQtShell_QXmlLocator(); + +virtual int columnNumber() const; +virtual int lineNumber() const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QXmlLocator : public QObject +{ Q_OBJECT +public: +public slots: +QXmlLocator* new_QXmlLocator(); +void delete_QXmlLocator(QXmlLocator* obj) { delete obj; } +}; + + + + + +class PythonQtWrapper_QXmlParseException : public QObject +{ Q_OBJECT +public: +public slots: +QXmlParseException* new_QXmlParseException(const QString& name = QString(), int c = -1, int l = -1, const QString& p = QString(), const QString& s = QString()); +QXmlParseException* new_QXmlParseException(const QXmlParseException& other); +void delete_QXmlParseException(QXmlParseException* obj) { delete obj; } + int columnNumber(QXmlParseException* theWrappedObject) const; + int lineNumber(QXmlParseException* theWrappedObject) const; + QString message(QXmlParseException* theWrappedObject) const; + QString publicId(QXmlParseException* theWrappedObject) const; + QString systemId(QXmlParseException* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QXmlReader : public QXmlReader +{ +public: + PythonQtShell_QXmlReader():QXmlReader(),_wrapper(NULL) {}; + + ~PythonQtShell_QXmlReader(); + +virtual QXmlDTDHandler* DTDHandler() const; +virtual QXmlContentHandler* contentHandler() const; +virtual QXmlDeclHandler* declHandler() const; +virtual QXmlEntityResolver* entityResolver() const; +virtual QXmlErrorHandler* errorHandler() const; +virtual bool feature(const QString& name, bool* ok = 0) const; +virtual bool hasFeature(const QString& name) const; +virtual bool hasProperty(const QString& name) const; +virtual QXmlLexicalHandler* lexicalHandler() const; +virtual bool parse(const QXmlInputSource& input); +virtual bool parse(const QXmlInputSource* input); +virtual void* property(const QString& name, bool* ok = 0) const; +virtual void setContentHandler(QXmlContentHandler* handler); +virtual void setDTDHandler(QXmlDTDHandler* handler); +virtual void setDeclHandler(QXmlDeclHandler* handler); +virtual void setEntityResolver(QXmlEntityResolver* handler); +virtual void setErrorHandler(QXmlErrorHandler* handler); +virtual void setFeature(const QString& name, bool value); +virtual void setLexicalHandler(QXmlLexicalHandler* handler); +virtual void setProperty(const QString& name, void* value); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QXmlReader : public QObject +{ Q_OBJECT +public: +public slots: +QXmlReader* new_QXmlReader(); +void delete_QXmlReader(QXmlReader* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QXmlSimpleReader : public QXmlSimpleReader +{ +public: + PythonQtShell_QXmlSimpleReader():QXmlSimpleReader(),_wrapper(NULL) {}; + + ~PythonQtShell_QXmlSimpleReader(); + +virtual QXmlDTDHandler* DTDHandler() const; +virtual QXmlContentHandler* contentHandler() const; +virtual QXmlDeclHandler* declHandler() const; +virtual QXmlEntityResolver* entityResolver() const; +virtual QXmlErrorHandler* errorHandler() const; +virtual bool feature(const QString& name, bool* ok = 0) const; +virtual bool hasFeature(const QString& name) const; +virtual bool hasProperty(const QString& name) const; +virtual QXmlLexicalHandler* lexicalHandler() const; +virtual bool parse(const QXmlInputSource& input); +virtual bool parse(const QXmlInputSource* input); +virtual bool parse(const QXmlInputSource* input, bool incremental); +virtual bool parseContinue(); +virtual void* property(const QString& name, bool* ok = 0) const; +virtual void setContentHandler(QXmlContentHandler* handler); +virtual void setDTDHandler(QXmlDTDHandler* handler); +virtual void setDeclHandler(QXmlDeclHandler* handler); +virtual void setEntityResolver(QXmlEntityResolver* handler); +virtual void setErrorHandler(QXmlErrorHandler* handler); +virtual void setFeature(const QString& name, bool value); +virtual void setLexicalHandler(QXmlLexicalHandler* handler); +virtual void setProperty(const QString& name, void* value); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QXmlSimpleReader : public QXmlSimpleReader +{ public: +inline QXmlDTDHandler* promoted_DTDHandler() const { return QXmlSimpleReader::DTDHandler(); } +inline QXmlContentHandler* promoted_contentHandler() const { return QXmlSimpleReader::contentHandler(); } +inline QXmlDeclHandler* promoted_declHandler() const { return QXmlSimpleReader::declHandler(); } +inline QXmlEntityResolver* promoted_entityResolver() const { return QXmlSimpleReader::entityResolver(); } +inline QXmlErrorHandler* promoted_errorHandler() const { return QXmlSimpleReader::errorHandler(); } +inline bool promoted_feature(const QString& name, bool* ok = 0) const { return QXmlSimpleReader::feature(name, ok); } +inline bool promoted_hasFeature(const QString& name) const { return QXmlSimpleReader::hasFeature(name); } +inline bool promoted_hasProperty(const QString& name) const { return QXmlSimpleReader::hasProperty(name); } +inline QXmlLexicalHandler* promoted_lexicalHandler() const { return QXmlSimpleReader::lexicalHandler(); } +inline bool promoted_parse(const QXmlInputSource& input) { return QXmlSimpleReader::parse(input); } +inline bool promoted_parse(const QXmlInputSource* input) { return QXmlSimpleReader::parse(input); } +inline bool promoted_parse(const QXmlInputSource* input, bool incremental) { return QXmlSimpleReader::parse(input, incremental); } +inline bool promoted_parseContinue() { return QXmlSimpleReader::parseContinue(); } +inline void* promoted_property(const QString& name, bool* ok = 0) const { return QXmlSimpleReader::property(name, ok); } +inline void promoted_setContentHandler(QXmlContentHandler* handler) { QXmlSimpleReader::setContentHandler(handler); } +inline void promoted_setDTDHandler(QXmlDTDHandler* handler) { QXmlSimpleReader::setDTDHandler(handler); } +inline void promoted_setDeclHandler(QXmlDeclHandler* handler) { QXmlSimpleReader::setDeclHandler(handler); } +inline void promoted_setEntityResolver(QXmlEntityResolver* handler) { QXmlSimpleReader::setEntityResolver(handler); } +inline void promoted_setErrorHandler(QXmlErrorHandler* handler) { QXmlSimpleReader::setErrorHandler(handler); } +inline void promoted_setFeature(const QString& name, bool value) { QXmlSimpleReader::setFeature(name, value); } +inline void promoted_setLexicalHandler(QXmlLexicalHandler* handler) { QXmlSimpleReader::setLexicalHandler(handler); } +inline void promoted_setProperty(const QString& name, void* value) { QXmlSimpleReader::setProperty(name, value); } +}; + +class PythonQtWrapper_QXmlSimpleReader : public QObject +{ Q_OBJECT +public: +public slots: +QXmlSimpleReader* new_QXmlSimpleReader(); +void delete_QXmlSimpleReader(QXmlSimpleReader* obj) { delete obj; } + QXmlDTDHandler* DTDHandler(QXmlSimpleReader* theWrappedObject) const; + QXmlContentHandler* contentHandler(QXmlSimpleReader* theWrappedObject) const; + QXmlDeclHandler* declHandler(QXmlSimpleReader* theWrappedObject) const; + QXmlEntityResolver* entityResolver(QXmlSimpleReader* theWrappedObject) const; + QXmlErrorHandler* errorHandler(QXmlSimpleReader* theWrappedObject) const; + bool feature(QXmlSimpleReader* theWrappedObject, const QString& name, bool* ok = 0) const; + bool hasFeature(QXmlSimpleReader* theWrappedObject, const QString& name) const; + bool hasProperty(QXmlSimpleReader* theWrappedObject, const QString& name) const; + QXmlLexicalHandler* lexicalHandler(QXmlSimpleReader* theWrappedObject) const; + bool parse(QXmlSimpleReader* theWrappedObject, const QXmlInputSource& input); + bool parse(QXmlSimpleReader* theWrappedObject, const QXmlInputSource* input); + bool parse(QXmlSimpleReader* theWrappedObject, const QXmlInputSource* input, bool incremental); + bool parseContinue(QXmlSimpleReader* theWrappedObject); + void* property(QXmlSimpleReader* theWrappedObject, const QString& name, bool* ok = 0) const; + void setContentHandler(QXmlSimpleReader* theWrappedObject, QXmlContentHandler* handler); + void setDTDHandler(QXmlSimpleReader* theWrappedObject, QXmlDTDHandler* handler); + void setDeclHandler(QXmlSimpleReader* theWrappedObject, QXmlDeclHandler* handler); + void setEntityResolver(QXmlSimpleReader* theWrappedObject, QXmlEntityResolver* handler); + void setErrorHandler(QXmlSimpleReader* theWrappedObject, QXmlErrorHandler* handler); + void setFeature(QXmlSimpleReader* theWrappedObject, const QString& name, bool value); + void setLexicalHandler(QXmlSimpleReader* theWrappedObject, QXmlLexicalHandler* handler); + void setProperty(QXmlSimpleReader* theWrappedObject, const QString& name, void* value); +}; + + diff --git a/generated_cpp_50/com_trolltech_qt_xml/com_trolltech_qt_xml_init.cpp b/generated_cpp_50/com_trolltech_qt_xml/com_trolltech_qt_xml_init.cpp new file mode 100644 index 00000000..f82ddecd --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_xml/com_trolltech_qt_xml_init.cpp @@ -0,0 +1,43 @@ +#include +#include "com_trolltech_qt_xml0.h" + + +void PythonQt_init_QtXml(PyObject* module) { +PythonQt::priv()->registerCPPClass("QDomAttr", "QDomNode", "QtXml", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QDomCDATASection", "QDomText", "QtXml", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QDomCharacterData", "QDomNode", "QtXml", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QDomComment", "QDomCharacterData", "QtXml", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QDomDocument", "QDomNode", "QtXml", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QDomDocumentFragment", "QDomNode", "QtXml", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QDomDocumentType", "QDomNode", "QtXml", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QDomElement", "QDomNode", "QtXml", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QDomEntity", "QDomNode", "QtXml", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QDomEntityReference", "QDomNode", "QtXml", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QDomImplementation", "", "QtXml", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QDomNamedNodeMap", "", "QtXml", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QDomNode", "", "QtXml", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QDomNodeList", "", "QtXml", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); +PythonQt::priv()->registerCPPClass("QDomNotation", "QDomNode", "QtXml", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QDomProcessingInstruction", "QDomNode", "QtXml", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QDomText", "QDomCharacterData", "QtXml", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QXmlAttributes", "", "QtXml", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QXmlContentHandler", "", "QtXml", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QXmlDTDHandler", "", "QtXml", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QXmlDeclHandler", "", "QtXml", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QXmlDefaultHandler", "", "QtXml", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::self()->addParentClass("QXmlDefaultHandler", "QXmlContentHandler",PythonQtUpcastingOffset()); +PythonQt::self()->addParentClass("QXmlDefaultHandler", "QXmlErrorHandler",PythonQtUpcastingOffset()); +PythonQt::self()->addParentClass("QXmlDefaultHandler", "QXmlDTDHandler",PythonQtUpcastingOffset()); +PythonQt::self()->addParentClass("QXmlDefaultHandler", "QXmlEntityResolver",PythonQtUpcastingOffset()); +PythonQt::self()->addParentClass("QXmlDefaultHandler", "QXmlLexicalHandler",PythonQtUpcastingOffset()); +PythonQt::self()->addParentClass("QXmlDefaultHandler", "QXmlDeclHandler",PythonQtUpcastingOffset()); +PythonQt::priv()->registerCPPClass("QXmlEntityResolver", "", "QtXml", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QXmlErrorHandler", "", "QtXml", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QXmlInputSource", "", "QtXml", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QXmlLexicalHandler", "", "QtXml", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QXmlLocator", "", "QtXml", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QXmlParseException", "", "QtXml", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QXmlReader", "", "QtXml", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QXmlSimpleReader", "QXmlReader", "QtXml", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); + +} diff --git a/generated_cpp_50/com_trolltech_qt_xmlpatterns/com_trolltech_qt_xmlpatterns.pri b/generated_cpp_50/com_trolltech_qt_xmlpatterns/com_trolltech_qt_xmlpatterns.pri new file mode 100644 index 00000000..7e3085da --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_xmlpatterns/com_trolltech_qt_xmlpatterns.pri @@ -0,0 +1,6 @@ +HEADERS += \ + $$PWD/com_trolltech_qt_xmlpatterns0.h \ + +SOURCES += \ + $$PWD/com_trolltech_qt_xmlpatterns0.cpp \ + $$PWD/com_trolltech_qt_xmlpatterns_init.cpp diff --git a/generated_cpp_50/com_trolltech_qt_xmlpatterns/com_trolltech_qt_xmlpatterns0.cpp b/generated_cpp_50/com_trolltech_qt_xmlpatterns/com_trolltech_qt_xmlpatterns0.cpp new file mode 100644 index 00000000..25af0fd9 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_xmlpatterns/com_trolltech_qt_xmlpatterns0.cpp @@ -0,0 +1,2474 @@ +#include "com_trolltech_qt_xmlpatterns0.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +PythonQtShell_QAbstractMessageHandler::~PythonQtShell_QAbstractMessageHandler() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QAbstractMessageHandler::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractMessageHandler::childEvent(arg__1); +} +void PythonQtShell_QAbstractMessageHandler::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractMessageHandler::customEvent(arg__1); +} +bool PythonQtShell_QAbstractMessageHandler::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractMessageHandler::event(arg__1); +} +bool PythonQtShell_QAbstractMessageHandler::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractMessageHandler::eventFilter(arg__1, arg__2); +} +void PythonQtShell_QAbstractMessageHandler::handleMessage(QtMsgType type, const QString& description, const QUrl& identifier, const QSourceLocation& sourceLocation) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "handleMessage"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QtMsgType" , "const QString&" , "const QUrl&" , "const QSourceLocation&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); + void* args[5] = {NULL, (void*)&type, (void*)&description, (void*)&identifier, (void*)&sourceLocation}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractMessageHandler::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractMessageHandler::timerEvent(arg__1); +} +void PythonQtWrapper_QAbstractMessageHandler::message(QAbstractMessageHandler* theWrappedObject, QtMsgType type, const QString& description, const QUrl& identifier, const QSourceLocation& sourceLocation) +{ + ( theWrappedObject->message(type, description, identifier, sourceLocation)); +} + + + +PythonQtShell_QAbstractUriResolver::~PythonQtShell_QAbstractUriResolver() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QAbstractUriResolver::childEvent(QChildEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QChildEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractUriResolver::childEvent(arg__1); +} +void PythonQtShell_QAbstractUriResolver::customEvent(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractUriResolver::customEvent(arg__1); +} +bool PythonQtShell_QAbstractUriResolver::event(QEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + bool returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractUriResolver::event(arg__1); +} +bool PythonQtShell_QAbstractUriResolver::eventFilter(QObject* arg__1, QEvent* arg__2) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + bool returnValue; + void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); + } else { + returnValue = *((bool*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QAbstractUriResolver::eventFilter(arg__1, arg__2); +} +QUrl PythonQtShell_QAbstractUriResolver::resolve(const QUrl& relative, const QUrl& baseURI) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resolve"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QUrl" , "const QUrl&" , "const QUrl&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QUrl returnValue; + void* args[3] = {NULL, (void*)&relative, (void*)&baseURI}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("resolve", methodInfo, result); + } else { + returnValue = *((QUrl*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUrl(); +} +void PythonQtShell_QAbstractUriResolver::timerEvent(QTimerEvent* arg__1) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "QTimerEvent*"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractUriResolver::timerEvent(arg__1); +} +QAbstractUriResolver* PythonQtWrapper_QAbstractUriResolver::new_QAbstractUriResolver(QObject* parent) +{ +return new PythonQtShell_QAbstractUriResolver(parent); } + + + +PythonQtShell_QAbstractXmlNodeModel::~PythonQtShell_QAbstractXmlNodeModel() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QVector PythonQtShell_QAbstractXmlNodeModel::attributes(const QXmlNodeModelIndex& element) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "attributes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVector" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVector returnValue; + void* args[2] = {NULL, (void*)&element}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("attributes", methodInfo, result); + } else { + returnValue = *((QVector*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVector(); +} +QUrl PythonQtShell_QAbstractXmlNodeModel::baseUri(const QXmlNodeModelIndex& ni) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "baseUri"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QUrl" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QUrl returnValue; + void* args[2] = {NULL, (void*)&ni}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("baseUri", methodInfo, result); + } else { + returnValue = *((QUrl*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUrl(); +} +QXmlNodeModelIndex::DocumentOrder PythonQtShell_QAbstractXmlNodeModel::compareOrder(const QXmlNodeModelIndex& ni1, const QXmlNodeModelIndex& ni2) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "compareOrder"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlNodeModelIndex::DocumentOrder" , "const QXmlNodeModelIndex&" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QXmlNodeModelIndex::DocumentOrder returnValue; + void* args[3] = {NULL, (void*)&ni1, (void*)&ni2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("compareOrder", methodInfo, result); + } else { + returnValue = *((QXmlNodeModelIndex::DocumentOrder*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlNodeModelIndex::DocumentOrder(); +} +QUrl PythonQtShell_QAbstractXmlNodeModel::documentUri(const QXmlNodeModelIndex& ni) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "documentUri"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QUrl" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QUrl returnValue; + void* args[2] = {NULL, (void*)&ni}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("documentUri", methodInfo, result); + } else { + returnValue = *((QUrl*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUrl(); +} +QXmlNodeModelIndex PythonQtShell_QAbstractXmlNodeModel::elementById(const QXmlName& NCName) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "elementById"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlNodeModelIndex" , "const QXmlName&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QXmlNodeModelIndex returnValue; + void* args[2] = {NULL, (void*)&NCName}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("elementById", methodInfo, result); + } else { + returnValue = *((QXmlNodeModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlNodeModelIndex(); +} +QXmlNodeModelIndex::NodeKind PythonQtShell_QAbstractXmlNodeModel::kind(const QXmlNodeModelIndex& ni) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "kind"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlNodeModelIndex::NodeKind" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QXmlNodeModelIndex::NodeKind returnValue; + void* args[2] = {NULL, (void*)&ni}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("kind", methodInfo, result); + } else { + returnValue = *((QXmlNodeModelIndex::NodeKind*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlNodeModelIndex::NodeKind(); +} +QXmlName PythonQtShell_QAbstractXmlNodeModel::name(const QXmlNodeModelIndex& ni) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "name"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlName" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QXmlName returnValue; + void* args[2] = {NULL, (void*)&ni}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("name", methodInfo, result); + } else { + returnValue = *((QXmlName*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlName(); +} +QVector PythonQtShell_QAbstractXmlNodeModel::namespaceBindings(const QXmlNodeModelIndex& n) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "namespaceBindings"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVector" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVector returnValue; + void* args[2] = {NULL, (void*)&n}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("namespaceBindings", methodInfo, result); + } else { + returnValue = *((QVector*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVector(); +} +QXmlNodeModelIndex PythonQtShell_QAbstractXmlNodeModel::nextFromSimpleAxis(QAbstractXmlNodeModel::SimpleAxis axis, const QXmlNodeModelIndex& origin) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextFromSimpleAxis"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlNodeModelIndex" , "QAbstractXmlNodeModel::SimpleAxis" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QXmlNodeModelIndex returnValue; + void* args[3] = {NULL, (void*)&axis, (void*)&origin}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nextFromSimpleAxis", methodInfo, result); + } else { + returnValue = *((QXmlNodeModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlNodeModelIndex(); +} +QVector PythonQtShell_QAbstractXmlNodeModel::nodesByIdref(const QXmlName& NCName) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nodesByIdref"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVector" , "const QXmlName&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVector returnValue; + void* args[2] = {NULL, (void*)&NCName}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nodesByIdref", methodInfo, result); + } else { + returnValue = *((QVector*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVector(); +} +QXmlNodeModelIndex PythonQtShell_QAbstractXmlNodeModel::root(const QXmlNodeModelIndex& n) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "root"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlNodeModelIndex" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QXmlNodeModelIndex returnValue; + void* args[2] = {NULL, (void*)&n}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("root", methodInfo, result); + } else { + returnValue = *((QXmlNodeModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlNodeModelIndex(); +} +QString PythonQtShell_QAbstractXmlNodeModel::stringValue(const QXmlNodeModelIndex& n) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stringValue"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QString returnValue; + void* args[2] = {NULL, (void*)&n}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("stringValue", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QString(); +} +QVariant PythonQtShell_QAbstractXmlNodeModel::typedValue(const QXmlNodeModelIndex& n) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "typedValue"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&n}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("typedValue", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVariant(); +} +QSourceLocation PythonQtWrapper_QAbstractXmlNodeModel::sourceLocation(QAbstractXmlNodeModel* theWrappedObject, const QXmlNodeModelIndex& index) const +{ + return ( theWrappedObject->sourceLocation(index)); +} + + + +PythonQtShell_QAbstractXmlReceiver::~PythonQtShell_QAbstractXmlReceiver() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QAbstractXmlReceiver::atomicValue(const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atomicValue"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractXmlReceiver::attribute(const QXmlName& name, const QStringRef& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "attribute"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QXmlName&" , "const QStringRef&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&name, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractXmlReceiver::characters(const QStringRef& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "characters"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QStringRef&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractXmlReceiver::comment(const QString& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "comment"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractXmlReceiver::endDocument() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endDocument"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractXmlReceiver::endElement() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endElement"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractXmlReceiver::endOfSequence() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endOfSequence"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractXmlReceiver::namespaceBinding(const QXmlName& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "namespaceBinding"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QXmlName&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractXmlReceiver::processingInstruction(const QXmlName& target, const QString& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "processingInstruction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QXmlName&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&target, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractXmlReceiver::startDocument() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDocument"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractXmlReceiver::startElement(const QXmlName& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startElement"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QXmlName&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractXmlReceiver::startOfSequence() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startOfSequence"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + +} +void PythonQtShell_QAbstractXmlReceiver::whitespaceOnly(const QStringRef& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "whitespaceOnly"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QStringRef&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QAbstractXmlReceiver::whitespaceOnly(value); +} +QAbstractXmlReceiver* PythonQtWrapper_QAbstractXmlReceiver::new_QAbstractXmlReceiver() +{ +return new PythonQtShell_QAbstractXmlReceiver(); } + +void PythonQtWrapper_QAbstractXmlReceiver::whitespaceOnly(QAbstractXmlReceiver* theWrappedObject, const QStringRef& value) +{ + ( ((PythonQtPublicPromoter_QAbstractXmlReceiver*)theWrappedObject)->promoted_whitespaceOnly(value)); +} + + + + + + + +PythonQtShell_QSimpleXmlNodeModel::~PythonQtShell_QSimpleXmlNodeModel() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QVector PythonQtShell_QSimpleXmlNodeModel::attributes(const QXmlNodeModelIndex& element) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "attributes"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVector" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVector returnValue; + void* args[2] = {NULL, (void*)&element}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("attributes", methodInfo, result); + } else { + returnValue = *((QVector*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVector(); +} +QUrl PythonQtShell_QSimpleXmlNodeModel::baseUri(const QXmlNodeModelIndex& node) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "baseUri"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QUrl" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QUrl returnValue; + void* args[2] = {NULL, (void*)&node}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("baseUri", methodInfo, result); + } else { + returnValue = *((QUrl*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSimpleXmlNodeModel::baseUri(node); +} +QXmlNodeModelIndex::DocumentOrder PythonQtShell_QSimpleXmlNodeModel::compareOrder(const QXmlNodeModelIndex& ni1, const QXmlNodeModelIndex& ni2) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "compareOrder"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlNodeModelIndex::DocumentOrder" , "const QXmlNodeModelIndex&" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QXmlNodeModelIndex::DocumentOrder returnValue; + void* args[3] = {NULL, (void*)&ni1, (void*)&ni2}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("compareOrder", methodInfo, result); + } else { + returnValue = *((QXmlNodeModelIndex::DocumentOrder*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlNodeModelIndex::DocumentOrder(); +} +QUrl PythonQtShell_QSimpleXmlNodeModel::documentUri(const QXmlNodeModelIndex& ni) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "documentUri"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QUrl" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QUrl returnValue; + void* args[2] = {NULL, (void*)&ni}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("documentUri", methodInfo, result); + } else { + returnValue = *((QUrl*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QUrl(); +} +QXmlNodeModelIndex PythonQtShell_QSimpleXmlNodeModel::elementById(const QXmlName& id) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "elementById"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlNodeModelIndex" , "const QXmlName&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QXmlNodeModelIndex returnValue; + void* args[2] = {NULL, (void*)&id}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("elementById", methodInfo, result); + } else { + returnValue = *((QXmlNodeModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSimpleXmlNodeModel::elementById(id); +} +QXmlNodeModelIndex::NodeKind PythonQtShell_QSimpleXmlNodeModel::kind(const QXmlNodeModelIndex& ni) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "kind"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlNodeModelIndex::NodeKind" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QXmlNodeModelIndex::NodeKind returnValue; + void* args[2] = {NULL, (void*)&ni}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("kind", methodInfo, result); + } else { + returnValue = *((QXmlNodeModelIndex::NodeKind*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlNodeModelIndex::NodeKind(); +} +QXmlName PythonQtShell_QSimpleXmlNodeModel::name(const QXmlNodeModelIndex& ni) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "name"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlName" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QXmlName returnValue; + void* args[2] = {NULL, (void*)&ni}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("name", methodInfo, result); + } else { + returnValue = *((QXmlName*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlName(); +} +QVector PythonQtShell_QSimpleXmlNodeModel::namespaceBindings(const QXmlNodeModelIndex& arg__1) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "namespaceBindings"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVector" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVector returnValue; + void* args[2] = {NULL, (void*)&arg__1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("namespaceBindings", methodInfo, result); + } else { + returnValue = *((QVector*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSimpleXmlNodeModel::namespaceBindings(arg__1); +} +QXmlNodeModelIndex PythonQtShell_QSimpleXmlNodeModel::nextFromSimpleAxis(QAbstractXmlNodeModel::SimpleAxis axis, const QXmlNodeModelIndex& origin) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextFromSimpleAxis"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlNodeModelIndex" , "QAbstractXmlNodeModel::SimpleAxis" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + QXmlNodeModelIndex returnValue; + void* args[3] = {NULL, (void*)&axis, (void*)&origin}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nextFromSimpleAxis", methodInfo, result); + } else { + returnValue = *((QXmlNodeModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlNodeModelIndex(); +} +QVector PythonQtShell_QSimpleXmlNodeModel::nodesByIdref(const QXmlName& idref) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nodesByIdref"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVector" , "const QXmlName&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVector returnValue; + void* args[2] = {NULL, (void*)&idref}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("nodesByIdref", methodInfo, result); + } else { + returnValue = *((QVector*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSimpleXmlNodeModel::nodesByIdref(idref); +} +QXmlNodeModelIndex PythonQtShell_QSimpleXmlNodeModel::root(const QXmlNodeModelIndex& n) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "root"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QXmlNodeModelIndex" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QXmlNodeModelIndex returnValue; + void* args[2] = {NULL, (void*)&n}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("root", methodInfo, result); + } else { + returnValue = *((QXmlNodeModelIndex*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QXmlNodeModelIndex(); +} +QString PythonQtShell_QSimpleXmlNodeModel::stringValue(const QXmlNodeModelIndex& node) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stringValue"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QString" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QString returnValue; + void* args[2] = {NULL, (void*)&node}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("stringValue", methodInfo, result); + } else { + returnValue = *((QString*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QSimpleXmlNodeModel::stringValue(node); +} +QVariant PythonQtShell_QSimpleXmlNodeModel::typedValue(const QXmlNodeModelIndex& n) const +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "typedValue"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"QVariant" , "const QXmlNodeModelIndex&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + QVariant returnValue; + void* args[2] = {NULL, (void*)&n}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { + args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); + if (args[0]!=&returnValue) { + if (args[0]==NULL) { + PythonQt::priv()->handleVirtualOverloadReturnError("typedValue", methodInfo, result); + } else { + returnValue = *((QVariant*)args[0]); + } + } + } + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return returnValue; + } +} + return QVariant(); +} +QSimpleXmlNodeModel* PythonQtWrapper_QSimpleXmlNodeModel::new_QSimpleXmlNodeModel(const QXmlNamePool& namePool) +{ +return new PythonQtShell_QSimpleXmlNodeModel(namePool); } + +QUrl PythonQtWrapper_QSimpleXmlNodeModel::baseUri(QSimpleXmlNodeModel* theWrappedObject, const QXmlNodeModelIndex& node) const +{ + return ( ((PythonQtPublicPromoter_QSimpleXmlNodeModel*)theWrappedObject)->promoted_baseUri(node)); +} + +QXmlNodeModelIndex PythonQtWrapper_QSimpleXmlNodeModel::elementById(QSimpleXmlNodeModel* theWrappedObject, const QXmlName& id) const +{ + return ( ((PythonQtPublicPromoter_QSimpleXmlNodeModel*)theWrappedObject)->promoted_elementById(id)); +} + +QXmlNamePool* PythonQtWrapper_QSimpleXmlNodeModel::namePool(QSimpleXmlNodeModel* theWrappedObject) const +{ + return &( theWrappedObject->namePool()); +} + +QVector PythonQtWrapper_QSimpleXmlNodeModel::namespaceBindings(QSimpleXmlNodeModel* theWrappedObject, const QXmlNodeModelIndex& arg__1) const +{ + return ( ((PythonQtPublicPromoter_QSimpleXmlNodeModel*)theWrappedObject)->promoted_namespaceBindings(arg__1)); +} + +QVector PythonQtWrapper_QSimpleXmlNodeModel::nodesByIdref(QSimpleXmlNodeModel* theWrappedObject, const QXmlName& idref) const +{ + return ( ((PythonQtPublicPromoter_QSimpleXmlNodeModel*)theWrappedObject)->promoted_nodesByIdref(idref)); +} + +QString PythonQtWrapper_QSimpleXmlNodeModel::stringValue(QSimpleXmlNodeModel* theWrappedObject, const QXmlNodeModelIndex& node) const +{ + return ( ((PythonQtPublicPromoter_QSimpleXmlNodeModel*)theWrappedObject)->promoted_stringValue(node)); +} + + + +QSourceLocation* PythonQtWrapper_QSourceLocation::new_QSourceLocation() +{ +return new QSourceLocation(); } + +QSourceLocation* PythonQtWrapper_QSourceLocation::new_QSourceLocation(const QSourceLocation& other) +{ +return new QSourceLocation(other); } + +QSourceLocation* PythonQtWrapper_QSourceLocation::new_QSourceLocation(const QUrl& uri, int line, int column) +{ +return new QSourceLocation(uri, line, column); } + +qint64 PythonQtWrapper_QSourceLocation::column(QSourceLocation* theWrappedObject) const +{ + return ( theWrappedObject->column()); +} + +bool PythonQtWrapper_QSourceLocation::isNull(QSourceLocation* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +qint64 PythonQtWrapper_QSourceLocation::line(QSourceLocation* theWrappedObject) const +{ + return ( theWrappedObject->line()); +} + +bool PythonQtWrapper_QSourceLocation::__ne__(QSourceLocation* theWrappedObject, const QSourceLocation& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QSourceLocation::__eq__(QSourceLocation* theWrappedObject, const QSourceLocation& other) const +{ + return ( (*theWrappedObject)== other); +} + +void PythonQtWrapper_QSourceLocation::setColumn(QSourceLocation* theWrappedObject, qint64 newColumn) +{ + ( theWrappedObject->setColumn(newColumn)); +} + +void PythonQtWrapper_QSourceLocation::setLine(QSourceLocation* theWrappedObject, qint64 newLine) +{ + ( theWrappedObject->setLine(newLine)); +} + +void PythonQtWrapper_QSourceLocation::setUri(QSourceLocation* theWrappedObject, const QUrl& newUri) +{ + ( theWrappedObject->setUri(newUri)); +} + +QUrl PythonQtWrapper_QSourceLocation::uri(QSourceLocation* theWrappedObject) const +{ + return ( theWrappedObject->uri()); +} + +QString PythonQtWrapper_QSourceLocation::py_toString(QSourceLocation* obj) { + QString result; + QDebug d(&result); + d << *obj; + return result; +} + + + +PythonQtShell_QXmlFormatter::~PythonQtShell_QXmlFormatter() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QXmlFormatter::atomicValue(const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atomicValue"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlFormatter::atomicValue(value); +} +void PythonQtShell_QXmlFormatter::attribute(const QXmlName& name, const QStringRef& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "attribute"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QXmlName&" , "const QStringRef&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&name, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlFormatter::attribute(name, value); +} +void PythonQtShell_QXmlFormatter::characters(const QStringRef& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "characters"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QStringRef&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlFormatter::characters(value); +} +void PythonQtShell_QXmlFormatter::comment(const QString& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "comment"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlFormatter::comment(value); +} +void PythonQtShell_QXmlFormatter::endDocument() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endDocument"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlFormatter::endDocument(); +} +void PythonQtShell_QXmlFormatter::endElement() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endElement"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlFormatter::endElement(); +} +void PythonQtShell_QXmlFormatter::endOfSequence() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endOfSequence"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlFormatter::endOfSequence(); +} +void PythonQtShell_QXmlFormatter::namespaceBinding(const QXmlName& nb) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "namespaceBinding"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QXmlName&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&nb}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlFormatter::namespaceBinding(nb); +} +void PythonQtShell_QXmlFormatter::processingInstruction(const QXmlName& name, const QString& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "processingInstruction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QXmlName&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&name, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlFormatter::processingInstruction(name, value); +} +void PythonQtShell_QXmlFormatter::startDocument() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDocument"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlFormatter::startDocument(); +} +void PythonQtShell_QXmlFormatter::startElement(const QXmlName& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startElement"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QXmlName&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlFormatter::startElement(name); +} +void PythonQtShell_QXmlFormatter::startOfSequence() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startOfSequence"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlFormatter::startOfSequence(); +} +void PythonQtShell_QXmlFormatter::whitespaceOnly(const QStringRef& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "whitespaceOnly"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QStringRef&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlFormatter::whitespaceOnly(value); +} +QXmlFormatter* PythonQtWrapper_QXmlFormatter::new_QXmlFormatter(const QXmlQuery& query, QIODevice* outputDevice) +{ +return new PythonQtShell_QXmlFormatter(query, outputDevice); } + +void PythonQtWrapper_QXmlFormatter::atomicValue(QXmlFormatter* theWrappedObject, const QVariant& value) +{ + ( ((PythonQtPublicPromoter_QXmlFormatter*)theWrappedObject)->promoted_atomicValue(value)); +} + +void PythonQtWrapper_QXmlFormatter::attribute(QXmlFormatter* theWrappedObject, const QXmlName& name, const QStringRef& value) +{ + ( ((PythonQtPublicPromoter_QXmlFormatter*)theWrappedObject)->promoted_attribute(name, value)); +} + +void PythonQtWrapper_QXmlFormatter::characters(QXmlFormatter* theWrappedObject, const QStringRef& value) +{ + ( ((PythonQtPublicPromoter_QXmlFormatter*)theWrappedObject)->promoted_characters(value)); +} + +void PythonQtWrapper_QXmlFormatter::comment(QXmlFormatter* theWrappedObject, const QString& value) +{ + ( ((PythonQtPublicPromoter_QXmlFormatter*)theWrappedObject)->promoted_comment(value)); +} + +void PythonQtWrapper_QXmlFormatter::endDocument(QXmlFormatter* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QXmlFormatter*)theWrappedObject)->promoted_endDocument()); +} + +void PythonQtWrapper_QXmlFormatter::endElement(QXmlFormatter* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QXmlFormatter*)theWrappedObject)->promoted_endElement()); +} + +void PythonQtWrapper_QXmlFormatter::endOfSequence(QXmlFormatter* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QXmlFormatter*)theWrappedObject)->promoted_endOfSequence()); +} + +int PythonQtWrapper_QXmlFormatter::indentationDepth(QXmlFormatter* theWrappedObject) const +{ + return ( theWrappedObject->indentationDepth()); +} + +void PythonQtWrapper_QXmlFormatter::processingInstruction(QXmlFormatter* theWrappedObject, const QXmlName& name, const QString& value) +{ + ( ((PythonQtPublicPromoter_QXmlFormatter*)theWrappedObject)->promoted_processingInstruction(name, value)); +} + +void PythonQtWrapper_QXmlFormatter::setIndentationDepth(QXmlFormatter* theWrappedObject, int depth) +{ + ( theWrappedObject->setIndentationDepth(depth)); +} + +void PythonQtWrapper_QXmlFormatter::startDocument(QXmlFormatter* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QXmlFormatter*)theWrappedObject)->promoted_startDocument()); +} + +void PythonQtWrapper_QXmlFormatter::startElement(QXmlFormatter* theWrappedObject, const QXmlName& name) +{ + ( ((PythonQtPublicPromoter_QXmlFormatter*)theWrappedObject)->promoted_startElement(name)); +} + +void PythonQtWrapper_QXmlFormatter::startOfSequence(QXmlFormatter* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QXmlFormatter*)theWrappedObject)->promoted_startOfSequence()); +} + + + +QXmlItem* PythonQtWrapper_QXmlItem::new_QXmlItem() +{ +return new QXmlItem(); } + +QXmlItem* PythonQtWrapper_QXmlItem::new_QXmlItem(const QVariant& atomicValue) +{ +return new QXmlItem(atomicValue); } + +QXmlItem* PythonQtWrapper_QXmlItem::new_QXmlItem(const QXmlItem& other) +{ +return new QXmlItem(other); } + +QXmlItem* PythonQtWrapper_QXmlItem::new_QXmlItem(const QXmlNodeModelIndex& node) +{ +return new QXmlItem(node); } + +bool PythonQtWrapper_QXmlItem::isAtomicValue(QXmlItem* theWrappedObject) const +{ + return ( theWrappedObject->isAtomicValue()); +} + +bool PythonQtWrapper_QXmlItem::isNode(QXmlItem* theWrappedObject) const +{ + return ( theWrappedObject->isNode()); +} + +bool PythonQtWrapper_QXmlItem::isNull(QXmlItem* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +QVariant PythonQtWrapper_QXmlItem::toAtomicValue(QXmlItem* theWrappedObject) const +{ + return ( theWrappedObject->toAtomicValue()); +} + +QXmlNodeModelIndex PythonQtWrapper_QXmlItem::toNodeModelIndex(QXmlItem* theWrappedObject) const +{ + return ( theWrappedObject->toNodeModelIndex()); +} + + + +QXmlName* PythonQtWrapper_QXmlName::new_QXmlName() +{ +return new QXmlName(); } + +QXmlName* PythonQtWrapper_QXmlName::new_QXmlName(QXmlNamePool& namePool, const QString& localName, const QString& namespaceURI, const QString& prefix) +{ +return new QXmlName(namePool, localName, namespaceURI, prefix); } + +QXmlName PythonQtWrapper_QXmlName::static_QXmlName_fromClarkName(const QString& clarkName, const QXmlNamePool& namePool) +{ + return (QXmlName::fromClarkName(clarkName, namePool)); +} + +bool PythonQtWrapper_QXmlName::static_QXmlName_isNCName(const QString& candidate) +{ + return (QXmlName::isNCName(candidate)); +} + +bool PythonQtWrapper_QXmlName::isNull(QXmlName* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +QString PythonQtWrapper_QXmlName::localName(QXmlName* theWrappedObject, const QXmlNamePool& query) const +{ + return ( theWrappedObject->localName(query)); +} + +QString PythonQtWrapper_QXmlName::namespaceUri(QXmlName* theWrappedObject, const QXmlNamePool& query) const +{ + return ( theWrappedObject->namespaceUri(query)); +} + +bool PythonQtWrapper_QXmlName::__ne__(QXmlName* theWrappedObject, const QXmlName& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QXmlName::__eq__(QXmlName* theWrappedObject, const QXmlName& other) const +{ + return ( (*theWrappedObject)== other); +} + +QString PythonQtWrapper_QXmlName::prefix(QXmlName* theWrappedObject, const QXmlNamePool& query) const +{ + return ( theWrappedObject->prefix(query)); +} + +QString PythonQtWrapper_QXmlName::toClarkName(QXmlName* theWrappedObject, const QXmlNamePool& query) const +{ + return ( theWrappedObject->toClarkName(query)); +} + + + +QXmlNamePool* PythonQtWrapper_QXmlNamePool::new_QXmlNamePool() +{ +return new QXmlNamePool(); } + +QXmlNamePool* PythonQtWrapper_QXmlNamePool::new_QXmlNamePool(const QXmlNamePool& other) +{ +return new QXmlNamePool(other); } + + + +QXmlNodeModelIndex* PythonQtWrapper_QXmlNodeModelIndex::new_QXmlNodeModelIndex() +{ +return new QXmlNodeModelIndex(); } + +QXmlNodeModelIndex* PythonQtWrapper_QXmlNodeModelIndex::new_QXmlNodeModelIndex(const QXmlNodeModelIndex& other) +{ +return new QXmlNodeModelIndex(other); } + +qint64 PythonQtWrapper_QXmlNodeModelIndex::additionalData(QXmlNodeModelIndex* theWrappedObject) const +{ + return ( theWrappedObject->additionalData()); +} + +qint64 PythonQtWrapper_QXmlNodeModelIndex::data(QXmlNodeModelIndex* theWrappedObject) const +{ + return ( theWrappedObject->data()); +} + +bool PythonQtWrapper_QXmlNodeModelIndex::isNull(QXmlNodeModelIndex* theWrappedObject) const +{ + return ( theWrappedObject->isNull()); +} + +const QAbstractXmlNodeModel* PythonQtWrapper_QXmlNodeModelIndex::model(QXmlNodeModelIndex* theWrappedObject) const +{ + return ( theWrappedObject->model()); +} + +bool PythonQtWrapper_QXmlNodeModelIndex::__ne__(QXmlNodeModelIndex* theWrappedObject, const QXmlNodeModelIndex& other) const +{ + return ( (*theWrappedObject)!= other); +} + +bool PythonQtWrapper_QXmlNodeModelIndex::__eq__(QXmlNodeModelIndex* theWrappedObject, const QXmlNodeModelIndex& other) const +{ + return ( (*theWrappedObject)== other); +} + + + +QXmlQuery* PythonQtWrapper_QXmlQuery::new_QXmlQuery() +{ +return new QXmlQuery(); } + +QXmlQuery* PythonQtWrapper_QXmlQuery::new_QXmlQuery(QXmlQuery::QueryLanguage queryLanguage, const QXmlNamePool& np) +{ +return new QXmlQuery(queryLanguage, np); } + +QXmlQuery* PythonQtWrapper_QXmlQuery::new_QXmlQuery(const QXmlNamePool& np) +{ +return new QXmlQuery(np); } + +QXmlQuery* PythonQtWrapper_QXmlQuery::new_QXmlQuery(const QXmlQuery& other) +{ +return new QXmlQuery(other); } + +void PythonQtWrapper_QXmlQuery::bindVariable(QXmlQuery* theWrappedObject, const QString& localName, QIODevice* arg__2) +{ + ( theWrappedObject->bindVariable(localName, arg__2)); +} + +void PythonQtWrapper_QXmlQuery::bindVariable(QXmlQuery* theWrappedObject, const QString& localName, const QXmlItem& value) +{ + ( theWrappedObject->bindVariable(localName, value)); +} + +void PythonQtWrapper_QXmlQuery::bindVariable(QXmlQuery* theWrappedObject, const QString& localName, const QXmlQuery& query) +{ + ( theWrappedObject->bindVariable(localName, query)); +} + +void PythonQtWrapper_QXmlQuery::bindVariable(QXmlQuery* theWrappedObject, const QXmlName& name, QIODevice* arg__2) +{ + ( theWrappedObject->bindVariable(name, arg__2)); +} + +void PythonQtWrapper_QXmlQuery::bindVariable(QXmlQuery* theWrappedObject, const QXmlName& name, const QXmlItem& value) +{ + ( theWrappedObject->bindVariable(name, value)); +} + +void PythonQtWrapper_QXmlQuery::bindVariable(QXmlQuery* theWrappedObject, const QXmlName& name, const QXmlQuery& query) +{ + ( theWrappedObject->bindVariable(name, query)); +} + +bool PythonQtWrapper_QXmlQuery::evaluateTo(QXmlQuery* theWrappedObject, QIODevice* target) const +{ + return ( theWrappedObject->evaluateTo(target)); +} + +bool PythonQtWrapper_QXmlQuery::evaluateTo(QXmlQuery* theWrappedObject, QString* output) const +{ + return ( theWrappedObject->evaluateTo(output)); +} + +bool PythonQtWrapper_QXmlQuery::evaluateTo(QXmlQuery* theWrappedObject, QStringList* target) const +{ + return ( theWrappedObject->evaluateTo(target)); +} + +void PythonQtWrapper_QXmlQuery::evaluateTo(QXmlQuery* theWrappedObject, QXmlResultItems* result) const +{ + ( theWrappedObject->evaluateTo(result)); +} + +QXmlName PythonQtWrapper_QXmlQuery::initialTemplateName(QXmlQuery* theWrappedObject) const +{ + return ( theWrappedObject->initialTemplateName()); +} + +bool PythonQtWrapper_QXmlQuery::isValid(QXmlQuery* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +QAbstractMessageHandler* PythonQtWrapper_QXmlQuery::messageHandler(QXmlQuery* theWrappedObject) const +{ + return ( theWrappedObject->messageHandler()); +} + +QXmlNamePool PythonQtWrapper_QXmlQuery::namePool(QXmlQuery* theWrappedObject) const +{ + return ( theWrappedObject->namePool()); +} + +QNetworkAccessManager* PythonQtWrapper_QXmlQuery::networkAccessManager(QXmlQuery* theWrappedObject) const +{ + return ( theWrappedObject->networkAccessManager()); +} + +QXmlQuery* PythonQtWrapper_QXmlQuery::operator_assign(QXmlQuery* theWrappedObject, const QXmlQuery& other) +{ + return &( (*theWrappedObject)= other); +} + +QXmlQuery::QueryLanguage PythonQtWrapper_QXmlQuery::queryLanguage(QXmlQuery* theWrappedObject) const +{ + return ( theWrappedObject->queryLanguage()); +} + +bool PythonQtWrapper_QXmlQuery::setFocus(QXmlQuery* theWrappedObject, QIODevice* document) +{ + return ( theWrappedObject->setFocus(document)); +} + +bool PythonQtWrapper_QXmlQuery::setFocus(QXmlQuery* theWrappedObject, const QString& focus) +{ + return ( theWrappedObject->setFocus(focus)); +} + +bool PythonQtWrapper_QXmlQuery::setFocus(QXmlQuery* theWrappedObject, const QUrl& documentURI) +{ + return ( theWrappedObject->setFocus(documentURI)); +} + +void PythonQtWrapper_QXmlQuery::setFocus(QXmlQuery* theWrappedObject, const QXmlItem& item) +{ + ( theWrappedObject->setFocus(item)); +} + +void PythonQtWrapper_QXmlQuery::setInitialTemplateName(QXmlQuery* theWrappedObject, const QString& name) +{ + ( theWrappedObject->setInitialTemplateName(name)); +} + +void PythonQtWrapper_QXmlQuery::setInitialTemplateName(QXmlQuery* theWrappedObject, const QXmlName& name) +{ + ( theWrappedObject->setInitialTemplateName(name)); +} + +void PythonQtWrapper_QXmlQuery::setMessageHandler(QXmlQuery* theWrappedObject, QAbstractMessageHandler* messageHandler) +{ + ( theWrappedObject->setMessageHandler(messageHandler)); +} + +void PythonQtWrapper_QXmlQuery::setNetworkAccessManager(QXmlQuery* theWrappedObject, QNetworkAccessManager* newManager) +{ + ( theWrappedObject->setNetworkAccessManager(newManager)); +} + +void PythonQtWrapper_QXmlQuery::setQuery(QXmlQuery* theWrappedObject, QIODevice* sourceCode, const QUrl& documentURI) +{ + ( theWrappedObject->setQuery(sourceCode, documentURI)); +} + +void PythonQtWrapper_QXmlQuery::setQuery(QXmlQuery* theWrappedObject, const QString& sourceCode, const QUrl& documentURI) +{ + ( theWrappedObject->setQuery(sourceCode, documentURI)); +} + +void PythonQtWrapper_QXmlQuery::setQuery(QXmlQuery* theWrappedObject, const QUrl& queryURI, const QUrl& baseURI) +{ + ( theWrappedObject->setQuery(queryURI, baseURI)); +} + +void PythonQtWrapper_QXmlQuery::setUriResolver(QXmlQuery* theWrappedObject, const QAbstractUriResolver* resolver) +{ + ( theWrappedObject->setUriResolver(resolver)); +} + +const QAbstractUriResolver* PythonQtWrapper_QXmlQuery::uriResolver(QXmlQuery* theWrappedObject) const +{ + return ( theWrappedObject->uriResolver()); +} + + + +PythonQtShell_QXmlResultItems::~PythonQtShell_QXmlResultItems() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +QXmlResultItems* PythonQtWrapper_QXmlResultItems::new_QXmlResultItems() +{ +return new PythonQtShell_QXmlResultItems(); } + +QXmlItem PythonQtWrapper_QXmlResultItems::current(QXmlResultItems* theWrappedObject) const +{ + return ( theWrappedObject->current()); +} + +bool PythonQtWrapper_QXmlResultItems::hasError(QXmlResultItems* theWrappedObject) const +{ + return ( theWrappedObject->hasError()); +} + +QXmlItem PythonQtWrapper_QXmlResultItems::next(QXmlResultItems* theWrappedObject) +{ + return ( theWrappedObject->next()); +} + + + +QXmlSchema* PythonQtWrapper_QXmlSchema::new_QXmlSchema() +{ +return new QXmlSchema(); } + +QXmlSchema* PythonQtWrapper_QXmlSchema::new_QXmlSchema(const QXmlSchema& other) +{ +return new QXmlSchema(other); } + +QUrl PythonQtWrapper_QXmlSchema::documentUri(QXmlSchema* theWrappedObject) const +{ + return ( theWrappedObject->documentUri()); +} + +bool PythonQtWrapper_QXmlSchema::isValid(QXmlSchema* theWrappedObject) const +{ + return ( theWrappedObject->isValid()); +} + +bool PythonQtWrapper_QXmlSchema::load(QXmlSchema* theWrappedObject, QIODevice* source, const QUrl& documentUri) +{ + return ( theWrappedObject->load(source, documentUri)); +} + +bool PythonQtWrapper_QXmlSchema::load(QXmlSchema* theWrappedObject, const QByteArray& data, const QUrl& documentUri) +{ + return ( theWrappedObject->load(data, documentUri)); +} + +bool PythonQtWrapper_QXmlSchema::load(QXmlSchema* theWrappedObject, const QUrl& source) +{ + return ( theWrappedObject->load(source)); +} + +QAbstractMessageHandler* PythonQtWrapper_QXmlSchema::messageHandler(QXmlSchema* theWrappedObject) const +{ + return ( theWrappedObject->messageHandler()); +} + +QXmlNamePool PythonQtWrapper_QXmlSchema::namePool(QXmlSchema* theWrappedObject) const +{ + return ( theWrappedObject->namePool()); +} + +QNetworkAccessManager* PythonQtWrapper_QXmlSchema::networkAccessManager(QXmlSchema* theWrappedObject) const +{ + return ( theWrappedObject->networkAccessManager()); +} + +void PythonQtWrapper_QXmlSchema::setMessageHandler(QXmlSchema* theWrappedObject, QAbstractMessageHandler* handler) +{ + ( theWrappedObject->setMessageHandler(handler)); +} + +void PythonQtWrapper_QXmlSchema::setNetworkAccessManager(QXmlSchema* theWrappedObject, QNetworkAccessManager* networkmanager) +{ + ( theWrappedObject->setNetworkAccessManager(networkmanager)); +} + +void PythonQtWrapper_QXmlSchema::setUriResolver(QXmlSchema* theWrappedObject, const QAbstractUriResolver* resolver) +{ + ( theWrappedObject->setUriResolver(resolver)); +} + +const QAbstractUriResolver* PythonQtWrapper_QXmlSchema::uriResolver(QXmlSchema* theWrappedObject) const +{ + return ( theWrappedObject->uriResolver()); +} + + + +QXmlSchemaValidator* PythonQtWrapper_QXmlSchemaValidator::new_QXmlSchemaValidator() +{ +return new QXmlSchemaValidator(); } + +QXmlSchemaValidator* PythonQtWrapper_QXmlSchemaValidator::new_QXmlSchemaValidator(const QXmlSchema& schema) +{ +return new QXmlSchemaValidator(schema); } + +QAbstractMessageHandler* PythonQtWrapper_QXmlSchemaValidator::messageHandler(QXmlSchemaValidator* theWrappedObject) const +{ + return ( theWrappedObject->messageHandler()); +} + +QXmlNamePool PythonQtWrapper_QXmlSchemaValidator::namePool(QXmlSchemaValidator* theWrappedObject) const +{ + return ( theWrappedObject->namePool()); +} + +QNetworkAccessManager* PythonQtWrapper_QXmlSchemaValidator::networkAccessManager(QXmlSchemaValidator* theWrappedObject) const +{ + return ( theWrappedObject->networkAccessManager()); +} + +QXmlSchema PythonQtWrapper_QXmlSchemaValidator::schema(QXmlSchemaValidator* theWrappedObject) const +{ + return ( theWrappedObject->schema()); +} + +void PythonQtWrapper_QXmlSchemaValidator::setMessageHandler(QXmlSchemaValidator* theWrappedObject, QAbstractMessageHandler* handler) +{ + ( theWrappedObject->setMessageHandler(handler)); +} + +void PythonQtWrapper_QXmlSchemaValidator::setNetworkAccessManager(QXmlSchemaValidator* theWrappedObject, QNetworkAccessManager* networkmanager) +{ + ( theWrappedObject->setNetworkAccessManager(networkmanager)); +} + +void PythonQtWrapper_QXmlSchemaValidator::setSchema(QXmlSchemaValidator* theWrappedObject, const QXmlSchema& schema) +{ + ( theWrappedObject->setSchema(schema)); +} + +void PythonQtWrapper_QXmlSchemaValidator::setUriResolver(QXmlSchemaValidator* theWrappedObject, const QAbstractUriResolver* resolver) +{ + ( theWrappedObject->setUriResolver(resolver)); +} + +const QAbstractUriResolver* PythonQtWrapper_QXmlSchemaValidator::uriResolver(QXmlSchemaValidator* theWrappedObject) const +{ + return ( theWrappedObject->uriResolver()); +} + +bool PythonQtWrapper_QXmlSchemaValidator::validate(QXmlSchemaValidator* theWrappedObject, QIODevice* source, const QUrl& documentUri) const +{ + return ( theWrappedObject->validate(source, documentUri)); +} + +bool PythonQtWrapper_QXmlSchemaValidator::validate(QXmlSchemaValidator* theWrappedObject, const QByteArray& data, const QUrl& documentUri) const +{ + return ( theWrappedObject->validate(data, documentUri)); +} + +bool PythonQtWrapper_QXmlSchemaValidator::validate(QXmlSchemaValidator* theWrappedObject, const QUrl& source) const +{ + return ( theWrappedObject->validate(source)); +} + + + +PythonQtShell_QXmlSerializer::~PythonQtShell_QXmlSerializer() { + PythonQtPrivate* priv = PythonQt::priv(); + if (priv) { priv->shellClassDeleted(this); } +} +void PythonQtShell_QXmlSerializer::atomicValue(const QVariant& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atomicValue"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QVariant&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSerializer::atomicValue(value); +} +void PythonQtShell_QXmlSerializer::attribute(const QXmlName& name, const QStringRef& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "attribute"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QXmlName&" , "const QStringRef&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&name, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSerializer::attribute(name, value); +} +void PythonQtShell_QXmlSerializer::characters(const QStringRef& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "characters"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QStringRef&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSerializer::characters(value); +} +void PythonQtShell_QXmlSerializer::comment(const QString& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "comment"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSerializer::comment(value); +} +void PythonQtShell_QXmlSerializer::endDocument() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endDocument"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSerializer::endDocument(); +} +void PythonQtShell_QXmlSerializer::endElement() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endElement"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSerializer::endElement(); +} +void PythonQtShell_QXmlSerializer::endOfSequence() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endOfSequence"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSerializer::endOfSequence(); +} +void PythonQtShell_QXmlSerializer::namespaceBinding(const QXmlName& nb) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "namespaceBinding"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QXmlName&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&nb}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSerializer::namespaceBinding(nb); +} +void PythonQtShell_QXmlSerializer::processingInstruction(const QXmlName& name, const QString& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "processingInstruction"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QXmlName&" , "const QString&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); + void* args[3] = {NULL, (void*)&name, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSerializer::processingInstruction(name, value); +} +void PythonQtShell_QXmlSerializer::startDocument() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDocument"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSerializer::startDocument(); +} +void PythonQtShell_QXmlSerializer::startElement(const QXmlName& name) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startElement"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QXmlName&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&name}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSerializer::startElement(name); +} +void PythonQtShell_QXmlSerializer::startOfSequence() +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startOfSequence"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={""}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); + void* args[1] = {NULL}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSerializer::startOfSequence(); +} +void PythonQtShell_QXmlSerializer::whitespaceOnly(const QStringRef& value) +{ +if (_wrapper) { + PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "whitespaceOnly"); + PyErr_Clear(); + if (obj && !PythonQtSlotFunction_Check(obj)) { + static const char* argumentList[] ={"" , "const QStringRef&"}; + static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); + void* args[2] = {NULL, (void*)&value}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } +} + QXmlSerializer::whitespaceOnly(value); +} +QXmlSerializer* PythonQtWrapper_QXmlSerializer::new_QXmlSerializer(const QXmlQuery& query, QIODevice* outputDevice) +{ +return new PythonQtShell_QXmlSerializer(query, outputDevice); } + +void PythonQtWrapper_QXmlSerializer::atomicValue(QXmlSerializer* theWrappedObject, const QVariant& value) +{ + ( ((PythonQtPublicPromoter_QXmlSerializer*)theWrappedObject)->promoted_atomicValue(value)); +} + +void PythonQtWrapper_QXmlSerializer::attribute(QXmlSerializer* theWrappedObject, const QXmlName& name, const QStringRef& value) +{ + ( ((PythonQtPublicPromoter_QXmlSerializer*)theWrappedObject)->promoted_attribute(name, value)); +} + +void PythonQtWrapper_QXmlSerializer::characters(QXmlSerializer* theWrappedObject, const QStringRef& value) +{ + ( ((PythonQtPublicPromoter_QXmlSerializer*)theWrappedObject)->promoted_characters(value)); +} + +const QTextCodec* PythonQtWrapper_QXmlSerializer::codec(QXmlSerializer* theWrappedObject) const +{ + return ( theWrappedObject->codec()); +} + +void PythonQtWrapper_QXmlSerializer::comment(QXmlSerializer* theWrappedObject, const QString& value) +{ + ( ((PythonQtPublicPromoter_QXmlSerializer*)theWrappedObject)->promoted_comment(value)); +} + +void PythonQtWrapper_QXmlSerializer::endDocument(QXmlSerializer* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QXmlSerializer*)theWrappedObject)->promoted_endDocument()); +} + +void PythonQtWrapper_QXmlSerializer::endElement(QXmlSerializer* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QXmlSerializer*)theWrappedObject)->promoted_endElement()); +} + +void PythonQtWrapper_QXmlSerializer::endOfSequence(QXmlSerializer* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QXmlSerializer*)theWrappedObject)->promoted_endOfSequence()); +} + +void PythonQtWrapper_QXmlSerializer::namespaceBinding(QXmlSerializer* theWrappedObject, const QXmlName& nb) +{ + ( ((PythonQtPublicPromoter_QXmlSerializer*)theWrappedObject)->promoted_namespaceBinding(nb)); +} + +QIODevice* PythonQtWrapper_QXmlSerializer::outputDevice(QXmlSerializer* theWrappedObject) const +{ + return ( theWrappedObject->outputDevice()); +} + +void PythonQtWrapper_QXmlSerializer::processingInstruction(QXmlSerializer* theWrappedObject, const QXmlName& name, const QString& value) +{ + ( ((PythonQtPublicPromoter_QXmlSerializer*)theWrappedObject)->promoted_processingInstruction(name, value)); +} + +void PythonQtWrapper_QXmlSerializer::setCodec(QXmlSerializer* theWrappedObject, const QTextCodec* codec) +{ + ( theWrappedObject->setCodec(codec)); +} + +void PythonQtWrapper_QXmlSerializer::startDocument(QXmlSerializer* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QXmlSerializer*)theWrappedObject)->promoted_startDocument()); +} + +void PythonQtWrapper_QXmlSerializer::startElement(QXmlSerializer* theWrappedObject, const QXmlName& name) +{ + ( ((PythonQtPublicPromoter_QXmlSerializer*)theWrappedObject)->promoted_startElement(name)); +} + +void PythonQtWrapper_QXmlSerializer::startOfSequence(QXmlSerializer* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_QXmlSerializer*)theWrappedObject)->promoted_startOfSequence()); +} + + diff --git a/generated_cpp_50/com_trolltech_qt_xmlpatterns/com_trolltech_qt_xmlpatterns0.h b/generated_cpp_50/com_trolltech_qt_xmlpatterns/com_trolltech_qt_xmlpatterns0.h new file mode 100644 index 00000000..3a121f82 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_xmlpatterns/com_trolltech_qt_xmlpatterns0.h @@ -0,0 +1,603 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +class PythonQtShell_QAbstractMessageHandler : public QAbstractMessageHandler +{ +public: + + ~PythonQtShell_QAbstractMessageHandler(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual void handleMessage(QtMsgType type, const QString& description, const QUrl& identifier, const QSourceLocation& sourceLocation); +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QAbstractMessageHandler : public QObject +{ Q_OBJECT +public: +public slots: +void delete_QAbstractMessageHandler(QAbstractMessageHandler* obj) { delete obj; } + void message(QAbstractMessageHandler* theWrappedObject, QtMsgType type, const QString& description, const QUrl& identifier = QUrl(), const QSourceLocation& sourceLocation = QSourceLocation()); +}; + + + + + +class PythonQtShell_QAbstractUriResolver : public QAbstractUriResolver +{ +public: + PythonQtShell_QAbstractUriResolver(QObject* parent = 0):QAbstractUriResolver(parent),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractUriResolver(); + +virtual void childEvent(QChildEvent* arg__1); +virtual void customEvent(QEvent* arg__1); +virtual bool event(QEvent* arg__1); +virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); +virtual QUrl resolve(const QUrl& relative, const QUrl& baseURI) const; +virtual void timerEvent(QTimerEvent* arg__1); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QAbstractUriResolver : public QObject +{ Q_OBJECT +public: +public slots: +QAbstractUriResolver* new_QAbstractUriResolver(QObject* parent = 0); +void delete_QAbstractUriResolver(QAbstractUriResolver* obj) { delete obj; } +}; + + + + + +class PythonQtShell_QAbstractXmlNodeModel : public QAbstractXmlNodeModel +{ +public: + + ~PythonQtShell_QAbstractXmlNodeModel(); + +virtual QVector attributes(const QXmlNodeModelIndex& element) const; +virtual QUrl baseUri(const QXmlNodeModelIndex& ni) const; +virtual QXmlNodeModelIndex::DocumentOrder compareOrder(const QXmlNodeModelIndex& ni1, const QXmlNodeModelIndex& ni2) const; +virtual QUrl documentUri(const QXmlNodeModelIndex& ni) const; +virtual QXmlNodeModelIndex elementById(const QXmlName& NCName) const; +virtual QXmlNodeModelIndex::NodeKind kind(const QXmlNodeModelIndex& ni) const; +virtual QXmlName name(const QXmlNodeModelIndex& ni) const; +virtual QVector namespaceBindings(const QXmlNodeModelIndex& n) const; +virtual QXmlNodeModelIndex nextFromSimpleAxis(QAbstractXmlNodeModel::SimpleAxis axis, const QXmlNodeModelIndex& origin) const; +virtual QVector nodesByIdref(const QXmlName& NCName) const; +virtual QXmlNodeModelIndex root(const QXmlNodeModelIndex& n) const; +virtual QString stringValue(const QXmlNodeModelIndex& n) const; +virtual QVariant typedValue(const QXmlNodeModelIndex& n) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QAbstractXmlNodeModel : public QObject +{ Q_OBJECT +public: +Q_ENUMS(SimpleAxis NodeCopySetting ) +enum SimpleAxis{ + Parent = QAbstractXmlNodeModel::Parent, FirstChild = QAbstractXmlNodeModel::FirstChild, PreviousSibling = QAbstractXmlNodeModel::PreviousSibling, NextSibling = QAbstractXmlNodeModel::NextSibling}; +enum NodeCopySetting{ + InheritNamespaces = QAbstractXmlNodeModel::InheritNamespaces, PreserveNamespaces = QAbstractXmlNodeModel::PreserveNamespaces}; +public slots: +void delete_QAbstractXmlNodeModel(QAbstractXmlNodeModel* obj) { delete obj; } + QSourceLocation sourceLocation(QAbstractXmlNodeModel* theWrappedObject, const QXmlNodeModelIndex& index) const; +}; + + + + + +class PythonQtShell_QAbstractXmlReceiver : public QAbstractXmlReceiver +{ +public: + PythonQtShell_QAbstractXmlReceiver():QAbstractXmlReceiver(),_wrapper(NULL) {}; + + ~PythonQtShell_QAbstractXmlReceiver(); + +virtual void atomicValue(const QVariant& value); +virtual void attribute(const QXmlName& name, const QStringRef& value); +virtual void characters(const QStringRef& value); +virtual void comment(const QString& value); +virtual void endDocument(); +virtual void endElement(); +virtual void endOfSequence(); +virtual void namespaceBinding(const QXmlName& name); +virtual void processingInstruction(const QXmlName& target, const QString& value); +virtual void startDocument(); +virtual void startElement(const QXmlName& name); +virtual void startOfSequence(); +virtual void whitespaceOnly(const QStringRef& value); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QAbstractXmlReceiver : public QAbstractXmlReceiver +{ public: +inline void promoted_whitespaceOnly(const QStringRef& value) { QAbstractXmlReceiver::whitespaceOnly(value); } +}; + +class PythonQtWrapper_QAbstractXmlReceiver : public QObject +{ Q_OBJECT +public: +public slots: +QAbstractXmlReceiver* new_QAbstractXmlReceiver(); +void delete_QAbstractXmlReceiver(QAbstractXmlReceiver* obj) { delete obj; } + void whitespaceOnly(QAbstractXmlReceiver* theWrappedObject, const QStringRef& value); +}; + + + + + +class PythonQtWrapper_QPatternist : public QObject +{ Q_OBJECT +public: +public slots: +}; + + + + + +class PythonQtWrapper_QPatternistSDK : public QObject +{ Q_OBJECT +public: +public slots: +}; + + + + + +class PythonQtShell_QSimpleXmlNodeModel : public QSimpleXmlNodeModel +{ +public: + PythonQtShell_QSimpleXmlNodeModel(const QXmlNamePool& namePool):QSimpleXmlNodeModel(namePool),_wrapper(NULL) {}; + + ~PythonQtShell_QSimpleXmlNodeModel(); + +virtual QVector attributes(const QXmlNodeModelIndex& element) const; +virtual QUrl baseUri(const QXmlNodeModelIndex& node) const; +virtual QXmlNodeModelIndex::DocumentOrder compareOrder(const QXmlNodeModelIndex& ni1, const QXmlNodeModelIndex& ni2) const; +virtual QUrl documentUri(const QXmlNodeModelIndex& ni) const; +virtual QXmlNodeModelIndex elementById(const QXmlName& id) const; +virtual QXmlNodeModelIndex::NodeKind kind(const QXmlNodeModelIndex& ni) const; +virtual QXmlName name(const QXmlNodeModelIndex& ni) const; +virtual QVector namespaceBindings(const QXmlNodeModelIndex& arg__1) const; +virtual QXmlNodeModelIndex nextFromSimpleAxis(QAbstractXmlNodeModel::SimpleAxis axis, const QXmlNodeModelIndex& origin) const; +virtual QVector nodesByIdref(const QXmlName& idref) const; +virtual QXmlNodeModelIndex root(const QXmlNodeModelIndex& n) const; +virtual QString stringValue(const QXmlNodeModelIndex& node) const; +virtual QVariant typedValue(const QXmlNodeModelIndex& n) const; + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QSimpleXmlNodeModel : public QSimpleXmlNodeModel +{ public: +inline QUrl promoted_baseUri(const QXmlNodeModelIndex& node) const { return QSimpleXmlNodeModel::baseUri(node); } +inline QXmlNodeModelIndex promoted_elementById(const QXmlName& id) const { return QSimpleXmlNodeModel::elementById(id); } +inline QVector promoted_namespaceBindings(const QXmlNodeModelIndex& arg__1) const { return QSimpleXmlNodeModel::namespaceBindings(arg__1); } +inline QVector promoted_nodesByIdref(const QXmlName& idref) const { return QSimpleXmlNodeModel::nodesByIdref(idref); } +inline QString promoted_stringValue(const QXmlNodeModelIndex& node) const { return QSimpleXmlNodeModel::stringValue(node); } +}; + +class PythonQtWrapper_QSimpleXmlNodeModel : public QObject +{ Q_OBJECT +public: +public slots: +QSimpleXmlNodeModel* new_QSimpleXmlNodeModel(const QXmlNamePool& namePool); +void delete_QSimpleXmlNodeModel(QSimpleXmlNodeModel* obj) { delete obj; } + QUrl baseUri(QSimpleXmlNodeModel* theWrappedObject, const QXmlNodeModelIndex& node) const; + QXmlNodeModelIndex elementById(QSimpleXmlNodeModel* theWrappedObject, const QXmlName& id) const; + QXmlNamePool* namePool(QSimpleXmlNodeModel* theWrappedObject) const; + QVector namespaceBindings(QSimpleXmlNodeModel* theWrappedObject, const QXmlNodeModelIndex& arg__1) const; + QVector nodesByIdref(QSimpleXmlNodeModel* theWrappedObject, const QXmlName& idref) const; + QString stringValue(QSimpleXmlNodeModel* theWrappedObject, const QXmlNodeModelIndex& node) const; +}; + + + + + +class PythonQtWrapper_QSourceLocation : public QObject +{ Q_OBJECT +public: +public slots: +QSourceLocation* new_QSourceLocation(); +QSourceLocation* new_QSourceLocation(const QSourceLocation& other); +QSourceLocation* new_QSourceLocation(const QUrl& uri, int line = -1, int column = -1); +void delete_QSourceLocation(QSourceLocation* obj) { delete obj; } + qint64 column(QSourceLocation* theWrappedObject) const; + bool isNull(QSourceLocation* theWrappedObject) const; + qint64 line(QSourceLocation* theWrappedObject) const; + bool __ne__(QSourceLocation* theWrappedObject, const QSourceLocation& other) const; + bool __eq__(QSourceLocation* theWrappedObject, const QSourceLocation& other) const; + void setColumn(QSourceLocation* theWrappedObject, qint64 newColumn); + void setLine(QSourceLocation* theWrappedObject, qint64 newLine); + void setUri(QSourceLocation* theWrappedObject, const QUrl& newUri); + QUrl uri(QSourceLocation* theWrappedObject) const; + QString py_toString(QSourceLocation*); + bool __nonzero__(QSourceLocation* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtShell_QXmlFormatter : public QXmlFormatter +{ +public: + PythonQtShell_QXmlFormatter(const QXmlQuery& query, QIODevice* outputDevice):QXmlFormatter(query, outputDevice),_wrapper(NULL) {}; + + ~PythonQtShell_QXmlFormatter(); + +virtual void atomicValue(const QVariant& value); +virtual void attribute(const QXmlName& name, const QStringRef& value); +virtual void characters(const QStringRef& value); +virtual void comment(const QString& value); +virtual void endDocument(); +virtual void endElement(); +virtual void endOfSequence(); +virtual void namespaceBinding(const QXmlName& nb); +virtual void processingInstruction(const QXmlName& name, const QString& value); +virtual void startDocument(); +virtual void startElement(const QXmlName& name); +virtual void startOfSequence(); +virtual void whitespaceOnly(const QStringRef& value); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QXmlFormatter : public QXmlFormatter +{ public: +inline void promoted_atomicValue(const QVariant& value) { QXmlFormatter::atomicValue(value); } +inline void promoted_attribute(const QXmlName& name, const QStringRef& value) { QXmlFormatter::attribute(name, value); } +inline void promoted_characters(const QStringRef& value) { QXmlFormatter::characters(value); } +inline void promoted_comment(const QString& value) { QXmlFormatter::comment(value); } +inline void promoted_endDocument() { QXmlFormatter::endDocument(); } +inline void promoted_endElement() { QXmlFormatter::endElement(); } +inline void promoted_endOfSequence() { QXmlFormatter::endOfSequence(); } +inline void promoted_processingInstruction(const QXmlName& name, const QString& value) { QXmlFormatter::processingInstruction(name, value); } +inline void promoted_startDocument() { QXmlFormatter::startDocument(); } +inline void promoted_startElement(const QXmlName& name) { QXmlFormatter::startElement(name); } +inline void promoted_startOfSequence() { QXmlFormatter::startOfSequence(); } +}; + +class PythonQtWrapper_QXmlFormatter : public QObject +{ Q_OBJECT +public: +public slots: +QXmlFormatter* new_QXmlFormatter(const QXmlQuery& query, QIODevice* outputDevice); +void delete_QXmlFormatter(QXmlFormatter* obj) { delete obj; } + void atomicValue(QXmlFormatter* theWrappedObject, const QVariant& value); + void attribute(QXmlFormatter* theWrappedObject, const QXmlName& name, const QStringRef& value); + void characters(QXmlFormatter* theWrappedObject, const QStringRef& value); + void comment(QXmlFormatter* theWrappedObject, const QString& value); + void endDocument(QXmlFormatter* theWrappedObject); + void endElement(QXmlFormatter* theWrappedObject); + void endOfSequence(QXmlFormatter* theWrappedObject); + int indentationDepth(QXmlFormatter* theWrappedObject) const; + void processingInstruction(QXmlFormatter* theWrappedObject, const QXmlName& name, const QString& value); + void setIndentationDepth(QXmlFormatter* theWrappedObject, int depth); + void startDocument(QXmlFormatter* theWrappedObject); + void startElement(QXmlFormatter* theWrappedObject, const QXmlName& name); + void startOfSequence(QXmlFormatter* theWrappedObject); +}; + + + + + +class PythonQtWrapper_QXmlItem : public QObject +{ Q_OBJECT +public: +public slots: +QXmlItem* new_QXmlItem(); +QXmlItem* new_QXmlItem(const QVariant& atomicValue); +QXmlItem* new_QXmlItem(const QXmlItem& other); +QXmlItem* new_QXmlItem(const QXmlNodeModelIndex& node); +void delete_QXmlItem(QXmlItem* obj) { delete obj; } + bool isAtomicValue(QXmlItem* theWrappedObject) const; + bool isNode(QXmlItem* theWrappedObject) const; + bool isNull(QXmlItem* theWrappedObject) const; + QVariant toAtomicValue(QXmlItem* theWrappedObject) const; + QXmlNodeModelIndex toNodeModelIndex(QXmlItem* theWrappedObject) const; + bool __nonzero__(QXmlItem* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QXmlName : public QObject +{ Q_OBJECT +public: +public slots: +QXmlName* new_QXmlName(); +QXmlName* new_QXmlName(QXmlNamePool& namePool, const QString& localName, const QString& namespaceURI = QString(), const QString& prefix = QString()); +QXmlName* new_QXmlName(const QXmlName& other) { +QXmlName* a = new QXmlName(); +*((QXmlName*)a) = other; +return a; } +void delete_QXmlName(QXmlName* obj) { delete obj; } + QXmlName static_QXmlName_fromClarkName(const QString& clarkName, const QXmlNamePool& namePool); + bool static_QXmlName_isNCName(const QString& candidate); + bool isNull(QXmlName* theWrappedObject) const; + QString localName(QXmlName* theWrappedObject, const QXmlNamePool& query) const; + QString namespaceUri(QXmlName* theWrappedObject, const QXmlNamePool& query) const; + bool __ne__(QXmlName* theWrappedObject, const QXmlName& other) const; + bool __eq__(QXmlName* theWrappedObject, const QXmlName& other) const; + QString prefix(QXmlName* theWrappedObject, const QXmlNamePool& query) const; + QString toClarkName(QXmlName* theWrappedObject, const QXmlNamePool& query) const; + bool __nonzero__(QXmlName* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QXmlNamePool : public QObject +{ Q_OBJECT +public: +public slots: +QXmlNamePool* new_QXmlNamePool(); +QXmlNamePool* new_QXmlNamePool(const QXmlNamePool& other); +void delete_QXmlNamePool(QXmlNamePool* obj) { delete obj; } +}; + + + + + +class PythonQtWrapper_QXmlNodeModelIndex : public QObject +{ Q_OBJECT +public: +Q_ENUMS(NodeKind DocumentOrder ) +enum NodeKind{ + Attribute = QXmlNodeModelIndex::Attribute, Comment = QXmlNodeModelIndex::Comment, Document = QXmlNodeModelIndex::Document, Element = QXmlNodeModelIndex::Element, Namespace = QXmlNodeModelIndex::Namespace, ProcessingInstruction = QXmlNodeModelIndex::ProcessingInstruction, Text = QXmlNodeModelIndex::Text}; +enum DocumentOrder{ + Precedes = QXmlNodeModelIndex::Precedes, Is = QXmlNodeModelIndex::Is, Follows = QXmlNodeModelIndex::Follows}; +public slots: +QXmlNodeModelIndex* new_QXmlNodeModelIndex(); +QXmlNodeModelIndex* new_QXmlNodeModelIndex(const QXmlNodeModelIndex& other); +void delete_QXmlNodeModelIndex(QXmlNodeModelIndex* obj) { delete obj; } + qint64 additionalData(QXmlNodeModelIndex* theWrappedObject) const; + qint64 data(QXmlNodeModelIndex* theWrappedObject) const; + bool isNull(QXmlNodeModelIndex* theWrappedObject) const; + const QAbstractXmlNodeModel* model(QXmlNodeModelIndex* theWrappedObject) const; + bool __ne__(QXmlNodeModelIndex* theWrappedObject, const QXmlNodeModelIndex& other) const; + bool __eq__(QXmlNodeModelIndex* theWrappedObject, const QXmlNodeModelIndex& other) const; + bool __nonzero__(QXmlNodeModelIndex* obj) { return !obj->isNull(); } +}; + + + + + +class PythonQtWrapper_QXmlQuery : public QObject +{ Q_OBJECT +public: +Q_ENUMS(QueryLanguage ) +enum QueryLanguage{ + XQuery10 = QXmlQuery::XQuery10, XSLT20 = QXmlQuery::XSLT20, XmlSchema11IdentityConstraintSelector = QXmlQuery::XmlSchema11IdentityConstraintSelector, XmlSchema11IdentityConstraintField = QXmlQuery::XmlSchema11IdentityConstraintField, XPath20 = QXmlQuery::XPath20}; +public slots: +QXmlQuery* new_QXmlQuery(); +QXmlQuery* new_QXmlQuery(QXmlQuery::QueryLanguage queryLanguage, const QXmlNamePool& np = QXmlNamePool()); +QXmlQuery* new_QXmlQuery(const QXmlNamePool& np); +QXmlQuery* new_QXmlQuery(const QXmlQuery& other); +void delete_QXmlQuery(QXmlQuery* obj) { delete obj; } + void bindVariable(QXmlQuery* theWrappedObject, const QString& localName, QIODevice* arg__2); + void bindVariable(QXmlQuery* theWrappedObject, const QString& localName, const QXmlItem& value); + void bindVariable(QXmlQuery* theWrappedObject, const QString& localName, const QXmlQuery& query); + void bindVariable(QXmlQuery* theWrappedObject, const QXmlName& name, QIODevice* arg__2); + void bindVariable(QXmlQuery* theWrappedObject, const QXmlName& name, const QXmlItem& value); + void bindVariable(QXmlQuery* theWrappedObject, const QXmlName& name, const QXmlQuery& query); + bool evaluateTo(QXmlQuery* theWrappedObject, QIODevice* target) const; + bool evaluateTo(QXmlQuery* theWrappedObject, QString* output) const; + bool evaluateTo(QXmlQuery* theWrappedObject, QStringList* target) const; + void evaluateTo(QXmlQuery* theWrappedObject, QXmlResultItems* result) const; + QXmlName initialTemplateName(QXmlQuery* theWrappedObject) const; + bool isValid(QXmlQuery* theWrappedObject) const; + QAbstractMessageHandler* messageHandler(QXmlQuery* theWrappedObject) const; + QXmlNamePool namePool(QXmlQuery* theWrappedObject) const; + QNetworkAccessManager* networkAccessManager(QXmlQuery* theWrappedObject) const; + QXmlQuery* operator_assign(QXmlQuery* theWrappedObject, const QXmlQuery& other); + QXmlQuery::QueryLanguage queryLanguage(QXmlQuery* theWrappedObject) const; + bool setFocus(QXmlQuery* theWrappedObject, QIODevice* document); + bool setFocus(QXmlQuery* theWrappedObject, const QString& focus); + bool setFocus(QXmlQuery* theWrappedObject, const QUrl& documentURI); + void setFocus(QXmlQuery* theWrappedObject, const QXmlItem& item); + void setInitialTemplateName(QXmlQuery* theWrappedObject, const QString& name); + void setInitialTemplateName(QXmlQuery* theWrappedObject, const QXmlName& name); + void setMessageHandler(QXmlQuery* theWrappedObject, QAbstractMessageHandler* messageHandler); + void setNetworkAccessManager(QXmlQuery* theWrappedObject, QNetworkAccessManager* newManager); + void setQuery(QXmlQuery* theWrappedObject, QIODevice* sourceCode, const QUrl& documentURI = QUrl()); + void setQuery(QXmlQuery* theWrappedObject, const QString& sourceCode, const QUrl& documentURI = QUrl()); + void setQuery(QXmlQuery* theWrappedObject, const QUrl& queryURI, const QUrl& baseURI = QUrl()); + void setUriResolver(QXmlQuery* theWrappedObject, const QAbstractUriResolver* resolver); + const QAbstractUriResolver* uriResolver(QXmlQuery* theWrappedObject) const; +}; + + + + + +class PythonQtShell_QXmlResultItems : public QXmlResultItems +{ +public: + PythonQtShell_QXmlResultItems():QXmlResultItems(),_wrapper(NULL) {}; + + ~PythonQtShell_QXmlResultItems(); + + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtWrapper_QXmlResultItems : public QObject +{ Q_OBJECT +public: +public slots: +QXmlResultItems* new_QXmlResultItems(); +void delete_QXmlResultItems(QXmlResultItems* obj) { delete obj; } + QXmlItem current(QXmlResultItems* theWrappedObject) const; + bool hasError(QXmlResultItems* theWrappedObject) const; + QXmlItem next(QXmlResultItems* theWrappedObject); +}; + + + + + +class PythonQtWrapper_QXmlSchema : public QObject +{ Q_OBJECT +public: +public slots: +QXmlSchema* new_QXmlSchema(); +QXmlSchema* new_QXmlSchema(const QXmlSchema& other); +void delete_QXmlSchema(QXmlSchema* obj) { delete obj; } + QUrl documentUri(QXmlSchema* theWrappedObject) const; + bool isValid(QXmlSchema* theWrappedObject) const; + bool load(QXmlSchema* theWrappedObject, QIODevice* source, const QUrl& documentUri = QUrl()); + bool load(QXmlSchema* theWrappedObject, const QByteArray& data, const QUrl& documentUri = QUrl()); + bool load(QXmlSchema* theWrappedObject, const QUrl& source); + QAbstractMessageHandler* messageHandler(QXmlSchema* theWrappedObject) const; + QXmlNamePool namePool(QXmlSchema* theWrappedObject) const; + QNetworkAccessManager* networkAccessManager(QXmlSchema* theWrappedObject) const; + void setMessageHandler(QXmlSchema* theWrappedObject, QAbstractMessageHandler* handler); + void setNetworkAccessManager(QXmlSchema* theWrappedObject, QNetworkAccessManager* networkmanager); + void setUriResolver(QXmlSchema* theWrappedObject, const QAbstractUriResolver* resolver); + const QAbstractUriResolver* uriResolver(QXmlSchema* theWrappedObject) const; +}; + + + + + +class PythonQtWrapper_QXmlSchemaValidator : public QObject +{ Q_OBJECT +public: +public slots: +QXmlSchemaValidator* new_QXmlSchemaValidator(); +QXmlSchemaValidator* new_QXmlSchemaValidator(const QXmlSchema& schema); +void delete_QXmlSchemaValidator(QXmlSchemaValidator* obj) { delete obj; } + QAbstractMessageHandler* messageHandler(QXmlSchemaValidator* theWrappedObject) const; + QXmlNamePool namePool(QXmlSchemaValidator* theWrappedObject) const; + QNetworkAccessManager* networkAccessManager(QXmlSchemaValidator* theWrappedObject) const; + QXmlSchema schema(QXmlSchemaValidator* theWrappedObject) const; + void setMessageHandler(QXmlSchemaValidator* theWrappedObject, QAbstractMessageHandler* handler); + void setNetworkAccessManager(QXmlSchemaValidator* theWrappedObject, QNetworkAccessManager* networkmanager); + void setSchema(QXmlSchemaValidator* theWrappedObject, const QXmlSchema& schema); + void setUriResolver(QXmlSchemaValidator* theWrappedObject, const QAbstractUriResolver* resolver); + const QAbstractUriResolver* uriResolver(QXmlSchemaValidator* theWrappedObject) const; + bool validate(QXmlSchemaValidator* theWrappedObject, QIODevice* source, const QUrl& documentUri = QUrl()) const; + bool validate(QXmlSchemaValidator* theWrappedObject, const QByteArray& data, const QUrl& documentUri = QUrl()) const; + bool validate(QXmlSchemaValidator* theWrappedObject, const QUrl& source) const; +}; + + + + + +class PythonQtShell_QXmlSerializer : public QXmlSerializer +{ +public: + PythonQtShell_QXmlSerializer(const QXmlQuery& query, QIODevice* outputDevice):QXmlSerializer(query, outputDevice),_wrapper(NULL) {}; + + ~PythonQtShell_QXmlSerializer(); + +virtual void atomicValue(const QVariant& value); +virtual void attribute(const QXmlName& name, const QStringRef& value); +virtual void characters(const QStringRef& value); +virtual void comment(const QString& value); +virtual void endDocument(); +virtual void endElement(); +virtual void endOfSequence(); +virtual void namespaceBinding(const QXmlName& nb); +virtual void processingInstruction(const QXmlName& name, const QString& value); +virtual void startDocument(); +virtual void startElement(const QXmlName& name); +virtual void startOfSequence(); +virtual void whitespaceOnly(const QStringRef& value); + + PythonQtInstanceWrapper* _wrapper; +}; + +class PythonQtPublicPromoter_QXmlSerializer : public QXmlSerializer +{ public: +inline void promoted_atomicValue(const QVariant& value) { QXmlSerializer::atomicValue(value); } +inline void promoted_attribute(const QXmlName& name, const QStringRef& value) { QXmlSerializer::attribute(name, value); } +inline void promoted_characters(const QStringRef& value) { QXmlSerializer::characters(value); } +inline void promoted_comment(const QString& value) { QXmlSerializer::comment(value); } +inline void promoted_endDocument() { QXmlSerializer::endDocument(); } +inline void promoted_endElement() { QXmlSerializer::endElement(); } +inline void promoted_endOfSequence() { QXmlSerializer::endOfSequence(); } +inline void promoted_namespaceBinding(const QXmlName& nb) { QXmlSerializer::namespaceBinding(nb); } +inline void promoted_processingInstruction(const QXmlName& name, const QString& value) { QXmlSerializer::processingInstruction(name, value); } +inline void promoted_startDocument() { QXmlSerializer::startDocument(); } +inline void promoted_startElement(const QXmlName& name) { QXmlSerializer::startElement(name); } +inline void promoted_startOfSequence() { QXmlSerializer::startOfSequence(); } +}; + +class PythonQtWrapper_QXmlSerializer : public QObject +{ Q_OBJECT +public: +public slots: +QXmlSerializer* new_QXmlSerializer(const QXmlQuery& query, QIODevice* outputDevice); +void delete_QXmlSerializer(QXmlSerializer* obj) { delete obj; } + void atomicValue(QXmlSerializer* theWrappedObject, const QVariant& value); + void attribute(QXmlSerializer* theWrappedObject, const QXmlName& name, const QStringRef& value); + void characters(QXmlSerializer* theWrappedObject, const QStringRef& value); + const QTextCodec* codec(QXmlSerializer* theWrappedObject) const; + void comment(QXmlSerializer* theWrappedObject, const QString& value); + void endDocument(QXmlSerializer* theWrappedObject); + void endElement(QXmlSerializer* theWrappedObject); + void endOfSequence(QXmlSerializer* theWrappedObject); + void namespaceBinding(QXmlSerializer* theWrappedObject, const QXmlName& nb); + QIODevice* outputDevice(QXmlSerializer* theWrappedObject) const; + void processingInstruction(QXmlSerializer* theWrappedObject, const QXmlName& name, const QString& value); + void setCodec(QXmlSerializer* theWrappedObject, const QTextCodec* codec); + void startDocument(QXmlSerializer* theWrappedObject); + void startElement(QXmlSerializer* theWrappedObject, const QXmlName& name); + void startOfSequence(QXmlSerializer* theWrappedObject); +}; + + diff --git a/generated_cpp_50/com_trolltech_qt_xmlpatterns/com_trolltech_qt_xmlpatterns_init.cpp b/generated_cpp_50/com_trolltech_qt_xmlpatterns/com_trolltech_qt_xmlpatterns_init.cpp new file mode 100644 index 00000000..167b3f87 --- /dev/null +++ b/generated_cpp_50/com_trolltech_qt_xmlpatterns/com_trolltech_qt_xmlpatterns_init.cpp @@ -0,0 +1,25 @@ +#include +#include "com_trolltech_qt_xmlpatterns0.h" + + +void PythonQt_init_QtXmlPatterns(PyObject* module) { +PythonQt::priv()->registerClass(&QAbstractMessageHandler::staticMetaObject, "QtXmlPatterns", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerClass(&QAbstractUriResolver::staticMetaObject, "QtXmlPatterns", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QAbstractXmlNodeModel", "", "QtXmlPatterns", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QAbstractXmlReceiver", "", "QtXmlPatterns", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QPatternist", "", "QtXmlPatterns", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QPatternistSDK", "", "QtXmlPatterns", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QSimpleXmlNodeModel", "QAbstractXmlNodeModel", "QtXmlPatterns", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QSourceLocation", "", "QtXmlPatterns", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QXmlFormatter", "QXmlSerializer", "QtXmlPatterns", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QXmlItem", "", "QtXmlPatterns", PythonQtCreateObject, NULL, module, PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QXmlName", "", "QtXmlPatterns", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QXmlNamePool", "", "QtXmlPatterns", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QXmlNodeModelIndex", "", "QtXmlPatterns", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_NonZero); +PythonQt::priv()->registerCPPClass("QXmlQuery", "", "QtXmlPatterns", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QXmlResultItems", "", "QtXmlPatterns", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); +PythonQt::priv()->registerCPPClass("QXmlSchema", "", "QtXmlPatterns", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QXmlSchemaValidator", "", "QtXmlPatterns", PythonQtCreateObject, NULL, module, 0); +PythonQt::priv()->registerCPPClass("QXmlSerializer", "QAbstractXmlReceiver", "QtXmlPatterns", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); + +} diff --git a/generator/CMakeLists.txt b/generator/CMakeLists.txt index 1d659dd8..35d81a09 100644 --- a/generator/CMakeLists.txt +++ b/generator/CMakeLists.txt @@ -11,23 +11,29 @@ include(CTestUseLaunchers OPTIONAL) set(minimum_required_qt_version "4.6.2") -find_package(Qt4) +if (PythonQt_QT_VERSION VERSION_GREATER "4") + set(qtlibs Core) + foreach(qtlib ${qtlibs}) + find_package(Qt5${qtlib}) + endforeach() +else() + find_package(Qt4) -if(QT4_FOUND) + if(QT4_FOUND) - set(found_qt_version ${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}.${QT_VERSION_PATCH}) + set(found_qt_version ${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}.${QT_VERSION_PATCH}) - if(${found_qt_version} VERSION_LESS ${minimum_required_qt_version}) + if(${found_qt_version} VERSION_LESS ${minimum_required_qt_version}) message(FATAL_ERROR "error: PythonQt requires Qt >= ${minimum_required_qt_version} -- you cannot use Qt ${found_qt_version}.") + endif() + + set(QT_USE_QTXML ON) + + include(${QT_USE_FILE}) + else() + message(FATAL_ERROR "error: Qt4 was not found on your system. You probably need to set the QT_QMAKE_EXECUTABLE variable") endif() - - set(QT_USE_QTXML ON) - - include(${QT_USE_FILE}) -else() - message(FATAL_ERROR "error: Qt4 was not found on your system. You probably need to set the QT_QMAKE_EXECUTABLE variable") endif() - #----------------------------------------------------------------------------- # Sources diff --git a/generator/parser/rpp/pp-iterator.h b/generator/parser/rpp/pp-iterator.h index d982efb3..90d31b0f 100644 --- a/generator/parser/rpp/pp-iterator.h +++ b/generator/parser/rpp/pp-iterator.h @@ -71,6 +71,14 @@ class pp_output_iterator explicit pp_output_iterator(std::string &__result): _M_result (__result) {} + // this copy constructor was needed for Visual Studio 2012 release builds: + inline pp_output_iterator &operator=(const pp_output_iterator& other) + { + *(std::iterator*)(this) = other; + _M_result = other._M_result; + return *this; + } + inline pp_output_iterator &operator=(typename _Container::const_reference __v) { if (_M_result.capacity () == _M_result.size ()) diff --git a/generator/typesystem_gui.xml b/generator/typesystem_gui.xml index a42a1089..8bb90a87 100644 --- a/generator/typesystem_gui.xml +++ b/generator/typesystem_gui.xml @@ -4539,6 +4539,7 @@ PyObject* constScanLine(QImage* image, int line) { + diff --git a/generator/typesystem_webkit.xml b/generator/typesystem_webkit.xml index 92ea3d99..57d93773 100644 --- a/generator/typesystem_webkit.xml +++ b/generator/typesystem_webkit.xml @@ -46,6 +46,7 @@ + diff --git a/generator_50/LGPL_EXCEPTION.txt b/generator_50/LGPL_EXCEPTION.txt new file mode 100644 index 00000000..8f73eca7 --- /dev/null +++ b/generator_50/LGPL_EXCEPTION.txt @@ -0,0 +1,22 @@ +Nokia Qt LGPL Exception version 1.1 + +As an additional permission to the GNU Lesser General Public License version +2.1, the object code form of a "work that uses the Library" may incorporate +material from a header file that is part of the Library. You may distribute +such object code under terms of your choice, provided that: + (i) the header files of the Library have not been modified; and + (ii) the incorporated material is limited to numerical parameters, data + structure layouts, accessors, macros, inline functions and + templates; and + (iii) you comply with the terms of Section 6 of the GNU Lesser General + Public License version 2.1. + +Moreover, you may apply this exception to a modified version of the Library, +provided that such modification does not involve copying material from the +Library into the modified Library's header files unless such material is +limited to (i) numerical parameters; (ii) data structure layouts; +(iii) accessors; and (iv) small macros, templates and inline functions of +five lines or less in length. + +Furthermore, you are not required to apply this additional permission to a +modified version of the Library. diff --git a/generator_50/LICENSE.LGPL b/generator_50/LICENSE.LGPL new file mode 100644 index 00000000..9a30e8ce --- /dev/null +++ b/generator_50/LICENSE.LGPL @@ -0,0 +1,514 @@ + GNU LESSER GENERAL PUBLIC LICENSE + + The Qt GUI Toolkit is Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). + Contact: Nokia Corporation (qt-info@nokia.com) + + You may use, distribute and copy the Qt GUI Toolkit under the terms of + GNU Lesser General Public License version 2.1, which is displayed below. + +------------------------------------------------------------------------- + + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + + diff --git a/generator_50/abstractmetabuilder.cpp b/generator_50/abstractmetabuilder.cpp new file mode 100644 index 00000000..dc546124 --- /dev/null +++ b/generator_50/abstractmetabuilder.cpp @@ -0,0 +1,2636 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "abstractmetabuilder.h" +#include "reporthandler.h" + +#include "ast.h" +#include "binder.h" +#include "control.h" +#include "default_visitor.h" +#include "dumptree.h" +#include "lexer.h" +#include "parser.h" +#include "tokens.h" + +#include +#include +#include +#include +#include +#include + +static QString strip_template_args(const QString &name) +{ + int pos = name.indexOf('<'); + return pos < 0 ? name : name.left(pos); +} + +static QHash *operator_names; +QString rename_operator(const QString &oper) +{ + QString op = oper.trimmed(); + if (!operator_names) { + operator_names = new QHash; + + operator_names->insert("+", "__add__"); + operator_names->insert("-", "__sub__"); + operator_names->insert("*", "__mul__"); + operator_names->insert("/", "__div__"); + operator_names->insert("%", "__mod__"); + operator_names->insert("&", "__and__"); + operator_names->insert("|", "__or__"); + operator_names->insert("^", "__xor__"); + operator_names->insert("~", "__invert__"); + operator_names->insert("<<", "__lshift__"); + operator_names->insert(">>", "__rshift__"); + + // assigments + operator_names->insert("=", "assign"); + operator_names->insert("+=", "__iadd__"); + operator_names->insert("-=", "__isub__"); + operator_names->insert("*=", "__imul__"); + operator_names->insert("/=", "__idiv__"); + operator_names->insert("%=", "__imod__"); + operator_names->insert("&=", "__iand__"); + operator_names->insert("|=", "__ior__"); + operator_names->insert("^=", "__ixor__"); + operator_names->insert("<<=", "__ilshift__"); + operator_names->insert(">>=", "__irshift__"); + + // Logical + operator_names->insert("&&", "logical_and"); + operator_names->insert("||", "logical_or"); + operator_names->insert("!", "not"); + + // incr/decr + operator_names->insert("++", "increment"); + operator_names->insert("--", "decrement"); + + // compare + operator_names->insert("<", "__lt__"); + operator_names->insert(">", "__gt__"); + operator_names->insert("<=", "__le__"); + operator_names->insert(">=", "__ge__"); + operator_names->insert("!=", "__ne__"); + operator_names->insert("==", "__eq__"); + + // other + operator_names->insert("[]", "subscript"); + operator_names->insert("->", "pointer"); + } + + if (!operator_names->contains(op)) { + TypeDatabase *tb = TypeDatabase::instance(); + + TypeParser::Info typeInfo = TypeParser::parse(op); + QString cast_to_name = typeInfo.qualified_name.join("::"); + TypeEntry *te = tb->findType(cast_to_name); + if ((te && te->codeGeneration() == TypeEntry::GenerateNothing) + || tb->isClassRejected(cast_to_name)) { + return QString(); + } else if (te) { + return "operator_cast_" + typeInfo.qualified_name.join("_"); + } else { + ReportHandler::warning(QString("unknown operator '%1'").arg(op)); + return "operator " + op; + } + } + + QString r = operator_names->value(op); + if (r.startsWith("__")) { + return r; + } else { + return "operator_" + r; + } +} + +AbstractMetaBuilder::AbstractMetaBuilder() + : m_current_class(0) +{ +} + +void AbstractMetaBuilder::checkFunctionModifications() +{ + TypeDatabase *types = TypeDatabase::instance(); + SingleTypeEntryHash entryHash = types->entries(); + QList entries = entryHash.values(); + foreach (TypeEntry *entry, entries) { + if (entry == 0) + continue; + if (!entry->isComplex() || entry->codeGeneration() == TypeEntry::GenerateNothing) + continue; + + ComplexTypeEntry *centry = static_cast(entry); + FunctionModificationList modifications = centry->functionModifications(); + + foreach (FunctionModification modification, modifications) { + QString signature = modification.signature; + + QString name = signature.trimmed(); + name = name.mid(0, signature.indexOf("(")); + + AbstractMetaClass *clazz = m_meta_classes.findClass(centry->qualifiedCppName()); + if (clazz == 0) + continue; + + AbstractMetaFunctionList functions = clazz->functions(); + bool found = false; + QStringList possibleSignatures; + foreach (AbstractMetaFunction *function, functions) { + if (function->minimalSignature() == signature && function->implementingClass() == clazz) { + found = true; + break; + } + + if (function->originalName() == name) + possibleSignatures.append(function->minimalSignature() + " in " + function->implementingClass()->name()); + } + + if (!found) { + QString warning + = QString("signature '%1' for function modification in '%2' not found. Possible candidates: %3") + .arg(signature) + .arg(clazz->qualifiedCppName()) + .arg(possibleSignatures.join(", ")); + + ReportHandler::warning(warning); + } + } + } +} + +AbstractMetaClass *AbstractMetaBuilder::argumentToClass(ArgumentModelItem argument) +{ + AbstractMetaClass *returned = 0; + bool ok = false; + AbstractMetaType *type = translateType(argument->type(), &ok); + if (ok && type != 0 && type->typeEntry() != 0 && type->typeEntry()->isComplex()) { + const TypeEntry *entry = type->typeEntry(); + returned = m_meta_classes.findClass(entry->name()); + } + delete type; + return returned; +} + +/** + * Checks the argument of a hash function and flags the type if it is a complex type + */ +void AbstractMetaBuilder::registerHashFunction(FunctionModelItem function_item) +{ + ArgumentList arguments = function_item->arguments(); + if (arguments.size() == 1) { + if (AbstractMetaClass *cls = argumentToClass(arguments.at(0))) + cls->setHasHashFunction(true); + } +} + +/** + * Check if a class has a debug stream operator that can be used as toString + */ + +void AbstractMetaBuilder::registerToStringCapability(FunctionModelItem function_item) +{ + ArgumentList arguments = function_item->arguments(); + if (arguments.size() == 2) { + if (arguments.at(0)->type().toString() == "QDebug"){ + ArgumentModelItem arg = arguments.at(1); + if (AbstractMetaClass *cls = argumentToClass(arg)) { + if (arg->type().indirections() < 2 && cls->name()!="QObject") { + cls->setToStringCapability(function_item); + } + } + } + } +} + +void AbstractMetaBuilder::traverseCompareOperator(FunctionModelItem item) { + ArgumentList arguments = item->arguments(); + if (arguments.size() == 2 && item->accessPolicy() == CodeModel::Public) { + AbstractMetaClass *comparer_class = argumentToClass(arguments.at(0)); + AbstractMetaClass *compared_class = argumentToClass(arguments.at(1)); + if (comparer_class != 0 && compared_class != 0) { + AbstractMetaClass *old_current_class = m_current_class; + m_current_class = comparer_class; + + AbstractMetaFunction *meta_function = traverseFunction(item); + if (meta_function != 0 && !meta_function->isInvalid()) { + // Strip away first argument, since that is the containing object + AbstractMetaArgumentList arguments = meta_function->arguments(); + arguments.pop_front(); + meta_function->setArguments(arguments); + + meta_function->setFunctionType(AbstractMetaFunction::GlobalScopeFunction); + + meta_function->setOriginalAttributes(meta_function->attributes()); + setupFunctionDefaults(meta_function, comparer_class); + + comparer_class->addFunction(meta_function); + } else if (meta_function != 0) { + delete meta_function; + } + + m_current_class = old_current_class; + } + } +} + +void AbstractMetaBuilder::traverseStreamOperator(FunctionModelItem item) +{ + ArgumentList arguments = item->arguments(); + if (arguments.size() == 2 && item->accessPolicy() == CodeModel::Public) { + AbstractMetaClass *streamClass = argumentToClass(arguments.at(0)); + AbstractMetaClass *streamedClass = argumentToClass(arguments.at(1)); + + if (streamClass != 0 && streamedClass != 0 + && (streamClass->name() == "QDataStream" || streamClass->name() == "QTextStream")) { + AbstractMetaClass *old_current_class = m_current_class; + m_current_class = streamedClass; + AbstractMetaFunction *streamFunction = traverseFunction(item); + + if (streamFunction != 0 && !streamFunction->isInvalid()) { + QString name = item->name(); + streamFunction->setFunctionType(AbstractMetaFunction::GlobalScopeFunction); + + if (name.endsWith("<<")) + streamFunction->setName("writeTo"); + else + streamFunction->setName("readFrom"); + + // Strip away last argument, since that is the containing object + AbstractMetaArgumentList arguments = streamFunction->arguments(); + arguments.pop_back(); + streamFunction->setArguments(arguments); + + *streamFunction += AbstractMetaAttributes::Final; + *streamFunction += AbstractMetaAttributes::Public; + streamFunction->setOriginalAttributes(streamFunction->attributes()); + + streamFunction->setType(0); + + setupFunctionDefaults(streamFunction, streamedClass); + + streamedClass->addFunction(streamFunction); + streamedClass->typeEntry()->addExtraInclude(streamClass->typeEntry()->include()); + + m_current_class = old_current_class; + } + } + } +} + +void AbstractMetaBuilder::traverseBinaryArithmeticOperator(FunctionModelItem item) +{ + ArgumentList arguments = item->arguments(); + if (arguments.size() == 2 && item->accessPolicy() == CodeModel::Public) { + AbstractMetaClass *aClass = argumentToClass(arguments.at(0)); + AbstractMetaClass *bClass = argumentToClass(arguments.at(1)); + + if (!aClass) return; + + AbstractMetaClass *old_current_class = m_current_class; + m_current_class = aClass; + AbstractMetaFunction *streamFunction = traverseFunction(item); + if (streamFunction != 0 && !streamFunction->isInvalid()) { + QString name = rename_operator(item->name().mid(8)); + if (name.isEmpty()) return; + + streamFunction->setFunctionType(AbstractMetaFunction::GlobalScopeFunction); + streamFunction->setName(name); + + // Strip away the first argument, since that is the operator object + AbstractMetaArgumentList arguments = streamFunction->arguments(); + arguments.removeFirst(); + streamFunction->setArguments(arguments); + + *streamFunction += AbstractMetaAttributes::Final; + *streamFunction += AbstractMetaAttributes::Public; + streamFunction->setOriginalAttributes(streamFunction->attributes()); + + setupFunctionDefaults(streamFunction, aClass); + + aClass->addFunction(streamFunction); + if (bClass) { + aClass->typeEntry()->addExtraInclude(bClass->typeEntry()->include()); + } + + m_current_class = old_current_class; + } + } +} +void AbstractMetaBuilder::fixQObjectForScope(TypeDatabase *types, + NamespaceModelItem scope) +{ + foreach (ClassModelItem item, scope->classes()) { + QString qualified_name = item->qualifiedName().join("::"); + TypeEntry *entry = types->findType(qualified_name); + if (entry) { + if (isQObject(qualified_name) && entry->isComplex()) { + ((ComplexTypeEntry *) entry)->setQObject(true); + } + } + } + + foreach (NamespaceModelItem item, scope->namespaceMap().values()) { + if (scope != item) + fixQObjectForScope(types, item); + } +} + +static bool class_less_than(AbstractMetaClass *a, AbstractMetaClass *b) +{ + return a->name() < b->name(); +} + + +void AbstractMetaBuilder::sortLists() +{ + qSort(m_meta_classes.begin(), m_meta_classes.end(), class_less_than); + foreach (AbstractMetaClass *cls, m_meta_classes) { + cls->sortFunctions(); + } +} + +bool AbstractMetaBuilder::build() +{ + Q_ASSERT(!m_file_name.isEmpty()); + + QFile file(m_file_name); + + if (!file.open(QFile::ReadOnly)) + return false; + + QTextStream stream(&file); + stream.setCodec(QTextCodec::codecForName("UTF-8")); + QByteArray contents = stream.readAll().toUtf8(); + file.close(); + + Control control; + Parser p(&control); + pool __pool; + + TranslationUnitAST *ast = p.parse(contents, contents.size(), &__pool); + + CodeModel model; + Binder binder(&model, p.location()); + m_dom = binder.run(ast); + + pushScope(model_dynamic_cast(m_dom)); + + QHash typeMap = m_dom->classMap(); + + + // fix up QObject's in the type system.. + TypeDatabase *types = TypeDatabase::instance(); + fixQObjectForScope(types, model_dynamic_cast(m_dom)); + + + // Start the generation... + foreach (ClassModelItem item, typeMap.values()) { + AbstractMetaClass *cls = traverseClass(item); + addAbstractMetaClass(cls); + } + + + QHash namespaceMap = m_dom->namespaceMap(); + foreach (NamespaceModelItem item, namespaceMap.values()) { + AbstractMetaClass *meta_class = traverseNamespace(item); + if (meta_class) + m_meta_classes << meta_class; + } + + + // Some trickery to support global-namespace enums... + QHash enumMap = m_dom->enumMap(); + m_current_class = 0; + foreach (EnumModelItem item, enumMap) { + AbstractMetaEnum *meta_enum = traverseEnum(item, 0, QSet()); + + if (meta_enum) { + QString package = meta_enum->typeEntry()->javaPackage(); + QString globalName = TypeDatabase::globalNamespaceClassName(meta_enum->typeEntry()); + + AbstractMetaClass *global = m_meta_classes.findClass(package + "." + globalName); + if (!global) { + ComplexTypeEntry *gte = new ObjectTypeEntry(globalName); + gte->setTargetLangPackage(meta_enum->typeEntry()->javaPackage()); + gte->setCodeGeneration(meta_enum->typeEntry()->codeGeneration()); + global = createMetaClass(); + global->setTypeEntry(gte); + *global += AbstractMetaAttributes::Final; + *global += AbstractMetaAttributes::Public; + *global += AbstractMetaAttributes::Fake; + + m_meta_classes << global; + } + + global->addEnum(meta_enum); + meta_enum->setEnclosingClass(global); + meta_enum->typeEntry()->setQualifier(globalName); + + // Global enums should be public despite not having public + // identifiers so we'll fix the original attributes here. + meta_enum->setOriginalAttributes(meta_enum->attributes()); + } + + + } + + + // Go through all typedefs to see if we have defined any + // specific typedefs to be used as classes. + TypeAliasList typeAliases = m_dom->typeAliases(); + foreach (TypeAliasModelItem typeAlias, typeAliases) { + AbstractMetaClass *cls = traverseTypeAlias(typeAlias); + addAbstractMetaClass(cls); + } + + + + + foreach (AbstractMetaClass *cls, m_meta_classes) { + if (!cls->isInterface() && !cls->isNamespace()) { + setupInheritance(cls); + } + } + + + foreach (AbstractMetaClass *cls, m_meta_classes) { + cls->fixFunctions(); + + if (cls->typeEntry() == 0) { + ReportHandler::warning(QString("class '%1' does not have an entry in the type system") + .arg(cls->name())); + } else { + if (!cls->hasConstructors() && !cls->isFinalInCpp() && !cls->isInterface() && !cls->isNamespace()) + cls->addDefaultConstructor(); + } + + if (cls->isAbstract() && !cls->isInterface()) { + cls->typeEntry()->setLookupName(cls->typeEntry()->targetLangName() + "$ConcreteWrapper"); + } + } + + QList entries = TypeDatabase::instance()->entries().values(); + foreach (const TypeEntry *entry, entries) { + if (entry->isPrimitive()) + continue; + + if ((entry->isValue() || entry->isObject()) + && !entry->isString() + && !entry->isChar() + && !entry->isContainer() + && !entry->isCustom() + && !entry->isVariant() + && !m_meta_classes.findClass(entry->qualifiedCppName())) { + ReportHandler::warning(QString("type '%1' is specified in typesystem, but not defined. This could potentially lead to compilation errors.") + .arg(entry->qualifiedCppName())); + } + + if (entry->isEnum()) { + QString pkg = entry->javaPackage(); + QString name = (pkg.isEmpty() ? QString() : pkg + ".") + + ((EnumTypeEntry *) entry)->javaQualifier(); + AbstractMetaClass *cls = m_meta_classes.findClass(name); + + if (!cls) { + ReportHandler::warning(QString("namespace '%1' for enum '%2' is not declared") + .arg(name).arg(entry->targetLangName())); + } else { + AbstractMetaEnum *e = cls->findEnum(entry->targetLangName()); + if (!e) + ReportHandler::warning(QString("enum '%1' is specified in typesystem, " + "but not declared") + .arg(entry->qualifiedCppName())); + } + } + } + + { + FunctionList hash_functions = m_dom->findFunctions("qHash"); + foreach (FunctionModelItem item, hash_functions) { + registerHashFunction(item); + } + } + + { + FunctionList hash_functions = m_dom->findFunctions("operator<<"); + foreach (FunctionModelItem item, hash_functions) { + registerToStringCapability(item); + } + } + + { + FunctionList compare_operators = m_dom->findFunctions("operator==") + + m_dom->findFunctions("operator<=") + + m_dom->findFunctions("operator>=") + + m_dom->findFunctions("operator<") + + m_dom->findFunctions("operator>"); + foreach (FunctionModelItem item, compare_operators) { + traverseCompareOperator(item); + } + } + + { + FunctionList stream_operators = + m_dom->findFunctions("operator+") + m_dom->findFunctions("operator-") + + m_dom->findFunctions("operator/") + m_dom->findFunctions("operator*") + + m_dom->findFunctions("operator&") + m_dom->findFunctions("operator|") + + m_dom->findFunctions("operator%") + m_dom->findFunctions("operator^"); + foreach (FunctionModelItem item, stream_operators) { + traverseBinaryArithmeticOperator(item); + } + } + { + FunctionList stream_operators = m_dom->findFunctions("operator<<") + m_dom->findFunctions("operator>>"); + foreach (FunctionModelItem item, stream_operators) { + traverseStreamOperator(item); + } + } + + figureOutEnumValues(); + figureOutDefaultEnumArguments(); + checkFunctionModifications(); + + foreach (AbstractMetaClass *cls, m_meta_classes) { + setupEquals(cls); + setupComparable(cls); + setupClonable(cls); + } + + dumpLog(); + + sortLists(); + + return true; +} + + +void AbstractMetaBuilder::addAbstractMetaClass(AbstractMetaClass *cls) +{ + if (!cls) + return; + + cls->setOriginalAttributes(cls->attributes()); + if (cls->typeEntry()->isContainer()) { + m_templates << cls; + } else { + m_meta_classes << cls; + if (cls->typeEntry()->designatedInterface()) { + AbstractMetaClass *interface = cls->extractInterface(); + m_meta_classes << interface; + ReportHandler::debugSparse(QString(" -> interface '%1'").arg(interface->name())); + } + } +} + + +AbstractMetaClass *AbstractMetaBuilder::traverseNamespace(NamespaceModelItem namespace_item) +{ + QString namespace_name = (!m_namespace_prefix.isEmpty() ? m_namespace_prefix + "::" : QString()) + namespace_item->name(); + NamespaceTypeEntry *type = TypeDatabase::instance()->findNamespaceType(namespace_name); + + if (TypeDatabase::instance()->isClassRejected(namespace_name)) { + m_rejected_classes.insert(namespace_name, GenerationDisabled); + return 0; + } + + if (!type) { + ReportHandler::warning(QString("namespace '%1' does not have a type entry") + .arg(namespace_name)); + return 0; + } + + AbstractMetaClass *meta_class = createMetaClass(); + meta_class->setTypeEntry(type); + + *meta_class += AbstractMetaAttributes::Public; + + m_current_class = meta_class; + + ReportHandler::debugSparse(QString("namespace '%1.%2'") + .arg(meta_class->package()) + .arg(namespace_item->name())); + + traverseEnums(model_dynamic_cast(namespace_item), meta_class, namespace_item->enumsDeclarations()); + traverseFunctions(model_dynamic_cast(namespace_item), meta_class); +// traverseClasses(model_dynamic_cast(namespace_item)); + + pushScope(model_dynamic_cast(namespace_item)); + m_namespace_prefix = currentScope()->qualifiedName().join("::"); + + + ClassList classes = namespace_item->classes(); + foreach (ClassModelItem cls, classes) { + AbstractMetaClass *mjc = traverseClass(cls); + addAbstractMetaClass(mjc); + } + + // Go through all typedefs to see if we have defined any + // specific typedefs to be used as classes. + TypeAliasList typeAliases = namespace_item->typeAliases(); + foreach (TypeAliasModelItem typeAlias, typeAliases) { + AbstractMetaClass *cls = traverseTypeAlias(typeAlias); + addAbstractMetaClass(cls); + } + + + + // Traverse namespaces recursively + QList inner_namespaces = namespace_item->namespaceMap().values(); + foreach (const NamespaceModelItem &ni, inner_namespaces) { + AbstractMetaClass *mjc = traverseNamespace(ni); + addAbstractMetaClass(mjc); + } + + m_current_class = 0; + + + popScope(); + m_namespace_prefix = currentScope()->qualifiedName().join("::"); + + if (!type->include().isValid()) { + QFileInfo info(namespace_item->fileName()); + type->setInclude(Include(Include::IncludePath, info.fileName())); + } + + return meta_class; +} + +struct Operator +{ + enum Type { Plus, ShiftLeft, None }; + + Operator() : type(None) { } + + int calculate(int x) { + switch (type) { + case Plus: return x + value; + case ShiftLeft: return x << value; + case None: return x; + } + return x; + } + + Type type; + int value; +}; + + + +Operator findOperator(QString *s) { + const char *names[] = { + "+", + "<<" + }; + + for (int i=0; i 0) { + bool ok; + QString right = str.mid(splitPoint + name.length()); + Operator op; + op.value = right.toInt(&ok); + if (ok) { + op.type = Operator::Type(i); + *s = str.left(splitPoint).trimmed(); + return op; + } + } + } + return Operator(); +} + +int AbstractMetaBuilder::figureOutEnumValue(const QString &stringValue, + int oldValuevalue, + AbstractMetaEnum *meta_enum, + AbstractMetaFunction *meta_function) +{ + if (stringValue.isEmpty()) + return oldValuevalue; + + QStringList stringValues = stringValue.split("|"); + + int returnValue = 0; + + bool matched = false; + + for (int i=0; i 0 && s.at(0) == QLatin1Char('0')) + v = s.toUInt(&ok, 0); + else + v = s.toInt(&ok); + + if (ok) { + matched = true; + + } else if (m_enum_values.contains(s)) { + v = m_enum_values[s]->value(); + matched = true; + + } else { + AbstractMetaEnumValue *ev = 0; + + if (meta_enum && (ev = meta_enum->values().find(s))) { + v = ev->value(); + matched = true; + + } else if (meta_enum && (ev = meta_enum->enclosingClass()->findEnumValue(s, meta_enum))) { + v = ev->value(); + matched = true; + + } else { + if (meta_enum) + ReportHandler::warning("unhandled enum value: " + s + " in " + + meta_enum->enclosingClass()->name() + "::" + + meta_enum->name()); + else + ReportHandler::warning("unhandled enum value: Unknown enum"); + } + } + + if (matched) + returnValue |= op.calculate(v); + } + + if (!matched) { + QString warn = QString("unmatched enum %1").arg(stringValue); + + if (meta_function != 0) { + warn += QString(" when parsing default value of '%1' in class '%2'") + .arg(meta_function->name()) + .arg(meta_function->implementingClass()->name()); + } + + ReportHandler::warning(warn); + returnValue = oldValuevalue; + } + + return returnValue; +} + +void AbstractMetaBuilder::figureOutEnumValuesForClass(AbstractMetaClass *meta_class, + QSet *classes) +{ + AbstractMetaClass *base = meta_class->baseClass(); + + if (base != 0 && !classes->contains(base)) + figureOutEnumValuesForClass(base, classes); + + if (classes->contains(meta_class)) + return; + + AbstractMetaEnumList enums = meta_class->enums(); + foreach (AbstractMetaEnum *e, enums) { + if (!e) { + ReportHandler::warning("bad enum in class " + meta_class->name()); + continue; + } + AbstractMetaEnumValueList lst = e->values(); + int value = 0; + for (int i=0; istringValue(), value, e); + lst.at(i)->setValue(value); + value++; + } + + // Check for duplicate values... + EnumTypeEntry *ete = e->typeEntry(); + if (!ete->forceInteger()) { + QHash entries; + foreach (AbstractMetaEnumValue *v, lst) { + + bool vRejected = ete->isEnumValueRejected(v->name()); + + AbstractMetaEnumValue *current = entries.value(v->value()); + if (current) { + bool currentRejected = ete->isEnumValueRejected(current->name()); + if (!currentRejected && !vRejected) { + ReportHandler::warning( + QString("duplicate enum values: %1::%2, %3 and %4 are %5, already rejected: (%6)") + .arg(meta_class->name()) + .arg(e->name()) + .arg(v->name()) + .arg(entries[v->value()]->name()) + .arg(v->value()) + .arg(ete->enumValueRejections().join(", "))); + continue; + } + } + + if (!vRejected) + entries[v->value()] = v; + } + + // Entries now contain all the original entries, no + // rejected ones... Use this to generate the enumValueRedirection table. + foreach (AbstractMetaEnumValue *reject, lst) { + if (!ete->isEnumValueRejected(reject->name())) + continue; + + AbstractMetaEnumValue *used = entries.value(reject->value()); + if (!used) { + ReportHandler::warning( + QString::fromLatin1("Rejected enum has no alternative...: %1::%2") + .arg(meta_class->name()) + .arg(reject->name())); + continue; + } + ete->addEnumValueRedirection(reject->name(), used->name()); + } + + } + } + + + + *classes += meta_class; +} + + +void AbstractMetaBuilder::figureOutEnumValues() +{ + // Keep a set of classes that we already traversed. We use this to + // enforce that we traverse base classes prior to subclasses. + QSet classes; + foreach (AbstractMetaClass *c, m_meta_classes) { + figureOutEnumValuesForClass(c, &classes); + } +} + +void AbstractMetaBuilder::figureOutDefaultEnumArguments() +{ + foreach (AbstractMetaClass *meta_class, m_meta_classes) { + foreach (AbstractMetaFunction *meta_function, meta_class->functions()) { + foreach (AbstractMetaArgument *arg, meta_function->arguments()) { + + QString expr = arg->defaultValueExpression(); + if (expr.isEmpty()) + continue; + + if (!meta_function->replacedDefaultExpression(meta_function->implementingClass(), + arg->argumentIndex()+1).isEmpty()) { + continue; + } + + QString new_expr = expr; + if (arg->type()->isEnum()) { + QStringList lst = expr.split(QLatin1String("::")); + if (lst.size() == 1) { + QVector classes(1, meta_class); + AbstractMetaEnum *e = 0; + while (!classes.isEmpty() && e == 0) { + if (classes.front() != 0) { + classes << classes.front()->baseClass(); + + AbstractMetaClassList interfaces = classes.front()->interfaces(); + foreach (AbstractMetaClass *interface, interfaces) + classes << interface->primaryInterfaceImplementor(); + + e = classes.front()->findEnumForValue(expr); + } + + classes.pop_front(); + } + + if (e != 0) { + new_expr = QString("%1.%2") + .arg(e->typeEntry()->qualifiedTargetLangName()) + .arg(expr); + } else { + ReportHandler::warning("Cannot find enum constant for value '" + expr + "' in '" + meta_class->name() + "' or any of its super classes"); + } + } else if (lst.size() == 2) { + AbstractMetaClass *cl = m_meta_classes.findClass(lst.at(0)); + if (!cl) { + ReportHandler::warning("missing required class for enums: " + lst.at(0)); + continue; + } + new_expr = QString("%1.%2.%3") + .arg(cl->typeEntry()->qualifiedTargetLangName()) + .arg(arg->type()->name()) + .arg(lst.at(1)); + } else { + ReportHandler::warning("bad default value passed to enum " + expr); + } + + } else if(arg->type()->isFlags()) { + const FlagsTypeEntry *flagsEntry = + static_cast(arg->type()->typeEntry()); + EnumTypeEntry *enumEntry = flagsEntry->originator(); + AbstractMetaEnum *meta_enum = m_meta_classes.findEnum(enumEntry); + if (!meta_enum) { + ReportHandler::warning("unknown required enum " + enumEntry->qualifiedCppName()); + continue; + } + + int value = figureOutEnumValue(expr, 0, meta_enum, meta_function); + new_expr = QString::number(value); + + } else if (arg->type()->isPrimitive()) { + AbstractMetaEnumValue *value = 0; + if (expr.contains("::")) + value = m_meta_classes.findEnumValue(expr); + if (!value) + value = meta_class->findEnumValue(expr, 0); + + if (value) { + new_expr = QString::number(value->value()); + } else if (expr.contains(QLatin1Char('+'))) { + new_expr = QString::number(figureOutEnumValue(expr, 0, 0)); + + } + + + + } + + arg->setDefaultValueExpression(new_expr); + } + } + } +} + + +AbstractMetaEnum *AbstractMetaBuilder::traverseEnum(EnumModelItem enum_item, AbstractMetaClass *enclosing, const QSet &enumsDeclarations) +{ + // Skipping private enums. + if (enum_item->accessPolicy() == CodeModel::Private) { + return 0; + } + + QString qualified_name = enum_item->qualifiedName().join("::"); + + TypeEntry *type_entry = TypeDatabase::instance()->findType(qualified_name); + QString enum_name = enum_item->name(); + + QString class_name; + if (m_current_class) + class_name = m_current_class->typeEntry()->qualifiedCppName(); + + if (TypeDatabase::instance()->isEnumRejected(class_name, enum_name)) { + m_rejected_enums.insert(qualified_name, GenerationDisabled); + return 0; + } + + if (!type_entry || !type_entry->isEnum()) { + QString context = m_current_class ? m_current_class->name() : QLatin1String(""); + ReportHandler::warning(QString("enum '%1' does not have a type entry or is not an enum") + .arg(qualified_name)); + m_rejected_enums.insert(qualified_name, NotInTypeSystem); + return 0; + } + + AbstractMetaEnum *meta_enum = createMetaEnum(); + if ( enumsDeclarations.contains(qualified_name) + || enumsDeclarations.contains(enum_name)) { + meta_enum->setHasQEnumsDeclaration(true); + } + + meta_enum->setTypeEntry((EnumTypeEntry *) type_entry); + switch (enum_item->accessPolicy()) { + case CodeModel::Public: *meta_enum += AbstractMetaAttributes::Public; break; + case CodeModel::Protected: *meta_enum += AbstractMetaAttributes::Protected; break; +// case CodeModel::Private: *meta_enum += AbstractMetaAttributes::Private; break; + default: break; + } + + ReportHandler::debugMedium(QString(" - traversing enum %1").arg(meta_enum->fullName())); + + foreach (EnumeratorModelItem value, enum_item->enumerators()) { + + AbstractMetaEnumValue *meta_enum_value = createMetaEnumValue(); + meta_enum_value->setName(value->name()); + // Deciding the enum value... + + meta_enum_value->setStringValue(value->value()); + meta_enum->addEnumValue(meta_enum_value); + + ReportHandler::debugFull(" - " + meta_enum_value->name() + " = " + + meta_enum_value->value()); + + // Add into global register... + if (enclosing) + m_enum_values[enclosing->name() + "::" + meta_enum_value->name()] = meta_enum_value; + else + m_enum_values[meta_enum_value->name()] = meta_enum_value; + } + + QFileInfo info(enum_item->fileName()); + meta_enum->typeEntry()->setInclude(Include(Include::IncludePath, info.fileName())); + + m_enums << meta_enum; + + return meta_enum; +} + +AbstractMetaClass *AbstractMetaBuilder::traverseTypeAlias(TypeAliasModelItem typeAlias) +{ + QString class_name = strip_template_args(typeAlias->name()); + + QString full_class_name = class_name; + // we have an inner class + if (m_current_class) { + full_class_name = strip_template_args(m_current_class->typeEntry()->qualifiedCppName()) + + "::" + full_class_name; + } + + // If we haven't specified anything for the typedef, then we don't care + ComplexTypeEntry *type = TypeDatabase::instance()->findComplexType(full_class_name); + if (type == 0) + return 0; + + if (type->isObject()) + static_cast(type)->setQObject(isQObject(strip_template_args(typeAlias->type().qualifiedName().join("::")))); + + AbstractMetaClass *meta_class = createMetaClass(); + meta_class->setTypeAlias(true); + meta_class->setTypeEntry(type); + meta_class->setBaseClassNames(QStringList() << typeAlias->type().qualifiedName().join("::")); + *meta_class += AbstractMetaAttributes::Public; + + // Set the default include file name + if (!type->include().isValid()) { + QFileInfo info(typeAlias->fileName()); + type->setInclude(Include(Include::IncludePath, info.fileName())); + } + + return meta_class; +} + +AbstractMetaClass *AbstractMetaBuilder::traverseClass(ClassModelItem class_item) +{ + QString class_name = strip_template_args(class_item->name()); + QString full_class_name = class_name; + + // we have inner an class + if (m_current_class) { + full_class_name = strip_template_args(m_current_class->typeEntry()->qualifiedCppName()) + + "::" + full_class_name; + } + + ComplexTypeEntry *type = TypeDatabase::instance()->findComplexType(full_class_name); + RejectReason reason = NoReason; + + if (full_class_name == "QMetaTypeId") { + // QtScript: record which types have been declared + int lpos = class_item->name().indexOf('<'); + int rpos = class_item->name().lastIndexOf('>'); + if ((lpos != -1) && (rpos != -1)) { + QString declared_typename = class_item->name().mid(lpos+1, rpos - lpos-1); + m_qmetatype_declared_typenames.insert(declared_typename); + } + } + + if (TypeDatabase::instance()->isClassRejected(full_class_name)) { + reason = GenerationDisabled; + } else if (!type) { + TypeEntry *te = TypeDatabase::instance()->findType(full_class_name); + if (te && !te->isComplex()) + reason = RedefinedToNotClass; + else + reason = NotInTypeSystem; + } else if (type->codeGeneration() == TypeEntry::GenerateNothing) { + reason = GenerationDisabled; + } + + if (reason != NoReason) { + m_rejected_classes.insert(full_class_name, reason); + return 0; + } + + if (type->isObject()) { + ((ObjectTypeEntry *)type)->setQObject(isQObject(full_class_name)); + } + + AbstractMetaClass *meta_class = createMetaClass(); + meta_class->setTypeEntry(type); + meta_class->setBaseClassNames(class_item->baseClasses()); + *meta_class += AbstractMetaAttributes::Public; + + AbstractMetaClass *old_current_class = m_current_class; + m_current_class = meta_class; + + if (type->isContainer()) { + ReportHandler::debugSparse(QString("container: '%1'").arg(full_class_name)); + } else { + ReportHandler::debugSparse(QString("class: '%1'").arg(meta_class->fullName())); + } + + TemplateParameterList template_parameters = class_item->templateParameters(); + QList template_args; + template_args.clear(); + for (int i=0; iname()); + param_type->setOrdinal(i); + template_args.append(param_type); + } + meta_class->setTemplateArguments(template_args); + + parseQ_Property(meta_class, class_item->propertyDeclarations()); + + traverseFunctions(model_dynamic_cast(class_item), meta_class); + traverseEnums(model_dynamic_cast(class_item), meta_class, class_item->enumsDeclarations()); + traverseFields(model_dynamic_cast(class_item), meta_class); + + // Inner classes + { + QList inner_classes = class_item->classMap().values(); + foreach (const ClassModelItem &ci, inner_classes) { + AbstractMetaClass *cl = traverseClass(ci); + if (cl) { + cl->setEnclosingClass(meta_class); + m_meta_classes << cl; + } + } + + } + + // Go through all typedefs to see if we have defined any + // specific typedefs to be used as classes. + TypeAliasList typeAliases = class_item->typeAliases(); + foreach (TypeAliasModelItem typeAlias, typeAliases) { + AbstractMetaClass *cls = traverseTypeAlias(typeAlias); + if (cls != 0) { + cls->setEnclosingClass(meta_class); + addAbstractMetaClass(cls); + } + } + + + m_current_class = old_current_class; + + // Set the default include file name + if (!type->include().isValid()) { + QFileInfo info(class_item->fileName()); + type->setInclude(Include(Include::IncludePath, info.fileName())); + } + + return meta_class; +} + +AbstractMetaField *AbstractMetaBuilder::traverseField(VariableModelItem field, const AbstractMetaClass *cls) +{ + QString field_name = field->name(); + QString class_name = m_current_class->typeEntry()->qualifiedCppName(); + + // Ignore friend decl. + if (field->isFriend()) + return 0; + + if (field->accessPolicy() == CodeModel::Private) + return 0; + + if (TypeDatabase::instance()->isFieldRejected(class_name, field_name)) { + m_rejected_fields.insert(class_name + "::" + field_name, GenerationDisabled); + return 0; + } + + + AbstractMetaField *meta_field = createMetaField(); + meta_field->setName(field_name); + meta_field->setEnclosingClass(cls); + + bool ok; + TypeInfo field_type = field->type(); + AbstractMetaType *meta_type = translateType(field_type, &ok); + + if (!meta_type || !ok) { + ReportHandler::warning(QString("skipping field '%1::%2' with unmatched type '%3'") + .arg(m_current_class->name()) + .arg(field_name) + .arg(TypeInfo::resolveType(field_type, currentScope()->toItem()).qualifiedName().join("::"))); + delete meta_field; + return 0; + } + + meta_field->setType(meta_type); + + uint attr = 0; + if (field->isStatic()) + attr |= AbstractMetaAttributes::Static; + + CodeModel::AccessPolicy policy = field->accessPolicy(); + if (policy == CodeModel::Public) + attr |= AbstractMetaAttributes::Public; + else if (policy == CodeModel::Protected) + attr |= AbstractMetaAttributes::Protected; + else + attr |= AbstractMetaAttributes::Private; + meta_field->setAttributes(attr); + + return meta_field; +} + +void AbstractMetaBuilder::traverseFields(ScopeModelItem scope_item, AbstractMetaClass *meta_class) +{ + foreach (VariableModelItem field, scope_item->variables()) { + AbstractMetaField *meta_field = traverseField(field, meta_class); + + if (meta_field) { + meta_field->setOriginalAttributes(meta_field->attributes()); + meta_class->addField(meta_field); + } + } +} + +void AbstractMetaBuilder::setupFunctionDefaults(AbstractMetaFunction *meta_function, AbstractMetaClass *meta_class) +{ + // Set the default value of the declaring class. This may be changed + // in fixFunctions later on + meta_function->setDeclaringClass(meta_class); + + // Some of the queries below depend on the implementing class being set + // to function properly. Such as function modifications + meta_function->setImplementingClass(meta_class); + + if (meta_function->name() == "operator_equal") + meta_class->setHasEqualsOperator(true); + + if (!meta_function->isFinalInTargetLang() + && meta_function->isRemovedFrom(meta_class, TypeSystem::TargetLangCode)) { + *meta_function += AbstractMetaAttributes::FinalInCpp; + } +} + +void AbstractMetaBuilder::traverseFunctions(ScopeModelItem scope_item, AbstractMetaClass *meta_class) +{ + foreach (FunctionModelItem function, scope_item->functions()) { + AbstractMetaFunction *meta_function = traverseFunction(function); + + if (meta_function) { + meta_function->setOriginalAttributes(meta_function->attributes()); + if (meta_class->isNamespace()) + *meta_function += AbstractMetaAttributes::Static; + + if (QPropertySpec *read = meta_class->propertySpecForRead(meta_function->name())) { + if (read->type() == meta_function->type()->typeEntry()) { + *meta_function += AbstractMetaAttributes::PropertyReader; + meta_function->setPropertySpec(read); +// printf("%s is reader for %s\n", +// qPrintable(meta_function->name()), +// qPrintable(read->name())); + } + } else if (QPropertySpec *write = + meta_class->propertySpecForWrite(meta_function->name())) { + if (write->type() == meta_function->arguments().at(0)->type()->typeEntry()) { + *meta_function += AbstractMetaAttributes::PropertyWriter; + meta_function->setPropertySpec(write); +// printf("%s is writer for %s\n", +// qPrintable(meta_function->name()), +// qPrintable(write->name())); + } + } else if (QPropertySpec *reset = + meta_class->propertySpecForReset(meta_function->name())) { + *meta_function += AbstractMetaAttributes::PropertyResetter; + meta_function->setPropertySpec(reset); +// printf("%s is resetter for %s\n", +// qPrintable(meta_function->name()), +// qPrintable(reset->name())); + } + + + bool isInvalidDestructor = meta_function->isDestructor() && meta_function->isPrivate(); + bool isInvalidConstructor = meta_function->isConstructor() + && (meta_function->isPrivate() || meta_function->isInvalid()); + if ((isInvalidDestructor || isInvalidConstructor) + && !meta_class->hasNonPrivateConstructor()) { + *meta_class += AbstractMetaAttributes::Final; + } else if (meta_function->isConstructor() && !meta_function->isPrivate()) { + *meta_class -= AbstractMetaAttributes::Final; + meta_class->setHasNonPrivateConstructor(true); + } + + // Classes with virtual destructors should always have a shell class + // (since we aren't registering the destructors, we need this extra check) + if (meta_function->isDestructor() && !meta_function->isFinal()) + meta_class->setForceShellClass(true); + + if (!meta_function->isDestructor() + && !meta_function->isInvalid() + && (!meta_function->isConstructor() || !meta_function->isPrivate())) { + + if (meta_class->typeEntry()->designatedInterface() && !meta_function->isPublic() + && !meta_function->isPrivate()) { + QString warn = QString("non-public function '%1' in interface '%2'") + .arg(meta_function->name()).arg(meta_class->name()); + ReportHandler::warning(warn); + + meta_function->setVisibility(AbstractMetaClass::Public); + } + + setupFunctionDefaults(meta_function, meta_class); + + if (meta_function->isSignal() && meta_class->hasSignal(meta_function)) { + QString warn = QString("signal '%1' in class '%2' is overloaded.") + .arg(meta_function->name()).arg(meta_class->name()); + ReportHandler::warning(warn); + } + + if (meta_function->isSignal() && !meta_class->isQObject()) { + QString warn = QString("signal '%1' in non-QObject class '%2'") + .arg(meta_function->name()).arg(meta_class->name()); + ReportHandler::warning(warn); + } + + meta_class->addFunction(meta_function); + } else if (meta_function->isDestructor()) { + meta_class->setDestructorException(meta_function->exception()); + if (!meta_function->isPublic()) + meta_class->setHasPublicDestructor(false); + } + } + } +} + +bool AbstractMetaBuilder::setupInheritance(AbstractMetaClass *meta_class) +{ + Q_ASSERT(!meta_class->isInterface()); + + if (m_setup_inheritance_done.contains(meta_class)) + return true; + m_setup_inheritance_done.insert(meta_class); + + QStringList base_classes = meta_class->baseClassNames(); + + TypeDatabase *types = TypeDatabase::instance(); + + // we only support our own containers and ONLY if there is only one baseclass + if (base_classes.size() == 1 && base_classes.first().count('<') == 1) { + QStringList scope = meta_class->typeEntry()->qualifiedCppName().split("::"); + scope.removeLast(); + for (int i=scope.size(); i>=0; --i) { + QString prefix = i > 0 ? QStringList(scope.mid(0, i)).join("::") + "::" : QString(); + QString complete_name = prefix + base_classes.first(); + TypeParser::Info info = TypeParser::parse(complete_name); + QString base_name = info.qualified_name.join("::"); + + AbstractMetaClass *templ = 0; + foreach (AbstractMetaClass *c, m_templates) { + if (c->typeEntry()->name() == base_name) { + templ = c; + break; + } + } + + if (templ == 0) + templ = m_meta_classes.findClass(base_name); + + if (templ) { + setupInheritance(templ); + inheritTemplate(meta_class, templ, info); + return true; + } + } + + ReportHandler::warning(QString("template baseclass '%1' of '%2' is not known") + .arg(base_classes.first()) + .arg(meta_class->name())); + return false; + } + + int primary = -1; + int primaries = 0; + for (int i=0; iisClassRejected(base_classes.at(i))) + continue; + + TypeEntry *base_class_entry = types->findType(base_classes.at(i)); + if (!base_class_entry) { + ReportHandler::warning(QString("class '%1' inherits from unknown base class '%2'") + .arg(meta_class->name()).arg(base_classes.at(i))); + } + + // true for primary base class + else if (!base_class_entry->designatedInterface()) { + if (primaries > 0) { + ReportHandler::warning(QString("class '%1' has multiple primary base classes" + " '%2' and '%3'") + .arg(meta_class->name()) + .arg(base_classes.at(primary)) + .arg(base_class_entry->name())); + return false; + } + primaries++; + primary = i; + } + } + + if (primary >= 0) { + AbstractMetaClass *base_class = m_meta_classes.findClass(base_classes.at(primary)); + if (!base_class) { + ReportHandler::warning(QString("unknown baseclass for '%1': '%2'") + .arg(meta_class->name()) + .arg(base_classes.at(primary))); + return false; + } + meta_class->setBaseClass(base_class); + + if (meta_class->typeEntry()->designatedInterface() != 0 && meta_class->isQObject()) { + ReportHandler::warning(QString("QObject extended by interface type '%1'. This is not supported and the generated Java code will not compile.") + .arg(meta_class->name())); + } else if (meta_class->typeEntry()->designatedInterface() != 0 && base_class != 0 && !base_class->isInterface()) { + ReportHandler::warning(QString("object type '%1' extended by interface type '%2'. The resulting API will be less expressive than the original.") + .arg(base_class->name()) + .arg(meta_class->name())); + } + + } + + for (int i=0; iisClassRejected(base_classes.at(i))) + continue; + + if (i != primary) { + AbstractMetaClass *base_class = m_meta_classes.findClass(base_classes.at(i)); + if (base_class == 0) { + ReportHandler::warning(QString("class not found for setup inheritance '%1'").arg(base_classes.at(i))); + return false; + } + + setupInheritance(base_class); + + QString interface_name = InterfaceTypeEntry::interfaceName(base_class->name()); + AbstractMetaClass *iface = m_meta_classes.findClass(interface_name); + if (!iface) { + ReportHandler::warning(QString("unknown interface for '%1': '%2'") + .arg(meta_class->name()) + .arg(interface_name)); + return false; + } + meta_class->addInterface(iface); + + AbstractMetaClassList interfaces = iface->interfaces(); + foreach (AbstractMetaClass *iface, interfaces) + meta_class->addInterface(iface); + } + } + + return true; +} + +void AbstractMetaBuilder::traverseEnums(ScopeModelItem scope_item, AbstractMetaClass *meta_class, const QStringList &enumsDeclarations) +{ + EnumList enums = scope_item->enums(); + foreach (EnumModelItem enum_item, enums) { + AbstractMetaEnum *meta_enum = traverseEnum(enum_item, meta_class, QSet::fromList(enumsDeclarations)); + if (meta_enum) { + meta_enum->setOriginalAttributes(meta_enum->attributes()); + meta_class->addEnum(meta_enum); + meta_enum->setEnclosingClass(meta_class); + } + } +} + +AbstractMetaFunction *AbstractMetaBuilder::traverseFunction(FunctionModelItem function_item) +{ + QString function_name = function_item->name(); + QString class_name = m_current_class->typeEntry()->qualifiedCppName(); + + if (TypeDatabase::instance()->isFunctionRejected(class_name, function_name)) { + m_rejected_functions.insert(class_name + "::" + function_name, GenerationDisabled); + return 0; + } + + + Q_ASSERT(function_item->functionType() == CodeModel::Normal + || function_item->functionType() == CodeModel::Signal + || function_item->functionType() == CodeModel::Slot); + + if (function_item->isFriend()) + return 0; + + + QString cast_type; + + if (function_name.startsWith("operator")) { + function_name = rename_operator(function_name.mid(8)); + if (function_name.isEmpty()) { + m_rejected_functions.insert(class_name + "::" + function_name, + GenerationDisabled); + return 0; + } + if (function_name.contains("_cast_")) + cast_type = function_name.mid(14).trimmed(); + } + + AbstractMetaFunction *meta_function = createMetaFunction(); + meta_function->setConstant(function_item->isConstant()); + meta_function->setException(function_item->exception()); + + ReportHandler::debugMedium(QString(" - %2()").arg(function_name)); + + meta_function->setName(function_name); + meta_function->setOriginalName(function_item->name()); + + if (function_item->isAbstract()) + *meta_function += AbstractMetaAttributes::Abstract; + + if (!meta_function->isAbstract()) + *meta_function += AbstractMetaAttributes::Native; + + if (!function_item->isVirtual()) + *meta_function += AbstractMetaAttributes::Final; + + if (function_item->isInvokable()) + *meta_function += AbstractMetaAttributes::Invokable; + + if (function_item->isStatic()) { + *meta_function += AbstractMetaAttributes::Static; + *meta_function += AbstractMetaAttributes::Final; + } + + // Access rights + if (function_item->accessPolicy() == CodeModel::Public) + *meta_function += AbstractMetaAttributes::Public; + else if (function_item->accessPolicy() == CodeModel::Private) + *meta_function += AbstractMetaAttributes::Private; + else + *meta_function += AbstractMetaAttributes::Protected; + + + QString stripped_class_name = class_name; + int cc_pos = stripped_class_name.lastIndexOf("::"); + if (cc_pos > 0) + stripped_class_name = stripped_class_name.mid(cc_pos + 2); + + TypeInfo function_type = function_item->type(); + if (function_name.startsWith('~')) { + meta_function->setFunctionType(AbstractMetaFunction::DestructorFunction); + meta_function->setInvalid(true); + } else if (strip_template_args(function_name) == stripped_class_name) { + meta_function->setFunctionType(AbstractMetaFunction::ConstructorFunction); + meta_function->setName(m_current_class->name()); + } else { + bool ok; + AbstractMetaType *type = 0; + + if (!cast_type.isEmpty()) { + TypeInfo info; + info.setQualifiedName(QStringList(cast_type)); + type = translateType(info, &ok); + } else { + type = translateType(function_type, &ok); + } + + if (!ok) { + ReportHandler::warning(QString("skipping function '%1::%2', unmatched return type '%3'") + .arg(class_name) + .arg(function_item->name()) + .arg(function_item->type().toString())); + m_rejected_functions[class_name + "::" + function_name] = + UnmatchedReturnType; + meta_function->setInvalid(true); + return meta_function; + } + meta_function->setType(type); + + if (function_item->functionType() == CodeModel::Signal) + meta_function->setFunctionType(AbstractMetaFunction::SignalFunction); + else if (function_item->functionType() == CodeModel::Slot) + meta_function->setFunctionType(AbstractMetaFunction::SlotFunction); + } + + ArgumentList arguments = function_item->arguments(); + AbstractMetaArgumentList meta_arguments; + + int first_default_argument = 0; + for (int i=0; itype(), &ok); + if (!meta_type || !ok) { + ReportHandler::warning(QString("skipping function '%1::%2', " + "unmatched parameter type '%3'") + .arg(class_name) + .arg(function_item->name()) + .arg(arg->type().toString())); + m_rejected_functions[class_name + "::" + function_name] = + UnmatchedArgumentType; + meta_function->setInvalid(true); + return meta_function; + } + AbstractMetaArgument *meta_argument = createMetaArgument(); + meta_argument->setType(meta_type); + meta_argument->setName(arg->name()); + meta_argument->setArgumentIndex(i); + meta_arguments << meta_argument; + } + + meta_function->setArguments(meta_arguments); + + // Find the correct default values + for (int i=0; idefaultValue()) { + QString expr = arg->defaultValueExpression(); + if (!expr.isEmpty()) + meta_arg->setOriginalDefaultValueExpression(expr); + + expr = translateDefaultValue(arg, meta_arg->type(), meta_function, m_current_class, i); + if (expr.isEmpty()) { + first_default_argument = i; + } else { + meta_arg->setDefaultValueExpression(expr); + } + + if (meta_arg->type()->isEnum() || meta_arg->type()->isFlags()) { + m_enum_default_arguments + << QPair(meta_arg, meta_function); + } + + } + } + + // If we where not able to translate the default argument make it + // reset all default arguments before this one too. + for (int i=0; isetDefaultValueExpression(QString()); + + if (ReportHandler::debugLevel() == ReportHandler::FullDebug) + foreach(AbstractMetaArgument *arg, meta_arguments) + ReportHandler::debugFull(" - " + arg->toString()); + + return meta_function; +} + + +AbstractMetaType *AbstractMetaBuilder::translateType(const TypeInfo &_typei, bool *ok, bool resolveType, bool resolveScope) +{ + Q_ASSERT(ok); + *ok = true; + + // 1. Test the type info without resolving typedefs in case this is present in the + // type system + TypeInfo typei; + if (resolveType) { + bool isok; + AbstractMetaType *t = translateType(_typei, &isok, false, resolveScope); + if (t != 0 && isok) + return t; + } + + if (!resolveType) + typei = _typei; + else { + // Go through all parts of the current scope (including global namespace) + // to resolve typedefs. The parser does not properly resolve typedefs in + // the global scope when they are referenced from inside a namespace. + // This is a work around to fix this bug since fixing it in resolveType + // seemed non-trivial + int i = m_scopes.size() - 1; + while (i >= 0) { + typei = TypeInfo::resolveType(_typei, m_scopes.at(i--)->toItem()); + if (typei.qualifiedName().join("::") != _typei.qualifiedName().join("::")) + break; + } + + } + + if (typei.isFunctionPointer()) { + *ok = false; + return 0; + } + + TypeParser::Info typeInfo = TypeParser::parse(typei.toString()); + if (typeInfo.is_busted) { + *ok = false; + return 0; + } + + // 2. Handle pointers specified as arrays with unspecified size + bool array_of_unspecified_size = false; + if (typeInfo.arrays.size() > 0) { + array_of_unspecified_size = true; + for (int i=0; i=0; --i) { + QString s = typeInfo.arrays.at(i); + bool isok; + + int elems = s.toInt(&isok); + if (!isok) + return 0; + + AbstractMetaType *arrayType = createMetaType(); + arrayType->setArrayElementCount(elems); + arrayType->setArrayElementType(elementType); + arrayType->setTypeEntry(new ArrayTypeEntry(elementType->typeEntry())); + decideUsagePattern(arrayType); + + elementType = arrayType; + } + + return elementType; + } else { + typeInfo.indirections += typeInfo.arrays.size(); + } + } + + QStringList qualifier_list = typeInfo.qualified_name; + if (qualifier_list.isEmpty()) { + ReportHandler::warning(QString("horribly broken type '%1'").arg(_typei.toString())); + *ok = false; + return 0; + } + + QString qualified_name = qualifier_list.join("::"); + QString name = qualifier_list.takeLast(); + + // 3. Special case 'void' type + if (name == "void" && typeInfo.indirections == 0) { + return 0; + } + + // 4. Special case QFlags (include instantiation in name) + if (qualified_name == "QFlags") + qualified_name = typeInfo.toString(); + + // 5. Try to find the type + const TypeEntry *type = TypeDatabase::instance()->findType(qualified_name); + + // 6. No? Try looking it up as a flags type + if (!type) + type = TypeDatabase::instance()->findFlagsType(qualified_name); + + // 7. No? Try looking it up as a container type + if (!type) + type = TypeDatabase::instance()->findContainerType(name); + + // 8. No? Check if the current class is a template and this type is one + // of the parameters. + if (type == 0 && m_current_class != 0) { + QList template_args = m_current_class->templateArguments(); + foreach (TypeEntry *te, template_args) { + if (te->name() == qualified_name) + type = te; + } + } + + // 9. Try finding the type by prefixing it with the current + // context and all baseclasses of the current context + if (!type && !TypeDatabase::instance()->isClassRejected(qualified_name) && m_current_class != 0 && resolveScope) { + QStringList contexts; + contexts.append(m_current_class->qualifiedCppName()); + contexts.append(currentScope()->qualifiedName().join("::")); + + + TypeInfo info = typei; + bool subclasses_done = false; + while (!contexts.isEmpty() && type == 0) { + //type = TypeDatabase::instance()->findType(contexts.at(0) + "::" + qualified_name); + + bool isok; + info.setQualifiedName(QStringList() << contexts.at(0) << qualified_name); + AbstractMetaType *t = translateType(info, &isok, true, false); + if (t != 0 && isok) + return t; + + ClassModelItem item = m_dom->findClass(contexts.at(0)); + if (item) + contexts += item->baseClasses(); + contexts.pop_front(); + + // 10. Last resort: Special cased prefix of Qt namespace since the meta object implicitly inherits this, so + // enum types from there may be addressed without any scope resolution in properties. + if (contexts.size() == 0 && !subclasses_done) { + contexts << "Qt"; + subclasses_done = true; + } + } + + } + + if (!type) { + *ok = false; + return 0; + } + + // Used to for diagnostics later... + m_used_types << type; + + // These are only implicit and should not appear in code... + Q_ASSERT(!type->isInterface()); + + AbstractMetaType *meta_type = createMetaType(); + meta_type->setTypeEntry(type); + meta_type->setIndirections(typeInfo.indirections); + meta_type->setReference(typeInfo.is_reference); + meta_type->setConstant(typeInfo.is_constant); + meta_type->setOriginalTypeDescription(_typei.toString()); + decideUsagePattern(meta_type); + + if (meta_type->typeEntry()->isContainer()) { + ContainerTypeEntry::Type container_type = static_cast(type)->type(); + + if (container_type == ContainerTypeEntry::StringListContainer) { + TypeInfo info; + info.setQualifiedName(QStringList() << "QString"); + AbstractMetaType *targ_type = translateType(info, ok); + + Q_ASSERT(*ok); + Q_ASSERT(targ_type); + + meta_type->addInstantiation(targ_type); + meta_type->setInstantiationInCpp(false); + + } else { + foreach (const TypeParser::Info &ta, typeInfo.template_instantiations) { + TypeInfo info; + info.setConstant(ta.is_constant); + info.setReference(ta.is_reference); + info.setIndirections(ta.indirections); + + info.setFunctionPointer(false); + info.setQualifiedName(ta.instantiationName().split("::")); + + AbstractMetaType *targ_type = translateType(info, ok); + if (!(*ok)) { + delete meta_type; + return 0; + } + + meta_type->addInstantiation(targ_type); + } + } + + if (container_type == ContainerTypeEntry::ListContainer + || container_type == ContainerTypeEntry::VectorContainer + || container_type == ContainerTypeEntry::StringListContainer) { + Q_ASSERT(meta_type->instantiations().size() == 1); + } + } + + return meta_type; +} + +void AbstractMetaBuilder::decideUsagePattern(AbstractMetaType *meta_type) +{ + const TypeEntry *type = meta_type->typeEntry(); + + if (type->isPrimitive() && (meta_type->actualIndirections() == 0 + || (meta_type->isConstant() && meta_type->isReference() && meta_type->indirections() == 0))) { + meta_type->setTypeUsagePattern(AbstractMetaType::PrimitivePattern); + + } else if (type->isVoid()) { + meta_type->setTypeUsagePattern(AbstractMetaType::NativePointerPattern); + + } else if (type->isString() + && meta_type->indirections() == 0 + && (meta_type->isConstant() == meta_type->isReference() + || meta_type->isConstant())) { + meta_type->setTypeUsagePattern(AbstractMetaType::StringPattern); + + } else if (type->isChar() + && meta_type->indirections() == 0 + && meta_type->isConstant() == meta_type->isReference()) { + meta_type->setTypeUsagePattern(AbstractMetaType::CharPattern); + + } else if (type->isJObjectWrapper() + && meta_type->indirections() == 0 + && meta_type->isConstant() == meta_type->isReference()) { + meta_type->setTypeUsagePattern(AbstractMetaType::JObjectWrapperPattern); + + } else if (type->isVariant() + && meta_type->indirections() == 0 + && meta_type->isConstant() == meta_type->isReference()) { + meta_type->setTypeUsagePattern(AbstractMetaType::VariantPattern); + + } else if (type->isEnum() && meta_type->actualIndirections() == 0) { + meta_type->setTypeUsagePattern(AbstractMetaType::EnumPattern); + + } else if (type->isObject() + && meta_type->indirections() == 0 + && meta_type->isReference()) { + if (((ComplexTypeEntry *) type)->isQObject()) + meta_type->setTypeUsagePattern(AbstractMetaType::QObjectPattern); + else + meta_type->setTypeUsagePattern(AbstractMetaType::ObjectPattern); + + } else if (type->isObject() + && meta_type->indirections() == 1) { + if (((ComplexTypeEntry *) type)->isQObject()) + meta_type->setTypeUsagePattern(AbstractMetaType::QObjectPattern); + else + meta_type->setTypeUsagePattern(AbstractMetaType::ObjectPattern); + + // const-references to pointers can be passed as pointers + if (meta_type->isReference() && meta_type->isConstant()) { + meta_type->setReference(false); + meta_type->setConstant(false); + } + + } else if (type->isContainer() && meta_type->indirections() == 0) { + meta_type->setTypeUsagePattern(AbstractMetaType::ContainerPattern); + + } else if (type->isTemplateArgument()) { + + } else if (type->isFlags() + && meta_type->indirections() == 0 + && (meta_type->isConstant() == meta_type->isReference())) { + meta_type->setTypeUsagePattern(AbstractMetaType::FlagsPattern); + + } else if (type->isArray()) { + meta_type->setTypeUsagePattern(AbstractMetaType::ArrayPattern); + + } else if (type->isThread()) { + Q_ASSERT(meta_type->indirections() == 1); + meta_type->setTypeUsagePattern(AbstractMetaType::ThreadPattern); + + } else if (type->isValue() + && meta_type->indirections() == 0 + && (meta_type->isConstant() == meta_type->isReference() + || !meta_type->isReference())) { + meta_type->setTypeUsagePattern(AbstractMetaType::ValuePattern); + + } else { + meta_type->setTypeUsagePattern(AbstractMetaType::NativePointerPattern); + ReportHandler::debugFull(QString("native pointer pattern for '%1'") + .arg(meta_type->cppSignature())); + } +} + +QString AbstractMetaBuilder::translateDefaultValue(ArgumentModelItem item, AbstractMetaType *type, + AbstractMetaFunction *fnc, AbstractMetaClass *implementing_class, + int argument_index) +{ + QString function_name = fnc->name(); + QString class_name = implementing_class->name(); + + QString replaced_expression = fnc->replacedDefaultExpression(implementing_class, argument_index + 1); + if (fnc->removedDefaultExpression(implementing_class, argument_index +1)) + return ""; + if (!replaced_expression.isEmpty()) + return replaced_expression; + + QString expr = item->defaultValueExpression(); + if (type != 0 && type->isPrimitive()) { + if (type->name() == "boolean") { + if (expr == "false" || expr=="true") { + return expr; + } else { + bool ok = false; + int number = expr.toInt(&ok); + if (ok && number) + return "true"; + else + return "false"; + } + } else if (expr == "ULONG_MAX") { + return "Long.MAX_VALUE"; + } else if (expr == "QVariant::Invalid") { + return QString::number(QVariant::Invalid); + } else { + // This can be an enum or flag so I need to delay the + // translation untill all namespaces are completly + // processed. This is done in figureOutEnumValues() + return expr; + } + } else if (type != 0 && (type->isFlags() || type->isEnum())) { + // Same as with enum explanation above... + return expr; + + } else { + + // constructor or functioncall can be a bit tricky... + if (expr == "QVariant()" || expr == "QModelIndex()") { + return "null"; + } else if (expr == "QString()") { + return "null"; + } else if (expr.endsWith(")") && expr.contains("::")) { + TypeEntry *typeEntry = TypeDatabase::instance()->findType(expr.left(expr.indexOf("::"))); + if (typeEntry) + return typeEntry->qualifiedTargetLangName() + "." + expr.right(expr.length() - expr.indexOf("::") - 2); + } else if (expr.endsWith(")") && type != 0 && type->isValue()) { + int pos = expr.indexOf("("); + + TypeEntry *typeEntry = TypeDatabase::instance()->findType(expr.left(pos)); + if (typeEntry) + return "new " + typeEntry->qualifiedTargetLangName() + expr.right(expr.length() - pos); + else + return expr; + } else if (expr == "0") { + return "null"; + } else if (type != 0 && (type->isObject() || type->isValue() || expr.contains("::"))) { // like Qt::black passed to a QColor + TypeEntry *typeEntry = TypeDatabase::instance()->findType(expr.left(expr.indexOf("::"))); + + expr = expr.right(expr.length() - expr.indexOf("::") - 2); + if (typeEntry) { + return "new " + type->typeEntry()->qualifiedTargetLangName() + + "(" + typeEntry->qualifiedTargetLangName() + "." + expr + ")"; + } + } + } + + QString warn = QString("unsupported default value '%3' of argument in function '%1', class '%2'") + .arg(function_name).arg(class_name).arg(item->defaultValueExpression()); + ReportHandler::warning(warn); + + return QString(); +} + + +bool AbstractMetaBuilder::isQObject(const QString &qualified_name) +{ + if (qualified_name == "QObject") + return true; + + ClassModelItem class_item = m_dom->findClass(qualified_name); + + if (!class_item) { + QStringList names = qualified_name.split(QLatin1String("::")); + NamespaceModelItem ns = model_dynamic_cast(m_dom); + for (int i=0; inamespaceMap().value(names.at(i)); + if (ns && names.size() >= 2) + class_item = ns->findClass(names.at(names.size() - 1)); + } + + bool isqobject = class_item && class_item->extendsClass("QObject"); + + if (class_item && !isqobject) { + QStringList baseClasses = class_item->baseClasses(); + for (int i=0; imodel()->findItem(qualified_name, m_dom->toItem()); + return item && item->kind() == _EnumModelItem::__node_kind; +} + +AbstractMetaType *AbstractMetaBuilder::inheritTemplateType(const QList &template_types, + AbstractMetaType *meta_type, bool *ok) +{ + if (ok != 0) + *ok = true; + if (!meta_type || (!meta_type->typeEntry()->isTemplateArgument() && !meta_type->hasInstantiations())) + return meta_type ? meta_type->copy() : 0; + + AbstractMetaType *returned = meta_type->copy(); + returned->setOriginalTemplateType(meta_type->copy()); + + if (returned->typeEntry()->isTemplateArgument()) { + const TemplateArgumentEntry *tae = static_cast(returned->typeEntry()); + + // If the template is intantiated with void we special case this as rejecting the functions that use this + // parameter from the instantiation. + if (template_types.size() <= tae->ordinal() || template_types.at(tae->ordinal())->typeEntry()->name() == "void") { + if (ok != 0) + *ok = false; + return 0; + } + + AbstractMetaType *t = returned->copy(); + t->setTypeEntry(template_types.at(tae->ordinal())->typeEntry()); + t->setIndirections(template_types.at(tae->ordinal())->indirections() + t->indirections() + ? 1 + : 0); + decideUsagePattern(t); + + delete returned; + returned = inheritTemplateType(template_types, t, ok); + if (ok != 0 && !(*ok)) + return 0; + } + + if (returned->hasInstantiations()) { + QList instantiations = returned->instantiations(); + for (int i=0; isetInstantiations(instantiations); + } + + return returned; +} + +bool AbstractMetaBuilder::inheritTemplate(AbstractMetaClass *subclass, + const AbstractMetaClass *template_class, + const TypeParser::Info &info) +{ + QList targs = info.template_instantiations; + + QList template_types; + foreach (const TypeParser::Info &i, targs) { + TypeEntry *t = TypeDatabase::instance()->findType(i.qualified_name.join("::")); + + if (t != 0) { + AbstractMetaType *temporary_type = createMetaType(); + temporary_type->setTypeEntry(t); + temporary_type->setConstant(i.is_constant); + temporary_type->setReference(i.is_reference); + temporary_type->setIndirections(i.indirections); + template_types << temporary_type; + } + } + + AbstractMetaFunctionList funcs = subclass->functions(); + foreach (const AbstractMetaFunction *function, template_class->functions()) { + + if (function->isModifiedRemoved(TypeSystem::All)) + continue; + + AbstractMetaFunction *f = function->copy(); + f->setArguments(AbstractMetaArgumentList()); + + bool ok = true; + AbstractMetaType *ftype = function->type(); + f->setType(inheritTemplateType(template_types, ftype, &ok)); + if (!ok) { + delete f; + continue; + } + + foreach (AbstractMetaArgument *argument, function->arguments()) { + AbstractMetaType *atype = argument->type(); + + AbstractMetaArgument *arg = argument->copy(); + arg->setType(inheritTemplateType(template_types, atype, &ok)); + if (!ok) + break; + f->addArgument(arg); + } + + if (!ok) { + delete f; + continue ; + } + + // There is no base class in java to inherit from here, so the + // template instantiation is the class that implements the function.. + f->setImplementingClass(subclass); + + // We also set it as the declaring class, since the superclass is + // supposed to disappear. This allows us to make certain function modifications + // on the inherited functions. + f->setDeclaringClass(subclass); + + + if (f->isConstructor() && subclass->isTypeAlias()) { + f->setName(subclass->name()); + } else if (f->isConstructor()) { + delete f; + continue; + } + + // if the instantiation has a function named the same as an existing + // function we have shadowing so we need to skip it. + bool found = false; + for (int i=0; iname() == f->name()) { + found = true; + continue; + } + } + if (found) { + delete f; + continue; + } + + ComplexTypeEntry *te = subclass->typeEntry(); + FunctionModificationList mods = function->modifications(template_class); + for (int i=0; iminimalSignature(); + + // If we ever need it... Below is the code to do + // substitution of the template instantation type inside + // injected code.. +#if 0 + if (mod.modifiers & Modification::CodeInjection) { + for (int j=0; jtypeEntry()->qualifiedCppName()); + snip.codeList.clear(); + snip.addCode(code); + } + } +#endif + te->addFunctionModification(mod); + } + + subclass->addFunction(f); + } + + // Clean up + foreach (AbstractMetaType *type, template_types) { + delete type; + } + + + { + subclass->setTemplateBaseClass(template_class); + + subclass->setInterfaces(template_class->interfaces()); + subclass->setBaseClass(template_class->baseClass()); + } + + return true; +} + +void AbstractMetaBuilder::parseQ_Property(AbstractMetaClass *meta_class, const QStringList &declarations) +{ + for (int i=0; iqualifiedName(); + bool ok = false; + AbstractMetaType *type = 0; + QString scope; + for (int j=qualifiedScopeName.size(); j>=0; --j) { + scope = j > 0 ? QStringList(qualifiedScopeName.mid(0, j)).join("::") + "::" : QString(); + TypeInfo info; + info.setQualifiedName((scope + l.at(0)).split("::")); + + type = translateType(info, &ok); + if (type != 0 && ok) { + break; + } + } + + if (type == 0 || !ok) { + ReportHandler::warning(QString("Unable to decide type of property: '%1' in class '%2'") + .arg(l.at(0)).arg(meta_class->name())); + continue; + } + + QString typeName = scope + l.at(0); + + QPropertySpec *spec = new QPropertySpec(type->typeEntry()); + spec->setName(l.at(1)); + spec->setIndex(i); + + for (int pos=2; pos+1setRead(l.at(pos+1)); + else if (l.at(pos) == QLatin1String("WRITE")) + spec->setWrite(l.at(pos+1)); + else if (l.at(pos) == QLatin1String("DESIGNABLE")) + spec->setDesignable(l.at(pos+1)); + else if (l.at(pos) == QLatin1String("RESET")) + spec->setReset(l.at(pos+1)); + } + + meta_class->addPropertySpec(spec); + delete type; + } +} + +static void hide_functions(const AbstractMetaFunctionList &l) { + foreach (AbstractMetaFunction *f, l) { + FunctionModification mod; + mod.signature = f->minimalSignature(); + mod.modifiers = FunctionModification::Private; + ((ComplexTypeEntry *) f->implementingClass()->typeEntry())->addFunctionModification(mod); + } +} + +static void remove_function(AbstractMetaFunction *f) { + FunctionModification mod; + mod.removal = TypeSystem::All; + mod.signature = f->minimalSignature(); + ((ComplexTypeEntry *) f->implementingClass()->typeEntry())->addFunctionModification(mod); +} + +static AbstractMetaFunctionList filter_functions(const AbstractMetaFunctionList &lst, QSet *signatures) +{ + AbstractMetaFunctionList functions; + foreach (AbstractMetaFunction *f, lst) { + QString signature = f->minimalSignature(); + int start = signature.indexOf(QLatin1Char('(')) + 1; + int end = signature.lastIndexOf(QLatin1Char(')')); + signature = signature.mid(start, end - start); + if (signatures->contains(signature)) { + remove_function(f); + continue; + } + (*signatures) << signature; + functions << f; + } + return functions; +} + +void AbstractMetaBuilder::setupEquals(AbstractMetaClass *cls) +{ + AbstractMetaFunctionList equals; + AbstractMetaFunctionList nequals; + + QString op_equals = QLatin1String("operator_equal"); + QString op_nequals = QLatin1String("operator_not_equal"); + + AbstractMetaFunctionList functions = cls->queryFunctions(AbstractMetaClass::ClassImplements + | AbstractMetaClass::NotRemovedFromTargetLang); + foreach (AbstractMetaFunction *f, functions) { + if (f->name() == op_equals) + equals << f; + else if (f->name() == op_nequals) + nequals << f; + } + + if (equals.size() || nequals.size()) { + if (!cls->hasHashFunction()) { + ReportHandler::warning(QString::fromLatin1("Class '%1' has equals operators but no qHash() function") + .arg(cls->name())); + } + + hide_functions(equals); + hide_functions(nequals); + + // We only need == if we have both == and !=, and one == for + // each signature type, like QDateTime::==(QDate) and (QTime) + // if such a thing exists... + QSet func_signatures; + cls->setEqualsFunctions(filter_functions(equals, &func_signatures)); + cls->setNotEqualsFunctions(filter_functions(nequals, &func_signatures)); + } +} + +void AbstractMetaBuilder::setupComparable(AbstractMetaClass *cls) +{ + AbstractMetaFunctionList greater; + AbstractMetaFunctionList greaterEquals; + AbstractMetaFunctionList less; + AbstractMetaFunctionList lessEquals; + + QString op_greater = QLatin1String("operator_greater"); + QString op_greater_eq = QLatin1String("operator_greater_or_equal"); + QString op_less = QLatin1String("operator_less"); + QString op_less_eq = QLatin1String("operator_less_or_equal"); + + AbstractMetaFunctionList functions = cls->queryFunctions(AbstractMetaClass::ClassImplements + | AbstractMetaClass::NotRemovedFromTargetLang); + foreach (AbstractMetaFunction *f, functions) { + if (f->name() == op_greater) + greater << f; + else if (f->name() == op_greater_eq) + greaterEquals << f; + else if (f->name() == op_less) + less << f; + else if (f->name() == op_less_eq) + lessEquals << f; + } + + bool hasEquals = cls->equalsFunctions().size() || cls->notEqualsFunctions().size(); + + // Conditions for comparable is: + // >, ==, < - The basic case + // >, == - Less than becomes else case + // <, == - Greater than becomes else case + // >=, <= - if (<= && >=) -> equal + bool mightBeComparable = greater.size() || greaterEquals.size() || less.size() || lessEquals.size() + || greaterEquals.size() == 1 || lessEquals.size() == 1; + + if (mightBeComparable) { + QSet signatures; + + // We only hide the original functions if we are able to make a compareTo() method + bool wasComparable = false; + + // The three upper cases, prefer the <, == approach + if (hasEquals && (greater.size() || less.size())) { + cls->setLessThanFunctions(filter_functions(less, &signatures)); + cls->setGreaterThanFunctions(filter_functions(greater, &signatures)); + filter_functions(greaterEquals, &signatures); + filter_functions(lessEquals, &signatures); + wasComparable = true; + } else if (hasEquals && (greaterEquals.size() || lessEquals.size())) { + cls->setLessThanEqFunctions(filter_functions(lessEquals, &signatures)); + cls->setGreaterThanEqFunctions(filter_functions(greaterEquals, &signatures)); + wasComparable = true; + } else if (greaterEquals.size() == 1 || lessEquals.size() == 1) { + cls->setGreaterThanEqFunctions(greaterEquals); + cls->setLessThanEqFunctions(lessEquals); + filter_functions(less, &signatures); + filter_functions(greater, &signatures); + wasComparable = true; + } + + if (wasComparable) { + hide_functions(greater); + hide_functions(greaterEquals); + hide_functions(less); + hide_functions(lessEquals); + } + } + +} + +void AbstractMetaBuilder::setupClonable(AbstractMetaClass *cls) +{ + QString op_assign = QLatin1String("operator_assign"); + + AbstractMetaFunctionList functions = cls->queryFunctions(AbstractMetaClass::ClassImplements); + foreach (AbstractMetaFunction *f, functions) { + if ((f->name() == op_assign || f->isConstructor()) && f->isPublic()) { + AbstractMetaArgumentList arguments = f->arguments(); + if (arguments.size() == 1) { + if (cls->typeEntry()->qualifiedCppName() == arguments.at(0)->type()->typeEntry()->qualifiedCppName()) { + if (cls->typeEntry()->isValue()) { + cls->setHasCloneOperator(true); + return; + } + } + } + } + } +} + +static void write_reject_log_file(const QString &name, + const QMap &rejects) +{ + QFile f(name); + if (!f.open(QIODevice::WriteOnly | QIODevice::Text)) { + ReportHandler::warning(QString("failed to write log file: '%1'") + .arg(f.fileName())); + return; + } + + QTextStream s(&f); + + + for (int reason=0; reason::const_iterator it = rejects.constBegin(); + it != rejects.constEnd(); ++it) { + if (it.value() != reason) + continue; + s << " - " << it.key() << endl; + } + + s << QString(72, '*') << endl << endl; + } + +} + + +void AbstractMetaBuilder::dumpLog() +{ + write_reject_log_file("mjb_rejected_classes.log", m_rejected_classes); + write_reject_log_file("mjb_rejected_enums.log", m_rejected_enums); + write_reject_log_file("mjb_rejected_functions.log", m_rejected_functions); + write_reject_log_file("mjb_rejected_fields.log", m_rejected_fields); +} + +AbstractMetaClassList AbstractMetaBuilder::classesTopologicalSorted() const +{ + AbstractMetaClassList res; + + AbstractMetaClassList classes = m_meta_classes; + qSort(classes); + + QSet noDependency; + QHash* > hash; + foreach (AbstractMetaClass *cls, classes) { + QSet *depends = new QSet(); + + if (cls->baseClass()) + depends->insert(cls->baseClass()); + + foreach (AbstractMetaClass *interface, cls->interfaces()) { + AbstractMetaClass *impl = interface->primaryInterfaceImplementor(); + if (impl == cls) + continue; + depends->insert(impl); + } + + if (depends->empty()) { + noDependency.insert(cls); + } else { + hash.insert(cls, depends); + } + } + + while (!noDependency.empty()) { + foreach (AbstractMetaClass *cls, noDependency.values()) { + if(!cls->isInterface()) + res.append(cls); + noDependency.remove(cls); + QHashIterator* > i(hash); + while (i.hasNext()) { + i.next(); + i.value()->remove(cls); + if (i.value()->empty()) { + AbstractMetaClass *key = i.key(); + noDependency.insert(key); + hash.remove(key); + delete(i.value()); + } + } + } + } + + if (!noDependency.empty() || !hash.empty()) { + qWarning("dependency graph was cyclic."); + } + + return res; +} diff --git a/generator_50/abstractmetabuilder.h b/generator_50/abstractmetabuilder.h new file mode 100644 index 00000000..247ab39d --- /dev/null +++ b/generator_50/abstractmetabuilder.h @@ -0,0 +1,180 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef ABSTRACTMETABUILDER_H +#define ABSTRACTMETABUILDER_H + +#include "codemodel.h" +#include "abstractmetalang.h" +#include "typesystem.h" +#include "typeparser.h" + +#include + +class AbstractMetaBuilder +{ +public: + enum RejectReason { + NotInTypeSystem, + GenerationDisabled, + RedefinedToNotClass, + UnmatchedArgumentType, + UnmatchedReturnType, + NoReason + }; + + AbstractMetaBuilder(); + virtual ~AbstractMetaBuilder() {}; + + AbstractMetaClassList classes() const { return m_meta_classes; } + AbstractMetaClassList classesTopologicalSorted() const; + + FileModelItem model() const { return m_dom; } + void setModel(FileModelItem item) { m_dom = item; } + + + ScopeModelItem popScope() { return m_scopes.takeLast(); } + void pushScope(ScopeModelItem item) { m_scopes << item; } + ScopeModelItem currentScope() const { return m_scopes.last(); } + + QString fileName() const { return m_file_name; } + void setFileName(const QString &fileName) { m_file_name = fileName; } + + void dumpLog(); + + bool build(); + + void figureOutEnumValuesForClass(AbstractMetaClass *meta_class, QSet *classes); + int figureOutEnumValue(const QString &name, int value, AbstractMetaEnum *meta_enum, AbstractMetaFunction *meta_function = 0); + void figureOutEnumValues(); + void figureOutDefaultEnumArguments(); + + void addAbstractMetaClass(AbstractMetaClass *cls); + AbstractMetaClass *traverseTypeAlias(TypeAliasModelItem item); + AbstractMetaClass *traverseClass(ClassModelItem item); + bool setupInheritance(AbstractMetaClass *meta_class); + AbstractMetaClass *traverseNamespace(NamespaceModelItem item); + AbstractMetaEnum *traverseEnum(EnumModelItem item, AbstractMetaClass *enclosing, const QSet &enumsDeclarations); + void traverseEnums(ScopeModelItem item, AbstractMetaClass *parent, const QStringList &enumsDeclarations); + void traverseFunctions(ScopeModelItem item, AbstractMetaClass *parent); + void traverseFields(ScopeModelItem item, AbstractMetaClass *parent); + void traverseStreamOperator(FunctionModelItem function_item); + void traverseCompareOperator(FunctionModelItem item); + void traverseBinaryArithmeticOperator(FunctionModelItem item); + + AbstractMetaFunction *traverseFunction(FunctionModelItem function); + AbstractMetaField *traverseField(VariableModelItem field, const AbstractMetaClass *cls); + void checkFunctionModifications(); + void registerHashFunction(FunctionModelItem function_item); + void registerToStringCapability(FunctionModelItem function_item); + + void parseQ_Property(AbstractMetaClass *meta_class, const QStringList &declarations); + void setupEquals(AbstractMetaClass *meta_class); + void setupComparable(AbstractMetaClass *meta_class); + void setupClonable(AbstractMetaClass *cls); + void setupFunctionDefaults(AbstractMetaFunction *meta_function, AbstractMetaClass *meta_class); + + QString translateDefaultValue(ArgumentModelItem item, AbstractMetaType *type, + AbstractMetaFunction *fnc, AbstractMetaClass *, + int argument_index); + AbstractMetaType *translateType(const TypeInfo &type, bool *ok, bool resolveType = true, bool resolveScope = true); + + void decideUsagePattern(AbstractMetaType *type); + + bool inheritTemplate(AbstractMetaClass *subclass, + const AbstractMetaClass *template_class, + const TypeParser::Info &info); + AbstractMetaType *inheritTemplateType(const QList &template_types, AbstractMetaType *meta_type, bool *ok = 0); + + bool isQObject(const QString &qualified_name); + bool isEnum(const QStringList &qualified_name); + + void fixQObjectForScope (TypeDatabase *types, + NamespaceModelItem item); + + // QtScript + QSet qtMetaTypeDeclaredTypeNames() const + { return m_qmetatype_declared_typenames; } + +protected: + AbstractMetaClass *argumentToClass(ArgumentModelItem); + + virtual AbstractMetaClass *createMetaClass() = 0; + virtual AbstractMetaEnum *createMetaEnum() = 0; + virtual AbstractMetaEnumValue *createMetaEnumValue() = 0; + virtual AbstractMetaField *createMetaField() = 0; + virtual AbstractMetaFunction *createMetaFunction() = 0; + virtual AbstractMetaArgument *createMetaArgument() = 0; + virtual AbstractMetaType *createMetaType() = 0; + +private: + void sortLists(); + + QString m_file_name; + + AbstractMetaClassList m_meta_classes; + AbstractMetaClassList m_templates; + FileModelItem m_dom; + + QSet m_used_types; + + QMap m_rejected_classes; + QMap m_rejected_enums; + QMap m_rejected_functions; + QMap m_rejected_fields; + + QList m_enums; + + QList > m_enum_default_arguments; + + QHash m_enum_values; + + AbstractMetaClass *m_current_class; + QList m_scopes; + QString m_namespace_prefix; + + QSet m_setup_inheritance_done; + + // QtScript + QSet m_qmetatype_declared_typenames; +}; + +#endif // ABSTRACTMETBUILDER_H diff --git a/generator_50/abstractmetalang.cpp b/generator_50/abstractmetalang.cpp new file mode 100644 index 00000000..dd1ccd4e --- /dev/null +++ b/generator_50/abstractmetalang.cpp @@ -0,0 +1,2028 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "abstractmetalang.h" +#include "reporthandler.h" + +/******************************************************************************* + * AbstractMetaType + */ +AbstractMetaType *AbstractMetaType::copy() const +{ + AbstractMetaType *cpy = new AbstractMetaType; + + cpy->setTypeUsagePattern(typeUsagePattern()); + cpy->setConstant(isConstant()); + cpy->setReference(isReference()); + cpy->setIndirections(indirections()); + cpy->setInstantiations(instantiations()); + cpy->setArrayElementCount(arrayElementCount()); + cpy->setOriginalTypeDescription(originalTypeDescription()); + cpy->setOriginalTemplateType(originalTemplateType() ? originalTemplateType()->copy() : 0); + + cpy->setArrayElementType(arrayElementType() ? arrayElementType()->copy() : 0); + + cpy->setTypeEntry(typeEntry()); + + return cpy; +} + +QString AbstractMetaType::cppSignature() const +{ + QString s; + + if (isConstant()) + s += "const "; + + s += typeEntry()->qualifiedCppName(); + + if (hasInstantiationInCpp()) { + QList types = instantiations(); + s += "<"; + for (int i=0; i 0) + s += ", "; + s += types.at(i)->cppSignature(); + } + s += " >"; + } + + if (actualIndirections()) { + s += ' '; + if (indirections()) + s += QString(indirections(), '*'); + if (isReference()) + s += '&'; + } + return s; +} + +/******************************************************************************* + * AbstractMetaArgument + */ +AbstractMetaArgument *AbstractMetaArgument::copy() const +{ + AbstractMetaArgument *cpy = new AbstractMetaArgument; + cpy->setName(AbstractMetaVariable::name()); + cpy->setDefaultValueExpression(defaultValueExpression()); + cpy->setType(type()->copy()); + cpy->setArgumentIndex(argumentIndex()); + + return cpy; +} + + +QString AbstractMetaArgument::argumentName() const +{ + QString n = AbstractMetaVariable::name(); + if (n.isEmpty()) { + return QString("arg__%2").arg(m_argument_index + 1); + } + return n; +} + + +QString AbstractMetaArgument::indexedName() const +{ + QString n = AbstractMetaVariable::name(); + if (n.isEmpty()) + return argumentName(); + return QString("%1%2").arg(n).arg(m_argument_index); +} + +QString AbstractMetaArgument::name() const +{ + Q_ASSERT_X(0, "AbstractMetaArgument::name()", "use argumentName() or indexedName() instead"); + return QString(); +} + + +/******************************************************************************* + * AbstractMetaFunction + */ +AbstractMetaFunction::~AbstractMetaFunction() +{ + qDeleteAll(m_arguments); + delete m_type; +} + +/******************************************************************************* + * Indicates that this function has a modification that removes it + */ +bool AbstractMetaFunction::isModifiedRemoved(int types) const +{ + FunctionModificationList mods = modifications(implementingClass()); + foreach (FunctionModification mod, mods) { + if (!mod.isRemoveModifier()) + continue; + + if ((mod.removal & types) == types) + return true; + } + + return false; +} + +bool AbstractMetaFunction::needsCallThrough() const +{ + if (ownerClass()->isInterface()) + return false; + if (referenceCounts(implementingClass()).size() > 0) + return true; + if (argumentsHaveNativeId() || !isStatic()) + return true; + + foreach (const AbstractMetaArgument *arg, arguments()) { + if (arg->type()->isArray() || arg->type()->isTargetLangEnum() || arg->type()->isTargetLangFlags()) + return true; + } + + if (type() && (type()->isArray() || type()->isTargetLangEnum() || type()->isTargetLangFlags())) + return true; + + for (int i=-1; i<=arguments().size(); ++i) { + TypeSystem::Ownership owner = this->ownership(implementingClass(), TypeSystem::TargetLangCode, i); + if (owner != TypeSystem::InvalidOwnership) + return true; + } + + return false; +} + +bool AbstractMetaFunction::needsSuppressUncheckedWarning() const +{ + for (int i=-1; i<=arguments().size(); ++i) { + QList referenceCounts = this->referenceCounts(implementingClass(), i); + foreach (ReferenceCount referenceCount, referenceCounts) { + if (referenceCount.action != ReferenceCount::Set) + return true; + } + } + return false; +} + +QString AbstractMetaFunction::marshalledName() const +{ + QString returned = "__qt_" + name(); + AbstractMetaArgumentList arguments = this->arguments(); + foreach (const AbstractMetaArgument *arg, arguments) { + returned += "_"; + if (arg->type()->isNativePointer()) { + returned += "nativepointer"; + } else if (arg->type()->isIntegerEnum() || arg->type()->isIntegerFlags()) { + returned += "int"; + } else { + returned += arg->type()->name().replace("[]", "_3").replace(".", "_"); + } + } + return returned; +} + +bool AbstractMetaFunction::operator<(const AbstractMetaFunction &other) const +{ + uint result = compareTo(&other); + return result & NameLessThan; +} + + +/*! + Returns a mask of CompareResult describing how this function is + compares to another function +*/ +uint AbstractMetaFunction::compareTo(const AbstractMetaFunction *other) const +{ + uint result = 0; + + // Enclosing class... + if (ownerClass() == other->ownerClass()) { + result |= EqualImplementor; + } + + // Attributes + if (attributes() == other->attributes()) { + result |= EqualAttributes; + } + + // Compare types + AbstractMetaType *t = type(); + AbstractMetaType *ot = other->type(); + if ((!t && !ot) || ((t && ot && t->name() == ot->name()))) { + result |= EqualReturnType; + } + + // Compare names + int cmp = originalName().compare(other->originalName()); + + if (cmp < 0) { + result |= NameLessThan; + } else if (cmp == 0) { + result |= EqualName; + } + + // compare name after modification... + cmp = modifiedName().compare(other->modifiedName()); + if (cmp == 0) + result |= EqualModifiedName; + + // Compare arguments... + AbstractMetaArgumentList min_arguments; + AbstractMetaArgumentList max_arguments; + if (arguments().size() < other->arguments().size()) { + min_arguments = arguments(); + max_arguments = other->arguments(); + } else { + min_arguments = other->arguments(); + max_arguments = arguments(); + } + + int min_count = min_arguments.size(); + int max_count = max_arguments.size(); + bool same = true; + for (int i=0; itype()->name() != max_arg->type()->name() + && (min_arg->defaultValueExpression().isEmpty() || max_arg->defaultValueExpression().isEmpty())) { + same = false; + break; + } + } else { + if (max_arguments.at(i)->defaultValueExpression().isEmpty()) { + same = false; + break; + } + } + } + + if (same) + result |= min_count == max_count ? EqualArguments : EqualDefaultValueOverload; + + return result; +} + +AbstractMetaFunction *AbstractMetaFunction::copy() const +{ + AbstractMetaFunction *cpy = new AbstractMetaFunction; + cpy->setName(name()); + cpy->setOriginalName(originalName()); + cpy->setOwnerClass(ownerClass()); + cpy->setImplementingClass(implementingClass()); + cpy->setInterfaceClass(interfaceClass()); + cpy->setFunctionType(functionType()); + cpy->setAttributes(attributes()); + cpy->setDeclaringClass(declaringClass()); + if (type()) + cpy->setType(type()->copy()); + cpy->setConstant(isConstant()); + cpy->setException(exception()); + cpy->setOriginalAttributes(originalAttributes()); + + foreach (AbstractMetaArgument *arg, arguments()) + cpy->addArgument(arg->copy()); + + Q_ASSERT((!type() && !cpy->type()) + || (type()->instantiations() == cpy->type()->instantiations())); + + return cpy; +} + +QStringList AbstractMetaFunction::introspectionCompatibleSignatures(const QStringList &resolvedArguments) const +{ + AbstractMetaArgumentList arguments = this->arguments(); + if (arguments.size() == resolvedArguments.size()) { + return (QStringList() << QMetaObject::normalizedSignature((name() + "(" + resolvedArguments.join(",") + ")").toUtf8().constData())); + } else { + QStringList returned; + + AbstractMetaArgument *argument = arguments.at(resolvedArguments.size()); + QStringList minimalTypeSignature = argument->type()->minimalSignature().split("::"); + for (int i=0; i 0) + s += ", "; + AbstractMetaArgument *a = m_arguments.at(i); + s += a->type()->cppSignature(); + + // We need to have the argument names in the qdoc files + s += " "; + s += a->argumentName(); + } + s += ")"; + + if (isConstant()) + s += " const"; + + return s; +} + +int AbstractMetaFunction::actualMinimumArgumentCount() const +{ + AbstractMetaArgumentList arguments = this->arguments(); + + int count = 0; + for (int i=0; idefaultValueExpression().isEmpty()) break; + } + + return count; +} + +// Returns reference counts for argument at idx, or all arguments if idx == -2 +QList AbstractMetaFunction::referenceCounts(const AbstractMetaClass *cls, int idx) const +{ + QList returned; + + FunctionModificationList mods = this->modifications(cls); + foreach (FunctionModification mod, mods) { + QList argument_mods = mod.argument_mods; + foreach (ArgumentModification argument_mod, argument_mods) { + if (argument_mod.index != idx && idx != -2) + continue; + returned += argument_mod.referenceCounts; + } + } + + return returned; +} + +QString AbstractMetaFunction::replacedDefaultExpression(const AbstractMetaClass *cls, int key) const +{ + FunctionModificationList modifications = this->modifications(cls); + foreach (FunctionModification modification, modifications) { + QList argument_modifications = modification.argument_mods; + foreach (ArgumentModification argument_modification, argument_modifications) { + if (argument_modification.index == key + && !argument_modification.replaced_default_expression.isEmpty()) { + return argument_modification.replaced_default_expression; + } + } + } + + return QString(); +} + +bool AbstractMetaFunction::removedDefaultExpression(const AbstractMetaClass *cls, int key) const +{ + FunctionModificationList modifications = this->modifications(cls); + foreach (FunctionModification modification, modifications) { + QList argument_modifications = modification.argument_mods; + foreach (ArgumentModification argument_modification, argument_modifications) { + if (argument_modification.index == key + && argument_modification.removed_default_expression) { + return true; + } + } + } + + return false; +} + +bool AbstractMetaFunction::resetObjectAfterUse(int argument_idx) const +{ + const AbstractMetaClass *cls = declaringClass(); + FunctionModificationList modifications = this->modifications(cls); + foreach (FunctionModification modification, modifications) { + QList argumentModifications = modification.argument_mods; + foreach (ArgumentModification argumentModification, argumentModifications) { + if (argumentModification.index == argument_idx && argumentModification.reset_after_use) + return true; + } + } + + return false; +} + +QString AbstractMetaFunction::nullPointerDefaultValue(const AbstractMetaClass *mainClass, int argument_idx) const +{ + Q_ASSERT(nullPointersDisabled(mainClass, argument_idx)); + + const AbstractMetaClass *cls = mainClass; + if (cls == 0) + cls = implementingClass(); + + do { + FunctionModificationList modifications = this->modifications(cls); + foreach (FunctionModification modification, modifications) { + QList argument_modifications = modification.argument_mods; + foreach (ArgumentModification argument_modification, argument_modifications) { + if (argument_modification.index == argument_idx + && argument_modification.no_null_pointers) { + return argument_modification.null_pointer_default_value; + } + } + } + + cls = cls->baseClass(); + } while (cls != 0 && mainClass == 0); // Once when mainClass != 0, or once for all base classes of implementing class + + return QString(); + +} + +bool AbstractMetaFunction::nullPointersDisabled(const AbstractMetaClass *mainClass, int argument_idx) const +{ + const AbstractMetaClass *cls = mainClass; + if (cls == 0) + cls = implementingClass(); + + do { + FunctionModificationList modifications = this->modifications(cls); + foreach (FunctionModification modification, modifications) { + QList argument_modifications = modification.argument_mods; + foreach (ArgumentModification argument_modification, argument_modifications) { + if (argument_modification.index == argument_idx + && argument_modification.no_null_pointers) { + return true; + } + } + } + + cls = cls->baseClass(); + } while (cls != 0 && mainClass == 0); // Once when mainClass != 0, or once for all base classes of implementing class + + return false; +} + +QString AbstractMetaFunction::conversionRule(TypeSystem::Language language, int key) const +{ + FunctionModificationList modifications = this->modifications(declaringClass()); + foreach (FunctionModification modification, modifications) { + QList argument_modifications = modification.argument_mods; + foreach (ArgumentModification argument_modification, argument_modifications) { + if (argument_modification.index != key) + continue; + + foreach (CodeSnip snip, argument_modification.conversion_rules) { + if (snip.language == language && !snip.code().isEmpty()) + return snip.code(); + } + } + } + + return QString(); +} + +QString AbstractMetaFunction::argumentReplaced(int key) const +{ + FunctionModificationList modifications = this->modifications(declaringClass()); + foreach (FunctionModification modification, modifications) { + QList argument_modifications = modification.argument_mods; + foreach (ArgumentModification argument_modification, argument_modifications) { + if (argument_modification.index == key && !argument_modification.replace_value.isEmpty()) { + return argument_modification.replace_value; + } + } + } + + return ""; +} + +bool AbstractMetaFunction::argumentRemoved(int key) const +{ + FunctionModificationList modifications = this->modifications(declaringClass()); + foreach (FunctionModification modification, modifications) { + QList argument_modifications = modification.argument_mods; + foreach (ArgumentModification argument_modification, argument_modifications) { + if (argument_modification.index == key) { + if (argument_modification.removed) { + return true; + } + } + } + } + + return false; +} + +bool AbstractMetaFunction::isVirtualSlot() const +{ + FunctionModificationList modifications = this->modifications(declaringClass()); + foreach (FunctionModification modification, modifications) { + if (modification.isVirtualSlot()) + return true; + } + + return false; +} + +bool AbstractMetaFunction::disabledGarbageCollection(const AbstractMetaClass *cls, int key) const +{ + FunctionModificationList modifications = this->modifications(cls); + foreach (FunctionModification modification, modifications) { + QList argument_modifications = modification.argument_mods; + foreach (ArgumentModification argument_modification, argument_modifications) { + if (argument_modification.index != key) + continue; + + foreach (TypeSystem::Ownership ownership, argument_modification.ownerships.values()) { + if (ownership == TypeSystem::CppOwnership) + return true; + } + + } + } + + return false; +} + +bool AbstractMetaFunction::isDeprecated() const +{ + FunctionModificationList modifications = this->modifications(declaringClass()); + foreach (FunctionModification modification, modifications) { + if (modification.isDeprecated()) + return true; + } + return false; +} + +TypeSystem::Ownership AbstractMetaFunction::ownership(const AbstractMetaClass *cls, TypeSystem::Language language, int key) const +{ + FunctionModificationList modifications = this->modifications(cls); + foreach (FunctionModification modification, modifications) { + QList argument_modifications = modification.argument_mods; + foreach (ArgumentModification argument_modification, argument_modifications) { + if (argument_modification.index == key) + return argument_modification.ownerships.value(language, TypeSystem::InvalidOwnership); + } + } + + return TypeSystem::InvalidOwnership; +} + +bool AbstractMetaFunction::isRemovedFromAllLanguages(const AbstractMetaClass *cls) const +{ + return isRemovedFrom(cls, TypeSystem::All); +} + +bool AbstractMetaFunction::isRemovedFrom(const AbstractMetaClass *cls, TypeSystem::Language language) const +{ + FunctionModificationList modifications = this->modifications(cls); + foreach (FunctionModification modification, modifications) { + if ((modification.removal & language) == language) + return true; + } + + return false; + +} + +QString AbstractMetaFunction::typeReplaced(int key) const +{ + FunctionModificationList modifications = this->modifications(declaringClass()); + foreach (FunctionModification modification, modifications) { + QList argument_modifications = modification.argument_mods; + foreach (ArgumentModification argument_modification, argument_modifications) { + if (argument_modification.index == key + && !argument_modification.modified_type.isEmpty()) { + return argument_modification.modified_type; + } + } + } + + return QString(); +} + +QString AbstractMetaFunction::minimalSignature() const +{ + if (!m_cached_minimal_signature.isEmpty()) + return m_cached_minimal_signature; + + QString minimalSignature = originalName() + "("; + AbstractMetaArgumentList arguments = this->arguments(); + + for (int i=0; itype(); + + if (i > 0) + minimalSignature += ","; + + minimalSignature += t->minimalSignature(); + } + minimalSignature += ")"; + if (isConstant()) + minimalSignature += "const"; + + minimalSignature = QMetaObject::normalizedSignature(minimalSignature.toLocal8Bit().constData()); + m_cached_minimal_signature = minimalSignature; + + return minimalSignature; +} + +FunctionModificationList AbstractMetaFunction::modifications(const AbstractMetaClass *implementor) const +{ + Q_ASSERT(implementor); + return implementor->typeEntry()->functionModifications(minimalSignature()); +} + +bool AbstractMetaFunction::hasModifications(const AbstractMetaClass *implementor) const +{ + FunctionModificationList mods = modifications(implementor); + return mods.count() > 0; +} + +QString AbstractMetaFunction::modifiedName() const +{ + if (m_cached_modified_name.isEmpty()) { + FunctionModificationList mods = modifications(implementingClass()); + foreach (FunctionModification mod, mods) { + if (mod.isRenameModifier()) { + m_cached_modified_name = mod.renamedToName; + break; + } + } + if (m_cached_modified_name.isEmpty()) + m_cached_modified_name = name(); + } + return m_cached_modified_name; +} + +QString AbstractMetaFunction::targetLangSignature(bool minimal) const +{ + QString s; + + // Attributes... + if (!minimal) { +#if 0 // jambi + if (isPublic()) s += "public "; + else if (isProtected()) s += "protected "; + else if (isPrivate()) s += "private "; + +// if (isNative()) s += "native "; +// else + if (isFinalInTargetLang()) s += "final "; + else if (isAbstract()) s += "abstract "; + + if (isStatic()) s += "static "; +#endif + // Return type + if (type()) + s += type()->name() + " "; + else + s += "void "; + } + + s += modifiedName(); + s += "("; + + int j = 0; + for (int i=0; itype()->name(); + + if (!minimal) { + s += " "; + s += m_arguments.at(i)->argumentName(); + } + ++j; + } + + s += ")"; + + return s; +} + + +bool function_sorter(AbstractMetaFunction *a, AbstractMetaFunction *b) +{ + return a->signature() < b->signature(); +} + +/******************************************************************************* + * AbstractMetaClass + */ +AbstractMetaClass::~AbstractMetaClass() +{ + qDeleteAll(m_functions); + qDeleteAll(m_fields); +} + +/*AbstractMetaClass *AbstractMetaClass::copy() const +{ + AbstractMetaClass *cls = new AbstractMetaClass; + cls->setAttributes(attributes()); + cls->setBaseClass(baseClass()); + cls->setTypeEntry(typeEntry()); + foreach (AbstractMetaFunction *function, functions()) { + AbstractMetaFunction *copy = function->copy(); + function->setImplementingClass(cls); + cls->addFunction(copy); + } + cls->setEnums(enums()); + foreach (const AbstractMetaField *field, fields()) { + AbstractMetaField *copy = field->copy(); + copy->setEnclosingClass(cls); + cls->addField(copy); + } + cls->setInterfaces(interfaces()); + + return cls; +}*/ + +/******************************************************************************* + * Returns true if this class is a subclass of the given class + */ +bool AbstractMetaClass::inheritsFrom(const AbstractMetaClass *cls) const +{ + Q_ASSERT(cls != 0); + + const AbstractMetaClass *clazz = this; + while (clazz != 0) { + if (clazz == cls) + return true; + + clazz = clazz->baseClass(); + } + + return false; +} + +/******************************************************************************* + * Constructs an interface based on the functions and enums in this + * class and returns it... + */ +AbstractMetaClass *AbstractMetaClass::extractInterface() +{ + Q_ASSERT(typeEntry()->designatedInterface()); + + if (m_extracted_interface == 0) { + AbstractMetaClass *iface = new AbstractMetaClass; + iface->setAttributes(attributes()); + iface->setBaseClass(0); + iface->setPrimaryInterfaceImplementor(this); + + iface->setTypeEntry(typeEntry()->designatedInterface()); + + foreach (AbstractMetaFunction *function, functions()) { + if (!function->isConstructor()) + iface->addFunction(function->copy()); + } + +// iface->setEnums(enums()); +// setEnums(AbstractMetaEnumList()); + + foreach (const AbstractMetaField *field, fields()) { + if (field->isPublic()) { + AbstractMetaField *new_field = field->copy(); + new_field->setEnclosingClass(iface); + iface->addField(new_field); + } + } + + m_extracted_interface = iface; + addInterface(iface); + } + + return m_extracted_interface; +} + +/******************************************************************************* + * Returns a list of all the functions with a given name + */ +AbstractMetaFunctionList AbstractMetaClass::queryFunctionsByName(const QString &name) const +{ + AbstractMetaFunctionList returned; + AbstractMetaFunctionList functions = this->functions(); + foreach (AbstractMetaFunction *function, functions) { + if (function->name() == name) + returned.append(function); + } + + return returned; +} + +bool AbstractMetaClass::hasDefaultIsNull() const +{ + foreach(const AbstractMetaFunction* fun, queryFunctionsByName("isNull")) { + if (fun->actualMinimumArgumentCount()==0) { + return true; + } + } + return false; +} +/******************************************************************************* + * Returns all reference count modifications for any function in the class + */ +QList AbstractMetaClass::referenceCounts() const +{ + QList returned; + + AbstractMetaFunctionList functions = this->functions(); + foreach (AbstractMetaFunction *function, functions) { + returned += function->referenceCounts(this); + } + + return returned; +} + +/******************************************************************************* + * Returns a list of all the functions retrieved during parsing which should + * be added to the Java API. + */ +AbstractMetaFunctionList AbstractMetaClass::functionsInTargetLang() const +{ + int default_flags = NormalFunctions | Visible | NotRemovedFromTargetLang; + + // Interfaces don't implement functions + default_flags |= isInterface() ? 0 : ClassImplements; + + // Only public functions in final classes + // default_flags |= isFinal() ? WasPublic : 0; + int public_flags = isFinal() ? WasPublic : 0; + + // Constructors + AbstractMetaFunctionList returned = queryFunctions(Constructors | default_flags | public_flags); + + // Final functions + returned += queryFunctions(FinalInTargetLangFunctions | NonStaticFunctions | default_flags | public_flags); + + // Virtual functions + returned += queryFunctions(VirtualInTargetLangFunctions | NonStaticFunctions | default_flags | public_flags); + + // Static functions + returned += queryFunctions(StaticFunctions | default_flags | public_flags); + + // Empty, private functions, since they aren't caught by the other ones + returned += queryFunctions(Empty | Invisible); + + return returned; +} + +AbstractMetaFunctionList AbstractMetaClass::virtualFunctions() const +{ + AbstractMetaFunctionList list = functionsInShellClass(); + + AbstractMetaFunctionList returned; + foreach (AbstractMetaFunction *f, list) { + if (!f->isFinalInCpp() || f->isVirtualSlot()) + returned += f; + } + + return returned; +} + +AbstractMetaFunctionList AbstractMetaClass::nonVirtualShellFunctions() const +{ + AbstractMetaFunctionList list = functionsInShellClass(); + AbstractMetaFunctionList returned; + foreach (AbstractMetaFunction *f, list) { + if (f->isFinalInCpp() && !f->isVirtualSlot()) + returned += f; + } + + return returned; +} + +/******************************************************************************* + * Returns a list of all functions that should be declared and implemented in + * the shell class which is generated as a wrapper on top of the actual C++ class + */ +AbstractMetaFunctionList AbstractMetaClass::functionsInShellClass() const +{ + // Only functions and only protected and public functions + int default_flags = NormalFunctions | Visible | WasVisible | NotRemovedFromShell; + + // All virtual functions + AbstractMetaFunctionList returned = queryFunctions(VirtualFunctions | default_flags); + + // All functions explicitly set to be implemented by the shell class + // (mainly superclass functions that are hidden by other declarations) + returned += queryFunctions(ForcedShellFunctions | default_flags); + + // All functions explicitly set to be virtual slots + returned += queryFunctions(VirtualSlots | default_flags); + + return returned; +} + +/******************************************************************************* + * Returns a list of all functions that require a public override function to + * be generated in the shell class. This includes all functions that were originally + * protected in the superclass. + */ +AbstractMetaFunctionList AbstractMetaClass::publicOverrideFunctions() const +{ + return queryFunctions(NormalFunctions | WasProtected | FinalInCppFunctions | NotRemovedFromTargetLang) + + queryFunctions(Signals | WasProtected | FinalInCppFunctions | NotRemovedFromTargetLang); +} + +AbstractMetaFunctionList AbstractMetaClass::virtualOverrideFunctions() const +{ + return queryFunctions(NormalFunctions | NonEmptyFunctions | Visible | VirtualInCppFunctions | NotRemovedFromShell) + + queryFunctions(Signals | NonEmptyFunctions | Visible | VirtualInCppFunctions | NotRemovedFromShell); +} + +void AbstractMetaClass::sortFunctions() +{ + qSort(m_functions.begin(), m_functions.end(), function_sorter); +} + +void AbstractMetaClass::setFunctions(const AbstractMetaFunctionList &functions) +{ + m_functions = functions; + + // Functions must be sorted by name before next loop + sortFunctions(); + + QString currentName; + bool hasVirtuals = false; + AbstractMetaFunctionList final_functions; + foreach (AbstractMetaFunction *f, m_functions) { + f->setOwnerClass(this); + + m_has_virtual_slots |= f->isVirtualSlot(); + m_has_virtuals |= !f->isFinal() || f->isVirtualSlot(); + m_has_nonpublic |= !f->isPublic(); + + // If we have non-virtual overloads of a virtual function, we have to implement + // all the overloads in the shell class to override the hiding rule + if (currentName == f->name()) { + hasVirtuals = hasVirtuals || !f->isFinal(); + if (f->isFinal()) + final_functions += f; + } else { + if (hasVirtuals && final_functions.size() > 0) { + foreach (AbstractMetaFunction *final_function, final_functions) { + *final_function += AbstractMetaAttributes::ForceShellImplementation; + + QString warn = QString("hiding of function '%1' in class '%2'") + .arg(final_function->name()).arg(name()); + ReportHandler::warning(warn); + } + } + + hasVirtuals = !f->isFinal(); + final_functions.clear(); + if (f->isFinal()) + final_functions += f; + currentName = f->name(); + } + } + +#ifndef QT_NO_DEBUG + bool duplicate_function = false; + for (int j=0; jmodifications(m_functions.at(j)->implementingClass()); + + bool removed = false; + foreach (const FunctionModification &mod, mods) { + if (mod.isRemoveModifier()) { + removed = true; + break ; + } + } + if (removed) + continue ; + + for (int i=0; imodifications(m_functions.at(i)->implementingClass()); + bool removed = false; + foreach (const FunctionModification &mod, mods) { + if (mod.isRemoveModifier()) { + removed = true; + break ; + } + } + if (removed) + continue ; + + uint cmp = m_functions.at(i)->compareTo(m_functions.at(j)); + if ((cmp & AbstractMetaFunction::EqualName) && (cmp & AbstractMetaFunction::EqualArguments)) { + printf("%s.%s mostly equal to %s.%s\n", + qPrintable(m_functions.at(i)->implementingClass()->typeEntry()->qualifiedCppName()), + qPrintable(m_functions.at(i)->signature()), + qPrintable(m_functions.at(j)->implementingClass()->typeEntry()->qualifiedCppName()), + qPrintable(m_functions.at(j)->signature())); + duplicate_function = true; + } + } + } + //Q_ASSERT(!duplicate_function); +#endif +} + +bool AbstractMetaClass::hasFieldAccessors() const +{ + foreach (const AbstractMetaField *field, fields()) { + if (field->getter() || field->setter()) + return true; + } + + return false; +} + +bool AbstractMetaClass::hasDefaultToStringFunction() const +{ + foreach (AbstractMetaFunction *f, queryFunctionsByName("toString")) { + if (f->actualMinimumArgumentCount() == 0) { + return true; + } + + } + return false; +} + +void AbstractMetaClass::addFunction(AbstractMetaFunction *function) +{ + function->setOwnerClass(this); + + if (!function->isDestructor()) { + m_functions << function; + qSort(m_functions.begin(), m_functions.end(), function_sorter); + } + + + m_has_virtual_slots |= function->isVirtualSlot(); + m_has_virtuals |= !function->isFinal() || function->isVirtualSlot(); + m_has_nonpublic |= !function->isPublic(); +} + +bool AbstractMetaClass::hasSignal(const AbstractMetaFunction *other) const +{ + if (!other->isSignal()) + return false; + + foreach (const AbstractMetaFunction *f, functions()) { + if (f->isSignal() && f->compareTo(other) & AbstractMetaFunction::EqualName) + return other->modifiedName() == f->modifiedName(); + } + + return false; +} + + +QString AbstractMetaClass::name() const +{ + return QString(m_type_entry->targetLangName()).replace("::", "_"); +} + +bool AbstractMetaClass::hasFunction(const QString &str) const +{ + foreach (const AbstractMetaFunction *f, functions()) + if (f->name() == str) + return true; + return false; +} + +/* Returns true if this class has one or more functions that are + protected. If a class has protected members we need to generate a + shell class with public accessors to the protected functions, so + they can be called from the native functions. +*/ +bool AbstractMetaClass::hasProtectedFunctions() const { + foreach (AbstractMetaFunction *func, m_functions) { + if (func->isProtected()) + return true; + } + return false; +} + +bool AbstractMetaClass::generateShellClass() const +{ + return m_force_shell_class || + (!isFinal() + && (hasVirtualFunctions() + || hasProtectedFunctions() + || hasFieldAccessors())); +} + +QPropertySpec *AbstractMetaClass::propertySpecForRead(const QString &name) const +{ + for (int i=0; iread()) + return m_property_specs.at(i); + return 0; +} + +QPropertySpec *AbstractMetaClass::propertySpecForWrite(const QString &name) const +{ + for (int i=0; iwrite()) + return m_property_specs.at(i); + return 0; +} + +QPropertySpec *AbstractMetaClass::propertySpecForReset(const QString &name) const +{ + for (int i=0; ireset()) + return m_property_specs.at(i); + } + return 0; +} + + + +static bool functions_contains(const AbstractMetaFunctionList &l, const AbstractMetaFunction *func) +{ + foreach (const AbstractMetaFunction *f, l) { + if ((f->compareTo(func) & AbstractMetaFunction::PrettySimilar) == AbstractMetaFunction::PrettySimilar) + return true; + } + return false; +} + +AbstractMetaField::AbstractMetaField() : m_getter(0), m_setter(0), m_class(0) +{ +} + +AbstractMetaField::~AbstractMetaField() +{ + delete m_setter; + delete m_getter; +} +ushort painters; // refcount +AbstractMetaField *AbstractMetaField::copy() const +{ + AbstractMetaField *returned = new AbstractMetaField; + returned->setEnclosingClass(0); + returned->setAttributes(attributes()); + returned->setName(name()); + returned->setType(type()->copy()); + returned->setOriginalAttributes(originalAttributes()); + + return returned; +} + +static QString upCaseFirst(const QString &str) { + Q_ASSERT(!str.isEmpty()); + QString s = str; + s[0] = s.at(0).toUpper(); + return s; +} + +static AbstractMetaFunction *createXetter(const AbstractMetaField *g, const QString &name, uint type) { + AbstractMetaFunction *f = new AbstractMetaFunction; + + + + f->setName(name); + f->setOriginalName(name); + f->setOwnerClass(g->enclosingClass()); + f->setImplementingClass(g->enclosingClass()); + f->setDeclaringClass(g->enclosingClass()); + + uint attr = AbstractMetaAttributes::Native + | AbstractMetaAttributes::Final + | type; + if (g->isStatic()) + attr |= AbstractMetaAttributes::Static; + if (g->isPublic()) + attr |= AbstractMetaAttributes::Public; + else if (g->isProtected()) + attr |= AbstractMetaAttributes::Protected; + else + attr |= AbstractMetaAttributes::Private; + f->setAttributes(attr); + f->setOriginalAttributes(attr); + + FieldModificationList mods = g->modifications(); + foreach (FieldModification mod, mods) { + if (mod.isRenameModifier()) + f->setName(mod.renamedTo()); + if (mod.isAccessModifier()) { + if (mod.isPrivate()) + f->setVisibility(AbstractMetaAttributes::Private); + else if (mod.isProtected()) + f->setVisibility(AbstractMetaAttributes::Protected); + else if (mod.isPublic()) + f->setVisibility(AbstractMetaAttributes::Public); + else if (mod.isFriendly()) + f->setVisibility(AbstractMetaAttributes::Friendly); + } + + } + return f; +} + +FieldModificationList AbstractMetaField::modifications() const +{ + FieldModificationList mods = enclosingClass()->typeEntry()->fieldModifications(); + FieldModificationList returned; + + foreach (FieldModification mod, mods) { + if (mod.name == name()) + returned += mod; + } + + return returned; +} + +const AbstractMetaFunction *AbstractMetaField::setter() const +{ + if (m_setter == 0) { + m_setter = createXetter(this, + name(), + AbstractMetaAttributes::SetterFunction); + AbstractMetaArgumentList arguments; + AbstractMetaArgument *argument = new AbstractMetaArgument; + argument->setType(type()->copy()); + argument->setName(name()); + arguments.append(argument); + m_setter->setArguments(arguments); + } + return m_setter; +} + +const AbstractMetaFunction *AbstractMetaField::getter() const +{ + if (m_getter == 0) { + m_getter = createXetter(this, + name(), + AbstractMetaAttributes::GetterFunction); + m_getter->setType(type()); + } + + return m_getter; +} + + +bool AbstractMetaClass::hasConstructors() const +{ + return queryFunctions(Constructors).size() != 0; +} + +void AbstractMetaClass::addDefaultConstructor() +{ + AbstractMetaFunction *f = new AbstractMetaFunction; + f->setName(name()); + f->setOwnerClass(this); + f->setFunctionType(AbstractMetaFunction::ConstructorFunction); + f->setArguments(AbstractMetaArgumentList()); + f->setDeclaringClass(this); + + uint attr = AbstractMetaAttributes::Native; + attr |= AbstractMetaAttributes::Public; + f->setAttributes(attr); + f->setImplementingClass(this); + f->setOriginalAttributes(f->attributes()); + + addFunction(f); +} + +bool AbstractMetaClass::hasFunction(const AbstractMetaFunction *f) const +{ + return functions_contains(m_functions, f); +} + +/* Goes through the list of functions and returns a list of all + functions matching all of the criteria in \a query. + */ + +AbstractMetaFunctionList AbstractMetaClass::queryFunctions(uint query) const +{ + AbstractMetaFunctionList functions; + + foreach (AbstractMetaFunction *f, m_functions) { + + if ((query & VirtualSlots) && !f->isVirtualSlot()) + continue; + + if ((query & NotRemovedFromTargetLang) && f->isRemovedFrom(f->implementingClass(), TypeSystem::TargetLangCode)) { + continue; + } + + if ((query & NotRemovedFromTargetLang) && !f->isFinal() && f->isRemovedFrom(f->declaringClass(), TypeSystem::TargetLangCode)) { + continue; + } + + if ((query & NotRemovedFromShell) && f->isRemovedFrom(f->implementingClass(), TypeSystem::ShellCode)) { + continue; + } + + if ((query & NotRemovedFromShell) && !f->isFinal() && f->isRemovedFrom(f->declaringClass(), TypeSystem::ShellCode)) { + continue; + } + + if ((query & Visible) && f->isPrivate()) { + continue; + } + + if ((query & VirtualInTargetLangFunctions) && f->isFinalInTargetLang()) { + continue; + } + + if ((query & Invisible) && !f->isPrivate()) { + continue; + } + + if ((query & Empty) && !f->isEmptyFunction()) { + continue; + } + + if ((query & WasPublic) && !f->wasPublic()) { + continue; + } + + if ((query & WasVisible) && f->wasPrivate()) { + continue; + } + + if ((query & WasProtected) && !f->wasProtected()) { + continue; + } + + if ((query & ClassImplements) && f->ownerClass() != f->implementingClass()) { + continue; + } + + if ((query & Inconsistent) && (f->isFinalInTargetLang() || !f->isFinalInCpp() || f->isStatic())) { + continue; + } + + if ((query & FinalInTargetLangFunctions) && !f->isFinalInTargetLang()) { + continue; + } + + if ((query & FinalInCppFunctions) && !f->isFinalInCpp()) { + continue; + } + + if ((query & VirtualInCppFunctions) && f->isFinalInCpp()) { + continue; + } + + if ((query & Signals) && (!f->isSignal())) { + continue; + } + + if ((query & ForcedShellFunctions) + && (!f->isForcedShellImplementation() + || !f->isFinal())) { + continue; + } + + if (((query & Constructors) && (!f->isConstructor() + || f->ownerClass() != f->implementingClass())) + || (f->isConstructor() && (query & Constructors) == 0)) { + continue; + } + + // Destructors are never included in the functions of a class currently + /* + if ((query & Destructors) && (!f->isDestructor() + || f->ownerClass() != f->implementingClass()) + || f->isDestructor() && (query & Destructors) == 0) { + continue; + }*/ + + if ((query & VirtualFunctions) && (f->isFinal() || f->isSignal() || f->isStatic())) { + continue; + } + + if ((query & StaticFunctions) && (!f->isStatic() || f->isSignal())) { + continue; + } + + if ((query & NonStaticFunctions) && (f->isStatic())) { + continue; + } + + if ((query & NonEmptyFunctions) && (f->isEmptyFunction())) { + continue; + } + + if ((query & NormalFunctions) && (f->isSignal())) { + continue; + } + + if ((query & AbstractFunctions) && !f->isAbstract()) { + continue; + } + + functions << f; + } + +// qDebug() << "queried" << m_type_entry->qualifiedCppName() << "got" << functions.size() << "out of" << m_functions.size(); + + return functions; +} + + +bool AbstractMetaClass::hasInconsistentFunctions() const +{ + return cppInconsistentFunctions().size() > 0; +} + +bool AbstractMetaClass::hasSignals() const +{ + return cppSignalFunctions().size() > 0; +} + + +/** + * Adds the specified interface to this class by adding all the + * functions in the interface to this class. + */ +void AbstractMetaClass::addInterface(AbstractMetaClass *interface) +{ + Q_ASSERT(!m_interfaces.contains(interface)); + m_interfaces << interface; + + if (m_extracted_interface != 0 && m_extracted_interface != interface) + m_extracted_interface->addInterface(interface); + + foreach (AbstractMetaFunction *function, interface->functions()) + if (!hasFunction(function) && !function->isConstructor()) { + AbstractMetaFunction *cpy = function->copy(); + // We do not want this in PythonQt: + //cpy->setImplementingClass(this); + + // Setup that this function is an interface class. + cpy->setInterfaceClass(interface); + *cpy += AbstractMetaAttributes::InterfaceFunction; + + // Copy the modifications in interface into the implementing classes. + FunctionModificationList mods = function->modifications(interface); + foreach (const FunctionModification &mod, mods) { + m_type_entry->addFunctionModification(mod); + } + + // It should be mostly safe to assume that when we implement an interface + // we don't "pass on" pure virtual functions to our sublcasses... +// *cpy -= AbstractMetaAttributes::Abstract; + + addFunction(cpy); + } +} + + +void AbstractMetaClass::setInterfaces(const AbstractMetaClassList &interfaces) +{ + m_interfaces = interfaces; +} + + +AbstractMetaEnum *AbstractMetaClass::findEnum(const QString &enumName) +{ + foreach (AbstractMetaEnum *e, m_enums) { + if (e->name() == enumName) + return e; + } + + if (typeEntry()->designatedInterface()) + return extractInterface()->findEnum(enumName); + + return 0; +} + + + + +/*! Recursivly searches for the enum value named \a enumValueName in + this class and its superclasses and interfaces. Values belonging to + \a meta_enum are excluded from the search. +*/ +AbstractMetaEnumValue *AbstractMetaClass::findEnumValue(const QString &enumValueName, AbstractMetaEnum *meta_enum) +{ + foreach (AbstractMetaEnum *e, m_enums) { + if (e == meta_enum) + continue; + foreach (AbstractMetaEnumValue *v, e->values()) { + if (v->name() == enumValueName) + return v; + } + } + + if (typeEntry()->designatedInterface()) + return extractInterface()->findEnumValue(enumValueName, meta_enum); + + if (baseClass() != 0) + return baseClass()->findEnumValue(enumValueName, meta_enum); + + return 0; +} + + +/*! + * Searches through all of this class' enums for a value matching the + * name \a enumValueName. The name is excluding the class/namespace + * prefix. The function recursivly searches interfaces and baseclasses + * of this class. + */ +AbstractMetaEnum *AbstractMetaClass::findEnumForValue(const QString &enumValueName) +{ + foreach (AbstractMetaEnum *e, m_enums) { + foreach (AbstractMetaEnumValue *v, e->values()) { + if (v->name() == enumValueName) + return e; + } + } + + if (typeEntry()->designatedInterface()) + return extractInterface()->findEnumForValue(enumValueName); + + if (baseClass() != 0) + return baseClass()->findEnumForValue(enumValueName); + + return 0; +} + + +static void add_extra_include_for_type(AbstractMetaClass *meta_class, const AbstractMetaType *type) +{ + + if (type == 0) + return; + + Q_ASSERT(meta_class != 0); + const TypeEntry *entry = (type ? type->typeEntry() : 0); + if (entry != 0 && entry->isComplex()) { + const ComplexTypeEntry *centry = static_cast(entry); + ComplexTypeEntry *class_entry = meta_class->typeEntry(); + if (class_entry != 0 && centry->include().isValid()) + class_entry->addExtraInclude(centry->include()); + } + + if (type->hasInstantiations()) { + QList instantiations = type->instantiations(); + foreach (AbstractMetaType *instantiation, instantiations) + add_extra_include_for_type(meta_class, instantiation); + } +} + +static void add_extra_includes_for_function(AbstractMetaClass *meta_class, const AbstractMetaFunction *meta_function) +{ + Q_ASSERT(meta_class != 0); + Q_ASSERT(meta_function != 0); + add_extra_include_for_type(meta_class, meta_function->type()); + + AbstractMetaArgumentList arguments = meta_function->arguments(); + foreach (AbstractMetaArgument *argument, arguments) + add_extra_include_for_type(meta_class, argument->type()); +} + +void AbstractMetaClass::fixFunctions() +{ + if (m_functions_fixed) + return; + else + m_functions_fixed = true; + + AbstractMetaClass *super_class = baseClass(); + AbstractMetaFunctionList funcs = functions(); + +// printf("fix functions for %s\n", qPrintable(name())); + + if (super_class != 0) + super_class->fixFunctions(); + int iface_idx = 0; + while (super_class || iface_idx < interfaces().size()) { +// printf(" - base: %s\n", qPrintable(super_class->name())); + + // Since we always traverse the complete hierarchy we are only + // interrested in what each super class implements, not what + // we may have propagated from their base classes again. + AbstractMetaFunctionList super_funcs; + if (super_class) { + + // Super classes can never be final + if (super_class->isFinalInTargetLang()) { + ReportHandler::warning("Final class '" + super_class->name() + "' set to non-final, as it is extended by other classes"); + *super_class -= AbstractMetaAttributes::FinalInTargetLang; + } + super_funcs = super_class->queryFunctions(AbstractMetaClass::ClassImplements); + } else { + super_funcs = interfaces().at(iface_idx)->queryFunctions(AbstractMetaClass::NormalFunctions); + } + + QSet funcs_to_add; + for (int sfi=0; sfiisRemovedFromAllLanguages(sf->implementingClass())) + continue; + + // we generally don't care about private functions, but we have to get the ones that are + // virtual in case they override abstract functions. + bool add = (sf->isNormal() || sf->isSignal() || sf->isEmptyFunction()); + for (int fi=0; fiisRemovedFromAllLanguages(f->implementingClass())) + continue; + + uint cmp = f->compareTo(sf); + + if (cmp & AbstractMetaFunction::EqualModifiedName) { +// printf(" - %s::%s similar to %s::%s %x vs %x\n", +// qPrintable(sf->implementingClass()->typeEntry()->qualifiedCppName()), +// qPrintable(sf->name()), +// qPrintable(f->implementingClass()->typeEntry()->qualifiedCppName()), +// qPrintable(f->name()), +// sf->attributes(), +// f->attributes()); + + add = false; + if (cmp & AbstractMetaFunction::EqualArguments) { + +// if (!(cmp & AbstractMetaFunction::EqualReturnType)) { +// ReportHandler::warning(QString("%1::%2 and %3::%4 differ in retur type") +// .arg(sf->implementingClass()->name()) +// .arg(sf->name()) +// .arg(f->implementingClass()->name()) +// .arg(f->name())); +// } + + // Same function, propegate virtual... + if (!(cmp & AbstractMetaFunction::EqualAttributes)) { + if (!f->isEmptyFunction()) { + if (!sf->isFinalInCpp() && f->isFinalInCpp()) { + *f -= AbstractMetaAttributes::FinalInCpp; + // printf(" --- inherit virtual\n"); + } + if (!sf->isFinalInTargetLang() && f->isFinalInTargetLang()) { + *f -= AbstractMetaAttributes::FinalInTargetLang; + // printf(" --- inherit virtual\n"); + } + if (!f->isFinalInTargetLang() && f->isPrivate()) { + f->setFunctionType(AbstractMetaFunction::EmptyFunction); + f->setVisibility(AbstractMetaAttributes::Protected); + *f += AbstractMetaAttributes::FinalInTargetLang; + ReportHandler::warning(QString("private virtual function '%1' in '%2'") + .arg(f->signature()) + .arg(f->implementingClass()->name())); + } + } + } + + if (f->visibility() != sf->visibility()) { + QString warn = QString("visibility of function '%1' modified in class '%2'") + .arg(f->name()).arg(name()); + ReportHandler::warning(warn); + + // If new visibility is private, we can't + // do anything. If it isn't, then we + // prefer the parent class's visibility + // setting for the function. + if (!f->isPrivate() && !sf->isPrivate()) + f->setVisibility(sf->visibility()); + + // Private overrides of abstract functions have to go into the class or + // the subclasses will not compile as non-abstract classes. + // But they don't need to be implemented, since they can never be called. + if (f->isPrivate() && sf->isAbstract()) { + f->setFunctionType(AbstractMetaFunction::EmptyFunction); + f->setVisibility(sf->visibility()); + *f += AbstractMetaAttributes::FinalInTargetLang; + *f += AbstractMetaAttributes::FinalInCpp; + } + } + + // Set the class which first declares this function, afawk + f->setDeclaringClass(sf->declaringClass()); + + if (sf->isFinalInTargetLang() && !sf->isPrivate() && !f->isPrivate() && !sf->isStatic() && !f->isStatic()) { + // Shadowed funcion, need to make base class + // function non-virtual + if (f->implementingClass() != sf->implementingClass() && f->implementingClass()->inheritsFrom(sf->implementingClass())) { + + // Check whether the superclass method has been redefined to non-final + + bool hasNonFinalModifier = false; + bool isBaseImplPrivate = false; + FunctionModificationList mods = sf->modifications(sf->implementingClass()); + foreach (FunctionModification mod, mods) { + if (mod.isNonFinal()) { + hasNonFinalModifier = true; + break; + } else if (mod.isPrivate()) { + isBaseImplPrivate = true; + break; + } + } + + if (!hasNonFinalModifier && !isBaseImplPrivate) { + ReportHandler::warning(QString::fromLatin1("Shadowing: %1::%2 and %3::%4; Java code will not compile") + .arg(sf->implementingClass()->name()) + .arg(sf->signature()) + .arg(f->implementingClass()->name()) + .arg(f->signature())); + } + } + } + + } + + if (cmp & AbstractMetaFunction::EqualDefaultValueOverload) { + AbstractMetaArgumentList arguments; + if (f->arguments().size() < sf->arguments().size()) + arguments = sf->arguments(); + else + arguments = f->arguments(); + + for (int i=0; isetDefaultValueExpression(QString()); + } + + + // Otherwise we have function shadowing and we can + // skip the thing... + } else if (cmp & AbstractMetaFunction::EqualName && !sf->isSignal()) { + + // In the case of function shadowing where the function name has been altered to + // avoid conflict, we don't copy in the original. + add = false; + } + + } + + if (add) + funcs_to_add << sf; + } + + foreach (AbstractMetaFunction *f, funcs_to_add) + funcs << f->copy(); + + if (super_class) + super_class = super_class->baseClass(); + else + iface_idx++; + } + + bool hasPrivateConstructors = false; + bool hasPublicConstructors = false; + foreach (AbstractMetaFunction *func, funcs) { + FunctionModificationList mods = func->modifications(this); + foreach (const FunctionModification &mod, mods) { + if (mod.isRenameModifier()) { +// qDebug() << name() << func->originalName() << func << " from " +// << func->implementingClass()->name() << "renamed to" << mod.renamedTo(); + func->setName(mod.renamedTo()); + } + } + + // Make sure class is abstract if one of the functions is + if (func->isAbstract()) { + (*this) += AbstractMetaAttributes::Abstract; + (*this) -= AbstractMetaAttributes::Final; + } + + if (func->isConstructor()) { + if (func->isPrivate()) + hasPrivateConstructors = true; + else + hasPublicConstructors = true; + } + + + + // Make sure that we include files for all classes that are in use + + if (!func->isRemovedFrom(this, TypeSystem::ShellCode)) + add_extra_includes_for_function(this, func); + } + + if (hasPrivateConstructors && !hasPublicConstructors) { + (*this) += AbstractMetaAttributes::Abstract; + (*this) -= AbstractMetaAttributes::Final; + } + + foreach (AbstractMetaFunction *f1, funcs) { + foreach (AbstractMetaFunction *f2, funcs) { + if (f1 != f2) { + uint cmp = f1->compareTo(f2); + if ((cmp & AbstractMetaFunction::EqualName) + && !f1->isFinalInCpp() + && f2->isFinalInCpp()) { + *f2 += AbstractMetaAttributes::FinalOverload; +// qDebug() << f2 << f2->implementingClass()->name() << "::" << f2->name() << f2->arguments().size() << " vs " << f1 << f1->implementingClass()->name() << "::" << f1->name() << f1->arguments().size(); +// qDebug() << " " << f2; +// AbstractMetaArgumentList f2Args = f2->arguments(); +// foreach (AbstractMetaArgument *a, f2Args) +// qDebug() << " " << a->type()->name() << a->name(); +// qDebug() << " " << f1; +// AbstractMetaArgumentList f1Args = f1->arguments(); +// foreach (AbstractMetaArgument *a, f1Args) +// qDebug() << " " << a->type()->name() << a->name(); + + } + } + } + } + + setFunctions(funcs); +} + + +QString AbstractMetaType::minimalSignature() const +{ + QString minimalSignature; + if (isConstant()) + minimalSignature += "const "; + minimalSignature += typeEntry()->qualifiedCppName(); + if (hasInstantiationInCpp()) { + QList instantiations = this->instantiations(); + minimalSignature += "<"; + for (int i=0;i 0) + minimalSignature += ","; + minimalSignature += instantiations.at(i)->minimalSignature(); + } + minimalSignature += ">"; + } + + for (int j=0; jqualifiedCppName(); + if (hasInstantiationInCpp()) { + QList instantiations = this->instantiations(); + minimalSignature += "<"; + for (int i=0;i 0) + minimalSignature += ","; + minimalSignature += instantiations.at(i)->minimalSignature(); + } + minimalSignature += " >"; + } + + for (int j=0; jqualifiedCppName(); + if (hasInstantiationInCpp()) { + QList instantiations = this->instantiations(); + minimalSignature += "<"; + for (int i=0;i 0) + minimalSignature += ","; + minimalSignature += instantiations.at(i)->minimalSignature(); + } + minimalSignature += " >"; + } + for (int j=0; jisNativeIdBased(); +} + + +/******************************************************************************* + * Other stuff... + */ + + +AbstractMetaEnum *AbstractMetaClassList::findEnum(const EnumTypeEntry *entry) const +{ + Q_ASSERT(entry->isEnum()); + + QString qualified_name = entry->qualifiedCppName(); + int pos = qualified_name.lastIndexOf("::"); + + QString enum_name; + QString class_name; + + if (pos > 0) { + enum_name = qualified_name.mid(pos + 2); + class_name = qualified_name.mid(0, pos); + } else { + enum_name = qualified_name; + class_name = TypeDatabase::globalNamespaceClassName(entry); + } + + AbstractMetaClass *meta_class = findClass(class_name); + if (!meta_class) { + ReportHandler::warning(QString("AbstractMeta::findEnum(), unknown class '%1' in '%2'") + .arg(class_name).arg(entry->qualifiedCppName())); + return 0; + } + + return meta_class->findEnum(enum_name); +} + +AbstractMetaEnumValue *AbstractMetaEnumValueList::find(const QString &name) const +{ + for (int i=0; iname()) + return at(i); + } + return 0; +} + +AbstractMetaEnumValue *AbstractMetaClassList::findEnumValue(const QString &name) const +{ + QStringList lst = name.split(QLatin1String("::")); + + Q_ASSERT_X(lst.size() == 2, "AbstractMetaClassList::findEnumValue()", "Expected qualified enum"); + + + QString prefixName = lst.at(0); + QString enumName = lst.at(1); + + AbstractMetaClass *cl = findClass(prefixName); + if (cl) + return cl->findEnumValue(enumName, 0); + + ReportHandler::warning(QString("no matching enum '%1'").arg(name)); + return 0; +} + +/*! + * Searches the list after a class that mathces \a name; either as + * C++, Java base name or complete Java package.class name. + */ + +AbstractMetaClass *AbstractMetaClassList::findClass(const QString &name) const +{ + if (name.isEmpty()) + return 0; + + foreach (AbstractMetaClass *c, *this) { + if (c->qualifiedCppName() == name) + return c; + } + + foreach (AbstractMetaClass *c, *this) { + if (c->fullName() == name) + return c; + } + + foreach (AbstractMetaClass *c, *this) { + if (c->name() == name) + return c; + } + + return 0; +} diff --git a/generator_50/abstractmetalang.h b/generator_50/abstractmetalang.h new file mode 100644 index 00000000..ab8c12e7 --- /dev/null +++ b/generator_50/abstractmetalang.h @@ -0,0 +1,951 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef ABSTRACTMETALANG_H +#define ABSTRACTMETALANG_H + +#include "codemodel.h" + +#include "typesystem.h" + +#include +#include +#include + + +class AbstractMeta; +class AbstractMetaClass; +class AbstractMetaField; +class AbstractMetaFunction; +class AbstractMetaType; +class AbstractMetaVariable; +class AbstractMetaArgument; +class AbstractMetaEnumValue; +class AbstractMetaEnum; +class QPropertySpec; + +typedef QList AbstractMetaFieldList; +typedef QList AbstractMetaArgumentList; +typedef QList AbstractMetaFunctionList; +class AbstractMetaClassList : public QList +{ +public: + AbstractMetaClass *findClass(const QString &name) const; + AbstractMetaEnumValue *findEnumValue(const QString &string) const; + AbstractMetaEnum *findEnum(const EnumTypeEntry *entry) const; + +}; + + + +class AbstractMetaAttributes +{ +public: + AbstractMetaAttributes() : m_attributes(0) { }; + + enum Attribute { + None = 0x00000000, + + Private = 0x00000001, + Protected = 0x00000002, + Public = 0x00000004, + Friendly = 0x00000008, + Visibility = 0x0000000f, + + Native = 0x00000010, + Abstract = 0x00000020, + Static = 0x00000040, + + FinalInTargetLang = 0x00000080, + FinalInCpp = 0x00000100, + ForceShellImplementation = 0x00000200, + + GetterFunction = 0x00000400, + SetterFunction = 0x00000800, + + FinalOverload = 0x00001000, + InterfaceFunction = 0x00002000, + + PropertyReader = 0x00004000, + PropertyWriter = 0x00008000, + PropertyResetter = 0x00010000, + + Fake = 0x00020000, + + Invokable = 0x00040000, + + Final = FinalInTargetLang | FinalInCpp + }; + + uint attributes() const { return m_attributes; } + void setAttributes(uint attributes) { m_attributes = attributes; } + + uint originalAttributes() const { return m_originalAttributes; } + void setOriginalAttributes(uint attributes) { m_originalAttributes = attributes; } + + uint visibility() const { return m_attributes & Visibility; } + void setVisibility(uint visi) { m_attributes = (m_attributes & ~Visibility) | visi; } + + void operator+=(Attribute attribute) { m_attributes |= attribute; } + void operator-=(Attribute attribute) { m_attributes &= ~attribute; } + + bool isNative() const { return m_attributes & Native; } + bool isFinal() const { return (m_attributes & Final) == Final; } + bool isFinalInTargetLang() const { return m_attributes & FinalInTargetLang; } + bool isFinalInCpp() const { return m_attributes & FinalInCpp; } + bool isAbstract() const { return m_attributes & Abstract; } + bool isStatic() const { return m_attributes & Static; } + bool isForcedShellImplementation() const { return m_attributes & ForceShellImplementation; } + bool isInterfaceFunction() const { return m_attributes & InterfaceFunction; } + bool isFinalOverload() const { return m_attributes & FinalOverload; } + bool isInvokable() const { return m_attributes & Invokable; } + + bool isPropertyReader() const { return m_attributes & PropertyReader; } + bool isPropertyWriter() const { return m_attributes & PropertyWriter; } + bool isPropertyResetter() const { return m_attributes & PropertyResetter; } + + bool isPrivate() const { return m_attributes & Private; } + bool isProtected() const { return m_attributes & Protected; } + bool isPublic() const { return m_attributes & Public; } + bool isFriendly() const { return m_attributes & Friendly; } + + bool wasPrivate() const { return m_originalAttributes & Private; } + bool wasProtected() const { return m_originalAttributes & Protected; } + bool wasPublic() const { return m_originalAttributes & Public; } + bool wasFriendly() const { return m_originalAttributes & Friendly; } + +private: + uint m_attributes; + uint m_originalAttributes; +}; + + +class AbstractMetaType +{ +public: + enum TypeUsagePattern { + InvalidPattern, + PrimitivePattern, + FlagsPattern, + EnumPattern, + ValuePattern, + StringPattern, + CharPattern, + ObjectPattern, + QObjectPattern, + NativePointerPattern, + ContainerPattern, + VariantPattern, + JObjectWrapperPattern, + ArrayPattern, + ThreadPattern + }; + + AbstractMetaType() : + m_type_entry(0), + m_array_element_count(0), + m_array_element_type(0), + m_original_template_type(0), + m_pattern(InvalidPattern), + m_constant(false), + m_reference(false), + m_cpp_instantiation(true), + m_indirections(0), + m_reserved(0) + { + } + + QString package() const { return m_type_entry->javaPackage(); } + QString name() const { return m_type_entry->targetLangName(); } + QString fullName() const { return m_type_entry->qualifiedTargetLangName(); } + + void setTypeUsagePattern(TypeUsagePattern pattern) { m_pattern = pattern; } + TypeUsagePattern typeUsagePattern() const { return m_pattern; } + + // true when use pattern is container + bool hasInstantiations() const { return !m_instantiations.isEmpty(); } + void addInstantiation(AbstractMetaType *inst) { m_instantiations << inst; } + void setInstantiations(const QList &insts) { m_instantiations = insts; } + QList instantiations() const { return m_instantiations; } + void setInstantiationInCpp(bool incpp) { m_cpp_instantiation = incpp; } + bool hasInstantiationInCpp() const { return hasInstantiations() && m_cpp_instantiation; } + + QString minimalSignature() const; + QString minimalRef2PtrSignature() const; + QString minimalNoRefNoConstSignature() const; + + // true when the type is a QtJambiObject subclass + bool hasNativeId() const; + + // returns true if the typs is used as a non complex primitive, no & or *'s + bool isPrimitive() const { return m_pattern == PrimitivePattern; } + + // returns true if the type is used as an enum + bool isEnum() const { return m_pattern == EnumPattern; } + + // returns true if the type is used as a QObject * + bool isQObject() const { return m_pattern == QObjectPattern; } + + // returns true if the type is used as an object, e.g. Xxx * + bool isObject() const { return m_pattern == ObjectPattern; } + + // returns true if the type is used as an array, e.g. Xxx[42] + bool isArray() const { return m_pattern == ArrayPattern; } + + // returns true if the type is used as a value type (X or const X &) + bool isValue() const { return m_pattern == ValuePattern; } + + // returns true for more complex types... + bool isNativePointer() const { return m_pattern == NativePointerPattern; } + + // returns true if the type was originally a QString or const QString & or equivalent for QLatin1String + bool isTargetLangString() const { return m_pattern == StringPattern; } + + // returns true if the type was originally a QChar or const QChar & + bool isTargetLangChar() const { return m_pattern == CharPattern; } + + // return true if the type was originally a QVariant or const QVariant & + bool isVariant() const { return m_pattern == VariantPattern; } + + // return true if the type was originally a JObjectWrapper or const JObjectWrapper & + bool isJObjectWrapper() const { return m_pattern == JObjectWrapperPattern; } + + // returns true if the type was used as a container + bool isContainer() const { return m_pattern == ContainerPattern; } + + // returns true if the type was used as a flag + bool isFlags() const { return m_pattern == FlagsPattern; } + + // returns true if the type was used as a thread + bool isThread() const { return m_pattern == ThreadPattern; } + + bool isConstant() const { return m_constant; } + void setConstant(bool constant) { m_constant = constant; } + + bool isReference() const { return m_reference; } + void setReference(bool ref) { m_reference = ref; } + + // Returns true if the type is to be implemented using Java enums, e.g. not plain ints. + bool isTargetLangEnum() const { return isEnum() && !((EnumTypeEntry *) typeEntry())->forceInteger(); } + bool isIntegerEnum() const { return isEnum() && !isTargetLangEnum(); } + + // Returns true if the type is to be implemented using Java QFlags, e.g. not plain ints. + bool isTargetLangFlags() const { + return isFlags() && !((FlagsTypeEntry *) typeEntry())->forceInteger(); } + bool isIntegerFlags() const { return isFlags() && !isTargetLangFlags(); } + + int actualIndirections() const { return m_indirections + (isReference() ? 1 : 0); } + int indirections() const { return m_indirections; } + void setIndirections(int indirections) { m_indirections = indirections; } + + void setArrayElementCount(int n) { m_array_element_count = n; } + int arrayElementCount() const { return m_array_element_count; } + + AbstractMetaType *arrayElementType() const { return m_array_element_type; } + void setArrayElementType(AbstractMetaType *t) { m_array_element_type = t; } + + QString cppSignature() const; + + AbstractMetaType *copy() const; + + const TypeEntry *typeEntry() const { return m_type_entry; } + void setTypeEntry(const TypeEntry *type) { m_type_entry = type; } + + void setOriginalTypeDescription(const QString &otd) { m_original_type_description = otd; } + QString originalTypeDescription() const { return m_original_type_description; } + + void setOriginalTemplateType(const AbstractMetaType *type) { m_original_template_type = type; } + const AbstractMetaType *originalTemplateType() const { return m_original_template_type; } + +private: + const TypeEntry *m_type_entry; + QList m_instantiations; + QString m_package; + QString m_original_type_description; + + int m_array_element_count; + AbstractMetaType *m_array_element_type; + const AbstractMetaType *m_original_template_type; + + TypeUsagePattern m_pattern; + uint m_constant : 1; + uint m_reference : 1; + uint m_cpp_instantiation : 1; + int m_indirections : 4; + uint m_reserved : 25; // unused +}; + +class AbstractMetaVariable +{ +public: + AbstractMetaVariable() : m_type(0) { } + + AbstractMetaType *type() const { return m_type; } + void setType(AbstractMetaType *type) { m_type = type; } + + QString name() const { return m_name; } + void setName(const QString &name) { m_name = name; } + +private: + QString m_name; + AbstractMetaType *m_type; +}; + + + +class AbstractMetaArgument : public AbstractMetaVariable +{ +public: + AbstractMetaArgument() : m_argument_index(0) { }; + + QString defaultValueExpression() const { return m_expression; } + void setDefaultValueExpression(const QString &expr) { m_expression = expr; } + + QString originalDefaultValueExpression() const { return m_original_expression; } + void setOriginalDefaultValueExpression(const QString &expr) { m_original_expression = expr; } + + QString toString() const { return type()->name() + " " + AbstractMetaVariable::name() + + (m_expression.isEmpty() ? "" : " = " + m_expression); } + + int argumentIndex() const { return m_argument_index; } + void setArgumentIndex(int argIndex) { m_argument_index = argIndex; } + + QString argumentName() const; + QString indexedName() const; + + AbstractMetaArgument *copy() const; + +private: + // Just to force people to call argumentName() And indexedName(); + QString name() const; + + QString m_expression; + QString m_original_expression; + int m_argument_index; +}; + + +class AbstractMetaField : public AbstractMetaVariable, public AbstractMetaAttributes +{ +public: + AbstractMetaField(); + ~AbstractMetaField(); + + const AbstractMetaClass *enclosingClass() const { return m_class; } + void setEnclosingClass(const AbstractMetaClass *cls) { m_class = cls; } + + const AbstractMetaFunction *getter() const; + const AbstractMetaFunction *setter() const; + + FieldModificationList modifications() const; + + AbstractMetaField *copy() const; + +private: + mutable AbstractMetaFunction *m_getter; + mutable AbstractMetaFunction *m_setter; + const AbstractMetaClass *m_class; +}; + + +class AbstractMetaFunction : public AbstractMetaAttributes +{ +public: + enum FunctionType { + ConstructorFunction, + DestructorFunction, + NormalFunction, + SignalFunction, + EmptyFunction, + SlotFunction, + GlobalScopeFunction + }; + + enum CompareResult { + EqualName = 0x00000001, + EqualArguments = 0x00000002, + EqualAttributes = 0x00000004, + EqualImplementor = 0x00000008, + EqualReturnType = 0x00000010, + EqualDefaultValueOverload = 0x00000020, + EqualModifiedName = 0x00000040, + + NameLessThan = 0x00001000, + + PrettySimilar = EqualName | EqualArguments, + Equal = 0x0000001f, + NotEqual = 0x00001000 + }; + + AbstractMetaFunction() + : m_function_type(NormalFunction), + m_type(0), + m_class(0), + m_implementing_class(0), + m_declaring_class(0), + m_interface_class(0), + m_property_spec(0), + m_constant(false), + m_invalid(false) + { + } + + ~AbstractMetaFunction(); + + QString name() const { return m_name; } + void setName(const QString &name) { m_name = name; } + + QString originalName() const { return m_original_name.isEmpty() ? name() : m_original_name; } + void setOriginalName(const QString &name) { m_original_name = name; } + + QString modifiedName() const; + + QString minimalSignature() const; + QStringList possibleIntrospectionCompatibleSignatures() const; + + QString marshalledName() const; + + // true if one or more of the arguments are of QtJambiObject subclasses + bool argumentsHaveNativeId() const + { + foreach (const AbstractMetaArgument *arg, m_arguments) { + if (arg->type()->hasNativeId()) + return true; + } + + return false; + } + + bool isModifiedRemoved(int types = TypeSystem::All) const; + + AbstractMetaType *type() const { return m_type; } + void setType(AbstractMetaType *type) { m_type = type; } + + // The class that has this function as a member. + const AbstractMetaClass *ownerClass() const { return m_class; } + void setOwnerClass(const AbstractMetaClass *cls) { m_class = cls; } + + // The first class in a hierarchy that declares the function + const AbstractMetaClass *declaringClass() const { return m_declaring_class; } + void setDeclaringClass(const AbstractMetaClass *cls) { m_declaring_class = cls; } + + // The class that actually implements this function + const AbstractMetaClass *implementingClass() const { return m_implementing_class; } + void setImplementingClass(const AbstractMetaClass *cls) { m_implementing_class = cls; } + + bool needsCallThrough() const; + + AbstractMetaArgumentList arguments() const { return m_arguments; } + void setArguments(const AbstractMetaArgumentList &arguments) { m_arguments = arguments; } + void addArgument(AbstractMetaArgument *argument) { m_arguments << argument; } + int actualMinimumArgumentCount() const; + + void setInvalid(bool on) { m_invalid = on; } + bool isInvalid() const { return m_invalid; } + bool isDeprecated() const; + bool isDestructor() const { return functionType() == DestructorFunction; } + bool isConstructor() const { return functionType() == ConstructorFunction; } + bool isNormal() const { return functionType() == NormalFunction || isSlot() || isInGlobalScope(); } + bool isInGlobalScope() const { return functionType() == GlobalScopeFunction; } + bool isSignal() const { return functionType() == SignalFunction; } + bool isSlot() const { return functionType() == SlotFunction; } + bool isEmptyFunction() const { return functionType() == EmptyFunction; } + FunctionType functionType() const { return m_function_type; } + void setFunctionType(FunctionType type) { m_function_type = type; } + + bool isVirtual() const { return !(isFinal() || isSignal() || isStatic()); } + QStringList introspectionCompatibleSignatures(const QStringList &resolvedArguments = QStringList()) const; + QString signature() const; + QString targetLangSignature(bool minimal = false) const; + bool shouldReturnThisObject() const { return QLatin1String("this") == argumentReplaced(0); } + bool shouldIgnoreReturnValue() const { return QLatin1String("void") == argumentReplaced(0); } + + bool isConstant() const { return m_constant; } + void setConstant(bool constant) { m_constant = constant; } + + QString exception() const { return m_exception; } + void setException(const QString &exception) { m_exception = exception; } + QString toString() const { return m_name; } + + uint compareTo(const AbstractMetaFunction *other) const; + + bool operator <(const AbstractMetaFunction &a) const; + + AbstractMetaFunction *copy() const; + + QString replacedDefaultExpression(const AbstractMetaClass *cls, int idx) const; + bool removedDefaultExpression(const AbstractMetaClass *cls, int idx) const; + QString conversionRule(TypeSystem::Language language, int idx) const; + QList referenceCounts(const AbstractMetaClass *cls, int idx = -2) const; + + bool nullPointersDisabled(const AbstractMetaClass *cls = 0, int argument_idx = 0) const; + QString nullPointerDefaultValue(const AbstractMetaClass *cls = 0, int argument_idx = 0) const; + + bool resetObjectAfterUse(int argument_idx) const; + + // Returns whether garbage collection is disabled for the argument in any context + bool disabledGarbageCollection(const AbstractMetaClass *cls, int key) const; + + // Returns the ownership rules for the given argument in the given context + TypeSystem::Ownership ownership(const AbstractMetaClass *cls, TypeSystem::Language language, int idx) const; + + bool isVirtualSlot() const; + + QString typeReplaced(int argument_index) const; + bool isRemovedFromAllLanguages(const AbstractMetaClass *) const; + bool isRemovedFrom(const AbstractMetaClass *, TypeSystem::Language language) const; + bool argumentRemoved(int) const; + + QString argumentReplaced(int key) const; + bool needsSuppressUncheckedWarning() const; + + bool hasModifications(const AbstractMetaClass *implementor) const; + FunctionModificationList modifications(const AbstractMetaClass *implementor) const; + + // If this function stems from an interface, this returns the + // interface that declares it. + const AbstractMetaClass *interfaceClass() const { return m_interface_class; } + void setInterfaceClass(const AbstractMetaClass *cl) { m_interface_class = cl; } + + void setPropertySpec(QPropertySpec *spec) { m_property_spec = spec; } + QPropertySpec *propertySpec() const { return m_property_spec; } + +private: + QString m_name; + QString m_original_name; + mutable QString m_cached_minimal_signature; + mutable QString m_cached_modified_name; + + FunctionType m_function_type; + AbstractMetaType *m_type; + const AbstractMetaClass *m_class; + const AbstractMetaClass *m_implementing_class; + const AbstractMetaClass *m_declaring_class; + const AbstractMetaClass *m_interface_class; + QPropertySpec *m_property_spec; + AbstractMetaArgumentList m_arguments; + QString m_exception; + uint m_constant : 1; + uint m_invalid : 1; +}; + + +class AbstractMetaEnumValue +{ +public: + AbstractMetaEnumValue() + : m_value_set(false), m_value(0) + { + } + + int value() const { return m_value; } + void setValue(int value) { m_value_set = true; m_value = value; } + + QString stringValue() const { return m_string_value; } + void setStringValue(const QString &v) { m_string_value = v; } + + QString name() const { return m_name; } + void setName(const QString &name) { m_name = name; } + + bool isValueSet() const { return m_value_set; } + +private: + QString m_name; + QString m_string_value; + + bool m_value_set; + int m_value; +}; + + +class AbstractMetaEnumValueList : public QList +{ +public: + AbstractMetaEnumValue *find(const QString &name) const; +}; + +class AbstractMetaEnum : public AbstractMetaAttributes +{ +public: + AbstractMetaEnum() : m_type_entry(0), m_class(0), m_has_qenums_declaration(false) {} + + AbstractMetaEnumValueList values() const { return m_enum_values; } + void addEnumValue(AbstractMetaEnumValue *enumValue) { m_enum_values << enumValue; } + + QString name() const { return m_type_entry->targetLangName(); } + QString qualifier() const { return m_type_entry->javaQualifier(); } + QString package() const { return m_type_entry->javaPackage(); } + QString fullName() const { return package() + "." + qualifier() + "." + name(); } + + // Has the enum been declared inside a Q_ENUMS() macro in its enclosing class? + void setHasQEnumsDeclaration(bool on) { m_has_qenums_declaration = on; } + bool hasQEnumsDeclaration() const { return m_has_qenums_declaration; } + + EnumTypeEntry *typeEntry() const { return m_type_entry; } + void setTypeEntry(EnumTypeEntry *entry) { m_type_entry = entry; } + + AbstractMetaClass *enclosingClass() const { return m_class; } + void setEnclosingClass(AbstractMetaClass *c) { m_class = c; } + +private: + AbstractMetaEnumValueList m_enum_values; + EnumTypeEntry *m_type_entry; + AbstractMetaClass *m_class; + + uint m_has_qenums_declaration : 1; + uint m_reserved : 31; +}; + +typedef QList AbstractMetaEnumList; + +class AbstractMetaClass : public AbstractMetaAttributes +{ +public: + enum FunctionQueryOption { + Constructors = 0x000001, // Only constructors + //Destructors = 0x000002, // Only destructors. Not included in class. + VirtualFunctions = 0x000004, // Only virtual functions (virtual in both TargetLang and C++) + FinalInTargetLangFunctions = 0x000008, // Only functions that are non-virtual in TargetLang + FinalInCppFunctions = 0x000010, // Only functions that are non-virtual in C++ + ClassImplements = 0x000020, // Only functions implemented by the current class + Inconsistent = 0x000040, // Only inconsistent functions (inconsistent virtualness in TargetLang/C++) + StaticFunctions = 0x000080, // Only static functions + Signals = 0x000100, // Only signals + NormalFunctions = 0x000200, // Only functions that aren't signals + Visible = 0x000400, // Only public and protected functions + ForcedShellFunctions = 0x000800, // Only functions that are overridden to be implemented in the shell class + WasPublic = 0x001000, // Only functions that were originally public + WasProtected = 0x002000, // Only functions that were originally protected + NonStaticFunctions = 0x004000, // No static functions + Empty = 0x008000, // Empty overrides of abstract functions + Invisible = 0x010000, // Only private functions + VirtualInCppFunctions = 0x020000, // Only functions that are virtual in C++ + NonEmptyFunctions = 0x040000, // Only functions with JNI implementations + VirtualInTargetLangFunctions = 0x080000, // Only functions which are virtual in TargetLang + AbstractFunctions = 0x100000, // Only abstract functions + WasVisible = 0x200000, // Only functions that were public or protected in the original code + NotRemovedFromTargetLang = 0x400000, // Only functions that have not been removed from TargetLang + NotRemovedFromShell = 0x800000, // Only functions that have not been removed from the shell class + VirtualSlots = 0x1000000 // Only functions that are set as virtual slots in the type system + }; + + AbstractMetaClass() + : m_namespace(false), + m_qobject(false), + m_has_virtuals(false), + m_has_nonpublic(false), + m_has_virtual_slots(false), + m_has_nonprivateconstructor(false), + m_functions_fixed(false), + m_has_public_destructor(true), + m_force_shell_class(false), + m_has_hash_function(false), + m_has_equals_operator(false), + m_has_clone_operator(false), + m_is_type_alias(false), + m_enclosing_class(0), + m_base_class(0), + m_template_base_class(0), + m_extracted_interface(0), + m_primary_interface_implementor(0), + m_type_entry(0), + m_qDebug_stream_function(0) + { + } + + virtual ~AbstractMetaClass(); + + AbstractMetaClass *extractInterface(); + void fixFunctions(); + + AbstractMetaFunctionList functions() const { return m_functions; } + void setFunctions(const AbstractMetaFunctionList &functions); + void addFunction(AbstractMetaFunction *function); + bool hasFunction(const AbstractMetaFunction *f) const; + bool hasFunction(const QString &str) const; + bool hasSignal(const AbstractMetaFunction *f) const; + + bool hasConstructors() const; + + void addDefaultConstructor(); + + bool hasNonPrivateConstructor() const { return m_has_nonprivateconstructor; } + void setHasNonPrivateConstructor(bool on) { m_has_nonprivateconstructor = on; } + bool hasPublicDestructor() const { return m_has_public_destructor; } + void setHasPublicDestructor(bool on) { m_has_public_destructor = on; } + + QString destructorException() const { return m_destructor_exception; } + void setDestructorException(const QString &exception) { m_destructor_exception = exception; } + AbstractMetaFunctionList queryFunctionsByName(const QString &name) const; + AbstractMetaFunctionList queryFunctions(uint query) const; + inline AbstractMetaFunctionList allVirtualFunctions() const; + inline AbstractMetaFunctionList allFinalFunctions() const; + AbstractMetaFunctionList functionsInTargetLang() const; + AbstractMetaFunctionList functionsInShellClass() const; + inline AbstractMetaFunctionList cppInconsistentFunctions() const; + inline AbstractMetaFunctionList cppSignalFunctions() const; + AbstractMetaFunctionList publicOverrideFunctions() const; + AbstractMetaFunctionList virtualOverrideFunctions() const; + AbstractMetaFunctionList virtualFunctions() const; + AbstractMetaFunctionList nonVirtualShellFunctions() const; + + AbstractMetaFieldList fields() const { return m_fields; } + void setFields(const AbstractMetaFieldList &fields) { m_fields = fields; } + void addField(AbstractMetaField *field) { m_fields << field; } + + AbstractMetaEnumList enums() const { return m_enums; } + void setEnums(const AbstractMetaEnumList &enums) { m_enums = enums; } + void addEnum(AbstractMetaEnum *e) { m_enums << e; } + + AbstractMetaEnum *findEnum(const QString &enumName); + AbstractMetaEnum *findEnumForValue(const QString &enumName); + AbstractMetaEnumValue *findEnumValue(const QString &enumName, AbstractMetaEnum *meta_enum); + + AbstractMetaClassList interfaces() const { return m_interfaces; } + void addInterface(AbstractMetaClass *interface); + void setInterfaces(const AbstractMetaClassList &interface); + + QString fullName() const { return package() + "." + name(); } + QString name() const; + + QString baseClassName() const { return m_base_class ? m_base_class->name() : QString(); } + + AbstractMetaClass *baseClass() const { return m_base_class; } + void setBaseClass(AbstractMetaClass *base_class) { m_base_class = base_class; } + + const AbstractMetaClass *enclosingClass() const { return m_enclosing_class; } + void setEnclosingClass(AbstractMetaClass *cl) { m_enclosing_class = cl; } + + QString package() const { return m_type_entry->javaPackage(); } + bool isInterface() const { return m_type_entry->isInterface(); } + bool isNamespace() const { return m_type_entry->isNamespace(); } + bool isQObject() const { return m_type_entry->isQObject(); } + bool isQtNamespace() const { return isNamespace() && name() == "Qt"; } + QString qualifiedCppName() const { return m_type_entry->qualifiedCppName(); } + + bool hasInconsistentFunctions() const; + bool hasSignals() const; + bool inheritsFrom(const AbstractMetaClass *other) const; + + void setForceShellClass(bool on) { m_force_shell_class = on; } + bool generateShellClass() const; + + bool hasVirtualSlots() const { return m_has_virtual_slots; } + bool hasVirtualFunctions() const { return !isFinal() && m_has_virtuals; } + bool hasProtectedFunctions() const; + + QList templateArguments() const { return m_template_args; } + void setTemplateArguments(const QList &args) { m_template_args = args; } + + bool hasFieldAccessors() const; + + // only valid during metajavabuilder's run + QStringList baseClassNames() const { return m_base_class_names; } + void setBaseClassNames(const QStringList &names) { m_base_class_names = names; } + + AbstractMetaClass *primaryInterfaceImplementor() const { return m_primary_interface_implementor; } + void setPrimaryInterfaceImplementor(AbstractMetaClass *cl) { m_primary_interface_implementor = cl; } + + const ComplexTypeEntry *typeEntry() const { return m_type_entry; } + ComplexTypeEntry *typeEntry() { return m_type_entry; } + void setTypeEntry(ComplexTypeEntry *type) { m_type_entry = type; } + + void setHasHashFunction(bool on) { m_has_hash_function = on; } + bool hasHashFunction() const { return m_has_hash_function; } + + void setToStringCapability(FunctionModelItem fun) { m_qDebug_stream_function= fun; } + FunctionModelItem hasToStringCapability() const { return m_qDebug_stream_function; } + + virtual bool hasDefaultToStringFunction() const; + + void setHasEqualsOperator(bool on) { m_has_equals_operator = on; } + bool hasEqualsOperator() const { return m_has_equals_operator; } + + void setHasCloneOperator(bool on) { m_has_clone_operator = on; } + bool hasCloneOperator() const { return m_has_clone_operator; } + + bool hasDefaultIsNull() const; + void addPropertySpec(QPropertySpec *spec) { m_property_specs << spec; } + QList propertySpecs() const { return m_property_specs; } + + QPropertySpec *propertySpecForRead(const QString &name) const; + QPropertySpec *propertySpecForWrite(const QString &name) const; + QPropertySpec *propertySpecForReset(const QString &name) const; + + QList referenceCounts() const; + + void setEqualsFunctions(const AbstractMetaFunctionList &lst) { m_equals_functions = lst; } + AbstractMetaFunctionList equalsFunctions() const { return m_equals_functions; } + + void setNotEqualsFunctions(const AbstractMetaFunctionList &lst) { m_nequals_functions = lst; } + AbstractMetaFunctionList notEqualsFunctions() const { return m_nequals_functions; } + + void setLessThanFunctions(const AbstractMetaFunctionList &lst) { m_less_than_functions = lst; } + AbstractMetaFunctionList lessThanFunctions() const { return m_less_than_functions; } + + void setGreaterThanFunctions(const AbstractMetaFunctionList &lst) { m_greater_than_functions = lst; } + AbstractMetaFunctionList greaterThanFunctions() const { return m_greater_than_functions; } + + void setLessThanEqFunctions(const AbstractMetaFunctionList &lst) { m_less_than_eq_functions = lst; } + AbstractMetaFunctionList lessThanEqFunctions() const { return m_less_than_eq_functions; } + + void setGreaterThanEqFunctions(const AbstractMetaFunctionList &lst) { m_greater_than_eq_functions = lst; } + AbstractMetaFunctionList greaterThanEqFunctions() const { return m_greater_than_eq_functions; } + + void sortFunctions(); + + const AbstractMetaClass *templateBaseClass() const { return m_template_base_class; } + void setTemplateBaseClass(const AbstractMetaClass *cls) { m_template_base_class = cls; } + + void setTypeAlias(bool typeAlias) { m_is_type_alias = typeAlias; } + bool isTypeAlias() const { return m_is_type_alias; } + bool operator <(const AbstractMetaClass &a) const { + return qualifiedCppName() < a.qualifiedCppName(); + } + +private: + uint m_namespace : 1; + uint m_qobject : 1; + uint m_has_virtuals : 1; + uint m_has_nonpublic : 1; + uint m_has_virtual_slots : 1; + uint m_has_nonprivateconstructor : 1; + uint m_functions_fixed : 1; + uint m_has_public_destructor : 1; + uint m_force_shell_class : 1; + uint m_has_hash_function : 1; + uint m_has_equals_operator : 1; + uint m_has_clone_operator :1; + uint m_is_type_alias : 1; + uint m_reserved : 19; + QString m_destructor_exception; + + const AbstractMetaClass *m_enclosing_class; + AbstractMetaClass *m_base_class; + const AbstractMetaClass *m_template_base_class; + AbstractMetaFunctionList m_functions; + AbstractMetaFieldList m_fields; + AbstractMetaEnumList m_enums; + AbstractMetaClassList m_interfaces; + AbstractMetaClass *m_extracted_interface; + AbstractMetaClass *m_primary_interface_implementor; + QList m_property_specs; + AbstractMetaFunctionList m_equals_functions; + AbstractMetaFunctionList m_nequals_functions; + + AbstractMetaFunctionList m_less_than_functions; + AbstractMetaFunctionList m_greater_than_functions; + AbstractMetaFunctionList m_less_than_eq_functions; + AbstractMetaFunctionList m_greater_than_eq_functions; + + QStringList m_base_class_names; + QList m_template_args; + ComplexTypeEntry *m_type_entry; + FunctionModelItem m_qDebug_stream_function; +}; + +class QPropertySpec { +public: + QPropertySpec(const TypeEntry *type) + : m_type(type), + m_index(-1) + { + } + + const TypeEntry *type() const { return m_type; } + + QString name() const { return m_name; } + void setName(const QString &name) { m_name = name; } + + QString read() const { return m_read; } + void setRead(const QString &read) { m_read = read; } + + QString write() const { return m_write; } + void setWrite(const QString &write) { m_write = write; } + + QString designable() const { return m_designable; } + void setDesignable(const QString &designable) { m_designable = designable; } + + QString reset() const { return m_reset; } + void setReset(const QString &reset) { m_reset = reset; } + + int index() const { return m_index; } + void setIndex(int index) { m_index = index; } + +private: + QString m_name; + QString m_read; + QString m_write; + QString m_designable; + QString m_reset; + const TypeEntry *m_type; + int m_index; +}; + +inline AbstractMetaFunctionList AbstractMetaClass::allVirtualFunctions() const +{ + return queryFunctions(VirtualFunctions + | NotRemovedFromTargetLang); +} + +inline AbstractMetaFunctionList AbstractMetaClass::allFinalFunctions() const +{ + return queryFunctions(FinalInTargetLangFunctions + | FinalInCppFunctions + | NotRemovedFromTargetLang); +} + +inline AbstractMetaFunctionList AbstractMetaClass::cppInconsistentFunctions() const +{ + return queryFunctions(Inconsistent + | NormalFunctions + | Visible + | NotRemovedFromTargetLang); +} + +inline AbstractMetaFunctionList AbstractMetaClass::cppSignalFunctions() const +{ + return queryFunctions(Signals + | Visible + | NotRemovedFromTargetLang); +} + +#endif // ABSTRACTMETALANG_H diff --git a/generator_50/asttoxml.cpp b/generator_50/asttoxml.cpp new file mode 100644 index 00000000..0c351ac7 --- /dev/null +++ b/generator_50/asttoxml.cpp @@ -0,0 +1,177 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "asttoxml.h" +#include "control.h" +#include "parser.h" +#include "binder.h" + + +#include +#include +#include +#include + +void astToXML(QString name) { + QFile file(name); + + if (!file.open(QFile::ReadOnly)) + return; + + QTextStream stream(&file); + stream.setCodec(QTextCodec::codecForName("UTF-8")); + QByteArray contents = stream.readAll().toUtf8(); + file.close(); + + Control control; + Parser p(&control); + pool __pool; + + TranslationUnitAST *ast = p.parse(contents, contents.size(), &__pool); + + CodeModel model; + Binder binder(&model, p.location()); + FileModelItem dom = binder.run(ast); + + QFile outputFile; + if (!outputFile.open(stdout, QIODevice::WriteOnly)) + { + return; + } + + QXmlStreamWriter s( &outputFile); + s.setAutoFormatting( true ); + + s.writeStartElement("code"); + + QHash namespaceMap = dom->namespaceMap(); + foreach (NamespaceModelItem item, namespaceMap.values()) { + writeOutNamespace(s, item); + } + + QHash typeMap = dom->classMap(); + foreach (ClassModelItem item, typeMap.values()) { + writeOutClass(s, item); + } + s.writeEndElement(); +} + + +void writeOutNamespace(QXmlStreamWriter &s, NamespaceModelItem &item) { + s.writeStartElement("namespace"); + s.writeAttribute("name", item->name()); + + QHash namespaceMap = item->namespaceMap(); + foreach (NamespaceModelItem namespaceItem, namespaceMap.values()) { + writeOutNamespace(s, namespaceItem); + } + + QHash typeMap = item->classMap(); + foreach (ClassModelItem classItem, typeMap.values()) { + writeOutClass(s, classItem); + } + + QHash enumMap = item->enumMap(); + foreach (EnumModelItem enumItem, enumMap.values()) { + writeOutEnum(s, enumItem); + } + + s.writeEndElement(); +} + +void writeOutEnum(QXmlStreamWriter &s, EnumModelItem &item) { + QString qualified_name = item->qualifiedName().join("::"); + s.writeStartElement("enum"); + s.writeAttribute("name", qualified_name); + + EnumeratorList enumList = item->enumerators(); + for(int i=0; i < enumList.size() ; i++) { + s.writeStartElement("enumerator"); + if( !enumList[i]->value().isEmpty() ) + s.writeAttribute("value", enumList[i]->value()); + s.writeCharacters(enumList[i]->name()); + + s.writeEndElement(); + } + s.writeEndElement(); +} + +void writeOutFunction(QXmlStreamWriter &s, FunctionModelItem &item) { + QString qualified_name = item->qualifiedName().join("::"); + s.writeStartElement("function"); + s.writeAttribute("name", qualified_name); + + if (!item->exception().isEmpty()) { + s.writeStartElement("exception"); + s.writeAttribute("throw", item->exception()); + s.writeEndElement(); + } + + ArgumentList arguments = item->arguments(); + for(int i=0; i < arguments.size() ; i++) { + s.writeStartElement("argument"); + s.writeAttribute("type", arguments[i]->type().qualifiedName().join("::")); + s.writeEndElement(); + } + s.writeEndElement(); +} + +void writeOutClass(QXmlStreamWriter &s, ClassModelItem &item) { + QString qualified_name = item->qualifiedName().join("::"); + s.writeStartElement("class"); + s.writeAttribute("name", qualified_name); + + QHash enumMap = item->enumMap(); + foreach (EnumModelItem enumItem, enumMap.values()) { + writeOutEnum(s, enumItem); + } + + QHash functionMap = item->functionMap(); + foreach (FunctionModelItem funcItem, functionMap.values()) { + writeOutFunction(s, funcItem); + } + + QHash typeMap = item->classMap(); + foreach (ClassModelItem classItem, typeMap.values()) { + writeOutClass(s, classItem); + } + s.writeEndElement(); +} diff --git a/generator_50/asttoxml.h b/generator_50/asttoxml.h new file mode 100644 index 00000000..7b3e3fcf --- /dev/null +++ b/generator_50/asttoxml.h @@ -0,0 +1,58 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef ASTTOXML +#define ASTTOXML + +#include "codemodel.h" + +#include +#include + +void astToXML(const QString name); +void writeOutNamespace(QXmlStreamWriter &s, NamespaceModelItem &item); +void writeOutEnum(QXmlStreamWriter &s, EnumModelItem &item); +void writeOutFunction(QXmlStreamWriter &s, FunctionModelItem &item); +void writeOutClass(QXmlStreamWriter &s, ClassModelItem &item); + + +#endif // ASTTOXML diff --git a/generator_50/build_all.txt b/generator_50/build_all.txt new file mode 100644 index 00000000..e3cbcd6a --- /dev/null +++ b/generator_50/build_all.txt @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/generator_50/build_core.txt b/generator_50/build_core.txt new file mode 100644 index 00000000..c757e80e --- /dev/null +++ b/generator_50/build_core.txt @@ -0,0 +1,4 @@ + + + + diff --git a/generator_50/build_gui.txt b/generator_50/build_gui.txt new file mode 100644 index 00000000..fa999963 --- /dev/null +++ b/generator_50/build_gui.txt @@ -0,0 +1,4 @@ + + + + diff --git a/generator_50/build_network.txt b/generator_50/build_network.txt new file mode 100644 index 00000000..5cb4750a --- /dev/null +++ b/generator_50/build_network.txt @@ -0,0 +1,4 @@ + + + + diff --git a/generator_50/build_opengl.txt b/generator_50/build_opengl.txt new file mode 100644 index 00000000..477ba840 --- /dev/null +++ b/generator_50/build_opengl.txt @@ -0,0 +1,5 @@ + + + + + diff --git a/generator_50/build_phonon.txt b/generator_50/build_phonon.txt new file mode 100644 index 00000000..dc62d2ef --- /dev/null +++ b/generator_50/build_phonon.txt @@ -0,0 +1,5 @@ + + + + + diff --git a/generator_50/build_sql.txt b/generator_50/build_sql.txt new file mode 100644 index 00000000..3cd2d78a --- /dev/null +++ b/generator_50/build_sql.txt @@ -0,0 +1,5 @@ + + + + + diff --git a/generator_50/build_svg.txt b/generator_50/build_svg.txt new file mode 100644 index 00000000..7ac97d1d --- /dev/null +++ b/generator_50/build_svg.txt @@ -0,0 +1,6 @@ + + + + + + diff --git a/generator_50/build_typesystem.txt b/generator_50/build_typesystem.txt new file mode 100644 index 00000000..34424782 --- /dev/null +++ b/generator_50/build_typesystem.txt @@ -0,0 +1,247 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QList<MetaJavaClass *> &operator=(const QList<MetaJavaClass *> &other) + { + return ((QList<MetaJavaClass *> *)this)->operator=(other); + } + + + + + QList<MetaJavaEnumValue *> &operator=(const QList<MetaJavaEnumValue *> &other) + { + return ((QList<MetaJavaEnumValue *> *)this)->operator=(other); + } + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/build_uitools.txt b/generator_50/build_uitools.txt new file mode 100644 index 00000000..a9472384 --- /dev/null +++ b/generator_50/build_uitools.txt @@ -0,0 +1,5 @@ + + + + + diff --git a/generator_50/build_webkit.txt b/generator_50/build_webkit.txt new file mode 100644 index 00000000..86696b1a --- /dev/null +++ b/generator_50/build_webkit.txt @@ -0,0 +1,6 @@ + + + + + + diff --git a/generator_50/build_xml.txt b/generator_50/build_xml.txt new file mode 100644 index 00000000..c501a863 --- /dev/null +++ b/generator_50/build_xml.txt @@ -0,0 +1,4 @@ + + + + diff --git a/generator_50/build_xmlpatterns.txt b/generator_50/build_xmlpatterns.txt new file mode 100644 index 00000000..564e139f --- /dev/null +++ b/generator_50/build_xmlpatterns.txt @@ -0,0 +1,4 @@ + + + + diff --git a/generator_50/customtypes.cpp b/generator_50/customtypes.cpp new file mode 100644 index 00000000..5438d8e0 --- /dev/null +++ b/generator_50/customtypes.cpp @@ -0,0 +1,69 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "customtypes.h" + +#include "metajava.h" + +#include +#include + + +void QModelIndexTypeEntry::generateCppJavaToQt(QTextStream &s, + const AbstractMetaType *, + const QString &env_name, + const QString &qt_name, + const QString &java_name) const +{ + s << "QModelIndex " << qt_name << " = qtjambi_to_QModelIndex(" << env_name << ", " + << java_name << ")"; +} + + +void QModelIndexTypeEntry::generateCppQtToJava(QTextStream &s, + const AbstractMetaType *, + const QString &env_name, + const QString &qt_name, + const QString &java_name) const +{ + s << "jobject " << java_name << " = qtjambi_from_QModelIndex(" << env_name << ", " + << qt_name << ")"; +} diff --git a/generator_50/customtypes.h b/generator_50/customtypes.h new file mode 100644 index 00000000..aefee00c --- /dev/null +++ b/generator_50/customtypes.h @@ -0,0 +1,74 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef CUSTOMTYPES_H +#define CUSTOMTYPES_H + +#include "typesystem.h" + + +class QModelIndexTypeEntry : public CustomTypeEntry +{ +public: + QModelIndexTypeEntry() : CustomTypeEntry("QModelIndex") + { + setCodeGeneration(GenerateNothing); + } + + virtual QString javaPackage() const { return "com.trolltech.qt.core"; } + + virtual bool isValue() const { return true; } + + virtual void generateCppJavaToQt(QTextStream &s, + const AbstractMetaType *java_type, + const QString &env_name, + const QString &qt_name, + const QString &java_name) const; + + virtual void generateCppQtToJava(QTextStream &s, + const AbstractMetaType *java_type, + const QString &env_name, + const QString &qt_name, + const QString &java_name) const; + +}; + +#endif diff --git a/generator_50/fileout.cpp b/generator_50/fileout.cpp new file mode 100644 index 00000000..c0f78c50 --- /dev/null +++ b/generator_50/fileout.cpp @@ -0,0 +1,238 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "fileout.h" +#include "reporthandler.h" + +#include +#include + +bool FileOut::dummy = false; +bool FileOut::diff = false; +bool FileOut::license = false; + +#ifdef Q_OS_LINUX +const char* colorDelete = "\033[31m"; +const char* colorAdd = "\033[32m"; +const char* colorInfo = "\033[36m"; +const char* colorReset = "\033[0m"; +#else +const char* colorDelete = ""; +const char* colorAdd = ""; +const char* colorInfo = ""; +const char* colorReset = ""; +#endif + +FileOut::FileOut(QString n): + name(n), + stream(&tmp), + isDone(false) +{} + +static int* lcsLength(QList a, QList b) { + const int height = a.size() + 1; + const int width = b.size() + 1; + + int *res = new int[width * height]; + + for (int row=0; row a, QList b){ + { + if (type == Unchanged) { + if ((end - start) > 9) { + for (int i = start; i <= start+2; i++) + printf(" %s\n", a[i].data()); + printf("%s=\n= %d more lines\n=%s\n", colorInfo, end - start - 6, colorReset); + for (int i = end-2; i <= end; i++) + printf(" %s\n", a[i].data()); + } + else + for (int i = start; i <= end; i++) + printf(" %s\n", a[i].data()); + } + else if(type == Add) { + printf("%s", colorAdd); + for (int i = start; i <= end; i++){ + printf("+ %s\n", b[i].data()); + } + printf("%s", colorReset); + } + else if (type == Delete) { + printf("%s", colorDelete); + for (int i = start; i <= end; i++) { + printf("- %s\n", a[i].data()); + } + printf("%s", colorReset); + } + } + } +}; + +static QList *unitAppend(QList *res, Type type, int pos) +{ + if (res == 0) { + res = new QList; + res->append(new Unit(type, pos)); + return res; + } + + Unit *last = res->last(); + if (last->type == type) { + last->end = pos; + } else { + res->append(new Unit(type, pos)); + } + return res; +} + +static QList *diffHelper(int *lcs, QList a, QList b, int row, int col) { + if (row>0 && col>0 && (a[row-1] == b[col-1])) { + return unitAppend(diffHelper(lcs, a, b, row-1, col-1), Unchanged, row-1); + } + else { + int width = b.size()+1; + if ((col > 0) && ((row==0) || + lcs[width * row + col-1] >= lcs[width * (row-1) + col])) + { + return unitAppend(diffHelper(lcs, a, b, row, col-1), Add, col-1); + } + else if((row > 0) && ((col==0) || + lcs[width * row + col-1] < lcs[width * (row-1) + col])){ + return unitAppend(diffHelper(lcs, a, b, row-1, col), Delete, row-1);; + } + } + delete lcs; + return 0; +} + +static void diff(QList a, QList b) { + QList *res = diffHelper(lcsLength(a, b), a, b, a.size(), b.size()); + for (int i=0; i < res->size(); i++) { + Unit *unit = res->at(i); + unit->print(a, b); + delete(unit); + } + delete(res); +} + + +bool FileOut::done() { + Q_ASSERT( !isDone ); + isDone = true; + bool fileEqual = false; + QFile fileRead(name); + QFileInfo info(fileRead); + stream.flush(); + QByteArray original; + if (info.exists() && (diff || (info.size() == tmp.size()))) { + if ( !fileRead.open(QIODevice::ReadOnly) ) { + ReportHandler::warning(QString("failed to open file '%1' for reading") + .arg(fileRead.fileName())); + return false; + } + + original = fileRead.readAll(); + fileRead.close(); + fileEqual = (original == tmp); + } + + if( !fileEqual ) { + if( !FileOut::dummy ) { + QDir dir(info.absolutePath()); + if (!dir.mkpath(dir.absolutePath())) { + ReportHandler::warning(QString("unable to create directory '%1'") + .arg(dir.absolutePath())); + return false; + } + + QFile fileWrite(name); + if (!fileWrite.open(QIODevice::WriteOnly)) { + ReportHandler::warning(QString("failed to open file '%1' for writing") + .arg(fileWrite.fileName())); + return false; + } + stream.setDevice(&fileWrite); + stream << tmp; + } + if (diff) { + printf("%sFile: %s%s\n", colorInfo, qPrintable(name), colorReset); + + ::diff(original.split('\n'), tmp.split('\n')); + + printf("\n"); + } + return true; + } + return false; +} diff --git a/generator_50/fileout.h b/generator_50/fileout.h new file mode 100644 index 00000000..cec3fade --- /dev/null +++ b/generator_50/fileout.h @@ -0,0 +1,77 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef FILEOUT_H +#define FILEOUT_H + +#include +#include +#include + +class FileOut : public QObject +{ + Q_OBJECT + +private: + QByteArray tmp; + QString name; + +public: + FileOut(QString name); + ~FileOut() + { + if( !isDone ) + done(); + } + + bool done(); + + QTextStream stream; + + static bool dummy; + static bool diff; + static bool license; + + private: + bool isDone; +}; + +#endif // FILEOUT_H diff --git a/generator_50/generate.sh b/generator_50/generate.sh new file mode 100755 index 00000000..c49fbe08 --- /dev/null +++ b/generator_50/generate.sh @@ -0,0 +1,21 @@ +xsltproc --stringparam source $PWD/typesystem_core-qtscript.xml merge.xsl typesystem_core-common.xml > typesystem_core.xml + +xsltproc --stringparam source $PWD/typesystem_gui-qtscript.xml merge.xsl typesystem_gui-common.xml > typesystem_gui.xml + +xsltproc --stringparam source $PWD/typesystem_svg-qtscript.xml merge.xsl typesystem_svg-common.xml > typesystem_svg.xml + +xsltproc --stringparam source $PWD/typesystem_network-qtscript.xml merge.xsl typesystem_network-common.xml > typesystem_network.xml + +xsltproc --stringparam source $PWD/typesystem_opengl-qtscript.xml merge.xsl typesystem_opengl-common.xml > typesystem_opengl.xml + +xsltproc --stringparam source $PWD/typesystem_xml-qtscript.xml merge.xsl typesystem_xml-common.xml > typesystem_xml.xml + +xsltproc --stringparam source $PWD/typesystem_sql-qtscript.xml merge.xsl typesystem_sql-common.xml > typesystem_sql.xml + +xsltproc --stringparam source $PWD/typesystem_phonon-qtscript.xml merge.xsl typesystem_phonon-common.xml > typesystem_phonon.xml + +xsltproc --stringparam source $PWD/typesystem_webkit-qtscript.xml merge.xsl typesystem_webkit-common.xml > typesystem_webkit.xml + +xsltproc --stringparam source $PWD/typesystem_xmlpatterns-qtscript.xml merge.xsl typesystem_xmlpatterns-common.xml > typesystem_xmlpatterns.xml + +# ./generator qtscript_masterinclude.h typesystem_core.xml --diff diff --git a/generator_50/generator.cpp b/generator_50/generator.cpp new file mode 100644 index 00000000..d170726d --- /dev/null +++ b/generator_50/generator.cpp @@ -0,0 +1,142 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "generator.h" +#include "reporthandler.h" +#include "fileout.h" + +#include +#include +#include + +Generator::Generator() +{ + m_num_generated = 0; + m_num_generated_written = 0; + m_out_dir = "."; +} + +void Generator::generate() +{ + if (m_classes.size() == 0) { + ReportHandler::warning(QString("%1: no java classes, skipping") + .arg(metaObject()->className())); + return; + } + + qStableSort(m_classes); + + foreach (AbstractMetaClass *cls, m_classes) { + if (!shouldGenerate(cls)) + continue; + + QString fileName = fileNameForClass(cls); + ReportHandler::debugSparse(QString("generating: %1").arg(fileName)); + + FileOut fileOut(outputDirectory() + "/" + subDirectoryForClass(cls) + "/" + fileName); + write(fileOut.stream, cls); + + if( fileOut.done() ) + ++m_num_generated_written; + ++m_num_generated; + } +} + + +void Generator::printClasses() +{ + QTextStream s(stdout); + + AbstractMetaClassList classes = m_classes; + qSort(classes); + + foreach (AbstractMetaClass *cls, classes) { + if (!shouldGenerate(cls)) + continue; + write(s, cls); + s << endl << endl; + } +} + +void Generator::verifyDirectoryFor(const QFile &file) +{ + QDir dir = QFileInfo(file).dir(); + if (!dir.exists()) { + if (!dir.mkpath(dir.absolutePath())) + ReportHandler::warning(QString("unable to create directory '%1'") + .arg(dir.absolutePath())); + } +} + +QString Generator::subDirectoryForClass(const AbstractMetaClass *) const +{ + Q_ASSERT(false); + return QString(); +} + +QString Generator::fileNameForClass(const AbstractMetaClass *) const +{ + Q_ASSERT(false); + return QString(); +} + +void Generator::write(QTextStream &, const AbstractMetaClass *) +{ + Q_ASSERT(false); +} + +bool Generator::hasDefaultConstructor(const AbstractMetaType *type) +{ + QString full_name = type->typeEntry()->qualifiedTargetLangName(); + QString class_name = type->typeEntry()->targetLangName(); + + foreach (const AbstractMetaClass *java_class, m_classes) { + if (java_class->typeEntry()->qualifiedTargetLangName() == full_name) { + AbstractMetaFunctionList functions = java_class->functions(); + foreach (const AbstractMetaFunction *function, functions) { + if (function->arguments().size() == 0 && function->name() == class_name) + return true; + } + return false; + } + } + return false; +} diff --git a/generator_50/generator.h b/generator_50/generator.h new file mode 100644 index 00000000..49b9cc28 --- /dev/null +++ b/generator_50/generator.h @@ -0,0 +1,165 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef GENERATOR_H +#define GENERATOR_H + +#include "metajava.h" +#include "typesystem.h" + +#include "codemodel.h" + +#include +#include + +class Generator : public QObject +{ + Q_OBJECT + + Q_PROPERTY(QString outputDirectory READ outputDirectory WRITE setOutputDirectory); + +public: + enum Option { + NoOption = 0x00000000, + BoxedPrimitive = 0x00000001, + ExcludeConst = 0x00000002, + ExcludeReference = 0x00000004, + UseNativeIds = 0x00000008, + + EnumAsInts = 0x00000010, + SkipName = 0x00000020, + NoCasts = 0x00000040, + SkipReturnType = 0x00000080, + OriginalName = 0x00000100, + ShowStatic = 0x00000200, + UnderscoreSpaces = 0x00000400, + ForceEnumCast = 0x00000800, + ArrayAsPointer = 0x00001000, + VirtualCall = 0x00002000, + SkipTemplateParameters = 0x00004000, + SkipAttributes = 0x00008000, + OriginalTypeDescription = 0x00010000, + SkipRemovedArguments = 0x00020000, + IncludeDefaultExpression = 0x00040000, + NoReturnStatement = 0x00080000, + NoBlockedSlot = 0x00100000, + + SuperCall = 0x00200000, + // These 2 are added for PythonQt + FirstArgIsWrappedObject = 0x00400000, + ConvertReferenceToPtr = 0x00800000, + + GlobalRefJObject = 0x00100000, + + ForceValueType = ExcludeReference | ExcludeConst + }; + + Generator(); + + void setClasses(const AbstractMetaClassList &classes) { m_classes = classes; } + AbstractMetaClassList classes() const { return m_classes; } + + QString outputDirectory() const { return m_out_dir; } + void setOutputDirectory(const QString &outDir) { m_out_dir = outDir; } + virtual void generate(); + void printClasses(); + + int numGenerated() { return m_num_generated; } + int numGeneratedAndWritten() { return m_num_generated_written; } + + virtual bool shouldGenerate(const AbstractMetaClass *) const { return true; } + virtual QString subDirectoryForClass(const AbstractMetaClass *java_class) const; + virtual QString fileNameForClass(const AbstractMetaClass *java_class) const; + virtual void write(QTextStream &s, const AbstractMetaClass *java_class); + + bool hasDefaultConstructor(const AbstractMetaType *type); + + // QtScript + void setQtMetaTypeDeclaredTypeNames(const QSet &names) + { m_qmetatype_declared_typenames = names; } + QSet qtMetaTypeDeclaredTypeNames() const + { return m_qmetatype_declared_typenames; } + +protected: + void verifyDirectoryFor(const QFile &file); + + AbstractMetaClassList m_classes; + int m_num_generated; + int m_num_generated_written; + QString m_out_dir; + + // QtScript + QSet m_qmetatype_declared_typenames; +}; + +class Indentor { +public: + Indentor(): + indent(0) + {} + int indent; +}; + +class Indentation { +public: + Indentation(Indentor &indentor): + indentor(indentor) + { + indentor.indent++; + } + ~Indentation() + { + indentor.indent--; + } + +private: + Indentor &indentor; +}; + +inline QTextStream &operator <<(QTextStream &s, const Indentor &indentor) +{ + for (int i=0; i + +qtscript_masterinclude.h +build_all.txt +typesystem_core.xml +typesystem_gui.xml +typesystem_sql.xml +typesystem_opengl.xml +typesystem_svg.xml +typesystem_network.xml +typesystem_xml.xml +typesystem_phonon.xml +typesystem_webkit.xml +typesystem_xmlpatterns.xml +parser/rpp/pp-qt-configuration + + diff --git a/generator_50/generator_50.pri b/generator_50/generator_50.pri new file mode 100644 index 00000000..c8a651a0 --- /dev/null +++ b/generator_50/generator_50.pri @@ -0,0 +1,72 @@ +isEmpty(GENERATORPATH):GENERATORPATH = $$PWD +INCLUDEPATH += $$GENERATORPATH + +TEMPLATE = app +TARGET += +DEPENDPATH += $$GENERATORPATH tests parser +mac:CONFIG -= app_bundle +INCLUDEPATH += $$GENERATORPATH/. +INCLUDEPATH += $$GENERATORPATH/../common + +unix:CONFIG += debug_and_release + +CONFIG += console +RESOURCES += generator.qrc + +include($$GENERATORPATH/parser/rxx.pri) + +include($$GENERATORPATH/parser/rpp/rpp.pri) + +win32-msvc2005:{ + QMAKE_CXXFLAGS += -wd4996 + QMAKE_CFLAGS += -wd4996 +} + +# Input +HEADERS += \ + $$GENERATORPATH/generator.h \ + $$GENERATORPATH/main.h \ + $$GENERATORPATH/reporthandler.h \ + $$GENERATORPATH/typeparser.h \ + $$GENERATORPATH/typesystem.h \ + $$GENERATORPATH/asttoxml.h \ + $$GENERATORPATH/fileout.h \ + $$GENERATORPATH/generatorset.h \ + $$GENERATORPATH/metajava.h \ + $$GENERATORPATH/customtypes.h \ + $$GENERATORPATH/abstractmetabuilder.h \ + $$GENERATORPATH/abstractmetalang.h \ + $$GENERATORPATH/prigenerator.h \ + + + + +SOURCES += \ + $$GENERATORPATH/generator.cpp \ + $$GENERATORPATH/main.cpp \ + $$GENERATORPATH/reporthandler.cpp \ + $$GENERATORPATH/typeparser.cpp \ + $$GENERATORPATH/typesystem.cpp \ + $$GENERATORPATH/asttoxml.cpp \ + $$GENERATORPATH/fileout.cpp \ + $$GENERATORPATH/generatorset.cpp \ + $$GENERATORPATH/metajava.cpp \ + $$GENERATORPATH/customtypes.cpp \ + $$GENERATORPATH/abstractmetabuilder.cpp \ + $$GENERATORPATH/abstractmetalang.cpp \ + $$GENERATORPATH/prigenerator.cpp \ + + + +QT = core xml + +win32-msvc.net { + QMAKE_CXXFLAGS += /Zm500 + QMAKE_CXXFLAGS -= -Zm200 + QMAKE_CFLAGS -= -Zm200 +} + +mac { + contains(QT_CONFIG, x86):contains(QT_CONFIG, ppc):CONFIG += x86 ppc + CONFIG -= precompile_header +} diff --git a/generator_50/generator_50.pro b/generator_50/generator_50.pro new file mode 100644 index 00000000..8bca2fb7 --- /dev/null +++ b/generator_50/generator_50.pro @@ -0,0 +1,26 @@ +TARGET = pythonqt_generator +CONFIG -= debug +CONFIG += release +DESTDIR = . + +include(generator_50.pri) + + +# Input +HEADERS += \ + generatorsetqtscript.h \ + metaqtscriptbuilder.h \ + metaqtscript.h \ + shellgenerator.h \ + shellimplgenerator.h \ + shellheadergenerator.h \ + setupgenerator.h + +SOURCES += \ + generatorsetqtscript.cpp \ + metaqtscriptbuilder.cpp \ + metaqtscript.cpp \ + shellgenerator.cpp \ + shellimplgenerator.cpp \ + shellheadergenerator.cpp \ + setupgenerator.cpp diff --git a/generator_50/generatorset.cpp b/generator_50/generatorset.cpp new file mode 100644 index 00000000..bace7a07 --- /dev/null +++ b/generator_50/generatorset.cpp @@ -0,0 +1,57 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "generatorset.h" + +GeneratorSet::GeneratorSet() : + outDir(".."), + printStdout(false) +{} + +bool GeneratorSet::readParameters(const QMap args) { + if (args.contains("output-directory")) { + outDir = args.value("output-directory"); + } + + printStdout = args.contains("print-stdout"); + + return !(args.contains("help") || args.contains("h") || args.contains("?")); +} diff --git a/generator_50/generatorset.h b/generator_50/generatorset.h new file mode 100644 index 00000000..069835e9 --- /dev/null +++ b/generator_50/generatorset.h @@ -0,0 +1,68 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef GENERATOR_SET_H +#define GENERATOR_SET_H + +#include +#include +#include +#include + +class GeneratorSet : public QObject +{ + Q_OBJECT + + public: + GeneratorSet(); + + virtual QString usage() = 0; + virtual bool readParameters(const QMap args) = 0; + virtual void buildModel(const QString pp_file) = 0; + virtual void dumpObjectTree() = 0; + virtual QString generate() = 0; + + static GeneratorSet *getInstance(); + QString outDir; + bool printStdout; +}; + +#endif // GENERATOR_SET_H diff --git a/generator_50/generatorsetqtscript.cpp b/generator_50/generatorsetqtscript.cpp new file mode 100644 index 00000000..abedf346 --- /dev/null +++ b/generator_50/generatorsetqtscript.cpp @@ -0,0 +1,123 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "generatorsetqtscript.h" +#include "reporthandler.h" +#include "shellheadergenerator.h" +#include "shellimplgenerator.h" + +GeneratorSet *GeneratorSet::getInstance() { + return new GeneratorSetQtScript(); +} + +GeneratorSetQtScript::GeneratorSetQtScript() +{} + +QString GeneratorSetQtScript::usage() { + QString usage = + "QtScript:\n" + " --nothing-to-report-yet \n"; + + return usage; +} + +bool GeneratorSetQtScript::readParameters(const QMap args) { + return GeneratorSet::readParameters(args); +} + +void GeneratorSetQtScript::buildModel(const QString pp_file) { + // Building the code inforamation... + ReportHandler::setContext("MetaJavaBuilder"); + builder.setFileName(pp_file); + builder.build(); +} + +void GeneratorSetQtScript::dumpObjectTree() { + +} + +QString GeneratorSetQtScript::generate() { + AbstractMetaClassList classes = builder.classesTopologicalSorted(); + QSet declaredTypeNames = builder.qtMetaTypeDeclaredTypeNames(); + + PriGenerator priGenerator; + priGenerator.setOutputDirectory(outDir); + + SetupGenerator setupGenerator; + setupGenerator.setOutputDirectory(outDir); + setupGenerator.setQtMetaTypeDeclaredTypeNames(declaredTypeNames); + setupGenerator.setClasses(classes); + + ShellImplGenerator shellImplGenerator(&priGenerator); + shellImplGenerator.setOutputDirectory(outDir); + shellImplGenerator.setClasses(classes); + shellImplGenerator.setQtMetaTypeDeclaredTypeNames(declaredTypeNames); + shellImplGenerator.generate(); + + ShellHeaderGenerator shellHeaderGenerator(&priGenerator, &setupGenerator); + shellHeaderGenerator.setOutputDirectory(outDir); + shellHeaderGenerator.setClasses(classes); + shellHeaderGenerator.generate(); + + priGenerator.generate(); + setupGenerator.generate(); + + return QString("Classes in typesystem: %1\n" + "Generated:\n" + " - header....: %4 (%5)\n" + " - impl......: %6 (%7)\n" + " - modules...: %8 (%9)\n" + " - pri.......: %10 (%11)\n" + ) + .arg(builder.classes().size()) + + .arg(shellHeaderGenerator.numGenerated()) + .arg(shellHeaderGenerator.numGeneratedAndWritten()) + + .arg(shellImplGenerator.numGenerated()) + .arg(shellImplGenerator.numGeneratedAndWritten()) + + .arg(setupGenerator.numGenerated()) + .arg(setupGenerator.numGeneratedAndWritten()) + + .arg(priGenerator.numGenerated()) + .arg(priGenerator.numGeneratedAndWritten()); +} diff --git a/generator_50/generatorsetqtscript.h b/generator_50/generatorsetqtscript.h new file mode 100644 index 00000000..55795e48 --- /dev/null +++ b/generator_50/generatorsetqtscript.h @@ -0,0 +1,68 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef GENERATOR_SET_QT_SCRIPT_H +#define GENERATOR_SET_QT_SCRIPT_H + +#include "generatorset.h" +#include "metaqtscriptbuilder.h" + +class GeneratorSetQtScript : public GeneratorSet +{ + Q_OBJECT + +public: + GeneratorSetQtScript(); + + QString usage(); + bool readParameters(const QMap args); + + void buildModel(const QString pp_file); + void dumpObjectTree(); + + QString generate( ); + +private: + MetaQtScriptBuilder builder; + +}; + +#endif // GENERATOR_SET_QT_SCRIPT_H diff --git a/generator_50/main.cpp b/generator_50/main.cpp new file mode 100644 index 00000000..9961665f --- /dev/null +++ b/generator_50/main.cpp @@ -0,0 +1,188 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "main.h" +#include "asttoxml.h" +#include "reporthandler.h" +#include "typesystem.h" +#include "generatorset.h" +#include "fileout.h" + +#include + +void displayHelp(GeneratorSet *generatorSet); + +#include +int main(int argc, char *argv[]) +{ + GeneratorSet *gs = GeneratorSet::getInstance(); + + QString default_file = ":/trolltech/generator/qtscript_masterinclude.h"; + QString default_system = ":/trolltech/generator/build_all.txt"; + + QString fileName; + QString typesystemFileName; + QString pp_file = ".preprocessed.tmp"; + QStringList rebuild_classes; + + QMap args; + + int argNum = 0; + for (int i=1; i 0 ) + args[arg.mid(2).left(split-2)] = arg.mid(split + 1).trimmed(); + else + args[arg.mid(2)] = QString(); + } else if( arg.startsWith("-")) { + args[arg.mid(1)] = QString(); + } else { + argNum++; + args[QString("arg-%1").arg(argNum)] = arg; + } + } + + if (args.contains("no-suppress-warnings")) { + TypeDatabase *db = TypeDatabase::instance(); + db->setSuppressWarnings(false); + } + + if (args.contains("debug-level")) { + QString level = args.value("debug-level"); + if (level == "sparse") + ReportHandler::setDebugLevel(ReportHandler::SparseDebug); + else if (level == "medium") + ReportHandler::setDebugLevel(ReportHandler::MediumDebug); + else if (level == "full") + ReportHandler::setDebugLevel(ReportHandler::FullDebug); + } + + if (args.contains("dummy")) { + FileOut::dummy = true; + } + + if (args.contains("diff")) { + FileOut::diff = true; + } + + if (args.contains("license")) + FileOut::license = true; + + if (args.contains("rebuild-only")) { + QStringList classes = args.value("rebuild-only").split(",", QString::SkipEmptyParts); + TypeDatabase::instance()->setRebuildClasses(classes); + } + + fileName = args.value("arg-1"); + + typesystemFileName = args.value("arg-2"); + if (args.contains("arg-3")) + displayHelp(gs); + + if (fileName.isEmpty()) + fileName = default_file; + + if (typesystemFileName.isEmpty()) + typesystemFileName = default_system; + + if (fileName.isEmpty() || typesystemFileName.isEmpty() ) + displayHelp(gs); + + if (!gs->readParameters(args)) + displayHelp(gs); + + printf("Please wait while source files are being generated...\n"); + + printf("Parsing typesystem file [%s]\n", qPrintable(typesystemFileName)); + if (!TypeDatabase::instance()->parseFile(typesystemFileName)) + qFatal("Cannot parse file: '%s'", qPrintable(typesystemFileName)); + + printf("PreProcessing - Generate [%s] using [%s] and include-paths [%s]\n", + qPrintable(pp_file), qPrintable(fileName), qPrintable(args.value("include-paths"))); + if (!Preprocess::preprocess(fileName, pp_file, args.value("include-paths"))) { + fprintf(stderr, "Preprocessor failed on file: '%s'\n", qPrintable(fileName)); + return 1; + } + + if (args.contains("ast-to-xml")) { + printf("Running ast-to-xml on file [%s] using pp_file [%s] and include-paths [%s]\n", + qPrintable(fileName), qPrintable(pp_file), qPrintable(args.value("include-paths"))); + astToXML(pp_file); + return 0; + } + + printf("Building model using [%s]\n", qPrintable(pp_file)); + gs->buildModel(pp_file); + if (args.contains("dump-object-tree")) { + gs->dumpObjectTree(); + return 0; + } + printf("%s\n", qPrintable(gs->generate())); + + printf("Done, %d warnings (%d known issues)\n", ReportHandler::warningCount(), + ReportHandler::suppressedCount()); +} + + +void displayHelp(GeneratorSet* generatorSet) { +#if defined(Q_OS_WIN32) + char path_splitter = ';'; +#else + char path_splitter = ':'; +#endif + printf("Usage:\n generator [options] header-file typesystem-file\n\n"); + printf("Available options:\n\n"); + printf("General:\n"); + printf(" --debug-level=[sparse|medium|full] \n" + " --dump-object-tree \n" + " --help, -h or -? \n" + " --no-suppress-warnings \n" + " --output-directory=[dir] \n" + " --include-paths=[%c%c...] \n" + " --print-stdout \n", + path_splitter, path_splitter); + + printf("%s", qPrintable( generatorSet->usage())); + exit(0); +} diff --git a/generator_50/main.h b/generator_50/main.h new file mode 100644 index 00000000..bc9334ef --- /dev/null +++ b/generator_50/main.h @@ -0,0 +1,145 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef MAIN_H +#define MAIN_H + +#include "pp.h" + +#include +#include + +struct Preprocess +{ + static bool preprocess(const QString &sourceFile, const QString &targetFile, const QString &commandLineIncludes = QString()) + { + rpp::pp_environment env; + rpp::pp preprocess(env); + + rpp::pp_null_output_iterator null_out; + + const char *ppconfig = ":/trolltech/generator/parser/rpp/pp-qt-configuration"; + + QFile file(ppconfig); + if (!file.open(QFile::ReadOnly)) { + fprintf(stderr, "Preprocessor configuration file not found '%s'\n", ppconfig); + return false; + } + + QByteArray ba = file.readAll(); + file.close(); + preprocess.operator() (ba.constData(), ba.constData() + ba.size(), null_out); + + QStringList includes; + includes << QString("."); + +#if defined(Q_OS_WIN32) + char *path_splitter = ";"; +#else + const char *path_splitter = ":"; +#endif + + // Environment INCLUDE + QString includePath = getenv("INCLUDE"); + if (!includePath.isEmpty()) + includes += includePath.split(path_splitter); + + // Includes from the command line + if (!commandLineIncludes.isEmpty()) + includes += commandLineIncludes.split(path_splitter); + + // Include Qt + QString qtdir = getenv ("QTDIR"); + if (qtdir.isEmpty()) { +#if defined(Q_OS_MAC) + qWarning("QTDIR environment variable not set. Assuming standard binary install using frameworks."); + QString frameworkDir = "/Library/Frameworks"; + includes << (frameworkDir + "/QtXml.framework/Headers"); + includes << (frameworkDir + "/QtNetwork.framework/Headers"); + includes << (frameworkDir + "/QtCore.framework/Headers"); + includes << (frameworkDir + "/QtGui.framework/Headers"); + includes << (frameworkDir + "/QtOpenGL.framework/Headers"); + includes << frameworkDir; +#else + qWarning("QTDIR environment variable not set. This may cause problems with finding the necessary include files."); +#endif + } else { + qtdir += "/include"; + includes << (qtdir + "/QtXml"); + includes << (qtdir + "/QtNetwork"); + includes << (qtdir + "/QtCore"); + includes << (qtdir + "/QtGui"); + includes << (qtdir + "/QtOpenGL"); + includes << qtdir; + } + + foreach (QString include, includes) { + preprocess.push_include_path(QDir::toNativeSeparators(include).toStdString()); + } + + QString currentDir = QDir::current().absolutePath(); + QFileInfo sourceInfo(sourceFile); + QDir::setCurrent(sourceInfo.absolutePath()); + + std::string result; + result.reserve (20 * 1024); // 20K + + result += "# 1 \"builtins\"\n"; + result += "# 1 \""; + result += sourceFile.toStdString(); + result += "\"\n"; + + preprocess.file (sourceInfo.fileName().toStdString(), + rpp::pp_output_iterator (result)); + + QDir::setCurrent(currentDir); + + QFile f(targetFile); + if (!f.open(QIODevice::WriteOnly | QIODevice::Text)) { + fprintf(stderr, "Failed to write preprocessed file: %s\n", qPrintable(targetFile)); + } + f.write(result.c_str(), result.length()); + + return true; + } +}; + +#endif // MAIN_H diff --git a/generator_50/merge.sh b/generator_50/merge.sh new file mode 100644 index 00000000..1c7d8ab3 --- /dev/null +++ b/generator_50/merge.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +xsltproc -o typesystem_core.xml --stringparam source 'typesystem_core-qtscript.xml' merge.xsl typesystem_core-common.xml +xsltproc -o typesystem_gui.xml --stringparam source 'typesystem_gui-qtscript.xml' merge.xsl typesystem_gui-common.xml +xsltproc -o typesystem_opengl.xml --stringparam source 'typesystem_opengl-qtscript.xml' merge.xsl typesystem_opengl-common.xml +xsltproc -o typesystem_network.xml --stringparam source 'typesystem_network-qtscript.xml' merge.xsl typesystem_network-common.xml +xsltproc -o typesystem_xml.xml --stringparam source 'typesystem_xml-qtscript.xml' merge.xsl typesystem_xml-common.xml +xsltproc -o typesystem_webkit.xml --stringparam source 'typesystem_webkit-qtscript.xml' merge.xsl typesystem_webkit-common.xml +xsltproc -o typesystem_sql.xml --stringparam source 'typesystem_sql-qtscript.xml' merge.xsl typesystem_sql-common.xml +xsltproc -o typesystem_svg.xml --stringparam source 'typesystem_svg-qtscript.xml' merge.xsl typesystem_svg-common.xml +xsltproc -o typesystem_xmlpatterns.xml --stringparam source 'typesystem_xmlpatterns-qtscript.xml' merge.xsl typesystem_xmlpatterns-common.xml \ No newline at end of file diff --git a/generator_50/merge.xsl b/generator_50/merge.xsl new file mode 100644 index 00000000..d0b7eafa --- /dev/null +++ b/generator_50/merge.xsl @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/metajava.cpp b/generator_50/metajava.cpp new file mode 100644 index 00000000..2750ae6d --- /dev/null +++ b/generator_50/metajava.cpp @@ -0,0 +1,42 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "metajava.h" diff --git a/generator_50/metajava.h b/generator_50/metajava.h new file mode 100644 index 00000000..6fb8e47a --- /dev/null +++ b/generator_50/metajava.h @@ -0,0 +1,79 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef METAJAVA_H +#define METAJAVA_H + +#include "abstractmetalang.h" + +class MetaJavaClass; +class MetaJavaField; +class MetaJavaFunction; +class MetaJavaType; +class MetaJavaVariable; +class MetaJavaArgument; +class MetaJavaEnumValue; +class MetaJavaEnum; + + + +class MetaJavaType : public AbstractMetaType +{}; + +class MetaJavaArgument : public AbstractMetaArgument +{}; + +class MetaJavaField : public AbstractMetaField +{}; + +class MetaJavaFunction : public AbstractMetaFunction +{}; + +class MetaJavaEnumValue : public AbstractMetaEnumValue +{}; + +class MetaJavaEnum : public AbstractMetaEnum +{}; + +class MetaJavaClass : public AbstractMetaClass +{}; + +#endif // METAJAVA_H diff --git a/generator_50/metaqtscript.cpp b/generator_50/metaqtscript.cpp new file mode 100644 index 00000000..6d9b6a65 --- /dev/null +++ b/generator_50/metaqtscript.cpp @@ -0,0 +1,48 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "metaqtscript.h" + + +bool MetaQtScriptClass::hasDefaultToStringFunction() const +{ + return AbstractMetaClass::hasDefaultToStringFunction(); +} diff --git a/generator_50/metaqtscript.h b/generator_50/metaqtscript.h new file mode 100644 index 00000000..c1e93fe9 --- /dev/null +++ b/generator_50/metaqtscript.h @@ -0,0 +1,81 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef METAQTSCRIPT_H +#define METAQTSCRIPT_H + +#include "abstractmetalang.h" + +class MetaQtScriptClass; +class MetaQtScriptField; +class MetaQtScriptFunction; +class MetaQtScriptType; +class MetaQtScriptVariable; +class MetaQtScriptArgument; +class MetaQtScriptEnumValue; +class MetaQtScriptEnum; + + + +class MetaQtScriptType : public AbstractMetaType +{}; + +class MetaQtScriptArgument : public AbstractMetaArgument +{}; + +class MetaQtScriptField : public AbstractMetaField +{}; + +class MetaQtScriptFunction : public AbstractMetaFunction +{}; + +class MetaQtScriptEnumValue : public AbstractMetaEnumValue +{}; + +class MetaQtScriptEnum : public AbstractMetaEnum +{}; + +class MetaQtScriptClass : public AbstractMetaClass +{ + virtual bool hasDefaultToStringFunction() const; +}; + +#endif // METAQTSCRIPT_H diff --git a/generator_50/metaqtscriptbuilder.cpp b/generator_50/metaqtscriptbuilder.cpp new file mode 100644 index 00000000..7c9e107b --- /dev/null +++ b/generator_50/metaqtscriptbuilder.cpp @@ -0,0 +1,43 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "metaqtscriptbuilder.h" + diff --git a/generator_50/metaqtscriptbuilder.h b/generator_50/metaqtscriptbuilder.h new file mode 100644 index 00000000..f2ee35a7 --- /dev/null +++ b/generator_50/metaqtscriptbuilder.h @@ -0,0 +1,89 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef METAQTSCRIPTBUILDER_H +#define METAQTSCRIPTBUILDER_H + +#include "abstractmetabuilder.h" +#include "metaqtscript.h" + +class MetaQtScriptBuilder : public AbstractMetaBuilder +{ + + protected: + virtual MetaQtScriptClass *createMetaClass() + { + return new MetaQtScriptClass(); + }; + + virtual MetaQtScriptEnum *createMetaEnum() + { + return new MetaQtScriptEnum(); + }; + + virtual MetaQtScriptEnumValue *createMetaEnumValue() + { + return new MetaQtScriptEnumValue(); + }; + + virtual MetaQtScriptField *createMetaField() + { + return new MetaQtScriptField(); + }; + + virtual MetaQtScriptFunction *createMetaFunction() + { + return new MetaQtScriptFunction(); + }; + + virtual MetaQtScriptArgument *createMetaArgument() + { + return new MetaQtScriptArgument(); + }; + + virtual MetaQtScriptType *createMetaType() + { + return new MetaQtScriptType(); + }; + +}; + +#endif // METAQTSCRIPTBUILDER_H diff --git a/generator_50/parser/ast.cpp b/generator_50/parser/ast.cpp new file mode 100644 index 00000000..55357304 --- /dev/null +++ b/generator_50/parser/ast.cpp @@ -0,0 +1,52 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "ast.h" +#include "lexer.h" + +// kate: space-indent on; indent-width 2; replace-tabs on; + +QString AST::toString(TokenStream *stream) const +{ + const Token &tk = stream->token((int) start_token); + const Token &end_tk = stream->token ((int) end_token); + return QString::fromLatin1(tk.text + tk.position, end_tk.position - tk.position); +} diff --git a/generator_50/parser/ast.h b/generator_50/parser/ast.h new file mode 100644 index 00000000..ad4621d2 --- /dev/null +++ b/generator_50/parser/ast.h @@ -0,0 +1,899 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef AST_H +#define AST_H + +#include "smallobject.h" +#include "list.h" + +class QString; + +#define DECLARE_AST_NODE(k) \ + enum { __node_kind = Kind_##k }; + +class TokenStream; + +struct AccessSpecifierAST; +struct AsmDefinitionAST; +struct BaseClauseAST; +struct BaseSpecifierAST; +struct BinaryExpressionAST; +struct CastExpressionAST; +struct ClassMemberAccessAST; +struct ClassSpecifierAST; +struct CompoundStatementAST; +struct ConditionAST; +struct ConditionalExpressionAST; +struct CppCastExpressionAST; +struct CtorInitializerAST; +struct DeclarationAST; +struct DeclarationStatementAST; +struct DeclaratorAST; +struct DeleteExpressionAST; +struct DoStatementAST; +struct ElaboratedTypeSpecifierAST; +struct EnumSpecifierAST; +struct EnumeratorAST; +struct ExceptionSpecificationAST; +struct ExpressionAST; +struct ExpressionOrDeclarationStatementAST; +struct ExpressionStatementAST; +struct ForStatementAST; +struct FunctionCallAST; +struct FunctionDefinitionAST; +struct IfStatementAST; +struct IncrDecrExpressionAST; +struct InitDeclaratorAST; +struct InitializerAST; +struct InitializerClauseAST; +struct LabeledStatementAST; +struct LinkageBodyAST; +struct LinkageSpecificationAST; +struct MemInitializerAST; +struct NameAST; +struct NamespaceAST; +struct NamespaceAliasDefinitionAST; +struct NewDeclaratorAST; +struct NewExpressionAST; +struct NewInitializerAST; +struct NewTypeIdAST; +struct OperatorAST; +struct OperatorFunctionIdAST; +struct ParameterDeclarationAST; +struct ParameterDeclarationClauseAST; +struct PostfixExpressionAST; +struct PrimaryExpressionAST; +struct PtrOperatorAST; +struct PtrToMemberAST; +struct ReturnStatementAST; +struct SimpleDeclarationAST; +struct SimpleTypeSpecifierAST; +struct SizeofExpressionAST; +struct StatementAST; +struct StringLiteralAST; +struct SubscriptExpressionAST; +struct SwitchStatementAST; +struct TemplateArgumentAST; +struct TemplateDeclarationAST; +struct TemplateParameterAST; +struct ThrowExpressionAST; +struct TranslationUnitAST; +struct TryBlockStatementAST; +struct TypeIdAST; +struct TypeIdentificationAST; +struct TypeParameterAST; +struct TypeSpecifierAST; +struct TypedefAST; +struct UnaryExpressionAST; +struct UnqualifiedNameAST; +struct UsingAST; +struct UsingDirectiveAST; +struct WhileStatementAST; +struct WinDeclSpecAST; +struct QPropertyAST; +struct QEnumsAST; + +struct AST +{ + enum NODE_KIND + { + Kind_UNKNOWN = 0, + + Kind_AccessSpecifier, + Kind_AsmDefinition, + Kind_BaseClause, + Kind_BaseSpecifier, + Kind_BinaryExpression, + Kind_CastExpression, + Kind_ClassMemberAccess, + Kind_ClassSpecifier, + Kind_CompoundStatement, + Kind_Condition, + Kind_ConditionalExpression, + Kind_CppCastExpression, + Kind_CtorInitializer, + Kind_DeclarationStatement, + Kind_Declarator, + Kind_DeleteExpression, + Kind_DoStatement, + Kind_ElaboratedTypeSpecifier, + Kind_EnumSpecifier, + Kind_Enumerator, + Kind_ExceptionSpecification, + Kind_ExpressionOrDeclarationStatement, + Kind_ExpressionStatement, + Kind_ForStatement, + Kind_FunctionCall, + Kind_FunctionDefinition, + Kind_IfStatement, + Kind_IncrDecrExpression, + Kind_InitDeclarator, + Kind_Initializer, + Kind_InitializerClause, + Kind_LabeledStatement, + Kind_LinkageBody, + Kind_LinkageSpecification, + Kind_MemInitializer, + Kind_Name, + Kind_Namespace, + Kind_NamespaceAliasDefinition, + Kind_NewDeclarator, + Kind_NewExpression, + Kind_NewInitializer, + Kind_NewTypeId, + Kind_Operator, + Kind_OperatorFunctionId, + Kind_ParameterDeclaration, + Kind_ParameterDeclarationClause, + Kind_PostfixExpression, + Kind_PrimaryExpression, + Kind_PtrOperator, + Kind_PtrToMember, + Kind_ReturnStatement, + Kind_SimpleDeclaration, + Kind_SimpleTypeSpecifier, + Kind_SizeofExpression, + Kind_StringLiteral, + Kind_SubscriptExpression, + Kind_SwitchStatement, + Kind_TemplateArgument, + Kind_TemplateDeclaration, + Kind_TemplateParameter, + Kind_ThrowExpression, + Kind_TranslationUnit, + Kind_TryBlockStatement, + Kind_TypeId, + Kind_TypeIdentification, + Kind_TypeParameter, + Kind_Typedef, + Kind_UnaryExpression, + Kind_UnqualifiedName, + Kind_Using, + Kind_UsingDirective, + Kind_WhileStatement, + Kind_WinDeclSpec, + Kind_QPropertyAST, + Kind_ForwardDeclarationSpecifier, + Kind_QEnumsAST, + + NODE_KIND_COUNT + }; + + QString toString(TokenStream *stream) const; + + int kind; + + std::size_t start_token; + std::size_t end_token; +}; + +struct TypeSpecifierAST: public AST +{ + const ListNode *cv; +}; + +struct StatementAST: public AST +{ +}; + +struct ExpressionAST: public AST +{ +}; + +struct DeclarationAST: public AST +{ +}; + +struct AccessSpecifierAST: public DeclarationAST +{ + DECLARE_AST_NODE(AccessSpecifier) + + const ListNode *specs; +}; + +struct AsmDefinitionAST: public DeclarationAST +{ + DECLARE_AST_NODE(AsmDefinition) + + const ListNode *cv; +}; + +struct BaseClauseAST: public AST // ### kill me +{ + DECLARE_AST_NODE(BaseClause) + + const ListNode *base_specifiers; +}; + +struct BaseSpecifierAST: public AST +{ + DECLARE_AST_NODE(BaseSpecifier) + + std::size_t virt; + std::size_t access_specifier; + NameAST *name; +}; + +struct BinaryExpressionAST: public ExpressionAST +{ + DECLARE_AST_NODE(BinaryExpression) + + std::size_t op; + ExpressionAST *left_expression; + ExpressionAST *right_expression; +}; + +struct CastExpressionAST: public ExpressionAST +{ + DECLARE_AST_NODE(CastExpression) + + TypeIdAST *type_id; + ExpressionAST *expression; +}; + +struct ClassMemberAccessAST: public ExpressionAST +{ + DECLARE_AST_NODE(ClassMemberAccess) + + std::size_t op; + NameAST *name; +}; + +struct ClassSpecifierAST: public TypeSpecifierAST +{ + DECLARE_AST_NODE(ClassSpecifier) + + WinDeclSpecAST *win_decl_specifiers; + std::size_t class_key; + NameAST *name; + BaseClauseAST *base_clause; + const ListNode *member_specs; +}; + +struct ForwardDeclarationSpecifierAST: public TypeSpecifierAST +{ + DECLARE_AST_NODE(ForwardDeclarationSpecifier) + + std::size_t class_key; + NameAST *name; + BaseClauseAST *base_clause; +}; + +struct CompoundStatementAST: public StatementAST +{ + DECLARE_AST_NODE(CompoundStatement) + + const ListNode *statements; +}; + +struct ConditionAST: public AST +{ + DECLARE_AST_NODE(Condition) + + TypeSpecifierAST *type_specifier; + DeclaratorAST *declarator; + ExpressionAST *expression; +}; + +struct ConditionalExpressionAST: public ExpressionAST +{ + DECLARE_AST_NODE(ConditionalExpression) + + ExpressionAST *condition; + ExpressionAST *left_expression; + ExpressionAST *right_expression; +}; + +struct CppCastExpressionAST: public ExpressionAST +{ + DECLARE_AST_NODE(CppCastExpression) + + std::size_t op; + TypeIdAST *type_id; + ExpressionAST *expression; + const ListNode *sub_expressions; +}; + +struct CtorInitializerAST: public AST +{ + DECLARE_AST_NODE(CtorInitializer) + + std::size_t colon; + const ListNode *member_initializers; +}; + +struct DeclarationStatementAST: public StatementAST +{ + DECLARE_AST_NODE(DeclarationStatement) + + DeclarationAST *declaration; +}; + +struct DeclaratorAST: public AST +{ + DECLARE_AST_NODE(Declarator) + + const ListNode *ptr_ops; + DeclaratorAST *sub_declarator; + NameAST *id; + ExpressionAST *bit_expression; + const ListNode *array_dimensions; + ParameterDeclarationClauseAST *parameter_declaration_clause; + const ListNode *fun_cv; + ExceptionSpecificationAST *exception_spec; +}; + +struct DeleteExpressionAST: public ExpressionAST +{ + DECLARE_AST_NODE(DeleteExpression) + + std::size_t scope_token; + std::size_t delete_token; + std::size_t lbracket_token; + std::size_t rbracket_token; + ExpressionAST *expression; +}; + +struct DoStatementAST: public StatementAST +{ + DECLARE_AST_NODE(DoStatement) + + StatementAST *statement; + ExpressionAST *expression; +}; + +struct ElaboratedTypeSpecifierAST: public TypeSpecifierAST +{ + DECLARE_AST_NODE(ElaboratedTypeSpecifier) + + std::size_t type; + NameAST *name; +}; + +struct EnumSpecifierAST: public TypeSpecifierAST +{ + DECLARE_AST_NODE(EnumSpecifier) + + NameAST *name; + const ListNode *enumerators; +}; + +struct EnumeratorAST: public AST +{ + DECLARE_AST_NODE(Enumerator) + + std::size_t id; + ExpressionAST *expression; +}; + +struct ExceptionSpecificationAST: public AST +{ + DECLARE_AST_NODE(ExceptionSpecification) + + std::size_t ellipsis; + const ListNode *type_ids; +}; + +struct ExpressionOrDeclarationStatementAST: public StatementAST +{ + DECLARE_AST_NODE(ExpressionOrDeclarationStatement) + + StatementAST *expression; + StatementAST *declaration; +}; + +struct ExpressionStatementAST: public StatementAST +{ + DECLARE_AST_NODE(ExpressionStatement) + + ExpressionAST *expression; +}; + +struct FunctionCallAST: public ExpressionAST +{ + DECLARE_AST_NODE(FunctionCall) + + ExpressionAST *arguments; +}; + +struct FunctionDefinitionAST: public DeclarationAST +{ + DECLARE_AST_NODE(FunctionDefinition) + + const ListNode *storage_specifiers; + const ListNode *function_specifiers; + TypeSpecifierAST *type_specifier; + InitDeclaratorAST *init_declarator; + StatementAST *function_body; + WinDeclSpecAST *win_decl_specifiers; +}; + +struct ForStatementAST: public StatementAST +{ + DECLARE_AST_NODE(ForStatement) + + StatementAST *init_statement; + ConditionAST *condition; + ExpressionAST *expression; + StatementAST *statement; +}; + +struct IfStatementAST: public StatementAST +{ + DECLARE_AST_NODE(IfStatement) + + ConditionAST *condition; + StatementAST *statement; + StatementAST *else_statement; +}; + +struct IncrDecrExpressionAST: public ExpressionAST +{ + DECLARE_AST_NODE(IncrDecrExpression) + + std::size_t op; +}; + +struct InitDeclaratorAST: public AST +{ + DECLARE_AST_NODE(InitDeclarator) + + DeclaratorAST *declarator; + InitializerAST *initializer; +}; + +struct InitializerAST: public AST +{ + DECLARE_AST_NODE(Initializer) + + InitializerClauseAST *initializer_clause; + ExpressionAST *expression; +}; + +struct InitializerClauseAST: public AST +{ + DECLARE_AST_NODE(InitializerClause) + + ExpressionAST *expression; +}; + +struct LabeledStatementAST: public StatementAST +{ + DECLARE_AST_NODE(LabeledStatement) +}; + +struct LinkageBodyAST: public AST +{ + DECLARE_AST_NODE(LinkageBody) + + const ListNode *declarations; +}; + +struct LinkageSpecificationAST: public DeclarationAST +{ + DECLARE_AST_NODE(LinkageSpecification) + + std::size_t extern_type; + LinkageBodyAST *linkage_body; + DeclarationAST *declaration; +}; + +struct MemInitializerAST: public AST +{ + DECLARE_AST_NODE(MemInitializer) + + NameAST *initializer_id; + ExpressionAST *expression; +}; + +struct NameAST: public AST +{ + DECLARE_AST_NODE(Name) + + bool global; + const ListNode *qualified_names; + UnqualifiedNameAST *unqualified_name; +}; + +struct NamespaceAST: public DeclarationAST +{ + DECLARE_AST_NODE(Namespace) + + std::size_t namespace_name; + LinkageBodyAST *linkage_body; +}; + +struct NamespaceAliasDefinitionAST: public DeclarationAST +{ + DECLARE_AST_NODE(NamespaceAliasDefinition) + + std::size_t namespace_name; + NameAST *alias_name; +}; + +struct NewDeclaratorAST: public AST +{ + DECLARE_AST_NODE(NewDeclarator) + + PtrOperatorAST *ptr_op; + NewDeclaratorAST *sub_declarator; + const ListNode *expressions; +}; + +struct NewExpressionAST: public ExpressionAST +{ + DECLARE_AST_NODE(NewExpression) + + std::size_t scope_token; + std::size_t new_token; + ExpressionAST *expression; + TypeIdAST *type_id; + NewTypeIdAST *new_type_id; + NewInitializerAST *new_initializer; +}; + +struct NewInitializerAST: public AST +{ + DECLARE_AST_NODE(NewInitializer) + + ExpressionAST *expression; +}; + +struct NewTypeIdAST: public AST +{ + DECLARE_AST_NODE(NewTypeId) + + TypeSpecifierAST *type_specifier; + NewInitializerAST *new_initializer; + NewDeclaratorAST *new_declarator; +}; + +struct OperatorAST: public AST +{ + DECLARE_AST_NODE(Operator) + + std::size_t op; + std::size_t open; + std::size_t close; +}; + +struct OperatorFunctionIdAST: public AST +{ + DECLARE_AST_NODE(OperatorFunctionId) + + OperatorAST *op; + TypeSpecifierAST *type_specifier; + const ListNode *ptr_ops; +}; + +struct ParameterDeclarationAST: public AST +{ + DECLARE_AST_NODE(ParameterDeclaration) + + TypeSpecifierAST *type_specifier; + DeclaratorAST *declarator; + ExpressionAST *expression; +}; + +struct ParameterDeclarationClauseAST: public AST +{ + DECLARE_AST_NODE(ParameterDeclarationClause) + + const ListNode *parameter_declarations; + std::size_t ellipsis; +}; + +struct PostfixExpressionAST: public ExpressionAST +{ + DECLARE_AST_NODE(PostfixExpression) + + TypeSpecifierAST *type_specifier; + ExpressionAST *expression; + const ListNode *sub_expressions; +}; + +struct PrimaryExpressionAST: public ExpressionAST +{ + DECLARE_AST_NODE(PrimaryExpression) + + StringLiteralAST *literal; + std::size_t token; + StatementAST *expression_statement; + ExpressionAST *sub_expression; + NameAST *name; +}; + +struct PtrOperatorAST: public AST +{ + DECLARE_AST_NODE(PtrOperator) + + const ListNode *cv; + std::size_t op; + PtrToMemberAST *mem_ptr; +}; + +struct PtrToMemberAST: public AST +{ + DECLARE_AST_NODE(PtrToMember) +}; + +struct ReturnStatementAST: public StatementAST +{ + DECLARE_AST_NODE(ReturnStatement) + + ExpressionAST *expression; +}; + +struct SimpleDeclarationAST: public DeclarationAST +{ + DECLARE_AST_NODE(SimpleDeclaration) + + const ListNode *storage_specifiers; + const ListNode *function_specifiers; + TypeSpecifierAST *type_specifier; + const ListNode *init_declarators; + WinDeclSpecAST *win_decl_specifiers; +}; + +struct SimpleTypeSpecifierAST: public TypeSpecifierAST +{ + DECLARE_AST_NODE(SimpleTypeSpecifier) + + const ListNode *integrals; + std::size_t type_of; + TypeIdAST *type_id; + ExpressionAST *expression; + NameAST *name; +}; + +struct SizeofExpressionAST: public ExpressionAST +{ + DECLARE_AST_NODE(SizeofExpression) + + std::size_t sizeof_token; + TypeIdAST *type_id; + ExpressionAST *expression; +}; + +struct StringLiteralAST: public AST +{ + DECLARE_AST_NODE(StringLiteral) + + const ListNode *literals; +}; + +struct SubscriptExpressionAST: public ExpressionAST +{ + DECLARE_AST_NODE(SubscriptExpression) + + ExpressionAST *subscript; +}; + +struct SwitchStatementAST: public StatementAST +{ + DECLARE_AST_NODE(SwitchStatement) + + ConditionAST *condition; + StatementAST *statement; +}; + +struct TemplateArgumentAST: public AST +{ + DECLARE_AST_NODE(TemplateArgument) + + TypeIdAST *type_id; + ExpressionAST *expression; +}; + +struct TemplateDeclarationAST: public DeclarationAST +{ + DECLARE_AST_NODE(TemplateDeclaration) + + std::size_t exported; + const ListNode *template_parameters; + DeclarationAST* declaration; +}; + +struct TemplateParameterAST: public AST +{ + DECLARE_AST_NODE(TemplateParameter) + + TypeParameterAST *type_parameter; + ParameterDeclarationAST *parameter_declaration; +}; + +struct ThrowExpressionAST: public ExpressionAST +{ + DECLARE_AST_NODE(ThrowExpression) + + std::size_t throw_token; + ExpressionAST *expression; +}; + +struct TranslationUnitAST: public AST +{ + DECLARE_AST_NODE(TranslationUnit) + + const ListNode *declarations; +}; + +struct TryBlockStatementAST: public StatementAST +{ + DECLARE_AST_NODE(TryBlockStatement) +}; + +struct TypeIdAST: public AST +{ + DECLARE_AST_NODE(TypeId) + + TypeSpecifierAST *type_specifier; + DeclaratorAST *declarator; +}; + +struct TypeIdentificationAST: public ExpressionAST +{ + DECLARE_AST_NODE(TypeIdentification) + + std::size_t typename_token; + NameAST *name; + ExpressionAST *expression; +}; + +struct TypeParameterAST: public AST +{ + DECLARE_AST_NODE(TypeParameter) + + std::size_t type; + NameAST *name; + TypeIdAST *type_id; + const ListNode *template_parameters; + NameAST *template_name; +}; + +struct TypedefAST: public DeclarationAST +{ + DECLARE_AST_NODE(Typedef) + + TypeSpecifierAST *type_specifier; + const ListNode *init_declarators; +}; + +struct UnaryExpressionAST: public ExpressionAST +{ + DECLARE_AST_NODE(UnaryExpression) + + std::size_t op; + ExpressionAST *expression; +}; + +struct UnqualifiedNameAST: public AST +{ + DECLARE_AST_NODE(UnqualifiedName) + + std::size_t tilde; + std::size_t id; + OperatorFunctionIdAST *operator_id; + const ListNode *template_arguments; +}; + +struct UsingAST: public DeclarationAST +{ + DECLARE_AST_NODE(Using) + + std::size_t type_name; + NameAST *name; +}; + +struct UsingDirectiveAST: public DeclarationAST +{ + DECLARE_AST_NODE(UsingDirective) + + NameAST *name; +}; + +struct WhileStatementAST: public StatementAST +{ + DECLARE_AST_NODE(WhileStatement) + + ConditionAST *condition; + StatementAST *statement; +}; + +struct WinDeclSpecAST: public AST +{ + DECLARE_AST_NODE(WinDeclSpec) + + std::size_t specifier; + std::size_t modifier; +}; + +struct QPropertyAST : public DeclarationAST +{ + DECLARE_AST_NODE(QPropertyAST) +}; + +struct QEnumsAST : public DeclarationAST +{ + DECLARE_AST_NODE(QEnumsAST) +}; + +template +_Tp *CreateNode(pool *memory_pool) +{ + _Tp *node = reinterpret_cast<_Tp*>(memory_pool->allocate(sizeof(_Tp))); + node->kind = _Tp::__node_kind; + return node; +} + +template +_Tp ast_cast(AST *item) +{ + if (item && static_cast<_Tp>(0)->__node_kind == item->kind) + return static_cast<_Tp>(item); + + return 0; +} + +#endif // AST_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/binder.cpp b/generator_50/parser/binder.cpp new file mode 100644 index 00000000..301154ff --- /dev/null +++ b/generator_50/parser/binder.cpp @@ -0,0 +1,938 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "binder.h" +#include "lexer.h" +#include "control.h" +#include "symbol.h" +#include "codemodel_finder.h" +#include "class_compiler.h" +#include "compiler_utils.h" +#include "tokens.h" +#include "dumptree.h" + +#include + +#include + +Binder::Binder(CodeModel *__model, LocationManager &__location, Control *__control) + : _M_model(__model), + _M_location(__location), + _M_token_stream(&_M_location.token_stream), + _M_control(__control), + _M_current_function_type(CodeModel::Normal), + type_cc(this), + name_cc(this), + decl_cc(this) +{ + _M_qualified_types["char"] = QString(); + _M_qualified_types["double"] = QString(); + _M_qualified_types["float"] = QString(); + _M_qualified_types["int"] = QString(); + _M_qualified_types["long"] = QString(); + _M_qualified_types["short"] = QString(); + _M_qualified_types["void"] = QString(); +} + +Binder::~Binder() +{ +} + +FileModelItem Binder::run(AST *node) +{ + FileModelItem old = _M_current_file; + _M_current_access = CodeModel::Public; + + _M_current_file = model()->create(); + updateItemPosition (_M_current_file->toItem(), node); + visit(node); + FileModelItem result = _M_current_file; + + _M_current_file = old; // restore + + return result; +} + +ScopeModelItem Binder::currentScope() +{ + if (_M_current_class) + return model_static_cast(_M_current_class); + else if (_M_current_namespace) + return model_static_cast(_M_current_namespace); + + return model_static_cast(_M_current_file); +} + +TemplateParameterList Binder::changeTemplateParameters(TemplateParameterList templateParameters) +{ + TemplateParameterList old = _M_current_template_parameters; + _M_current_template_parameters = templateParameters; + return old; +} + +CodeModel::FunctionType Binder::changeCurrentFunctionType(CodeModel::FunctionType functionType) +{ + CodeModel::FunctionType old = _M_current_function_type; + _M_current_function_type = functionType; + return old; +} + +CodeModel::AccessPolicy Binder::changeCurrentAccess(CodeModel::AccessPolicy accessPolicy) +{ + CodeModel::AccessPolicy old = _M_current_access; + _M_current_access = accessPolicy; + return old; +} + +NamespaceModelItem Binder::changeCurrentNamespace(NamespaceModelItem item) +{ + NamespaceModelItem old = _M_current_namespace; + _M_current_namespace = item; + return old; +} + +ClassModelItem Binder::changeCurrentClass(ClassModelItem item) +{ + ClassModelItem old = _M_current_class; + _M_current_class = item; + return old; +} + +FunctionDefinitionModelItem Binder::changeCurrentFunction(FunctionDefinitionModelItem item) +{ + FunctionDefinitionModelItem old = _M_current_function; + _M_current_function = item; + return old; +} + +int Binder::decode_token(std::size_t index) const +{ + return _M_token_stream->kind(index); +} + +CodeModel::AccessPolicy Binder::decode_access_policy(std::size_t index) const +{ + switch (decode_token(index)) + { + case Token_class: + return CodeModel::Private; + + case Token_struct: + case Token_union: + return CodeModel::Public; + + default: + return CodeModel::Public; + } +} + +CodeModel::ClassType Binder::decode_class_type(std::size_t index) const +{ + switch (decode_token(index)) + { + case Token_class: + return CodeModel::Class; + case Token_struct: + return CodeModel::Struct; + case Token_union: + return CodeModel::Union; + default: + std::cerr << "** WARNING unrecognized class type" << std::endl; + } + return CodeModel::Class; +} + +const NameSymbol *Binder::decode_symbol(std::size_t index) const +{ + return _M_token_stream->symbol(index); +} + +void Binder::visitAccessSpecifier(AccessSpecifierAST *node) +{ + const ListNode *it = node->specs; + if (it == 0) + return; + + it = it->toFront(); + const ListNode *end = it; + + do + { + switch (decode_token(it->element)) + { + default: + break; + + case Token_public: + changeCurrentAccess(CodeModel::Public); + changeCurrentFunctionType(CodeModel::Normal); + break; + case Token_protected: + changeCurrentAccess(CodeModel::Protected); + changeCurrentFunctionType(CodeModel::Normal); + break; + case Token_private: + changeCurrentAccess(CodeModel::Private); + changeCurrentFunctionType(CodeModel::Normal); + break; + case Token_signals: + changeCurrentAccess(CodeModel::Protected); + changeCurrentFunctionType(CodeModel::Signal); + break; + case Token_slots: + changeCurrentFunctionType(CodeModel::Slot); + break; + } + it = it->next; + } + while (it != end); +} + +void Binder::visitSimpleDeclaration(SimpleDeclarationAST *node) +{ + visit(node->type_specifier); + + if (const ListNode *it = node->init_declarators) + { + it = it->toFront(); + const ListNode *end = it; + do + { + InitDeclaratorAST *init_declarator = it->element; + declare_symbol(node, init_declarator); + it = it->next; + } + while (it != end); + } +} + +void Binder::declare_symbol(SimpleDeclarationAST *node, InitDeclaratorAST *init_declarator) +{ + DeclaratorAST *declarator = init_declarator->declarator; + + while (declarator && declarator->sub_declarator) + declarator = declarator->sub_declarator; + + NameAST *id = declarator->id; + if (! declarator->id) + { + std::cerr << "** WARNING expected a declarator id" << std::endl; + return; + } + + CodeModelFinder finder(model(), this); + ScopeModelItem symbolScope = finder.resolveScope(id, currentScope()); + if (! symbolScope) + { + name_cc.run(id); + std::cerr << "** WARNING scope not found for symbol:" + << qPrintable(name_cc.name()) << std::endl; + return; + } + + decl_cc.run(declarator); + + if (decl_cc.isFunction()) + { + name_cc.run(id->unqualified_name); + + FunctionModelItem fun = model()->create(); + updateItemPosition (fun->toItem(), node); + fun->setAccessPolicy(_M_current_access); + fun->setFunctionType(_M_current_function_type); + fun->setName(name_cc.name()); + fun->setAbstract(init_declarator->initializer != 0); + fun->setConstant(declarator->fun_cv != 0); + fun->setException(exceptionSpecToString(declarator->exception_spec)); + + fun->setTemplateParameters(_M_current_template_parameters); + applyStorageSpecifiers(node->storage_specifiers, model_static_cast(fun)); + applyFunctionSpecifiers(node->function_specifiers, fun); + + // build the type + TypeInfo typeInfo = CompilerUtils::typeDescription(node->type_specifier, + declarator, + this); + + fun->setType(qualifyType(typeInfo, symbolScope->qualifiedName())); + + + fun->setVariadics (decl_cc.isVariadics ()); + + // ... and the signature + foreach (DeclaratorCompiler::Parameter p, decl_cc.parameters()) + { + ArgumentModelItem arg = model()->create(); + arg->setType(qualifyType(p.type, _M_context)); + arg->setName(p.name); + arg->setDefaultValue(p.defaultValue); + if (p.defaultValue) + arg->setDefaultValueExpression(p.defaultValueExpression); + fun->addArgument(arg); + } + + fun->setScope(symbolScope->qualifiedName()); + symbolScope->addFunction(fun); + } + else + { + VariableModelItem var = model()->create(); + updateItemPosition (var->toItem(), node); + var->setTemplateParameters(_M_current_template_parameters); + var->setAccessPolicy(_M_current_access); + name_cc.run(id->unqualified_name); + var->setName(name_cc.name()); + TypeInfo typeInfo = CompilerUtils::typeDescription(node->type_specifier, + declarator, + this); + if (declarator != init_declarator->declarator + && init_declarator->declarator->parameter_declaration_clause != 0) + { + typeInfo.setFunctionPointer (true); + decl_cc.run (init_declarator->declarator); + foreach (DeclaratorCompiler::Parameter p, decl_cc.parameters()) + typeInfo.addArgument(p.type); + } + + var->setType(qualifyType(typeInfo, _M_context)); + applyStorageSpecifiers(node->storage_specifiers, model_static_cast(var)); + + var->setScope(symbolScope->qualifiedName()); + symbolScope->addVariable(var); + } +} + +void Binder::visitFunctionDefinition(FunctionDefinitionAST *node) +{ + Q_ASSERT(node->init_declarator != 0); + + ScopeModelItem scope = currentScope(); + + InitDeclaratorAST *init_declarator = node->init_declarator; + DeclaratorAST *declarator = init_declarator->declarator; + + // in the case of "void (func)()" or "void ((func))()" we need to + // skip to the inner most. This is in line with how the declarator + // node is generated in 'parser.cpp' + while (declarator && declarator->sub_declarator) + declarator = declarator->sub_declarator; + Q_ASSERT(declarator->id); + + CodeModelFinder finder(model(), this); + + ScopeModelItem functionScope = finder.resolveScope(declarator->id, scope); + if (! functionScope) + { + name_cc.run(declarator->id); + std::cerr << "** WARNING scope not found for function definition:" + << qPrintable(name_cc.name()) << std::endl + << "\tdefinition *ignored*" + << std::endl; + return; + } + + decl_cc.run(declarator); + + Q_ASSERT(! decl_cc.id().isEmpty()); + + FunctionDefinitionModelItem + old = changeCurrentFunction(_M_model->create()); + _M_current_function->setScope(functionScope->qualifiedName()); + updateItemPosition (_M_current_function->toItem(), node); + + Q_ASSERT(declarator->id->unqualified_name != 0); + name_cc.run(declarator->id->unqualified_name); + QString unqualified_name = name_cc.name(); + + _M_current_function->setName(unqualified_name); + TypeInfo tmp_type = CompilerUtils::typeDescription(node->type_specifier, + declarator, this); + + _M_current_function->setType(qualifyType(tmp_type, _M_context)); + _M_current_function->setAccessPolicy(_M_current_access); + _M_current_function->setFunctionType(_M_current_function_type); + _M_current_function->setConstant(declarator->fun_cv != 0); + _M_current_function->setTemplateParameters(_M_current_template_parameters); + _M_current_function->setException(exceptionSpecToString(declarator->exception_spec)); + + applyStorageSpecifiers(node->storage_specifiers, + model_static_cast(_M_current_function)); + applyFunctionSpecifiers(node->function_specifiers, + model_static_cast(_M_current_function)); + + _M_current_function->setVariadics (decl_cc.isVariadics ()); + + foreach (DeclaratorCompiler::Parameter p, decl_cc.parameters()) + { + ArgumentModelItem arg = model()->create(); + arg->setType(qualifyType(p.type, functionScope->qualifiedName())); + arg->setName(p.name); + arg->setDefaultValue(p.defaultValue); + if (p.defaultValue) + arg->setDefaultValueExpression(p.defaultValueExpression); + _M_current_function->addArgument(arg); + } + + functionScope->addFunctionDefinition(_M_current_function); + + FunctionModelItem prototype = model_static_cast(_M_current_function); + FunctionModelItem declared = functionScope->declaredFunction(prototype); + + // try to find a function declaration for this definition.. + if (! declared) + { + functionScope->addFunction(prototype); + } + else + { + applyFunctionSpecifiers(node->function_specifiers, declared); + + // fix the function type and the access policy + _M_current_function->setAccessPolicy(declared->accessPolicy()); + _M_current_function->setFunctionType(declared->functionType()); + } + + changeCurrentFunction(old); +} + +void Binder::visitTemplateDeclaration(TemplateDeclarationAST *node) +{ + const ListNode *it = node->template_parameters; + if (it == 0) { + // QtScript: we want to visit the declaration still, so that + // e.g. QMetaTypeId is added to the code model + visit(node->declaration); + return; + } + + TemplateParameterList savedTemplateParameters = changeTemplateParameters(TemplateParameterList()); + + it = it->toFront(); + const ListNode *end = it; + + TemplateParameterList templateParameters; + do { + TemplateParameterAST *parameter = it->element; + TypeParameterAST *type_parameter = parameter->type_parameter; + + NameAST *name; + if (!type_parameter) { + // A hacky hack to work around missing support for parameter declarations in + // templates. We just need the to get the name of the variable, since we + // aren't actually compiling these anyway. We are still not supporting much + // more, but we are refusing to fail for a few more declarations + if (parameter->parameter_declaration == 0 || + parameter->parameter_declaration->declarator == 0 || + parameter->parameter_declaration->declarator->id == 0) { + + /*std::cerr << "** WARNING template declaration not supported ``"; + Token const &tk = _M_token_stream->token ((int) node->start_token); + Token const &end_tk = _M_token_stream->token ((int) node->declaration->start_token); + + std::cerr << std::string (&tk.text[tk.position], (end_tk.position) - tk.position) << "''" + << std::endl << std::endl;*/ + + changeTemplateParameters(savedTemplateParameters); + return; + + } + + name = parameter->parameter_declaration->declarator->id; + } else { + int tk = decode_token(type_parameter->type); + if (tk != Token_typename && tk != Token_class) + { + /*std::cerr << "** WARNING template declaration not supported ``"; + Token const &tk = _M_token_stream->token ((int) node->start_token); + Token const &end_tk = _M_token_stream->token ((int) node->declaration->start_token); + + std::cerr << std::string (&tk.text[tk.position], (end_tk.position) - tk.position) << "''" + << std::endl << std::endl;*/ + + changeTemplateParameters(savedTemplateParameters); + return; + } + assert(tk == Token_typename || tk == Token_class); + + name = type_parameter->name; + } + + TemplateParameterModelItem p = model()->create(); + name_cc.run(name); + p->setName(name_cc.name()); + + _M_current_template_parameters.append(p); + it = it->next; + } while (it != end); + + visit(node->declaration); + + changeTemplateParameters(savedTemplateParameters); +} + +void Binder::visitTypedef(TypedefAST *node) +{ + const ListNode *it = node->init_declarators; + if (it == 0) + return; + + it = it->toFront(); + const ListNode *end = it; + + do + { + InitDeclaratorAST *init_declarator = it->element; + it = it->next; + + Q_ASSERT(init_declarator->declarator != 0); + + // the name + decl_cc.run (init_declarator->declarator); + QString alias_name = decl_cc.id (); + + if (alias_name.isEmpty ()) + { + std::cerr << "** WARNING anonymous typedef not supported! ``"; + Token const &tk = _M_token_stream->token ((int) node->start_token); + Token const &end_tk = _M_token_stream->token ((int) node->end_token); + + std::cerr << std::string (&tk.text[tk.position], end_tk.position - tk.position) << "''" + << std::endl << std::endl; + continue; + } + + // build the type + TypeInfo typeInfo = CompilerUtils::typeDescription (node->type_specifier, + init_declarator->declarator, + this); + DeclaratorAST *decl = init_declarator->declarator; + while (decl && decl->sub_declarator) + decl = decl->sub_declarator; + + if (decl != init_declarator->declarator + && init_declarator->declarator->parameter_declaration_clause != 0) + { + typeInfo.setFunctionPointer (true); + decl_cc.run (init_declarator->declarator); + foreach (DeclaratorCompiler::Parameter p, decl_cc.parameters()) + typeInfo.addArgument(p.type); + } + + ScopeModelItem scope = currentScope(); + DeclaratorAST *declarator = init_declarator->declarator; + CodeModelFinder finder(model(), this); + ScopeModelItem typedefScope = finder.resolveScope(declarator->id, scope); + + TypeAliasModelItem typeAlias = model ()->create (); + updateItemPosition (typeAlias->toItem (), node); + typeAlias->setName (alias_name); + typeAlias->setType (qualifyType (typeInfo, currentScope ()->qualifiedName ())); + typeAlias->setScope (typedefScope->qualifiedName()); + _M_qualified_types[typeAlias->qualifiedName().join(".")] = QString(); + currentScope ()->addTypeAlias (typeAlias); + } + while (it != end); +} + +void Binder::visitNamespace(NamespaceAST *node) +{ + bool anonymous = (node->namespace_name == 0); + + ScopeModelItem scope = currentScope(); + + NamespaceModelItem old; + if (! anonymous) + { + QString name = decode_symbol(node->namespace_name)->as_string(); + + QStringList qualified_name = scope->qualifiedName(); + qualified_name += name; + NamespaceModelItem ns = + model_safe_cast(_M_model->findItem(qualified_name, + _M_current_file->toItem())); + if (!ns) + { + ns = _M_model->create(); + updateItemPosition (ns->toItem(), node); + ns->setName(name); + ns->setScope(scope->qualifiedName()); + } + old = changeCurrentNamespace(ns); + + _M_context.append(name); + } + + DefaultVisitor::visitNamespace(node); + + if (! anonymous) + { + Q_ASSERT(scope->kind() == _CodeModelItem::Kind_Namespace + || scope->kind() == _CodeModelItem::Kind_File); + + _M_context.removeLast(); + + if (NamespaceModelItem ns = model_static_cast(scope)) + { + ns->addNamespace(_M_current_namespace); + } + + changeCurrentNamespace(old); + } +} + +void Binder::visitForwardDeclarationSpecifier(ForwardDeclarationSpecifierAST *node) +{ + name_cc.run(node->name); + if (name_cc.name().isEmpty()) + return; + + ScopeModelItem scope = currentScope(); + _M_qualified_types[(scope->qualifiedName() + name_cc.qualifiedName()).join(".") ] = QString(); +} + +void Binder::visitClassSpecifier(ClassSpecifierAST *node) +{ + ClassCompiler class_cc(this); + class_cc.run(node); + + if (class_cc.name().isEmpty()) + { + // anonymous not supported + return; + } + + Q_ASSERT(node->name != 0 && node->name->unqualified_name != 0); + + ScopeModelItem scope = currentScope(); + + ClassModelItem old = changeCurrentClass(_M_model->create()); + updateItemPosition (_M_current_class->toItem(), node); + _M_current_class->setName(class_cc.name()); + + QStringList baseClasses = class_cc.baseClasses(); TypeInfo info; + for (int i=0; iqualifiedName()).qualifiedName().join("::"); + } + + _M_current_class->setBaseClasses(baseClasses); + _M_current_class->setClassType(decode_class_type(node->class_key)); + _M_current_class->setTemplateParameters(_M_current_template_parameters); + + if (! _M_current_template_parameters.isEmpty()) + { + QString name = _M_current_class->name(); + name += "<"; + for (int i = 0; i<_M_current_template_parameters.size(); ++i) + { + if (i != 0) + name += ","; + + name += _M_current_template_parameters.at(i)->name(); + } + + name += ">"; + _M_current_class->setName(name); + } + + CodeModel::AccessPolicy oldAccessPolicy = changeCurrentAccess(decode_access_policy(node->class_key)); + CodeModel::FunctionType oldFunctionType = changeCurrentFunctionType(CodeModel::Normal); + + _M_current_class->setScope(scope->qualifiedName()); + _M_qualified_types[_M_current_class->qualifiedName().join(".")] = QString(); + + scope->addClass(_M_current_class); + + name_cc.run(node->name->unqualified_name); + _M_context.append(name_cc.name()); + visitNodes(this, node->member_specs); + _M_context.removeLast(); + + changeCurrentClass(old); + changeCurrentAccess(oldAccessPolicy); + changeCurrentFunctionType(oldFunctionType); +} + +void Binder::visitLinkageSpecification(LinkageSpecificationAST *node) +{ + DefaultVisitor::visitLinkageSpecification(node); +} + +void Binder::visitUsing(UsingAST *node) +{ + DefaultVisitor::visitUsing(node); +} + +void Binder::visitEnumSpecifier(EnumSpecifierAST *node) +{ + CodeModelFinder finder(model(), this); + ScopeModelItem scope = currentScope(); + ScopeModelItem enumScope = finder.resolveScope(node->name, scope); + + name_cc.run(node->name); + QString name = name_cc.name(); + + if (name.isEmpty()) + { + // anonymous enum + QString key = _M_context.join("::"); + int current = ++_M_anonymous_enums[key]; + name += QLatin1String("enum_"); + name += QString::number(current); + } + + _M_current_enum = model()->create(); + _M_current_enum->setAccessPolicy(_M_current_access); + updateItemPosition (_M_current_enum->toItem(), node); + _M_current_enum->setName(name); + _M_current_enum->setScope(enumScope->qualifiedName()); + + _M_qualified_types[_M_current_enum->qualifiedName().join(".")] = QString(); + + enumScope->addEnum(_M_current_enum); + + DefaultVisitor::visitEnumSpecifier(node); + + _M_current_enum = 0; +} + +static QString strip_preprocessor_lines(const QString &name) +{ + QStringList lst = name.split("\n"); + QString s; + for (int i=0; icreate(); + updateItemPosition (e->toItem(), node); + e->setName(decode_symbol(node->id)->as_string()); + + if (ExpressionAST *expr = node->expression) + { + const Token &start_token = _M_token_stream->token((int) expr->start_token); + const Token &end_token = _M_token_stream->token((int) expr->end_token); + + e->setValue(strip_preprocessor_lines(QString::fromUtf8(&start_token.text[start_token.position], + (int) (end_token.position - start_token.position)).trimmed()).remove(' ')); + } + + _M_current_enum->addEnumerator(e); +} + +void Binder::visitUsingDirective(UsingDirectiveAST *node) +{ + DefaultVisitor::visitUsingDirective(node); +} + +void Binder::visitQEnums(QEnumsAST *node) +{ + const Token &start = _M_token_stream->token((int) node->start_token); + const Token &end = _M_token_stream->token((int) node->end_token); + QStringList enum_list = QString::fromLatin1(start.text + start.position, + end.position - start.position).split(' '); + + ScopeModelItem scope = currentScope(); + for (int i=0; iaddEnumsDeclaration(enum_list.at(i)); +} + +void Binder::visitQProperty(QPropertyAST *node) +{ + const Token &start = _M_token_stream->token((int) node->start_token); + const Token &end = _M_token_stream->token((int) node->end_token); + QString property = QString::fromLatin1(start.text + start.position, + end.position - start.position); + _M_current_class->addPropertyDeclaration(property); +} + +void Binder::applyStorageSpecifiers(const ListNode *it, MemberModelItem item) +{ + if (it == 0) + return; + + it = it->toFront(); + const ListNode *end = it; + + do + { + switch (decode_token(it->element)) + { + default: + break; + + case Token_friend: + item->setFriend(true); + break; + case Token_auto: + item->setAuto(true); + break; + case Token_register: + item->setRegister(true); + break; + case Token_static: + item->setStatic(true); + break; + case Token_extern: + item->setExtern(true); + break; + case Token_mutable: + item->setMutable(true); + break; + } + it = it->next; + } + while (it != end); +} + +void Binder::applyFunctionSpecifiers(const ListNode *it, FunctionModelItem item) +{ + if (it == 0) + return; + + it = it->toFront(); + const ListNode *end = it; + + do + { + switch (decode_token(it->element)) + { + default: + break; + + case Token_inline: + item->setInline(true); + break; + + case Token_virtual: + item->setVirtual(true); + break; + + case Token_explicit: + item->setExplicit(true); + break; + + case Token_Q_INVOKABLE: + item->setInvokable(true); + break; + } + it = it->next; + } + while (it != end); +} + +TypeInfo Binder::qualifyType(const TypeInfo &type, const QStringList &context) const +{ + // ### Potentially improve to use string list in the name table to + if (context.size() == 0) + { + // ### We can assume that this means global namespace for now... + return type; + } + else if (_M_qualified_types.contains(type.qualifiedName().join("."))) + { + return type; + } + else + { + QStringList expanded = context; + expanded << type.qualifiedName(); + if (_M_qualified_types.contains(expanded.join("."))) + { + TypeInfo modified_type = type; + modified_type.setQualifiedName(expanded); + return modified_type; + } + else + { + CodeModelItem scope = model ()->findItem (context, _M_current_file->toItem ()); + + if (ClassModelItem klass = model_dynamic_cast (scope)) + { + foreach (QString base, klass->baseClasses ()) + { + QStringList ctx = context; + ctx.removeLast(); + ctx.append (base); + + TypeInfo qualified = qualifyType (type, ctx); + if (qualified != type) + return qualified; + } + } + + QStringList copy = context; + copy.removeLast(); + return qualifyType(type, copy); + } + } +} + +void Binder::updateItemPosition(CodeModelItem item, AST *node) +{ + QString filename; + int line, column; + + assert (node != 0); + _M_location.positionAt (_M_token_stream->position(node->start_token), &line, &column, &filename); + item->setFileName (filename); +} + +QString Binder::exceptionSpecToString(ExceptionSpecificationAST* exception_spec) +{ + QString exception; + if (exception_spec) { + const Token &start_token = _M_token_stream->token((int) exception_spec->start_token); + const Token &end_token = _M_token_stream->token((int) exception_spec->end_token); + + exception = QString::fromUtf8(&start_token.text[start_token.position], + (int)(end_token.position - start_token.position)); + } + return exception; +} +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/binder.h b/generator_50/parser/binder.h new file mode 100644 index 00000000..f87247e4 --- /dev/null +++ b/generator_50/parser/binder.h @@ -0,0 +1,138 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef BINDER_H +#define BINDER_H + +#include "default_visitor.h" +#include "codemodel.h" +#include "type_compiler.h" +#include "name_compiler.h" +#include "declarator_compiler.h" + +class TokenStream; +class LocationManager; +class Control; +struct NameSymbol; + +class Binder: protected DefaultVisitor +{ +public: + Binder(CodeModel *__model, LocationManager &__location, Control *__control = 0); + virtual ~Binder(); + + inline TokenStream *tokenStream() const { return _M_token_stream; } + inline CodeModel *model() const { return _M_model; } + ScopeModelItem currentScope(); + + FileModelItem run(AST *node); + +// utils + TypeInfo qualifyType(const TypeInfo &type, const QStringList &context) const; + +protected: + virtual void visitAccessSpecifier(AccessSpecifierAST *); + virtual void visitClassSpecifier(ClassSpecifierAST *); + virtual void visitEnumSpecifier(EnumSpecifierAST *); + virtual void visitEnumerator(EnumeratorAST *); + virtual void visitFunctionDefinition(FunctionDefinitionAST *); + virtual void visitLinkageSpecification(LinkageSpecificationAST *); + virtual void visitNamespace(NamespaceAST *); + virtual void visitSimpleDeclaration(SimpleDeclarationAST *); + virtual void visitTemplateDeclaration(TemplateDeclarationAST *); + virtual void visitTypedef(TypedefAST *); + virtual void visitUsing(UsingAST *); + virtual void visitUsingDirective(UsingDirectiveAST *); + virtual void visitQProperty(QPropertyAST *); + virtual void visitForwardDeclarationSpecifier(ForwardDeclarationSpecifierAST *); + virtual void visitQEnums(QEnumsAST *); + +private: + + int decode_token(std::size_t index) const; + const NameSymbol *decode_symbol(std::size_t index) const; + CodeModel::AccessPolicy decode_access_policy(std::size_t index) const; + CodeModel::ClassType decode_class_type(std::size_t index) const; + + CodeModel::FunctionType changeCurrentFunctionType(CodeModel::FunctionType functionType); + CodeModel::AccessPolicy changeCurrentAccess(CodeModel::AccessPolicy accessPolicy); + NamespaceModelItem changeCurrentNamespace(NamespaceModelItem item); + ClassModelItem changeCurrentClass(ClassModelItem item); + FunctionDefinitionModelItem changeCurrentFunction(FunctionDefinitionModelItem item); + TemplateParameterList changeTemplateParameters(TemplateParameterList templateParameters); + + void declare_symbol(SimpleDeclarationAST *node, InitDeclaratorAST *init_declarator); + + void applyStorageSpecifiers(const ListNode *storage_specifiers, MemberModelItem item); + void applyFunctionSpecifiers(const ListNode *it, FunctionModelItem item); + + void updateItemPosition(CodeModelItem item, AST *node); + + QString exceptionSpecToString(ExceptionSpecificationAST *exception_spec); + +private: + CodeModel *_M_model; + LocationManager &_M_location; + TokenStream *_M_token_stream; + Control *_M_control; + + CodeModel::FunctionType _M_current_function_type; + CodeModel::AccessPolicy _M_current_access; + FileModelItem _M_current_file; + NamespaceModelItem _M_current_namespace; + ClassModelItem _M_current_class; + FunctionDefinitionModelItem _M_current_function; + EnumModelItem _M_current_enum; + QStringList _M_context; + TemplateParameterList _M_current_template_parameters; // ### check me + QHash _M_qualified_types; + QHash _M_anonymous_enums; + +protected: + TypeCompiler type_cc; + NameCompiler name_cc; + DeclaratorCompiler decl_cc; +}; + +#endif // BINDER_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/class_compiler.cpp b/generator_50/parser/class_compiler.cpp new file mode 100644 index 00000000..27a9755b --- /dev/null +++ b/generator_50/parser/class_compiler.cpp @@ -0,0 +1,83 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#include "class_compiler.h" +#include "lexer.h" +#include "binder.h" + +ClassCompiler::ClassCompiler(Binder *binder) + : _M_binder (binder), + _M_token_stream(binder->tokenStream ()), + name_cc(_M_binder), + type_cc(_M_binder) +{ +} + +ClassCompiler::~ClassCompiler() +{ +} + +void ClassCompiler::run(ClassSpecifierAST *node) +{ + name_cc.run(node->name); + _M_name = name_cc.name(); + _M_base_classes.clear(); + + visit(node); +} + +void ClassCompiler::visitClassSpecifier(ClassSpecifierAST *node) +{ + visit(node->base_clause); +} + +void ClassCompiler::visitBaseSpecifier(BaseSpecifierAST *node) +{ + name_cc.run(node->name); + QString name = name_cc.name(); + + if (! name.isEmpty()) + _M_base_classes.append(name); +} + + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/class_compiler.h b/generator_50/parser/class_compiler.h new file mode 100644 index 00000000..6c2b67c8 --- /dev/null +++ b/generator_50/parser/class_compiler.h @@ -0,0 +1,82 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef CLASS_COMPILER_H +#define CLASS_COMPILER_H + +#include +#include + +#include "default_visitor.h" +#include "name_compiler.h" +#include "type_compiler.h" + +class TokenStream; +class Binder; + +class ClassCompiler: protected DefaultVisitor +{ +public: + ClassCompiler(Binder *binder); + virtual ~ClassCompiler(); + + inline QString name() const { return _M_name; } + inline QStringList baseClasses() const { return _M_base_classes; } + + void run(ClassSpecifierAST *node); + +protected: + virtual void visitClassSpecifier(ClassSpecifierAST *node); + virtual void visitBaseSpecifier(BaseSpecifierAST *node); + +private: + Binder *_M_binder; + TokenStream *_M_token_stream; + QString _M_name; + QStringList _M_base_classes; + NameCompiler name_cc; + TypeCompiler type_cc; +}; + +#endif // CLASS_COMPILER_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/codemodel.cpp b/generator_50/parser/codemodel.cpp new file mode 100644 index 00000000..51b9b72b --- /dev/null +++ b/generator_50/parser/codemodel.cpp @@ -0,0 +1,978 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#include "codemodel.h" + +// --------------------------------------------------------------------------- +CodeModel::CodeModel() + : _M_creation_id(0) +{ + _M_globalNamespace = create(); +} + +CodeModel::~CodeModel() +{ +} + +void CodeModel::wipeout() +{ + _M_globalNamespace = create(); + _M_files.clear(); +} + +FileList CodeModel::files() const +{ + return _M_files.values(); +} + +NamespaceModelItem CodeModel::globalNamespace() const +{ + return _M_globalNamespace; +} + +void CodeModel::addFile(FileModelItem item) +{ + _M_creation_id = 0; // reset the creation id + _M_files.insert(item->name(), item); +} + +void CodeModel::removeFile(FileModelItem item) +{ + QHash::Iterator it = _M_files.find(item->name()); + + if (it != _M_files.end() && it.value() == item) + _M_files.erase(it); +} + +FileModelItem CodeModel::findFile(const QString &name) const +{ + return _M_files.value(name); +} + +QHash CodeModel::fileMap() const +{ + return _M_files; +} + +CodeModelItem CodeModel::findItem(const QStringList &qualifiedName, CodeModelItem scope) const +{ + for (int i=0; i(scope)) + { + if (NamespaceModelItem tmp_ns = ns->findNamespace(name)) { + scope = tmp_ns; + continue; + } + } + + if (ScopeModelItem ss = model_dynamic_cast(scope)) + { + if (ClassModelItem cs = ss->findClass(name)) + { + scope = cs; + } + else if (EnumModelItem es = ss->findEnum(name)) + { + if (i == qualifiedName.size () - 1) + return es->toItem(); + } + else if (TypeAliasModelItem tp = ss->findTypeAlias(name)) + { + if (i == qualifiedName.size () - 1) + return tp->toItem (); + } + else + { + // If we don't find the name in the scope chain we + // need to return an empty item to indicate failure... + return CodeModelItem(); + } + } + } + + return scope; +} + + +// --------------------------------------------------------------------------- +TypeInfo TypeInfo::combine (const TypeInfo &__lhs, const TypeInfo &__rhs) +{ + TypeInfo __result = __lhs; + + __result.setConstant (__result.isConstant () || __rhs.isConstant ()); + __result.setVolatile (__result.isVolatile () || __rhs.isVolatile ()); + __result.setReference (__result.isReference () || __rhs.isReference ()); + __result.setIndirections (__result.indirections () + __rhs.indirections ()); + __result.setArrayElements (__result.arrayElements () + __rhs.arrayElements ()); + + return __result; +} + +TypeInfo TypeInfo::resolveType (TypeInfo const &__type, CodeModelItem __scope) +{ + CodeModel *__model = __scope->model (); + Q_ASSERT (__model != 0); + + CodeModelItem __item = __model->findItem (__type.qualifiedName (), __scope); + + // Copy the type and replace with the proper qualified name. This + // only makes sence to do if we're actually getting a resolved + // type with a namespace. We only get this if the returned type + // has more than 2 entries in the qualified name... This test + // could be improved by returning if the type was found or not. + TypeInfo otherType(__type); + if (__item && __item->qualifiedName().size() > 1) { + otherType.setQualifiedName(__item->qualifiedName()); + } + + if (TypeAliasModelItem __alias = model_dynamic_cast (__item)) + return resolveType (TypeInfo::combine (__alias->type (), otherType), __scope); + + return otherType; +} + +QString TypeInfo::toString() const +{ + QString tmp; + + tmp += m_qualifiedName.join("::"); + if (isConstant()) + tmp += QLatin1String(" const"); + + if (isVolatile()) + tmp += QLatin1String(" volatile"); + + if (indirections()) + tmp += QString(indirections(), QLatin1Char('*')); + + if (isReference()) + tmp += QLatin1Char('&'); + + if (isFunctionPointer()) + { + tmp += QLatin1String(" (*)("); + for (int i=0; i(this)); +} + +int _CodeModelItem::kind() const +{ + return _M_kind; +} + +void _CodeModelItem::setKind(int kind) +{ + _M_kind = kind; +} + +QStringList _CodeModelItem::qualifiedName() const +{ + QStringList q = scope(); + + if (!name().isEmpty()) + q += name(); + + return q; +} + +QString _CodeModelItem::name() const +{ + return _M_name; +} + +void _CodeModelItem::setName(const QString &name) +{ + _M_name = name; +} + +QStringList _CodeModelItem::scope() const +{ + return _M_scope; +} + +void _CodeModelItem::setScope(const QStringList &scope) +{ + _M_scope = scope; +} + +QString _CodeModelItem::fileName() const +{ + return _M_fileName; +} + +void _CodeModelItem::setFileName(const QString &fileName) +{ + _M_fileName = fileName; +} + +FileModelItem _CodeModelItem::file() const +{ + return model()->findFile(fileName()); +} + +void _CodeModelItem::getStartPosition(int *line, int *column) +{ + *line = _M_startLine; + *column = _M_startColumn; +} + +void _CodeModelItem::setStartPosition(int line, int column) +{ + _M_startLine = line; + _M_startColumn = column; +} + +void _CodeModelItem::getEndPosition(int *line, int *column) +{ + *line = _M_endLine; + *column = _M_endColumn; +} + +void _CodeModelItem::setEndPosition(int line, int column) +{ + _M_endLine = line; + _M_endColumn = column; +} + +// --------------------------------------------------------------------------- +QStringList _ClassModelItem::baseClasses() const +{ + return _M_baseClasses; +} + +void _ClassModelItem::setBaseClasses(const QStringList &baseClasses) +{ + _M_baseClasses = baseClasses; +} + +TemplateParameterList _ClassModelItem::templateParameters() const +{ + return _M_templateParameters; +} + +void _ClassModelItem::setTemplateParameters(const TemplateParameterList &templateParameters) +{ + _M_templateParameters = templateParameters; +} + +void _ClassModelItem::addBaseClass(const QString &baseClass) +{ + _M_baseClasses.append(baseClass); +} + +void _ClassModelItem::removeBaseClass(const QString &baseClass) +{ + _M_baseClasses.removeAt(_M_baseClasses.indexOf(baseClass)); +} + +bool _ClassModelItem::extendsClass(const QString &name) const +{ + return _M_baseClasses.contains(name); +} + +void _ClassModelItem::setClassType(CodeModel::ClassType type) +{ + _M_classType = type; +} + +CodeModel::ClassType _ClassModelItem::classType() const +{ + return _M_classType; +} + +void _ClassModelItem::addPropertyDeclaration(const QString &propertyDeclaration) +{ + _M_propertyDeclarations << propertyDeclaration; +} + + +// --------------------------------------------------------------------------- +FunctionModelItem _ScopeModelItem::declaredFunction(FunctionModelItem item) +{ + FunctionList function_list = findFunctions(item->name()); + + foreach (FunctionModelItem fun, function_list) + { + if (fun->isSimilar(item)) + return fun; + } + + return FunctionModelItem(); +} + +ClassList _ScopeModelItem::classes() const +{ + return _M_classes.values(); +} + +TypeAliasList _ScopeModelItem::typeAliases() const +{ + return _M_typeAliases.values(); +} + +VariableList _ScopeModelItem::variables() const +{ + return _M_variables.values(); +} + +FunctionList _ScopeModelItem::functions() const +{ + return _M_functions.values(); +} + +void _ScopeModelItem::addEnumsDeclaration(const QString &enumsDeclaration) +{ + _M_enumsDeclarations << enumsDeclaration; +} + +FunctionDefinitionList _ScopeModelItem::functionDefinitions() const +{ + return _M_functionDefinitions.values(); +} + +EnumList _ScopeModelItem::enums() const +{ + return _M_enums.values(); +} + +void _ScopeModelItem::addClass(ClassModelItem item) +{ + QString name = item->name(); + int idx = name.indexOf("<"); + if (idx > 0) + _M_classes.insert(name.left(idx), item); + _M_classes.insert(name, item); +} + +void _ScopeModelItem::addFunction(FunctionModelItem item) +{ + _M_functions.insert(item->name(), item); +} + +void _ScopeModelItem::addFunctionDefinition(FunctionDefinitionModelItem item) +{ + _M_functionDefinitions.insert(item->name(), item); +} + +void _ScopeModelItem::addVariable(VariableModelItem item) +{ + _M_variables.insert(item->name(), item); +} + +void _ScopeModelItem::addTypeAlias(TypeAliasModelItem item) +{ + _M_typeAliases.insert(item->name(), item); +} + +void _ScopeModelItem::addEnum(EnumModelItem item) +{ + _M_enums.insert(item->name(), item); +} + +void _ScopeModelItem::removeClass(ClassModelItem item) +{ + QHash::Iterator it = _M_classes.find(item->name()); + + if (it != _M_classes.end() && it.value() == item) + _M_classes.erase(it); +} + +void _ScopeModelItem::removeFunction(FunctionModelItem item) +{ + QMultiHash::Iterator it = _M_functions.find(item->name()); + + while (it != _M_functions.end() && it.key() == item->name() + && it.value() != item) + { + ++it; + } + + if (it != _M_functions.end() && it.value() == item) + { + _M_functions.erase(it); + } +} + +void _ScopeModelItem::removeFunctionDefinition(FunctionDefinitionModelItem item) +{ + QMultiHash::Iterator it = _M_functionDefinitions.find(item->name()); + + while (it != _M_functionDefinitions.end() && it.key() == item->name() + && it.value() != item) + { + ++it; + } + + if (it != _M_functionDefinitions.end() && it.value() == item) + { + _M_functionDefinitions.erase(it); + } +} + +void _ScopeModelItem::removeVariable(VariableModelItem item) +{ + QHash::Iterator it = _M_variables.find(item->name()); + + if (it != _M_variables.end() && it.value() == item) + _M_variables.erase(it); +} + +void _ScopeModelItem::removeTypeAlias(TypeAliasModelItem item) +{ + QHash::Iterator it = _M_typeAliases.find(item->name()); + + if (it != _M_typeAliases.end() && it.value() == item) + _M_typeAliases.erase(it); +} + +void _ScopeModelItem::removeEnum(EnumModelItem item) +{ + QHash::Iterator it = _M_enums.find(item->name()); + + if (it != _M_enums.end() && it.value() == item) + _M_enums.erase(it); +} + +ClassModelItem _ScopeModelItem::findClass(const QString &name) const +{ + return _M_classes.value(name); +} + +VariableModelItem _ScopeModelItem::findVariable(const QString &name) const +{ + return _M_variables.value(name); +} + +TypeAliasModelItem _ScopeModelItem::findTypeAlias(const QString &name) const +{ + return _M_typeAliases.value(name); +} + +EnumModelItem _ScopeModelItem::findEnum(const QString &name) const +{ + return _M_enums.value(name); +} + +FunctionList _ScopeModelItem::findFunctions(const QString &name) const +{ + return _M_functions.values(name); +} + +FunctionDefinitionList _ScopeModelItem::findFunctionDefinitions(const QString &name) const +{ + return _M_functionDefinitions.values(name); +} + +// --------------------------------------------------------------------------- +NamespaceList _NamespaceModelItem::namespaces() const +{ + return _M_namespaces.values(); +} +void _NamespaceModelItem::addNamespace(NamespaceModelItem item) +{ + _M_namespaces.insert(item->name(), item); +} +void _NamespaceModelItem::removeNamespace(NamespaceModelItem item) +{ + QHash::Iterator it = _M_namespaces.find(item->name()); + + if (it != _M_namespaces.end() && it.value() == item) + _M_namespaces.erase(it); +} + +NamespaceModelItem _NamespaceModelItem::findNamespace(const QString &name) const +{ + return _M_namespaces.value(name); +} + +// --------------------------------------------------------------------------- +TypeInfo _ArgumentModelItem::type() const +{ + return _M_type; +} + +void _ArgumentModelItem::setType(const TypeInfo &type) +{ + _M_type = type; +} + +bool _ArgumentModelItem::defaultValue() const +{ + return _M_defaultValue; +} + +void _ArgumentModelItem::setDefaultValue(bool defaultValue) +{ + _M_defaultValue = defaultValue; +} + +// --------------------------------------------------------------------------- +bool _FunctionModelItem::isSimilar(FunctionModelItem other) const +{ + if (name() != other->name()) + return false; + + if (isConstant() != other->isConstant()) + return false; + + if (isVariadics() != other->isVariadics()) + return false; + + if (arguments().count() != other->arguments().count()) + return false; + + // ### check the template parameters + + for (int i=0; iarguments().at(i); + + if (arg1->type() != arg2->type()) + return false; + } + + return true; +} + +ArgumentList _FunctionModelItem::arguments() const +{ + return _M_arguments; +} + +void _FunctionModelItem::addArgument(ArgumentModelItem item) +{ + _M_arguments.append(item); +} + +void _FunctionModelItem::removeArgument(ArgumentModelItem item) +{ + _M_arguments.removeAt(_M_arguments.indexOf(item)); +} + +CodeModel::FunctionType _FunctionModelItem::functionType() const +{ + return _M_functionType; +} + +void _FunctionModelItem::setFunctionType(CodeModel::FunctionType functionType) +{ + _M_functionType = functionType; +} + +QString _FunctionModelItem::exception() const +{ + return _M_exception; +} + +void _FunctionModelItem::setException(const QString &exception) +{ + _M_exception = exception; +} + +bool _FunctionModelItem::isVariadics() const +{ + return _M_isVariadics; +} + +void _FunctionModelItem::setVariadics(bool isVariadics) +{ + _M_isVariadics = isVariadics; +} + +bool _FunctionModelItem::isVirtual() const +{ + return _M_isVirtual; +} + +void _FunctionModelItem::setVirtual(bool isVirtual) +{ + _M_isVirtual = isVirtual; +} + +bool _FunctionModelItem::isInline() const +{ + return _M_isInline; +} + +void _FunctionModelItem::setInline(bool isInline) +{ + _M_isInline = isInline; +} + +bool _FunctionModelItem::isExplicit() const +{ + return _M_isExplicit; +} + +void _FunctionModelItem::setExplicit(bool isExplicit) +{ + _M_isExplicit = isExplicit; +} + +bool _FunctionModelItem::isAbstract() const +{ + return _M_isAbstract; +} + +void _FunctionModelItem::setAbstract(bool isAbstract) +{ + _M_isAbstract = isAbstract; +} + +// Qt +bool _FunctionModelItem::isInvokable() const +{ + return _M_isInvokable; +} + +void _FunctionModelItem::setInvokable(bool isInvokable) +{ + _M_isInvokable = isInvokable; +} + +// --------------------------------------------------------------------------- +TypeInfo _TypeAliasModelItem::type() const +{ + return _M_type; +} + +void _TypeAliasModelItem::setType(const TypeInfo &type) +{ + _M_type = type; +} + +// --------------------------------------------------------------------------- +CodeModel::AccessPolicy _EnumModelItem::accessPolicy() const +{ + return _M_accessPolicy; +} + +void _EnumModelItem::setAccessPolicy(CodeModel::AccessPolicy accessPolicy) +{ + _M_accessPolicy = accessPolicy; +} + +EnumeratorList _EnumModelItem::enumerators() const +{ + return _M_enumerators; +} + +void _EnumModelItem::addEnumerator(EnumeratorModelItem item) +{ + _M_enumerators.append(item); +} + +void _EnumModelItem::removeEnumerator(EnumeratorModelItem item) +{ + _M_enumerators.removeAt(_M_enumerators.indexOf(item)); +} + +// --------------------------------------------------------------------------- +QString _EnumeratorModelItem::value() const +{ + return _M_value; +} + +void _EnumeratorModelItem::setValue(const QString &value) +{ + _M_value = value; +} + +// --------------------------------------------------------------------------- +TypeInfo _TemplateParameterModelItem::type() const +{ + return _M_type; +} + +void _TemplateParameterModelItem::setType(const TypeInfo &type) +{ + _M_type = type; +} + +bool _TemplateParameterModelItem::defaultValue() const +{ + return _M_defaultValue; +} + +void _TemplateParameterModelItem::setDefaultValue(bool defaultValue) +{ + _M_defaultValue = defaultValue; +} + +// --------------------------------------------------------------------------- +ScopeModelItem _ScopeModelItem::create(CodeModel *model) +{ + ScopeModelItem item(new _ScopeModelItem(model)); + return item; +} + +ClassModelItem _ClassModelItem::create(CodeModel *model) +{ + ClassModelItem item(new _ClassModelItem(model)); + return item; +} + +NamespaceModelItem _NamespaceModelItem::create(CodeModel *model) +{ + NamespaceModelItem item(new _NamespaceModelItem(model)); + return item; +} + +FileModelItem _FileModelItem::create(CodeModel *model) +{ + FileModelItem item(new _FileModelItem(model)); + return item; +} + +ArgumentModelItem _ArgumentModelItem::create(CodeModel *model) +{ + ArgumentModelItem item(new _ArgumentModelItem(model)); + return item; +} + +FunctionModelItem _FunctionModelItem::create(CodeModel *model) +{ + FunctionModelItem item(new _FunctionModelItem(model)); + return item; +} + +FunctionDefinitionModelItem _FunctionDefinitionModelItem::create(CodeModel *model) +{ + FunctionDefinitionModelItem item(new _FunctionDefinitionModelItem(model)); + return item; +} + +VariableModelItem _VariableModelItem::create(CodeModel *model) +{ + VariableModelItem item(new _VariableModelItem(model)); + return item; +} + +TypeAliasModelItem _TypeAliasModelItem::create(CodeModel *model) +{ + TypeAliasModelItem item(new _TypeAliasModelItem(model)); + return item; +} + +EnumModelItem _EnumModelItem::create(CodeModel *model) +{ + EnumModelItem item(new _EnumModelItem(model)); + return item; +} + +EnumeratorModelItem _EnumeratorModelItem::create(CodeModel *model) +{ + EnumeratorModelItem item(new _EnumeratorModelItem(model)); + return item; +} + +TemplateParameterModelItem _TemplateParameterModelItem::create(CodeModel *model) +{ + TemplateParameterModelItem item(new _TemplateParameterModelItem(model)); + return item; +} + +// --------------------------------------------------------------------------- +TypeInfo _MemberModelItem::type() const +{ + return _M_type; +} + +void _MemberModelItem::setType(const TypeInfo &type) +{ + _M_type = type; +} + +CodeModel::AccessPolicy _MemberModelItem::accessPolicy() const +{ + return _M_accessPolicy; +} + +void _MemberModelItem::setAccessPolicy(CodeModel::AccessPolicy accessPolicy) +{ + _M_accessPolicy = accessPolicy; +} + +bool _MemberModelItem::isStatic() const +{ + return _M_isStatic; +} + +void _MemberModelItem::setStatic(bool isStatic) +{ + _M_isStatic = isStatic; +} + +bool _MemberModelItem::isConstant() const +{ + return _M_isConstant; +} + +void _MemberModelItem::setConstant(bool isConstant) +{ + _M_isConstant = isConstant; +} + +bool _MemberModelItem::isVolatile() const +{ + return _M_isVolatile; +} + +void _MemberModelItem::setVolatile(bool isVolatile) +{ + _M_isVolatile = isVolatile; +} + +bool _MemberModelItem::isAuto() const +{ + return _M_isAuto; +} + +void _MemberModelItem::setAuto(bool isAuto) +{ + _M_isAuto = isAuto; +} + +bool _MemberModelItem::isFriend() const +{ + return _M_isFriend; +} + +void _MemberModelItem::setFriend(bool isFriend) +{ + _M_isFriend = isFriend; +} + +bool _MemberModelItem::isRegister() const +{ + return _M_isRegister; +} + +void _MemberModelItem::setRegister(bool isRegister) +{ + _M_isRegister = isRegister; +} + +bool _MemberModelItem::isExtern() const +{ + return _M_isExtern; +} + +void _MemberModelItem::setExtern(bool isExtern) +{ + _M_isExtern = isExtern; +} + +bool _MemberModelItem::isMutable() const +{ + return _M_isMutable; +} + +void _MemberModelItem::setMutable(bool isMutable) +{ + _M_isMutable = isMutable; +} + +// kate: space-indent on; indent-width 2; replace-tabs on; + diff --git a/generator_50/parser/codemodel.h b/generator_50/parser/codemodel.h new file mode 100644 index 00000000..c1b040ab --- /dev/null +++ b/generator_50/parser/codemodel.h @@ -0,0 +1,769 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef CODEMODEL_H +#define CODEMODEL_H + +#include "codemodel_fwd.h" +#include + +#include +#include +#include +#include +#include + +#define DECLARE_MODEL_NODE(k) \ + enum { __node_kind = Kind_##k }; \ + typedef CodeModelPointer Pointer; + +template +_Target model_static_cast(_Source item) +{ + typedef typename _Target::Type * _Target_pointer; + + _Target ptr (static_cast<_Target_pointer>(item.data())); + return ptr; +} + +class CodeModel +{ +public: + enum AccessPolicy + { + Public, + Protected, + Private + }; + + enum FunctionType + { + Normal, + Signal, + Slot + }; + + enum ClassType + { + Class, + Struct, + Union + }; + +public: + CodeModel(); + virtual ~CodeModel(); + + template _Target create() + { + typedef typename _Target::Type _Target_type; + + _Target result = _Target_type::create(this); + result->setCreationId(_M_creation_id++); + return result; + } + + FileList files() const; + NamespaceModelItem globalNamespace() const; + + void addFile(FileModelItem item); + void removeFile(FileModelItem item); + FileModelItem findFile(const QString &name) const; + QHash fileMap() const; + + CodeModelItem findItem(const QStringList &qualifiedName, CodeModelItem scope) const; + + void wipeout(); + +private: + QHash _M_files; + NamespaceModelItem _M_globalNamespace; + std::size_t _M_creation_id; + +private: + CodeModel(const CodeModel &other); + void operator = (const CodeModel &other); +}; + +class TypeInfo +{ +public: + TypeInfo(const TypeInfo &other) + : flags(other.flags), + m_qualifiedName(other.m_qualifiedName), + m_arrayElements(other.m_arrayElements), + m_arguments(other.m_arguments) + { + } + + TypeInfo(): + flags (0) {} + + QStringList qualifiedName() const { return m_qualifiedName; } + void setQualifiedName(const QStringList &qualified_name) { m_qualifiedName = qualified_name; } + + bool isConstant() const { return m_constant; } + void setConstant(bool is) { m_constant = is; } + + bool isVolatile() const { return m_volatile; } + void setVolatile(bool is) { m_volatile = is; } + + bool isReference() const { return m_reference; } + void setReference(bool is) { m_reference = is; } + + int indirections() const { return m_indirections; } + void setIndirections(int indirections) { m_indirections = indirections; } + + bool isFunctionPointer() const { return m_functionPointer; } + void setFunctionPointer(bool is) { m_functionPointer = is; } + + QStringList arrayElements() const { return m_arrayElements; } + void setArrayElements(const QStringList &arrayElements) { m_arrayElements = arrayElements; } + + QList arguments() const { return m_arguments; } + void setArguments(const QList &arguments); + void addArgument(const TypeInfo &arg) { m_arguments.append(arg); } + + bool operator==(const TypeInfo &other); + bool operator!=(const TypeInfo &other) { return !(*this==other); } + + // ### arrays and templates?? + + QString toString() const; + + static TypeInfo combine (const TypeInfo &__lhs, const TypeInfo &__rhs); + static TypeInfo resolveType (TypeInfo const &__type, CodeModelItem __scope); + +private: + union + { + uint flags; + + struct + { + uint m_constant: 1; + uint m_volatile: 1; + uint m_reference: 1; + uint m_functionPointer: 1; + uint m_indirections: 6; + uint m_padding: 22; + }; + }; + + QStringList m_qualifiedName; + QStringList m_arrayElements; + QList m_arguments; +}; + +class _CodeModelItem: public QSharedData +{ +public: + enum Kind + { + /* These are bit-flags resembling inheritance */ + Kind_Scope = 0x1, + Kind_Namespace = 0x2 | Kind_Scope, + Kind_Member = 0x4, + Kind_Function = 0x8 | Kind_Member, + KindMask = 0xf, + + /* These are for classes that are not inherited from */ + FirstKind = 0x8, + Kind_Argument = 1 << FirstKind, + Kind_Class = 2 << FirstKind | Kind_Scope, + Kind_Enum = 3 << FirstKind, + Kind_Enumerator = 4 << FirstKind, + Kind_File = 5 << FirstKind | Kind_Namespace, + Kind_FunctionDefinition = 6 << FirstKind | Kind_Function, + Kind_TemplateParameter = 7 << FirstKind, + Kind_TypeAlias = 8 << FirstKind, + Kind_Variable = 9 << FirstKind | Kind_Member + }; + +public: + virtual ~_CodeModelItem(); + + int kind() const; + + QStringList qualifiedName() const; + + QString name() const; + void setName(const QString &name); + + QStringList scope() const; + void setScope(const QStringList &scope); + + QString fileName() const; + void setFileName(const QString &fileName); + + FileModelItem file() const; + + void getStartPosition(int *line, int *column); + void setStartPosition(int line, int column); + + void getEndPosition(int *line, int *column); + void setEndPosition(int line, int column); + + inline std::size_t creationId() const { return _M_creation_id; } + inline void setCreationId(std::size_t creation_id) { _M_creation_id = creation_id; } + + inline CodeModel *model() const { return _M_model; } + + CodeModelItem toItem() const; + +protected: + _CodeModelItem(CodeModel *model, int kind); + void setKind(int kind); + +private: + CodeModel *_M_model; + int _M_kind; + int _M_startLine; + int _M_startColumn; + int _M_endLine; + int _M_endColumn; + std::size_t _M_creation_id; + QString _M_name; + QString _M_fileName; + QStringList _M_scope; + +private: + _CodeModelItem(const _CodeModelItem &other); + void operator = (const _CodeModelItem &other); +}; + +class _ScopeModelItem: public _CodeModelItem +{ +public: + DECLARE_MODEL_NODE(Scope) + + static ScopeModelItem create(CodeModel *model); + +public: + ClassList classes() const; + EnumList enums() const; + FunctionDefinitionList functionDefinitions() const; + FunctionList functions() const; + TypeAliasList typeAliases() const; + VariableList variables() const; + + void addClass(ClassModelItem item); + void addEnum(EnumModelItem item); + void addFunction(FunctionModelItem item); + void addFunctionDefinition(FunctionDefinitionModelItem item); + void addTypeAlias(TypeAliasModelItem item); + void addVariable(VariableModelItem item); + + void removeClass(ClassModelItem item); + void removeEnum(EnumModelItem item); + void removeFunction(FunctionModelItem item); + void removeFunctionDefinition(FunctionDefinitionModelItem item); + void removeTypeAlias(TypeAliasModelItem item); + void removeVariable(VariableModelItem item); + + ClassModelItem findClass(const QString &name) const; + EnumModelItem findEnum(const QString &name) const; + FunctionDefinitionList findFunctionDefinitions(const QString &name) const; + FunctionList findFunctions(const QString &name) const; + TypeAliasModelItem findTypeAlias(const QString &name) const; + VariableModelItem findVariable(const QString &name) const; + + void addEnumsDeclaration(const QString &enumsDeclaration); + QStringList enumsDeclarations() const { return _M_enumsDeclarations; } + + inline QHash classMap() const { return _M_classes; } + inline QHash enumMap() const { return _M_enums; } + inline QHash typeAliasMap() const { return _M_typeAliases; } + inline QHash variableMap() const { return _M_variables; } + inline QMultiHash functionDefinitionMap() const { return _M_functionDefinitions; } + inline QMultiHash functionMap() const { return _M_functions; } + + FunctionModelItem declaredFunction(FunctionModelItem item); + +protected: + _ScopeModelItem(CodeModel *model, int kind = __node_kind) + : _CodeModelItem(model, kind) {} + +private: + QHash _M_classes; + QHash _M_enums; + QHash _M_typeAliases; + QHash _M_variables; + QMultiHash _M_functionDefinitions; + QMultiHash _M_functions; + +private: + _ScopeModelItem(const _ScopeModelItem &other); + void operator = (const _ScopeModelItem &other); + + QStringList _M_enumsDeclarations; +}; + +class _ClassModelItem: public _ScopeModelItem +{ +public: + DECLARE_MODEL_NODE(Class) + + static ClassModelItem create(CodeModel *model); + +public: + QStringList baseClasses() const; + + void setBaseClasses(const QStringList &baseClasses); + void addBaseClass(const QString &baseClass); + void removeBaseClass(const QString &baseClass); + + TemplateParameterList templateParameters() const; + void setTemplateParameters(const TemplateParameterList &templateParameters); + + bool extendsClass(const QString &name) const; + + void setClassType(CodeModel::ClassType type); + CodeModel::ClassType classType() const; + + void addPropertyDeclaration(const QString &propertyDeclaration); + QStringList propertyDeclarations() const { return _M_propertyDeclarations; } + +protected: + _ClassModelItem(CodeModel *model, int kind = __node_kind) + : _ScopeModelItem(model, kind), _M_classType(CodeModel::Class) {} + +private: + QStringList _M_baseClasses; + TemplateParameterList _M_templateParameters; + CodeModel::ClassType _M_classType; + + QStringList _M_propertyDeclarations; + +private: + _ClassModelItem(const _ClassModelItem &other); + void operator = (const _ClassModelItem &other); +}; + +class _NamespaceModelItem: public _ScopeModelItem +{ +public: + DECLARE_MODEL_NODE(Namespace) + + static NamespaceModelItem create(CodeModel *model); + +public: + NamespaceList namespaces() const; + + void addNamespace(NamespaceModelItem item); + void removeNamespace(NamespaceModelItem item); + + NamespaceModelItem findNamespace(const QString &name) const; + + inline QHash namespaceMap() const { return _M_namespaces; }; + +protected: + _NamespaceModelItem(CodeModel *model, int kind = __node_kind) + : _ScopeModelItem(model, kind) {} + +private: + QHash _M_namespaces; + +private: + _NamespaceModelItem(const _NamespaceModelItem &other); + void operator = (const _NamespaceModelItem &other); +}; + +class _FileModelItem: public _NamespaceModelItem +{ +public: + DECLARE_MODEL_NODE(File) + + static FileModelItem create(CodeModel *model); + +protected: + _FileModelItem(CodeModel *model, int kind = __node_kind) + : _NamespaceModelItem(model, kind) {} + +private: + _FileModelItem(const _FileModelItem &other); + void operator = (const _FileModelItem &other); +}; + +class _ArgumentModelItem: public _CodeModelItem +{ +public: + DECLARE_MODEL_NODE(Argument) + + static ArgumentModelItem create(CodeModel *model); + +public: + TypeInfo type() const; + void setType(const TypeInfo &type); + + bool defaultValue() const; + void setDefaultValue(bool defaultValue); + + QString defaultValueExpression() const { return _M_defaultValueExpression; } + void setDefaultValueExpression(const QString &expr) { _M_defaultValueExpression = expr; } + +protected: + _ArgumentModelItem(CodeModel *model, int kind = __node_kind) + : _CodeModelItem(model, kind), _M_defaultValue(false) {} + +private: + TypeInfo _M_type; + QString _M_defaultValueExpression; + bool _M_defaultValue; + +private: + _ArgumentModelItem(const _ArgumentModelItem &other); + void operator = (const _ArgumentModelItem &other); +}; + +class _MemberModelItem: public _CodeModelItem +{ +public: + DECLARE_MODEL_NODE(Member) + + bool isConstant() const; + void setConstant(bool isConstant); + + bool isVolatile() const; + void setVolatile(bool isVolatile); + + bool isStatic() const; + void setStatic(bool isStatic); + + bool isAuto() const; + void setAuto(bool isAuto); + + bool isFriend() const; + void setFriend(bool isFriend); + + bool isRegister() const; + void setRegister(bool isRegister); + + bool isExtern() const; + void setExtern(bool isExtern); + + bool isMutable() const; + void setMutable(bool isMutable); + + CodeModel::AccessPolicy accessPolicy() const; + void setAccessPolicy(CodeModel::AccessPolicy accessPolicy); + + TemplateParameterList templateParameters() const + { return _M_templateParameters; } + + void setTemplateParameters(const TemplateParameterList &templateParameters) + { _M_templateParameters = templateParameters; } + + TypeInfo type() const; + void setType(const TypeInfo &type); + +protected: + _MemberModelItem(CodeModel *model, int kind) + : _CodeModelItem(model, kind), + _M_accessPolicy(CodeModel::Public), + _M_flags(0) + {} + +private: + TemplateParameterList _M_templateParameters; + TypeInfo _M_type; + CodeModel::AccessPolicy _M_accessPolicy; + union + { + struct + { + uint _M_isConstant: 1; + uint _M_isVolatile: 1; + uint _M_isStatic: 1; + uint _M_isAuto: 1; + uint _M_isFriend: 1; + uint _M_isRegister: 1; + uint _M_isExtern: 1; + uint _M_isMutable: 1; + }; + uint _M_flags; + }; + +}; + +class _FunctionModelItem: public _MemberModelItem +{ +public: + DECLARE_MODEL_NODE(Function) + + static FunctionModelItem create(CodeModel *model); + +public: + ArgumentList arguments() const; + + void addArgument(ArgumentModelItem item); + void removeArgument(ArgumentModelItem item); + + CodeModel::FunctionType functionType() const; + void setFunctionType(CodeModel::FunctionType functionType); + + QString exception() const; + void setException(const QString &exception); + + bool isVirtual() const; + void setVirtual(bool isVirtual); + + bool isInline() const; + void setInline(bool isInline); + + bool isExplicit() const; + void setExplicit(bool isExplicit); + + bool isInvokable() const; // Qt + void setInvokable(bool isInvokable); // Qt + + bool isAbstract() const; + void setAbstract(bool isAbstract); + + bool isVariadics() const; + void setVariadics(bool isVariadics); + + bool isSimilar(FunctionModelItem other) const; + +protected: + _FunctionModelItem(CodeModel *model, int kind = __node_kind) + : _MemberModelItem(model, kind), + _M_functionType(CodeModel::Normal), + _M_flags(0) + {} + +private: + ArgumentList _M_arguments; + CodeModel::FunctionType _M_functionType; + QString _M_exception; + union + { + struct + { + uint _M_isVirtual: 1; + uint _M_isInline: 1; + uint _M_isAbstract: 1; + uint _M_isExplicit: 1; + uint _M_isVariadics: 1; + uint _M_isInvokable : 1; // Qt + }; + uint _M_flags; + }; + +private: + _FunctionModelItem(const _FunctionModelItem &other); + void operator = (const _FunctionModelItem &other); +}; + +class _FunctionDefinitionModelItem: public _FunctionModelItem +{ +public: + DECLARE_MODEL_NODE(FunctionDefinition) + + static FunctionDefinitionModelItem create(CodeModel *model); + +protected: + _FunctionDefinitionModelItem(CodeModel *model, int kind = __node_kind) + : _FunctionModelItem(model, kind) {} + +private: + _FunctionDefinitionModelItem(const _FunctionDefinitionModelItem &other); + void operator = (const _FunctionDefinitionModelItem &other); +}; + +class _VariableModelItem: public _MemberModelItem +{ +public: + DECLARE_MODEL_NODE(Variable) + + static VariableModelItem create(CodeModel *model); + +protected: + _VariableModelItem(CodeModel *model, int kind = __node_kind) + : _MemberModelItem(model, kind) + {} + +private: + _VariableModelItem(const _VariableModelItem &other); + void operator = (const _VariableModelItem &other); +}; + +class _TypeAliasModelItem: public _CodeModelItem +{ +public: + DECLARE_MODEL_NODE(TypeAlias) + + static TypeAliasModelItem create(CodeModel *model); + +public: + TypeInfo type() const; + void setType(const TypeInfo &type); + +protected: + _TypeAliasModelItem(CodeModel *model, int kind = __node_kind) + : _CodeModelItem(model, kind) {} + +private: + TypeInfo _M_type; + +private: + _TypeAliasModelItem(const _TypeAliasModelItem &other); + void operator = (const _TypeAliasModelItem &other); +}; + +class _EnumModelItem: public _CodeModelItem +{ +public: + DECLARE_MODEL_NODE(Enum) + + static EnumModelItem create(CodeModel *model); + +public: + CodeModel::AccessPolicy accessPolicy() const; + void setAccessPolicy(CodeModel::AccessPolicy accessPolicy); + + EnumeratorList enumerators() const; + void addEnumerator(EnumeratorModelItem item); + void removeEnumerator(EnumeratorModelItem item); + +protected: + _EnumModelItem(CodeModel *model, int kind = __node_kind) + : _CodeModelItem(model, kind), + _M_accessPolicy(CodeModel::Public) + {} + +private: + CodeModel::AccessPolicy _M_accessPolicy; + EnumeratorList _M_enumerators; + +private: + _EnumModelItem(const _EnumModelItem &other); + void operator = (const _EnumModelItem &other); +}; + +class _EnumeratorModelItem: public _CodeModelItem +{ +public: + DECLARE_MODEL_NODE(Enumerator) + + static EnumeratorModelItem create(CodeModel *model); + +public: + QString value() const; + void setValue(const QString &value); + +protected: + _EnumeratorModelItem(CodeModel *model, int kind = __node_kind) + : _CodeModelItem(model, kind) {} + +private: + QString _M_value; + +private: + _EnumeratorModelItem(const _EnumeratorModelItem &other); + void operator = (const _EnumeratorModelItem &other); +}; + +class _TemplateParameterModelItem: public _CodeModelItem +{ +public: + DECLARE_MODEL_NODE(TemplateParameter) + + static TemplateParameterModelItem create(CodeModel *model); + +public: + TypeInfo type() const; + void setType(const TypeInfo &type); + + bool defaultValue() const; + void setDefaultValue(bool defaultValue); + +protected: + _TemplateParameterModelItem(CodeModel *model, int kind = __node_kind) + : _CodeModelItem(model, kind), _M_defaultValue(false) {} + +private: + TypeInfo _M_type; + bool _M_defaultValue; + +private: + _TemplateParameterModelItem(const _TemplateParameterModelItem &other); + void operator = (const _TemplateParameterModelItem &other); +}; + +template +_Target model_safe_cast(_Source item) +{ + typedef typename _Target::Type * _Target_pointer; + typedef typename _Source::Type * _Source_pointer; + + _Source_pointer source = item.data(); + if (source && source->kind() == _Target_pointer(0)->__node_kind) + { + _Target ptr(static_cast<_Target_pointer>(source)); + return ptr; + } + + return _Target(); +} + +template +_Target model_dynamic_cast(_Source item) +{ + typedef typename _Target::Type * _Target_pointer; + typedef typename _Source::Type * _Source_pointer; + + _Source_pointer source = item.data(); + if (source && (source->kind() == _Target_pointer(0)->__node_kind + || (int(_Target_pointer(0)->__node_kind) <= int(_CodeModelItem::KindMask) + && ((source->kind() & _Target_pointer(0)->__node_kind) + == _Target_pointer(0)->__node_kind)))) + { + _Target ptr(static_cast<_Target_pointer>(source)); + return ptr; + } + + return _Target(); +} +#endif // CODEMODEL_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/codemodel_finder.cpp b/generator_50/parser/codemodel_finder.cpp new file mode 100644 index 00000000..982f930b --- /dev/null +++ b/generator_50/parser/codemodel_finder.cpp @@ -0,0 +1,122 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#include "codemodel_finder.h" +#include "codemodel.h" +#include "binder.h" + +CodeModelFinder::CodeModelFinder(CodeModel *model, Binder *binder) + : _M_model(model), + _M_binder (binder), + _M_token_stream(binder->tokenStream ()), + name_cc(_M_binder), + _M_resolve_policy(ResolveItem) +{ +} + +CodeModelFinder::~CodeModelFinder() +{ +} + +ScopeModelItem CodeModelFinder::resolveScope(NameAST *name, ScopeModelItem scope) +{ + Q_ASSERT(scope.data() != 0); + + ResolvePolicy saved_resolve_policy = _M_resolve_policy; + _M_resolve_policy = ResolveScope; + + ScopeModelItem old = changeCurrentScope(scope); + + visit(name); + ScopeModelItem result = _M_current_scope; + + changeCurrentScope(old); // restore + + _M_resolve_policy = saved_resolve_policy; + + return result; +} + +ScopeModelItem CodeModelFinder::changeCurrentScope(ScopeModelItem scope) +{ + ScopeModelItem old = _M_current_scope; + _M_current_scope = scope; + return old; +} + +void CodeModelFinder::visitName(NameAST *node) +{ + visitNodes(this, node->qualified_names); + + if (_M_resolve_policy == ResolveItem) + visit(node->unqualified_name); +} + +void CodeModelFinder::visitUnqualifiedName(UnqualifiedNameAST *node) +{ + if (!_M_current_scope) + { + // nothing to do + return; + } + + name_cc.run(node); + QString id = name_cc.name(); + + if (ClassModelItem klass = _M_current_scope->findClass(id)) + { + _M_current_scope = klass; + } + else if (NamespaceModelItem parentNamespace = model_safe_cast(_M_current_scope)) + { + NamespaceModelItem ns = parentNamespace->findNamespace(id); + _M_current_scope = model_static_cast(ns); + } + else if (FileModelItem file = model_safe_cast(_M_current_scope)) + { + NamespaceModelItem ns = file->findNamespace(id); + _M_current_scope = model_static_cast(ns); + } + } + +// kate: space-indent on; indent-width 2; replace-tabs on; + diff --git a/generator_50/parser/codemodel_finder.h b/generator_50/parser/codemodel_finder.h new file mode 100644 index 00000000..79af1f9b --- /dev/null +++ b/generator_50/parser/codemodel_finder.h @@ -0,0 +1,87 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef CODEMODEL_FINDER_H +#define CODEMODEL_FINDER_H + +#include "default_visitor.h" +#include "codemodel_fwd.h" +#include "name_compiler.h" + +class TokenStream; +class Binder; + +class CodeModelFinder: protected DefaultVisitor +{ + enum ResolvePolicy + { + ResolveScope, + ResolveItem + }; + +public: + CodeModelFinder(CodeModel *model, Binder *binder); + virtual ~CodeModelFinder(); + + ScopeModelItem resolveScope(NameAST *name, ScopeModelItem scope); + + inline CodeModel *model() const { return _M_model; } + +protected: + virtual void visitName(NameAST *node); + virtual void visitUnqualifiedName(UnqualifiedNameAST *node); + + ScopeModelItem changeCurrentScope(ScopeModelItem scope); + +private: + CodeModel *_M_model; + Binder *_M_binder; + TokenStream *_M_token_stream; + NameCompiler name_cc; + + ScopeModelItem _M_current_scope; + ResolvePolicy _M_resolve_policy; +}; + +#endif // CODEMODEL_FINDER_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/codemodel_fwd.h b/generator_50/parser/codemodel_fwd.h new file mode 100644 index 00000000..35e73ed0 --- /dev/null +++ b/generator_50/parser/codemodel_fwd.h @@ -0,0 +1,97 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef CODEMODEL_FWD_H +#define CODEMODEL_FWD_H + +#include +#include + +// forward declarations +class CodeModel; +class _ArgumentModelItem; +class _ClassModelItem; +class _CodeModelItem; +class _EnumModelItem; +class _EnumeratorModelItem; +class _FileModelItem; +class _FunctionDefinitionModelItem; +class _FunctionModelItem; +class _NamespaceModelItem; +class _ScopeModelItem; +class _TemplateParameterModelItem; +class _TypeAliasModelItem; +class _VariableModelItem; +class _MemberModelItem; +class TypeInfo; + +typedef CodeModelPointer<_ArgumentModelItem> ArgumentModelItem; +typedef CodeModelPointer<_ClassModelItem> ClassModelItem; +typedef CodeModelPointer<_CodeModelItem> CodeModelItem; +typedef CodeModelPointer<_EnumModelItem> EnumModelItem; +typedef CodeModelPointer<_EnumeratorModelItem> EnumeratorModelItem; +typedef CodeModelPointer<_FileModelItem> FileModelItem; +typedef CodeModelPointer<_FunctionDefinitionModelItem> FunctionDefinitionModelItem; +typedef CodeModelPointer<_FunctionModelItem> FunctionModelItem; +typedef CodeModelPointer<_NamespaceModelItem> NamespaceModelItem; +typedef CodeModelPointer<_ScopeModelItem> ScopeModelItem; +typedef CodeModelPointer<_TemplateParameterModelItem> TemplateParameterModelItem; +typedef CodeModelPointer<_TypeAliasModelItem> TypeAliasModelItem; +typedef CodeModelPointer<_VariableModelItem> VariableModelItem; +typedef CodeModelPointer<_MemberModelItem> MemberModelItem; + +typedef QList ArgumentList; +typedef QList ClassList; +typedef QList ItemList; +typedef QList EnumList; +typedef QList EnumeratorList; +typedef QList FileList; +typedef QList FunctionDefinitionList; +typedef QList FunctionList; +typedef QList NamespaceList; +typedef QList ScopeList; +typedef QList TemplateParameterList; +typedef QList TypeAliasList; +typedef QList VariableList; +typedef QList MemberList; + +#endif // CODEMODEL_FWD_H diff --git a/generator_50/parser/codemodel_pointer.h b/generator_50/parser/codemodel_pointer.h new file mode 100644 index 00000000..3153c5ad --- /dev/null +++ b/generator_50/parser/codemodel_pointer.h @@ -0,0 +1,150 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef CODEMODEL_POINTER_H +#define CODEMODEL_POINTER_H + +#include + + +// Since the atomic API changed in 4.4 we need to hack a little here +// to make it work with both 4.3 and 4.4 until that is not required + +#if QT_VERSION >= 0x040400 + +# include +template class CodeModelPointer: public QAtomicPointer + +#else + +template class CodeModelPointer + +#endif // QT_VERSION >= 0x040400 + +{ +public: + typedef T Type; + +#if QT_VERSION < 0x040400 + inline T &operator*() { return *d; } + inline const T &operator*() const { return *d; } + inline T *operator->() { return d; } + inline const T *operator->() const { return d; } + inline operator T *() { return d; } + inline operator const T *() const { return d; } + inline T *data() { return d; } + inline const T *data() const { return d; } + inline const T *constData() const { return d; } + + inline bool operator==(const CodeModelPointer &other) const { return d == other.d; } + inline bool operator!=(const CodeModelPointer &other) const { return d != other.d; } + inline bool operator==(const T *ptr) const { return d == ptr; } + inline bool operator!=(const T *ptr) const { return d != ptr; } + + inline CodeModelPointer() { d = 0; } + inline ~CodeModelPointer() { if (d && !d->ref.deref()) delete d; } + + explicit CodeModelPointer(T *data); + inline CodeModelPointer(const CodeModelPointer &o) : d(o.d) { if (d) d->ref.ref(); } + inline CodeModelPointer & operator=(const CodeModelPointer &o) { + if (o.d != d) { + T *x = o.d; + if (x) x->ref.ref(); + x = qAtomicSetPtr(&d, x); + if (x && !x->ref.deref()) + delete x; + } + return *this; + } + inline CodeModelPointer &operator=(T *o) { + if (o != d) { + T *x = o; + if (x) x->ref.ref(); + x = qAtomicSetPtr(&d, x); + if (x && !x->ref.deref()) + delete x; + } + return *this; + } + + inline bool operator!() const { return !d; } + +private: + T *d; +#else // QT_VERSION < 0x040400 + + inline CodeModelPointer(T *value = 0) : QAtomicPointer(value) {} + + inline CodeModelPointer &operator=(T *o) { + QAtomicPointer::operator=(o); + return *this; + } + + inline T *data() { return (T *) *this; } + inline const T *data() const { return (const T *) *this; } + inline const T *constData() const { return (const T *) *this; } + + +# if QT_VERSION >= 0x050000 + operator T * () const { + return QAtomicPointer::load(); + } + inline bool operator!() const { return !(bool)*this; } + operator bool () const { + return (bool)QAtomicPointer::load(); + } + + inline T *operator->() { return QAtomicPointer::load(); } + inline const T *operator->() const { return QAtomicPointer::load(); } + inline bool operator==(const CodeModelPointer &other) const { return (T*)*this == (T*)other; } + inline bool operator!=(const CodeModelPointer &other) const { return (T*)*this != (T*)other; } + inline bool operator==(const T *ptr) const { return (T*)*this == ptr; } + inline bool operator!=(const T *ptr) const { return (T*)*this != ptr; } +# endif +#endif +}; + +#if QT_VERSION < 0x040400 +template +Q_INLINE_TEMPLATE CodeModelPointer::CodeModelPointer(T *adata) : d(adata) +{ if (d) d->ref.ref(); } +#endif +#endif // CODEMODEL_POINTER_H diff --git a/generator_50/parser/compiler_utils.cpp b/generator_50/parser/compiler_utils.cpp new file mode 100644 index 00000000..536c50c2 --- /dev/null +++ b/generator_50/parser/compiler_utils.cpp @@ -0,0 +1,69 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#include "compiler_utils.h" +#include "type_compiler.h" +#include "name_compiler.h" +#include "declarator_compiler.h" +#include "ast.h" +#include "binder.h" + +TypeInfo CompilerUtils::typeDescription(TypeSpecifierAST *type_specifier, DeclaratorAST *declarator, Binder *binder) +{ + TypeCompiler type_cc (binder); + DeclaratorCompiler decl_cc (binder); + + type_cc.run (type_specifier); + decl_cc.run (declarator); + + TypeInfo typeInfo; + typeInfo.setQualifiedName (type_cc.qualifiedName ()); + typeInfo.setConstant (type_cc.isConstant ()); + typeInfo.setVolatile (type_cc.isVolatile ()); + typeInfo.setReference (decl_cc.isReference ()); + typeInfo.setIndirections (decl_cc.indirection ()); + typeInfo.setArrayElements (decl_cc.arrayElements ()); + + return typeInfo; +} + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/compiler_utils.h b/generator_50/parser/compiler_utils.h new file mode 100644 index 00000000..183ba94d --- /dev/null +++ b/generator_50/parser/compiler_utils.h @@ -0,0 +1,66 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef COMPILER_UTILS_H +#define COMPILER_UTILS_H + +#include + +#include "codemodel.h" + +class QString; +class QStringList; +struct TypeSpecifierAST; +struct DeclaratorAST; +class TokenStream; +class Binder; + +namespace CompilerUtils +{ + +TypeInfo typeDescription(TypeSpecifierAST *type_specifier, DeclaratorAST *declarator, Binder *binder); + +} // namespace CompilerUtils + +#endif // COMPILER_UTILS_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/control.cpp b/generator_50/parser/control.cpp new file mode 100644 index 00000000..a8e6a35e --- /dev/null +++ b/generator_50/parser/control.cpp @@ -0,0 +1,147 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#include "control.h" +#include "lexer.h" + +Control::Control() + : current_context(0), + _M_skipFunctionBody(false), + _M_lexer(0), + _M_parser(0) +{ + pushContext(); + + declareTypedef(findOrInsertName("__builtin_va_list", + strlen("__builtin_va_list")), 0); +} + +Control::~Control() +{ + popContext(); + + Q_ASSERT(current_context == 0); +} + +Lexer *Control::changeLexer(Lexer *lexer) +{ + Lexer *old = _M_lexer; + _M_lexer = lexer; + return old; +} + +Parser *Control::changeParser(Parser *parser) +{ + Parser *old = _M_parser; + _M_parser = parser; + return old; +} + +Type *Control::lookupType(const NameSymbol *name) const +{ + Q_ASSERT(current_context != 0); + + return current_context->resolve(name); +} + +void Control::declare(const NameSymbol *name, Type *type) +{ + //printf("*** Declare:"); + //printSymbol(name); + //putchar('\n'); + Q_ASSERT(current_context != 0); + + current_context->bind(name, type); +} + +void Control::pushContext() +{ + // printf("+Context\n"); + Context *new_context = new Context; + new_context->parent = current_context; + current_context = new_context; +} + +void Control::popContext() +{ + // printf("-Context\n"); + Q_ASSERT(current_context != 0); + + Context *old_context = current_context; + current_context = current_context->parent; + + delete old_context; +} + +void Control::declareTypedef(const NameSymbol *name, Declarator *d) +{ + // printf("declared typedef:"); + // printSymbol(name); + // printf("\n"); + stl_typedef_table.insert(name, d); +} + +bool Control::isTypedef(const NameSymbol *name) const +{ + // printf("is typedef:"); + // printSymbol(name); + // printf("= %d\n", (stl_typedef_table.find(name) != stl_typedef_table.end())); + + return stl_typedef_table.contains(name); +} + +QList Control::errorMessages () const +{ + return _M_error_messages; +} + +void Control::clearErrorMessages () +{ + _M_error_messages.clear (); +} + +void Control::reportError (const ErrorMessage &errmsg) +{ + _M_error_messages.append(errmsg); +} + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/control.h b/generator_50/parser/control.h new file mode 100644 index 00000000..c3951714 --- /dev/null +++ b/generator_50/parser/control.h @@ -0,0 +1,152 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef CONTROL_H +#define CONTROL_H + +#include "symbol.h" +#include "smallobject.h" + +#include + +struct Declarator; +struct Type; +class Lexer; +class Parser; + +struct Context +{ + Context *parent; + + inline void bind(const NameSymbol *name, Type *type) + { symbol_table.insert(name, type); } + + inline Type *resolve(const NameSymbol *name) const + { + if (Type *type = symbol_table.value(name)) + return type; + else if (parent) + return parent->resolve(name); + + return 0; + } + + typedef QHash symbol_table_t; + + symbol_table_t symbol_table; +}; + +class Control +{ +public: + class ErrorMessage + { + public: + ErrorMessage (): + _M_line (0), + _M_column (0) {} + + inline int line () const { return _M_line; } + inline void setLine (int line) { _M_line = line; } + + inline int column () const { return _M_column; } + inline void setColumn (int column) { _M_column = column; } + + inline QString fileName () const { return _M_fileName; } + inline void setFileName (const QString &fileName) { _M_fileName = fileName; } + + inline QString message () const { return _M_message; } + inline void setMessage (const QString &message) { _M_message = message; } + + private: + int _M_line; + int _M_column; + QString _M_fileName; + QString _M_message; + }; + + Control(); + ~Control(); + + inline bool skipFunctionBody() const { return _M_skipFunctionBody; } + inline void setSkipFunctionBody(bool skip) { _M_skipFunctionBody = skip; } + + Lexer *changeLexer(Lexer *lexer); + Parser *changeParser(Parser *parser); + + Lexer *currentLexer() const { return _M_lexer; } + Parser *currentParser() const { return _M_parser; } + + Context *current_context; + + inline Context *currentContext() const + { return current_context; } + + void pushContext(); + void popContext(); + + Type *lookupType(const NameSymbol *name) const; + void declare(const NameSymbol *name, Type *type); + + inline const NameSymbol *findOrInsertName(const char *data, size_t count) + { return name_table.findOrInsert(data, count); } + + void declareTypedef(const NameSymbol *name, Declarator *d); + bool isTypedef(const NameSymbol *name) const; + + void reportError (const ErrorMessage &errmsg); + QList errorMessages () const; + void clearErrorMessages (); + +private: + NameTable name_table; + QHash stl_typedef_table; + bool _M_skipFunctionBody; + Lexer *_M_lexer; + Parser *_M_parser; + + QList _M_error_messages; +}; + +#endif // CONTROL_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/declarator_compiler.cpp b/generator_50/parser/declarator_compiler.cpp new file mode 100644 index 00000000..e4f17fca --- /dev/null +++ b/generator_50/parser/declarator_compiler.cpp @@ -0,0 +1,179 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#include "declarator_compiler.h" +#include "name_compiler.h" +#include "type_compiler.h" +#include "compiler_utils.h" +#include "lexer.h" +#include "binder.h" +#include "tokens.h" + +#include + +DeclaratorCompiler::DeclaratorCompiler(Binder *binder) + : _M_binder (binder), _M_token_stream (binder->tokenStream ()) +{ +} + +void DeclaratorCompiler::run(DeclaratorAST *node) +{ + _M_id.clear(); + _M_parameters.clear(); + _M_array.clear(); + _M_function = false; + _M_reference = false; + _M_variadics = false; + _M_indirection = 0; + + if (node) + { + NameCompiler name_cc(_M_binder); + + DeclaratorAST *decl = node; + while (decl && decl->sub_declarator) + decl = decl->sub_declarator; + + Q_ASSERT (decl != 0); + + name_cc.run(decl->id); + _M_id = name_cc.name(); + _M_function = (node->parameter_declaration_clause != 0); + if (node->parameter_declaration_clause && node->parameter_declaration_clause->ellipsis) + _M_variadics = true; + + visitNodes(this, node->ptr_ops); + visit(node->parameter_declaration_clause); + + if (const ListNode *it = node->array_dimensions) + { + it->toFront(); + const ListNode *end = it; + + do + { + QString elt; + if (ExpressionAST *expr = it->element) + { + const Token &start_token = _M_token_stream->token((int) expr->start_token); + const Token &end_token = _M_token_stream->token((int) expr->end_token); + + elt += QString::fromUtf8(&start_token.text[start_token.position], + (int) (end_token.position - start_token.position)).trimmed(); + } + + _M_array.append (elt); + + it = it->next; + } + while (it != end); + } + } +} + +void DeclaratorCompiler::visitPtrOperator(PtrOperatorAST *node) +{ + std::size_t op = _M_token_stream->kind(node->op); + + switch (op) + { + case '&': + _M_reference = true; + break; + case '*': + ++_M_indirection; + break; + + default: + break; + } + + if (node->mem_ptr) + { +#if defined(__GNUC__) +#warning "ptr to mem -- not implemented" +#endif + } +} + +void DeclaratorCompiler::visitParameterDeclaration(ParameterDeclarationAST *node) +{ + Parameter p; + + TypeCompiler type_cc(_M_binder); + DeclaratorCompiler decl_cc(_M_binder); + + decl_cc.run(node->declarator); + + p.name = decl_cc.id(); + p.type = CompilerUtils::typeDescription(node->type_specifier, node->declarator, _M_binder); + + // ignore case a single void parameter + if (_M_parameters.isEmpty() && p.name.isEmpty() && p.type.toString() == "void") + { + return; + } + + if (node->expression != 0) + { + const Token &start = _M_token_stream->token((int) node->expression->start_token); + const Token &end = _M_token_stream->token((int) node->expression->end_token); + int length = (int) (end.position - start.position); + + p.defaultValueExpression = QString(); + QString source = QString::fromUtf8(&start.text[start.position], length).trimmed(); + QStringList list = source.split("\n"); + + + for (int i=0; i 0; + + } + + _M_parameters.append(p); +} + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/declarator_compiler.h b/generator_50/parser/declarator_compiler.h new file mode 100644 index 00000000..9ec87969 --- /dev/null +++ b/generator_50/parser/declarator_compiler.h @@ -0,0 +1,100 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef DECLARATOR_COMPILER_H +#define DECLARATOR_COMPILER_H + +#include "default_visitor.h" +#include "codemodel.h" + +#include +#include + +class TokenStream; +class Binder; + +class DeclaratorCompiler: protected DefaultVisitor +{ +public: + struct Parameter + { + TypeInfo type; + QString name; + QString defaultValueExpression; + bool defaultValue; + + Parameter(): defaultValue(false) {} + }; + +public: + DeclaratorCompiler(Binder *binder); + + void run(DeclaratorAST *node); + + inline QString id() const { return _M_id; } + inline QStringList arrayElements() const { return _M_array; } + inline bool isFunction() const { return _M_function; } + inline bool isVariadics() const { return _M_variadics; } + inline bool isReference() const { return _M_reference; } + inline int indirection() const { return _M_indirection; } + inline QList parameters() const { return _M_parameters; } + +protected: + virtual void visitPtrOperator(PtrOperatorAST *node); + virtual void visitParameterDeclaration(ParameterDeclarationAST *node); + +private: + Binder *_M_binder; + TokenStream *_M_token_stream; + + bool _M_function; + bool _M_reference; + bool _M_variadics; + int _M_indirection; + QString _M_id; + QStringList _M_array; + QList _M_parameters; +}; + +#endif // DECLARATOR_COMPILER_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/default_visitor.cpp b/generator_50/parser/default_visitor.cpp new file mode 100644 index 00000000..1932fdc7 --- /dev/null +++ b/generator_50/parser/default_visitor.cpp @@ -0,0 +1,476 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#include "default_visitor.h" + +void DefaultVisitor::visitAccessSpecifier(AccessSpecifierAST *) +{ + // nothing to do +} + +void DefaultVisitor::visitAsmDefinition(AsmDefinitionAST *) +{ + // nothing to do +} + +void DefaultVisitor::visitBaseClause(BaseClauseAST *node) +{ + visitNodes(this, node->base_specifiers); +} + +void DefaultVisitor::visitBaseSpecifier(BaseSpecifierAST *node) +{ + visit(node->name); +} + +void DefaultVisitor::visitBinaryExpression(BinaryExpressionAST *node) +{ + visit(node->left_expression); + visit(node->right_expression); +} + +void DefaultVisitor::visitCastExpression(CastExpressionAST *node) +{ + visit(node->type_id); + visit(node->expression); +} + +void DefaultVisitor::visitClassMemberAccess(ClassMemberAccessAST *node) +{ + visit(node->name); +} + +void DefaultVisitor::visitClassSpecifier(ClassSpecifierAST *node) +{ + visit(node->win_decl_specifiers); + visit(node->name); + visit(node->base_clause); + visitNodes(this, node->member_specs); +} + +void DefaultVisitor::visitCompoundStatement(CompoundStatementAST *node) +{ + visitNodes(this, node->statements); +} + +void DefaultVisitor::visitCondition(ConditionAST *node) +{ + visit(node->type_specifier); + visit(node->declarator); + visit(node->expression); +} + +void DefaultVisitor::visitConditionalExpression(ConditionalExpressionAST *node) +{ + visit(node->condition); + visit(node->left_expression); + visit(node->right_expression); +} + +void DefaultVisitor::visitCppCastExpression(CppCastExpressionAST *node) +{ + visit(node->type_id); + visit(node->expression); + visitNodes(this, node->sub_expressions); +} + +void DefaultVisitor::visitCtorInitializer(CtorInitializerAST *node) +{ + visitNodes(this, node->member_initializers); +} + +void DefaultVisitor::visitDeclarationStatement(DeclarationStatementAST *node) +{ + visit(node->declaration); +} + +void DefaultVisitor::visitDeclarator(DeclaratorAST *node) +{ + visit(node->sub_declarator); + visitNodes(this, node->ptr_ops); + visit(node->id); + visit(node->bit_expression); + visitNodes(this, node->array_dimensions); + visit(node->parameter_declaration_clause); + visit(node->exception_spec); +} + +void DefaultVisitor::visitDeleteExpression(DeleteExpressionAST *node) +{ + visit(node->expression); +} + +void DefaultVisitor::visitDoStatement(DoStatementAST *node) +{ + visit(node->statement); + visit(node->expression); +} + +void DefaultVisitor::visitElaboratedTypeSpecifier(ElaboratedTypeSpecifierAST *node) +{ + visit(node->name); +} + +void DefaultVisitor::visitEnumSpecifier(EnumSpecifierAST *node) +{ + visit(node->name); + visitNodes(this, node->enumerators); +} + +void DefaultVisitor::visitEnumerator(EnumeratorAST *node) +{ + visit(node->expression); +} + +void DefaultVisitor::visitExceptionSpecification(ExceptionSpecificationAST *node) +{ + visitNodes(this, node->type_ids); +} + +void DefaultVisitor::visitExpressionOrDeclarationStatement(ExpressionOrDeclarationStatementAST *node) +{ + visit(node->expression); + visit(node->declaration); +} + +void DefaultVisitor::visitExpressionStatement(ExpressionStatementAST *node) +{ + visit(node->expression); +} + +void DefaultVisitor::visitForStatement(ForStatementAST *node) +{ + visit(node->init_statement); + visit(node->condition); + visit(node->expression); + visit(node->statement); +} + +void DefaultVisitor::visitFunctionCall(FunctionCallAST *node) +{ + visit(node->arguments); +} + +void DefaultVisitor::visitFunctionDefinition(FunctionDefinitionAST *node) +{ + visit(node->type_specifier); + visit(node->init_declarator); + visit(node->function_body); + visit(node->win_decl_specifiers); +} + +void DefaultVisitor::visitIfStatement(IfStatementAST *node) +{ + visit(node->condition); + visit(node->statement); + visit(node->else_statement); +} + +void DefaultVisitor::visitIncrDecrExpression(IncrDecrExpressionAST *) +{ + // nothing to do +} + +void DefaultVisitor::visitInitDeclarator(InitDeclaratorAST *node) +{ + visit(node->declarator); + visit(node->initializer); +} + +void DefaultVisitor::visitInitializer(InitializerAST *node) +{ + visit(node->initializer_clause); + visit(node->expression); +} + +void DefaultVisitor::visitInitializerClause(InitializerClauseAST *node) +{ + visit(node->expression); +} + +void DefaultVisitor::visitLabeledStatement(LabeledStatementAST *) +{ + // nothing to do +} + +void DefaultVisitor::visitLinkageBody(LinkageBodyAST *node) +{ + visitNodes(this, node->declarations); +} + +void DefaultVisitor::visitLinkageSpecification(LinkageSpecificationAST *node) +{ + visit(node->linkage_body); + visit(node->declaration); +} + +void DefaultVisitor::visitMemInitializer(MemInitializerAST *node) +{ + visit(node->initializer_id); + visit(node->expression); +} + +void DefaultVisitor::visitName(NameAST *node) +{ + visitNodes(this, node->qualified_names); + visit(node->unqualified_name); +} + +void DefaultVisitor::visitNamespace(NamespaceAST *node) +{ + visit(node->linkage_body); +} + +void DefaultVisitor::visitNamespaceAliasDefinition(NamespaceAliasDefinitionAST *node) +{ + visit(node->alias_name); +} + +void DefaultVisitor::visitNewDeclarator(NewDeclaratorAST *node) +{ + visit(node->ptr_op); + visit(node->sub_declarator); + visitNodes(this, node->expressions); +} + +void DefaultVisitor::visitNewExpression(NewExpressionAST *node) +{ + visit(node->expression); + visit(node->type_id); + visit(node->new_type_id); + visit(node->new_initializer); +} + +void DefaultVisitor::visitNewInitializer(NewInitializerAST *node) +{ + visit(node->expression); +} + +void DefaultVisitor::visitNewTypeId(NewTypeIdAST *node) +{ + visit(node->type_specifier); + visit(node->new_initializer); + visit(node->new_declarator); +} + +void DefaultVisitor::visitOperator(OperatorAST *) +{ + // nothing to do +} + +void DefaultVisitor::visitOperatorFunctionId(OperatorFunctionIdAST *node) +{ + visit(node->op); + visit(node->type_specifier); + visitNodes(this, node->ptr_ops); +} + +void DefaultVisitor::visitParameterDeclaration(ParameterDeclarationAST *node) +{ + visit(node->type_specifier); + visit(node->declarator); + visit(node->expression); +} + +void DefaultVisitor::visitParameterDeclarationClause(ParameterDeclarationClauseAST *node) +{ + visitNodes(this, node->parameter_declarations); +} + +void DefaultVisitor::visitPostfixExpression(PostfixExpressionAST *node) +{ + visit(node->type_specifier); + visit(node->expression); + visitNodes(this, node->sub_expressions); +} + +void DefaultVisitor::visitPrimaryExpression(PrimaryExpressionAST *node) +{ + visit(node->literal); + visit(node->expression_statement); + visit(node->sub_expression); + visit(node->name); +} + +void DefaultVisitor::visitPtrOperator(PtrOperatorAST *node) +{ + visit(node->mem_ptr); +} + +void DefaultVisitor::visitPtrToMember(PtrToMemberAST *) +{ + // nothing to do +} + +void DefaultVisitor::visitReturnStatement(ReturnStatementAST *node) +{ + visit(node->expression); +} + +void DefaultVisitor::visitSimpleDeclaration(SimpleDeclarationAST *node) +{ + visit(node->type_specifier); + visitNodes(this, node->init_declarators); + visit(node->win_decl_specifiers); +} + +void DefaultVisitor::visitSimpleTypeSpecifier(SimpleTypeSpecifierAST *node) +{ + visit(node->name); + visit(node->type_id); + visit(node->expression); +} + +void DefaultVisitor::visitSizeofExpression(SizeofExpressionAST *node) +{ + visit(node->type_id); + visit(node->expression); +} + +void DefaultVisitor::visitStringLiteral(StringLiteralAST *) +{ + // nothing to do +} + +void DefaultVisitor::visitSubscriptExpression(SubscriptExpressionAST *node) +{ + visit(node->subscript); +} + +void DefaultVisitor::visitSwitchStatement(SwitchStatementAST *node) +{ + visit(node->condition); + visit(node->statement); +} + +void DefaultVisitor::visitTemplateArgument(TemplateArgumentAST *node) +{ + visit(node->type_id); + visit(node->expression); +} + +void DefaultVisitor::visitTemplateDeclaration(TemplateDeclarationAST *node) +{ + visitNodes(this, node->template_parameters); + visit(node->declaration); +} + +void DefaultVisitor::visitTemplateParameter(TemplateParameterAST *node) +{ + visit(node->type_parameter); + visit(node->parameter_declaration); +} + +void DefaultVisitor::visitThrowExpression(ThrowExpressionAST *node) +{ + visit(node->expression); +} + +void DefaultVisitor::visitTranslationUnit(TranslationUnitAST *node) +{ + visitNodes(this, node->declarations); +} + +void DefaultVisitor::visitTryBlockStatement(TryBlockStatementAST *) +{ + // nothing to do +} + +void DefaultVisitor::visitTypeId(TypeIdAST *node) +{ + visit(node->type_specifier); + visit(node->declarator); +} + +void DefaultVisitor::visitTypeIdentification(TypeIdentificationAST *node) +{ + visit(node->name); + visit(node->expression); +} + +void DefaultVisitor::visitTypeParameter(TypeParameterAST *node) +{ + visit(node->name); + visit(node->type_id); + visitNodes(this, node->template_parameters); + visit(node->template_name); +} + +void DefaultVisitor::visitTypedef(TypedefAST *node) +{ + visit(node->type_specifier); + visitNodes(this, node->init_declarators); +} + +void DefaultVisitor::visitUnaryExpression(UnaryExpressionAST *node) +{ + visit(node->expression); +} + +void DefaultVisitor::visitUnqualifiedName(UnqualifiedNameAST *node) +{ + visit(node->operator_id); + visitNodes(this, node->template_arguments); +} + +void DefaultVisitor::visitUsing(UsingAST *node) +{ + visit(node->name); +} + +void DefaultVisitor::visitUsingDirective(UsingDirectiveAST *node) +{ + visit(node->name); +} + +void DefaultVisitor::visitWhileStatement(WhileStatementAST *node) +{ + visit(node->condition); + visit(node->statement); +} + +void DefaultVisitor::visitWinDeclSpec(WinDeclSpecAST *) +{ + // nothing to do +} + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/default_visitor.h b/generator_50/parser/default_visitor.h new file mode 100644 index 00000000..1c6388aa --- /dev/null +++ b/generator_50/parser/default_visitor.h @@ -0,0 +1,135 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef DEFAULT_VISITOR_H +#define DEFAULT_VISITOR_H + +#include "visitor.h" + +class DefaultVisitor: public Visitor +{ +public: + DefaultVisitor() {} + +protected: + virtual void visitAccessSpecifier(AccessSpecifierAST *); + virtual void visitAsmDefinition(AsmDefinitionAST *); + virtual void visitBaseClause(BaseClauseAST *); + virtual void visitBaseSpecifier(BaseSpecifierAST *); + virtual void visitBinaryExpression(BinaryExpressionAST *); + virtual void visitCastExpression(CastExpressionAST *); + virtual void visitClassMemberAccess(ClassMemberAccessAST *); + virtual void visitClassSpecifier(ClassSpecifierAST *); + virtual void visitCompoundStatement(CompoundStatementAST *); + virtual void visitCondition(ConditionAST *); + virtual void visitConditionalExpression(ConditionalExpressionAST *); + virtual void visitCppCastExpression(CppCastExpressionAST *); + virtual void visitCtorInitializer(CtorInitializerAST *); + virtual void visitDeclarationStatement(DeclarationStatementAST *); + virtual void visitDeclarator(DeclaratorAST *); + virtual void visitDeleteExpression(DeleteExpressionAST *); + virtual void visitDoStatement(DoStatementAST *); + virtual void visitElaboratedTypeSpecifier(ElaboratedTypeSpecifierAST *); + virtual void visitEnumSpecifier(EnumSpecifierAST *); + virtual void visitEnumerator(EnumeratorAST *); + virtual void visitExceptionSpecification(ExceptionSpecificationAST *); + virtual void visitExpressionOrDeclarationStatement(ExpressionOrDeclarationStatementAST *); + virtual void visitExpressionStatement(ExpressionStatementAST *); + virtual void visitForStatement(ForStatementAST *); + virtual void visitFunctionCall(FunctionCallAST *); + virtual void visitFunctionDefinition(FunctionDefinitionAST *); + virtual void visitIfStatement(IfStatementAST *); + virtual void visitIncrDecrExpression(IncrDecrExpressionAST *); + virtual void visitInitDeclarator(InitDeclaratorAST *); + virtual void visitInitializer(InitializerAST *); + virtual void visitInitializerClause(InitializerClauseAST *); + virtual void visitLabeledStatement(LabeledStatementAST *); + virtual void visitLinkageBody(LinkageBodyAST *); + virtual void visitLinkageSpecification(LinkageSpecificationAST *); + virtual void visitMemInitializer(MemInitializerAST *); + virtual void visitName(NameAST *); + virtual void visitNamespace(NamespaceAST *); + virtual void visitNamespaceAliasDefinition(NamespaceAliasDefinitionAST *); + virtual void visitNewDeclarator(NewDeclaratorAST *); + virtual void visitNewExpression(NewExpressionAST *); + virtual void visitNewInitializer(NewInitializerAST *); + virtual void visitNewTypeId(NewTypeIdAST *); + virtual void visitOperator(OperatorAST *); + virtual void visitOperatorFunctionId(OperatorFunctionIdAST *); + virtual void visitParameterDeclaration(ParameterDeclarationAST *); + virtual void visitParameterDeclarationClause(ParameterDeclarationClauseAST *); + virtual void visitPostfixExpression(PostfixExpressionAST *); + virtual void visitPrimaryExpression(PrimaryExpressionAST *); + virtual void visitPtrOperator(PtrOperatorAST *); + virtual void visitPtrToMember(PtrToMemberAST *); + virtual void visitReturnStatement(ReturnStatementAST *); + virtual void visitSimpleDeclaration(SimpleDeclarationAST *); + virtual void visitSimpleTypeSpecifier(SimpleTypeSpecifierAST *); + virtual void visitSizeofExpression(SizeofExpressionAST *); + virtual void visitStringLiteral(StringLiteralAST *); + virtual void visitSubscriptExpression(SubscriptExpressionAST *); + virtual void visitSwitchStatement(SwitchStatementAST *); + virtual void visitTemplateArgument(TemplateArgumentAST *); + virtual void visitTemplateDeclaration(TemplateDeclarationAST *); + virtual void visitTemplateParameter(TemplateParameterAST *); + virtual void visitThrowExpression(ThrowExpressionAST *); + virtual void visitTranslationUnit(TranslationUnitAST *); + virtual void visitTryBlockStatement(TryBlockStatementAST *); + virtual void visitTypeId(TypeIdAST *); + virtual void visitTypeIdentification(TypeIdentificationAST *); + virtual void visitTypeParameter(TypeParameterAST *); + virtual void visitTypedef(TypedefAST *); + virtual void visitUnaryExpression(UnaryExpressionAST *); + virtual void visitUnqualifiedName(UnqualifiedNameAST *); + virtual void visitUsing(UsingAST *); + virtual void visitUsingDirective(UsingDirectiveAST *); + virtual void visitWhileStatement(WhileStatementAST *); + virtual void visitWinDeclSpec(WinDeclSpecAST *); + +private: + typedef void (Visitor::*visitor_fun_ptr)(AST *); + static visitor_fun_ptr _S_table[]; +}; + +#endif // VISITOR_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/dumptree.cpp b/generator_50/parser/dumptree.cpp new file mode 100644 index 00000000..21d11f97 --- /dev/null +++ b/generator_50/parser/dumptree.cpp @@ -0,0 +1,142 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#include "dumptree.h" + +#include +#include + +static char const * const names[] = { + 0, + "AccessSpecifier", + "AsmDefinition", + "BaseClause", + "BaseSpecifier", + "BinaryExpression", + "CastExpression", + "ClassMemberAccess", + "ClassSpecifier", + "CompoundStatement", + "Condition", + "ConditionalExpression", + "CppCastExpression", + "CtorInitializer", + "DeclarationStatement", + "Declarator", + "DeleteExpression", + "DoStatement", + "ElaboratedTypeSpecifier", + "EnumSpecifier", + "Enumerator", + "ExceptionSpecification", + "ExpressionOrDeclarationStatement", + "ExpressionStatement", + "ForStatement", + "FunctionCall", + "FunctionDefinition", + "IfStatement", + "IncrDecrExpression", + "InitDeclarator", + "Initializer", + "InitializerClause", + "LabeledStatement", + "LinkageBody", + "LinkageSpecification", + "MemInitializer", + "Name", + "Namespace", + "NamespaceAliasDefinition", + "NewDeclarator", + "NewExpression", + "NewInitializer", + "NewTypeId", + "Operator", + "OperatorFunctionId", + "ParameterDeclaration", + "ParameterDeclarationClause", + "PostfixExpression", + "PrimaryExpression", + "PtrOperator", + "PtrToMember", + "ReturnStatement", + "SimpleDeclaration", + "SimpleTypeSpecifier", + "SizeofExpression", + "StringLiteral", + "SubscriptExpression", + "SwitchStatement", + "TemplateArgument", + "TemplateDeclaration", + "TemplateParameter", + "ThrowExpression", + "TranslationUnit", + "TryBlockStatement", + "TypeId", + "TypeIdentification", + "TypeParameter", + "Typedef", + "UnaryExpression", + "UnqualifiedName", + "Using", + "UsingDirective", + "WhileStatement", + "WinDeclSpec" +}; + +DumpTree::DumpTree() +{ +} + +void DumpTree::visit(AST *node) +{ + static int indent = 0; + + if (node) + qDebug() << QString(indent * 2, ' ').toLatin1().constData() << names[node->kind] + << '[' << node->start_token << ", " << node->end_token << ']'; + + ++indent; + DefaultVisitor::visit(node); + --indent; +} + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/dumptree.h b/generator_50/parser/dumptree.h new file mode 100644 index 00000000..2778c93a --- /dev/null +++ b/generator_50/parser/dumptree.h @@ -0,0 +1,61 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef DUMPTREE_H +#define DUMPTREE_H + +#include "default_visitor.h" + +class DumpTree: protected DefaultVisitor +{ +public: + DumpTree(); + + void dump(AST *node) { visit(node); } + +protected: + virtual void visit(AST *node); +}; + +#endif // DUMPTREE_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/include/stdarg.h b/generator_50/parser/include/stdarg.h new file mode 100644 index 00000000..677c27a2 --- /dev/null +++ b/generator_50/parser/include/stdarg.h @@ -0,0 +1,64 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef __STDARG +#define __STDARG + +#if !defined(_VA_LIST) && !defined(__VA_LIST_DEFINED) +#define _VA_LIST +#define _VA_LIST_DEFINED + +typedef char *__va_list; +#endif +static float __va_arg_tmp; +typedef __va_list va_list; + +#define va_start(list, start) ((void)0) +#define __va_arg(list, mode, n) ((void)0) +#define _bigendian_va_arg(list, mode, n) ((void)0) +#define _littleendian_va_arg(list, mode, n) ((void)0) +#define va_end(list) ((void)0) +#define va_arg(list, mode) ((void)0) + +typedef void *__gnuc_va_list; + +#endif diff --git a/generator_50/parser/lexer.cpp b/generator_50/parser/lexer.cpp new file mode 100644 index 00000000..575c55d5 --- /dev/null +++ b/generator_50/parser/lexer.cpp @@ -0,0 +1,1885 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#include "lexer.h" +#include "tokens.h" +#include "control.h" + +#include +#include + +scan_fun_ptr Lexer::s_scan_keyword_table[] = { + &Lexer::scanKeyword0, &Lexer::scanKeyword0, + &Lexer::scanKeyword2, &Lexer::scanKeyword3, + &Lexer::scanKeyword4, &Lexer::scanKeyword5, + &Lexer::scanKeyword6, &Lexer::scanKeyword7, + &Lexer::scanKeyword8, &Lexer::scanKeyword9, + &Lexer::scanKeyword10, &Lexer::scanKeyword11, + &Lexer::scanKeyword12, &Lexer::scanKeyword13, + &Lexer::scanKeyword14, &Lexer::scanKeyword0, + &Lexer::scanKeyword16 +}; + +void LocationManager::extract_line(int offset, int *line, QString *filename) const +{ + *line = 0; + if (token_stream.size () < 1) + return; + + const unsigned char *begin_buffer = reinterpret_cast(token_stream[0].text); + const unsigned char *cursor = begin_buffer + offset; + + ++cursor; // skip '#' + if (std::isspace(*cursor) && std::isdigit(*(cursor + 1))) + { + ++cursor; + char buffer[1024], *cp = buffer; + do { + *cp++ = *cursor++; + } while (std::isdigit(*cursor)); + *cp = '\0'; + int l = strtol(buffer, 0, 0); + + Q_ASSERT(std::isspace(*cursor)); + ++cursor; + + Q_ASSERT(*cursor == '"'); + ++cursor; + + cp = buffer; + while (*cursor && *cursor != '"') { + *cp++ = *cursor++; + } + *cp = '\0'; + Q_ASSERT(*cursor == '"'); + ++cursor; + + *filename = buffer; + *line = l; + // printf("filename: %s line: %d\n", buffer, line); + } +} + +void LocationManager::positionAt(std::size_t offset, int *line, int *column, + QString *filename) const +{ + int ppline, ppcolumn; + line_table.positionAt(offset, &ppline, &ppcolumn); + + int base_line; + extract_line((int) line_table[ppline-1], &base_line, filename); + + int line2, column2; + location_table.positionAt((int) line_table[ppline-1], &line2, &column2); + + location_table.positionAt(offset, line, column); + *line = base_line + *line - line2 - 1; +} + +scan_fun_ptr Lexer::s_scan_table[256]; +bool Lexer::s_initialized = false; + +void Lexer::tokenize(const char *contents, std::size_t size) +{ + if (!s_initialized) + initialize_scan_table(); + + token_stream.resize(1024); + token_stream[0].kind = Token_EOF; + token_stream[0].text = contents; + + index = 1; + + cursor = (const unsigned char *) contents; + begin_buffer = (const unsigned char *) contents; + end_buffer = cursor + size; + + location_table.resize(1024); + location_table[0] = 0; + location_table.current_line = 1; + + line_table.resize(1024); + line_table[0] = 0; + line_table.current_line = 1; + + do { + if (index == token_stream.size()) + token_stream.resize(token_stream.size() * 2); + + Token *current_token = &token_stream[(int) index]; + current_token->text = reinterpret_cast(begin_buffer); + current_token->position = cursor - begin_buffer; + (this->*s_scan_table[*cursor])(); + current_token->size = cursor - begin_buffer - current_token->position; + } while (cursor < end_buffer); + + if (index == token_stream.size()) + token_stream.resize(token_stream.size() * 2); + + Q_ASSERT(index < token_stream.size()); + token_stream[(int) index].position = cursor - begin_buffer; + token_stream[(int) index].kind = Token_EOF; +} + +void Lexer::reportError(const QString& msg) +{ + int line, column; + QString fileName; + + std::size_t tok = token_stream.cursor(); + _M_location.positionAt(token_stream.position(tok), + &line, &column, &fileName); + + Control::ErrorMessage errmsg; + errmsg.setLine(line + 1); + errmsg.setColumn(column); + errmsg.setFileName(fileName); + errmsg.setMessage(QLatin1String("** LEXER ERROR ") + msg); + control->reportError(errmsg); +} + +void Lexer::initialize_scan_table() +{ + s_initialized = true; + + for (int i=0; i<256; ++i) + { + if (isspace(i)) + s_scan_table[i] = &Lexer::scan_white_spaces; + else if (isalpha(i) || i == '_') + s_scan_table[i] = &Lexer::scan_identifier_or_keyword; + else if (isdigit(i)) + s_scan_table[i] = &Lexer::scan_int_constant; + else + s_scan_table[i] = &Lexer::scan_invalid_input; + } + + s_scan_table[int('L')] = &Lexer::scan_identifier_or_literal; + s_scan_table[int('\n')] = &Lexer::scan_newline; + s_scan_table[int('#')] = &Lexer::scan_preprocessor; + + s_scan_table[int('\'')] = &Lexer::scan_char_constant; + s_scan_table[int('"')] = &Lexer::scan_string_constant; + + s_scan_table[int('.')] = &Lexer::scan_int_constant; + + s_scan_table[int('!')] = &Lexer::scan_not; + s_scan_table[int('%')] = &Lexer::scan_remainder; + s_scan_table[int('&')] = &Lexer::scan_and; + s_scan_table[int('(')] = &Lexer::scan_left_paren; + s_scan_table[int(')')] = &Lexer::scan_right_paren; + s_scan_table[int('*')] = &Lexer::scan_star; + s_scan_table[int('+')] = &Lexer::scan_plus; + s_scan_table[int(',')] = &Lexer::scan_comma; + s_scan_table[int('-')] = &Lexer::scan_minus; + s_scan_table[int('/')] = &Lexer::scan_divide; + s_scan_table[int(':')] = &Lexer::scan_colon; + s_scan_table[int(';')] = &Lexer::scan_semicolon; + s_scan_table[int('<')] = &Lexer::scan_less; + s_scan_table[int('=')] = &Lexer::scan_equal; + s_scan_table[int('>')] = &Lexer::scan_greater; + s_scan_table[int('?')] = &Lexer::scan_question; + s_scan_table[int('[')] = &Lexer::scan_left_bracket; + s_scan_table[int(']')] = &Lexer::scan_right_bracket; + s_scan_table[int('^')] = &Lexer::scan_xor; + s_scan_table[int('{')] = &Lexer::scan_left_brace; + s_scan_table[int('|')] = &Lexer::scan_or; + s_scan_table[int('}')] = &Lexer::scan_right_brace; + s_scan_table[int('~')] = &Lexer::scan_tilde; + + s_scan_table[0] = &Lexer::scan_EOF; +} + +void Lexer::scan_preprocessor() +{ + if (line_table.current_line == line_table.size()) + line_table.resize(line_table.current_line * 2); + + line_table[(int) line_table.current_line++] = (cursor - begin_buffer); + + while (*cursor && *cursor != '\n') + ++cursor; + + if (*cursor != '\n') + reportError("expected newline"); +} + +void Lexer::scan_char_constant() +{ + const unsigned char *begin = cursor; + + ++cursor; + while (*cursor && *cursor != '\'') + { + if (*cursor == '\n') + reportError("did not expect newline"); + + if (*cursor == '\\') + ++cursor; + ++cursor; + } + + if (*cursor != '\'') + reportError("expected \'"); + + ++cursor; + + token_stream[(int) index].extra.symbol = + control->findOrInsertName((const char*) begin, cursor - begin); + + token_stream[(int) index++].kind = Token_char_literal; +} + +void Lexer::scan_string_constant() +{ + const unsigned char *begin = cursor; + + ++cursor; + while (*cursor && *cursor != '"') + { + if (*cursor == '\n') + reportError("did not expect newline"); + + if (*cursor == '\\') + ++cursor; + ++cursor; + } + + if (*cursor != '"') + reportError("expected \""); + + ++cursor; + + token_stream[(int) index].extra.symbol = + control->findOrInsertName((const char*) begin, cursor - begin); + + token_stream[(int) index++].kind = Token_string_literal; +} + +void Lexer::scan_newline() +{ + if (location_table.current_line == location_table.size()) + location_table.resize(location_table.current_line * 2); + + location_table[(int) location_table.current_line++] = (cursor - begin_buffer); + ++cursor; +} + +void Lexer::scan_white_spaces() +{ + while (isspace(*cursor)) + { + if (*cursor == '\n') + scan_newline(); + else + ++cursor; + } +} + +void Lexer::scan_identifier_or_literal() +{ + switch (*(cursor + 1)) + { + case '\'': + ++cursor; + scan_char_constant(); + break; + + case '\"': + ++cursor; + scan_string_constant(); + break; + + default: + scan_identifier_or_keyword(); + break; + } +} + +void Lexer::scan_identifier_or_keyword() +{ + const unsigned char *skip = cursor; + while (isalnum(*skip) || *skip== '_') + ++skip; + + int n = skip - cursor; + Token *current_token = &token_stream[(int) index]; + (this->*s_scan_keyword_table[n < 17 ? n : 0])(); + + if (current_token->kind == Token_identifier) + { + current_token->extra.symbol = + control->findOrInsertName((const char*) cursor, n); + } + + cursor = skip; +} + +void Lexer::scan_int_constant() +{ + if (*cursor == '.' && !std::isdigit(*(cursor + 1))) + { + scan_dot(); + return; + } + + const unsigned char *begin = cursor; + + while (isalnum(*cursor) || *cursor == '.') + ++cursor; + + token_stream[(int) index].extra.symbol = + control->findOrInsertName((const char*) begin, cursor - begin); + + token_stream[(int) index++].kind = Token_number_literal; +} + +void Lexer::scan_not() +{ + /* + '!' ::= not + '!=' ::= not_equal + */ + + ++cursor; + + if (*cursor == '=') + { + ++cursor; + token_stream[(int) index++].kind = Token_not_eq; + } + else + { + token_stream[(int) index++].kind = '!'; + } +} + +void Lexer::scan_remainder() +{ + /* + '%' ::= remainder + '%=' ::= remainder_equal + */ + + ++cursor; + + if (*cursor == '=') + { + ++cursor; + token_stream[(int) index++].kind = Token_assign; + } + else + { + token_stream[(int) index++].kind = '%'; + } +} + +void Lexer::scan_and() +{ + /* + '&&' ::= and_and + '&' ::= and + '&=' ::= and_equal + */ + + ++cursor; + if (*cursor == '=') + { + ++cursor; + token_stream[(int) index++].kind = Token_assign; + } + else if (*cursor == '&') + { + ++cursor; + token_stream[(int) index++].kind = Token_and; + } + else + { + token_stream[(int) index++].kind = '&'; + } +} + +void Lexer::scan_left_paren() +{ + ++cursor; + token_stream[(int) index++].kind = '('; +} + +void Lexer::scan_right_paren() +{ + ++cursor; + token_stream[(int) index++].kind = ')'; +} + +void Lexer::scan_star() +{ + /* + '*' ::= star + '*=' ::= star_equal + */ + + ++cursor; + + if (*cursor == '=') + { + ++cursor; + token_stream[(int) index++].kind = Token_assign; + } + else + { + token_stream[(int) index++].kind = '*'; + } +} + +void Lexer::scan_plus() +{ + /* + '+' ::= plus + '++' ::= incr + '+=' ::= plus_equal + */ + + ++cursor; + if (*cursor == '=') + { + ++cursor; + token_stream[(int) index++].kind = Token_assign; + } + else if (*cursor == '+') + { + ++cursor; + token_stream[(int) index++].kind = Token_incr; + } + else + { + token_stream[(int) index++].kind = '+'; + } +} + +void Lexer::scan_comma() +{ + ++cursor; + token_stream[(int) index++].kind = ','; +} + +void Lexer::scan_minus() +{ + /* + '-' ::= minus + '--' ::= decr + '-=' ::= minus_equal + '->' ::= left_arrow + */ + + ++cursor; + if (*cursor == '=') + { + ++cursor; + token_stream[(int) index++].kind = Token_assign; + } + else if (*cursor == '-') + { + ++cursor; + token_stream[(int) index++].kind = Token_decr; + } + else if (*cursor == '>') + { + ++cursor; + token_stream[(int) index++].kind = Token_arrow; + if (*cursor == '*') + { + ++cursor; + token_stream[(int) index++].kind = Token_ptrmem; + } + } + else + { + token_stream[(int) index++].kind = '-'; + } +} + +void Lexer::scan_dot() +{ + /* + '.' ::= dot + '...' ::= ellipsis + */ + + ++cursor; + if (*cursor == '.' && *(cursor + 1) == '.') + { + cursor += 2; + token_stream[(int) index++].kind = Token_ellipsis; + } + else if (*cursor == '.' && *(cursor + 1) == '*') + { + cursor += 2; + token_stream[(int) index++].kind = Token_ptrmem; + } + else + token_stream[(int) index++].kind = '.'; +} + +void Lexer::scan_divide() +{ + /* + '/' ::= divide + '/=' ::= divide_equal + */ + + ++cursor; + + if (*cursor == '=') + { + ++cursor; + token_stream[(int) index++].kind = Token_assign; + } + else + { + token_stream[(int) index++].kind = '/'; + } +} + +void Lexer::scan_colon() +{ + ++cursor; + if (*cursor == ':') + { + ++cursor; + token_stream[(int) index++].kind = Token_scope; + } + else + { + token_stream[(int) index++].kind = ':'; + } +} + +void Lexer::scan_semicolon() +{ + ++cursor; + token_stream[(int) index++].kind = ';'; +} + +void Lexer::scan_less() +{ + /* + '<' ::= less + '<<' ::= left_shift + '<<=' ::= left_shift_equal + '<=' ::= less_equal + */ + + ++cursor; + if (*cursor == '=') + { + ++cursor; + token_stream[(int) index++].kind = Token_leq; + } + else if (*cursor == '<') + { + ++cursor; + if (*cursor == '=') + { + ++cursor; + token_stream[(int) index++].kind = Token_assign; + } + else + { + token_stream[(int) index++].kind = Token_shift; + } + } + else + { + token_stream[(int) index++].kind = '<'; + } +} + +void Lexer::scan_equal() +{ + /* + '=' ::= equal + '==' ::= equal_equal + */ + ++cursor; + + if (*cursor == '=') + { + ++cursor; + token_stream[(int) index++].kind = Token_eq; + } + else + { + token_stream[(int) index++].kind = '='; + } +} + +void Lexer::scan_greater() +{ + /* + '>' ::= greater + '>=' ::= greater_equal + '>>' ::= right_shift + '>>=' ::= right_shift_equal + */ + + ++cursor; + if (*cursor == '=') + { + ++cursor; + token_stream[(int) index++].kind = Token_geq; + } + else if (*cursor == '>') + { + ++cursor; + if (*cursor == '=') + { + ++cursor; + token_stream[(int) index++].kind = Token_assign; + } + else + { + token_stream[(int) index++].kind = Token_shift; + } + } + else + { + token_stream[(int) index++].kind = '>'; + } +} + +void Lexer::scan_question() +{ + ++cursor; + token_stream[(int) index++].kind = '?'; +} + +void Lexer::scan_left_bracket() +{ + ++cursor; + token_stream[(int) index++].kind = '['; +} + +void Lexer::scan_right_bracket() +{ + ++cursor; + token_stream[(int) index++].kind = ']'; +} + +void Lexer::scan_xor() +{ + /* + '^' ::= xor + '^=' ::= xor_equal + */ + ++cursor; + + if (*cursor == '=') + { + ++cursor; + token_stream[(int) index++].kind = Token_assign; + } + else + { + token_stream[(int) index++].kind = '^'; + } +} + +void Lexer::scan_left_brace() +{ + ++cursor; + token_stream[(int) index++].kind = '{'; +} + +void Lexer::scan_or() +{ + /* + '|' ::= or + '|=' ::= or_equal + '||' ::= or_or + */ + ++cursor; + if (*cursor == '=') + { + ++cursor; + token_stream[(int) index++].kind = Token_assign; + } + else if (*cursor == '|') + { + ++cursor; + token_stream[(int) index++].kind = Token_or; + } + else + { + token_stream[(int) index++].kind = '|'; + } +} + +void Lexer::scan_right_brace() +{ + ++cursor; + token_stream[(int) index++].kind = '}'; +} + +void Lexer::scan_tilde() +{ + ++cursor; + token_stream[(int) index++].kind = '~'; +} + +void Lexer::scan_EOF() +{ + ++cursor; + token_stream[(int) index++].kind = Token_EOF; +} + +void Lexer::scan_invalid_input() +{ + QString errmsg("invalid input: %1"); + errmsg.arg(int(*cursor)); + reportError(errmsg); + ++cursor; +} + +void LocationTable::positionAt(std::size_t offset, int max_line, + int *line, int *column) const +{ + if (!(line && column && max_line != 0)) + return; + + int first = 0; + int len = max_line; + int half; + int middle; + + while (len > 0) + { + half = len >> 1; + middle = first; + + middle += half; + + if (lines[middle] < offset) + { + first = middle; + ++first; + len = len - half - 1; + } + else + len = half; + } + + *line = std::max(first, 1); + *column = (int) (offset - lines[*line - 1] - 1); + + if (*column < 0) + { + *column = 0; + } +} + +void Lexer::scanKeyword0() +{ + token_stream[(int) index++].kind = Token_identifier; +} + +void Lexer::scanKeyword2() +{ + switch (*cursor) + { + case 'i': + if (*(cursor + 1) == 'f') + { + token_stream[(int) index++].kind = Token_if; + return; + } + break; + + case 'd': + if (*(cursor + 1) == 'o') + { + token_stream[(int) index++].kind = Token_do; + return; + } + break; + + case 'o': + if (*(cursor + 1) == 'r') + { + token_stream[(int) index++].kind = Token_or; + return; + } + break; + + } + token_stream[(int) index++].kind = Token_identifier; +} + +void Lexer::scanKeyword3() +{ + switch (*cursor) + { + case 'a': + if (*(cursor + 1) == 'n' && + *(cursor + 2) == 'd') + { + token_stream[(int) index++].kind = Token_and; + return; + } + if (*(cursor + 1) == 's' && + *(cursor + 2) == 'm') + { + token_stream[(int) index++].kind = Token_asm; + return; + } + break; + + case 'f': + if (*(cursor + 1) == 'o' && + *(cursor + 2) == 'r') + { + token_stream[(int) index++].kind = Token_for; + return; + } + break; + + case 'i': + if (*(cursor + 1) == 'n' && + *(cursor + 2) == 't') + { + token_stream[(int) index++].kind = Token_int; + return; + } + break; + + case 'n': + if (*(cursor + 1) == 'e' && + *(cursor + 2) == 'w') + { + token_stream[(int) index++].kind = Token_new; + return; + } + if (*(cursor + 1) == 'o' && + *(cursor + 2) == 't') + { + token_stream[(int) index++].kind = Token_not; + return; + } + break; + + case 't': + if (*(cursor + 1) == 'r' && + *(cursor + 2) == 'y') + { + token_stream[(int) index++].kind = Token_try; + return; + } + break; + + case 'x': + if (*(cursor + 1) == 'o' && + *(cursor + 2) == 'r') + { + token_stream[(int) index++].kind = Token_xor; + return; + } + break; + + } + token_stream[(int) index++].kind = Token_identifier; +} + +void Lexer::scanKeyword4() +{ + switch (*cursor) + { + case 'a': + if (*(cursor + 1) == 'u' && + *(cursor + 2) == 't' && + *(cursor + 3) == 'o') + { + token_stream[(int) index++].kind = Token_auto; + return; + } + break; + + case 'c': + if (*(cursor + 1) == 'a' && + *(cursor + 2) == 's' && + *(cursor + 3) == 'e') + { + token_stream[(int) index++].kind = Token_case; + return; + } + if (*(cursor + 1) == 'h' && + *(cursor + 2) == 'a' && + *(cursor + 3) == 'r') + { + token_stream[(int) index++].kind = Token_char; + return; + } + break; + + case 'b': + if (*(cursor + 1) == 'o' && + *(cursor + 2) == 'o' && + *(cursor + 3) == 'l') + { + token_stream[(int) index++].kind = Token_bool; + return; + } + break; + + case 'e': + if (*(cursor + 1) == 'l' && + *(cursor + 2) == 's' && + *(cursor + 3) == 'e') + { + token_stream[(int) index++].kind = Token_else; + return; + } + if (*(cursor + 1) == 'm' && + *(cursor + 2) == 'i' && + *(cursor + 3) == 't') + { + token_stream[(int) index++].kind = Token_emit; + return; + } + if (*(cursor + 1) == 'n' && + *(cursor + 2) == 'u' && + *(cursor + 3) == 'm') + { + token_stream[(int) index++].kind = Token_enum; + return; + } + break; + + case 'g': + if (*(cursor + 1) == 'o' && + *(cursor + 2) == 't' && + *(cursor + 3) == 'o') + { + token_stream[(int) index++].kind = Token_goto; + return; + } + break; + + case 'l': + if (*(cursor + 1) == 'o' && + *(cursor + 2) == 'n' && + *(cursor + 3) == 'g') + { + token_stream[(int) index++].kind = Token_long; + return; + } + break; + + case 't': + if (*(cursor + 1) == 'h' && + *(cursor + 2) == 'i' && + *(cursor + 3) == 's') + { + token_stream[(int) index++].kind = Token_this; + return; + } + break; + + case 'v': + if (*(cursor + 1) == 'o' && + *(cursor + 2) == 'i' && + *(cursor + 3) == 'd') + { + token_stream[(int) index++].kind = Token_void; + return; + } + break; + + } + token_stream[(int) index++].kind = Token_identifier; +} + +void Lexer::scanKeyword5() +{ + switch (*cursor) + { + case 'c': + if (*(cursor + 1) == 'a' && + *(cursor + 2) == 't' && + *(cursor + 3) == 'c' && + *(cursor + 4) == 'h') + { + token_stream[(int) index++].kind = Token_catch; + return; + } + if (*(cursor + 1) == 'l' && + *(cursor + 2) == 'a' && + *(cursor + 3) == 's' && + *(cursor + 4) == 's') + { + token_stream[(int) index++].kind = Token_class; + return; + } + if (*(cursor + 1) == 'o' && + *(cursor + 2) == 'm' && + *(cursor + 3) == 'p' && + *(cursor + 4) == 'l') + { + token_stream[(int) index++].kind = Token_compl; + return; + } + if (*(cursor + 1) == 'o' && + *(cursor + 2) == 'n' && + *(cursor + 3) == 's' && + *(cursor + 4) == 't') + { + token_stream[(int) index++].kind = Token_const; + return; + } + break; + + case 'b': + if (*(cursor + 1) == 'i' && + *(cursor + 2) == 't' && + *(cursor + 3) == 'o' && + *(cursor + 4) == 'r') + { + token_stream[(int) index++].kind = Token_bitor; + return; + } + if (*(cursor + 1) == 'r' && + *(cursor + 2) == 'e' && + *(cursor + 3) == 'a' && + *(cursor + 4) == 'k') + { + token_stream[(int) index++].kind = Token_break; + return; + } + break; + + case 'f': + if (*(cursor + 1) == 'l' && + *(cursor + 2) == 'o' && + *(cursor + 3) == 'a' && + *(cursor + 4) == 't') + { + token_stream[(int) index++].kind = Token_float; + return; + } + break; + + case 'o': + if (*(cursor + 1) == 'r' && + *(cursor + 2) == '_' && + *(cursor + 3) == 'e' && + *(cursor + 4) == 'q') + { + token_stream[(int) index++].kind = Token_or_eq; + return; + } + break; + + case 's': + if (*(cursor + 1) == 'h' && + *(cursor + 2) == 'o' && + *(cursor + 3) == 'r' && + *(cursor + 4) == 't') + { + token_stream[(int) index++].kind = Token_short; + return; + } + if (*(cursor + 1) == 'l' && + *(cursor + 2) == 'o' && + *(cursor + 3) == 't' && + *(cursor + 4) == 's') + { + token_stream[(int) index++].kind = Token_slots; + return; + } + break; + + case 'u': + if (*(cursor + 1) == 'n' && + *(cursor + 2) == 'i' && + *(cursor + 3) == 'o' && + *(cursor + 4) == 'n') + { + token_stream[(int) index++].kind = Token_union; + return; + } + if (*(cursor + 1) == 's' && + *(cursor + 2) == 'i' && + *(cursor + 3) == 'n' && + *(cursor + 4) == 'g') + { + token_stream[(int) index++].kind = Token_using; + return; + } + break; + + case 't': + if (*(cursor + 1) == 'h' && + *(cursor + 2) == 'r' && + *(cursor + 3) == 'o' && + *(cursor + 4) == 'w') + { + token_stream[(int) index++].kind = Token_throw; + return; + } + break; + + case 'w': + if (*(cursor + 1) == 'h' && + *(cursor + 2) == 'i' && + *(cursor + 3) == 'l' && + *(cursor + 4) == 'e') + { + token_stream[(int) index++].kind = Token_while; + return; + } + break; + + } + token_stream[(int) index++].kind = Token_identifier; +} + +void Lexer::scanKeyword6() +{ + switch (*cursor) + { + case 'a': + if (*(cursor + 1) == 'n' && + *(cursor + 2) == 'd' && + *(cursor + 3) == '_' && + *(cursor + 4) == 'e' && + *(cursor + 5) == 'q') + { + token_stream[(int) index++].kind = Token_and_eq; + return; + } + break; + + case 'b': + if (*(cursor + 1) == 'i' && + *(cursor + 2) == 't' && + *(cursor + 3) == 'a' && + *(cursor + 4) == 'n' && + *(cursor + 5) == 'd') + { + token_stream[(int) index++].kind = Token_bitand; + return; + } + break; + + case 'e': + if (*(cursor + 1) == 'x' && + *(cursor + 2) == 'p' && + *(cursor + 3) == 'o' && + *(cursor + 4) == 'r' && + *(cursor + 5) == 't') + { + token_stream[(int) index++].kind = Token_export; + return; + } + if (*(cursor + 1) == 'x' && + *(cursor + 2) == 't' && + *(cursor + 3) == 'e' && + *(cursor + 4) == 'r' && + *(cursor + 5) == 'n') + { + token_stream[(int) index++].kind = Token_extern; + return; + } + break; + + case 'd': + if (*(cursor + 1) == 'e' && + *(cursor + 2) == 'l' && + *(cursor + 3) == 'e' && + *(cursor + 4) == 't' && + *(cursor + 5) == 'e') + { + token_stream[(int) index++].kind = Token_delete; + return; + } + if (*(cursor + 1) == 'o' && + *(cursor + 2) == 'u' && + *(cursor + 3) == 'b' && + *(cursor + 4) == 'l' && + *(cursor + 5) == 'e') + { + token_stream[(int) index++].kind = Token_double; + return; + } + break; + + case 'f': + if (*(cursor + 1) == 'r' && + *(cursor + 2) == 'i' && + *(cursor + 3) == 'e' && + *(cursor + 4) == 'n' && + *(cursor + 5) == 'd') + { + token_stream[(int) index++].kind = Token_friend; + return; + } + break; + + case 'i': + if (*(cursor + 1) == 'n' && + *(cursor + 2) == 'l' && + *(cursor + 3) == 'i' && + *(cursor + 4) == 'n' && + *(cursor + 5) == 'e') + { + token_stream[(int) index++].kind = Token_inline; + return; + } + break; + + case 'K': + if (*(cursor + 1) == '_' && + *(cursor + 2) == 'D' && + *(cursor + 3) == 'C' && + *(cursor + 4) == 'O' && + *(cursor + 5) == 'P') + { + token_stream[(int) index++].kind = Token_K_DCOP; + return; + } + break; + + case 'n': + if (*(cursor + 1) == 'o' && + *(cursor + 2) == 't' && + *(cursor + 3) == '_' && + *(cursor + 4) == 'e' && + *(cursor + 5) == 'q') + { + token_stream[(int) index++].kind = Token_not_eq; + return; + } + break; + + case 'p': + if (*(cursor + 1) == 'u' && + *(cursor + 2) == 'b' && + *(cursor + 3) == 'l' && + *(cursor + 4) == 'i' && + *(cursor + 5) == 'c') + { + token_stream[(int) index++].kind = Token_public; + return; + } + break; + + case 's': + if (*(cursor + 1) == 'i' && + *(cursor + 2) == 'g' && + *(cursor + 3) == 'n' && + *(cursor + 4) == 'e' && + *(cursor + 5) == 'd') + { + token_stream[(int) index++].kind = Token_signed; + return; + } + if (*(cursor + 1) == 'i' && + *(cursor + 2) == 'z' && + *(cursor + 3) == 'e' && + *(cursor + 4) == 'o' && + *(cursor + 5) == 'f') + { + token_stream[(int) index++].kind = Token_sizeof; + return; + } + if (*(cursor + 1) == 't' && + *(cursor + 2) == 'a' && + *(cursor + 3) == 't' && + *(cursor + 4) == 'i' && + *(cursor + 5) == 'c') + { + token_stream[(int) index++].kind = Token_static; + return; + } + if (*(cursor + 1) == 't' && + *(cursor + 2) == 'r' && + *(cursor + 3) == 'u' && + *(cursor + 4) == 'c' && + *(cursor + 5) == 't') + { + token_stream[(int) index++].kind = Token_struct; + return; + } + if (*(cursor + 1) == 'w' && + *(cursor + 2) == 'i' && + *(cursor + 3) == 't' && + *(cursor + 4) == 'c' && + *(cursor + 5) == 'h') + { + token_stream[(int) index++].kind = Token_switch; + return; + } + break; + + case 'r': + if (*(cursor + 1) == 'e' && + *(cursor + 2) == 't' && + *(cursor + 3) == 'u' && + *(cursor + 4) == 'r' && + *(cursor + 5) == 'n') + { + token_stream[(int) index++].kind = Token_return; + return; + } + break; + + case 't': + if (*(cursor + 1) == 'y' && + *(cursor + 2) == 'p' && + *(cursor + 3) == 'e' && + *(cursor + 4) == 'i' && + *(cursor + 5) == 'd') + { + token_stream[(int) index++].kind = Token_typeid; + return; + } + break; + + case 'x': + if (*(cursor + 1) == 'o' && + *(cursor + 2) == 'r' && + *(cursor + 3) == '_' && + *(cursor + 4) == 'e' && + *(cursor + 5) == 'q') + { + token_stream[(int) index++].kind = Token_xor_eq; + return; + } + break; + + case 'k': + if (*(cursor + 1) == '_' && + *(cursor + 2) == 'd' && + *(cursor + 3) == 'c' && + *(cursor + 4) == 'o' && + *(cursor + 5) == 'p') + { + token_stream[(int) index++].kind = Token_k_dcop; + return; + } + break; + + } + token_stream[(int) index++].kind = Token_identifier; +} + +void Lexer::scanKeyword7() +{ + switch (*cursor) + { + case 'd': + if (*(cursor + 1) == 'e' && + *(cursor + 2) == 'f' && + *(cursor + 3) == 'a' && + *(cursor + 4) == 'u' && + *(cursor + 5) == 'l' && + *(cursor + 6) == 't') + { + token_stream[(int) index++].kind = Token_default; + return; + } + break; + + case 'm': + if (*(cursor + 1) == 'u' && + *(cursor + 2) == 't' && + *(cursor + 3) == 'a' && + *(cursor + 4) == 'b' && + *(cursor + 5) == 'l' && + *(cursor + 6) == 'e') + { + token_stream[(int) index++].kind = Token_mutable; + return; + } + break; + + case 'p': + if (*(cursor + 1) == 'r' && + *(cursor + 2) == 'i' && + *(cursor + 3) == 'v' && + *(cursor + 4) == 'a' && + *(cursor + 5) == 't' && + *(cursor + 6) == 'e') + { + token_stream[(int) index++].kind = Token_private; + return; + } + break; + case 's': + if (*(cursor + 1) == 'i' && + *(cursor + 2) == 'g' && + *(cursor + 3) == 'n' && + *(cursor + 4) == 'a' && + *(cursor + 5) == 'l' && + *(cursor + 6) == 's') + { + token_stream[(int) index++].kind = Token_signals; + return; + } + break; + case 't': + if (*(cursor + 1) == 'y' && + *(cursor + 2) == 'p' && + *(cursor + 3) == 'e' && + *(cursor + 4) == 'd' && + *(cursor + 5) == 'e' && + *(cursor + 6) == 'f') + { + token_stream[(int) index++].kind = Token_typedef; + return; + } + break; + + case 'v': + if (*(cursor + 1) == 'i' && + *(cursor + 2) == 'r' && + *(cursor + 3) == 't' && + *(cursor + 4) == 'u' && + *(cursor + 5) == 'a' && + *(cursor + 6) == 'l') + { + token_stream[(int) index++].kind = Token_virtual; + return; + } + break; + + case 'Q': + if (*(cursor + 1) == '_' && + *(cursor + 2) == 'E' && + *(cursor + 3) == 'N' && + *(cursor + 4) == 'U' && + *(cursor + 5) == 'M' && + *(cursor + 6) == 'S') + { + token_stream[(int) index++].kind = Token_Q_ENUMS; + return; + } + break; + + } + token_stream[(int) index++].kind = Token_identifier; +} + +void Lexer::scanKeyword8() +{ + switch (*cursor) + { + case '_': + if (*(cursor + 1) == '_' && + *(cursor + 2) == 't' && + *(cursor + 3) == 'y' && + *(cursor + 4) == 'p' && + *(cursor + 5) == 'e' && + *(cursor + 6) == 'o' && + *(cursor + 7) == 'f') + { + token_stream[(int) index++].kind = Token___typeof; + return; + } + break; + + case 'c': + if (*(cursor + 1) == 'o' && + *(cursor + 2) == 'n' && + *(cursor + 3) == 't' && + *(cursor + 4) == 'i' && + *(cursor + 5) == 'n' && + *(cursor + 6) == 'u' && + *(cursor + 7) == 'e') + { + token_stream[(int) index++].kind = Token_continue; + return; + } + break; + + case 'e': + if (*(cursor + 1) == 'x' && + *(cursor + 2) == 'p' && + *(cursor + 3) == 'l' && + *(cursor + 4) == 'i' && + *(cursor + 5) == 'c' && + *(cursor + 6) == 'i' && + *(cursor + 7) == 't') + { + token_stream[(int) index++].kind = Token_explicit; + return; + } + break; + + case 'o': + if (*(cursor + 1) == 'p' && + *(cursor + 2) == 'e' && + *(cursor + 3) == 'r' && + *(cursor + 4) == 'a' && + *(cursor + 5) == 't' && + *(cursor + 6) == 'o' && + *(cursor + 7) == 'r') + { + token_stream[(int) index++].kind = Token_operator; + return; + } + break; + + case 'Q': + if (*(cursor + 1) == '_' && + *(cursor + 2) == 'O' && + *(cursor + 3) == 'B' && + *(cursor + 4) == 'J' && + *(cursor + 5) == 'E' && + *(cursor + 6) == 'C' && + *(cursor + 7) == 'T') + { + token_stream[(int) index++].kind = Token_Q_OBJECT; + return; + } + break; + + case 'r': + if (*(cursor + 1) == 'e' && + *(cursor + 2) == 'g' && + *(cursor + 3) == 'i' && + *(cursor + 4) == 's' && + *(cursor + 5) == 't' && + *(cursor + 6) == 'e' && + *(cursor + 7) == 'r') + { + token_stream[(int) index++].kind = Token_register; + return; + } + break; + + case 'u': + if (*(cursor + 1) == 'n' && + *(cursor + 2) == 's' && + *(cursor + 3) == 'i' && + *(cursor + 4) == 'g' && + *(cursor + 5) == 'n' && + *(cursor + 6) == 'e' && + *(cursor + 7) == 'd') + { + token_stream[(int) index++].kind = Token_unsigned; + return; + } + break; + + case 't': + if (*(cursor + 1) == 'e' && + *(cursor + 2) == 'm' && + *(cursor + 3) == 'p' && + *(cursor + 4) == 'l' && + *(cursor + 5) == 'a' && + *(cursor + 6) == 't' && + *(cursor + 7) == 'e') + { + token_stream[(int) index++].kind = Token_template; + return; + } + if (*(cursor + 1) == 'y' && + *(cursor + 2) == 'p' && + *(cursor + 3) == 'e' && + *(cursor + 4) == 'n' && + *(cursor + 5) == 'a' && + *(cursor + 6) == 'm' && + *(cursor + 7) == 'e') + { + token_stream[(int) index++].kind = Token_typename; + return; + } + break; + + case 'v': + if (*(cursor + 1) == 'o' && + *(cursor + 2) == 'l' && + *(cursor + 3) == 'a' && + *(cursor + 4) == 't' && + *(cursor + 5) == 'i' && + *(cursor + 6) == 'l' && + *(cursor + 7) == 'e') + { + token_stream[(int) index++].kind = Token_volatile; + return; + } + break; + + } + token_stream[(int) index++].kind = Token_identifier; +} + +void Lexer::scanKeyword9() +{ + switch (*cursor) + { + case 'p': + if (*(cursor + 1) == 'r' && + *(cursor + 2) == 'o' && + *(cursor + 3) == 't' && + *(cursor + 4) == 'e' && + *(cursor + 5) == 'c' && + *(cursor + 6) == 't' && + *(cursor + 7) == 'e' && + *(cursor + 8) == 'd') + { + token_stream[(int) index++].kind = Token_protected; + return; + } + break; + + case 'n': + if (*(cursor + 1) == 'a' && + *(cursor + 2) == 'm' && + *(cursor + 3) == 'e' && + *(cursor + 4) == 's' && + *(cursor + 5) == 'p' && + *(cursor + 6) == 'a' && + *(cursor + 7) == 'c' && + *(cursor + 8) == 'e') + { + token_stream[(int) index++].kind = Token_namespace; + return; + } + break; + + } + token_stream[(int) index++].kind = Token_identifier; +} + +void Lexer::scanKeyword10() +{ + switch (*cursor) + { + case 'c': + if (*(cursor + 1) == 'o' && + *(cursor + 2) == 'n' && + *(cursor + 3) == 's' && + *(cursor + 4) == 't' && + *(cursor + 5) == '_' && + *(cursor + 6) == 'c' && + *(cursor + 7) == 'a' && + *(cursor + 8) == 's' && + *(cursor + 9) == 't') + { + token_stream[(int) index++].kind = Token_const_cast; + return; + } + break; + + case 'Q': + if (*(cursor + 1) == '_' && + *(cursor + 2) == 'P' && + *(cursor + 3) == 'R' && + *(cursor + 4) == 'O' && + *(cursor + 5) == 'P' && + *(cursor + 6) == 'E' && + *(cursor + 7) == 'R' && + *(cursor + 8) == 'T' && + *(cursor + 9) == 'Y') + { + token_stream[(int) index++].kind = Token_Q_PROPERTY; + return; + } + + break; + } + + token_stream[(int) index++].kind = Token_identifier; +} + +void Lexer::scanKeyword11() +{ + switch (*cursor) + { + case 'Q': + if (*(cursor + 1) == '_' && + *(cursor + 2) == 'I' && + *(cursor + 3) == 'N' && + *(cursor + 4) == 'V' && + *(cursor + 5) == 'O' && + *(cursor + 6) == 'K' && + *(cursor + 7) == 'A' && + *(cursor + 8) == 'B' && + *(cursor + 9) == 'L' && + *(cursor + 10) == 'E') + { + token_stream[(int) index++].kind = Token_Q_INVOKABLE; + return; + } + break; + + case 's': + if (*(cursor + 1) == 't' && + *(cursor + 2) == 'a' && + *(cursor + 3) == 't' && + *(cursor + 4) == 'i' && + *(cursor + 5) == 'c' && + *(cursor + 6) == '_' && + *(cursor + 7) == 'c' && + *(cursor + 8) == 'a' && + *(cursor + 9) == 's' && + *(cursor + 10) == 't') + { + token_stream[(int) index++].kind = Token_static_cast; + return; + } + break; + + } + token_stream[(int) index++].kind = Token_identifier; +} + +void Lexer::scanKeyword12() +{ + switch (*cursor) + { + case 'd': + if (*(cursor + 1) == 'y' && + *(cursor + 2) == 'n' && + *(cursor + 3) == 'a' && + *(cursor + 4) == 'm' && + *(cursor + 5) == 'i' && + *(cursor + 6) == 'c' && + *(cursor + 7) == '_' && + *(cursor + 8) == 'c' && + *(cursor + 9) == 'a' && + *(cursor + 10) == 's' && + *(cursor + 11) == 't') + { + token_stream[(int) index++].kind = Token_dynamic_cast; + return; + } + break; + + } + token_stream[(int) index++].kind = Token_identifier; +} + +void Lexer::scanKeyword13() +{ + switch (*cursor) + { + case '_': + if (*(cursor + 1) == '_' && + *(cursor + 2) == 'a' && + *(cursor + 3) == 't' && + *(cursor + 4) == 't' && + *(cursor + 5) == 'r' && + *(cursor + 6) == 'i' && + *(cursor + 7) == 'b' && + *(cursor + 8) == 'u' && + *(cursor + 9) == 't' && + *(cursor + 10) == 'e' && + *(cursor + 11) == '_' && + *(cursor + 12) == '_') + { + token_stream[(int) index++].kind = Token___attribute__; + return; + } + break; + } + token_stream[(int) index++].kind = Token_identifier; +} + +void Lexer::scanKeyword14() +{ + switch (*cursor) + { + case 'k': + if (*(cursor + 1) == '_' && + *(cursor + 2) == 'd' && + *(cursor + 3) == 'c' && + *(cursor + 4) == 'o' && + *(cursor + 5) == 'p' && + *(cursor + 6) == '_' && + *(cursor + 7) == 's' && + *(cursor + 8) == 'i' && + *(cursor + 9) == 'g' && + *(cursor + 10) == 'n' && + *(cursor + 11) == 'a' && + *(cursor + 12) == 'l' && + *(cursor + 13) == 's') + { + token_stream[(int) index++].kind = Token_k_dcop_signals; + return; + } + break; + } + token_stream[(int) index++].kind = Token_identifier; +} + +void Lexer::scanKeyword16() +{ + switch (*cursor) + { + case 'r': + if (*(cursor + 1) == 'e' && + *(cursor + 2) == 'i' && + *(cursor + 3) == 'n' && + *(cursor + 4) == 't' && + *(cursor + 5) == 'e' && + *(cursor + 6) == 'r' && + *(cursor + 7) == 'p' && + *(cursor + 8) == 'r' && + *(cursor + 9) == 'e' && + *(cursor + 10) == 't' && + *(cursor + 11) == '_' && + *(cursor + 12) == 'c' && + *(cursor + 13) == 'a' && + *(cursor + 14) == 's' && + *(cursor + 15) == 't') + { + token_stream[(int) index++].kind = Token_reinterpret_cast; + return; + } + break; + } + + token_stream[(int) index++].kind = Token_identifier; +} + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/lexer.h b/generator_50/parser/lexer.h new file mode 100644 index 00000000..05158f81 --- /dev/null +++ b/generator_50/parser/lexer.h @@ -0,0 +1,298 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef LEXER_H +#define LEXER_H + +#include "symbol.h" + +#include +#include +#include + +struct NameSymbol; +class Lexer; +class Control; + +typedef void (Lexer::*scan_fun_ptr)(); + +class Token +{ +public: + int kind; + std::size_t position; + std::size_t size; + char const *text; + + union + { + const NameSymbol *symbol; + std::size_t right_brace; + } extra; +}; + +class LocationTable +{ +private: + LocationTable(const LocationTable &source); + void operator = (const LocationTable &source); + +public: + inline LocationTable(std::size_t size = 1024) + : lines(0), + line_count(0), + current_line(0) + { + resize(size); + } + + inline ~LocationTable() + { + free(lines); + } + + inline std::size_t size() const + { return line_count; } + + void resize(std::size_t size) + { + Q_ASSERT(size > 0); + lines = (std::size_t*) ::realloc(lines, sizeof(std::size_t) * size); + line_count = size; + } + + void positionAt(std::size_t offset, int *line, int *column) const + { positionAt(offset, (int) current_line, line, column); } + + void positionAt(std::size_t offset, int max_line, int *line, int *column) const; + + inline std::size_t &operator[](int index) + { return lines[index]; } + +private: + std::size_t *lines; + std::size_t line_count; + std::size_t current_line; + + friend class Lexer; +}; + +class TokenStream +{ +private: + TokenStream(const TokenStream &); + void operator = (const TokenStream &); + +public: + inline TokenStream(std::size_t size = 1024) + : tokens(0), + index(0), + token_count(0) + { + resize(size); + } + + inline ~TokenStream() + { ::free(tokens); } + + inline std::size_t size() const + { return token_count; } + + inline std::size_t cursor() const + { return index; } + + inline void rewind(int i) + { index = i; } + + void resize(std::size_t size) + { + Q_ASSERT(size > 0); + tokens = (Token*) ::realloc(tokens, sizeof(Token) * size); + token_count = size; + } + + inline std::size_t nextToken() + { return index++; } + + inline int lookAhead(std::size_t i = 0) const + { return tokens[index + i].kind; } + + inline int kind(std::size_t i) const + { return tokens[i].kind; } + + inline std::size_t position(std::size_t i) const + { return tokens[i].position; } + + inline const NameSymbol *symbol(std::size_t i) const + { return tokens[i].extra.symbol; } + + inline std::size_t matchingBrace(std::size_t i) const + { return tokens[i].extra.right_brace; } + + inline Token &operator[](int index) + { return tokens[index]; } + + inline const Token &token(int index) const + { return tokens[index]; } + +private: + Token *tokens; + std::size_t index; + std::size_t token_count; + +private: + friend class Lexer; +}; + +class LocationManager +{ + LocationManager(LocationManager const &__other); + void operator = (LocationManager const &__other); + +public: + LocationManager (TokenStream &__token_stream, + LocationTable &__location_table, + LocationTable &__line_table): + token_stream (__token_stream), + location_table (__location_table), + line_table (__line_table) {} + + void positionAt(std::size_t offset, int *line, int *column, + QString *filename) const; + + void extract_line(int offset, int *line, QString *filename) const; + + TokenStream &token_stream; + LocationTable &location_table; + LocationTable &line_table; +}; + +class Lexer +{ +public: + Lexer(LocationManager &__location, Control *__control): + _M_location(__location), + token_stream(_M_location.token_stream), + location_table(_M_location.location_table), + line_table(_M_location.line_table), + control(__control) {} + + void tokenize(const char *contents, std::size_t size); + + LocationManager &_M_location; + TokenStream &token_stream; + LocationTable &location_table; + LocationTable &line_table; + +private: + void reportError(const QString& msg); + + void initialize_scan_table(); + void scan_newline(); + void scan_white_spaces(); + void scan_identifier_or_keyword(); + void scan_identifier_or_literal(); + void scan_int_constant(); + void scan_char_constant(); + void scan_string_constant(); + void scan_invalid_input(); + void scan_preprocessor(); + + // keywords + void scanKeyword0(); + void scanKeyword2(); + void scanKeyword3(); + void scanKeyword4(); + void scanKeyword5(); + void scanKeyword6(); + void scanKeyword7(); + void scanKeyword8(); + void scanKeyword9(); + void scanKeyword10(); + void scanKeyword11(); + void scanKeyword12(); + void scanKeyword13(); + void scanKeyword14(); + void scanKeyword16(); + + // operators + void scan_not(); + void scan_remainder(); + void scan_and(); + void scan_left_paren(); + void scan_right_paren(); + void scan_star(); + void scan_plus(); + void scan_comma(); + void scan_minus(); + void scan_dot(); + void scan_divide(); + void scan_colon(); + void scan_semicolon(); + void scan_less(); + void scan_equal(); + void scan_greater(); + void scan_question(); + void scan_left_bracket(); + void scan_right_bracket(); + void scan_xor(); + void scan_left_brace(); + void scan_or(); + void scan_right_brace(); + void scan_tilde(); + void scan_EOF(); + +private: + Control *control; + const unsigned char *cursor; + const unsigned char *begin_buffer; + const unsigned char *end_buffer; + std::size_t index; + + static scan_fun_ptr s_scan_table[]; + static scan_fun_ptr s_scan_keyword_table[]; + static bool s_initialized; +}; + +#endif // LEXER_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/list.cpp b/generator_50/parser/list.cpp new file mode 100644 index 00000000..59d31605 --- /dev/null +++ b/generator_50/parser/list.cpp @@ -0,0 +1,45 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#include "list.h" + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/list.h b/generator_50/parser/list.h new file mode 100644 index 00000000..71181924 --- /dev/null +++ b/generator_50/parser/list.h @@ -0,0 +1,119 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef FASTLIST_H +#define FASTLIST_H + +#include "smallobject.h" + +template +struct ListNode +{ + Tp element; + int index; + mutable const ListNode *next; + + static ListNode *create(const Tp &element, pool *p) + { + ListNode *node = new (p->allocate(sizeof(ListNode))) ListNode(); + node->element = element; + node->index = 0; + node->next = node; + + return node; + } + + static ListNode *create(const ListNode *n1, const Tp &element, pool *p) + { + ListNode *n2 = ListNode::create(element, p); + + n2->index = n1->index + 1; + n2->next = n1->next; + n1->next = n2; + + return n2; + } + + inline ListNode() { } + + inline const ListNode *at(int index) const + { + const ListNode *node = this; + while (index != node->index) + node = node->next; + + return node; + } + + inline bool hasNext() const + { return index < next->index; } + + inline int count() const + { return 1 + toBack()->index; } + + inline const ListNode *toFront() const + { return toBack()->next; } + + inline const ListNode *toBack() const + { + const ListNode *node = this; + while (node->hasNext()) + node = node->next; + + return node; + } +}; + +template +inline const ListNode *snoc(const ListNode *list, + const Tp &element, pool *p) +{ + if (!list) + return ListNode::create(element, p); + + return ListNode::create(list->toBack(), element, p); +} + +#endif // FASTLIST_H + +// kate: space-indent on; indent-width 2; replace-tabs on; + diff --git a/generator_50/parser/name_compiler.cpp b/generator_50/parser/name_compiler.cpp new file mode 100644 index 00000000..e2c5c8d7 --- /dev/null +++ b/generator_50/parser/name_compiler.cpp @@ -0,0 +1,159 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#include "name_compiler.h" +#include "type_compiler.h" +#include "declarator_compiler.h" +#include "lexer.h" +#include "symbol.h" +#include "binder.h" + +#include + +NameCompiler::NameCompiler(Binder *binder) + : _M_binder (binder), _M_token_stream (binder->tokenStream ()) +{ +} + +QString NameCompiler::decode_operator(std::size_t index) const +{ + const Token &tk = _M_token_stream->token((int) index); + return QString::fromUtf8(&tk.text[tk.position], (int) tk.size); +} + +QString NameCompiler::internal_run(AST *node) +{ + _M_name.clear(); + visit(node); + return name(); +} + +void NameCompiler::visitUnqualifiedName(UnqualifiedNameAST *node) +{ + QString tmp_name; + + if (node->tilde) + tmp_name += QLatin1String("~"); + + if (node->id) + tmp_name += _M_token_stream->symbol(node->id)->as_string(); + + if (OperatorFunctionIdAST *op_id = node->operator_id) + { +#if defined(__GNUC__) +#warning "NameCompiler::visitUnqualifiedName() -- implement me" +#endif + + if (op_id->op && op_id->op->op) + { + tmp_name += QLatin1String("operator"); + tmp_name += decode_operator(op_id->op->op); + if (op_id->op->close) + tmp_name += decode_operator(op_id->op->close); + } + else if (op_id->type_specifier) + { +#if defined(__GNUC__) +#warning "don't use an hardcoded string as cast' name" +#endif + Token const &tk = _M_token_stream->token ((int) op_id->start_token); + Token const &end_tk = _M_token_stream->token ((int) op_id->end_token); + tmp_name += QString::fromLatin1 (&tk.text[tk.position], + (int) (end_tk.position - tk.position)).trimmed (); + } + } + + _M_name += tmp_name; + if (node->template_arguments) + { + // ### cleanup + _M_name.last() += QLatin1String("<"); + visitNodes(this, node->template_arguments); + _M_name.last().truncate(_M_name.last().count() - 1); // remove the last ',' + _M_name.last() += QLatin1String(">"); + } + +} + +void NameCompiler::visitTemplateArgument(TemplateArgumentAST *node) +{ + if (node->type_id && node->type_id->type_specifier) + { + TypeCompiler type_cc(_M_binder); + type_cc.run(node->type_id->type_specifier); + + DeclaratorCompiler decl_cc(_M_binder); + decl_cc.run(node->type_id->declarator); + + if (type_cc.isConstant()) + _M_name.last() += "const "; + + QStringList q = type_cc.qualifiedName (); + + if (q.count () == 1) + { +#if defined (RXX_RESOLVE_TYPEDEF) // ### it'll break :( + TypeInfo tp; + tp.setQualifiedName (q); + tp = TypeInfo::resolveType (tp, _M_binder->currentScope ()->toItem ()); + q = tp.qualifiedName (); +#endif + + if (CodeModelItem item = _M_binder->model ()->findItem (q, _M_binder->currentScope ()->toItem ())) + { + if (item->name () == q.last ()) + q = item->qualifiedName (); + } + } + + _M_name.last() += q.join("::"); + + if (decl_cc.isReference()) + _M_name.last() += "&"; + if (decl_cc.indirection()) + _M_name.last() += QString(decl_cc.indirection(), '*'); + + _M_name.last() += QLatin1String(","); + } +} + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/name_compiler.h b/generator_50/parser/name_compiler.h new file mode 100644 index 00000000..5eb8507d --- /dev/null +++ b/generator_50/parser/name_compiler.h @@ -0,0 +1,78 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef NAME_COMPILER_H +#define NAME_COMPILER_H + +#include "default_visitor.h" +#include + +class TokenStream; +class Binder; + +class NameCompiler: protected DefaultVisitor +{ +public: + NameCompiler(Binder *binder); + + void run(NameAST *node) { internal_run(node); } + void run(UnqualifiedNameAST *node) { internal_run(node); } + + QString name() const { return _M_name.join("::"); } + QStringList qualifiedName() const { return _M_name; } + +protected: + virtual void visitUnqualifiedName(UnqualifiedNameAST *node); + virtual void visitTemplateArgument(TemplateArgumentAST *node); + + QString internal_run(AST *node); + QString decode_operator(std::size_t index) const; + +private: + Binder *_M_binder; + TokenStream *_M_token_stream; + QStringList _M_name; +}; + +#endif // NAME_COMPILER_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/parser.cpp b/generator_50/parser/parser.cpp new file mode 100644 index 00000000..15edc7b4 --- /dev/null +++ b/generator_50/parser/parser.cpp @@ -0,0 +1,4437 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ + + +// c++ support +#include "parser.h" +#include "tokens.h" +#include "lexer.h" +#include "control.h" + +#include +#include + +#define ADVANCE(tk, descr) \ +{ \ + if (token_stream.lookAhead() != tk) { \ + tokenRequiredError(tk); \ + return false; \ + } \ + token_stream.nextToken(); \ +} + +#define ADVANCE_NR(tk, descr) \ + do { \ + if (token_stream.lookAhead() != tk) { \ + tokenRequiredError(tk); \ + } \ + else \ + token_stream.nextToken(); \ + } while (0) + +#define CHECK(tk) \ + do { \ + if (token_stream.lookAhead() != tk) { \ + return false; \ + } \ + token_stream.nextToken(); \ + } while (0) + +#define UPDATE_POS(_node, start, end) \ + do { \ + (_node)->start_token = start; \ + (_node)->end_token = end; \ + } while (0) + +Parser::Parser(Control *c) + : _M_location(token_stream, location_table, line_table), + control(c), + lexer(_M_location, control) +{ + _M_block_errors = false; +} + +Parser::~Parser() +{ +} + +void Parser::advance() +{ + token_stream.nextToken(); +} + +TranslationUnitAST *Parser::parse(const char *contents, + std::size_t size, pool *p) +{ + _M_block_errors = false; + _M_pool = p; + lexer.tokenize(contents, size); + token_stream.nextToken(); // skip the first token + + Lexer *oldLexer = control->changeLexer (&lexer); + Parser *oldParser = control->changeParser (this); + + TranslationUnitAST *ast = 0; + parseTranslationUnit(ast); + + control->changeLexer (oldLexer); + control->changeParser (oldParser); + + return ast; +} + +bool Parser::parseWinDeclSpec(WinDeclSpecAST *&node) +{ + if (token_stream.lookAhead() != Token_identifier) + return false; + + std::size_t start = token_stream.cursor(); + + const NameSymbol *name_symbol = token_stream.symbol(token_stream.cursor()); + QString name = name_symbol->as_string(); + if (name != QLatin1String("__declspec")) + return false; + std::size_t specifier = token_stream.cursor(); + + token_stream.nextToken(); + if (token_stream.lookAhead() != '(') + return false; + + token_stream.nextToken(); + if (token_stream.lookAhead() != Token_identifier) + return false; + std::size_t modifier = token_stream.cursor(); + + token_stream.nextToken(); + if (token_stream.lookAhead() != ')') + return false; + + token_stream.nextToken(); + + node = CreateNode(_M_pool); + node->specifier = specifier; + node->modifier = modifier; + + UPDATE_POS(node, start, token_stream.cursor()); + + return true; +} + +void Parser::tokenRequiredError(int token) +{ + QString err; + + err += "expected token "; + err += "``"; + err += token_name(token); + err += "'' found ``"; + err += token_name(token_stream.lookAhead()); + err += "''"; + + reportError(err); +} + +void Parser::syntaxError() +{ + QString err; + + err += "unexpected token "; + err += "``"; + err += token_name(token_stream.lookAhead()); + err += "''"; + + reportError(err); +} + +void Parser::reportError(const QString& msg) +{ + if (!_M_block_errors) + { + int line, column; + QString fileName; + + std::size_t tok = token_stream.cursor(); + location().positionAt(token_stream.position(tok), + &line, &column, &fileName); + + Control::ErrorMessage errmsg; + errmsg.setLine(line + 1); + errmsg.setColumn(column); + errmsg.setFileName(fileName); + errmsg.setMessage(QLatin1String("** PARSER ERROR ") + msg); + control->reportError(errmsg); + } +} + +bool Parser::skipUntil(int token) +{ + while (token_stream.lookAhead()) + { + if (token_stream.lookAhead() == token) + return true; + + token_stream.nextToken(); + } + + return false; +} + +bool Parser::skipUntilDeclaration() +{ + while (token_stream.lookAhead()) + { + + switch(token_stream.lookAhead()) + { + case ';': + case '~': + case Token_scope: + case Token_identifier: + case Token_operator: + case Token_char: + case Token_wchar_t: + case Token_bool: + case Token_short: + case Token_int: + case Token_long: + case Token_signed: + case Token_unsigned: + case Token_float: + case Token_double: + case Token_void: + case Token_extern: + case Token_namespace: + case Token_using: + case Token_typedef: + case Token_asm: + case Token_template: + case Token_export: + + case Token_const: // cv + case Token_volatile: // cv + + case Token_public: + case Token_protected: + case Token_private: + case Token_signals: // Qt + case Token_slots: // Qt + return true; + + default: + token_stream.nextToken(); + } + } + + return false; +} + +bool Parser::skipUntilStatement() +{ + while (token_stream.lookAhead()) + { + switch(token_stream.lookAhead()) + { + case ';': + case '{': + case '}': + case Token_const: + case Token_volatile: + case Token_identifier: + case Token_case: + case Token_default: + case Token_if: + case Token_switch: + case Token_while: + case Token_do: + case Token_for: + case Token_break: + case Token_continue: + case Token_return: + case Token_goto: + case Token_try: + case Token_catch: + case Token_throw: + case Token_char: + case Token_wchar_t: + case Token_bool: + case Token_short: + case Token_int: + case Token_long: + case Token_signed: + case Token_unsigned: + case Token_float: + case Token_double: + case Token_void: + case Token_class: + case Token_struct: + case Token_union: + case Token_enum: + case Token_scope: + case Token_template: + case Token_using: + return true; + + default: + token_stream.nextToken(); + } + } + + return false; +} + +bool Parser::skip(int l, int r) +{ + int count = 0; + while (token_stream.lookAhead()) + { + int tk = token_stream.lookAhead(); + + if (tk == l) + ++count; + else if (tk == r) + --count; + else if (l != '{' && (tk == '{' || tk == '}' || tk == ';')) + return false; + + if (count == 0) + return true; + + token_stream.nextToken(); + } + + return false; +} + +bool Parser::parseName(NameAST *&node, bool acceptTemplateId) +{ + std::size_t start = token_stream.cursor(); + + WinDeclSpecAST *winDeclSpec = 0; + parseWinDeclSpec(winDeclSpec); + + NameAST *ast = CreateNode(_M_pool); + + if (token_stream.lookAhead() == Token_scope) + { + ast->global = true; + token_stream.nextToken(); + } + + std::size_t idx = token_stream.cursor(); + + while (true) + { + UnqualifiedNameAST *n = 0; + if (!parseUnqualifiedName(n)) + return false; + + if (token_stream.lookAhead() == Token_scope) + { + token_stream.nextToken(); + + ast->qualified_names + = snoc(ast->qualified_names, n, _M_pool); + + if (token_stream.lookAhead() == Token_template) + { + /// skip optional template #### @todo CHECK + token_stream.nextToken(); + } + } + else + { + Q_ASSERT(n != 0); + if (!acceptTemplateId) + { + token_stream.rewind((int) n->start_token); + parseUnqualifiedName(n, false); + } + + ast->unqualified_name = n; + break; + } + } + + if (idx == token_stream.cursor()) + return false; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseTranslationUnit(TranslationUnitAST *&node) +{ + std::size_t start = token_stream.cursor(); + TranslationUnitAST *ast = CreateNode(_M_pool); + + while (token_stream.lookAhead()) + { + std::size_t startDecl = token_stream.cursor(); + + DeclarationAST *declaration = 0; + if (parseDeclaration(declaration)) + { + ast->declarations = + snoc(ast->declarations, declaration, _M_pool); + } + else + { + // error recovery + if (startDecl == token_stream.cursor()) + { + // skip at least one token + token_stream.nextToken(); + } + + skipUntilDeclaration(); + } + } + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseDeclaration(DeclarationAST *&node) +{ + std::size_t start = token_stream.cursor(); + + switch(token_stream.lookAhead()) + { + case ';': + token_stream.nextToken(); + return true; + + case Token_extern: + return parseLinkageSpecification(node); + + case Token_namespace: + return parseNamespace(node); + + case Token_using: + return parseUsing(node); + + case Token_typedef: + return parseTypedef(node); + + case Token_asm: + return parseAsmDefinition(node); + + case Token_Q_ENUMS: + return parseQ_ENUMS(node); + + case Token_template: + case Token_export: + return parseTemplateDeclaration(node); + + default: + { + const ListNode *cv = 0; + parseCvQualify(cv); + + const ListNode *storageSpec = 0; + parseStorageClassSpecifier(storageSpec); + + parseCvQualify(cv); + + TypeSpecifierAST *spec = 0; + if (parseEnumSpecifier(spec) + || parseClassSpecifier(spec) + || parseForwardDeclarationSpecifier(spec)) + { + parseCvQualify(cv); + + spec->cv = cv; + + const ListNode *declarators = 0; + parseInitDeclaratorList(declarators); + ADVANCE(';', ";"); + + SimpleDeclarationAST *ast = + CreateNode(_M_pool); + + ast->storage_specifiers = storageSpec; + ast->type_specifier = spec; + ast->init_declarators = declarators; + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; + } + } + } // end switch + + token_stream.rewind((int) start); + return parseDeclarationInternal(node); +} + +bool Parser::parseLinkageSpecification(DeclarationAST *&node) +{ + std::size_t start = token_stream.cursor(); + + CHECK(Token_extern); + + LinkageSpecificationAST *ast = CreateNode(_M_pool); + + if (token_stream.lookAhead() == Token_string_literal) + { + ast->extern_type = token_stream.cursor(); + token_stream.nextToken(); + } + + if (token_stream.lookAhead() == '{') + { + parseLinkageBody(ast->linkage_body); + } + else if (!parseDeclaration(ast->declaration)) + { + reportError(("Declaration syntax error")); + } + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseLinkageBody(LinkageBodyAST *&node) +{ + std::size_t start = token_stream.cursor(); + + CHECK('{'); + + LinkageBodyAST *ast = CreateNode(_M_pool); + + while (token_stream.lookAhead()) + { + int tk = token_stream.lookAhead(); + + if (tk == '}') + break; + + std::size_t startDecl = token_stream.cursor(); + + DeclarationAST *declaration = 0; + if (parseDeclaration(declaration)) + { + ast->declarations = snoc(ast->declarations, declaration, _M_pool); + } + else + { + // error recovery + if (startDecl == token_stream.cursor()) + { + // skip at least one token + token_stream.nextToken(); + } + + skipUntilDeclaration(); + } + } + + if (token_stream.lookAhead() != '}') + reportError(("} expected")); + else + token_stream.nextToken(); + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseNamespace(DeclarationAST *&node) +{ + std::size_t start = token_stream.cursor(); + + CHECK(Token_namespace); + + std::size_t namespace_name = 0; + if (token_stream.lookAhead() == Token_identifier) + { + namespace_name = token_stream.cursor(); + token_stream.nextToken(); + } + + if (token_stream.lookAhead() == '=') + { + // namespace alias + token_stream.nextToken(); + + NameAST *name = 0; + if (parseName(name)) + { + ADVANCE(';', ";"); + + NamespaceAliasDefinitionAST *ast + = CreateNode(_M_pool); + ast->namespace_name = namespace_name; + ast->alias_name = name; + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + return true; + } + else + { + reportError(("namespace expected")); + return false; + } + } + else if (token_stream.lookAhead() != '{') + { + reportError(("{ expected")); + return false; + } + + NamespaceAST *ast = CreateNode(_M_pool); + ast->namespace_name = namespace_name; + parseLinkageBody(ast->linkage_body); + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseUsing(DeclarationAST *&node) +{ + std::size_t start = token_stream.cursor(); + + CHECK(Token_using); + + if (token_stream.lookAhead() == Token_namespace) + return parseUsingDirective(node); + + UsingAST *ast = CreateNode(_M_pool); + + if (token_stream.lookAhead() == Token_typename) + { + ast->type_name = token_stream.cursor(); + token_stream.nextToken(); + } + + if (!parseName(ast->name)) + return false; + + ADVANCE(';', ";"); + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseUsingDirective(DeclarationAST *&node) +{ + std::size_t start = token_stream.cursor(); + + CHECK(Token_namespace); + + NameAST *name = 0; + if (!parseName(name)) + { + reportError(("Namespace name expected")); + return false; + } + + ADVANCE(';', ";"); + + UsingDirectiveAST *ast = CreateNode(_M_pool); + ast->name = name; + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + + +bool Parser::parseOperatorFunctionId(OperatorFunctionIdAST *&node) +{ + std::size_t start = token_stream.cursor(); + + CHECK(Token_operator); + + OperatorFunctionIdAST *ast = CreateNode(_M_pool); + + if (!parseOperator(ast->op)) + { + ast->op = 0; + + // parse cast operator + const ListNode *cv = 0; + parseCvQualify(cv); + + if (!parseSimpleTypeSpecifier(ast->type_specifier)) + { + syntaxError(); + return false; + } + + parseCvQualify(cv); + ast->type_specifier->cv = cv; + + PtrOperatorAST *ptr_op = 0; + while (parsePtrOperator(ptr_op)) + ast->ptr_ops = snoc(ast->ptr_ops, ptr_op, _M_pool); + } + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + return true; +} + +bool Parser::parseTemplateArgumentList(const ListNode *&node, + bool reportError) +{ + TemplateArgumentAST *templArg = 0; + if (!parseTemplateArgument(templArg)) + return false; + + node = snoc(node, templArg, _M_pool); + + while (token_stream.lookAhead() == ',') + { + token_stream.nextToken(); + + if (!parseTemplateArgument(templArg)) + { + if (reportError) + { + syntaxError(); + break; + } + + node = 0; + return false; + } + + node = snoc(node, templArg, _M_pool); + } + + return true; +} + +bool Parser::parseTypedef(DeclarationAST *&node) +{ + std::size_t start = token_stream.cursor(); + + CHECK(Token_typedef); + + TypeSpecifierAST *spec = 0; + if (!parseTypeSpecifierOrClassSpec(spec)) + { + reportError(("Need a type specifier to declare")); + return false; + } + + const ListNode *declarators = 0; + if (!parseInitDeclaratorList(declarators)) + { + //reportError(("Need an identifier to declare")); + //return false; + } + + ADVANCE(';', ";"); + + TypedefAST *ast = CreateNode(_M_pool); + ast->type_specifier = spec; + ast->init_declarators = declarators; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseAsmDefinition(DeclarationAST *&node) +{ + std::size_t start = token_stream.cursor(); + + ADVANCE(Token_asm, "asm"); + + const ListNode *cv = 0; + parseCvQualify(cv); + +#if defined(__GNUC__) +#warning "implement me" +#endif + skip('(', ')'); + token_stream.nextToken(); + ADVANCE(';', ";"); + + AsmDefinitionAST *ast = CreateNode(_M_pool); + ast->cv = cv; + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseTemplateDeclaration(DeclarationAST *&node) +{ + std::size_t start = token_stream.cursor(); + + std::size_t exported = 0; + if (token_stream.lookAhead() == Token_export) + { + exported = token_stream.cursor(); + token_stream.nextToken(); + } + + CHECK(Token_template); + + const ListNode *params = 0; + if (token_stream.lookAhead() == '<') + { + token_stream.nextToken(); + parseTemplateParameterList(params); + + ADVANCE('>', ">"); + } + + DeclarationAST *declaration = 0; + if (!parseDeclaration(declaration)) + { + reportError(("expected a declaration")); + } + + TemplateDeclarationAST *ast = CreateNode(_M_pool); + ast->exported = exported; + ast->template_parameters = params; + ast->declaration = declaration; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseOperator(OperatorAST *&node) +{ + std::size_t start = token_stream.cursor(); + + OperatorAST *ast = CreateNode(_M_pool); + + switch(token_stream.lookAhead()) + { + case Token_new: + case Token_delete: + { + ast->op = token_stream.cursor(); + token_stream.nextToken(); + + if (token_stream.lookAhead() == '[' + && token_stream.lookAhead(1) == ']') + { + ast->open = token_stream.cursor(); + token_stream.nextToken(); + + ast->close = token_stream.cursor(); + token_stream.nextToken(); + } + } + break; + + case '+': + case '-': + case '*': + case '/': + case '%': + case '^': + case '&': + case '|': + case '~': + case '!': + case '=': + case '<': + case '>': + case ',': + case Token_assign: + case Token_shift: + case Token_eq: + case Token_not_eq: + case Token_leq: + case Token_geq: + case Token_and: + case Token_or: + case Token_incr: + case Token_decr: + case Token_ptrmem: + case Token_arrow: + ast->op = token_stream.cursor(); + token_stream.nextToken(); + break; + + default: + if (token_stream.lookAhead() == '(' + && token_stream.lookAhead(1) == ')') + { + ast->op = ast->open = token_stream.cursor(); + token_stream.nextToken(); + ast->close = token_stream.cursor(); + token_stream.nextToken(); + } + else if (token_stream.lookAhead() == '[' + && token_stream.lookAhead(1) == ']') + { + ast->op = ast->open = token_stream.cursor(); + token_stream.nextToken(); + ast->close = token_stream.cursor(); + token_stream.nextToken(); + } + else + { + return false; + } + } + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseCvQualify(const ListNode *&node) +{ + std::size_t start = token_stream.cursor(); + + int tk; + while (0 != (tk = token_stream.lookAhead()) + && (tk == Token_const || tk == Token_volatile)) + { + node = snoc(node, token_stream.cursor(), _M_pool); + token_stream.nextToken(); + } + + return start != token_stream.cursor(); +} + +bool Parser::parseSimpleTypeSpecifier(TypeSpecifierAST *&node, + bool onlyIntegral) +{ + std::size_t start = token_stream.cursor(); + bool isIntegral = false; + bool done = false; + + const ListNode *integrals = 0; + + while (!done) + { + switch(token_stream.lookAhead()) + { + case Token_char: + case Token_wchar_t: + case Token_bool: + case Token_short: + case Token_int: + case Token_long: + case Token_signed: + case Token_unsigned: + case Token_float: + case Token_double: + case Token_void: + integrals = snoc(integrals, token_stream.cursor(), _M_pool); + isIntegral = true; + token_stream.nextToken(); + break; + + default: + done = true; + } + } + + SimpleTypeSpecifierAST *ast = CreateNode(_M_pool); + if (isIntegral) + { + ast->integrals = integrals; + } + else if (token_stream.lookAhead() == Token___typeof) + { + ast->type_of = token_stream.cursor(); + token_stream.nextToken(); + + if (token_stream.lookAhead() == '(') + { + token_stream.nextToken(); + + std::size_t saved = token_stream.cursor(); + parseTypeId(ast->type_id); + if (token_stream.lookAhead() != ')') + { + ast->type_id = 0; + token_stream.rewind((int) saved); + parseUnaryExpression(ast->expression); + } + ADVANCE(')', ")"); + } + else + { + parseUnaryExpression(ast->expression); + } + } + else if (onlyIntegral) + { + token_stream.rewind((int) start); + return false; + } + else + { + if (!parseName(ast->name, true)) + { + ast->name = 0; + token_stream.rewind((int) start); + return false; + } + } + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parsePtrOperator(PtrOperatorAST *&node) +{ + int tk = token_stream.lookAhead(); + + if (tk != '&' && tk != '*' + && tk != Token_scope && tk != Token_identifier) + { + return false; + } + + std::size_t start = token_stream.cursor(); + + PtrOperatorAST *ast = CreateNode(_M_pool); + + switch (token_stream.lookAhead()) + { + case '&': + case '*': + ast->op = token_stream.cursor(); + token_stream.nextToken(); + break; + + case Token_scope: + case Token_identifier: + { + if (!parsePtrToMember(ast->mem_ptr)) + { + token_stream.rewind((int) start); + return false; + } + } + break; + + default: + Q_ASSERT(0); + break; + } + + parseCvQualify(ast->cv); + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseTemplateArgument(TemplateArgumentAST *&node) +{ + std::size_t start = token_stream.cursor(); + + TypeIdAST *typeId = 0; + ExpressionAST *expr = 0; + + if (!parseTypeId(typeId) || (token_stream.lookAhead() != ',' + && token_stream.lookAhead() != '>')) + { + token_stream.rewind((int) start); + + if (!parseLogicalOrExpression(expr, true)) + return false; + } + + TemplateArgumentAST *ast = CreateNode(_M_pool); + ast->type_id = typeId; + ast->expression = expr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseTypeSpecifier(TypeSpecifierAST *&node) +{ + std::size_t start = token_stream.cursor(); + + const ListNode *cv = 0; + parseCvQualify(cv); + + TypeSpecifierAST *ast = 0; + if (!parseElaboratedTypeSpecifier(ast) && !parseSimpleTypeSpecifier(ast)) + { + token_stream.rewind((int) start); + return false; + } + + parseCvQualify(cv); + ast->cv = cv; + + node = ast; + + return true; +} + +bool Parser::parseDeclarator(DeclaratorAST *&node) +{ + std::size_t start = token_stream.cursor(); + + DeclaratorAST *ast = CreateNode(_M_pool); + + DeclaratorAST *decl = 0; + NameAST *declId = 0; + + PtrOperatorAST *ptrOp = 0; + while (parsePtrOperator(ptrOp)) + { + ast->ptr_ops = snoc(ast->ptr_ops, ptrOp, _M_pool); + } + + if (token_stream.lookAhead() == '(') + { + token_stream.nextToken(); + + if (!parseDeclarator(decl)) + return false; + + ast->sub_declarator = decl; + + CHECK(')'); + } + else + { + if (token_stream.lookAhead() == ':') + { + // unnamed bitfield + } + else if (parseName(declId, true)) + { + ast->id = declId; + } + else + { + token_stream.rewind((int) start); + return false; + } + + if (token_stream.lookAhead() == ':') + { + token_stream.nextToken(); + + if (!parseConstantExpression(ast->bit_expression)) + { + reportError(("Constant expression expected")); + } + goto update_pos; + } + } + + { + bool isVector = true; + + while (token_stream.lookAhead() == '[') + { + token_stream.nextToken(); + + ExpressionAST *expr = 0; + parseCommaExpression(expr); + + ADVANCE(']', "]"); + + ast->array_dimensions = snoc(ast->array_dimensions, expr, _M_pool); + isVector = true; + } + + bool skipParen = false; + if (token_stream.lookAhead() == Token_identifier + && token_stream.lookAhead(1) == '(' + && token_stream.lookAhead(2) == '(') + { + token_stream.nextToken(); + token_stream.nextToken(); + skipParen = true; + } + + int tok = token_stream.lookAhead(); + if (ast->sub_declarator + && !(isVector || tok == '(' || tok == ',' + || tok == ';' || tok == '=')) + { + token_stream.rewind((int) start); + return false; + } + + std::size_t index = token_stream.cursor(); + if (token_stream.lookAhead() == '(') + { + token_stream.nextToken(); + + ParameterDeclarationClauseAST *params = 0; + if (!parseParameterDeclarationClause(params)) + { + token_stream.rewind((int) index); + goto update_pos; + } + + ast->parameter_declaration_clause = params; + + if (token_stream.lookAhead() != ')') + { + token_stream.rewind((int) index); + goto update_pos; + } + + token_stream.nextToken(); // skip ')' + + parseCvQualify(ast->fun_cv); + parseExceptionSpecification(ast->exception_spec); + + if (token_stream.lookAhead() == Token___attribute__) + { + parse_Attribute__(); + } + } + + if (skipParen) + { + if (token_stream.lookAhead() != ')') + { + reportError(("')' expected")); + } + else + token_stream.nextToken(); + } + } + + update_pos: + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseAbstractDeclarator(DeclaratorAST *&node) +{ + std::size_t start = token_stream.cursor(); + + DeclaratorAST *ast = CreateNode(_M_pool); + DeclaratorAST *decl = 0; + + PtrOperatorAST *ptrOp = 0; + while (parsePtrOperator(ptrOp)) + { + ast->ptr_ops = snoc(ast->ptr_ops, ptrOp, _M_pool); + } + + int index = (int) token_stream.cursor(); + if (token_stream.lookAhead() == '(') + { + token_stream.nextToken(); + + if (!parseAbstractDeclarator(decl)) + { + token_stream.rewind((int) index); + goto label1; + } + + ast->sub_declarator = decl; + + if (token_stream.lookAhead() != ')') + { + token_stream.rewind((int) start); + return false; + } + token_stream.nextToken(); + } + else if (token_stream.lookAhead() == ':') + { + token_stream.nextToken(); + if (!parseConstantExpression(ast->bit_expression)) + { + ast->bit_expression = 0; + reportError(("Constant expression expected")); + } + goto update_pos; + } + + label1: + { + bool isVector = true; + + while (token_stream.lookAhead() == '[') + { + token_stream.nextToken(); + + ExpressionAST *expr = 0; + parseCommaExpression(expr); + + ADVANCE(']', "]"); + + ast->array_dimensions = snoc(ast->array_dimensions, expr, _M_pool); + isVector = true; + } + + int tok = token_stream.lookAhead(); + if (ast->sub_declarator + && !(isVector || tok == '(' || tok == ',' + || tok == ';' || tok == '=')) + { + token_stream.rewind((int) start); + return false; + } + + int index = (int) token_stream.cursor(); + if (token_stream.lookAhead() == '(') + { + token_stream.nextToken(); + + ParameterDeclarationClauseAST *params = 0; + if (!parseParameterDeclarationClause(params)) + { + token_stream.rewind((int) index); + goto update_pos; + } + + ast->parameter_declaration_clause = params; + + if (token_stream.lookAhead() != ')') + { + token_stream.rewind((int) index); + goto update_pos; + } + + token_stream.nextToken(); // skip ')' + + parseCvQualify(ast->fun_cv); + parseExceptionSpecification(ast->exception_spec); + } + } + + update_pos: + if (token_stream.cursor() == start) + return false; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseEnumSpecifier(TypeSpecifierAST *&node) +{ + std::size_t start = token_stream.cursor(); + + CHECK(Token_enum); + + NameAST *name = 0; + parseName(name); + + if (token_stream.lookAhead() != '{') + { + token_stream.rewind((int) start); + return false; + } + token_stream.nextToken(); + + EnumSpecifierAST *ast = CreateNode(_M_pool); + ast->name = name; + + EnumeratorAST *enumerator = 0; + if (parseEnumerator(enumerator)) + { + ast->enumerators = snoc(ast->enumerators, enumerator, _M_pool); + + while (token_stream.lookAhead() == ',') + { + token_stream.nextToken(); + + if (!parseEnumerator(enumerator)) + { + //reportError(("Enumerator expected")); + break; + } + + ast->enumerators = snoc(ast->enumerators, enumerator, _M_pool); + } + } + + ADVANCE_NR('}', "}"); + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseTemplateParameterList(const ListNode *&node) +{ + TemplateParameterAST *param = 0; + if (!parseTemplateParameter(param)) + return false; + + node = snoc(node, param, _M_pool); + + while (token_stream.lookAhead() == ',') + { + token_stream.nextToken(); + + if (!parseTemplateParameter(param)) + { + syntaxError(); + break; + } + else + { + node = snoc(node, param, _M_pool); + } + } + + return true; +} + +bool Parser::parseTemplateParameter(TemplateParameterAST *&node) +{ + std::size_t start = token_stream.cursor(); + TemplateParameterAST *ast = CreateNode(_M_pool); + + int tk = token_stream.lookAhead(); + + if ((tk == Token_class || tk == Token_typename || tk == Token_template) + && parseTypeParameter(ast->type_parameter)) + { + // nothing to do + } + else if (!parseParameterDeclaration(ast->parameter_declaration)) + return false; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseTypeParameter(TypeParameterAST *&node) +{ + std::size_t start = token_stream.cursor(); + + TypeParameterAST *ast = CreateNode(_M_pool); + ast->type = start; + + switch(token_stream.lookAhead()) + { + case Token_class: + case Token_typename: + { + token_stream.nextToken(); // skip class + + // parse optional name + if(parseName(ast->name, true)) + { + if (token_stream.lookAhead() == '=') + { + token_stream.nextToken(); + + if(!parseTypeId(ast->type_id)) + { + //syntaxError(); + token_stream.rewind((int) start); + return false; + } + } + else if (token_stream.lookAhead() != ',' + && token_stream.lookAhead() != '>') + { + token_stream.rewind((int) start); + return false; + } + } + } + break; + + case Token_template: + { + token_stream.nextToken(); // skip template + ADVANCE('<', "<"); + + if (!parseTemplateParameterList(ast->template_parameters)) + return false; + + ADVANCE('>', ">"); + + if (token_stream.lookAhead() == Token_class) + token_stream.nextToken(); + + // parse optional name + if (parseName(ast->name, true)) + { + if (token_stream.lookAhead() == '=') + { + token_stream.nextToken(); + + if (!parseTypeId(ast->type_id)) + { + syntaxError(); + return false; + } + } + } + + if (token_stream.lookAhead() == '=') + { + token_stream.nextToken(); + + parseName(ast->template_name, true); + } + } + break; + + default: + return false; + + } // end switch + + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + return true; +} + +bool Parser::parseStorageClassSpecifier(const ListNode *&node) +{ + std::size_t start = token_stream.cursor(); + + int tk; + while (0 != (tk = token_stream.lookAhead()) + && (tk == Token_friend || tk == Token_auto + || tk == Token_register || tk == Token_static + || tk == Token_extern || tk == Token_mutable)) + { + node = snoc(node, token_stream.cursor(), _M_pool); + token_stream.nextToken(); + } + + return start != token_stream.cursor(); +} + +bool Parser::parseFunctionSpecifier(const ListNode *&node) +{ + std::size_t start = token_stream.cursor(); + + int tk; + while (0 != (tk = token_stream.lookAhead()) + && (tk == Token_inline || tk == Token_virtual + || tk == Token_explicit || tk == Token_Q_INVOKABLE)) + { + node = snoc(node, token_stream.cursor(), _M_pool); + token_stream.nextToken(); + } + + return start != token_stream.cursor(); +} + +bool Parser::parseTypeId(TypeIdAST *&node) +{ + /// @todo implement the AST for typeId + std::size_t start = token_stream.cursor(); + + TypeSpecifierAST *spec = 0; + if (!parseTypeSpecifier(spec)) + { + token_stream.rewind((int) start); + return false; + } + + DeclaratorAST *decl = 0; + parseAbstractDeclarator(decl); + + TypeIdAST *ast = CreateNode(_M_pool); + ast->type_specifier = spec; + ast->declarator = decl; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseInitDeclaratorList(const ListNode *&node) +{ + InitDeclaratorAST *decl = 0; + if (!parseInitDeclarator(decl)) + return false; + + node = snoc(node, decl, _M_pool); + + while (token_stream.lookAhead() == ',') + { + token_stream.nextToken(); + + if (!parseInitDeclarator(decl)) + { + syntaxError(); + break; + } + node = snoc(node, decl, _M_pool); + } + + return true; +} + +bool Parser::parseParameterDeclarationClause(ParameterDeclarationClauseAST *&node) +{ + std::size_t start = token_stream.cursor(); + + ParameterDeclarationClauseAST *ast + = CreateNode(_M_pool); + + if (!parseParameterDeclarationList(ast->parameter_declarations)) + { + if (token_stream.lookAhead() == ')') + goto good; + + if (token_stream.lookAhead() == Token_ellipsis + && token_stream.lookAhead(1) == ')') + { + ast->ellipsis = token_stream.cursor(); + goto good; + } + + return false; + } + + good: + + if (token_stream.lookAhead() == Token_ellipsis) + { + ast->ellipsis = token_stream.cursor(); + token_stream.nextToken(); + } + + /// @todo add ellipsis + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseParameterDeclarationList(const ListNode *&node) +{ + std::size_t start = token_stream.cursor(); + + ParameterDeclarationAST *param = 0; + if (!parseParameterDeclaration(param)) + { + token_stream.rewind((int) start); + return false; + } + + node = snoc(node, param, _M_pool); + + while (token_stream.lookAhead() == ',') + { + token_stream.nextToken(); + + if (token_stream.lookAhead() == Token_ellipsis) + break; + + if (!parseParameterDeclaration(param)) + { + token_stream.rewind((int) start); + return false; + } + node = snoc(node, param, _M_pool); + } + + return true; +} + +bool Parser::parseParameterDeclaration(ParameterDeclarationAST *&node) +{ + std::size_t start = token_stream.cursor(); + + const ListNode *storage = 0; + parseStorageClassSpecifier(storage); + + // parse decl spec + TypeSpecifierAST *spec = 0; + if (!parseTypeSpecifier(spec)) + { + token_stream.rewind((int) start); + return false; + } + + int index = (int) token_stream.cursor(); + + DeclaratorAST *decl = 0; + if (!parseDeclarator(decl)) + { + token_stream.rewind((int) index); + + // try with abstract declarator + parseAbstractDeclarator(decl); + } + + ExpressionAST *expr = 0; + if (token_stream.lookAhead() == '=') + { + token_stream.nextToken(); + if (!parseLogicalOrExpression(expr,true)) + { + //reportError(("Expression expected")); + } + } + + ParameterDeclarationAST *ast = CreateNode(_M_pool); + ast->type_specifier = spec; + ast->declarator = decl; + ast->expression = expr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parse_Attribute__() { + token_stream.nextToken(); + + ADVANCE('(', "("); + + ExpressionAST *expr = 0; + parseExpression(expr); + + if (token_stream.lookAhead() != ')') + { + reportError(("')' expected")); + return false; + } + else + { + token_stream.nextToken(); + } + return true; +} + +QString Parser::tokenText(AST *ast) const +{ + if (ast == 0) return QString(); + + int start_token = ast->start_token; + int end_token = ast->end_token; + + Token const &tk = token_stream.token (start_token); + Token const &end_tk = token_stream.token(end_token); + + return QString::fromLatin1 (&tk.text[tk.position],(int) (end_tk.position - tk.position)).trimmed(); +} + +bool Parser::parseForwardDeclarationSpecifier(TypeSpecifierAST *&node) +{ + std::size_t start = token_stream.cursor(); + + int kind = token_stream.lookAhead(); + if (kind != Token_class && kind != Token_struct && kind != Token_union) + return false; + + std::size_t class_key = token_stream.cursor(); + token_stream.nextToken(); + + NameAST *name = 0; + if (!parseName(name, false)) { + token_stream.rewind((int) start); + return false; + } + + BaseClauseAST *bases = 0; + if (token_stream.lookAhead() == ':') + { + if (!parseBaseClause(bases)) + { + token_stream.rewind((int) start); + return false; + } + } + + if (token_stream.lookAhead() != ';') + { + token_stream.rewind((int) start); + return false; + } + + ForwardDeclarationSpecifierAST *ast = CreateNode(_M_pool); + ast->class_key = class_key; + ast->name = name; + ast->base_clause = bases; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseClassSpecifier(TypeSpecifierAST *&node) +{ + std::size_t start = token_stream.cursor(); + + int kind = token_stream.lookAhead(); + if (kind != Token_class && kind != Token_struct && kind != Token_union) + return false; + + std::size_t class_key = token_stream.cursor(); + token_stream.nextToken(); + + WinDeclSpecAST *winDeclSpec = 0; + parseWinDeclSpec(winDeclSpec); + + if (token_stream.lookAhead() == Token___attribute__) { + parse_Attribute__(); + } + + while (token_stream.lookAhead() == Token_identifier + && token_stream.lookAhead(1) == Token_identifier) + { + token_stream.nextToken(); + } + + NameAST *name = 0; + parseName(name, true); + + BaseClauseAST *bases = 0; + + if (token_stream.lookAhead() == ':') + { + if (!parseBaseClause(bases)) + { + skipUntil('{'); + } + } + + if (token_stream.lookAhead() != '{') + { + + token_stream.rewind((int) start); + return false; + } + + ADVANCE('{', "{"); + + ClassSpecifierAST *ast = CreateNode(_M_pool); + ast->win_decl_specifiers = winDeclSpec; + ast->class_key = class_key; + ast->name = name; + ast->base_clause = bases; + + while (token_stream.lookAhead()) + { + if (token_stream.lookAhead() == '}') + break; + + std::size_t startDecl = token_stream.cursor(); + + DeclarationAST *memSpec = 0; + if (!parseMemberSpecification(memSpec)) + { + if (startDecl == token_stream.cursor()) + token_stream.nextToken(); // skip at least one token + skipUntilDeclaration(); + } + else + ast->member_specs = snoc(ast->member_specs, memSpec, _M_pool); + } + + ADVANCE_NR('}', "}"); + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseAccessSpecifier(DeclarationAST *&node) +{ + std::size_t start = token_stream.cursor(); + + const ListNode *specs = 0; + + bool done = false; + while (!done) + { + switch(token_stream.lookAhead()) + { + case Token_signals: + case Token_slots: + case Token_k_dcop: + case Token_k_dcop_signals: + case Token_public: + case Token_protected: + case Token_private: + specs = snoc(specs, token_stream.cursor(), _M_pool); + token_stream.nextToken(); + break; + + default: + done = true; + break; + } + } + + if (!specs) + return false; + + ADVANCE(':', ":"); + + AccessSpecifierAST *ast = CreateNode(_M_pool); + ast->specs = specs; + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseMemberSpecification(DeclarationAST *&node) +{ + std::size_t start = token_stream.cursor(); + + if (token_stream.lookAhead() == ';') + { + token_stream.nextToken(); + return true; + } + else if (token_stream.lookAhead() == Token_Q_OBJECT || token_stream.lookAhead() == Token_K_DCOP) + { + token_stream.nextToken(); + return true; + } + else if (parseTypedef(node)) + { + return true; + } + else if (parseUsing(node)) + { + return true; + } + else if (parseTemplateDeclaration(node)) + { + return true; + } + else if (parseAccessSpecifier(node)) + { + return true; + } + else if (parseQ_PROPERTY(node)) + { + return true; + } + else if (parseQ_ENUMS(node)) + { + return true; + } + + token_stream.rewind((int) start); + + const ListNode *cv = 0; + parseCvQualify(cv); + + const ListNode *storageSpec = 0; + parseStorageClassSpecifier(storageSpec); + + parseCvQualify(cv); + + TypeSpecifierAST *spec = 0; + if (parseEnumSpecifier(spec) || parseClassSpecifier(spec)) + { + parseCvQualify(cv); + spec->cv = cv; + + const ListNode *declarators = 0; + parseInitDeclaratorList(declarators); + ADVANCE(';', ";"); + + SimpleDeclarationAST *ast = CreateNode(_M_pool); + ast->type_specifier = spec; + ast->init_declarators = declarators; + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; + } + + token_stream.rewind((int) start); + return parseDeclarationInternal(node); +} + +bool Parser::parseCtorInitializer(CtorInitializerAST *&node) +{ + std::size_t start = token_stream.cursor(); + + CHECK(':'); + + CtorInitializerAST *ast = CreateNode(_M_pool); + ast->colon = start; + + if (!parseMemInitializerList(ast->member_initializers)) + { + reportError(("Member initializers expected")); + } + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseElaboratedTypeSpecifier(TypeSpecifierAST *&node) +{ + std::size_t start = token_stream.cursor(); + + int tk = token_stream.lookAhead(); + if (tk == Token_class || + tk == Token_struct || + tk == Token_union || + tk == Token_enum || + tk == Token_typename) + { + std::size_t type = token_stream.cursor(); + token_stream.nextToken(); + + NameAST *name = 0; + if (parseName(name, true)) + { + ElaboratedTypeSpecifierAST *ast + = CreateNode(_M_pool); + + ast->type = type; + ast->name = name; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; + } + } + + token_stream.rewind((int) start); + return false; +} + +bool Parser::parseExceptionSpecification(ExceptionSpecificationAST *&node) +{ + std::size_t start = token_stream.cursor(); + + CHECK(Token_throw); + ADVANCE('(', "("); + + ExceptionSpecificationAST *ast + = CreateNode(_M_pool); + + if (token_stream.lookAhead() == Token_ellipsis) + { + ast->ellipsis = token_stream.cursor(); + token_stream.nextToken(); + } + else + { + parseTypeIdList(ast->type_ids); + } + + ADVANCE(')', ")"); + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseEnumerator(EnumeratorAST *&node) +{ + std::size_t start = token_stream.cursor(); + + CHECK(Token_identifier); + std::size_t id = token_stream.cursor() - 1; + + EnumeratorAST *ast = CreateNode(_M_pool); + ast->id = id; + + if (token_stream.lookAhead() == '=') + { + token_stream.nextToken(); + + if (!parseConstantExpression(ast->expression)) + { + reportError(("Constant expression expected")); + } + } + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseInitDeclarator(InitDeclaratorAST *&node) +{ + std::size_t start = token_stream.cursor(); + + DeclaratorAST *decl = 0; + if (!parseDeclarator(decl)) + { + return false; + } + + if (token_stream.lookAhead(0) == Token_asm) + { + token_stream.nextToken(); + skip('(', ')'); + token_stream.nextToken(); + } + + InitializerAST *init = 0; + parseInitializer(init); + + InitDeclaratorAST *ast = CreateNode(_M_pool); + ast->declarator = decl; + ast->initializer = init; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseBaseClause(BaseClauseAST *&node) +{ + std::size_t start = token_stream.cursor(); + + CHECK(':'); + + BaseSpecifierAST *baseSpec = 0; + if (!parseBaseSpecifier(baseSpec)) + return false; + + BaseClauseAST *ast = CreateNode(_M_pool); + ast->base_specifiers = snoc(ast->base_specifiers, baseSpec, _M_pool); + + while (token_stream.lookAhead() == ',') + { + token_stream.nextToken(); + + if (!parseBaseSpecifier(baseSpec)) + { + reportError(("Base class specifier expected")); + break; + } + ast->base_specifiers = snoc(ast->base_specifiers, baseSpec, _M_pool); + } + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseInitializer(InitializerAST *&node) +{ + std::size_t start = token_stream.cursor(); + + int tk = token_stream.lookAhead(); + if (tk != '=' && tk != '(') + return false; + + InitializerAST *ast = CreateNode(_M_pool); + + if (tk == '=') + { + token_stream.nextToken(); + + if (!parseInitializerClause(ast->initializer_clause)) + { + reportError(("Initializer clause expected")); + } + } + else if (tk == '(') + { + token_stream.nextToken(); + parseCommaExpression(ast->expression); + CHECK(')'); + } + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseMemInitializerList(const ListNode *&node) +{ + MemInitializerAST *init = 0; + + if (!parseMemInitializer(init)) + return false; + + node = snoc(node, init, _M_pool); + + while (token_stream.lookAhead() == ',') + { + token_stream.nextToken(); + + if (!parseMemInitializer(init)) + break; + + node = snoc(node, init, _M_pool); + } + + return true; +} + +bool Parser::parseMemInitializer(MemInitializerAST *&node) +{ + std::size_t start = token_stream.cursor(); + + NameAST *initId = 0; + if (!parseName(initId, true)) + { + reportError(("Identifier expected")); + return false; + } + + ADVANCE('(', "("); + ExpressionAST *expr = 0; + parseCommaExpression(expr); + ADVANCE(')', ")"); + + MemInitializerAST *ast = CreateNode(_M_pool); + ast->initializer_id = initId; + ast->expression = expr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseTypeIdList(const ListNode *&node) +{ + TypeIdAST *typeId = 0; + if (!parseTypeId(typeId)) + return false; + + node = snoc(node, typeId, _M_pool); + + while (token_stream.lookAhead() == ',') + { + token_stream.nextToken(); + if (parseTypeId(typeId)) + { + node = snoc(node, typeId, _M_pool); + } + else + { + reportError(("Type id expected")); + break; + } + } + + return true; +} + +bool Parser::parseBaseSpecifier(BaseSpecifierAST *&node) +{ + std::size_t start = token_stream.cursor(); + + BaseSpecifierAST *ast = CreateNode(_M_pool); + + if (token_stream.lookAhead() == Token_virtual) + { + ast->virt = token_stream.cursor(); + token_stream.nextToken(); + + int tk = token_stream.lookAhead(); + if (tk == Token_public || tk == Token_protected + || tk == Token_private) + { + ast->access_specifier = token_stream.cursor(); + token_stream.nextToken(); + } + } + else + { + int tk = token_stream.lookAhead(); + if (tk == Token_public || tk == Token_protected + || tk == Token_private) + { + ast->access_specifier = token_stream.cursor(); + token_stream.nextToken(); + } + + if (token_stream.lookAhead() == Token_virtual) + { + ast->virt = token_stream.cursor(); + token_stream.nextToken(); + } + } + + if (!parseName(ast->name, true)) + reportError(("Class name expected")); + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseInitializerClause(InitializerClauseAST *&node) +{ + std::size_t start = token_stream.cursor(); + + InitializerClauseAST *ast = CreateNode(_M_pool); + + if (token_stream.lookAhead() == '{') + { +#if defined(__GNUC__) +#warning "implement me" +#endif + if (skip('{','}')) + token_stream.nextToken(); + else + reportError(("} missing")); + } + else + { + if (!parseAssignmentExpression(ast->expression)) + { + //reportError(("Expression expected")); + } + } + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parsePtrToMember(PtrToMemberAST *&node) +{ +#if defined(__GNUC__) +#warning "implemente me (AST)" +#endif + + std::size_t start = token_stream.cursor(); + + std::size_t global_scope = 0; + if (token_stream.lookAhead() == Token_scope) + { + global_scope = token_stream.cursor(); + token_stream.nextToken(); + } + + UnqualifiedNameAST *name = 0; + while (token_stream.lookAhead() == Token_identifier) + { + if (!parseUnqualifiedName(name)) + break; + + if (token_stream.lookAhead() == Token_scope + && token_stream.lookAhead(1) == '*') + { + token_stream.nextToken(); + token_stream.nextToken(); + + PtrToMemberAST *ast = CreateNode(_M_pool); + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; + } + + if (token_stream.lookAhead() == Token_scope) + token_stream.nextToken(); + } + + token_stream.rewind((int) start); + return false; +} + +bool Parser::parseUnqualifiedName(UnqualifiedNameAST *&node, + bool parseTemplateId) +{ + std::size_t start = token_stream.cursor(); + + std::size_t tilde = 0; + std::size_t id = 0; + OperatorFunctionIdAST *operator_id = 0; + + if (token_stream.lookAhead() == Token_identifier) + { + id = token_stream.cursor(); + token_stream.nextToken(); + } + else if (token_stream.lookAhead() == '~' + && token_stream.lookAhead(1) == Token_identifier) + { + tilde = token_stream.cursor(); + token_stream.nextToken(); // skip ~ + + id = token_stream.cursor(); + token_stream.nextToken(); // skip classname + } + else if (token_stream.lookAhead() == Token_operator) + { + if (!parseOperatorFunctionId(operator_id)) + return false; + } + else + { + return false; + } + + UnqualifiedNameAST *ast = CreateNode(_M_pool); + ast->tilde = tilde; + ast->id = id; + ast->operator_id = operator_id; + + if (parseTemplateId && !tilde) + { + std::size_t index = token_stream.cursor(); + + if (token_stream.lookAhead() == '<') + { + token_stream.nextToken(); + + // optional template arguments + parseTemplateArgumentList(ast->template_arguments); + + if (token_stream.lookAhead() == '>') + { + token_stream.nextToken(); + } + else + { + ast->template_arguments = 0; + token_stream.rewind((int) index); + } + } + } + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseStringLiteral(StringLiteralAST *&node) +{ + std::size_t start = token_stream.cursor(); + + if (token_stream.lookAhead() != Token_string_literal) + return false; + + StringLiteralAST *ast = CreateNode(_M_pool); + + while (token_stream.lookAhead() == Token_string_literal) + { + ast->literals = snoc(ast->literals, token_stream.cursor(), _M_pool); + token_stream.nextToken(); + } + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseExpressionStatement(StatementAST *&node) +{ + std::size_t start = token_stream.cursor(); + + ExpressionAST *expr = 0; + parseCommaExpression(expr); + + ADVANCE(';', ";"); + + ExpressionStatementAST *ast = CreateNode(_M_pool); + ast->expression = expr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseStatement(StatementAST *&node) +{ + std::size_t start = token_stream.cursor(); + + switch(token_stream.lookAhead()) + { + case Token_while: + return parseWhileStatement(node); + + case Token_do: + return parseDoStatement(node); + + case Token_for: + return parseForStatement(node); + + case Token_if: + return parseIfStatement(node); + + case Token_switch: + return parseSwitchStatement(node); + + case Token_try: + return parseTryBlockStatement(node); + + case Token_case: + case Token_default: + return parseLabeledStatement(node); + + case Token_break: + case Token_continue: +#if defined(__GNUC__) +#warning "implement me" +#endif + token_stream.nextToken(); + ADVANCE(';', ";"); + return true; + + case Token_goto: +#if defined(__GNUC__) +#warning "implement me" +#endif + token_stream.nextToken(); + ADVANCE(Token_identifier, "identifier"); + ADVANCE(';', ";"); + return true; + + case Token_return: + { + token_stream.nextToken(); + ExpressionAST *expr = 0; + parseCommaExpression(expr); + + ADVANCE(';', ";"); + + ReturnStatementAST *ast = CreateNode(_M_pool); + ast->expression = expr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + return true; + + case '{': + return parseCompoundStatement(node); + + case Token_identifier: + if (parseLabeledStatement(node)) + return true; + break; + } + + return parseExpressionOrDeclarationStatement(node); +} + +bool Parser::parseExpressionOrDeclarationStatement(StatementAST *&node) +{ + bool blocked = block_errors(true); + + std::size_t start = token_stream.cursor(); + + StatementAST *decl_ast = 0; + bool maybe_amb = parseDeclarationStatement(decl_ast); + maybe_amb &= token_stream.kind(token_stream.cursor() - 1) == ';'; + + std::size_t end = token_stream.cursor(); + + token_stream.rewind((int) start); + StatementAST *expr_ast = 0; + maybe_amb &= parseExpressionStatement(expr_ast); + maybe_amb &= token_stream.kind(token_stream.cursor() - 1) == ';'; + + if (maybe_amb) + { + Q_ASSERT(decl_ast != 0 && expr_ast != 0); + ExpressionOrDeclarationStatementAST *ast + = CreateNode(_M_pool); + ast->declaration = decl_ast; + ast->expression = expr_ast; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + else + { + token_stream.rewind((int) std::max(end, token_stream.cursor())); + + node = decl_ast; + if (!node) + node = expr_ast; + } + + block_errors(blocked); + + if (!node) + syntaxError(); + + return node != 0; +} + +bool Parser::parseCondition(ConditionAST *&node, bool initRequired) +{ + std::size_t start = token_stream.cursor(); + + ConditionAST *ast = CreateNode(_M_pool); + TypeSpecifierAST *spec = 0; + + if (parseTypeSpecifier(spec)) + { + ast->type_specifier = spec; + + std::size_t declarator_start = token_stream.cursor(); + + DeclaratorAST *decl = 0; + if (!parseDeclarator(decl)) + { + token_stream.rewind((int) declarator_start); + if (!initRequired && !parseAbstractDeclarator(decl)) + decl = 0; + } + + if (decl && (!initRequired || token_stream.lookAhead() == '=')) + { + ast->declarator = decl; + + if (token_stream.lookAhead() == '=') + { + token_stream.nextToken(); + + parseExpression(ast->expression); + } + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; + } + } + + token_stream.rewind((int) start); + + if (!parseCommaExpression(ast->expression)) + return false; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + + +bool Parser::parseWhileStatement(StatementAST *&node) +{ + std::size_t start = token_stream.cursor(); + + ADVANCE(Token_while, "while"); + ADVANCE('(' , "("); + + ConditionAST *cond = 0; + if (!parseCondition(cond)) + { + reportError(("condition expected")); + return false; + } + ADVANCE(')', ")"); + + StatementAST *body = 0; + if (!parseStatement(body)) + { + reportError(("statement expected")); + return false; + } + + WhileStatementAST *ast = CreateNode(_M_pool); + ast->condition = cond; + ast->statement = body; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseDoStatement(StatementAST *&node) +{ + std::size_t start = token_stream.cursor(); + + ADVANCE(Token_do, "do"); + + StatementAST *body = 0; + if (!parseStatement(body)) + { + reportError(("statement expected")); + //return false; + } + + ADVANCE_NR(Token_while, "while"); + ADVANCE_NR('(' , "("); + + ExpressionAST *expr = 0; + if (!parseCommaExpression(expr)) + { + reportError(("expression expected")); + //return false; + } + + ADVANCE_NR(')', ")"); + ADVANCE_NR(';', ";"); + + DoStatementAST *ast = CreateNode(_M_pool); + ast->statement = body; + ast->expression = expr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseForStatement(StatementAST *&node) +{ + std::size_t start = token_stream.cursor(); + + ADVANCE(Token_for, "for"); + ADVANCE('(', "("); + + StatementAST *init = 0; + if (!parseForInitStatement(init)) + { + reportError(("for initialization expected")); + return false; + } + + ConditionAST *cond = 0; + parseCondition(cond); + ADVANCE(';', ";"); + + ExpressionAST *expr = 0; + parseCommaExpression(expr); + ADVANCE(')', ")"); + + StatementAST *body = 0; + if (!parseStatement(body)) + return false; + + ForStatementAST *ast = CreateNode(_M_pool); + ast->init_statement = init; + ast->condition = cond; + ast->expression = expr; + ast->statement = body; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseForInitStatement(StatementAST *&node) +{ + if (parseDeclarationStatement(node)) + return true; + + return parseExpressionStatement(node); +} + +bool Parser::parseCompoundStatement(StatementAST *&node) +{ + std::size_t start = token_stream.cursor(); + + CHECK('{'); + + CompoundStatementAST *ast = CreateNode(_M_pool); + + while (token_stream.lookAhead()) + { + if (token_stream.lookAhead() == '}') + break; + + std::size_t startStmt = token_stream.cursor(); + + StatementAST *stmt = 0; + if (!parseStatement(stmt)) + { + if (startStmt == token_stream.cursor()) + token_stream.nextToken(); + + skipUntilStatement(); + } + else + { + ast->statements = snoc(ast->statements, stmt, _M_pool); + } + } + + ADVANCE_NR('}', "}"); + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseIfStatement(StatementAST *&node) +{ + std::size_t start = token_stream.cursor(); + + ADVANCE(Token_if, "if"); + + ADVANCE('(' , "("); + + IfStatementAST *ast = CreateNode(_M_pool); + + ConditionAST *cond = 0; + if (!parseCondition(cond)) + { + reportError(("condition expected")); + return false; + } + ADVANCE(')', ")"); + + StatementAST *stmt = 0; + if (!parseStatement(stmt)) + { + reportError(("statement expected")); + return false; + } + + ast->condition = cond; + ast->statement = stmt; + + if (token_stream.lookAhead() == Token_else) + { + token_stream.nextToken(); + + if (!parseStatement(ast->else_statement)) + { + reportError(("statement expected")); + return false; + } + } + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseSwitchStatement(StatementAST *&node) +{ + std::size_t start = token_stream.cursor(); + ADVANCE(Token_switch, "switch"); + + ADVANCE('(' , "("); + + ConditionAST *cond = 0; + if (!parseCondition(cond)) + { + reportError(("condition expected")); + return false; + } + ADVANCE(')', ")"); + + StatementAST *stmt = 0; + if (!parseCompoundStatement(stmt)) + { + syntaxError(); + return false; + } + + SwitchStatementAST *ast = CreateNode(_M_pool); + ast->condition = cond; + ast->statement = stmt; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseLabeledStatement(StatementAST *&node) +{ + switch(token_stream.lookAhead()) + { + case Token_identifier: + case Token_default: + if (token_stream.lookAhead(1) == ':') + { + token_stream.nextToken(); + token_stream.nextToken(); + + StatementAST *stmt = 0; + if (parseStatement(stmt)) + { + node = stmt; + return true; + } + } + break; + + case Token_case: + { + token_stream.nextToken(); + ExpressionAST *expr = 0; + if (!parseConstantExpression(expr)) + { + reportError(("expression expected")); + } + else if (token_stream.lookAhead() == Token_ellipsis) + { + token_stream.nextToken(); + + ExpressionAST *expr2 = 0; + if (!parseConstantExpression(expr2)) + { + reportError(("expression expected")); + } + } + ADVANCE(':', ":"); + + StatementAST *stmt = 0; + if (parseStatement(stmt)) + { + node = stmt; + return true; + } + } + break; + + } + + return false; +} + +bool Parser::parseBlockDeclaration(DeclarationAST *&node) +{ + switch(token_stream.lookAhead()) + { + case Token_typedef: + return parseTypedef(node); + case Token_using: + return parseUsing(node); + case Token_asm: + return parseAsmDefinition(node); + case Token_namespace: + return parseNamespaceAliasDefinition(node); + } + + std::size_t start = token_stream.cursor(); + + const ListNode *cv = 0; + parseCvQualify(cv); + + const ListNode *storageSpec = 0; + parseStorageClassSpecifier(storageSpec); + + parseCvQualify(cv); + + TypeSpecifierAST *spec = 0; + if (!parseTypeSpecifierOrClassSpec(spec)) + { // replace with simpleTypeSpecifier?!?! + token_stream.rewind((int) start); + return false; + } + + parseCvQualify(cv); + spec->cv = cv; + + const ListNode *declarators = 0; + parseInitDeclaratorList(declarators); + + if (token_stream.lookAhead() != ';') + { + token_stream.rewind((int) start); + return false; + } + token_stream.nextToken(); + + SimpleDeclarationAST *ast = CreateNode(_M_pool); + ast->type_specifier = spec; + ast->init_declarators = declarators; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseNamespaceAliasDefinition(DeclarationAST *&node) +{ + std::size_t start = token_stream.cursor(); + + CHECK(Token_namespace); + + NamespaceAliasDefinitionAST *ast + = CreateNode(_M_pool); + + ADVANCE(Token_identifier, "identifier"); + ast->namespace_name = token_stream.cursor() - 1; + + ADVANCE('=', "="); + + if (!parseName(ast->alias_name)) + { + reportError(("Namespace name expected")); + } + + ADVANCE(';', ";"); + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseDeclarationStatement(StatementAST *&node) +{ + std::size_t start = token_stream.cursor(); + + DeclarationAST *decl = 0; + if (!parseBlockDeclaration(decl)) + return false; + + DeclarationStatementAST *ast = CreateNode(_M_pool); + ast->declaration = decl; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseDeclarationInternal(DeclarationAST *&node) +{ + std::size_t start = token_stream.cursor(); + + // that is for the case '__declspec(dllexport) int ...' or + // '__declspec(dllexport) inline int ...', etc. + WinDeclSpecAST *winDeclSpec = 0; + parseWinDeclSpec(winDeclSpec); + + const ListNode *funSpec = 0; + bool hasFunSpec = parseFunctionSpecifier(funSpec); + + const ListNode *cv = 0; + parseCvQualify(cv); + + const ListNode *storageSpec = 0; + bool hasStorageSpec = parseStorageClassSpecifier(storageSpec); + + if (hasStorageSpec && !hasFunSpec) + hasFunSpec = parseFunctionSpecifier(funSpec); + + // that is for the case 'friend __declspec(dllexport) ....' + parseWinDeclSpec(winDeclSpec); + + if (!cv) + parseCvQualify(cv); + + int index = (int) token_stream.cursor(); + NameAST *name = 0; + if (parseName(name, true) && token_stream.lookAhead() == '(') + { + // no type specifier, maybe a constructor or a cast operator?? + + token_stream.rewind((int) index); + + InitDeclaratorAST *declarator = 0; + if (parseInitDeclarator(declarator)) + { + switch(token_stream.lookAhead()) + { + case ';': + { + token_stream.nextToken(); + + SimpleDeclarationAST *ast + = CreateNode(_M_pool); + + ast->storage_specifiers = storageSpec; + ast->function_specifiers = funSpec; + ast->init_declarators = snoc(ast->init_declarators, + declarator, _M_pool); + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + return true; + + case ':': + { + CtorInitializerAST *ctorInit = 0; + StatementAST *funBody = 0; + + if (parseCtorInitializer(ctorInit) + && parseFunctionBody(funBody)) + { + FunctionDefinitionAST *ast + = CreateNode(_M_pool); + + ast->storage_specifiers = storageSpec; + ast->function_specifiers = funSpec; + ast->init_declarator = declarator; + ast->function_body = funBody; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; + } + } + break; + + case '{': + { + StatementAST *funBody = 0; + if (parseFunctionBody(funBody)) + { + FunctionDefinitionAST *ast + = CreateNode(_M_pool); + + ast->storage_specifiers = storageSpec; + ast->function_specifiers = funSpec; + ast->init_declarator = declarator; + ast->function_body = funBody; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; + } + } + break; + + case '(': + case '[': + // ops!! it seems a declarator + goto start_decl; + break; + } + + } + } + + start_decl: + token_stream.rewind((int) index); + + if (token_stream.lookAhead() == Token_const + && token_stream.lookAhead(1) == Token_identifier + && token_stream.lookAhead(2) == '=') + { + // constant definition + token_stream.nextToken(); // skip const + + const ListNode *declarators = 0; + if (!parseInitDeclaratorList(declarators)) + { + syntaxError(); + return false; + } + + ADVANCE(';', ";"); + +#if defined(__GNUC__) +#warning "mark the ast as constant" +#endif + SimpleDeclarationAST *ast = CreateNode(_M_pool); + ast->init_declarators = declarators; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; + } + + TypeSpecifierAST *spec = 0; + if (parseTypeSpecifier(spec)) + { + Q_ASSERT(spec != 0); + + if (!hasFunSpec) + parseFunctionSpecifier(funSpec); // e.g. "void inline" + + spec->cv = cv; + + const ListNode *declarators = 0; + InitDeclaratorAST *decl = 0; + int startDeclarator = (int) token_stream.cursor(); + bool maybeFunctionDefinition = false; + + if (token_stream.lookAhead() != ';') + { + if (parseInitDeclarator(decl) && token_stream.lookAhead() == '{') + { + // function definition + maybeFunctionDefinition = true; + } + else + { + token_stream.rewind((int) startDeclarator); + if (!parseInitDeclaratorList(declarators)) + { + syntaxError(); + return false; + } + } + } + + switch(token_stream.lookAhead()) + { + case ';': + { + token_stream.nextToken(); + SimpleDeclarationAST *ast + = CreateNode(_M_pool); + + ast->storage_specifiers = storageSpec; + ast->function_specifiers = funSpec; + ast->type_specifier = spec; + ast->win_decl_specifiers = winDeclSpec; + ast->init_declarators = declarators; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + return true; + + case '{': + { + if (!maybeFunctionDefinition) + { + syntaxError(); + return false; + } + + StatementAST *funBody = 0; + if (parseFunctionBody(funBody)) + { + FunctionDefinitionAST *ast + = CreateNode(_M_pool); + + ast->win_decl_specifiers = winDeclSpec; + ast->storage_specifiers = storageSpec; + ast->function_specifiers = funSpec; + ast->type_specifier = spec; + ast->init_declarator = decl; + ast->function_body = funBody; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; + } + } + break; + } // end switch + } + + syntaxError(); + return false; +} + +bool Parser::skipFunctionBody(StatementAST *&) +{ +#if defined(__GNUC__) +#warning "Parser::skipFunctionBody() -- implement me" +#endif + Q_ASSERT(0); // ### not implemented + return 0; +} + +bool Parser::parseFunctionBody(StatementAST *&node) +{ + if (control->skipFunctionBody()) + return skipFunctionBody(node); + + return parseCompoundStatement(node); +} + +bool Parser::parseTypeSpecifierOrClassSpec(TypeSpecifierAST *&node) +{ + if (parseClassSpecifier(node)) + return true; + else if (parseEnumSpecifier(node)) + return true; + else if (parseTypeSpecifier(node)) + return true; + + return false; +} + +bool Parser::parseTryBlockStatement(StatementAST *&node) +{ +#if defined(__GNUC__) +#warning "implement me" +#endif + CHECK(Token_try); + + StatementAST *stmt = 0; + if (!parseCompoundStatement(stmt)) + { + syntaxError(); + return false; + } + + if (token_stream.lookAhead() != Token_catch) + { + reportError(("catch expected")); + return false; + } + + while (token_stream.lookAhead() == Token_catch) + { + token_stream.nextToken(); + ADVANCE('(', "("); + ConditionAST *cond = 0; + if (token_stream.lookAhead() == Token_ellipsis) + { + token_stream.nextToken(); + } + else if (!parseCondition(cond, false)) + { + reportError(("condition expected")); + return false; + } + ADVANCE(')', ")"); + + StatementAST *body = 0; + if (!parseCompoundStatement(body)) + { + syntaxError(); + return false; + } + } + + node = stmt; + return true; +} + +bool Parser::parsePrimaryExpression(ExpressionAST *&node) +{ + std::size_t start = token_stream.cursor(); + + PrimaryExpressionAST *ast = CreateNode(_M_pool); + + switch(token_stream.lookAhead()) + { + case Token_string_literal: + parseStringLiteral(ast->literal); + break; + + case Token_number_literal: + case Token_char_literal: + case Token_true: + case Token_false: + case Token_this: + ast->token = token_stream.cursor(); + token_stream.nextToken(); + break; + + case '(': + token_stream.nextToken(); + + if (token_stream.lookAhead() == '{') + { + if (!parseCompoundStatement(ast->expression_statement)) + return false; + } + else + { + if (!parseExpression(ast->sub_expression)) + return false; + } + + CHECK(')'); + break; + + default: + if (!parseName(ast->name)) + return false; + + break; + } + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + + +/* + postfix-expression-internal: + [ expression ] + ( expression-list [opt] ) + (.|->) template [opt] id-expression + (.|->) pseudo-destructor-name + ++ + -- +*/ +bool Parser::parsePostfixExpressionInternal(ExpressionAST *&node) +{ + std::size_t start = token_stream.cursor(); + + switch (token_stream.lookAhead()) + { + case '[': + { + token_stream.nextToken(); + ExpressionAST *expr = 0; + parseExpression(expr); + CHECK(']'); + + SubscriptExpressionAST *ast + = CreateNode(_M_pool); + + ast->subscript = expr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + return true; + + case '(': + { + token_stream.nextToken(); + ExpressionAST *expr = 0; + parseExpression(expr); + CHECK(')'); + + FunctionCallAST *ast = CreateNode(_M_pool); + ast->arguments = expr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + return true; + + case '.': + case Token_arrow: + { + std::size_t op = token_stream.cursor(); + token_stream.nextToken(); + + std::size_t templ = 0; + if (token_stream.lookAhead() == Token_template) + { + templ = token_stream.cursor(); + token_stream.nextToken(); + } + + int saved = int(token_stream.cursor()); + NameAST *name = 0; + + if (parseName(name, true) && name->unqualified_name + && name->unqualified_name->template_arguments != 0 + && token_stream.lookAhead() == '(') { + // a template method call + // ### reverse the logic + } else { + token_stream.rewind(saved); + name = 0; + + if (! parseName (name, templ != 0)) + return false; + } + + ClassMemberAccessAST *ast = CreateNode(_M_pool); + ast->op = op; + ast->name = name; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + return true; + + case Token_incr: + case Token_decr: + { + std::size_t op = token_stream.cursor(); + token_stream.nextToken(); + + IncrDecrExpressionAST *ast = CreateNode(_M_pool); + ast->op = op; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + return true; + + default: + return false; + } +} + +/* + postfix-expression: + simple-type-specifier ( expression-list [opt] ) + primary-expression postfix-expression-internal* +*/ +bool Parser::parsePostfixExpression(ExpressionAST *&node) +{ + std::size_t start = token_stream.cursor(); + + switch (token_stream.lookAhead()) + { + case Token_dynamic_cast: + case Token_static_cast: + case Token_reinterpret_cast: + case Token_const_cast: + { + std::size_t castOp = token_stream.cursor(); + token_stream.nextToken(); + + CHECK('<'); + TypeIdAST *typeId = 0; + parseTypeId(typeId); + CHECK('>'); + + CHECK('('); + ExpressionAST *expr = 0; + parseCommaExpression(expr); + CHECK(')'); + + CppCastExpressionAST *ast = CreateNode(_M_pool); + ast->op = castOp; + ast->type_id = typeId; + ast->expression = expr; + + ExpressionAST *e = 0; + while (parsePostfixExpressionInternal(e)) + { + ast->sub_expressions = snoc(ast->sub_expressions, e, _M_pool); + } + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + return true; + + case Token_typename: + { + std::size_t token = token_stream.cursor(); + token_stream.nextToken(); + + NameAST* name = 0; + if (!parseName(name, true)) + return false; + + CHECK('('); + ExpressionAST *expr = 0; + parseCommaExpression(expr); + CHECK(')'); + + TypeIdentificationAST *ast = CreateNode(_M_pool); + ast->typename_token = token; + ast->name = name; + ast->expression = expr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + return true; + + case Token_typeid: + { + token_stream.nextToken(); + + CHECK('('); + TypeIdAST *typeId = 0; + parseTypeId(typeId); + CHECK(')'); + + TypeIdentificationAST *ast = CreateNode(_M_pool); + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + return true; + + default: + break; + } + + std::size_t saved_pos = token_stream.cursor(); + + TypeSpecifierAST *typeSpec = 0; + ExpressionAST *expr = 0; + + // let's try to parse a type + NameAST *name = 0; + if (parseName(name, true)) + { + Q_ASSERT(name->unqualified_name != 0); + + bool has_template_args + = name->unqualified_name->template_arguments != 0; + + if (has_template_args && token_stream.lookAhead() == '(') + { + ExpressionAST *cast_expr = 0; + if (parseCastExpression(cast_expr) + && cast_expr->kind == AST::Kind_CastExpression) + { + token_stream.rewind((int) saved_pos); + parsePrimaryExpression(expr); + goto L_no_rewind; + } + } + } + + token_stream.rewind((int) saved_pos); + + L_no_rewind: + if (!expr && parseSimpleTypeSpecifier(typeSpec) + && token_stream.lookAhead() == '(') + { + token_stream.nextToken(); // skip '(' + parseCommaExpression(expr); + CHECK(')'); + } + else if (expr) + { + typeSpec = 0; + } + else + { + typeSpec = 0; + token_stream.rewind((int) start); + + if (!parsePrimaryExpression(expr)) + return false; + } + + const ListNode *sub_expressions = 0; + ExpressionAST *sub_expression = 0; + + while (parsePostfixExpressionInternal(sub_expression)) + sub_expressions = snoc(sub_expressions, sub_expression, _M_pool); + + if (sub_expressions || ! expr || (typeSpec && expr)) + { + PostfixExpressionAST *ast = CreateNode(_M_pool); + ast->type_specifier = typeSpec; + ast->expression = expr; + ast->sub_expressions = sub_expressions; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + else + node = expr; + + return true; +} + +bool Parser::parseUnaryExpression(ExpressionAST *&node) +{ + std::size_t start = token_stream.cursor(); + + switch(token_stream.lookAhead()) + { + case Token_incr: + case Token_decr: + case '*': + case '&': + case '+': + case '-': + case '!': + case '~': + { + std::size_t op = token_stream.cursor(); + token_stream.nextToken(); + + ExpressionAST *expr = 0; + if (!parseCastExpression(expr)) + return false; + + UnaryExpressionAST *ast = CreateNode(_M_pool); + ast->op = op; + ast->expression = expr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + return true; + + case Token_sizeof: + { + std::size_t sizeof_token = token_stream.cursor(); + token_stream.nextToken(); + + SizeofExpressionAST *ast = CreateNode(_M_pool); + ast->sizeof_token = sizeof_token; + + std::size_t index = token_stream.cursor(); + if (token_stream.lookAhead() == '(') + { + token_stream.nextToken(); + if (parseTypeId(ast->type_id) && token_stream.lookAhead() == ')') + { + token_stream.nextToken(); // skip ) + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + return true; + } + + ast->type_id = 0; + token_stream.rewind((int) index); + } + + if (!parseUnaryExpression(ast->expression)) + return false; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + return true; + } + + default: + break; + } + + int token = token_stream.lookAhead(); + + if (token == Token_new + || (token == Token_scope && token_stream.lookAhead(1) == Token_new)) + return parseNewExpression(node); + + if (token == Token_delete + || (token == Token_scope && token_stream.lookAhead(1) == Token_delete)) + return parseDeleteExpression(node); + + return parsePostfixExpression(node); +} + +bool Parser::parseNewExpression(ExpressionAST *&node) +{ + std::size_t start = token_stream.cursor(); + + NewExpressionAST *ast = CreateNode(_M_pool); + + if (token_stream.lookAhead() == Token_scope + && token_stream.lookAhead(1) == Token_new) + { + ast->scope_token = token_stream.cursor(); + token_stream.nextToken(); + } + + CHECK(Token_new); + ast->new_token = token_stream.cursor() - 1; + + if (token_stream.lookAhead() == '(') + { + token_stream.nextToken(); + parseCommaExpression(ast->expression); + CHECK(')'); + } + + if (token_stream.lookAhead() == '(') + { + token_stream.nextToken(); + parseTypeId(ast->type_id); + CHECK(')'); + } + else + { + parseNewTypeId(ast->new_type_id); + } + + parseNewInitializer(ast->new_initializer); + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseNewTypeId(NewTypeIdAST *&node) +{ + std::size_t start = token_stream.cursor(); + + TypeSpecifierAST *typeSpec = 0; + if (!parseTypeSpecifier(typeSpec)) + return false; + + NewTypeIdAST *ast = CreateNode(_M_pool); + ast->type_specifier = typeSpec; + + parseNewDeclarator(ast->new_declarator); + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseNewDeclarator(NewDeclaratorAST *&node) +{ + std::size_t start = token_stream.cursor(); + + NewDeclaratorAST *ast = CreateNode(_M_pool); + + PtrOperatorAST *ptrOp = 0; + if (parsePtrOperator(ptrOp)) + { + ast->ptr_op = ptrOp; + parseNewDeclarator(ast->sub_declarator); + } + + while (token_stream.lookAhead() == '[') + { + token_stream.nextToken(); + ExpressionAST *expr = 0; + parseExpression(expr); + ast->expressions = snoc(ast->expressions, expr, _M_pool); + ADVANCE(']', "]"); + } + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseNewInitializer(NewInitializerAST *&node) +{ + std::size_t start = token_stream.cursor(); + + CHECK('('); + + NewInitializerAST *ast = CreateNode(_M_pool); + + parseCommaExpression(ast->expression); + + CHECK(')'); + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseDeleteExpression(ExpressionAST *&node) +{ + std::size_t start = token_stream.cursor(); + + DeleteExpressionAST *ast = CreateNode(_M_pool); + + if (token_stream.lookAhead() == Token_scope + && token_stream.lookAhead(1) == Token_delete) + { + ast->scope_token = token_stream.cursor(); + token_stream.nextToken(); + } + + CHECK(Token_delete); + ast->delete_token = token_stream.cursor() - 1; + + if (token_stream.lookAhead() == '[') + { + ast->lbracket_token = token_stream.cursor(); + token_stream.nextToken(); + CHECK(']'); + ast->rbracket_token = token_stream.cursor() - 1; + } + + if (!parseCastExpression(ast->expression)) + return false; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseCastExpression(ExpressionAST *&node) +{ + std::size_t start = token_stream.cursor(); + + if (token_stream.lookAhead() == '(') + { + token_stream.nextToken(); + + CastExpressionAST *ast = CreateNode(_M_pool); + + if (parseTypeId(ast->type_id)) + { + if (token_stream.lookAhead() == ')') + { + token_stream.nextToken(); + + if (parseCastExpression(ast->expression)) + { + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; + } + } + } + } + + token_stream.rewind((int) start); + return parseUnaryExpression(node); +} + +bool Parser::parsePmExpression(ExpressionAST *&node) +{ + std::size_t start = token_stream.cursor(); + + if (!parseCastExpression(node) || !node) // ### fixme + return false; + + while (token_stream.lookAhead() == Token_ptrmem) + { + std::size_t op = token_stream.cursor(); + token_stream.nextToken(); + + ExpressionAST *rightExpr = 0; + if (!parseCastExpression(rightExpr)) + return false; + + BinaryExpressionAST *ast = CreateNode(_M_pool); + ast->op = op; + ast->left_expression = node; + ast->right_expression = rightExpr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + + return true; +} + +bool Parser::parseMultiplicativeExpression(ExpressionAST *&node) +{ + std::size_t start = token_stream.cursor(); + + if (!parsePmExpression(node)) + return false; + + while (token_stream.lookAhead() == '*' + || token_stream.lookAhead() == '/' + || token_stream.lookAhead() == '%') + { + std::size_t op = token_stream.cursor(); + token_stream.nextToken(); + + ExpressionAST *rightExpr = 0; + if (!parsePmExpression(rightExpr)) + return false; + + BinaryExpressionAST *ast = CreateNode(_M_pool); + ast->op = op; + ast->left_expression = node; + ast->right_expression = rightExpr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + + return true; +} + + +bool Parser::parseAdditiveExpression(ExpressionAST *&node) +{ + std::size_t start = token_stream.cursor(); + + if (!parseMultiplicativeExpression(node)) + return false; + + while (token_stream.lookAhead() == '+' || token_stream.lookAhead() == '-') + { + std::size_t op = token_stream.cursor(); + token_stream.nextToken(); + + ExpressionAST *rightExpr = 0; + if (!parseMultiplicativeExpression(rightExpr)) + return false; + + BinaryExpressionAST *ast = CreateNode(_M_pool); + ast->op = op; + ast->left_expression = node; + ast->right_expression = rightExpr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + + return true; +} + +bool Parser::parseShiftExpression(ExpressionAST *&node) +{ + std::size_t start = token_stream.cursor(); + + if (!parseAdditiveExpression(node)) + return false; + + while (token_stream.lookAhead() == Token_shift) + { + std::size_t op = token_stream.cursor(); + token_stream.nextToken(); + + ExpressionAST *rightExpr = 0; + if (!parseAdditiveExpression(rightExpr)) + return false; + + BinaryExpressionAST *ast = CreateNode(_M_pool); + ast->op = op; + ast->left_expression = node; + ast->right_expression = rightExpr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + + return true; +} + +bool Parser::parseRelationalExpression(ExpressionAST *&node, bool templArgs) +{ + std::size_t start = token_stream.cursor(); + + if (!parseShiftExpression(node)) + return false; + + while (token_stream.lookAhead() == '<' + || (token_stream.lookAhead() == '>' && !templArgs) + || token_stream.lookAhead() == Token_leq + || token_stream.lookAhead() == Token_geq) + { + std::size_t op = token_stream.cursor(); + token_stream.nextToken(); + + ExpressionAST *rightExpr = 0; + if (!parseShiftExpression(rightExpr)) + return false; + + BinaryExpressionAST *ast = CreateNode(_M_pool); + ast->op = op; + ast->left_expression = node; + ast->right_expression = rightExpr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + + return true; +} + +bool Parser::parseEqualityExpression(ExpressionAST *&node, bool templArgs) +{ + std::size_t start = token_stream.cursor(); + + if (!parseRelationalExpression(node, templArgs)) + return false; + + while (token_stream.lookAhead() == Token_eq + || token_stream.lookAhead() == Token_not_eq) + { + std::size_t op = token_stream.cursor(); + token_stream.nextToken(); + + ExpressionAST *rightExpr = 0; + if (!parseRelationalExpression(rightExpr, templArgs)) + return false; + + BinaryExpressionAST *ast = CreateNode(_M_pool); + ast->op = op; + ast->left_expression = node; + ast->right_expression = rightExpr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + + return true; +} + +bool Parser::parseAndExpression(ExpressionAST *&node, bool templArgs) +{ + std::size_t start = token_stream.cursor(); + + if (!parseEqualityExpression(node, templArgs)) + return false; + + while (token_stream.lookAhead() == '&') + { + std::size_t op = token_stream.cursor(); + token_stream.nextToken(); + + ExpressionAST *rightExpr = 0; + if (!parseEqualityExpression(rightExpr, templArgs)) + return false; + + BinaryExpressionAST *ast = CreateNode(_M_pool); + ast->op = op; + ast->left_expression = node; + ast->right_expression = rightExpr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + + return true; +} + +bool Parser::parseExclusiveOrExpression(ExpressionAST *&node, bool templArgs) +{ + std::size_t start = token_stream.cursor(); + + if (!parseAndExpression(node, templArgs)) + return false; + + while (token_stream.lookAhead() == '^') + { + std::size_t op = token_stream.cursor(); + token_stream.nextToken(); + + ExpressionAST *rightExpr = 0; + if (!parseAndExpression(rightExpr, templArgs)) + return false; + + BinaryExpressionAST *ast = CreateNode(_M_pool); + ast->op = op; + ast->left_expression = node; + ast->right_expression = rightExpr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + + return true; +} + +bool Parser::parseInclusiveOrExpression(ExpressionAST *&node, bool templArgs) +{ + std::size_t start = token_stream.cursor(); + + if (!parseExclusiveOrExpression(node, templArgs)) + return false; + + while (token_stream.lookAhead() == '|') + { + std::size_t op = token_stream.cursor(); + token_stream.nextToken(); + + ExpressionAST *rightExpr = 0; + if (!parseExclusiveOrExpression(rightExpr, templArgs)) + return false; + + BinaryExpressionAST *ast = CreateNode(_M_pool); + ast->op = op; + ast->left_expression = node; + ast->right_expression = rightExpr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + + return true; +} + +bool Parser::parseLogicalAndExpression(ExpressionAST *&node, bool templArgs) +{ + std::size_t start = token_stream.cursor(); + + if (!parseInclusiveOrExpression(node, templArgs)) + return false; + + while (token_stream.lookAhead() == Token_and) + { + std::size_t op = token_stream.cursor(); + token_stream.nextToken(); + + ExpressionAST *rightExpr = 0; + if (!parseInclusiveOrExpression(rightExpr, templArgs)) + return false; + + BinaryExpressionAST *ast = CreateNode(_M_pool); + ast->op = op; + ast->left_expression = node; + ast->right_expression = rightExpr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + + return true; +} + +bool Parser::parseLogicalOrExpression(ExpressionAST *&node, bool templArgs) +{ + std::size_t start = token_stream.cursor(); + + if (!parseLogicalAndExpression(node, templArgs)) + return false; + + while (token_stream.lookAhead() == Token_or) + { + std::size_t op = token_stream.cursor(); + token_stream.nextToken(); + + ExpressionAST *rightExpr = 0; + if (!parseLogicalAndExpression(rightExpr, templArgs)) + return false; + + BinaryExpressionAST *ast = CreateNode(_M_pool); + ast->op = op; + ast->left_expression = node; + ast->right_expression = rightExpr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + + return true; +} + +bool Parser::parseConditionalExpression(ExpressionAST *&node) +{ + std::size_t start = token_stream.cursor(); + + if (!parseLogicalOrExpression(node)) + return false; + + if (token_stream.lookAhead() == '?') + { + token_stream.nextToken(); + + ExpressionAST *leftExpr = 0; + if (!parseExpression(leftExpr)) + return false; + + CHECK(':'); + + ExpressionAST *rightExpr = 0; + if (!parseAssignmentExpression(rightExpr)) + return false; + + ConditionalExpressionAST *ast + = CreateNode(_M_pool); + + ast->condition = node; + ast->left_expression = leftExpr; + ast->right_expression = rightExpr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + + return true; +} + +bool Parser::parseAssignmentExpression(ExpressionAST *&node) +{ + std::size_t start = token_stream.cursor(); + + if (token_stream.lookAhead() == Token_throw && !parseThrowExpression(node)) + return false; + else if (!parseConditionalExpression(node)) + return false; + + while (token_stream.lookAhead() == Token_assign + || token_stream.lookAhead() == '=') + { + std::size_t op = token_stream.cursor(); + token_stream.nextToken(); + + ExpressionAST *rightExpr = 0; + if (!parseConditionalExpression(rightExpr)) + return false; + + BinaryExpressionAST *ast = CreateNode(_M_pool); + ast->op = op; + ast->left_expression = node; + ast->right_expression = rightExpr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + + return true; +} + +bool Parser::parseConstantExpression(ExpressionAST *&node) +{ + return parseConditionalExpression(node); +} + +bool Parser::parseExpression(ExpressionAST *&node) +{ + return parseCommaExpression(node); +} + +bool Parser::parseCommaExpression(ExpressionAST *&node) +{ + std::size_t start = token_stream.cursor(); + + if (!parseAssignmentExpression(node)) + return false; + + while (token_stream.lookAhead() == ',') + { + std::size_t op = token_stream.cursor(); + token_stream.nextToken(); + + ExpressionAST *rightExpr = 0; + if (!parseAssignmentExpression(rightExpr)) + return false; + + BinaryExpressionAST *ast = CreateNode(_M_pool); + ast->op = op; + ast->left_expression = node; + ast->right_expression = rightExpr; + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + } + + return true; +} + +bool Parser::parseThrowExpression(ExpressionAST *&node) +{ + std::size_t start = token_stream.cursor(); + + CHECK(Token_throw); + + ThrowExpressionAST *ast = CreateNode(_M_pool); + ast->throw_token = token_stream.cursor() - 1; + + parseAssignmentExpression(ast->expression); + + UPDATE_POS(ast, start, token_stream.cursor()); + node = ast; + + return true; +} + +bool Parser::parseQ_ENUMS(DeclarationAST *&node) +{ + if (token_stream.lookAhead() != Token_Q_ENUMS) + return false; + + if (token_stream.lookAhead(1) != '(') + return false; + + token_stream.nextToken(); + token_stream.nextToken(); + + int firstToken = token_stream.cursor(); + while (token_stream.lookAhead() != ')') { + token_stream.nextToken(); + } + QEnumsAST *ast = CreateNode(_M_pool); + UPDATE_POS(ast, firstToken, token_stream.cursor()); + node = ast; + + token_stream.nextToken(); + + return true; +} + +bool Parser::parseQ_PROPERTY(DeclarationAST *&node) +{ + if (token_stream.lookAhead() != Token_Q_PROPERTY) + return false; + + if (token_stream.lookAhead(1) != '(') + return false; + + token_stream.nextToken(); + token_stream.nextToken(); + + int firstToken = token_stream.cursor(); + while (token_stream.lookAhead() != ')') { + token_stream.nextToken(); + } + QPropertyAST *ast = CreateNode(_M_pool); + UPDATE_POS(ast, firstToken, token_stream.cursor()); + node = ast; + +// const Token &t1 = token_stream[firstToken]; +// const Token &t2 = token_stream[token_stream.cursor()]; +// printf("property: %s\n", +// qPrintable(QString::fromLatin1(t1.text + t1.position, t2.position - t1.position))); + + token_stream.nextToken(); + + return true; +} + +bool Parser::block_errors(bool block) +{ + bool current = _M_block_errors; + _M_block_errors = block; + return current; +} + + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/parser.h b/generator_50/parser/parser.h new file mode 100644 index 00000000..e2cd814e --- /dev/null +++ b/generator_50/parser/parser.h @@ -0,0 +1,215 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef PARSER_H +#define PARSER_H + +#include "ast.h" +#include "lexer.h" + +#include + +class FileSymbol; +class Control; + +class Parser +{ +public: + Parser(Control *control); + ~Parser(); + + LocationManager &location() { return _M_location; } + + TranslationUnitAST *parse(const char *contents, std::size_t size, pool *p); + +private: + void reportError(const QString& msg); + void syntaxError(); + void tokenRequiredError(int expected); + +public: + bool skipFunctionBody(StatementAST *&node); + +public: + bool parse_Attribute__(); + bool parseAbstractDeclarator(DeclaratorAST *&node); + bool parseAccessSpecifier(DeclarationAST *&node); + bool parseAdditiveExpression(ExpressionAST *&node); + bool parseAndExpression(ExpressionAST *&node, bool templArgs = false); + bool parseAsmDefinition(DeclarationAST *&node); + bool parseAssignmentExpression(ExpressionAST *&node); + bool parseBaseClause(BaseClauseAST *&node); + bool parseBaseSpecifier(BaseSpecifierAST *&node); + bool parseBlockDeclaration(DeclarationAST *&node); + bool parseCastExpression(ExpressionAST *&node); + bool parseClassSpecifier(TypeSpecifierAST *&node); + bool parseForwardDeclarationSpecifier(TypeSpecifierAST *&node); + bool parseCommaExpression(ExpressionAST *&node); + bool parseCompoundStatement(StatementAST *&node); + bool parseCondition(ConditionAST *&node, bool initRequired = true); + bool parseConditionalExpression(ExpressionAST *&node); + bool parseConstantExpression(ExpressionAST *&node); + bool parseCtorInitializer(CtorInitializerAST *&node); + bool parseCvQualify(const ListNode *&node); + bool parseDeclaration(DeclarationAST *&node); + bool parseDeclarationInternal(DeclarationAST *&node); + bool parseDeclarationStatement(StatementAST *&node); + bool parseDeclarator(DeclaratorAST *&node); + bool parseDeleteExpression(ExpressionAST *&node); + bool parseDoStatement(StatementAST *&node); + bool parseElaboratedTypeSpecifier(TypeSpecifierAST *&node); + bool parseEnumSpecifier(TypeSpecifierAST *&node); + bool parseEnumerator(EnumeratorAST *&node); + bool parseEqualityExpression(ExpressionAST *&node, + bool templArgs = false); + bool parseExceptionSpecification(ExceptionSpecificationAST *&node); + bool parseExclusiveOrExpression(ExpressionAST *&node, + bool templArgs = false); + bool parseExpression(ExpressionAST *&node); + bool parseExpressionOrDeclarationStatement(StatementAST *&node); + bool parseExpressionStatement(StatementAST *&node); + bool parseForInitStatement(StatementAST *&node); + bool parseForStatement(StatementAST *&node); + bool parseFunctionBody(StatementAST *&node); + bool parseFunctionSpecifier(const ListNode *&node); + bool parseIfStatement(StatementAST *&node); + bool parseInclusiveOrExpression(ExpressionAST *&node, + bool templArgs = false); + bool parseInitDeclarator(InitDeclaratorAST *&node); + bool parseInitDeclaratorList(const ListNode *&node); + bool parseInitializer(InitializerAST *&node); + bool parseInitializerClause(InitializerClauseAST *&node); + bool parseLabeledStatement(StatementAST *&node); + bool parseLinkageBody(LinkageBodyAST *&node); + bool parseLinkageSpecification(DeclarationAST *&node); + bool parseLogicalAndExpression(ExpressionAST *&node, + bool templArgs = false); + bool parseLogicalOrExpression(ExpressionAST *&node, + bool templArgs = false); + bool parseMemInitializer(MemInitializerAST *&node); + bool parseMemInitializerList(const ListNode *&node); + bool parseMemberSpecification(DeclarationAST *&node); + bool parseMultiplicativeExpression(ExpressionAST *&node); + bool parseName(NameAST *&node, bool acceptTemplateId = false); + bool parseNamespace(DeclarationAST *&node); + bool parseNamespaceAliasDefinition(DeclarationAST *&node); + bool parseNewDeclarator(NewDeclaratorAST *&node); + bool parseNewExpression(ExpressionAST *&node); + bool parseNewInitializer(NewInitializerAST *&node); + bool parseNewTypeId(NewTypeIdAST *&node); + bool parseOperator(OperatorAST *&node); + bool parseOperatorFunctionId(OperatorFunctionIdAST *&node); + bool parseParameterDeclaration(ParameterDeclarationAST *&node); + bool parseParameterDeclarationClause(ParameterDeclarationClauseAST *&node); + bool parseParameterDeclarationList(const ListNode *&node); + bool parsePmExpression(ExpressionAST *&node); + bool parsePostfixExpression(ExpressionAST *&node); + bool parsePostfixExpressionInternal(ExpressionAST *&node); + bool parsePrimaryExpression(ExpressionAST *&node); + bool parsePtrOperator(PtrOperatorAST *&node); + bool parsePtrToMember(PtrToMemberAST *&node); + bool parseRelationalExpression(ExpressionAST *&node, + bool templArgs = false); + bool parseShiftExpression(ExpressionAST *&node); + bool parseSimpleTypeSpecifier(TypeSpecifierAST *&node, + bool onlyIntegral = false); + bool parseStatement(StatementAST *&node); + bool parseStorageClassSpecifier(const ListNode *&node); + bool parseStringLiteral(StringLiteralAST *&node); + bool parseSwitchStatement(StatementAST *&node); + bool parseTemplateArgument(TemplateArgumentAST *&node); + bool parseTemplateArgumentList(const ListNode *&node, + bool reportError = true); + bool parseTemplateDeclaration(DeclarationAST *&node); + bool parseTemplateParameter(TemplateParameterAST *&node); + bool parseTemplateParameterList(const ListNode *&node); + bool parseThrowExpression(ExpressionAST *&node); + bool parseTranslationUnit(TranslationUnitAST *&node); + bool parseTryBlockStatement(StatementAST *&node); + bool parseTypeId(TypeIdAST *&node); + bool parseTypeIdList(const ListNode *&node); + bool parseTypeParameter(TypeParameterAST *&node); + bool parseTypeSpecifier(TypeSpecifierAST *&node); + bool parseTypeSpecifierOrClassSpec(TypeSpecifierAST *&node); + bool parseTypedef(DeclarationAST *&node); + bool parseUnaryExpression(ExpressionAST *&node); + bool parseUnqualifiedName(UnqualifiedNameAST *&node, + bool parseTemplateId = true); + bool parseUsing(DeclarationAST *&node); + bool parseUsingDirective(DeclarationAST *&node); + bool parseWhileStatement(StatementAST *&node); + bool parseWinDeclSpec(WinDeclSpecAST *&node); + + bool parseQ_PROPERTY(DeclarationAST *&node); + bool parseQ_ENUMS(DeclarationAST *&node); + + bool skipUntil(int token); + bool skipUntilDeclaration(); + bool skipUntilStatement(); + bool skip(int l, int r); + + void advance(); + + // private: + TokenStream token_stream; + LocationTable location_table; + LocationTable line_table; + + bool block_errors(bool block); + +private: + QString tokenText(AST *) const; + + LocationManager _M_location; + Control *control; + Lexer lexer; + pool *_M_pool; + bool _M_block_errors; + +private: + Parser(const Parser& source); + void operator = (const Parser& source); +}; + +#endif + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/r++.macros b/generator_50/parser/r++.macros new file mode 100644 index 00000000..455276c8 --- /dev/null +++ b/generator_50/parser/r++.macros @@ -0,0 +1,28 @@ + +#define __attribute__(a...) +#define __typeof__ __typeof + +#define __extension +#define __extension__ + +#define __restrict +#define __restrict__ + +#define __volatile volatile +#define __volatile__ volatile + +#define __inline inline +#define __inline__ inline + +#define __const const +#define __const__ const + +#define __asm asm +#define __asm__ asm + +#define __GNUC__ 3 +//#define __GNUC_MINOR__ 4 + +#define __ROBC__ 0 +#define __ROBC_MINOR__ 1 + diff --git a/generator_50/parser/rpp-allocator.h b/generator_50/parser/rpp-allocator.h new file mode 100644 index 00000000..eb7f43d3 --- /dev/null +++ b/generator_50/parser/rpp-allocator.h @@ -0,0 +1,42 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "rxx_allocator.h" diff --git a/generator_50/parser/rpp/builtin-macros.cpp b/generator_50/parser/rpp/builtin-macros.cpp new file mode 100644 index 00000000..bae1ab77 --- /dev/null +++ b/generator_50/parser/rpp/builtin-macros.cpp @@ -0,0 +1,41 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + diff --git a/generator_50/parser/rpp/pp-cctype.h b/generator_50/parser/rpp/pp-cctype.h new file mode 100644 index 00000000..9bfef909 --- /dev/null +++ b/generator_50/parser/rpp/pp-cctype.h @@ -0,0 +1,65 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef PP_CCTYPE_H +#define PP_CCTYPE_H + +#include + +namespace rpp { + +inline bool pp_isalpha (int __ch) +{ return std::isalpha ((unsigned char) __ch) != 0; } + +inline bool pp_isalnum (int __ch) +{ return std::isalnum ((unsigned char) __ch) != 0; } + +inline bool pp_isdigit (int __ch) +{ return std::isdigit ((unsigned char) __ch) != 0; } + +inline bool pp_isspace (int __ch) +{ return std::isspace ((unsigned char) __ch) != 0; } + +} // namespace rpp + +#endif // PP_CCTYPE_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/rpp/pp-configuration b/generator_50/parser/rpp/pp-configuration new file mode 100644 index 00000000..15586dd8 --- /dev/null +++ b/generator_50/parser/rpp/pp-configuration @@ -0,0 +1,86 @@ +#define __DBL_MIN_EXP__ (-1021) +#define __FLT_MIN__ 1.17549435e-38F +#define __CHAR_BIT__ 8 +#define __WCHAR_MAX__ 2147483647 +#define __DBL_DENORM_MIN__ 4.9406564584124654e-324 +#define __FLT_EVAL_METHOD__ 2 +#define __DBL_MIN_10_EXP__ (-307) +#define __FINITE_MATH_ONLY__ 0 +#define __GNUC_PATCHLEVEL__ 2 +#define __SHRT_MAX__ 32767 +#define __LDBL_MAX__ 1.18973149535723176502e+4932L +#define __UINTMAX_TYPE__ long long unsigned int +#define __linux 1 +#define __unix 1 +#define __LDBL_MAX_EXP__ 16384 +#define __linux__ 1 +#define __SCHAR_MAX__ 127 +#define __USER_LABEL_PREFIX__ +#define __STDC_HOSTED__ 1 +#define __LDBL_HAS_INFINITY__ 1 +#define __DBL_DIG__ 15 +#define __FLT_EPSILON__ 1.19209290e-7F +#define __GXX_WEAK__ 1 +#define __LDBL_MIN__ 3.36210314311209350626e-4932L +#define __unix__ 1 +#define __DECIMAL_DIG__ 21 +#define __gnu_linux__ 1 +#define __LDBL_HAS_QUIET_NAN__ 1 +#define __GNUC__ 4 +#define __DBL_MAX__ 1.7976931348623157e+308 +#define __DBL_HAS_INFINITY__ 1 +#define __cplusplus 1 +#define __DEPRECATED 1 +#define __DBL_MAX_EXP__ 1024 +#define __GNUG__ 4 +#define __LONG_LONG_MAX__ 9223372036854775807LL +#define __GXX_ABI_VERSION 1002 +#define __FLT_MIN_EXP__ (-125) +#define __DBL_MIN__ 2.2250738585072014e-308 +#define __FLT_MIN_10_EXP__ (-37) +#define __DBL_HAS_QUIET_NAN__ 1 +#define __REGISTER_PREFIX__ +#define __NO_INLINE__ 1 +#define __i386 1 +#define __FLT_MANT_DIG__ 24 +#define __VERSION__ "4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)" +#define i386 1 +#define __i486__ 1 +#define unix 1 +#define __i386__ 1 +#define __SIZE_TYPE__ unsigned int +#define __ELF__ 1 +#define __FLT_RADIX__ 2 +#define __LDBL_EPSILON__ 1.08420217248550443401e-19L +#define __FLT_HAS_QUIET_NAN__ 1 +#define __FLT_MAX_10_EXP__ 38 +#define __LONG_MAX__ 2147483647L +#define __FLT_HAS_INFINITY__ 1 +#define linux 1 +#define __EXCEPTIONS 1 +#define __LDBL_MANT_DIG__ 64 +#define __WCHAR_TYPE__ int +#define __FLT_DIG__ 6 +#define __INT_MAX__ 2147483647 +#define __i486 1 +#define __FLT_MAX_EXP__ 128 +#define __DBL_MANT_DIG__ 53 +#define __WINT_TYPE__ unsigned int +#define __LDBL_MIN_EXP__ (-16381) +#define __LDBL_MAX_10_EXP__ 4932 +#define __DBL_EPSILON__ 2.2204460492503131e-16 +#define __tune_i486__ 1 +#define __INTMAX_MAX__ 9223372036854775807LL +#define __FLT_DENORM_MIN__ 1.40129846e-45F +#define __FLT_MAX__ 3.40282347e+38F +#define __INTMAX_TYPE__ long long int +#define __GNUC_MINOR__ 0 +#define __DBL_MAX_10_EXP__ 308 +#define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L +#define __PTRDIFF_TYPE__ int +#define __LDBL_MIN_10_EXP__ (-4931) +#define __LDBL_DIG__ 18 +#define _GNU_SOURCE 1 + + +#define __STDC__ diff --git a/generator_50/parser/rpp/pp-engine-bits.h b/generator_50/parser/rpp/pp-engine-bits.h new file mode 100644 index 00000000..4c8cf4bb --- /dev/null +++ b/generator_50/parser/rpp/pp-engine-bits.h @@ -0,0 +1,1369 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef PP_ENGINE_BITS_H +#define PP_ENGINE_BITS_H + +#include + +namespace rpp { + +inline std::string pp::fix_file_path(std::string const &filename) const +{ +#if defined (PP_OS_WIN) + std::string s = filename; + for (std::string::iterator it = s.begin(); it != s.end(); ++it) + { + if (*it == '/') + *it = '\\'; + } + return s; +#else + return filename; +#endif +} + +inline bool pp::is_absolute(std::string const &filename) const +{ +#if defined(PP_OS_WIN) + return filename.length() >= 3 + && filename.at(1) == ':' + && (filename.at(2) == '\\' || filename.at(2) == '/'); +#else + return filename.length() >= 1 + && filename.at(0) == '/'; +#endif +} + +template +void pp::file (std::string const &filename, _OutputIterator __result) +{ + FILE *fp = fopen (filename.c_str(), "rb"); + if (fp != 0) + { + std::string was = env.current_file; + env.current_file = filename; + file (fp, __result); + env.current_file = was; + } + //else + //std::cerr << "** WARNING file ``" << filename << " not found!" << std::endl; +} + +template +void pp::file (FILE *fp, _OutputIterator __result) +{ + assert (fp != 0); + +#if defined (HAVE_MMAP) + struct stat st; + fstat(FILENO (fp), &st); + std::size_t size = st.st_size; + char *buffer = 0; + buffer = (char *) ::mmap(0, size, PROT_READ, MAP_SHARED, FILENO (fp), 0); + fclose (fp); + if (!buffer || buffer == (char*) -1) + return; + this->operator () (buffer, buffer + size, __result); + ::munmap(buffer, size); +#else + std::string buffer; + while (!feof(fp)) { + char tmp[1024]; + int read = (int) fread (tmp, sizeof(char), 1023, fp); + tmp[read] = '\0'; + buffer += tmp; + } + fclose (fp); + this->operator () (buffer.c_str(), buffer.c_str() + buffer.size(), __result); +#endif +} + +template +bool pp::find_header_protection (_InputIterator __first, _InputIterator __last, std::string *__prot) +{ + int was = env.current_line; + + while (__first != __last) + { + if (pp_isspace (*__first)) + { + if (*__first == '\n') + ++env.current_line; + + ++__first; + } + else if (_PP_internal::comment_p (__first, __last)) + { + __first = skip_comment_or_divop (__first, __last); + env.current_line += skip_comment_or_divop.lines; + } + else if (*__first == '#') + { + __first = skip_blanks (++__first, __last); + env.current_line += skip_blanks.lines; + + if (__first != __last && *__first == 'i') + { + _InputIterator __begin = __first; + __first = skip_identifier (__begin, __last); + env.current_line += skip_identifier.lines; + + std::string __directive (__begin, __first); + + if (__directive == "ifndef") + { + __first = skip_blanks (__first, __last); + env.current_line += skip_blanks.lines; + + __begin = __first; + __first = skip_identifier (__first, __last); + env.current_line += skip_identifier.lines; + + if (__begin != __first && __first != __last) + { + __prot->assign (__begin, __first); + return true; + } + } + } + break; + } + else + break; + } + + env.current_line = was; + return false; +} + +inline pp::PP_DIRECTIVE_TYPE pp::find_directive (char const *__directive, std::size_t __size) const +{ + switch (__size) + { + case 2: + if (__directive[0] == 'i' + && __directive[1] == 'f') + return PP_IF; + break; + + case 4: + if (__directive[0] == 'e' && !strcmp (__directive, "elif")) + return PP_ELIF; + else if (__directive[0] == 'e' && !strcmp (__directive, "else")) + return PP_ELSE; + break; + + case 5: + if (__directive[0] == 'i' && !strcmp (__directive, "ifdef")) + return PP_IFDEF; + else if (__directive[0] == 'u' && !strcmp (__directive, "undef")) + return PP_UNDEF; + else if (__directive[0] == 'e') { + if (!strcmp (__directive, "endif")) + return PP_ENDIF; + else if (!strcmp (__directive, "error")) + return PP_ERROR; + } + break; + + case 6: + if (__directive[0] == 'i' && !strcmp (__directive, "ifndef")) + return PP_IFNDEF; + else if (__directive[0] == 'd' && !strcmp (__directive, "define")) + return PP_DEFINE; + else if (__directive[0] == 'p' && !strcmp (__directive, "pragma")) + return PP_PRAGMA; + break; + + case 7: + if (__directive[0] == 'i' && !strcmp (__directive, "include")) + return PP_INCLUDE; + else if (__directive[0] == 'w' && !strcmp(__directive, "warning")) + return PP_WARNING; + break; + + case 12: + if (__directive[0] == 'i' && !strcmp (__directive, "include_next")) + return PP_INCLUDE_NEXT; + break; + + default: + break; + } + std::cerr << "** WARNING unknown directive '#" << __directive << "' at " << env.current_file << ":" << env.current_line << std::endl; + return PP_UNKNOWN_DIRECTIVE; +} + +inline bool pp::file_isdir (std::string const &__filename) const +{ + struct stat __st; +#if defined(PP_OS_WIN) + if (stat(__filename.c_str (), &__st) == 0) + return (__st.st_mode & _S_IFDIR) == _S_IFDIR; + else + return false; +#else + if (lstat (__filename.c_str (), &__st) == 0) + return (__st.st_mode & S_IFDIR) == S_IFDIR; + else + return false; +#endif +} + +inline bool pp::file_exists (std::string const &__filename) const +{ + struct stat __st; +#if defined(PP_OS_WIN) + return stat(__filename.c_str (), &__st) == 0; +#else + return lstat (__filename.c_str (), &__st) == 0; +#endif +} + +inline FILE *pp::find_include_file(std::string const &__input_filename, std::string *__filepath, + INCLUDE_POLICY __include_policy, bool __skip_current_path) const +{ + assert (__filepath != 0); + assert (! __input_filename.empty()); + + __filepath->assign (__input_filename); + + if (is_absolute (*__filepath)) + return fopen (__filepath->c_str(), "r"); + + if (! env.current_file.empty ()) + _PP_internal::extract_file_path (env.current_file, __filepath); + + if (__include_policy == INCLUDE_LOCAL && ! __skip_current_path) + { + std::string __tmp (*__filepath); + __tmp += __input_filename; + + if (file_exists (__tmp) && !file_isdir(__tmp)) + { + __filepath->append (__input_filename); + return fopen (__filepath->c_str (), "r"); + } + } + + std::vector::const_iterator it = include_paths.begin (); + + if (__skip_current_path) + { + it = std::find (include_paths.begin (), include_paths.end (), *__filepath); + + if (it != include_paths.end ()) + ++it; + + else + it = include_paths.begin (); + } + + for (; it != include_paths.end (); ++it) + { + if (__skip_current_path && it == include_paths.begin()) + continue; + + __filepath->assign (*it); + __filepath->append (__input_filename); + + if (file_exists (*__filepath) && !file_isdir(*__filepath)) + return fopen (__filepath->c_str(), "r"); + +#ifdef Q_OS_MAC + // try in Framework path on Mac, if there is a path in front + // ### what about escaped slashes? + size_t slashPos = __input_filename.find('/'); + if (slashPos != std::string::npos) { + __filepath->assign (*it); + __filepath->append (__input_filename.substr(0, slashPos)); + __filepath->append (".framework/Headers/"); + __filepath->append (__input_filename.substr(slashPos+1, std::string::npos)); + std::cerr << *__filepath << "\n"; + + if (file_exists (*__filepath) && !file_isdir(*__filepath)) + return fopen (__filepath->c_str(), "r"); + } +#endif // Q_OS_MAC + } + + return 0; +} + +template +_InputIterator pp::handle_directive(char const *__directive, std::size_t __size, + _InputIterator __first, _InputIterator __last, _OutputIterator __result) +{ + __first = skip_blanks (__first, __last); + + PP_DIRECTIVE_TYPE d = find_directive (__directive, __size); + switch (d) + { + case PP_DEFINE: + if (! skipping ()) + return handle_define (__first, __last); + break; + + case PP_INCLUDE: + case PP_INCLUDE_NEXT: + if (! skipping ()) + return handle_include (d == PP_INCLUDE_NEXT, __first, __last, __result); + break; + + case PP_UNDEF: + if (! skipping ()) + return handle_undef(__first, __last); + break; + + case PP_ELIF: + return handle_elif (__first, __last); + + case PP_ELSE: + return handle_else (__first, __last); + + case PP_ENDIF: + return handle_endif (__first, __last); + + case PP_IF: + return handle_if (__first, __last); + + case PP_IFDEF: + return handle_ifdef (false, __first, __last); + + case PP_IFNDEF: + return handle_ifdef (true, __first, __last); + + default: + break; + } + + return __first; +} + +template +_InputIterator pp::handle_include (bool __skip_current_path, _InputIterator __first, _InputIterator __last, + _OutputIterator __result) +{ + std::cout << env.current_file << std::endl; + if (pp_isalpha (*__first) || *__first == '_') + { + pp_macro_expander expand_include (env); + std::string name; + name.reserve (255); + expand_include (__first, __last, std::back_inserter (name)); + std::string::iterator it = skip_blanks (name.begin (), name.end ()); + printf("%s", name.c_str()); + assert((it != name.end () && (*it == '<' || *it == '"'))); + handle_include (__skip_current_path, it, name.end (), __result); + return __first; + } + + assert (*__first == '<' || *__first == '"'); + int quote = (*__first == '"') ? '"' : '>'; + ++__first; + + _InputIterator end_name = __first; + for (; end_name != __last; ++end_name) + { + assert (*end_name != '\n'); + + if (*end_name == quote) + break; + } + + std::string filename (__first, end_name); + +#ifdef PP_OS_WIN + std::replace(filename.begin(), filename.end(), '/', '\\'); +#endif + + std::string filepath; + FILE *fp = find_include_file (filename, &filepath, quote == '>' ? INCLUDE_GLOBAL : INCLUDE_LOCAL, __skip_current_path); + +#if defined (PP_HOOK_ON_FILE_INCLUDED) + PP_HOOK_ON_FILE_INCLUDED (env.current_file, fp ? filepath : filename, fp); +#endif + + if (fp != 0) + { + std::string old_file = env.current_file; + env.current_file = filepath; + int __saved_lines = env.current_line; + + env.current_line = 1; + //output_line (env.current_file, 1, __result); + + file (fp, __result); + + // restore the file name and the line position + env.current_file = old_file; + env.current_line = __saved_lines; + + // sync the buffer + _PP_internal::output_line (env.current_file, env.current_line, __result); + } +#ifndef RPP_JAMBI +// else +// std::cerr << "*** WARNING " << filename << ": No such file or directory" << std::endl; +#endif + + return __first; +} + +template +void pp::operator () (_InputIterator __first, _InputIterator __last, _OutputIterator __result) +{ +#ifndef PP_NO_SMART_HEADER_PROTECTION + std::string __prot; + __prot.reserve (255); + pp_fast_string __tmp (__prot.c_str (), __prot.size ()); + + if (find_header_protection (__first, __last, &__prot) + && env.resolve (&__tmp) != 0) + { + // std::cerr << "** DEBUG found header protection:" << __prot << std::endl; + return; + } +#endif + + env.current_line = 1; + char __buffer[512]; + + while (true) + { + __first = skip_blanks (__first, __last); + env.current_line += skip_blanks.lines; + + if (__first == __last) + break; + else if (*__first == '#') + { + assert (*__first == '#'); + __first = skip_blanks (++__first, __last); + env.current_line += skip_blanks.lines; + + _InputIterator end_id = skip_identifier (__first, __last); + env.current_line += skip_identifier.lines; + std::size_t __size = end_id - __first; + + assert (__size < 512); + char *__cp = __buffer; + std::copy (__first, end_id, __cp); + __cp[__size] = '\0'; + + end_id = skip_blanks (end_id, __last); + __first = skip (end_id, __last); + + int was = env.current_line; + (void) handle_directive (__buffer, __size, end_id, __first, __result); + + if (env.current_line != was) + { + env.current_line = was; + _PP_internal::output_line (env.current_file, env.current_line, __result); + } + } + else if (*__first == '\n') + { + // ### compress the line + *__result++ = *__first++; + ++env.current_line; + } + else if (skipping ()) + __first = skip (__first, __last); + else + { + _PP_internal::output_line (env.current_file, env.current_line, __result); + __first = expand (__first, __last, __result); + env.current_line += expand.lines; + + if (expand.generated_lines) + _PP_internal::output_line (env.current_file, env.current_line, __result); + } + } +} + +inline pp::pp (pp_environment &__env): + env (__env), expand (env) +{ + iflevel = 0; + _M_skipping[iflevel] = 0; + _M_true_test[iflevel] = 0; +} + +inline std::back_insert_iterator > pp::include_paths_inserter () +{ return std::back_inserter (include_paths); } + +inline std::vector::iterator pp::include_paths_begin () +{ return include_paths.begin (); } + +inline std::vector::iterator pp::include_paths_end () +{ return include_paths.end (); } + +inline std::vector::const_iterator pp::include_paths_begin () const +{ return include_paths.begin (); } + +inline std::vector::const_iterator pp::include_paths_end () const +{ return include_paths.end (); } + +inline void pp::push_include_path (std::string const &__path) +{ + if (__path.empty () || __path [__path.size () - 1] != PATH_SEPARATOR) + { + std::string __tmp (__path); + __tmp += PATH_SEPARATOR; + include_paths.push_back (__tmp); + } + + else + include_paths.push_back (__path); +} + +template +_InputIterator pp::handle_define (_InputIterator __first, _InputIterator __last) +{ + pp_macro macro; +#if defined (PP_WITH_MACRO_POSITION) + macro.file = pp_symbol::get (env.current_file); +#endif + std::string definition; + + __first = skip_blanks (__first, __last); + _InputIterator end_macro_name = skip_identifier (__first, __last); + pp_fast_string const *macro_name = pp_symbol::get (__first, end_macro_name); + __first = end_macro_name; + + if (__first != __last && *__first == '(') + { + macro.function_like = true; + macro.formals.reserve (5); + + __first = skip_blanks (++__first, __last); // skip '(' + _InputIterator arg_end = skip_identifier (__first, __last); + if (__first != arg_end) + macro.formals.push_back (pp_symbol::get (__first, arg_end)); + + __first = skip_blanks (arg_end, __last); + + if (*__first == '.') + { + macro.variadics = true; + while (*__first == '.') + ++__first; + } + + while (__first != __last && *__first == ',') + { + __first = skip_blanks (++__first, __last); + + arg_end = skip_identifier (__first, __last); + if (__first != arg_end) + macro.formals.push_back (pp_symbol::get (__first, arg_end)); + + __first = skip_blanks (arg_end, __last); + + if (*__first == '.') + { + macro.variadics = true; + while (*__first == '.') + ++__first; + } + } + + assert (*__first == ')'); + ++__first; + } + + __first = skip_blanks (__first, __last); + + while (__first != __last && *__first != '\n') + { + if (*__first == '/') { + __first = skip_comment_or_divop(__first, __last); + env.current_line += skip_comment_or_divop.lines; + } + + if (*__first == '\\') + { + _InputIterator __begin = __first; + __begin = skip_blanks (++__begin, __last); + + if (__begin != __last && *__begin == '\n') + { + ++macro.lines; + __first = skip_blanks (++__begin, __last); + definition += ' '; + continue; + } + } + + definition += *__first++; + } + + macro.definition = pp_symbol::get (definition); + env.bind (macro_name, macro); + + return __first; +} + +template +_InputIterator pp::skip (_InputIterator __first, _InputIterator __last) +{ + pp_skip_string_literal skip_string_literal; + pp_skip_char_literal skip_char_literal; + + while (__first != __last && *__first != '\n') + { + if (*__first == '/') + { + __first = skip_comment_or_divop (__first, __last); + env.current_line += skip_comment_or_divop.lines; + } + else if (*__first == '"') + { + __first = skip_string_literal (__first, __last); + env.current_line += skip_string_literal.lines; + } + else if (*__first == '\'') + { + __first = skip_char_literal (__first, __last); + env.current_line += skip_char_literal.lines; + } + else if (*__first == '\\') + { + __first = skip_blanks (++__first, __last); + env.current_line += skip_blanks.lines; + + if (__first != __last && *__first == '\n') + { + ++__first; + ++env.current_line; + } + } + else + ++__first; + } + + return __first; +} + +inline bool pp::test_if_level() +{ + bool result = !_M_skipping[iflevel++]; + _M_skipping[iflevel] = _M_skipping[iflevel - 1]; + _M_true_test[iflevel] = false; + return result; +} + +inline int pp::skipping() const +{ return _M_skipping[iflevel]; } + +template +_InputIterator pp::eval_primary(_InputIterator __first, _InputIterator __last, Value *result) +{ + bool expect_paren = false; + int token; + __first = next_token (__first, __last, &token); + + switch (token) + { + case TOKEN_NUMBER: + result->set_long (token_value); + break; + + case TOKEN_UNUMBER: + result->set_ulong (token_uvalue); + break; + + case TOKEN_DEFINED: + __first = next_token (__first, __last, &token); + + if (token == '(') + { + expect_paren = true; + __first = next_token (__first, __last, &token); + } + + if (token != TOKEN_IDENTIFIER) + { + std::cerr << "** WARNING expected ``identifier'' found:" << char(token) << std::endl; + result->set_long (0); + break; + } + + result->set_long (env.resolve (token_text->c_str (), token_text->size ()) != 0); + + next_token (__first, __last, &token); // skip '(' + + if (expect_paren) + { + _InputIterator next = next_token (__first, __last, &token); + if (token != ')') + std::cerr << "** WARNING expected ``)''" << std::endl; + else + __first = next; + } + break; + + case TOKEN_IDENTIFIER: + result->set_long (0); + break; + + case '-': + __first = eval_primary (__first, __last, result); + result->set_long (- result->l); + return __first; + + case '+': + __first = eval_primary (__first, __last, result); + return __first; + + case '!': + __first = eval_primary (__first, __last, result); + result->set_long (result->is_zero ()); + return __first; + + case '(': + __first = eval_constant_expression(__first, __last, result); + next_token (__first, __last, &token); + + if (token != ')') + std::cerr << "** WARNING expected ``)'' = " << token << std::endl; + else + __first = next_token(__first, __last, &token); + break; + + default: + result->set_long (0); + } + + return __first; +} + +template +_InputIterator pp::eval_multiplicative(_InputIterator __first, _InputIterator __last, Value *result) +{ + __first = eval_primary(__first, __last, result); + + int token; + _InputIterator next = next_token (__first, __last, &token); + + while (token == '*' || token == '/' || token == '%') + { + Value value; + __first = eval_primary(next, __last, &value); + + if (token == '*') + result->op_mult (value); + else if (token == '/') + { + if (value.is_zero ()) + { + std::cerr << "** WARNING division by zero" << std::endl; + result->set_long (0); + } + else + result->op_div (value); + } + else + { + if (value.is_zero ()) + { + std::cerr << "** WARNING division by zero" << std::endl; + result->set_long (0); + } + else + result->op_mod (value); + } + next = next_token (__first, __last, &token); + } + + return __first; +} + +template +_InputIterator pp::eval_additive(_InputIterator __first, _InputIterator __last, Value *result) +{ + __first = eval_multiplicative(__first, __last, result); + + int token; + _InputIterator next = next_token (__first, __last, &token); + + while (token == '+' || token == '-') + { + Value value; + __first = eval_multiplicative(next, __last, &value); + + if (token == '+') + result->op_add (value); + else + result->op_sub (value); + next = next_token (__first, __last, &token); + } + + return __first; +} + +template +_InputIterator pp::eval_shift(_InputIterator __first, _InputIterator __last, Value *result) +{ + __first = eval_additive(__first, __last, result); + + int token; + _InputIterator next = next_token (__first, __last, &token); + + while (token == TOKEN_LT_LT || token == TOKEN_GT_GT) + { + Value value; + __first = eval_additive (next, __last, &value); + + if (token == TOKEN_LT_LT) + result->op_lhs (value); + else + result->op_rhs (value); + next = next_token (__first, __last, &token); + } + + return __first; +} + +template +_InputIterator pp::eval_relational(_InputIterator __first, _InputIterator __last, Value *result) +{ + __first = eval_shift(__first, __last, result); + + int token; + _InputIterator next = next_token (__first, __last, &token); + + while (token == '<' + || token == '>' + || token == TOKEN_LT_EQ + || token == TOKEN_GT_EQ) + { + Value value; + __first = eval_shift(next, __last, &value); + + switch (token) + { + default: + assert (0); + break; + + case '<': + result->op_lt (value); + break; + + case '>': + result->op_gt (value); + break; + + case TOKEN_LT_EQ: + result->op_le (value); + break; + + case TOKEN_GT_EQ: + result->op_ge (value); + break; + } + next = next_token (__first, __last, &token); + } + + return __first; +} + +template +_InputIterator pp::eval_equality(_InputIterator __first, _InputIterator __last, Value *result) +{ + __first = eval_relational(__first, __last, result); + + int token; + _InputIterator next = next_token (__first, __last, &token); + + while (token == TOKEN_EQ_EQ || token == TOKEN_NOT_EQ) + { + Value value; + __first = eval_relational(next, __last, &value); + + if (token == TOKEN_EQ_EQ) + result->op_eq (value); + else + result->op_ne (value); + next = next_token (__first, __last, &token); + } + + return __first; +} + +template +_InputIterator pp::eval_and(_InputIterator __first, _InputIterator __last, Value *result) +{ + __first = eval_equality(__first, __last, result); + + int token; + _InputIterator next = next_token (__first, __last, &token); + + while (token == '&') + { + Value value; + __first = eval_equality(next, __last, &value); + result->op_bit_and (value); + next = next_token (__first, __last, &token); + } + + return __first; +} + +template +_InputIterator pp::eval_xor(_InputIterator __first, _InputIterator __last, Value *result) +{ + __first = eval_and(__first, __last, result); + + int token; + _InputIterator next = next_token (__first, __last, &token); + + while (token == '^') + { + Value value; + __first = eval_and(next, __last, &value); + result->op_bit_xor (value); + next = next_token (__first, __last, &token); + } + + return __first; +} + +template +_InputIterator pp::eval_or(_InputIterator __first, _InputIterator __last, Value *result) +{ + __first = eval_xor(__first, __last, result); + + int token; + _InputIterator next = next_token (__first, __last, &token); + + while (token == '|') + { + Value value; + __first = eval_xor(next, __last, &value); + result->op_bit_or (value); + next = next_token (__first, __last, &token); + } + + return __first; +} + +template +_InputIterator pp::eval_logical_and(_InputIterator __first, _InputIterator __last, Value *result) +{ + __first = eval_or(__first, __last, result); + + int token; + _InputIterator next = next_token (__first, __last, &token); + + while (token == TOKEN_AND_AND) + { + Value value; + __first = eval_or(next, __last, &value); + result->op_and (value); + next = next_token (__first, __last, &token); + } + + return __first; +} + +template +_InputIterator pp::eval_logical_or(_InputIterator __first, _InputIterator __last, Value *result) +{ + __first = eval_logical_and (__first, __last, result); + + int token; + _InputIterator next = next_token (__first, __last, &token); + + while (token == TOKEN_OR_OR) + { + Value value; + __first = eval_logical_and(next, __last, &value); + result->op_or (value); + next = next_token (__first, __last, &token); + } + + return __first; +} + +template +_InputIterator pp::eval_constant_expression(_InputIterator __first, _InputIterator __last, Value *result) +{ + __first = eval_logical_or(__first, __last, result); + + int token; + _InputIterator next = next_token (__first, __last, &token); + + if (token == '?') + { + Value left_value; + __first = eval_constant_expression(next, __last, &left_value); + __first = skip_blanks (__first, __last); + + __first = next_token(__first, __last, &token); + if (token == ':') + { + Value right_value; + __first = eval_constant_expression(__first, __last, &right_value); + + *result = !result->is_zero () ? left_value : right_value; + } + else + { + std::cerr << "** WARNING expected ``:'' = " << int (token) << std::endl; + *result = left_value; + } + } + + return __first; +} + +template +_InputIterator pp::eval_expression (_InputIterator __first, _InputIterator __last, Value *result) +{ + return __first = eval_constant_expression (skip_blanks (__first, __last), __last, result); +} + +template +_InputIterator pp::handle_if (_InputIterator __first, _InputIterator __last) +{ + if (test_if_level()) + { + pp_macro_expander expand_condition (env); + std::string condition; + condition.reserve (255); + expand_condition (skip_blanks (__first, __last), __last, std::back_inserter (condition)); + + Value result; + result.set_long (0); + eval_expression(condition.c_str (), condition.c_str () + condition.size (), &result); + + _M_true_test[iflevel] = !result.is_zero (); + _M_skipping[iflevel] = result.is_zero (); + } + + return __first; +} + +template +_InputIterator pp::handle_else (_InputIterator __first, _InputIterator /*__last*/) +{ + if (iflevel == 0 && !skipping ()) + { + std::cerr << "** WARNING #else without #if" << std::endl; + } + else if (iflevel > 0 && _M_skipping[iflevel - 1]) + { + _M_skipping[iflevel] = true; + } + else + { + _M_skipping[iflevel] = _M_true_test[iflevel]; + } + + return __first; +} + +template +_InputIterator pp::handle_elif (_InputIterator __first, _InputIterator __last) +{ + assert(iflevel > 0); + + if (iflevel == 0 && !skipping()) + { + std::cerr << "** WARNING #else without #if" << std::endl; + } + else if (!_M_true_test[iflevel] && !_M_skipping[iflevel - 1]) + { + Value result; + __first = eval_expression(__first, __last, &result); + _M_true_test[iflevel] = !result.is_zero (); + _M_skipping[iflevel] = result.is_zero (); + } + else + { + _M_skipping[iflevel] = true; + } + + return __first; +} + +template +_InputIterator pp::handle_endif (_InputIterator __first, _InputIterator /*__last*/) +{ + if (iflevel == 0 && !skipping()) + { + std::cerr << "** WARNING #endif without #if" << std::endl; + } + else + { + _M_skipping[iflevel] = 0; + _M_true_test[iflevel] = 0; + + --iflevel; + } + + return __first; +} + +template +_InputIterator pp::handle_ifdef (bool check_undefined, _InputIterator __first, _InputIterator __last) +{ + if (test_if_level()) + { + _InputIterator end_macro_name = skip_identifier (__first, __last); + + std::size_t __size; +#if defined(__SUNPRO_CC) + std::distance (__first, end_macro_name, __size); +#else + __size = std::distance (__first, end_macro_name); +#endif + assert (__size < 256); + + char __buffer [256]; + std::copy (__first, end_macro_name, __buffer); + + bool value = env.resolve (__buffer, __size) != 0; + + __first = end_macro_name; + + if (check_undefined) + value = !value; + + _M_true_test[iflevel] = value; + _M_skipping[iflevel] = !value; + } + + return __first; +} + +template +_InputIterator pp::handle_undef(_InputIterator __first, _InputIterator __last) +{ + __first = skip_blanks (__first, __last); + _InputIterator end_macro_name = skip_identifier (__first, __last); + assert (end_macro_name != __first); + + std::size_t __size; +#if defined(__SUNPRO_CC) + std::distance (__first, end_macro_name, __size); +#else + __size = std::distance (__first, end_macro_name); +#endif + + assert (__size < 256); + + char __buffer [256]; + std::copy (__first, end_macro_name, __buffer); + + pp_fast_string const __tmp (__buffer, __size); + env.unbind (&__tmp); + + __first = end_macro_name; + + return __first; +} + +template +char pp::peek_char (_InputIterator __first, _InputIterator __last) +{ + if (__first == __last) + return 0; + + return *++__first; +} + +template +_InputIterator pp::next_token (_InputIterator __first, _InputIterator __last, int *kind) +{ + __first = skip_blanks (__first, __last); + + if (__first == __last) + { + *kind = 0; + return __first; + } + + char ch = *__first; + char ch2 = peek_char (__first, __last); + + switch (ch) + { + case '/': + if (ch2 == '/' || ch2 == '*') + { + __first = skip_comment_or_divop (__first, __last); + return next_token (__first, __last, kind); + } + ++__first; + *kind = '/'; + break; + + case '<': + ++__first; + if (ch2 == '<') + { + ++__first; + *kind = TOKEN_LT_LT; + } + else if (ch2 == '=') + { + ++__first; + *kind = TOKEN_LT_EQ; + } + else + *kind = '<'; + + return __first; + + case '>': + ++__first; + if (ch2 == '>') + { + ++__first; + *kind = TOKEN_GT_GT; + } + else if (ch2 == '=') + { + ++__first; + *kind = TOKEN_GT_EQ; + } + else + *kind = '>'; + + return __first; + + case '!': + ++__first; + if (ch2 == '=') + { + ++__first; + *kind = TOKEN_NOT_EQ; + } + else + *kind = '!'; + + return __first; + + case '=': + ++__first; + if (ch2 == '=') + { + ++__first; + *kind = TOKEN_EQ_EQ; + } + else + *kind = '='; + + return __first; + + case '|': + ++__first; + if (ch2 == '|') + { + ++__first; + *kind = TOKEN_OR_OR; + } + else + *kind = '|'; + + return __first; + + case '&': + ++__first; + if (ch2 == '&') + { + ++__first; + *kind = TOKEN_AND_AND; + } + else + *kind = '&'; + + return __first; + + default: + if (pp_isalpha (ch) || ch == '_') + { + _InputIterator end = skip_identifier (__first, __last); + _M_current_text.assign (__first, end); + + token_text = &_M_current_text; + __first = end; + + if (*token_text == "defined") + *kind = TOKEN_DEFINED; + else + *kind = TOKEN_IDENTIFIER; + } + else if (pp_isdigit (ch)) + { + _InputIterator end = skip_number (__first, __last); + std::string __str (__first, __last); + char ch = __str [__str.size () - 1]; + if (ch == 'u' || ch == 'U') + { + token_uvalue = strtoul (__str.c_str (), 0, 0); + *kind = TOKEN_UNUMBER; + } + else + { + token_value = strtol (__str.c_str (), 0, 0); + *kind = TOKEN_NUMBER; + } + __first = end; + } + else + *kind = *__first++; + } + + return __first; +} + +} // namespace rpp + +#endif // PP_ENGINE_BITS_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/rpp/pp-engine.h b/generator_50/parser/rpp/pp-engine.h new file mode 100644 index 00000000..0da92e93 --- /dev/null +++ b/generator_50/parser/rpp/pp-engine.h @@ -0,0 +1,293 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef PP_ENGINE_H +#define PP_ENGINE_H + +namespace rpp { + +struct Value +{ + enum Kind { + Kind_Long, + Kind_ULong, + }; + + Kind kind; + + union { + long l; + unsigned long ul; + }; + + inline bool is_ulong () const { return kind == Kind_ULong; } + + inline void set_ulong (unsigned long v) + { + ul = v; + kind = Kind_ULong; + } + + inline void set_long (long v) + { + l = v; + kind = Kind_Long; + } + + inline bool is_zero () const { return l == 0; } + +#define PP_DEFINE_BIN_OP(name, op) \ + inline Value &name (const Value &other) \ + { \ + if (is_ulong () || other.is_ulong ()) \ + set_ulong (ul op other.ul); \ + else \ + set_long (l op other.l); \ + return *this; \ + } + + PP_DEFINE_BIN_OP(op_add, +) + PP_DEFINE_BIN_OP(op_sub, -) + PP_DEFINE_BIN_OP(op_mult, *) + PP_DEFINE_BIN_OP(op_div, /) + PP_DEFINE_BIN_OP(op_mod, %) + PP_DEFINE_BIN_OP(op_lhs, <<) + PP_DEFINE_BIN_OP(op_rhs, >>) + PP_DEFINE_BIN_OP(op_lt, <) + PP_DEFINE_BIN_OP(op_gt, >) + PP_DEFINE_BIN_OP(op_le, <=) + PP_DEFINE_BIN_OP(op_ge, >=) + PP_DEFINE_BIN_OP(op_eq, ==) + PP_DEFINE_BIN_OP(op_ne, !=) + PP_DEFINE_BIN_OP(op_bit_and, &) + PP_DEFINE_BIN_OP(op_bit_or, |) + PP_DEFINE_BIN_OP(op_bit_xor, ^) + PP_DEFINE_BIN_OP(op_and, &&) + PP_DEFINE_BIN_OP(op_or, ||) + +#undef PP_DEFINE_BIN_OP +}; + +class pp +{ + pp_environment &env; + pp_macro_expander expand; + pp_skip_identifier skip_identifier; + pp_skip_comment_or_divop skip_comment_or_divop; + pp_skip_blanks skip_blanks; + pp_skip_number skip_number; + std::vector include_paths; + std::string _M_current_text; + + enum { MAX_LEVEL = 512 }; + int _M_skipping[MAX_LEVEL]; + int _M_true_test[MAX_LEVEL]; + int iflevel; + + union + { + long token_value; + unsigned long token_uvalue; + std::string *token_text; + }; + + enum INCLUDE_POLICY + { + INCLUDE_GLOBAL, + INCLUDE_LOCAL + }; + + enum TOKEN_TYPE + { + TOKEN_NUMBER = 1000, + TOKEN_UNUMBER, + TOKEN_IDENTIFIER, + TOKEN_DEFINED, + TOKEN_LT_LT, + TOKEN_LT_EQ, + TOKEN_GT_GT, + TOKEN_GT_EQ, + TOKEN_EQ_EQ, + TOKEN_NOT_EQ, + TOKEN_OR_OR, + TOKEN_AND_AND, + }; + + enum PP_DIRECTIVE_TYPE + { + PP_UNKNOWN_DIRECTIVE, + PP_DEFINE, + PP_INCLUDE, + PP_INCLUDE_NEXT, + PP_ELIF, + PP_ELSE, + PP_ENDIF, + PP_IF, + PP_IFDEF, + PP_IFNDEF, + PP_UNDEF, + PP_PRAGMA, + PP_ERROR, + PP_WARNING + }; + +public: + pp (pp_environment &__env); + + inline std::back_insert_iterator > include_paths_inserter (); + + inline void push_include_path (std::string const &__path); + + inline std::vector::iterator include_paths_begin (); + inline std::vector::iterator include_paths_end (); + + inline std::vector::const_iterator include_paths_begin () const; + inline std::vector::const_iterator include_paths_end () const; + + template + inline _InputIterator eval_expression (_InputIterator __first, _InputIterator __last, Value *result); + + template + void file (std::string const &filename, _OutputIterator __result); + + template + void file (FILE *fp, _OutputIterator __result); + + template + void operator () (_InputIterator __first, _InputIterator __last, _OutputIterator __result); + +private: + inline bool file_isdir (std::string const &__filename) const; + inline bool file_exists (std::string const &__filename) const; + FILE *find_include_file (std::string const &__filename, std::string *__filepath, + INCLUDE_POLICY __include_policy, bool __skip_current_path = false) const; + + inline int skipping() const; + bool test_if_level(); + + inline std::string fix_file_path (std::string const &filename) const; + inline bool is_absolute (std::string const &filename) const; + + PP_DIRECTIVE_TYPE find_directive (char const *__directive, std::size_t __size) const; + + template + bool find_header_protection (_InputIterator __first, _InputIterator __last, std::string *__prot); + + template + _InputIterator skip (_InputIterator __first, _InputIterator __last); + + template + _InputIterator eval_primary(_InputIterator __first, _InputIterator __last, Value *result); + + template + _InputIterator eval_multiplicative(_InputIterator __first, _InputIterator __last, Value *result); + + template + _InputIterator eval_additive(_InputIterator __first, _InputIterator __last, Value *result); + + template + _InputIterator eval_shift(_InputIterator __first, _InputIterator __last, Value *result); + + template + _InputIterator eval_relational(_InputIterator __first, _InputIterator __last, Value *result); + + template + _InputIterator eval_equality(_InputIterator __first, _InputIterator __last, Value *result); + + template + _InputIterator eval_and(_InputIterator __first, _InputIterator __last, Value *result); + + template + _InputIterator eval_xor(_InputIterator __first, _InputIterator __last, Value *result); + + template + _InputIterator eval_or(_InputIterator __first, _InputIterator __last, Value *result); + + template + _InputIterator eval_logical_and(_InputIterator __first, _InputIterator __last, Value *result); + + template + _InputIterator eval_logical_or(_InputIterator __first, _InputIterator __last, Value *result); + + template + _InputIterator eval_constant_expression(_InputIterator __first, _InputIterator __last, Value *result); + + template + _InputIterator handle_directive(char const *__directive, std::size_t __size, + _InputIterator __first, _InputIterator __last, _OutputIterator __result); + + template + _InputIterator handle_include(bool skip_current_path, _InputIterator __first, _InputIterator __last, + _OutputIterator __result); + + template + _InputIterator handle_define (_InputIterator __first, _InputIterator __last); + + template + _InputIterator handle_if (_InputIterator __first, _InputIterator __last); + + template + _InputIterator handle_else (_InputIterator __first, _InputIterator __last); + + template + _InputIterator handle_elif (_InputIterator __first, _InputIterator __last); + + template + _InputIterator handle_endif (_InputIterator __first, _InputIterator __last); + + template + _InputIterator handle_ifdef (bool check_undefined, _InputIterator __first, _InputIterator __last); + + template + _InputIterator handle_undef(_InputIterator __first, _InputIterator __last); + + template + inline char peek_char (_InputIterator __first, _InputIterator __last); + + template + _InputIterator next_token (_InputIterator __first, _InputIterator __last, int *kind); +}; + +} // namespace rpp + +#endif // PP_ENGINE_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/rpp/pp-environment.h b/generator_50/parser/rpp/pp-environment.h new file mode 100644 index 00000000..12277283 --- /dev/null +++ b/generator_50/parser/rpp/pp-environment.h @@ -0,0 +1,159 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef PP_ENVIRONMENT_H +#define PP_ENVIRONMENT_H + +#include +#include + +namespace rpp { + +class pp_environment +{ +public: + typedef std::vector::const_iterator const_iterator; + +public: + pp_environment (): + current_line (0), + _M_hash_size (4093) + { + _M_base = (pp_macro **) memset (new pp_macro* [_M_hash_size], 0, _M_hash_size * sizeof (pp_macro*)); + } + + ~pp_environment () + { + for (std::size_t i = 0; i < _M_macros.size (); ++i) + delete _M_macros [i]; + + delete [] _M_base; + } + + const_iterator first_macro () const { return _M_macros.begin (); } + const_iterator last_macro () const { return _M_macros.end (); } + + inline void bind (pp_fast_string const *__name, pp_macro const &__macro) + { + std::size_t h = hash_code (*__name) % _M_hash_size; + pp_macro *m = new pp_macro (__macro); + m->name = __name; + m->next = _M_base [h]; + m->hash_code = h; + _M_base [h] = m; + + _M_macros.push_back (m); + + if (_M_macros.size() == _M_hash_size) + rehash(); + } + + inline void unbind (pp_fast_string const *__name) + { + if (pp_macro *m = resolve (__name)) + m->hidden = true; + } + + inline void unbind (char const *__s, std::size_t __size) + { + pp_fast_string __tmp (__s, __size); + unbind (&__tmp); + } + + inline pp_macro *resolve (pp_fast_string const *__name) const + { + std::size_t h = hash_code (*__name) % _M_hash_size; + pp_macro *it = _M_base [h]; + + while (it && it->name && it->hash_code == h && (*it->name != *__name || it->hidden)) + it = it->next; + + return it; + } + + inline pp_macro *resolve (char const *__data, std::size_t __size) const + { + pp_fast_string const __tmp (__data, __size); + return resolve (&__tmp); + } + + std::string current_file; + int current_line; + +private: + inline std::size_t hash_code (pp_fast_string const &s) const + { + std::size_t hash_value = 0; + + for (std::size_t i = 0; i < s.size (); ++i) + hash_value = (hash_value << 5) - hash_value + s.at (i); + + return hash_value; + } + + void rehash() + { + delete[] _M_base; + + _M_hash_size <<= 1; + + _M_base = (pp_macro **) memset (new pp_macro* [_M_hash_size], 0, _M_hash_size * sizeof(pp_macro*)); + for (std::size_t index = 0; index < _M_macros.size (); ++index) + { + pp_macro *elt = _M_macros [index]; + std::size_t h = hash_code (*elt->name) % _M_hash_size; + elt->next = _M_base [h]; + elt->hash_code = h; + _M_base [h] = elt; + } + } + +private: + std::vector _M_macros; + pp_macro **_M_base; + std::size_t _M_hash_size; +}; + +} // namespace rpp + +#endif // PP_ENVIRONMENT_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/rpp/pp-fwd.h b/generator_50/parser/rpp/pp-fwd.h new file mode 100644 index 00000000..eacac5da --- /dev/null +++ b/generator_50/parser/rpp/pp-fwd.h @@ -0,0 +1,55 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef PP_FWD_H +#define PP_FWD_H + +namespace rpp { + +template class pp_string; + +typedef pp_string pp_fast_string; + +#endif // PP_FWD_H + +} // namespace rpp + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/rpp/pp-internal.h b/generator_50/parser/rpp/pp-internal.h new file mode 100644 index 00000000..045bf097 --- /dev/null +++ b/generator_50/parser/rpp/pp-internal.h @@ -0,0 +1,134 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef PP_INTERNAL_H +#define PP_INTERNAL_H + +#include +#include + +namespace rpp { + +namespace _PP_internal +{ + +inline void extract_file_path (const std::string &__filename, std::string *__filepath) +{ + std::size_t __index = __filename.rfind (PATH_SEPARATOR); + + if (__index == std::string::npos) + *__filepath = "/"; + + else + __filepath->assign (__filename, 0, __index + 1); +} + +template +void output_line(const std::string &__filename, int __line, _OutputIterator __result) +{ + std::string __msg; + + __msg += "# "; + + char __line_descr[16]; + pp_snprintf (__line_descr, 16, "%d", __line); + __msg += __line_descr; + + __msg += " \""; + + if (__filename.empty ()) + __msg += ""; + else + __msg += __filename; + + __msg += "\"\n"; + std::copy (__msg.begin (), __msg.end (), __result); +} + +template +inline bool comment_p (_InputIterator __first, _InputIterator __last) /*const*/ +{ + if (__first == __last) + return false; + + if (*__first != '/') + return false; + + if (++__first == __last) + return false; + + return (*__first == '/' || *__first == '*'); +} + +struct _Compare_string: public std::binary_function +{ + inline bool operator () (pp_fast_string const *__lhs, pp_fast_string const *__rhs) const + { return *__lhs < *__rhs; } +}; + +struct _Equal_to_string: public std::binary_function +{ + inline bool operator () (pp_fast_string const *__lhs, pp_fast_string const *__rhs) const + { return *__lhs == *__rhs; } +}; + +struct _Hash_string: public std::unary_function +{ + inline std::size_t operator () (pp_fast_string const *__s) const + { + char const *__ptr = __s->begin (); + std::size_t __size = __s->size (); + std::size_t __h = 0; + + for (std::size_t i = 0; i < __size; ++i) + __h = (__h << 5) - __h + __ptr [i]; + + return __h; + } +}; + +} // _PP_internal + +} // namespace rpp + +#endif // PP_INTERNAL_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/rpp/pp-iterator.h b/generator_50/parser/rpp/pp-iterator.h new file mode 100644 index 00000000..d982efb3 --- /dev/null +++ b/generator_50/parser/rpp/pp-iterator.h @@ -0,0 +1,92 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef PP_ITERATOR_H +#define PP_ITERATOR_H + +#include + +namespace rpp { + +class pp_null_output_iterator + : public std::iterator +{ +public: + pp_null_output_iterator() {} + + template + pp_null_output_iterator &operator=(_Tp const &) + { return *this; } + + inline pp_null_output_iterator &operator * () { return *this; } + inline pp_null_output_iterator &operator ++ () { return *this; } + inline pp_null_output_iterator operator ++ (int) { return *this; } +}; + +template +class pp_output_iterator + : public std::iterator +{ + std::string &_M_result; + +public: + explicit pp_output_iterator(std::string &__result): + _M_result (__result) {} + + inline pp_output_iterator &operator=(typename _Container::const_reference __v) + { + if (_M_result.capacity () == _M_result.size ()) + _M_result.reserve (_M_result.capacity () << 2); + + _M_result.push_back(__v); + return *this; + } + + inline pp_output_iterator &operator * () { return *this; } + inline pp_output_iterator &operator ++ () { return *this; } + inline pp_output_iterator operator ++ (int) { return *this; } +}; + +} // namespace rpp + +#endif // PP_ITERATOR_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/rpp/pp-macro-expander.h b/generator_50/parser/rpp/pp-macro-expander.h new file mode 100644 index 00000000..8a348f2e --- /dev/null +++ b/generator_50/parser/rpp/pp-macro-expander.h @@ -0,0 +1,411 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef PP_MACRO_EXPANDER_H +#define PP_MACRO_EXPANDER_H + +#include + +namespace rpp { + +struct pp_frame +{ + pp_macro *expanding_macro; + std::vector *actuals; + + pp_frame (pp_macro *__expanding_macro, std::vector *__actuals): + expanding_macro (__expanding_macro), actuals (__actuals) {} +}; + +class pp_macro_expander +{ + pp_environment &env; + pp_frame *frame; + + pp_skip_number skip_number; + pp_skip_identifier skip_identifier; + pp_skip_string_literal skip_string_literal; + pp_skip_char_literal skip_char_literal; + pp_skip_argument skip_argument; + pp_skip_comment_or_divop skip_comment_or_divop; + pp_skip_blanks skip_blanks; + pp_skip_whitespaces skip_whitespaces; + + std::string const *resolve_formal (pp_fast_string const *__name) + { + assert (__name != 0); + + if (! frame) + return 0; + + assert (frame->expanding_macro != 0); + + std::vector const formals = frame->expanding_macro->formals; + for (std::size_t index = 0; index < formals.size(); ++index) + { + pp_fast_string const *formal = formals[index]; + + if (*formal != *__name) + continue; + + else if (frame->actuals && index < frame->actuals->size()) + return &(*frame->actuals)[index]; + + else + assert (0); // internal error? + } + + return 0; + } + +public: // attributes + int lines; + int generated_lines; + +public: + pp_macro_expander (pp_environment &__env, pp_frame *__frame = 0): + env (__env), frame (__frame), lines (0), generated_lines (0) {} + + template + _InputIterator operator () (_InputIterator __first, _InputIterator __last, _OutputIterator __result) + { + generated_lines = 0; + __first = skip_blanks (__first, __last); + lines = skip_blanks.lines; + + while (__first != __last) + { + if (*__first == '\n') + { + *__result++ = *__first; + ++lines; + + __first = skip_blanks (++__first, __last); + lines += skip_blanks.lines; + + if (__first != __last && *__first == '#') + break; + } + else if (*__first == '#') + { + __first = skip_blanks (++__first, __last); + lines += skip_blanks.lines; + + _InputIterator end_id = skip_identifier (__first, __last); + + // ### rewrite: not safe + char name_buffer[512], *cp = name_buffer; + std::copy (__first, end_id, cp); + std::size_t name_size = end_id - __first; + name_buffer[name_size] = '\0'; + + pp_fast_string fast_name (name_buffer, name_size); + + if (std::string const *actual = resolve_formal (&fast_name)) + { + *__result++ = '\"'; + + for (std::string::const_iterator it = skip_whitespaces (actual->begin (), actual->end ()); + it != actual->end (); ++it) + { + if (*it == '"') + { + *__result++ = '\\'; + *__result++ = *it; + } + + else if (*it == '\n') + { + *__result++ = '"'; + *__result++ = '\n'; + *__result++ = '"'; + } + + else + *__result++ = *it; + } + + *__result++ = '\"'; + __first = end_id; + } + else + *__result++ = '#'; // ### warning message? + } + else if (*__first == '\"') + { + _InputIterator next_pos = skip_string_literal (__first, __last); + lines += skip_string_literal.lines; + std::copy (__first, next_pos, __result); + __first = next_pos; + } + else if (*__first == '\'') + { + _InputIterator next_pos = skip_char_literal (__first, __last); + lines += skip_char_literal.lines; + std::copy (__first, next_pos, __result); + __first = next_pos; + } + else if (_PP_internal::comment_p (__first, __last)) + { + __first = skip_comment_or_divop (__first, __last); + int n = skip_comment_or_divop.lines; + lines += n; + + while (n-- > 0) + *__result++ = '\n'; + } + else if (pp_isspace (*__first)) + { + for (; __first != __last; ++__first) + { + if (*__first == '\n' || !pp_isspace (*__first)) + break; + } + + *__result = ' '; + } + else if (pp_isdigit (*__first)) + { + _InputIterator next_pos = skip_number (__first, __last); + lines += skip_number.lines; + std::copy (__first, next_pos, __result); + __first = next_pos; + } + else if (pp_isalpha (*__first) || *__first == '_') + { + _InputIterator name_begin = __first; + _InputIterator name_end = skip_identifier (__first, __last); + __first = name_end; // advance + + // search for the paste token + _InputIterator next = skip_blanks (__first, __last); + if (next != __last && *next == '#') + { + ++next; + if (next != __last && *next == '#') + __first = skip_blanks(++next, __last); + } + + // ### rewrite: not safe + + std::ptrdiff_t name_size; +#if defined(__SUNPRO_CC) + std::distance (name_begin, name_end, name_size); +#else + name_size = std::distance (name_begin, name_end); +#endif + assert (name_size >= 0 && name_size < 512); + + char name_buffer[512], *cp = name_buffer; + std::size_t __size = name_end - name_begin; + std::copy (name_begin, name_end, cp); + name_buffer[__size] = '\0'; + + pp_fast_string fast_name (name_buffer, name_size); + + if (std::string const *actual = resolve_formal (&fast_name)) + { + std::copy (actual->begin (), actual->end (), __result); + continue; + } + + static bool hide_next = false; // ### remove me + + pp_macro *macro = env.resolve (name_buffer, name_size); + if (! macro || macro->hidden || hide_next) + { + hide_next = ! strcmp (name_buffer, "defined"); + + if (__size == 8 && name_buffer [0] == '_' && name_buffer [1] == '_') + { + if (! strcmp (name_buffer, "__LINE__")) + { + char buf [16]; + char *end = buf + pp_snprintf (buf, 16, "%d", env.current_line + lines); + + std::copy (&buf [0], end, __result); + continue; + } + + else if (! strcmp (name_buffer, "__FILE__")) + { + __result++ = '"'; + std::copy (env.current_file.begin (), env.current_file.end (), __result); // ### quote + __result++ = '"'; + continue; + } + } + + std::copy (name_begin, name_end, __result); + continue; + } + + if (! macro->function_like) + { + pp_macro *m = 0; + + if (macro->definition) + { + macro->hidden = true; + + std::string __tmp; + __tmp.reserve (256); + + pp_macro_expander expand_macro (env); + expand_macro (macro->definition->begin (), macro->definition->end (), std::back_inserter (__tmp)); + generated_lines += expand_macro.lines; + + if (! __tmp.empty ()) + { + std::string::iterator __begin_id = skip_whitespaces (__tmp.begin (), __tmp.end ()); + std::string::iterator __end_id = skip_identifier (__begin_id, __tmp.end ()); + + if (__end_id == __tmp.end ()) + { + std::string __id; + __id.assign (__begin_id, __end_id); + + std::size_t x; +#if defined(__SUNPRO_CC) + std::distance (__begin_id, __end_id, x); +#else + x = std::distance (__begin_id, __end_id); +#endif + m = env.resolve (__id.c_str (), x); + } + + if (! m) + std::copy (__tmp.begin (), __tmp.end (), __result); + } + + macro->hidden = false; + } + + if (! m) + continue; + + macro = m; + } + + // function like macro + _InputIterator arg_it = skip_whitespaces (__first, __last); + + if (arg_it == __last || *arg_it != '(') + { + std::copy (name_begin, name_end, __result); + lines += skip_whitespaces.lines; + __first = arg_it; + continue; + } + + std::vector actuals; + actuals.reserve (5); + ++arg_it; // skip '(' + + pp_macro_expander expand_actual (env, frame); + + _InputIterator arg_end = skip_argument_variadics (actuals, macro, arg_it, __last); + if (arg_it != arg_end) + { + std::string actual (arg_it, arg_end); + actuals.resize (actuals.size() + 1); + actuals.back ().reserve (255); + expand_actual (actual.begin (), actual.end(), std::back_inserter (actuals.back())); + arg_it = arg_end; + } + + while (arg_it != __last && *arg_end == ',') + { + ++arg_it; // skip ',' + + arg_end = skip_argument_variadics (actuals, macro, arg_it, __last); + std::string actual (arg_it, arg_end); + actuals.resize (actuals.size() + 1); + actuals.back ().reserve (255); + expand_actual (actual.begin (), actual.end(), std::back_inserter (actuals.back())); + arg_it = arg_end; + } + + assert (arg_it != __last && *arg_it == ')'); + + ++arg_it; // skip ')' + __first = arg_it; + +#if 0 // ### enable me + assert ((macro->variadics && macro->formals.size () >= actuals.size ()) + || macro->formals.size() == actuals.size()); +#endif + + pp_frame frame (macro, &actuals); + pp_macro_expander expand_macro (env, &frame); + macro->hidden = true; + expand_macro (macro->definition->begin (), macro->definition->end (), __result); + macro->hidden = false; + generated_lines += expand_macro.lines; + } + else + *__result++ = *__first++; + } + + return __first; + } + + template + _InputIterator skip_argument_variadics (std::vector const &__actuals, pp_macro *__macro, + _InputIterator __first, _InputIterator __last) + { + _InputIterator arg_end = skip_argument (__first, __last); + + while (__macro->variadics && __first != arg_end && arg_end != __last && *arg_end == ',' + && (__actuals.size () + 1) == __macro->formals.size ()) + { + arg_end = skip_argument (++arg_end, __last); + } + + return arg_end; + } +}; + +} // namespace rpp + +#endif // PP_MACRO_EXPANDER_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/rpp/pp-macro.h b/generator_50/parser/rpp/pp-macro.h new file mode 100644 index 00000000..0b4d7b5e --- /dev/null +++ b/generator_50/parser/rpp/pp-macro.h @@ -0,0 +1,89 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef PP_MACRO_H +#define PP_MACRO_H + +namespace rpp { + +struct pp_macro +{ +#if defined (PP_WITH_MACRO_POSITION) + pp_fast_string const *file; +#endif + pp_fast_string const *name; + pp_fast_string const *definition; + std::vector formals; + + union + { + int unsigned state; + + struct + { + int unsigned hidden: 1; + int unsigned function_like: 1; + int unsigned variadics: 1; + }; + }; + + int lines; + pp_macro *next; + std::size_t hash_code; + + inline pp_macro(): +#if defined (PP_WITH_MACRO_POSITION) + file (0), +#endif + name (0), + definition (0), + state (0), + lines (0), + next (0), + hash_code (0) + {} +}; + +} // namespace rpp + +#endif // PP_MACRO_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/rpp/pp-main.cpp b/generator_50/parser/rpp/pp-main.cpp new file mode 100644 index 00000000..0676a2fe --- /dev/null +++ b/generator_50/parser/rpp/pp-main.cpp @@ -0,0 +1,340 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include +#include "pp.h" + +using namespace rpp; + +#ifndef GCC_MACHINE +# define GCC_MACHINE "i386-redhat-linux" +#endif + +#ifndef GCC_VERSION +# define GCC_VERSION "4.1.1" +#endif + +void usage () +{ + std::cerr << "usage: rpp file.cpp" << std::endl; + ::exit (EXIT_FAILURE); +} + +void dump_macros (pp_environment &env, pp &, std::ostream &__out) +{ + for (pp_environment::const_iterator it = env.first_macro (); it != env.last_macro (); ++it) + { + pp_macro const *m = *it; + + if (m->hidden) + continue; + + std::string id (m->name->begin (), m->name->end ()); + __out << "#define " << id; + + if (m->function_like) + { + __out << "("; + + for (std::size_t i = 0; i < m->formals.size (); ++i) + { + if (i != 0) + __out << ", "; + + pp_fast_string const *f = m->formals [i]; + std::string name (f->begin (), f->end ()); + __out << name; + } + + if (m->variadics) + __out << "..."; + + __out << ")"; + } + + __out << "\t"; + if (m->definition) + { + std::string def (m->definition->begin (), m->definition->end ()); + __out << def; + } + + __out << std::endl; + } +} + +int main (int, char *argv []) +{ + char const *input_file = 0; + char const *output_file = 0; + char const *include_pch_file = 0; + bool opt_help = false; + bool opt_dump_macros = false; + bool opt_pch = false; + + pp_environment env; + pp preprocess(env); + + std::string result; + result.reserve (20 * 1024); // 20K + + pp_output_iterator out (result); + pp_null_output_iterator null_out; + + preprocess.push_include_path ("/usr/include"); + preprocess.push_include_path ("/usr/lib/gcc/" GCC_MACHINE "/" GCC_VERSION "/include"); + + preprocess.push_include_path ("/usr/include/c++/" GCC_VERSION); + preprocess.push_include_path ("/usr/include/c++/" GCC_VERSION "/" GCC_MACHINE); + + std::string extra_args; + + while (const char *arg = *++argv) + { + if (arg [0] != '-') + input_file = arg; + + else if (! strcmp (arg, "-help")) + opt_help = true; + + else if (! strcmp (arg, "-dM")) + opt_dump_macros = true; + + else if (! strcmp (arg, "-pch")) + opt_pch = true; + + else if (! strcmp (arg, "-msse")) + { + pp_macro __macro; + __macro.name = pp_symbol::get ("__SSE__", 7); + env.bind (__macro.name, __macro); + + __macro.name = pp_symbol::get ("__MMX__", 7); + env.bind (__macro.name, __macro); + } + + else if (! strcmp (arg, "-include")) + { + if (argv [1]) + include_pch_file = *++argv; + } + + else if (! strncmp (arg, "-o", 2)) + { + arg += 2; + + if (! arg [0] && argv [1]) + arg = *++argv; + + if (arg) + output_file = arg; + } + + else if (! strncmp (arg, "-conf", 8)) + { + if (argv [1]) + preprocess.file (*++argv, null_out); + } + + else if (! strncmp (arg, "-I", 2)) + { + arg += 2; + + if (! arg [0] && argv [1]) + arg = *++argv; + + if (arg) + preprocess.push_include_path (arg); + } + + else if (! strncmp (arg, "-U", 2)) + { + arg += 2; + + if (! arg [0] && argv [1]) + arg = *++argv; + + if (arg) + { + env.unbind (arg, strlen (arg)); + } + } + + else if (! strncmp (arg, "-D", 2)) + { + arg += 2; + + if (! arg [0] && argv [1]) + arg = *++argv; + + if (arg) + { + pp_macro __macro; + + char const *end = arg; + char const *eq = 0; + + for (; *end; ++end) + { + if (*end == '=') + eq = end; + } + + if (eq != 0) + { + __macro.name = pp_symbol::get (arg, eq - arg); + __macro.definition = pp_symbol::get (eq + 1, end - (eq + 1)); + } + + else + { + __macro.name = pp_symbol::get (arg, end - arg); + __macro.definition = 0; + } + + env.bind (__macro.name, __macro); + } + } + else + { + extra_args += " "; + extra_args += arg; + } + } + + if (! input_file || opt_help) + { + usage (); + return EXIT_FAILURE; + } + + std::string __ifile (input_file); + bool is_c_file = false; + if (__ifile.size () > 2 && __ifile [__ifile.size () - 1] == 'c' && __ifile [__ifile.size () - 2] == '.') + { + is_c_file = true; + env.unbind ("__cplusplus", 11); + + pp_macro __macro; + __macro.name = pp_symbol::get ("__null"); + __macro.definition = pp_symbol::get ("((void*) 0)"); + env.bind (__macro.name, __macro); + + // turn off the pch + include_pch_file = 0; + } + else if (include_pch_file) + { + std::string __pch (include_pch_file); + __pch += ".gch/c++.conf"; + + //std::cerr << "*** pch file " << __pch << std::endl; + preprocess.file (__pch, null_out); + } + + if (opt_dump_macros) + { + preprocess.file (input_file, null_out); + dump_macros (env, preprocess, std::cout); + return EXIT_SUCCESS; + } + + preprocess.file (input_file, out); + + if (opt_pch) + { + if (! output_file) + { + std::cerr << "*** WARNING expected a file name" << std::endl; + return EXIT_FAILURE; + } + + std::string __conf_file (output_file); + __conf_file += ".conf"; + + std::ofstream __out; + __out.open (__conf_file.c_str ()); + dump_macros (env, preprocess, __out); + __out.close (); + + std::string __pp_file (output_file); + __pp_file += ".i"; + + __out.open (__pp_file.c_str ()); + __out.write (result.c_str (), result.size ()); + __out.close (); + return EXIT_SUCCESS; + } + + std::ostream *__out = &std::cout; + std::ofstream __ofile; + + if (output_file) + { + std::string __output_file_name (output_file); + __ofile.open (output_file); + __out = &__ofile; + } + + if (include_pch_file) + { + std::string __pch (include_pch_file); + __pch += ".gch/c++.i"; + + std::ifstream __in (__pch.c_str ()); + + char buffer [1024]; + while (__in.read (buffer, 1024)) + __out->write (buffer, 1024); + + __in.close (); + } + + __out->write (result.c_str (), result.size ()); + + if (output_file) + __ofile.close (); + + return EXIT_SUCCESS; +} + +// kate: space-indent on; indent-width 2; replace-tabs on; + diff --git a/generator_50/parser/rpp/pp-qt-configuration b/generator_50/parser/rpp/pp-qt-configuration new file mode 100644 index 00000000..dfdd30ff --- /dev/null +++ b/generator_50/parser/rpp/pp-qt-configuration @@ -0,0 +1,24 @@ +#define __cplusplus 1 + +#define __STDC__ + +// Qt +#define QOBJECTDEFS_H + +// not yet supported +#define Q_SLOTS slots +#define Q_SIGNALS signals +#define Q_FLAGS(a) +#define Q_PRIVATE_SLOT(a, b) +#define Q_DECLARE_INTERFACE(a,b) +#define Q_INTERFACES(a) +#define Q_GADGET +#define Q_OVERRIDE(a) +#define Q_OS_OS2 +#define Q_NO_USING_KEYWORD + +// There are symbols in Qt that exist in Debug but +// not in release +#define QT_NO_DEBUG + +#define QT_JAMBI_RUN diff --git a/generator_50/parser/rpp/pp-scanner.h b/generator_50/parser/rpp/pp-scanner.h new file mode 100644 index 00000000..32d94cd4 --- /dev/null +++ b/generator_50/parser/rpp/pp-scanner.h @@ -0,0 +1,367 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef PP_SCANNER_H +#define PP_SCANNER_H + +namespace rpp { + +struct pp_skip_blanks +{ + int lines; + + template + _InputIterator operator () (_InputIterator __first, _InputIterator __last) + { + lines = 0; + + for (; __first != __last; lines += (*__first != '\n' ? 0 : 1), ++__first) + { + if (*__first == '\\') + { + _InputIterator __begin = __first; + ++__begin; + + if (__begin != __last && *__begin == '\n') + ++__first; + else + break; + } + else if (*__first == '\n' || !pp_isspace (*__first)) + break; + } + + return __first; + } +}; + +struct pp_skip_whitespaces +{ + int lines; + + template + _InputIterator operator () (_InputIterator __first, _InputIterator __last) + { + lines = 0; + + for (; __first != __last; lines += (*__first != '\n' ? 0 : 1), ++__first) + { + if (! pp_isspace (*__first)) + break; + } + + return __first; + } +}; + +struct pp_skip_comment_or_divop +{ + int lines; + + template + _InputIterator operator () (_InputIterator __first, _InputIterator __last) + { + enum { + MAYBE_BEGIN, + BEGIN, + MAYBE_END, + END, + IN_COMMENT, + IN_CXX_COMMENT + } state (MAYBE_BEGIN); + + lines = 0; + + for (; __first != __last; lines += (*__first != '\n' ? 0 : 1), ++__first) + { + switch (state) + { + default: + assert (0); + break; + + case MAYBE_BEGIN: + if (*__first != '/') + return __first; + + state = BEGIN; + break; + + case BEGIN: + if (*__first == '*') + state = IN_COMMENT; + else if (*__first == '/') + state = IN_CXX_COMMENT; + else + return __first; + break; + + case IN_COMMENT: + if (*__first == '*') + state = MAYBE_END; + break; + + case IN_CXX_COMMENT: + if (*__first == '\n') + return __first; + break; + + case MAYBE_END: + if (*__first == '/') + state = END; + else if (*__first != '*') + state = IN_COMMENT; + break; + + case END: + return __first; + } + } + + return __first; + } +}; + +struct pp_skip_identifier +{ + int lines; + + template + _InputIterator operator () (_InputIterator __first, _InputIterator __last) + { + lines = 0; + + for (; __first != __last; lines += (*__first != '\n' ? 0 : 1), ++__first) + { + if (! pp_isalnum (*__first) && *__first != '_') + break; + } + + return __first; + } +}; + +struct pp_skip_number +{ + int lines; + + template + _InputIterator operator () (_InputIterator __first, _InputIterator __last) + { + lines = 0; + + for (; __first != __last; lines += (*__first != '\n' ? 0 : 1), ++__first) + { + if (! pp_isalnum (*__first) && *__first != '.') + break; + } + + return __first; + } +}; + +struct pp_skip_string_literal +{ + int lines; + + template + _InputIterator operator () (_InputIterator __first, _InputIterator __last) + { + enum { + BEGIN, + IN_STRING, + QUOTE, + END + } state (BEGIN); + + lines = 0; + + for (; __first != __last; lines += (*__first != '\n' ? 0 : 1), ++__first) + { + switch (state) + { + default: + assert (0); + break; + + case BEGIN: + if (*__first != '\"') + return __first; + state = IN_STRING; + break; + + case IN_STRING: + assert (*__first != '\n'); + + if (*__first == '\"') + state = END; + else if (*__first == '\\') + state = QUOTE; + break; + + case QUOTE: + state = IN_STRING; + break; + + case END: + return __first; + } + } + + return __first; + } +}; + +struct pp_skip_char_literal +{ + int lines; + + template + _InputIterator operator () (_InputIterator __first, _InputIterator __last) + { + enum { + BEGIN, + IN_STRING, + QUOTE, + END + } state (BEGIN); + + lines = 0; + + for (; state != END && __first != __last; lines += (*__first != '\n' ? 0 : 1), ++__first) + { + switch (state) + { + default: + assert (0); + break; + + case BEGIN: + if (*__first != '\'') + return __first; + state = IN_STRING; + break; + + case IN_STRING: + assert (*__first != '\n'); + + if (*__first == '\'') + state = END; + else if (*__first == '\\') + state = QUOTE; + break; + + case QUOTE: + state = IN_STRING; + break; + } + } + + return __first; + } +}; + +struct pp_skip_argument +{ + pp_skip_identifier skip_number; + pp_skip_identifier skip_identifier; + pp_skip_string_literal skip_string_literal; + pp_skip_char_literal skip_char_literal; + pp_skip_comment_or_divop skip_comment_or_divop; + int lines; + + template + _InputIterator operator () (_InputIterator __first, _InputIterator __last) + { + int depth = 0; + lines = 0; + + while (__first != __last) + { + if (!depth && (*__first == ')' || *__first == ',')) + break; + else if (*__first == '(') + ++depth, ++__first; + else if (*__first == ')') + --depth, ++__first; + else if (*__first == '\"') + { + __first = skip_string_literal (__first, __last); + lines += skip_string_literal.lines; + } + else if (*__first == '\'') + { + __first = skip_char_literal (__first, __last); + lines += skip_char_literal.lines; + } + else if (*__first == '/') + { + __first = skip_comment_or_divop (__first, __last); + lines += skip_comment_or_divop.lines; + } + else if (pp_isalpha (*__first) || *__first == '_') + { + __first = skip_identifier (__first, __last); + lines += skip_identifier.lines; + } + else if (pp_isdigit (*__first)) + { + __first = skip_number (__first, __last); + lines += skip_number.lines; + } + else if (*__first == '\n') + { + ++__first; + ++lines; + } + else + ++__first; + } + + return __first; + } +}; + +} // namespace rpp + +#endif // PP_SCANNER_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/rpp/pp-string.h b/generator_50/parser/rpp/pp-string.h new file mode 100644 index 00000000..f0c3d4c4 --- /dev/null +++ b/generator_50/parser/rpp/pp-string.h @@ -0,0 +1,113 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef PP_STRING_H +#define PP_STRING_H + +namespace rpp { + +template +class pp_string +{ + typedef std::char_traits<_CharT> traits_type; + typedef std::size_t size_type; + + _CharT const *_M_begin; + std::size_t _M_size; + +public: + inline pp_string (): + _M_begin (0), _M_size(0) {} + + explicit pp_string (std::string const &__s): + _M_begin (__s.c_str ()), _M_size (__s.size ()) {} + + inline pp_string (_CharT const *__begin, std::size_t __size): + _M_begin (__begin), _M_size (__size) {} + + inline _CharT const *begin () const { return _M_begin; } + inline _CharT const *end () const { return _M_begin + _M_size; } + + inline _CharT at (std::size_t index) const { return _M_begin [index]; } + + inline std::size_t size () const { return _M_size; } + + inline int compare (pp_string const &__other) const + { + size_type const __size = this->size(); + size_type const __osize = __other.size(); + size_type const __len = std::min (__size, __osize); + + int __r = traits_type::compare (_M_begin, __other._M_begin, __len); + if (!__r) + __r = (int) (__size - __osize); + + return __r; + } + + inline bool operator == (pp_string const &__other) const + { return compare (__other) == 0; } + + inline bool operator != (pp_string const &__other) const + { return compare (__other) != 0; } + + inline bool operator < (pp_string const &__other) const + { return compare (__other) < 0; } + + inline bool operator == (char const *s) const + { + std::size_t n = strlen (s); + + if (n != _M_size) + return false; + + return ! strncmp (_M_begin, s, n); + } + + inline bool operator != (char const *s) const + { return ! operator == (s); } +}; + +} // namespace rpp + +#endif // PP_STRING_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/rpp/pp-symbol.h b/generator_50/parser/rpp/pp-symbol.h new file mode 100644 index 00000000..b078b665 --- /dev/null +++ b/generator_50/parser/rpp/pp-symbol.h @@ -0,0 +1,101 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef PP_SYMBOL_H +#define PP_SYMBOL_H + +namespace rpp { + +class pp_symbol +{ + static rxx_allocator &allocator_instance () + { + static rxx_allocator__allocator; + return __allocator; + } + +public: + static int &N() + { + static int __N; + return __N; + } + + static pp_fast_string const *get (char const *__data, std::size_t __size) + { + ++N(); + char *data = allocator_instance ().allocate (__size + 1); + memcpy(data, __data, __size); + data[__size] = '\0'; + + char *where = allocator_instance ().allocate (sizeof (pp_fast_string)); + return new (where) pp_fast_string (data, __size); + } + + template + static pp_fast_string const *get (_InputIterator __first, _InputIterator __last) + { + ++N(); + std::ptrdiff_t __size; +#if defined(__SUNPRO_CC) + std::distance (__first, __last, __size); +#else + __size = std::distance (__first, __last); +#endif + assert (__size >= 0 && __size < 512); + + char *data = allocator_instance ().allocate (__size + 1); + std::copy (__first, __last, data); + data[__size] = '\0'; + + char *where = allocator_instance ().allocate (sizeof (pp_fast_string)); + return new (where) pp_fast_string (data, __size); + } + + static pp_fast_string const *get(std::string const &__s) + { return get (__s.c_str (), __s.size ()); } +}; + +} // namespace rpp + +#endif // PP_SYMBOL_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/rpp/pp.h b/generator_50/parser/rpp/pp.h new file mode 100644 index 00000000..b7d04210 --- /dev/null +++ b/generator_50/parser/rpp/pp.h @@ -0,0 +1,107 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef PP_H +#define PP_H + +#if defined(_WIN64) || defined(WIN64) || defined(__WIN64__) \ + || defined(_WIN32) || defined(WIN32) || defined(__WIN32__) +# define PP_OS_WIN +#endif + +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#ifdef HAVE_MMAP +# include +#endif + +#include +#include + +#if (_MSC_VER >= 1400) +# define FILENO _fileno +#else +# define FILENO fileno +#endif + +#if defined (PP_OS_WIN) +# define PATH_SEPARATOR '\\' +#else +# define PATH_SEPARATOR '/' +#endif + +#if defined (RPP_JAMBI) +# include "rxx_allocator.h" +#else +# include "rpp-allocator.h" +#endif + +#if defined (_MSC_VER) +# define pp_snprintf _snprintf +#else +# define pp_snprintf snprintf +#endif + +#include "pp-fwd.h" +#include "pp-cctype.h" +#include "pp-string.h" +#include "pp-symbol.h" +#include "pp-internal.h" +#include "pp-iterator.h" +#include "pp-macro.h" +#include "pp-environment.h" +#include "pp-scanner.h" +#include "pp-macro-expander.h" +#include "pp-engine.h" +#include "pp-engine-bits.h" + +#endif // PP_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/rpp/preprocessor.cpp b/generator_50/parser/rpp/preprocessor.cpp new file mode 100644 index 00000000..cd58bcd6 --- /dev/null +++ b/generator_50/parser/rpp/preprocessor.cpp @@ -0,0 +1,176 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "preprocessor.h" + +#include + +// register callback for include hooks +static void includeFileHook(const std::string &, const std::string &, FILE *); + +#define PP_HOOK_ON_FILE_INCLUDED(A, B, C) includeFileHook(A, B, C) +#include "pp.h" + +using namespace rpp; + +#include + +class PreprocessorPrivate +{ +public: + QByteArray result; + pp_environment env; + QStringList includePaths; + + void initPP(pp &proc) + { + foreach(QString path, includePaths) + proc.push_include_path(path.toStdString()); + } +}; + +QHash includedFiles; + +void includeFileHook(const std::string &fileName, const std::string &filePath, FILE *) +{ + includedFiles[QString::fromStdString(fileName)].append(QString::fromStdString(filePath)); +} + +Preprocessor::Preprocessor() +{ + d = new PreprocessorPrivate; + includedFiles.clear(); +} + +Preprocessor::~Preprocessor() +{ + delete d; +} + +void Preprocessor::processFile(const QString &fileName) +{ + pp proc(d->env); + d->initPP(proc); + + d->result.reserve(d->result.size() + 20 * 1024); + + d->result += "# 1 \"" + fileName.toLatin1() + "\"\n"; // ### REMOVE ME + proc.file(fileName.toLocal8Bit().constData(), std::back_inserter(d->result)); +} + +void Preprocessor::processString(const QByteArray &str) +{ + pp proc(d->env); + d->initPP(proc); + + proc(str.begin(), str.end(), std::back_inserter(d->result)); +} + +QByteArray Preprocessor::result() const +{ + return d->result; +} + +void Preprocessor::addIncludePaths(const QStringList &includePaths) +{ + d->includePaths += includePaths; +} + +QStringList Preprocessor::macroNames() const +{ + QStringList macros; + + pp_environment::const_iterator it = d->env.first_macro(); + while (it != d->env.last_macro()) { + const pp_macro *m = *it; + macros += QString::fromLatin1(m->name->begin(), m->name->size()); + ++it; + } + + return macros; +} + +QList Preprocessor::macros() const +{ + QList items; + + pp_environment::const_iterator it = d->env.first_macro(); + while (it != d->env.last_macro()) { + const pp_macro *m = *it; + MacroItem item; + item.name = QString::fromLatin1(m->name->begin(), m->name->size()); + item.definition = QString::fromLatin1(m->definition->begin(), + m->definition->size()); + for (size_t i = 0; i < m->formals.size(); ++i) { + item.parameters += QString::fromLatin1(m->formals[i]->begin(), + m->formals[i]->size()); + } + item.isFunctionLike = m->function_like; + +#ifdef PP_WITH_MACRO_POSITION + item.fileName = QString::fromLatin1(m->file->begin(), m->file->size()); +#endif + items += item; + + ++it; + } + + return items; +} + +/* +int main() +{ + Preprocessor pp; + + QStringList paths; + paths << "/usr/include"; + pp.addIncludePaths(paths); + + pp.processFile("pp-configuration"); + pp.processFile("/usr/include/stdio.h"); + + qDebug() << pp.result(); + + return 0; +} +*/ + diff --git a/generator_50/parser/rpp/preprocessor.h b/generator_50/parser/rpp/preprocessor.h new file mode 100644 index 00000000..93231aeb --- /dev/null +++ b/generator_50/parser/rpp/preprocessor.h @@ -0,0 +1,84 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef PREPROCESSOR_H +#define PREPROCESSOR_H + +#include +#include +#include + +class QByteArray; +class PreprocessorPrivate; + +class Preprocessor +{ +public: + Preprocessor(); + ~Preprocessor(); + + void processFile(const QString &fileName); + void processString(const QByteArray &str); + + void addIncludePaths(const QStringList &includePaths); + + QByteArray result() const; + + QStringList macroNames() const; + + struct MacroItem + { + QString name; + QStringList parameters; + QString definition; + bool isFunctionLike; +#ifdef PP_WITH_MACRO_POSITION + QString fileName; +#endif + }; + QList macros() const; + +private: + Q_DISABLE_COPY(Preprocessor) + PreprocessorPrivate *d; +}; + +#endif diff --git a/generator_50/parser/rpp/rpp.pri b/generator_50/parser/rpp/rpp.pri new file mode 100644 index 00000000..8468bcf9 --- /dev/null +++ b/generator_50/parser/rpp/rpp.pri @@ -0,0 +1,20 @@ +SOURCES += \ + $$RXXPATH/rpp/preprocessor.cpp + +HEADERS += \ + $$RXXPATH/rpp/pp-cctype.h \ + $$RXXPATH/rpp/pp-engine-bits.h \ + $$RXXPATH/rpp/pp-engine.h \ + $$RXXPATH/rpp/pp-environment.h \ + $$RXXPATH/rpp/pp-fwd.h \ + $$RXXPATH/rpp/pp-internal.h \ + $$RXXPATH/rpp/pp-iterator.h \ + $$RXXPATH/rpp/pp-macro-expander.h \ + $$RXXPATH/rpp/pp-macro.h \ + $$RXXPATH/rpp/pp-scanner.h \ + $$RXXPATH/rpp/pp-string.h \ + $$RXXPATH/rpp/pp-symbol.h \ + $$RXXPATH/rpp/pp.h \ + $$RXXPATH/rpp/preprocessor.h + +INCLUDEPATH += $$PWD $$RXXPATH/rpp diff --git a/generator_50/parser/rxx.pri b/generator_50/parser/rxx.pri new file mode 100644 index 00000000..867deb7c --- /dev/null +++ b/generator_50/parser/rxx.pri @@ -0,0 +1,48 @@ + +isEmpty(RXXPATH):RXXPATH = $$PWD + +INCLUDEPATH += $$RXXPATH + +DEFINES += RXX_ALLOCATOR_INIT_0 + +HEADERS += $$RXXPATH/ast.h \ + $$RXXPATH/lexer.h \ + $$RXXPATH/list.h \ + $$RXXPATH/parser.h \ + $$RXXPATH/rxx_allocator.h \ + $$RXXPATH/rpp-allocator.h \ + $$RXXPATH/smallobject.h \ + $$RXXPATH/tokens.h \ + $$RXXPATH/symbol.h \ + $$RXXPATH/control.h \ + $$RXXPATH/visitor.h \ + $$RXXPATH/default_visitor.h \ + $$RXXPATH/dumptree.h \ + $$RXXPATH/binder.h \ + $$RXXPATH/codemodel.h \ + $$RXXPATH/codemodel_pointer.h \ + $$RXXPATH/codemodel_fwd.h \ + $$RXXPATH/type_compiler.h \ + $$RXXPATH/name_compiler.h \ + $$RXXPATH/declarator_compiler.h \ + $$RXXPATH/class_compiler.h \ + $$RXXPATH/codemodel_finder.h \ + $$RXXPATH/compiler_utils.h +SOURCES += $$RXXPATH/ast.cpp \ + $$RXXPATH/lexer.cpp \ + $$RXXPATH/list.cpp \ + $$RXXPATH/parser.cpp \ + $$RXXPATH/smallobject.cpp \ + $$RXXPATH/control.cpp \ + $$RXXPATH/visitor.cpp \ + $$RXXPATH/default_visitor.cpp \ + $$RXXPATH/dumptree.cpp \ + $$RXXPATH/tokens.cpp \ + $$RXXPATH/binder.cpp \ + $$RXXPATH/codemodel.cpp \ + $$RXXPATH/type_compiler.cpp \ + $$RXXPATH/name_compiler.cpp \ + $$RXXPATH/declarator_compiler.cpp \ + $$RXXPATH/class_compiler.cpp \ + $$RXXPATH/codemodel_finder.cpp \ + $$RXXPATH/compiler_utils.cpp diff --git a/generator_50/parser/rxx.pro b/generator_50/parser/rxx.pro new file mode 100644 index 00000000..5f242f9c --- /dev/null +++ b/generator_50/parser/rxx.pro @@ -0,0 +1,12 @@ +# File generated by kdevelop's qmake manager. +# ------------------------------------------- +# Subdir relative project main directory: . +# Target is an application: r++0 + +include(rxx.pri) +SOURCES += main.cpp + +TEMPLATE = app +QT = core +TARGET = r++0 +CONFIG += debug_and_release diff --git a/generator_50/parser/rxx_allocator.h b/generator_50/parser/rxx_allocator.h new file mode 100644 index 00000000..87ec7e81 --- /dev/null +++ b/generator_50/parser/rxx_allocator.h @@ -0,0 +1,132 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef RXX_ALLOCATOR_H +#define RXX_ALLOCATOR_H + +#include +#include +#include +#include + +template class rxx_allocator { +public: + typedef _Tp value_type; + typedef _Tp* pointer; + typedef const _Tp* const_pointer; + typedef _Tp& reference; + typedef const _Tp& const_reference; + typedef std::size_t size_type; + typedef std::ptrdiff_t difference_type; + + static const size_type max_block_count = size_type(-1); + static const size_type _S_block_size = 1 << 16; // 64K + + rxx_allocator() { + _M_block_index = max_block_count; + _M_current_index = 0; + _M_storage = 0; + _M_current_block = 0; + } + + ~rxx_allocator() { + for (size_type index = 0; index < _M_block_index + 1; ++index) + delete[] _M_storage[index]; + + ::free(_M_storage); + } + + pointer address(reference __val) { return &__val; } + const_pointer address(const_reference __val) const { return &__val; } + + pointer allocate(size_type __n, const void* = 0) { + const size_type bytes = __n * sizeof(_Tp); + + if (_M_current_block == 0 + || _S_block_size < _M_current_index + bytes) + { + ++_M_block_index; + + _M_storage = reinterpret_cast + (::realloc(_M_storage, sizeof(char*) * (1 + _M_block_index))); + + _M_current_block = _M_storage[_M_block_index] = reinterpret_cast + (new char[_S_block_size]); + +#if defined(RXX_ALLOCATOR_INIT_0) // ### make it a policy + ::memset(_M_current_block, 0, _S_block_size); +#endif + _M_current_index = 0; + } + + pointer p = reinterpret_cast + (_M_current_block + _M_current_index); + + _M_current_index += bytes; + + return p; + } + + void deallocate(pointer __p, size_type __n) {} + + size_type max_size() const { return size_type(-1) / sizeof(_Tp); } + + void contruct(pointer __p, const_reference __val) { new (__p) _Tp(__val); } + void destruct(pointer __p) { __p->~_Tp(); } + +private: + template struct rebind { + typedef rxx_allocator<_Tp1> other; + }; + + template rxx_allocator(const rxx_allocator<_Tp1> &__o) {} + +private: + size_type _M_block_index; + size_type _M_current_index; + char *_M_current_block; + char **_M_storage; +}; + +#endif // RXX_ALLOCATOR_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/smallobject.cpp b/generator_50/parser/smallobject.cpp new file mode 100644 index 00000000..4e511be4 --- /dev/null +++ b/generator_50/parser/smallobject.cpp @@ -0,0 +1,45 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#include "smallobject.h" + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/smallobject.h b/generator_50/parser/smallobject.h new file mode 100644 index 00000000..1295c304 --- /dev/null +++ b/generator_50/parser/smallobject.h @@ -0,0 +1,64 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef SMALLOBJECT_H +#define SMALLOBJECT_H + +#include "rxx_allocator.h" +#include + +class pool +{ + rxx_allocator __alloc; + +public: + inline void *allocate(std::size_t __size); +}; + +inline void *pool::allocate(std::size_t __size) +{ + return __alloc.allocate(__size); +} + +#endif + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/symbol.h b/generator_50/parser/symbol.h new file mode 100644 index 00000000..f9fe1372 --- /dev/null +++ b/generator_50/parser/symbol.h @@ -0,0 +1,142 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef SYMBOL_H +#define SYMBOL_H + +#include +#include + +#include +#include + +struct NameSymbol +{ + const char *data; + std::size_t count; + + inline QString as_string() const + { + return QString::fromUtf8(data, (int) count); + } + + inline bool operator == (const NameSymbol &other) const + { + return count == other.count + && std::strncmp(data, other.data, count) == 0; + } + +protected: + inline NameSymbol() {} + inline NameSymbol(const char *d, std::size_t c) + : data(d), count(c) {} + +private: + void operator = (const NameSymbol &); + + friend class NameTable; +}; + +inline uint qHash(const NameSymbol &r) +{ + uint hash_value = 0; + + for (std::size_t i=0; i &r) +{ + uint hash_value = 0; + + for (std::size_t i=0; i KeyType; + typedef QHash ContainerType; + +public: + NameTable() {} + + ~NameTable() + { + qDeleteAll(_M_storage); + } + + inline const NameSymbol *findOrInsert(const char *str, std::size_t len) + { + KeyType key(str, len); + + NameSymbol *name = _M_storage.value(key); + if (!name) + { + name = new NameSymbol(str, len); + _M_storage.insert(key, name); + } + + return name; + } + + inline std::size_t count() const + { + return _M_storage.size(); + } + +private: + ContainerType _M_storage; + +private: + NameTable(const NameTable &other); + void operator = (const NameTable &other); +}; + +#endif // SYMBOL_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/tokens.cpp b/generator_50/parser/tokens.cpp new file mode 100644 index 00000000..79c87c53 --- /dev/null +++ b/generator_50/parser/tokens.cpp @@ -0,0 +1,272 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#include + +#include "tokens.h" + +static char const * const _S_token_names[] = { + "K_DCOP", + "Q_OBJECT", + "Q_PROPERTY", + "__attribute__", + "__typeof", + "and", + "and_eq", + "arrow", + "asm", + "assign", + "auto", + "bitand", + "bitor", + "bool", + "break", + "case", + "catch", + "char", + "char_literal", + "class", + "comment", + "compl", + "concat", + "const", + "const_cast", + "continue", + "decr", + "default", + "delete", + "do", + "double", + "dynamic_cast", + "ellipsis", + "else", + "emit", + "enum", + "eq", + "explicit", + "export", + "extern", + "false", + "float", + "for", + "friend", + "geq", + "goto", + "identifier", + "if", + "incr", + "inline", + "int", + "k_dcop", + "k_dcop_signals", + "leq", + "long", + "mutable", + "namespace", + "new", + "not", + "not_eq", + "number_literal", + "operator", + "or", + "or_eq", + "preproc", + "private", + "protected", + "ptrmem", + "public", + "register", + "reinterpret_cast", + "return", + "scope", + "shift", + "short", + "signals", + "signed", + "sizeof", + "slots", + "static", + "static_cast", + "string_literal", + "struct", + "switch", + "template", + "this", + "throw", + "true", + "try", + "typedef", + "typeid", + "typename", + "union", + "unsigned", + "using", + "virtual", + "void", + "volatile", + "wchar_t", + "while", + "whitespaces", + "xor", + "xor_eq", + "Q_ENUMS" +}; + +static char _S_printable[][2] = { + { char(32), '\0' }, + { char(33), '\0' }, + { char(34), '\0' }, + { char(35), '\0' }, + { char(36), '\0' }, + { char(37), '\0' }, + { char(38), '\0' }, + { char(39), '\0' }, + { char(40), '\0' }, + { char(41), '\0' }, + { char(42), '\0' }, + { char(43), '\0' }, + { char(44), '\0' }, + { char(45), '\0' }, + { char(46), '\0' }, + { char(47), '\0' }, + { char(48), '\0' }, + { char(49), '\0' }, + { char(50), '\0' }, + { char(51), '\0' }, + { char(52), '\0' }, + { char(53), '\0' }, + { char(54), '\0' }, + { char(55), '\0' }, + { char(56), '\0' }, + { char(57), '\0' }, + { char(58), '\0' }, + { char(59), '\0' }, + { char(60), '\0' }, + { char(61), '\0' }, + { char(62), '\0' }, + { char(63), '\0' }, + { char(64), '\0' }, + { char(65), '\0' }, + { char(66), '\0' }, + { char(67), '\0' }, + { char(68), '\0' }, + { char(69), '\0' }, + { char(70), '\0' }, + { char(71), '\0' }, + { char(72), '\0' }, + { char(73), '\0' }, + { char(74), '\0' }, + { char(75), '\0' }, + { char(76), '\0' }, + { char(77), '\0' }, + { char(78), '\0' }, + { char(79), '\0' }, + { char(80), '\0' }, + { char(81), '\0' }, + { char(82), '\0' }, + { char(83), '\0' }, + { char(84), '\0' }, + { char(85), '\0' }, + { char(86), '\0' }, + { char(87), '\0' }, + { char(88), '\0' }, + { char(89), '\0' }, + { char(90), '\0' }, + { char(91), '\0' }, + { char(92), '\0' }, + { char(93), '\0' }, + { char(94), '\0' }, + { char(95), '\0' }, + { char(96), '\0' }, + { char(97), '\0' }, + { char(98), '\0' }, + { char(99), '\0' }, + { char(100), '\0' }, + { char(101), '\0' }, + { char(102), '\0' }, + { char(103), '\0' }, + { char(104), '\0' }, + { char(105), '\0' }, + { char(106), '\0' }, + { char(107), '\0' }, + { char(108), '\0' }, + { char(109), '\0' }, + { char(110), '\0' }, + { char(111), '\0' }, + { char(112), '\0' }, + { char(113), '\0' }, + { char(114), '\0' }, + { char(115), '\0' }, + { char(116), '\0' }, + { char(117), '\0' }, + { char(118), '\0' }, + { char(119), '\0' }, + { char(120), '\0' }, + { char(121), '\0' }, + { char(122), '\0' }, + { char(123), '\0' }, + { char(124), '\0' }, + { char(125), '\0' }, + { char(126), '\0' }, + { char(127), '\0' }, +}; + +char const *token_name(int token) +{ + if (token == 0) + { + return "eof"; + } + else if (token >= 32 && token <= 127) + { + return _S_printable[token - 32]; + } + else if (token >= 1000) + { + return _S_token_names[token - 1000]; + } + + Q_ASSERT(0); + return 0; +} + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/tokens.h b/generator_50/parser/tokens.h new file mode 100644 index 00000000..c2b5bc9c --- /dev/null +++ b/generator_50/parser/tokens.h @@ -0,0 +1,163 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef TOKENS_H +#define TOKENS_H + +enum TOKEN_KIND +{ + Token_EOF = 0, + + Token_K_DCOP = 1000, + Token_Q_OBJECT, + Token_Q_PROPERTY, + Token___attribute__, + Token___typeof, + Token_and, + Token_and_eq, + Token_arrow, + Token_asm, + Token_assign, + Token_auto, + Token_bitand, + Token_bitor, + Token_bool, + Token_break, + Token_case, + Token_catch, + Token_char, + Token_char_literal, + Token_class, + Token_comment, + Token_compl, + Token_concat, + Token_const, + Token_const_cast, + Token_continue, + Token_decr, + Token_default, + Token_delete, + Token_do, + Token_double, + Token_dynamic_cast, + Token_ellipsis, + Token_else, + Token_emit, + Token_enum, + Token_eq, + Token_explicit, + Token_export, + Token_extern, + Token_false, + Token_float, + Token_for, + Token_friend, + Token_geq, + Token_goto, + Token_identifier, + Token_if, + Token_incr, + Token_inline, + Token_int, + Token_k_dcop, + Token_k_dcop_signals, + Token_leq, + Token_long, + Token_mutable, + Token_namespace, + Token_new, + Token_not, + Token_not_eq, + Token_number_literal, + Token_operator, + Token_or, + Token_or_eq, + Token_preproc, + Token_private, + Token_protected, + Token_ptrmem, + Token_public, + Token_register, + Token_reinterpret_cast, + Token_return, + Token_scope, + Token_shift, + Token_short, + Token_signals, + Token_signed, + Token_sizeof, + Token_slots, + Token_static, + Token_static_cast, + Token_string_literal, + Token_struct, + Token_switch, + Token_template, + Token_this, + Token_throw, + Token_true, + Token_try, + Token_typedef, + Token_typeid, + Token_typename, + Token_union, + Token_unsigned, + Token_using, + Token_virtual, + Token_void, + Token_volatile, + Token_wchar_t, + Token_while, + Token_whitespaces, + Token_xor, + Token_xor_eq, + Token_Q_ENUMS, + Token_Q_INVOKABLE, + + TOKEN_KIND_COUNT +}; + +char const *token_name(int token); + +#endif + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/type_compiler.cpp b/generator_50/parser/type_compiler.cpp new file mode 100644 index 00000000..4a73a744 --- /dev/null +++ b/generator_50/parser/type_compiler.cpp @@ -0,0 +1,155 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ + + +#include "type_compiler.h" +#include "name_compiler.h" +#include "lexer.h" +#include "symbol.h" +#include "tokens.h" +#include "binder.h" + +#include + +TypeCompiler::TypeCompiler(Binder *binder) + : _M_binder (binder), _M_token_stream(binder->tokenStream ()) +{ +} + +void TypeCompiler::run(TypeSpecifierAST *node) +{ + _M_type.clear(); + _M_cv.clear(); + + visit(node); + + if (node && node->cv) + { + const ListNode *it = node->cv->toFront(); + const ListNode *end = it; + do + { + int kind = _M_token_stream->kind(it->element); + if (! _M_cv.contains(kind)) + _M_cv.append(kind); + + it = it->next; + } + while (it != end); + } +} + +void TypeCompiler::visitClassSpecifier(ClassSpecifierAST *node) +{ + visit(node->name); +} + +void TypeCompiler::visitEnumSpecifier(EnumSpecifierAST *node) +{ + visit(node->name); +} + +void TypeCompiler::visitElaboratedTypeSpecifier(ElaboratedTypeSpecifierAST *node) +{ + visit(node->name); +} + +void TypeCompiler::visitSimpleTypeSpecifier(SimpleTypeSpecifierAST *node) +{ + if (const ListNode *it = node->integrals) + { + it = it->toFront(); + const ListNode *end = it; + QString current_item; + do + { + std::size_t token = it->element; + current_item += token_name(_M_token_stream->kind(token)); + current_item += " "; + it = it->next; + } + while (it != end); + _M_type += current_item.trimmed(); + } + else if (node->type_of) + { + // ### implement me + _M_type += QLatin1String("typeof<...>"); + } + + visit(node->name); +} + +void TypeCompiler::visitName(NameAST *node) +{ + NameCompiler name_cc(_M_binder); + name_cc.run(node); + _M_type = name_cc.qualifiedName(); +} + +QStringList TypeCompiler::cvString() const +{ + QStringList lst; + + foreach (int q, cv()) + { + if (q == Token_const) + lst.append(QLatin1String("const")); + else if (q == Token_volatile) + lst.append(QLatin1String("volatile")); + } + + return lst; +} + +bool TypeCompiler::isConstant() const +{ + return _M_cv.contains(Token_const); +} + +bool TypeCompiler::isVolatile() const +{ + return _M_cv.contains(Token_volatile); +} + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/type_compiler.h b/generator_50/parser/type_compiler.h new file mode 100644 index 00000000..87e51ca9 --- /dev/null +++ b/generator_50/parser/type_compiler.h @@ -0,0 +1,87 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef TYPE_COMPILER_H +#define TYPE_COMPILER_H + +#include "default_visitor.h" + +#include +#include +#include + +class TokenStream; +class Binder; + +class TypeCompiler: protected DefaultVisitor +{ +public: + TypeCompiler(Binder *binder); + + inline QStringList qualifiedName() const { return _M_type; } + inline QList cv() const { return _M_cv; } + + bool isConstant() const; + bool isVolatile() const; + + QStringList cvString() const; + + void run(TypeSpecifierAST *node); + +protected: + virtual void visitClassSpecifier(ClassSpecifierAST *node); + virtual void visitEnumSpecifier(EnumSpecifierAST *node); + virtual void visitElaboratedTypeSpecifier(ElaboratedTypeSpecifierAST *node); + virtual void visitSimpleTypeSpecifier(SimpleTypeSpecifierAST *node); + + virtual void visitName(NameAST *node); + +private: + Binder *_M_binder; + TokenStream *_M_token_stream; + QStringList _M_type; + QList _M_cv; +}; + +#endif // TYPE_COMPILER_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/visitor.cpp b/generator_50/parser/visitor.cpp new file mode 100644 index 00000000..be88d835 --- /dev/null +++ b/generator_50/parser/visitor.cpp @@ -0,0 +1,139 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#include "visitor.h" + +Visitor::visitor_fun_ptr Visitor::_S_table[AST::NODE_KIND_COUNT] = { + 0, + reinterpret_cast(&Visitor::visitAccessSpecifier), + reinterpret_cast(&Visitor::visitAsmDefinition), + reinterpret_cast(&Visitor::visitBaseClause), + reinterpret_cast(&Visitor::visitBaseSpecifier), + reinterpret_cast(&Visitor::visitBinaryExpression), + reinterpret_cast(&Visitor::visitCastExpression), + reinterpret_cast(&Visitor::visitClassMemberAccess), + reinterpret_cast(&Visitor::visitClassSpecifier), + reinterpret_cast(&Visitor::visitCompoundStatement), + reinterpret_cast(&Visitor::visitCondition), + reinterpret_cast(&Visitor::visitConditionalExpression), + reinterpret_cast(&Visitor::visitCppCastExpression), + reinterpret_cast(&Visitor::visitCtorInitializer), + reinterpret_cast(&Visitor::visitDeclarationStatement), + reinterpret_cast(&Visitor::visitDeclarator), + reinterpret_cast(&Visitor::visitDeleteExpression), + reinterpret_cast(&Visitor::visitDoStatement), + reinterpret_cast(&Visitor::visitElaboratedTypeSpecifier), + reinterpret_cast(&Visitor::visitEnumSpecifier), + reinterpret_cast(&Visitor::visitEnumerator), + reinterpret_cast(&Visitor::visitExceptionSpecification), + reinterpret_cast(&Visitor::visitExpressionOrDeclarationStatement), + reinterpret_cast(&Visitor::visitExpressionStatement), + reinterpret_cast(&Visitor::visitForStatement), + reinterpret_cast(&Visitor::visitFunctionCall), + reinterpret_cast(&Visitor::visitFunctionDefinition), + reinterpret_cast(&Visitor::visitIfStatement), + reinterpret_cast(&Visitor::visitIncrDecrExpression), + reinterpret_cast(&Visitor::visitInitDeclarator), + reinterpret_cast(&Visitor::visitInitializer), + reinterpret_cast(&Visitor::visitInitializerClause), + reinterpret_cast(&Visitor::visitLabeledStatement), + reinterpret_cast(&Visitor::visitLinkageBody), + reinterpret_cast(&Visitor::visitLinkageSpecification), + reinterpret_cast(&Visitor::visitMemInitializer), + reinterpret_cast(&Visitor::visitName), + reinterpret_cast(&Visitor::visitNamespace), + reinterpret_cast(&Visitor::visitNamespaceAliasDefinition), + reinterpret_cast(&Visitor::visitNewDeclarator), + reinterpret_cast(&Visitor::visitNewExpression), + reinterpret_cast(&Visitor::visitNewInitializer), + reinterpret_cast(&Visitor::visitNewTypeId), + reinterpret_cast(&Visitor::visitOperator), + reinterpret_cast(&Visitor::visitOperatorFunctionId), + reinterpret_cast(&Visitor::visitParameterDeclaration), + reinterpret_cast(&Visitor::visitParameterDeclarationClause), + reinterpret_cast(&Visitor::visitPostfixExpression), + reinterpret_cast(&Visitor::visitPrimaryExpression), + reinterpret_cast(&Visitor::visitPtrOperator), + reinterpret_cast(&Visitor::visitPtrToMember), + reinterpret_cast(&Visitor::visitReturnStatement), + reinterpret_cast(&Visitor::visitSimpleDeclaration), + reinterpret_cast(&Visitor::visitSimpleTypeSpecifier), + reinterpret_cast(&Visitor::visitSizeofExpression), + reinterpret_cast(&Visitor::visitStringLiteral), + reinterpret_cast(&Visitor::visitSubscriptExpression), + reinterpret_cast(&Visitor::visitSwitchStatement), + reinterpret_cast(&Visitor::visitTemplateArgument), + reinterpret_cast(&Visitor::visitTemplateDeclaration), + reinterpret_cast(&Visitor::visitTemplateParameter), + reinterpret_cast(&Visitor::visitThrowExpression), + reinterpret_cast(&Visitor::visitTranslationUnit), + reinterpret_cast(&Visitor::visitTryBlockStatement), + reinterpret_cast(&Visitor::visitTypeId), + reinterpret_cast(&Visitor::visitTypeIdentification), + reinterpret_cast(&Visitor::visitTypeParameter), + reinterpret_cast(&Visitor::visitTypedef), + reinterpret_cast(&Visitor::visitUnaryExpression), + reinterpret_cast(&Visitor::visitUnqualifiedName), + reinterpret_cast(&Visitor::visitUsing), + reinterpret_cast(&Visitor::visitUsingDirective), + reinterpret_cast(&Visitor::visitWhileStatement), + reinterpret_cast(&Visitor::visitWinDeclSpec), + reinterpret_cast(&Visitor::visitQProperty), + reinterpret_cast(&Visitor::visitForwardDeclarationSpecifier), + reinterpret_cast(&Visitor::visitQEnums) +}; + +Visitor::Visitor() +{ +} + +Visitor::~Visitor() +{ +} + +void Visitor::visit(AST *node) +{ + if (node) + (this->*_S_table[node->kind])(node); +} + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/parser/visitor.h b/generator_50/parser/visitor.h new file mode 100644 index 00000000..01f5898d --- /dev/null +++ b/generator_50/parser/visitor.h @@ -0,0 +1,159 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + + +#ifndef VISITOR_H +#define VISITOR_H + +#include "ast.h" + +class Visitor +{ +public: + Visitor(); + virtual ~Visitor(); + + virtual void visit(AST *node); + +protected: + virtual void visitAccessSpecifier(AccessSpecifierAST *) {} + virtual void visitAsmDefinition(AsmDefinitionAST *) {} + virtual void visitBaseClause(BaseClauseAST *) {} + virtual void visitBaseSpecifier(BaseSpecifierAST *) {} + virtual void visitBinaryExpression(BinaryExpressionAST *) {} + virtual void visitCastExpression(CastExpressionAST *) {} + virtual void visitClassMemberAccess(ClassMemberAccessAST *) {} + virtual void visitClassSpecifier(ClassSpecifierAST *) {} + virtual void visitCompoundStatement(CompoundStatementAST *) {} + virtual void visitCondition(ConditionAST *) {} + virtual void visitConditionalExpression(ConditionalExpressionAST *) {} + virtual void visitCppCastExpression(CppCastExpressionAST *) {} + virtual void visitCtorInitializer(CtorInitializerAST *) {} + virtual void visitDeclarationStatement(DeclarationStatementAST *) {} + virtual void visitDeclarator(DeclaratorAST *) {} + virtual void visitDeleteExpression(DeleteExpressionAST *) {} + virtual void visitDoStatement(DoStatementAST *) {} + virtual void visitElaboratedTypeSpecifier(ElaboratedTypeSpecifierAST *) {} + virtual void visitEnumSpecifier(EnumSpecifierAST *) {} + virtual void visitEnumerator(EnumeratorAST *) {} + virtual void visitExceptionSpecification(ExceptionSpecificationAST *) {} + virtual void visitExpressionOrDeclarationStatement(ExpressionOrDeclarationStatementAST *) {} + virtual void visitExpressionStatement(ExpressionStatementAST *) {} + virtual void visitForStatement(ForStatementAST *) {} + virtual void visitFunctionCall(FunctionCallAST *) {} + virtual void visitFunctionDefinition(FunctionDefinitionAST *) {} + virtual void visitIfStatement(IfStatementAST *) {} + virtual void visitIncrDecrExpression(IncrDecrExpressionAST *) {} + virtual void visitInitDeclarator(InitDeclaratorAST *) {} + virtual void visitInitializer(InitializerAST *) {} + virtual void visitInitializerClause(InitializerClauseAST *) {} + virtual void visitLabeledStatement(LabeledStatementAST *) {} + virtual void visitLinkageBody(LinkageBodyAST *) {} + virtual void visitLinkageSpecification(LinkageSpecificationAST *) {} + virtual void visitMemInitializer(MemInitializerAST *) {} + virtual void visitName(NameAST *) {} + virtual void visitNamespace(NamespaceAST *) {} + virtual void visitNamespaceAliasDefinition(NamespaceAliasDefinitionAST *) {} + virtual void visitNewDeclarator(NewDeclaratorAST *) {} + virtual void visitNewExpression(NewExpressionAST *) {} + virtual void visitNewInitializer(NewInitializerAST *) {} + virtual void visitNewTypeId(NewTypeIdAST *) {} + virtual void visitOperator(OperatorAST *) {} + virtual void visitOperatorFunctionId(OperatorFunctionIdAST *) {} + virtual void visitParameterDeclaration(ParameterDeclarationAST *) {} + virtual void visitParameterDeclarationClause(ParameterDeclarationClauseAST *) {} + virtual void visitPostfixExpression(PostfixExpressionAST *) {} + virtual void visitPrimaryExpression(PrimaryExpressionAST *) {} + virtual void visitPtrOperator(PtrOperatorAST *) {} + virtual void visitPtrToMember(PtrToMemberAST *) {} + virtual void visitReturnStatement(ReturnStatementAST *) {} + virtual void visitSimpleDeclaration(SimpleDeclarationAST *) {} + virtual void visitSimpleTypeSpecifier(SimpleTypeSpecifierAST *) {} + virtual void visitSizeofExpression(SizeofExpressionAST *) {} + virtual void visitStringLiteral(StringLiteralAST *) {} + virtual void visitSubscriptExpression(SubscriptExpressionAST *) {} + virtual void visitSwitchStatement(SwitchStatementAST *) {} + virtual void visitTemplateArgument(TemplateArgumentAST *) {} + virtual void visitTemplateDeclaration(TemplateDeclarationAST *) {} + virtual void visitTemplateParameter(TemplateParameterAST *) {} + virtual void visitThrowExpression(ThrowExpressionAST *) {} + virtual void visitTranslationUnit(TranslationUnitAST *) {} + virtual void visitTryBlockStatement(TryBlockStatementAST *) {} + virtual void visitTypeId(TypeIdAST *) {} + virtual void visitTypeIdentification(TypeIdentificationAST *) {} + virtual void visitTypeParameter(TypeParameterAST *) {} + virtual void visitTypedef(TypedefAST *) {} + virtual void visitUnaryExpression(UnaryExpressionAST *) {} + virtual void visitUnqualifiedName(UnqualifiedNameAST *) {} + virtual void visitUsing(UsingAST *) {} + virtual void visitUsingDirective(UsingDirectiveAST *) {} + virtual void visitWhileStatement(WhileStatementAST *) {} + virtual void visitWinDeclSpec(WinDeclSpecAST *) {} + virtual void visitQProperty(QPropertyAST *) {} + virtual void visitForwardDeclarationSpecifier(ForwardDeclarationSpecifierAST *) {} + virtual void visitQEnums(QEnumsAST *) {} + +private: + typedef void (Visitor::*visitor_fun_ptr)(AST *); + static visitor_fun_ptr _S_table[]; +}; + +template + void visitNodes(Visitor *v, const ListNode<_Tp> *nodes) + { + if (!nodes) + return; + + const ListNode<_Tp> + *it = nodes->toFront(), + *end = it; + + do + { + v->visit(it->element); + it = it->next; + } + while (it != end); + } + +#endif // VISITOR_H + +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/generator_50/prigenerator.cpp b/generator_50/prigenerator.cpp new file mode 100644 index 00000000..7b81266e --- /dev/null +++ b/generator_50/prigenerator.cpp @@ -0,0 +1,162 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "prigenerator.h" +#include "shellgenerator.h" +#include "reporthandler.h" +#include "fileout.h" + +void PriGenerator::addHeader(const QString &folder, const QString &header) +{ + priHash[folder].headers << header; +} + +void PriGenerator::addSource(const QString &folder, const QString &source) +{ + priHash[folder].sources << source; +} + +static void collectAndRemoveFile(QTextStream& stream, const QString& file) { + QFile f(file); + if (f.open(QIODevice::ReadOnly | QIODevice::Text)) { + QString s = QString::fromLatin1(f.readAll()); + if (file.endsWith(".cpp")) { + // remove first line include + s = s.mid(s.indexOf('\n')+1); + } + stream << s; + f.close(); + QFile::remove(file); + } +} + +static QString combineIncludes(const QString& text) { + QStringList lines = text.split('\n'); + QSet includes; + QString result; + foreach(QString line, lines) { + if (line.startsWith("#include")) { + includes.insert(line); + } else if (line.startsWith("#")) { + // skip preprocessor stuff + } else { + result += line + "\n"; + } + } + QStringList includeList = includes.toList(); + qSort(includeList); + result = includeList.join("\n") + result; + return result; +} + +static QStringList compactFiles(const QStringList& list, const QString& ext, const QString& dir, const QString& prefix) { + QStringList outList; + int count = list.count(); + int fileNum = 0; + QString srcDir = dir; + if (dir.endsWith("_builtin")) { + srcDir = dir.left(dir.length()-strlen("_builtin")); + } + while (count>0) { + QString outFileName = prefix + QString::number(fileNum) + ext; + FileOut file(dir + "/" + outFileName); + if (ext == ".cpp") { + file.stream << "#include \"" + prefix + QString::number(fileNum) + ".h\"\n"; + } + outList << outFileName; + QString allText; + QTextStream ts(&allText); + for (int i = 0; i0; i++) { + collectAndRemoveFile(ts, srcDir + "/" + list.at(list.count()-count)); + count--; + } + allText = combineIncludes(allText); + file.stream << allText; + fileNum++; + } + return outList; +} + +void PriGenerator::generate() +{ + QHashIterator pri(priHash); + while (pri.hasNext()) { + pri.next(); + QStringList list = pri.value().headers; + if (list.isEmpty()) + continue; + + QString folder = pri.key(); + folder.replace('\\','/'); + int idx = folder.indexOf('/'); + folder = folder.left(idx); + + qSort(list.begin(), list.end()); + FileOut file(m_out_dir + "/generated_cpp/" + pri.key()); + + // strange idea to do the file compacting so late, but it is the most effective way without patching the generator a lot + bool compact = true; + if (compact) { + list = compactFiles(list, ".h", m_out_dir + "/generated_cpp/" + folder, folder); + } + + file.stream << "HEADERS += \\\n"; + foreach (const QString &entry, list) { + file.stream << " $$PWD/" << entry << " \\\n"; + } + + file.stream << "\n"; + file.stream << "SOURCES += \\\n"; + list = pri.value().sources; + qSort(list.begin(), list.end()); + if (compact) { + list = compactFiles(list, ".cpp", m_out_dir + "/generated_cpp/" + folder, folder); + } + foreach (const QString &entry, list) { + file.stream << " $$PWD/" << entry << " \\\n"; + } + file.stream << " $$PWD/" << folder << "_init.cpp\n"; + + if (file.done()) + ++m_num_generated_written; + ++m_num_generated; + } +} diff --git a/generator_50/prigenerator.h b/generator_50/prigenerator.h new file mode 100644 index 00000000..ff75682e --- /dev/null +++ b/generator_50/prigenerator.h @@ -0,0 +1,71 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef PRIGENERATOR_H +#define PRIGENERATOR_H + +#include "generator.h" + +#include +#include + +struct Pri +{ + QStringList headers; + QStringList sources; +}; + +class PriGenerator : public Generator +{ + Q_OBJECT + + public: + virtual void generate(); + + void addHeader(const QString &folder, const QString &header); + void addSource(const QString &folder, const QString &source); + + private: + QHash priHash; + +}; +#endif // PRIGENERATOR_H + diff --git a/generator_50/qtscript_masterinclude.h b/generator_50/qtscript_masterinclude.h new file mode 100644 index 00000000..4e468bc2 --- /dev/null +++ b/generator_50/qtscript_masterinclude.h @@ -0,0 +1,1155 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#define QT_NO_STL +#include +#include +#include +#include +#include +#include + +#include + +#include + +#ifndef QT_NO_XMLPATTERNS +# include +#endif + +#ifndef QT_NO_WEBKIT +# include +# include +#endif + +#ifndef QT_NO_PHONON +# include +#endif + +//#include "../qtbindings/qtscript_core/qtscriptconcurrent.h" + +#ifndef QT_NO_OPENGL +#define GL_ACCUM 0x0100 +#define GL_LOAD 0x0101 +#define GL_RETURN 0x0102 +#define GL_MULT 0x0103 +#define GL_ADD 0x0104 + +/* AlphaFunction */ +#define GL_NEVER 0x0200 +#define GL_LESS 0x0201 +#define GL_EQUAL 0x0202 +#define GL_LEQUAL 0x0203 +#define GL_GREATER 0x0204 +#define GL_NOTEQUAL 0x0205 +#define GL_GEQUAL 0x0206 +#define GL_ALWAYS 0x0207 + +/* AttribMask */ +#define GL_CURRENT_BIT 0x00000001 +#define GL_POINT_BIT 0x00000002 +#define GL_LINE_BIT 0x00000004 +#define GL_POLYGON_BIT 0x00000008 +#define GL_POLYGON_STIPPLE_BIT 0x00000010 +#define GL_PIXEL_MODE_BIT 0x00000020 +#define GL_LIGHTING_BIT 0x00000040 +#define GL_FOG_BIT 0x00000080 +#define GL_DEPTH_BUFFER_BIT 0x00000100 +#define GL_ACCUM_BUFFER_BIT 0x00000200 +#define GL_STENCIL_BUFFER_BIT 0x00000400 +#define GL_VIEWPORT_BIT 0x00000800 +#define GL_TRANSFORM_BIT 0x00001000 +#define GL_ENABLE_BIT 0x00002000 +#define GL_COLOR_BUFFER_BIT 0x00004000 +#define GL_HINT_BIT 0x00008000 +#define GL_EVAL_BIT 0x00010000 +#define GL_LIST_BIT 0x00020000 +#define GL_TEXTURE_BIT 0x00040000 +#define GL_SCISSOR_BIT 0x00080000 +#define GL_ALL_ATTRIB_BITS 0x000fffff + +/* BeginMode */ +#define GL_POINTS 0x0000 +#define GL_LINES 0x0001 +#define GL_LINE_LOOP 0x0002 +#define GL_LINE_STRIP 0x0003 +#define GL_TRIANGLES 0x0004 +#define GL_TRIANGLE_STRIP 0x0005 +#define GL_TRIANGLE_FAN 0x0006 +#define GL_QUADS 0x0007 +#define GL_QUAD_STRIP 0x0008 +#define GL_POLYGON 0x0009 + +/* BlendingFactorDest */ +#define GL_ZERO 0 +#define GL_ONE 1 +#define GL_SRC_COLOR 0x0300 +#define GL_ONE_MINUS_SRC_COLOR 0x0301 +#define GL_SRC_ALPHA 0x0302 +#define GL_ONE_MINUS_SRC_ALPHA 0x0303 +#define GL_DST_ALPHA 0x0304 +#define GL_ONE_MINUS_DST_ALPHA 0x0305 + +/* BlendingFactorSrc */ +/* GL_ZERO */ +/* GL_ONE */ +#define GL_DST_COLOR 0x0306 +#define GL_ONE_MINUS_DST_COLOR 0x0307 +#define GL_SRC_ALPHA_SATURATE 0x0308 +/* GL_SRC_ALPHA */ +/* GL_ONE_MINUS_SRC_ALPHA */ +/* GL_DST_ALPHA */ +/* GL_ONE_MINUS_DST_ALPHA */ + +/* Boolean */ +#define GL_TRUE 1 +#define GL_FALSE 0 + +/* ClearBufferMask */ +/* GL_COLOR_BUFFER_BIT */ +/* GL_ACCUM_BUFFER_BIT */ +/* GL_STENCIL_BUFFER_BIT */ +/* GL_DEPTH_BUFFER_BIT */ + +/* ClientArrayType */ +/* GL_VERTEX_ARRAY */ +/* GL_NORMAL_ARRAY */ +/* GL_COLOR_ARRAY */ +/* GL_INDEX_ARRAY */ +/* GL_TEXTURE_COORD_ARRAY */ +/* GL_EDGE_FLAG_ARRAY */ + +/* ClipPlaneName */ +#define GL_CLIP_PLANE0 0x3000 +#define GL_CLIP_PLANE1 0x3001 +#define GL_CLIP_PLANE2 0x3002 +#define GL_CLIP_PLANE3 0x3003 +#define GL_CLIP_PLANE4 0x3004 +#define GL_CLIP_PLANE5 0x3005 + +/* ColorMaterialFace */ +/* GL_FRONT */ +/* GL_BACK */ +/* GL_FRONT_AND_BACK */ + +/* ColorMaterialParameter */ +/* GL_AMBIENT */ +/* GL_DIFFUSE */ +/* GL_SPECULAR */ +/* GL_EMISSION */ +/* GL_AMBIENT_AND_DIFFUSE */ + +/* ColorPointerType */ +/* GL_BYTE */ +/* GL_UNSIGNED_BYTE */ +/* GL_SHORT */ +/* GL_UNSIGNED_SHORT */ +/* GL_INT */ +/* GL_UNSIGNED_INT */ +/* GL_FLOAT */ +/* GL_DOUBLE */ + +/* CullFaceMode */ +/* GL_FRONT */ +/* GL_BACK */ +/* GL_FRONT_AND_BACK */ + +/* DataType */ +#define GL_BYTE 0x1400 +#define GL_UNSIGNED_BYTE 0x1401 +#define GL_SHORT 0x1402 +#define GL_UNSIGNED_SHORT 0x1403 +#define GL_INT 0x1404 +#define GL_UNSIGNED_INT 0x1405 +#define GL_FLOAT 0x1406 +#define GL_2_BYTES 0x1407 +#define GL_3_BYTES 0x1408 +#define GL_4_BYTES 0x1409 +#define GL_DOUBLE 0x140A + +/* DepthFunction */ +/* GL_NEVER */ +/* GL_LESS */ +/* GL_EQUAL */ +/* GL_LEQUAL */ +/* GL_GREATER */ +/* GL_NOTEQUAL */ +/* GL_GEQUAL */ +/* GL_ALWAYS */ + +/* DrawBufferMode */ +#define GL_NONE 0 +#define GL_FRONT_LEFT 0x0400 +#define GL_FRONT_RIGHT 0x0401 +#define GL_BACK_LEFT 0x0402 +#define GL_BACK_RIGHT 0x0403 +#define GL_FRONT 0x0404 +#define GL_BACK 0x0405 +#define GL_LEFT 0x0406 +#define GL_RIGHT 0x0407 +#define GL_FRONT_AND_BACK 0x0408 +#define GL_AUX0 0x0409 +#define GL_AUX1 0x040A +#define GL_AUX2 0x040B +#define GL_AUX3 0x040C + +/* Enable */ +/* GL_FOG */ +/* GL_LIGHTING */ +/* GL_TEXTURE_1D */ +/* GL_TEXTURE_2D */ +/* GL_LINE_STIPPLE */ +/* GL_POLYGON_STIPPLE */ +/* GL_CULL_FACE */ +/* GL_ALPHA_TEST */ +/* GL_BLEND */ +/* GL_INDEX_LOGIC_OP */ +/* GL_COLOR_LOGIC_OP */ +/* GL_DITHER */ +/* GL_STENCIL_TEST */ +/* GL_DEPTH_TEST */ +/* GL_CLIP_PLANE0 */ +/* GL_CLIP_PLANE1 */ +/* GL_CLIP_PLANE2 */ +/* GL_CLIP_PLANE3 */ +/* GL_CLIP_PLANE4 */ +/* GL_CLIP_PLANE5 */ +/* GL_LIGHT0 */ +/* GL_LIGHT1 */ +/* GL_LIGHT2 */ +/* GL_LIGHT3 */ +/* GL_LIGHT4 */ +/* GL_LIGHT5 */ +/* GL_LIGHT6 */ +/* GL_LIGHT7 */ +/* GL_TEXTURE_GEN_S */ +/* GL_TEXTURE_GEN_T */ +/* GL_TEXTURE_GEN_R */ +/* GL_TEXTURE_GEN_Q */ +/* GL_MAP1_VERTEX_3 */ +/* GL_MAP1_VERTEX_4 */ +/* GL_MAP1_COLOR_4 */ +/* GL_MAP1_INDEX */ +/* GL_MAP1_NORMAL */ +/* GL_MAP1_TEXTURE_COORD_1 */ +/* GL_MAP1_TEXTURE_COORD_2 */ +/* GL_MAP1_TEXTURE_COORD_3 */ +/* GL_MAP1_TEXTURE_COORD_4 */ +/* GL_MAP2_VERTEX_3 */ +/* GL_MAP2_VERTEX_4 */ +/* GL_MAP2_COLOR_4 */ +/* GL_MAP2_INDEX */ +/* GL_MAP2_NORMAL */ +/* GL_MAP2_TEXTURE_COORD_1 */ +/* GL_MAP2_TEXTURE_COORD_2 */ +/* GL_MAP2_TEXTURE_COORD_3 */ +/* GL_MAP2_TEXTURE_COORD_4 */ +/* GL_POINT_SMOOTH */ +/* GL_LINE_SMOOTH */ +/* GL_POLYGON_SMOOTH */ +/* GL_SCISSOR_TEST */ +/* GL_COLOR_MATERIAL */ +/* GL_NORMALIZE */ +/* GL_AUTO_NORMAL */ +/* GL_VERTEX_ARRAY */ +/* GL_NORMAL_ARRAY */ +/* GL_COLOR_ARRAY */ +/* GL_INDEX_ARRAY */ +/* GL_TEXTURE_COORD_ARRAY */ +/* GL_EDGE_FLAG_ARRAY */ +/* GL_POLYGON_OFFSET_POINT */ +/* GL_POLYGON_OFFSET_LINE */ +/* GL_POLYGON_OFFSET_FILL */ + +/* ErrorCode */ +#define GL_NO_ERROR 0 +#define GL_INVALID_ENUM 0x0500 +#define GL_INVALID_VALUE 0x0501 +#define GL_INVALID_OPERATION 0x0502 +#define GL_STACK_OVERFLOW 0x0503 +#define GL_STACK_UNDERFLOW 0x0504 +#define GL_OUT_OF_MEMORY 0x0505 + +/* FeedBackMode */ +#define GL_2D 0x0600 +#define GL_3D 0x0601 +#define GL_3D_COLOR 0x0602 +#define GL_3D_COLOR_TEXTURE 0x0603 +#define GL_4D_COLOR_TEXTURE 0x0604 + +/* FeedBackToken */ +#define GL_PASS_THROUGH_TOKEN 0x0700 +#define GL_POINT_TOKEN 0x0701 +#define GL_LINE_TOKEN 0x0702 +#define GL_POLYGON_TOKEN 0x0703 +#define GL_BITMAP_TOKEN 0x0704 +#define GL_DRAW_PIXEL_TOKEN 0x0705 +#define GL_COPY_PIXEL_TOKEN 0x0706 +#define GL_LINE_RESET_TOKEN 0x0707 + +/* FogMode */ +/* GL_LINEAR */ +#define GL_EXP 0x0800 +#define GL_EXP2 0x0801 + + +/* FogParameter */ +/* GL_FOG_COLOR */ +/* GL_FOG_DENSITY */ +/* GL_FOG_END */ +/* GL_FOG_INDEX */ +/* GL_FOG_MODE */ +/* GL_FOG_START */ + +/* FrontFaceDirection */ +#define GL_CW 0x0900 +#define GL_CCW 0x0901 + +/* GetMapTarget */ +#define GL_COEFF 0x0A00 +#define GL_ORDER 0x0A01 +#define GL_DOMAIN 0x0A02 + +/* GetPixelMap */ +/* GL_PIXEL_MAP_I_TO_I */ +/* GL_PIXEL_MAP_S_TO_S */ +/* GL_PIXEL_MAP_I_TO_R */ +/* GL_PIXEL_MAP_I_TO_G */ +/* GL_PIXEL_MAP_I_TO_B */ +/* GL_PIXEL_MAP_I_TO_A */ +/* GL_PIXEL_MAP_R_TO_R */ +/* GL_PIXEL_MAP_G_TO_G */ +/* GL_PIXEL_MAP_B_TO_B */ +/* GL_PIXEL_MAP_A_TO_A */ + +/* GetPointerTarget */ +/* GL_VERTEX_ARRAY_POINTER */ +/* GL_NORMAL_ARRAY_POINTER */ +/* GL_COLOR_ARRAY_POINTER */ +/* GL_INDEX_ARRAY_POINTER */ +/* GL_TEXTURE_COORD_ARRAY_POINTER */ +/* GL_EDGE_FLAG_ARRAY_POINTER */ + +/* GetTarget */ +#define GL_CURRENT_COLOR 0x0B00 +#define GL_CURRENT_INDEX 0x0B01 +#define GL_CURRENT_NORMAL 0x0B02 +#define GL_CURRENT_TEXTURE_COORDS 0x0B03 +#define GL_CURRENT_RASTER_COLOR 0x0B04 +#define GL_CURRENT_RASTER_INDEX 0x0B05 +#define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06 +#define GL_CURRENT_RASTER_POSITION 0x0B07 +#define GL_CURRENT_RASTER_POSITION_VALID 0x0B08 +#define GL_CURRENT_RASTER_DISTANCE 0x0B09 +#define GL_POINT_SMOOTH 0x0B10 +#define GL_POINT_SIZE 0x0B11 +#define GL_POINT_SIZE_RANGE 0x0B12 +#define GL_POINT_SIZE_GRANULARITY 0x0B13 +#define GL_LINE_SMOOTH 0x0B20 +#define GL_LINE_WIDTH 0x0B21 +#define GL_LINE_WIDTH_RANGE 0x0B22 +#define GL_LINE_WIDTH_GRANULARITY 0x0B23 +#define GL_LINE_STIPPLE 0x0B24 +#define GL_LINE_STIPPLE_PATTERN 0x0B25 +#define GL_LINE_STIPPLE_REPEAT 0x0B26 +#define GL_LIST_MODE 0x0B30 +#define GL_MAX_LIST_NESTING 0x0B31 +#define GL_LIST_BASE 0x0B32 +#define GL_LIST_INDEX 0x0B33 +#define GL_POLYGON_MODE 0x0B40 +#define GL_POLYGON_SMOOTH 0x0B41 +#define GL_POLYGON_STIPPLE 0x0B42 +#define GL_EDGE_FLAG 0x0B43 +#define GL_CULL_FACE 0x0B44 +#define GL_CULL_FACE_MODE 0x0B45 +#define GL_FRONT_FACE 0x0B46 +#define GL_LIGHTING 0x0B50 +#define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51 +#define GL_LIGHT_MODEL_TWO_SIDE 0x0B52 +#define GL_LIGHT_MODEL_AMBIENT 0x0B53 +#define GL_SHADE_MODEL 0x0B54 +#define GL_COLOR_MATERIAL_FACE 0x0B55 +#define GL_COLOR_MATERIAL_PARAMETER 0x0B56 +#define GL_COLOR_MATERIAL 0x0B57 +#define GL_FOG 0x0B60 +#define GL_FOG_INDEX 0x0B61 +#define GL_FOG_DENSITY 0x0B62 +#define GL_FOG_START 0x0B63 +#define GL_FOG_END 0x0B64 +#define GL_FOG_MODE 0x0B65 +#define GL_FOG_COLOR 0x0B66 +#define GL_DEPTH_RANGE 0x0B70 +#define GL_DEPTH_TEST 0x0B71 +#define GL_DEPTH_WRITEMASK 0x0B72 +#define GL_DEPTH_CLEAR_VALUE 0x0B73 +#define GL_DEPTH_FUNC 0x0B74 +#define GL_ACCUM_CLEAR_VALUE 0x0B80 +#define GL_STENCIL_TEST 0x0B90 +#define GL_STENCIL_CLEAR_VALUE 0x0B91 +#define GL_STENCIL_FUNC 0x0B92 +#define GL_STENCIL_VALUE_MASK 0x0B93 +#define GL_STENCIL_FAIL 0x0B94 +#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 +#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 +#define GL_STENCIL_REF 0x0B97 +#define GL_STENCIL_WRITEMASK 0x0B98 +#define GL_MATRIX_MODE 0x0BA0 +#define GL_NORMALIZE 0x0BA1 +#define GL_VIEWPORT 0x0BA2 +#define GL_MODELVIEW_STACK_DEPTH 0x0BA3 +#define GL_PROJECTION_STACK_DEPTH 0x0BA4 +#define GL_TEXTURE_STACK_DEPTH 0x0BA5 +#define GL_MODELVIEW_MATRIX 0x0BA6 +#define GL_PROJECTION_MATRIX 0x0BA7 +#define GL_TEXTURE_MATRIX 0x0BA8 +#define GL_ATTRIB_STACK_DEPTH 0x0BB0 +#define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1 +#define GL_ALPHA_TEST 0x0BC0 +#define GL_ALPHA_TEST_FUNC 0x0BC1 +#define GL_ALPHA_TEST_REF 0x0BC2 +#define GL_DITHER 0x0BD0 +#define GL_BLEND_DST 0x0BE0 +#define GL_BLEND_SRC 0x0BE1 +#define GL_BLEND 0x0BE2 +#define GL_LOGIC_OP_MODE 0x0BF0 +#define GL_INDEX_LOGIC_OP 0x0BF1 +#define GL_COLOR_LOGIC_OP 0x0BF2 +#define GL_AUX_BUFFERS 0x0C00 +#define GL_DRAW_BUFFER 0x0C01 +#define GL_READ_BUFFER 0x0C02 +#define GL_SCISSOR_BOX 0x0C10 +#define GL_SCISSOR_TEST 0x0C11 +#define GL_INDEX_CLEAR_VALUE 0x0C20 +#define GL_INDEX_WRITEMASK 0x0C21 +#define GL_COLOR_CLEAR_VALUE 0x0C22 +#define GL_COLOR_WRITEMASK 0x0C23 +#define GL_INDEX_MODE 0x0C30 +#define GL_RGBA_MODE 0x0C31 +#define GL_DOUBLEBUFFER 0x0C32 +#define GL_STEREO 0x0C33 +#define GL_RENDER_MODE 0x0C40 +#define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50 +#define GL_POINT_SMOOTH_HINT 0x0C51 +#define GL_LINE_SMOOTH_HINT 0x0C52 +#define GL_POLYGON_SMOOTH_HINT 0x0C53 +#define GL_FOG_HINT 0x0C54 +#define GL_TEXTURE_GEN_S 0x0C60 +#define GL_TEXTURE_GEN_T 0x0C61 +#define GL_TEXTURE_GEN_R 0x0C62 +#define GL_TEXTURE_GEN_Q 0x0C63 +#define GL_PIXEL_MAP_I_TO_I 0x0C70 +#define GL_PIXEL_MAP_S_TO_S 0x0C71 +#define GL_PIXEL_MAP_I_TO_R 0x0C72 +#define GL_PIXEL_MAP_I_TO_G 0x0C73 +#define GL_PIXEL_MAP_I_TO_B 0x0C74 +#define GL_PIXEL_MAP_I_TO_A 0x0C75 +#define GL_PIXEL_MAP_R_TO_R 0x0C76 +#define GL_PIXEL_MAP_G_TO_G 0x0C77 +#define GL_PIXEL_MAP_B_TO_B 0x0C78 +#define GL_PIXEL_MAP_A_TO_A 0x0C79 +#define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0 +#define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1 +#define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2 +#define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3 +#define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4 +#define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5 +#define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6 +#define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7 +#define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8 +#define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9 +#define GL_UNPACK_SWAP_BYTES 0x0CF0 +#define GL_UNPACK_LSB_FIRST 0x0CF1 +#define GL_UNPACK_ROW_LENGTH 0x0CF2 +#define GL_UNPACK_SKIP_ROWS 0x0CF3 +#define GL_UNPACK_SKIP_PIXELS 0x0CF4 +#define GL_UNPACK_ALIGNMENT 0x0CF5 +#define GL_PACK_SWAP_BYTES 0x0D00 +#define GL_PACK_LSB_FIRST 0x0D01 +#define GL_PACK_ROW_LENGTH 0x0D02 +#define GL_PACK_SKIP_ROWS 0x0D03 +#define GL_PACK_SKIP_PIXELS 0x0D04 +#define GL_PACK_ALIGNMENT 0x0D05 +#define GL_MAP_COLOR 0x0D10 +#define GL_MAP_STENCIL 0x0D11 +#define GL_INDEX_SHIFT 0x0D12 +#define GL_INDEX_OFFSET 0x0D13 +#define GL_RED_SCALE 0x0D14 +#define GL_RED_BIAS 0x0D15 +#define GL_ZOOM_X 0x0D16 +#define GL_ZOOM_Y 0x0D17 +#define GL_GREEN_SCALE 0x0D18 +#define GL_GREEN_BIAS 0x0D19 +#define GL_BLUE_SCALE 0x0D1A +#define GL_BLUE_BIAS 0x0D1B +#define GL_ALPHA_SCALE 0x0D1C +#define GL_ALPHA_BIAS 0x0D1D +#define GL_DEPTH_SCALE 0x0D1E +#define GL_DEPTH_BIAS 0x0D1F +#define GL_MAX_EVAL_ORDER 0x0D30 +#define GL_MAX_LIGHTS 0x0D31 +#define GL_MAX_CLIP_PLANES 0x0D32 +#define GL_MAX_TEXTURE_SIZE 0x0D33 +#define GL_MAX_PIXEL_MAP_TABLE 0x0D34 +#define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35 +#define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36 +#define GL_MAX_NAME_STACK_DEPTH 0x0D37 +#define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38 +#define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39 +#define GL_MAX_VIEWPORT_DIMS 0x0D3A +#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B +#define GL_SUBPIXEL_BITS 0x0D50 +#define GL_INDEX_BITS 0x0D51 +#define GL_RED_BITS 0x0D52 +#define GL_GREEN_BITS 0x0D53 +#define GL_BLUE_BITS 0x0D54 +#define GL_ALPHA_BITS 0x0D55 +#define GL_DEPTH_BITS 0x0D56 +#define GL_STENCIL_BITS 0x0D57 +#define GL_ACCUM_RED_BITS 0x0D58 +#define GL_ACCUM_GREEN_BITS 0x0D59 +#define GL_ACCUM_BLUE_BITS 0x0D5A +#define GL_ACCUM_ALPHA_BITS 0x0D5B +#define GL_NAME_STACK_DEPTH 0x0D70 +#define GL_AUTO_NORMAL 0x0D80 +#define GL_MAP1_COLOR_4 0x0D90 +#define GL_MAP1_INDEX 0x0D91 +#define GL_MAP1_NORMAL 0x0D92 +#define GL_MAP1_TEXTURE_COORD_1 0x0D93 +#define GL_MAP1_TEXTURE_COORD_2 0x0D94 +#define GL_MAP1_TEXTURE_COORD_3 0x0D95 +#define GL_MAP1_TEXTURE_COORD_4 0x0D96 +#define GL_MAP1_VERTEX_3 0x0D97 +#define GL_MAP1_VERTEX_4 0x0D98 +#define GL_MAP2_COLOR_4 0x0DB0 +#define GL_MAP2_INDEX 0x0DB1 +#define GL_MAP2_NORMAL 0x0DB2 +#define GL_MAP2_TEXTURE_COORD_1 0x0DB3 +#define GL_MAP2_TEXTURE_COORD_2 0x0DB4 +#define GL_MAP2_TEXTURE_COORD_3 0x0DB5 +#define GL_MAP2_TEXTURE_COORD_4 0x0DB6 +#define GL_MAP2_VERTEX_3 0x0DB7 +#define GL_MAP2_VERTEX_4 0x0DB8 +#define GL_MAP1_GRID_DOMAIN 0x0DD0 +#define GL_MAP1_GRID_SEGMENTS 0x0DD1 +#define GL_MAP2_GRID_DOMAIN 0x0DD2 +#define GL_MAP2_GRID_SEGMENTS 0x0DD3 +#define GL_TEXTURE_1D 0x0DE0 +#define GL_TEXTURE_2D 0x0DE1 +#define GL_FEEDBACK_BUFFER_POINTER 0x0DF0 +#define GL_FEEDBACK_BUFFER_SIZE 0x0DF1 +#define GL_FEEDBACK_BUFFER_TYPE 0x0DF2 +#define GL_SELECTION_BUFFER_POINTER 0x0DF3 +#define GL_SELECTION_BUFFER_SIZE 0x0DF4 +/* GL_TEXTURE_BINDING_1D */ +/* GL_TEXTURE_BINDING_2D */ +/* GL_VERTEX_ARRAY */ +/* GL_NORMAL_ARRAY */ +/* GL_COLOR_ARRAY */ +/* GL_INDEX_ARRAY */ +/* GL_TEXTURE_COORD_ARRAY */ +/* GL_EDGE_FLAG_ARRAY */ +/* GL_VERTEX_ARRAY_SIZE */ +/* GL_VERTEX_ARRAY_TYPE */ +/* GL_VERTEX_ARRAY_STRIDE */ +/* GL_NORMAL_ARRAY_TYPE */ +/* GL_NORMAL_ARRAY_STRIDE */ +/* GL_COLOR_ARRAY_SIZE */ +/* GL_COLOR_ARRAY_TYPE */ +/* GL_COLOR_ARRAY_STRIDE */ +/* GL_INDEX_ARRAY_TYPE */ +/* GL_INDEX_ARRAY_STRIDE */ +/* GL_TEXTURE_COORD_ARRAY_SIZE */ +/* GL_TEXTURE_COORD_ARRAY_TYPE */ +/* GL_TEXTURE_COORD_ARRAY_STRIDE */ +/* GL_EDGE_FLAG_ARRAY_STRIDE */ +/* GL_POLYGON_OFFSET_FACTOR */ +/* GL_POLYGON_OFFSET_UNITS */ + +/* GetTextureParameter */ +/* GL_TEXTURE_MAG_FILTER */ +/* GL_TEXTURE_MIN_FILTER */ +/* GL_TEXTURE_WRAP_S */ +/* GL_TEXTURE_WRAP_T */ +#define GL_TEXTURE_WIDTH 0x1000 +#define GL_TEXTURE_HEIGHT 0x1001 +#define GL_TEXTURE_INTERNAL_FORMAT 0x1003 +#define GL_TEXTURE_BORDER_COLOR 0x1004 +#define GL_TEXTURE_BORDER 0x1005 +/* GL_TEXTURE_RED_SIZE */ +/* GL_TEXTURE_GREEN_SIZE */ +/* GL_TEXTURE_BLUE_SIZE */ +/* GL_TEXTURE_ALPHA_SIZE */ +/* GL_TEXTURE_LUMINANCE_SIZE */ +/* GL_TEXTURE_INTENSITY_SIZE */ +/* GL_TEXTURE_PRIORITY */ +/* GL_TEXTURE_RESIDENT */ + +/* HintMode */ +#define GL_DONT_CARE 0x1100 +#define GL_FASTEST 0x1101 +#define GL_NICEST 0x1102 + +/* HintTarget */ +/* GL_PERSPECTIVE_CORRECTION_HINT */ +/* GL_POINT_SMOOTH_HINT */ +/* GL_LINE_SMOOTH_HINT */ +/* GL_POLYGON_SMOOTH_HINT */ +/* GL_FOG_HINT */ +/* GL_PHONG_HINT */ + +/* IndexPointerType */ +/* GL_SHORT */ +/* GL_INT */ +/* GL_FLOAT */ +/* GL_DOUBLE */ + +/* LightModelParameter */ +/* GL_LIGHT_MODEL_AMBIENT */ +/* GL_LIGHT_MODEL_LOCAL_VIEWER */ +/* GL_LIGHT_MODEL_TWO_SIDE */ + +/* LightName */ +#define GL_LIGHT0 0x4000 +#define GL_LIGHT1 0x4001 +#define GL_LIGHT2 0x4002 +#define GL_LIGHT3 0x4003 +#define GL_LIGHT4 0x4004 +#define GL_LIGHT5 0x4005 +#define GL_LIGHT6 0x4006 +#define GL_LIGHT7 0x4007 + +/* LightParameter */ +#define GL_AMBIENT 0x1200 +#define GL_DIFFUSE 0x1201 +#define GL_SPECULAR 0x1202 +#define GL_POSITION 0x1203 +#define GL_SPOT_DIRECTION 0x1204 +#define GL_SPOT_EXPONENT 0x1205 +#define GL_SPOT_CUTOFF 0x1206 +#define GL_CONSTANT_ATTENUATION 0x1207 +#define GL_LINEAR_ATTENUATION 0x1208 +#define GL_QUADRATIC_ATTENUATION 0x1209 + +/* InterleavedArrays */ +/* GL_V2F */ +/* GL_V3F */ +/* GL_C4UB_V2F */ +/* GL_C4UB_V3F */ +/* GL_C3F_V3F */ +/* GL_N3F_V3F */ +/* GL_C4F_N3F_V3F */ +/* GL_T2F_V3F */ +/* GL_T4F_V4F */ +/* GL_T2F_C4UB_V3F */ +/* GL_T2F_C3F_V3F */ +/* GL_T2F_N3F_V3F */ +/* GL_T2F_C4F_N3F_V3F */ +/* GL_T4F_C4F_N3F_V4F */ + +/* ListMode */ +#define GL_COMPILE 0x1300 +#define GL_COMPILE_AND_EXECUTE 0x1301 + +/* ListNameType */ +/* GL_BYTE */ +/* GL_UNSIGNED_BYTE */ +/* GL_SHORT */ +/* GL_UNSIGNED_SHORT */ +/* GL_INT */ +/* GL_UNSIGNED_INT */ +/* GL_FLOAT */ +/* GL_2_BYTES */ +/* GL_3_BYTES */ +/* GL_4_BYTES */ + +/* LogicOp */ +#define GL_CLEAR 0x1500 +#define GL_AND 0x1501 +#define GL_AND_REVERSE 0x1502 +#define GL_COPY 0x1503 +#define GL_AND_INVERTED 0x1504 +#define GL_NOOP 0x1505 +#define GL_XOR 0x1506 +#define GL_OR 0x1507 +#define GL_NOR 0x1508 +#define GL_EQUIV 0x1509 +#define GL_INVERT 0x150A +#define GL_OR_REVERSE 0x150B +#define GL_COPY_INVERTED 0x150C +#define GL_OR_INVERTED 0x150D +#define GL_NAND 0x150E +#define GL_SET 0x150F + +/* MapTarget */ +/* GL_MAP1_COLOR_4 */ +/* GL_MAP1_INDEX */ +/* GL_MAP1_NORMAL */ +/* GL_MAP1_TEXTURE_COORD_1 */ +/* GL_MAP1_TEXTURE_COORD_2 */ +/* GL_MAP1_TEXTURE_COORD_3 */ +/* GL_MAP1_TEXTURE_COORD_4 */ +/* GL_MAP1_VERTEX_3 */ +/* GL_MAP1_VERTEX_4 */ +/* GL_MAP2_COLOR_4 */ +/* GL_MAP2_INDEX */ +/* GL_MAP2_NORMAL */ +/* GL_MAP2_TEXTURE_COORD_1 */ +/* GL_MAP2_TEXTURE_COORD_2 */ +/* GL_MAP2_TEXTURE_COORD_3 */ +/* GL_MAP2_TEXTURE_COORD_4 */ +/* GL_MAP2_VERTEX_3 */ +/* GL_MAP2_VERTEX_4 */ + +/* MaterialFace */ +/* GL_FRONT */ +/* GL_BACK */ +/* GL_FRONT_AND_BACK */ + +/* MaterialParameter */ +#define GL_EMISSION 0x1600 +#define GL_SHININESS 0x1601 +#define GL_AMBIENT_AND_DIFFUSE 0x1602 +#define GL_COLOR_INDEXES 0x1603 +/* GL_AMBIENT */ +/* GL_DIFFUSE */ +/* GL_SPECULAR */ + +/* MatrixMode */ +#define GL_MODELVIEW 0x1700 +#define GL_PROJECTION 0x1701 +#define GL_TEXTURE 0x1702 + +/* MeshMode1 */ +/* GL_POINT */ +/* GL_LINE */ + +/* MeshMode2 */ +/* GL_POINT */ +/* GL_LINE */ +/* GL_FILL */ + +/* NormalPointerType */ +/* GL_BYTE */ +/* GL_SHORT */ +/* GL_INT */ +/* GL_FLOAT */ +/* GL_DOUBLE */ + +/* PixelCopyType */ +#define GL_COLOR 0x1800 +#define GL_DEPTH 0x1801 +#define GL_STENCIL 0x1802 + +/* PixelFormat */ +#define GL_COLOR_INDEX 0x1900 +#define GL_STENCIL_INDEX 0x1901 +#define GL_DEPTH_COMPONENT 0x1902 +#define GL_RED 0x1903 +#define GL_GREEN 0x1904 +#define GL_BLUE 0x1905 +#define GL_ALPHA 0x1906 +#define GL_RGB 0x1907 +#define GL_RGBA 0x1908 +#define GL_LUMINANCE 0x1909 +#define GL_LUMINANCE_ALPHA 0x190A + +/* PixelMap */ +/* GL_PIXEL_MAP_I_TO_I */ +/* GL_PIXEL_MAP_S_TO_S */ +/* GL_PIXEL_MAP_I_TO_R */ +/* GL_PIXEL_MAP_I_TO_G */ +/* GL_PIXEL_MAP_I_TO_B */ +/* GL_PIXEL_MAP_I_TO_A */ +/* GL_PIXEL_MAP_R_TO_R */ +/* GL_PIXEL_MAP_G_TO_G */ +/* GL_PIXEL_MAP_B_TO_B */ +/* GL_PIXEL_MAP_A_TO_A */ + +/* PixelStore */ +/* GL_UNPACK_SWAP_BYTES */ +/* GL_UNPACK_LSB_FIRST */ +/* GL_UNPACK_ROW_LENGTH */ +/* GL_UNPACK_SKIP_ROWS */ +/* GL_UNPACK_SKIP_PIXELS */ +/* GL_UNPACK_ALIGNMENT */ +/* GL_PACK_SWAP_BYTES */ +/* GL_PACK_LSB_FIRST */ +/* GL_PACK_ROW_LENGTH */ +/* GL_PACK_SKIP_ROWS */ +/* GL_PACK_SKIP_PIXELS */ +/* GL_PACK_ALIGNMENT */ + +/* PixelTransfer */ +/* GL_MAP_COLOR */ +/* GL_MAP_STENCIL */ +/* GL_INDEX_SHIFT */ +/* GL_INDEX_OFFSET */ +/* GL_RED_SCALE */ +/* GL_RED_BIAS */ +/* GL_GREEN_SCALE */ +/* GL_GREEN_BIAS */ +/* GL_BLUE_SCALE */ +/* GL_BLUE_BIAS */ +/* GL_ALPHA_SCALE */ +/* GL_ALPHA_BIAS */ +/* GL_DEPTH_SCALE */ +/* GL_DEPTH_BIAS */ + +/* PixelType */ +#define GL_BITMAP 0x1A00 +/* GL_BYTE */ +/* GL_UNSIGNED_BYTE */ +/* GL_SHORT */ +/* GL_UNSIGNED_SHORT */ +/* GL_INT */ +/* GL_UNSIGNED_INT */ +/* GL_FLOAT */ + +/* PolygonMode */ +#define GL_POINT 0x1B00 +#define GL_LINE 0x1B01 +#define GL_FILL 0x1B02 + +/* ReadBufferMode */ +/* GL_FRONT_LEFT */ +/* GL_FRONT_RIGHT */ +/* GL_BACK_LEFT */ +/* GL_BACK_RIGHT */ +/* GL_FRONT */ +/* GL_BACK */ +/* GL_LEFT */ +/* GL_RIGHT */ +/* GL_AUX0 */ +/* GL_AUX1 */ +/* GL_AUX2 */ +/* GL_AUX3 */ + +/* RenderingMode */ +#define GL_RENDER 0x1C00 +#define GL_FEEDBACK 0x1C01 +#define GL_SELECT 0x1C02 + +/* ShadingModel */ +#define GL_FLAT 0x1D00 +#define GL_SMOOTH 0x1D01 + + +/* StencilFunction */ +/* GL_NEVER */ +/* GL_LESS */ +/* GL_EQUAL */ +/* GL_LEQUAL */ +/* GL_GREATER */ +/* GL_NOTEQUAL */ +/* GL_GEQUAL */ +/* GL_ALWAYS */ + +/* StencilOp */ +/* GL_ZERO */ +#define GL_KEEP 0x1E00 +#define GL_REPLACE 0x1E01 +#define GL_INCR 0x1E02 +#define GL_DECR 0x1E03 +/* GL_INVERT */ + +/* StringName */ +#define GL_VENDOR 0x1F00 +#define GL_RENDERER 0x1F01 +#define GL_VERSION 0x1F02 +#define GL_EXTENSIONS 0x1F03 + +/* TextureCoordName */ +#define GL_S 0x2000 +#define GL_T 0x2001 +#define GL_R 0x2002 +#define GL_Q 0x2003 + +/* TexCoordPointerType */ +/* GL_SHORT */ +/* GL_INT */ +/* GL_FLOAT */ +/* GL_DOUBLE */ + +/* TextureEnvMode */ +#define GL_MODULATE 0x2100 +#define GL_DECAL 0x2101 +/* GL_BLEND */ +/* GL_REPLACE */ + +/* TextureEnvParameter */ +#define GL_TEXTURE_ENV_MODE 0x2200 +#define GL_TEXTURE_ENV_COLOR 0x2201 + +/* TextureEnvTarget */ +#define GL_TEXTURE_ENV 0x2300 + +/* TextureGenMode */ +#define GL_EYE_LINEAR 0x2400 +#define GL_OBJECT_LINEAR 0x2401 +#define GL_SPHERE_MAP 0x2402 + +/* TextureGenParameter */ +#define GL_TEXTURE_GEN_MODE 0x2500 +#define GL_OBJECT_PLANE 0x2501 +#define GL_EYE_PLANE 0x2502 + +/* TextureMagFilter */ +#define GL_NEAREST 0x2600 +#define GL_LINEAR 0x2601 + +/* TextureMinFilter */ +/* GL_NEAREST */ +/* GL_LINEAR */ +#define GL_NEAREST_MIPMAP_NEAREST 0x2700 +#define GL_LINEAR_MIPMAP_NEAREST 0x2701 +#define GL_NEAREST_MIPMAP_LINEAR 0x2702 +#define GL_LINEAR_MIPMAP_LINEAR 0x2703 + +/* TextureParameterName */ +#define GL_TEXTURE_MAG_FILTER 0x2800 +#define GL_TEXTURE_MIN_FILTER 0x2801 +#define GL_TEXTURE_WRAP_S 0x2802 +#define GL_TEXTURE_WRAP_T 0x2803 +/* GL_TEXTURE_BORDER_COLOR */ +/* GL_TEXTURE_PRIORITY */ + +/* TextureTarget */ +/* GL_TEXTURE_1D */ +/* GL_TEXTURE_2D */ +/* GL_PROXY_TEXTURE_1D */ +/* GL_PROXY_TEXTURE_2D */ + +/* TextureWrapMode */ +#define GL_CLAMP 0x2900 +#define GL_REPEAT 0x2901 + +/* VertexPointerType */ +/* GL_SHORT */ +/* GL_INT */ +/* GL_FLOAT */ +/* GL_DOUBLE */ + +/* ClientAttribMask */ +#define GL_CLIENT_PIXEL_STORE_BIT 0x00000001 +#define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002 +#define GL_CLIENT_ALL_ATTRIB_BITS 0xffffffff + +/* polygon_offset */ +#define GL_POLYGON_OFFSET_FACTOR 0x8038 +#define GL_POLYGON_OFFSET_UNITS 0x2A00 +#define GL_POLYGON_OFFSET_POINT 0x2A01 +#define GL_POLYGON_OFFSET_LINE 0x2A02 +#define GL_POLYGON_OFFSET_FILL 0x8037 + +/* texture */ +#define GL_ALPHA4 0x803B +#define GL_ALPHA8 0x803C +#define GL_ALPHA12 0x803D +#define GL_ALPHA16 0x803E +#define GL_LUMINANCE4 0x803F +#define GL_LUMINANCE8 0x8040 +#define GL_LUMINANCE12 0x8041 +#define GL_LUMINANCE16 0x8042 +#define GL_LUMINANCE4_ALPHA4 0x8043 +#define GL_LUMINANCE6_ALPHA2 0x8044 +#define GL_LUMINANCE8_ALPHA8 0x8045 +#define GL_LUMINANCE12_ALPHA4 0x8046 +#define GL_LUMINANCE12_ALPHA12 0x8047 +#define GL_LUMINANCE16_ALPHA16 0x8048 +#define GL_INTENSITY 0x8049 +#define GL_INTENSITY4 0x804A +#define GL_INTENSITY8 0x804B +#define GL_INTENSITY12 0x804C +#define GL_INTENSITY16 0x804D +#define GL_R3_G3_B2 0x2A10 +#define GL_RGB4 0x804F +#define GL_RGB5 0x8050 +#define GL_RGB8 0x8051 +#define GL_RGB10 0x8052 +#define GL_RGB12 0x8053 +#define GL_RGB16 0x8054 +#define GL_RGBA2 0x8055 +#define GL_RGBA4 0x8056 +#define GL_RGB5_A1 0x8057 +#define GL_RGBA8 0x8058 +#define GL_RGB10_A2 0x8059 +#define GL_RGBA12 0x805A +#define GL_RGBA16 0x805B +#define GL_TEXTURE_RED_SIZE 0x805C +#define GL_TEXTURE_GREEN_SIZE 0x805D +#define GL_TEXTURE_BLUE_SIZE 0x805E +#define GL_TEXTURE_ALPHA_SIZE 0x805F +#define GL_TEXTURE_LUMINANCE_SIZE 0x8060 +#define GL_TEXTURE_INTENSITY_SIZE 0x8061 +#define GL_PROXY_TEXTURE_1D 0x8063 +#define GL_PROXY_TEXTURE_2D 0x8064 + +/* texture_object */ +#define GL_TEXTURE_PRIORITY 0x8066 +#define GL_TEXTURE_RESIDENT 0x8067 +#define GL_TEXTURE_BINDING_1D 0x8068 +#define GL_TEXTURE_BINDING_2D 0x8069 + +/* vertex_array */ +#define GL_VERTEX_ARRAY 0x8074 +#define GL_NORMAL_ARRAY 0x8075 +#define GL_COLOR_ARRAY 0x8076 +#define GL_INDEX_ARRAY 0x8077 +#define GL_TEXTURE_COORD_ARRAY 0x8078 +#define GL_EDGE_FLAG_ARRAY 0x8079 +#define GL_VERTEX_ARRAY_SIZE 0x807A +#define GL_VERTEX_ARRAY_TYPE 0x807B +#define GL_VERTEX_ARRAY_STRIDE 0x807C +#define GL_NORMAL_ARRAY_TYPE 0x807E +#define GL_NORMAL_ARRAY_STRIDE 0x807F +#define GL_COLOR_ARRAY_SIZE 0x8081 +#define GL_COLOR_ARRAY_TYPE 0x8082 +#define GL_COLOR_ARRAY_STRIDE 0x8083 +#define GL_INDEX_ARRAY_TYPE 0x8085 +#define GL_INDEX_ARRAY_STRIDE 0x8086 +#define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088 +#define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089 +#define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A +#define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C +#define GL_VERTEX_ARRAY_POINTER 0x808E +#define GL_NORMAL_ARRAY_POINTER 0x808F +#define GL_COLOR_ARRAY_POINTER 0x8090 +#define GL_INDEX_ARRAY_POINTER 0x8091 +#define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092 +#define GL_EDGE_FLAG_ARRAY_POINTER 0x8093 +#define GL_V2F 0x2A20 +#define GL_V3F 0x2A21 +#define GL_C4UB_V2F 0x2A22 +#define GL_C4UB_V3F 0x2A23 +#define GL_C3F_V3F 0x2A24 +#define GL_N3F_V3F 0x2A25 +#define GL_C4F_N3F_V3F 0x2A26 +#define GL_T2F_V3F 0x2A27 +#define GL_T4F_V4F 0x2A28 +#define GL_T2F_C4UB_V3F 0x2A29 +#define GL_T2F_C3F_V3F 0x2A2A +#define GL_T2F_N3F_V3F 0x2A2B +#define GL_T2F_C4F_N3F_V3F 0x2A2C +#define GL_T4F_C4F_N3F_V4F 0x2A2D + +/* Extensions */ +#define GL_EXT_vertex_array 1 +#define GL_EXT_bgra 1 +#define GL_EXT_paletted_texture 1 +#define GL_WIN_swap_hint 1 +#define GL_WIN_draw_range_elements 1 +// #define GL_WIN_phong_shading 1 +// #define GL_WIN_specular_fog 1 + +/* EXT_vertex_array */ +#define GL_VERTEX_ARRAY_EXT 0x8074 +#define GL_NORMAL_ARRAY_EXT 0x8075 +#define GL_COLOR_ARRAY_EXT 0x8076 +#define GL_INDEX_ARRAY_EXT 0x8077 +#define GL_TEXTURE_COORD_ARRAY_EXT 0x8078 +#define GL_EDGE_FLAG_ARRAY_EXT 0x8079 +#define GL_VERTEX_ARRAY_SIZE_EXT 0x807A +#define GL_VERTEX_ARRAY_TYPE_EXT 0x807B +#define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C +#define GL_VERTEX_ARRAY_COUNT_EXT 0x807D +#define GL_NORMAL_ARRAY_TYPE_EXT 0x807E +#define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F +#define GL_NORMAL_ARRAY_COUNT_EXT 0x8080 +#define GL_COLOR_ARRAY_SIZE_EXT 0x8081 +#define GL_COLOR_ARRAY_TYPE_EXT 0x8082 +#define GL_COLOR_ARRAY_STRIDE_EXT 0x8083 +#define GL_COLOR_ARRAY_COUNT_EXT 0x8084 +#define GL_INDEX_ARRAY_TYPE_EXT 0x8085 +#define GL_INDEX_ARRAY_STRIDE_EXT 0x8086 +#define GL_INDEX_ARRAY_COUNT_EXT 0x8087 +#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088 +#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089 +#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A +#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B +#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C +#define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D +#define GL_VERTEX_ARRAY_POINTER_EXT 0x808E +#define GL_NORMAL_ARRAY_POINTER_EXT 0x808F +#define GL_COLOR_ARRAY_POINTER_EXT 0x8090 +#define GL_INDEX_ARRAY_POINTER_EXT 0x8091 +#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092 +#define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093 +#define GL_DOUBLE_EXT GL_DOUBLE + +/* EXT_bgra */ +#define GL_BGR_EXT 0x80E0 +#define GL_BGRA_EXT 0x80E1 + +/* EXT_paletted_texture */ + +/* These must match the GL_COLOR_TABLE_*_SGI enumerants */ +#define GL_COLOR_TABLE_FORMAT_EXT 0x80D8 +#define GL_COLOR_TABLE_WIDTH_EXT 0x80D9 +#define GL_COLOR_TABLE_RED_SIZE_EXT 0x80DA +#define GL_COLOR_TABLE_GREEN_SIZE_EXT 0x80DB +#define GL_COLOR_TABLE_BLUE_SIZE_EXT 0x80DC +#define GL_COLOR_TABLE_ALPHA_SIZE_EXT 0x80DD +#define GL_COLOR_TABLE_LUMINANCE_SIZE_EXT 0x80DE +#define GL_COLOR_TABLE_INTENSITY_SIZE_EXT 0x80DF + +#define GL_COLOR_INDEX1_EXT 0x80E2 +#define GL_COLOR_INDEX2_EXT 0x80E3 +#define GL_COLOR_INDEX4_EXT 0x80E4 +#define GL_COLOR_INDEX8_EXT 0x80E5 +#define GL_COLOR_INDEX12_EXT 0x80E6 +#define GL_COLOR_INDEX16_EXT 0x80E7 + +/* WIN_draw_range_elements */ +#define GL_MAX_ELEMENTS_VERTICES_WIN 0x80E8 +#define GL_MAX_ELEMENTS_INDICES_WIN 0x80E9 + +/* WIN_phong_shading */ +#define GL_PHONG_WIN 0x80EA +#define GL_PHONG_HINT_WIN 0x80EB + +/* WIN_specular_fog */ +#define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC + +/* For compatibility with OpenGL v1.0 */ +#define GL_LOGIC_OP GL_INDEX_LOGIC_OP +#define GL_TEXTURE_COMPONENTS GL_TEXTURE_INTERNAL_FORMAT +#include +#endif // QT_NO_OPENGL diff --git a/generator_50/reporthandler.cpp b/generator_50/reporthandler.cpp new file mode 100644 index 00000000..8dc368a9 --- /dev/null +++ b/generator_50/reporthandler.cpp @@ -0,0 +1,74 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "reporthandler.h" +#include "typesystem.h" + +int ReportHandler::m_warning_count = 0; +int ReportHandler::m_suppressed_count = 0; +QString ReportHandler::m_context; +ReportHandler::DebugLevel ReportHandler::m_debug_level = NoDebug; +QSet ReportHandler::m_reported_warnings; + + +void ReportHandler::warning(const QString &text) +{ + QString warningText = QString("WARNING(%1) :: %2").arg(m_context).arg(text); + + TypeDatabase *db = TypeDatabase::instance(); + if (db && db->isSuppressedWarning(warningText)) { + ++m_suppressed_count; + } else if (!m_reported_warnings.contains(warningText)) { + qDebug("%s", qPrintable(warningText)); + ++m_warning_count; + + m_reported_warnings.insert(warningText); + } +} + +void ReportHandler::debug(DebugLevel level, const QString &text) +{ + if (m_debug_level == NoDebug) + return; + + if (level <= m_debug_level) + qDebug(" - DEBUG(%s) :: %s", qPrintable(m_context), qPrintable(text)); +} diff --git a/generator_50/reporthandler.h b/generator_50/reporthandler.h new file mode 100644 index 00000000..030764b8 --- /dev/null +++ b/generator_50/reporthandler.h @@ -0,0 +1,83 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef REPORTHANDLER_H +#define REPORTHANDLER_H + +#include +#include + +class ReportHandler +{ +public: + enum DebugLevel { NoDebug, SparseDebug, MediumDebug, FullDebug }; + + static void setContext(const QString &context) { m_context = context; } + + static DebugLevel debugLevel() { return m_debug_level; } + static void setDebugLevel(DebugLevel level) { m_debug_level = level; } + + static int warningCount() { return m_warning_count; } + + static int suppressedCount() { return m_suppressed_count; } + + static void warning(const QString &str); + + static void debugSparse(const QString &str) { + debug(SparseDebug, str); + } + static void debugMedium(const QString &str) { + debug(MediumDebug, str); + } + static void debugFull(const QString &str) { + debug(FullDebug, str); + } + static void debug(DebugLevel level, const QString &str); + +private: + static int m_warning_count; + static int m_suppressed_count; + static DebugLevel m_debug_level; + static QString m_context; + static QSet m_reported_warnings; +}; + +#endif // REPORTHANDLER_H diff --git a/generator_50/setupgenerator.cpp b/generator_50/setupgenerator.cpp new file mode 100644 index 00000000..4b33633d --- /dev/null +++ b/generator_50/setupgenerator.cpp @@ -0,0 +1,306 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "setupgenerator.h" +#include "shellgenerator.h" +#include "reporthandler.h" +#include "fileout.h" + +//#define Q_SCRIPT_LAZY_GENERATOR + +void SetupGenerator::addClass(const QString& package, const AbstractMetaClass *cls) +{ + packHash[package].append(cls); +} + +void maybeDeclareMetaType(QTextStream &stream, const QString &typeName, + QSet ®isteredTypeNames); +bool hasDefaultConstructor(const AbstractMetaClass *meta_class); + +static QStringList getOperatorCodes(const AbstractMetaClass* cls) { + QSet operatorCodes; + AbstractMetaFunctionList returned; + AbstractMetaFunctionList functions = cls->functions(); + foreach (AbstractMetaFunction *function, functions) { + if (function->originalName().startsWith("operator")) { + QString op = function->originalName().mid(8); + operatorCodes.insert(op); + } + } + QSet r; + foreach(QString op, operatorCodes.toList()) { + if (op == ">" || op == "<" || op == ">=" || op == "<=" || op == "==" || op == "!=") { + r.insert("PythonQt::Type_RichCompare"); + } else if (op == "+") { + r.insert("PythonQt::Type_Add"); + } else if (op == "-") { + r.insert("PythonQt::Type_Subtract"); + } else if (op == "/") { + r.insert("PythonQt::Type_Divide"); + } else if (op == "*") { + r.insert("PythonQt::Type_Multiply"); + } else if (op == "%") { + r.insert("PythonQt::Type_Mod"); + } else if (op == "&") { + r.insert("PythonQt::Type_And"); + } else if (op == "|") { + r.insert("PythonQt::Type_Or"); + } else if (op == "^") { + r.insert("PythonQt::Type_Xor"); + } else if (op == "~") { + r.insert("PythonQt::Type_Invert"); + + } else if (op == "+=") { + r.insert("PythonQt::Type_InplaceAdd"); + } else if (op == "-=") { + r.insert("PythonQt::Type_InplaceSubtract"); + } else if (op == "/=") { + r.insert("PythonQt::Type_InplaceDivide"); + } else if (op == "*=") { + r.insert("PythonQt::Type_InplaceMultiply"); + } else if (op == "%=") { + r.insert("PythonQt::Type_InplaceMod"); + } else if (op == "&=") { + r.insert("PythonQt::Type_InplaceAnd"); + } else if (op == "|=") { + r.insert("PythonQt::Type_InplaceOr"); + } else if (op == "^=") { + r.insert("PythonQt::Type_InplaceXor"); + } + } + if (cls->hasDefaultIsNull()) { + r.insert("PythonQt::Type_NonZero"); + } + QStringList result = r.toList(); + return result; +} + +static bool class_less_than(const AbstractMetaClass *a, const AbstractMetaClass *b) +{ + return a->name() < b->name(); +} + +void SetupGenerator::generate() +{ + AbstractMetaClassList classes_with_polymorphic_id; + { + QHashIterator > pack(packHash); + while (pack.hasNext()) { + pack.next(); + QList list = pack.value(); + foreach (const AbstractMetaClass *cls, list) { + if (cls->typeEntry()->isPolymorphicBase()) { + classes_with_polymorphic_id.append((AbstractMetaClass*)cls); + } + } + } + } + qSort(classes_with_polymorphic_id.begin(), classes_with_polymorphic_id.end(), class_less_than); + + QHashIterator > pack(packHash); + while (pack.hasNext()) { + pack.next(); + QList list = pack.value(); + if (list.isEmpty()) + continue; + qSort(list.begin(), list.end(), class_less_than); + + QString packKey = pack.key(); + QString packName = pack.key(); + QStringList components = packName.split("_"); + if ((components.size() > 2) && (components.at(0) == "com") + && (components.at(1) == "trolltech")) { + // kill com.trolltech in key + components.removeAt(0); + components.removeAt(0); + } + + QString shortPackName; + foreach (QString comp, components) { + comp[0] = comp[0].toUpper(); + shortPackName += comp; + } + // add missing camel case (workaround..) + if (shortPackName == "QtWebkit") { + shortPackName = "QtWebKit"; + } else if (shortPackName == "QtXmlpatterns") { + shortPackName = "QtXmlPatterns"; + } else if (shortPackName == "QtOpengl") { + shortPackName = "QtOpenGL"; + } else if (shortPackName == "QtUitools") { + shortPackName = "QtUiTools"; + } + + + { + QString fileName(packName + "/" + packKey + "_init.cpp"); + FileOut initFile(m_out_dir + "/generated_cpp/" + fileName); + ReportHandler::debugSparse(QString("generating: %1").arg(fileName)); + QTextStream &s = initFile.stream; + + s << "#include " << endl; + + for (int i=0; i<(list.count()+MAX_CLASSES_PER_FILE-1) / MAX_CLASSES_PER_FILE; i++) { + s << "#include \"" << packKey << QString::number(i) << ".h\"" << endl; + } + s << endl; + + QStringList polymorphicHandlers; + if (!packName.endsWith("_builtin")) { + polymorphicHandlers = writePolymorphicHandler(s, list.at(0)->package(), classes_with_polymorphic_id, list); + s << endl; + } + + // declare individual class creation functions + s << "void PythonQt_init_" << shortPackName << "(PyObject* module) {" << endl; + + if (shortPackName.endsWith("Builtin")) { + shortPackName = shortPackName.mid(0, shortPackName.length()-strlen("builtin")); + } + + QStringList cppClassNames; + foreach (const AbstractMetaClass *cls, list) { + + QString shellCreator; + if (cls->generateShellClass()) { + shellCreator = ", PythonQtSetInstanceWrapperOnShell<" + ShellGenerator::shellClassName(cls) + ">"; + } else { + shellCreator = ", NULL"; + } + QString operatorCodes = getOperatorCodes(cls).join("|"); + if (operatorCodes.isEmpty()) { + operatorCodes = "0"; + } + if (cls->isQObject()) { + s << "PythonQt::priv()->registerClass(&" << cls->qualifiedCppName() << "::staticMetaObject, \"" << shortPackName <<"\", PythonQtCreateObjectname() << ">" << shellCreator << ", module, " << operatorCodes <<");" << endl; + } else { + QString baseName = cls->baseClass()?cls->baseClass()->qualifiedCppName():""; + s << "PythonQt::priv()->registerCPPClass(\""<< cls->qualifiedCppName() << "\", \"" << baseName << "\", \"" << shortPackName <<"\", PythonQtCreateObjectname() << ">" << shellCreator << ", module, " << operatorCodes <<");" << endl; + } + foreach(AbstractMetaClass* interface, cls->interfaces()) { + // the interface might be our own class... (e.g. QPaintDevice) + if (interface->qualifiedCppName() != cls->qualifiedCppName()) { + s << "PythonQt::self()->addParentClass(\""<< cls->qualifiedCppName() << "\", \"" << interface->qualifiedCppName() << "\",PythonQtUpcastingOffset<" << cls->qualifiedCppName() <<","<qualifiedCppName()<<">());" << endl; + } + } + } + s << endl; + foreach (QString handler, polymorphicHandlers) { + s << "PythonQt::self()->addPolymorphicHandler(\""<< handler << "\", polymorphichandler_" << handler << ");" << endl; + } + + s << "}"; + s << endl; + } + } +} + +QStringList SetupGenerator::writePolymorphicHandler(QTextStream &s, const QString &package, + const AbstractMetaClassList &polybase, QList& allClasses) +{ + QStringList handlers; + foreach (AbstractMetaClass *cls, polybase) { + const ComplexTypeEntry *centry = cls->typeEntry(); + if (!centry->isPolymorphicBase()) + continue; + bool isGraphicsItem = (cls->qualifiedCppName()=="QGraphicsItem"); + + bool first = true; + foreach (const AbstractMetaClass *clazz, allClasses) { + bool inherits = false; + if (isGraphicsItem) { + const AbstractMetaClass *currentClazz = clazz; + while (!inherits && currentClazz) { + foreach(AbstractMetaClass* interfaze, currentClazz->interfaces()) { + if (interfaze->qualifiedCppName()=="QGraphicsItem") { + inherits = true; + break; + } + } + currentClazz = currentClazz->baseClass(); + } + } else { + inherits = clazz->inheritsFrom(cls); + } + if (clazz->package() == package && inherits) { + if (!clazz->typeEntry()->polymorphicIdValue().isEmpty()) { + // On first find, open the function + if (first) { + first = false; + + QString handler = cls->name(); + handlers.append(handler); + + s << "static void* polymorphichandler_" << handler + << "(const void *ptr, const char **class_name)" << endl + << "{" << endl + << " Q_ASSERT(ptr != 0);" << endl + << " " << cls->qualifiedCppName() << " *object = (" + << cls->qualifiedCppName() << " *)ptr;" << endl; + } + + // For each, add case label + QString polyId = clazz->typeEntry()->polymorphicIdValue(); + s << " if (" + << polyId.replace("%1", "object") + << ") {" << endl + << " *class_name = \"" << clazz->name() << "\";" << endl + << " return (" << clazz->qualifiedCppName() << "*)object;" << endl + << " }" << endl; + } else { + QString warning = QString("class '%1' inherits from polymorphic class '%2', but has no polymorphic id set") + .arg(clazz->name()) + .arg(cls->name()); + + ReportHandler::warning(warning); + } + } + } + + // Close the function if it has been opened + if (!first) { + s << " return NULL;" << endl + << "}" << endl; + } + } + + return handlers; +} diff --git a/generator_50/setupgenerator.h b/generator_50/setupgenerator.h new file mode 100644 index 00000000..84dc0ce0 --- /dev/null +++ b/generator_50/setupgenerator.h @@ -0,0 +1,68 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef SETUPGENERATOR_H +#define SETUPGENERATOR_H + +#include "generator.h" +#include "metaqtscript.h" + +class SetupGenerator : public Generator +{ + Q_OBJECT + + public: + virtual void generate(); + + void addClass(const QString& package, const AbstractMetaClass *cls); + + static void writeInclude(QTextStream &stream, const Include &inc); + + static bool isSpecialStreamingOperator(const AbstractMetaFunction *fun); + + private: + QStringList writePolymorphicHandler(QTextStream &s, const QString &package, + const AbstractMetaClassList &polyBaseClasses, QList& allClasses); + + QHash > packHash; +}; +#endif // SETUPGENERATOR_H + diff --git a/generator_50/shellgenerator.cpp b/generator_50/shellgenerator.cpp new file mode 100644 index 00000000..f60d11bb --- /dev/null +++ b/generator_50/shellgenerator.cpp @@ -0,0 +1,381 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "shellgenerator.h" +#include "reporthandler.h" + +#include "metaqtscript.h" + +bool ShellGenerator::shouldGenerate(const AbstractMetaClass *meta_class) const +{ + uint cg = meta_class->typeEntry()->codeGeneration(); + if (meta_class->name().startsWith("QtScript")) return false; + if (meta_class->name().startsWith("QFuture")) return false; + if (meta_class->name().startsWith("Global")) return false; + if (meta_class->name().startsWith("QStyleOptionComplex")) return false; + if (meta_class->name().startsWith("QTextLayout")) return false; + if (meta_class->name().startsWith("QPersistentModelIndex")) return false; + return ((cg & TypeEntry::GenerateCode) != 0); +} + +void ShellGenerator::writeTypeInfo(QTextStream &s, const AbstractMetaType *type, Option options) +{ + if ((options & OriginalTypeDescription) && !type->originalTypeDescription().isEmpty()) { + s << type->originalTypeDescription(); + return; + } + + if (type->isArray()) { + writeTypeInfo(s, type->arrayElementType(), options); + if (options & ArrayAsPointer) { + s << "*"; + } else { + s << "[" << type->arrayElementCount() << "]"; + } + return; + } + + const TypeEntry *te = type->typeEntry(); + + if (type->isConstant() && !(options & ExcludeConst)) + s << "const "; + + if ((options & EnumAsInts) && (te->isEnum() || te->isFlags())) { + s << "int"; + } else if (te->isFlags()) { + s << ((FlagsTypeEntry *) te)->originalName(); + } else { + s << fixCppTypeName(te->qualifiedCppName()); + } + + if (type->instantiations().size() > 0 + && (!type->isContainer() + || (static_cast(te))->type() != ContainerTypeEntry::StringListContainer)) { + s << '<'; + QList args = type->instantiations(); + bool nested_template = false; + for (int i=0; iisContainer(); + writeTypeInfo(s, args.at(i)); + } + if (nested_template) + s << ' '; + s << '>'; + } + + s << QString(type->indirections(), '*'); + + if (type->isReference() && !(options & ExcludeReference) && !(options & ConvertReferenceToPtr)) + s << "&"; + + if (type->isReference() && (options & ConvertReferenceToPtr)) { + s << "*"; + } + if (!(options & SkipName)) + s << ' '; +} + + +void ShellGenerator::writeFunctionArguments(QTextStream &s, const AbstractMetaClass* owner, + const AbstractMetaArgumentList &arguments, + Option option, + int numArguments) +{ + if (numArguments < 0) numArguments = arguments.size(); + + for (int i=0; itype(), option); + if (!(option & SkipName)) + s << " " << arg->argumentName(); + if ((option & IncludeDefaultExpression) && !arg->originalDefaultValueExpression().isEmpty()) { + s << " = "; + + QString expr = arg->originalDefaultValueExpression(); + if (expr != "0") { + QString qualifier; + if (arg->type()->typeEntry()->isEnum() && expr.indexOf("::") < 0) { + qualifier = ((EnumTypeEntry *)arg->type()->typeEntry())->qualifier(); + } else if (arg->type()->typeEntry()->isFlags() && expr.indexOf("::") < 0) { + qualifier = ((FlagsTypeEntry *)arg->type()->typeEntry())->originator()->qualifier(); + } + if (!qualifier.isEmpty()) { + s << qualifier << "::"; + } + } + if (expr.contains("defaultConnection")) { + expr.replace("defaultConnection","QSqlDatabase::defaultConnection"); + } + if (expr == "MediaSource()") { + expr = "Phonon::MediaSource()"; + } + + s << expr; + } + } +} + +/*! + * Writes the function \a meta_function signature to the textstream \a s. + * + * The \a name_prefix can be used to give the function name a prefix, + * like "__public_" or "__override_" and \a classname_prefix can + * be used to give the class name a prefix. + * + * The \a option flags can be used to tweak various parameters, such as + * showing static, original vs renamed name, underscores for space etc. + * + * The \a extra_arguments list is a list of extra arguments on the + * form "bool static_call". + */ + +void ShellGenerator::writeFunctionSignature(QTextStream &s, + const AbstractMetaFunction *meta_function, + const AbstractMetaClass *implementor, + const QString &name_prefix, + Option option, + const QString &classname_prefix, + const QStringList &extra_arguments, + int numArguments) +{ +// ### remove the implementor + AbstractMetaType *function_type = meta_function->type(); + + + if ((option & SkipReturnType) == 0) { + if (function_type) { + writeTypeInfo(s, function_type, option); + s << " "; + } else if (!meta_function->isConstructor()) { + s << "void "; + } + } + + if (implementor) { + if (classname_prefix.isEmpty()) + s << wrapperClassName(implementor) << "::"; + else + s << classname_prefix << implementor->name() << "::"; + } + + + QString function_name; + if (option & OriginalName) + function_name = meta_function->originalName(); + else + function_name = meta_function->name(); + + if (option & UnderscoreSpaces) + function_name = function_name.replace(' ', '_'); + + if (meta_function->isConstructor()) + function_name = meta_function->ownerClass()->name(); + + if (meta_function->isStatic() && (option & ShowStatic)) { + function_name = "static_" + meta_function->ownerClass()->name() + "_" + function_name; + } + + if (function_name.startsWith("operator")) { + function_name = meta_function->name(); + } + + if (meta_function->attributes() & AbstractMetaAttributes::SetterFunction) + s << "py_set_"; + else if (meta_function->attributes() & AbstractMetaAttributes::GetterFunction) + s << "py_get_"; + + s << name_prefix << function_name; + + s << "("; + + if ((option & FirstArgIsWrappedObject) && meta_function->ownerClass() && !meta_function->isConstructor() && !meta_function->isStatic()) { + s << meta_function->ownerClass()->qualifiedCppName() << "* theWrappedObject"; + if (meta_function->arguments().size() != 0) { + s << ", "; + } + } + + writeFunctionArguments(s, meta_function->ownerClass(), meta_function->arguments(), Option(option & Option(~ConvertReferenceToPtr)), numArguments); + + // The extra arguments... + for (int i=0; i 0 || meta_function->arguments().size() != 0) + s << ", "; + s << extra_arguments.at(i); + } + + s << ")"; + if (meta_function->isConstant()) + s << " const"; + if (!meta_function->exception().isEmpty()) + s << " " << meta_function->exception(); +} +bool function_sorter(AbstractMetaFunction *a, AbstractMetaFunction *b); + +AbstractMetaFunctionList ShellGenerator::getFunctionsToWrap(const AbstractMetaClass* meta_class) +{ + AbstractMetaFunctionList functions = meta_class->queryFunctions( + AbstractMetaClass::NormalFunctions | AbstractMetaClass::WasPublic + | AbstractMetaClass::NotRemovedFromTargetLang | AbstractMetaClass::ClassImplements + ); + AbstractMetaFunctionList functions2 = meta_class->queryFunctions( + AbstractMetaClass::VirtualFunctions | AbstractMetaClass::WasVisible + | AbstractMetaClass::NotRemovedFromTargetLang | AbstractMetaClass::ClassImplements + ); + QSet set1 = QSet::fromList(functions); + foreach(AbstractMetaFunction* func, functions2) { + set1.insert(func); + } + + AbstractMetaFunctionList resultFunctions; + + foreach(AbstractMetaFunction* func, set1.toList()) { + if (!func->isAbstract() && func->implementingClass()==meta_class) { + resultFunctions << func; + } + } + qSort(resultFunctions.begin(), resultFunctions.end(), function_sorter); + return resultFunctions; +} + +AbstractMetaFunctionList ShellGenerator::getVirtualFunctionsForShell(const AbstractMetaClass* meta_class) +{ + AbstractMetaFunctionList functions = meta_class->queryFunctions( + AbstractMetaClass::VirtualFunctions | AbstractMetaClass::WasVisible +// | AbstractMetaClass::NotRemovedFromTargetLang + ); + qSort(functions.begin(), functions.end(), function_sorter); + return functions; +} + +AbstractMetaFunctionList ShellGenerator::getProtectedFunctionsThatNeedPromotion(const AbstractMetaClass* meta_class) +{ + AbstractMetaFunctionList functions; + AbstractMetaFunctionList functions1 = getFunctionsToWrap(meta_class); + foreach(AbstractMetaFunction* func, functions1) { + if (!func->isPublic() || func->isVirtual()) { + functions << func; + } + } + qSort(functions.begin(), functions.end(), function_sorter); + return functions; +} + +/*! +Writes the include defined by \a inc to \a stream. +*/ +void ShellGenerator::writeInclude(QTextStream &stream, const Include &inc) +{ + if (inc.name.isEmpty()) + return; + if (inc.type == Include::TargetLangImport) + return; + stream << "#include "; + if (inc.type == Include::IncludePath) + stream << "<"; + else + stream << "\""; + stream << inc.name; + if (inc.type == Include::IncludePath) + stream << ">"; + else + stream << "\""; + stream << endl; +} + +/*! +Returns true if the given function \a fun is operator>>() or +operator<<() that streams from/to a Q{Data,Text}Stream, false +otherwise. +*/ +bool ShellGenerator::isSpecialStreamingOperator(const AbstractMetaFunction *fun) +{ + return ((fun->functionType() == AbstractMetaFunction::GlobalScopeFunction) + && (fun->arguments().size() == 1) + && (((fun->originalName() == "operator>>") && (fun->modifiedName() == "readFrom")) + || ((fun->originalName() == "operator<<") && (fun->modifiedName() == "writeTo")))); +} + +bool ShellGenerator::isBuiltIn(const QString& name) { + + static QSet builtIn; + if (builtIn.isEmpty()) { + builtIn.insert("Qt"); + builtIn.insert("QFont"); + builtIn.insert("QPixmap"); + builtIn.insert("QBrush"); + builtIn.insert("QBitArray"); + builtIn.insert("QByteArray"); + builtIn.insert("QPalette"); + builtIn.insert("QPen"); + builtIn.insert("QIcon"); + builtIn.insert("QImage"); + builtIn.insert("QPolygon"); + builtIn.insert("QRegion"); + builtIn.insert("QBitmap"); + builtIn.insert("QCursor"); + builtIn.insert("QColor"); + builtIn.insert("QSizePolicy"); + builtIn.insert("QKeySequence"); + builtIn.insert("QTextLength"); + builtIn.insert("QTextFormat"); + builtIn.insert("QMatrix"); + builtIn.insert("QDate"); + builtIn.insert("QTime"); + builtIn.insert("QDateTime"); + builtIn.insert("QUrl"); + builtIn.insert("QLocale"); + builtIn.insert("QRect"); + builtIn.insert("QRectF"); + builtIn.insert("QSize"); + builtIn.insert("QSizeF"); + builtIn.insert("QLine"); + builtIn.insert("QLineF"); + builtIn.insert("QPoint"); + builtIn.insert("QPointF"); + builtIn.insert("QRegExp"); + } + return builtIn.contains(name); +} diff --git a/generator_50/shellgenerator.h b/generator_50/shellgenerator.h new file mode 100644 index 00000000..49fa7eec --- /dev/null +++ b/generator_50/shellgenerator.h @@ -0,0 +1,102 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef SHELLGENERATOR_H +#define SHELLGENERATOR_H + +#include "generator.h" +#include "metaqtscript.h" +#include "prigenerator.h" + +#define MAX_CLASSES_PER_FILE 30 + +class ShellGenerator : public Generator +{ + Q_OBJECT + +public: + virtual QString subDirectoryForClass(const AbstractMetaClass *cls) const + { + return "generated_cpp/" + cls->package().replace(".", "_") + "/"; + } + + static void writeTypeInfo(QTextStream &s, const AbstractMetaType *type, Option option = NoOption); + static void writeFunctionSignature(QTextStream &s, const AbstractMetaFunction *meta_function, + const AbstractMetaClass *implementor = 0, + const QString &name_prefix = QString(), + Option option = NoOption, + const QString &classname_prefix = QString(), + const QStringList &extra_arguments = QStringList(), + int numArguments = -1); + static void writeFunctionArguments(QTextStream &s, const AbstractMetaClass* owner, const AbstractMetaArgumentList &arguments, + Option option = NoOption, + int numArguments = -1); + + bool shouldGenerate(const AbstractMetaClass *meta_class) const; + + static QString shellClassName(const AbstractMetaClass *meta_class) { + return "PythonQtShell_" + meta_class->name(); + } + static QString wrapperClassName(const AbstractMetaClass *meta_class) { + return "PythonQtWrapper_" + meta_class->name(); + } + static QString promoterClassName(const AbstractMetaClass *meta_class) { + return "PythonQtPublicPromoter_" + meta_class->name(); + } + + static AbstractMetaFunctionList getFunctionsToWrap(const AbstractMetaClass* cls); + static AbstractMetaFunctionList getVirtualFunctionsForShell(const AbstractMetaClass* cls); + static AbstractMetaFunctionList getProtectedFunctionsThatNeedPromotion(const AbstractMetaClass* cls); + + // PythonQt builtins..., dont put them in pri files and dont register them, but generate the code + static bool isBuiltIn(const QString& name); + + static bool isSpecialStreamingOperator(const AbstractMetaFunction *fun); + + static void writeInclude(QTextStream &stream, const Include &inc); + + protected: + PriGenerator *priGenerator; + +}; + + +#endif // SHELLGENERATOR_H diff --git a/generator_50/shellheadergenerator.cpp b/generator_50/shellheadergenerator.cpp new file mode 100644 index 00000000..eb10ffcd --- /dev/null +++ b/generator_50/shellheadergenerator.cpp @@ -0,0 +1,309 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "shellheadergenerator.h" +#include "fileout.h" + +#include + +#include + +QString ShellHeaderGenerator::fileNameForClass(const AbstractMetaClass *meta_class) const +{ + return QString("PythonQtWrapper_%1.h").arg(meta_class->name()); +} + + +void ShellHeaderGenerator::writeFieldAccessors(QTextStream &s, const AbstractMetaField *field) +{ + const AbstractMetaFunction *setter = field->setter(); + const AbstractMetaFunction *getter = field->getter(); + + // static fields are not supported (yet?) + if (setter->isStatic()) return; + + // Uuid data4 did not work (TODO: move to typesystem...( + if (field->enclosingClass()->name()=="QUuid" && setter->name()=="data4") return; + if (field->enclosingClass()->name()=="QIPv6Address") return; + + if (!field->type()->isConstant()) { + writeFunctionSignature(s, setter, 0, QString(), + Option(ConvertReferenceToPtr | FirstArgIsWrappedObject| IncludeDefaultExpression | ShowStatic | UnderscoreSpaces)); + s << "{ theWrappedObject->" << field->name() << " = " << setter->arguments()[0]->argumentName() << "; }\n"; + } + + writeFunctionSignature(s, getter, 0, QString(), + Option(ConvertReferenceToPtr | FirstArgIsWrappedObject| IncludeDefaultExpression | OriginalName | ShowStatic | UnderscoreSpaces)); + s << "{ return theWrappedObject->" << field->name() << "; }\n"; +} + +void ShellHeaderGenerator::write(QTextStream &s, const AbstractMetaClass *meta_class) +{ + QString builtIn = ShellGenerator::isBuiltIn(meta_class->name())?"_builtin":""; + QString pro_file_name = meta_class->package().replace(".", "_") + builtIn + "/" + meta_class->package().replace(".", "_") + builtIn + ".pri"; + priGenerator->addHeader(pro_file_name, fileNameForClass(meta_class)); + setupGenerator->addClass(meta_class->package().replace(".", "_") + builtIn, meta_class); + + QString include_block = "PYTHONQTWRAPPER_" + meta_class->name().toUpper() + "_H"; + + s << "#ifndef " << include_block << endl + << "#define " << include_block << endl << endl; + + Include inc = meta_class->typeEntry()->include(); + ShellGenerator::writeInclude(s, inc); + + s << "#include " << endl << endl; + s << "#include " << endl << endl; + + IncludeList list = meta_class->typeEntry()->extraIncludes(); + qSort(list.begin(), list.end()); + foreach (const Include &inc, list) { + ShellGenerator::writeInclude(s, inc); + } + s << endl; + + AbstractMetaFunctionList ctors = meta_class->queryFunctions(AbstractMetaClass::Constructors + | AbstractMetaClass::WasVisible + | AbstractMetaClass::NotRemovedFromTargetLang); + + // Shell------------------------------------------------------------------- + if (meta_class->generateShellClass()) { + + AbstractMetaFunctionList virtualsForShell = getVirtualFunctionsForShell(meta_class); + + s << "class " << shellClassName(meta_class) + << " : public " << meta_class->qualifiedCppName() << endl << "{" << endl; + s << "public:" << endl; + foreach(AbstractMetaFunction* fun, ctors) { + s << " "; + writeFunctionSignature(s, fun, 0,"PythonQtShell_", + Option(IncludeDefaultExpression | OriginalName | ShowStatic | UnderscoreSpaces)); + s << ":" << meta_class->qualifiedCppName() << "("; + QString scriptFunctionName = fun->originalName(); + AbstractMetaArgumentList args = fun->arguments(); + for (int i = 0; i < args.size(); ++i) { + if (i > 0) + s << ", "; + s << args.at(i)->argumentName(); + } + s << "),_wrapper(NULL) {};" << endl; + } + s << endl; + s << " ~" << shellClassName(meta_class) << "();" << endl; + s << endl; + + foreach(AbstractMetaFunction* fun, virtualsForShell) { + s << "virtual "; + writeFunctionSignature(s, fun, 0, QString(), + Option(IncludeDefaultExpression | OriginalName | ShowStatic | UnderscoreSpaces)); + s << ";" << endl; + } + s << endl; + s << " PythonQtInstanceWrapper* _wrapper; " << endl; + + s << "};" << endl << endl; + } + + // Promoter------------------------------------------------------------------- + AbstractMetaFunctionList promoteFunctions = getProtectedFunctionsThatNeedPromotion(meta_class); + if (!promoteFunctions.isEmpty()) { + s << "class " << promoterClassName(meta_class) + << " : public " << meta_class->qualifiedCppName() << endl << "{ public:" << endl; + + foreach(AbstractMetaFunction* fun, promoteFunctions) { + s << "inline "; + writeFunctionSignature(s, fun, 0, "promoted_", + Option(IncludeDefaultExpression | OriginalName | ShowStatic | UnderscoreSpaces)); + s << " { "; + QString scriptFunctionName = fun->originalName(); + AbstractMetaArgumentList args = fun->arguments(); + if (fun->type()) + s << "return "; + s << meta_class->qualifiedCppName() << "::"; + s << fun->originalName() << "("; + for (int i = 0; i < args.size(); ++i) { + if (i > 0) + s << ", "; + s << args.at(i)->argumentName(); + } + s << "); }" << endl; + } + + s << "};" << endl << endl; + } + + // Wrapper------------------------------------------------------------------- + + s << "class " << wrapperClassName(meta_class) + << " : public QObject" << endl + << "{ Q_OBJECT" << endl; + + s << "public:" << endl; + + AbstractMetaEnumList enums1 = meta_class->enums(); + AbstractMetaEnumList enums; + QList flags; + foreach(AbstractMetaEnum* enum1, enums1) { + // catch gadgets and enums that are not exported on QObjects... + if (enum1->wasPublic() && (!meta_class->isQObject() || !enum1->hasQEnumsDeclaration())) { + enums << enum1; + if (enum1->typeEntry()->flags()) { + flags << enum1->typeEntry()->flags(); + } + } + } + if (enums.count()) { + s << "Q_ENUMS("; + foreach(AbstractMetaEnum* enum1, enums) { + s << enum1->name() << " "; + } + s << ")" << endl; + + if (flags.count()) { + s << "Q_FLAGS("; + foreach(FlagsTypeEntry* flag1, flags) { + QString origName = flag1->originalName(); + int idx = origName.lastIndexOf("::"); + if (idx!= -1) { + origName = origName.mid(idx+2); + } + s << origName << " "; + } + s << ")" << endl; + } + + foreach(AbstractMetaEnum* enum1, enums) { + s << "enum " << enum1->name() << "{" << endl; + bool first = true; + foreach(AbstractMetaEnumValue* value, enum1->values()) { + if (first) { first = false; } + else { s << ", "; } + s << " " << value->name() << " = " << meta_class->qualifiedCppName() << "::" << value->name(); + } + s << "};" << endl; + } + if (flags.count()) { + foreach(AbstractMetaEnum* enum1, enums) { + if (enum1->typeEntry()->flags()) { + QString origName = enum1->typeEntry()->flags()->originalName(); + int idx = origName.lastIndexOf("::"); + if (idx!= -1) { + origName = origName.mid(idx+2); + } + s << "Q_DECLARE_FLAGS("<< origName << ", " << enum1->name() <<")"<generateShellClass() || !meta_class->isAbstract()) { + + bool copyConstructorSeen = false; + bool defaultConstructorSeen = false; + foreach (const AbstractMetaFunction *fun, ctors) { + if (!fun->isPublic() || fun->isAbstract()) { continue; } + s << meta_class->qualifiedCppName() << "* "; + writeFunctionSignature(s, fun, 0, "new_", + Option(IncludeDefaultExpression | OriginalName | ShowStatic)); + s << ";" << endl; + if (fun->arguments().size()==1 && meta_class->qualifiedCppName() == fun->arguments().at(0)->type()->typeEntry()->qualifiedCppName()) { + copyConstructorSeen = true; + } + if (fun->arguments().size()==0) { + defaultConstructorSeen = true; + } + } + + if (meta_class->typeEntry()->isValue() + && !copyConstructorSeen && defaultConstructorSeen) { + QString className = meta_class->generateShellClass()?shellClassName(meta_class):meta_class->qualifiedCppName(); + s << meta_class->qualifiedCppName() << "* new_" << meta_class->name() << "(const " << meta_class->qualifiedCppName() << "& other) {" << endl; + s << className << "* a = new " << className << "();" << endl; + s << "*((" << meta_class->qualifiedCppName() << "*)a) = other;" << endl; + s << "return a; }" << endl; + } + } + if (meta_class->hasPublicDestructor() && !meta_class->isNamespace()) { + s << "void delete_" << meta_class->name() << "(" << meta_class->qualifiedCppName() << "* obj) { delete obj; } "; + s << endl; + } + + AbstractMetaFunctionList functions = getFunctionsToWrap(meta_class); + + foreach (const AbstractMetaFunction *function, functions) { + if (!function->isSlot() || function->isVirtual()) { + s << " "; + writeFunctionSignature(s, function, 0, QString(), + Option(ConvertReferenceToPtr | FirstArgIsWrappedObject| IncludeDefaultExpression | OriginalName | ShowStatic | UnderscoreSpaces)); + s << ";" << endl; + } + } + if (meta_class->hasDefaultToStringFunction() || meta_class->hasToStringCapability()) { + s << " QString py_toString(" << meta_class->qualifiedCppName() << "*);" << endl; + } + if (meta_class->hasDefaultIsNull()) { + s << " bool __nonzero__(" << meta_class->qualifiedCppName() << "* obj) { return !obj->isNull(); }" << endl; + } + + // Field accessors + foreach (const AbstractMetaField *field, meta_class->fields()) { + if (field->isPublic()) { + writeFieldAccessors(s, field); + } + } + + writeInjectedCode(s, meta_class); + + + s << "};" << endl << endl + << "#endif // " << include_block << endl; + +} + +void ShellHeaderGenerator::writeInjectedCode(QTextStream &s, const AbstractMetaClass *meta_class) +{ + CodeSnipList code_snips = meta_class->typeEntry()->codeSnips(); + foreach (const CodeSnip &cs, code_snips) { + if (cs.language == TypeSystem::PyWrapperDeclaration) { + s << cs.code() << endl; + } + } +} diff --git a/generator_50/shellheadergenerator.h b/generator_50/shellheadergenerator.h new file mode 100644 index 00000000..bfcb1017 --- /dev/null +++ b/generator_50/shellheadergenerator.h @@ -0,0 +1,70 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef SHELL_HEADER_GENERATOR +#define SHELL_HEADER_GENERATOR + +#include "shellgenerator.h" +#include "setupgenerator.h" +#include "metaqtscript.h" + +class ShellHeaderGenerator : public ShellGenerator +{ + Q_OBJECT + +public: + ShellHeaderGenerator(PriGenerator *pri, SetupGenerator *setup) + { + priGenerator = pri; + setupGenerator = setup; + } + + virtual QString fileNameForClass(const AbstractMetaClass *cls) const; + + void write(QTextStream &s, const AbstractMetaClass *meta_class); + void writeInjectedCode(QTextStream &s, const AbstractMetaClass *meta_class); + + void writeFieldAccessors(QTextStream &s, const AbstractMetaField *field); + + SetupGenerator* setupGenerator; +}; + +#endif // SHELL_HEADER_GENERATOR diff --git a/generator_50/shellimplgenerator.cpp b/generator_50/shellimplgenerator.cpp new file mode 100644 index 00000000..394f85ba --- /dev/null +++ b/generator_50/shellimplgenerator.cpp @@ -0,0 +1,324 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "shellimplgenerator.h" +#include "reporthandler.h" +#include "fileout.h" +#include + +extern void declareFunctionMetaTypes(QTextStream &stream, + const AbstractMetaFunctionList &functions, + QSet ®isteredTypeNames); + +QString ShellImplGenerator::fileNameForClass(const AbstractMetaClass *meta_class) const +{ + return QString("PythonQtWrapper_%1.cpp").arg(meta_class->name()); +} + +static bool include_less_than(const Include &a, const Include &b) +{ + return a.name < b.name; +} + +static void writeHelperCode(QTextStream &s, const AbstractMetaClass *) +{ +} + + + +void ShellImplGenerator::write(QTextStream &s, const AbstractMetaClass *meta_class) +{ + QString builtIn = ShellGenerator::isBuiltIn(meta_class->name())?"_builtin":""; + QString pro_file_name = meta_class->package().replace(".", "_") + builtIn + "/" + meta_class->package().replace(".", "_") + builtIn + ".pri"; + priGenerator->addSource(pro_file_name, fileNameForClass(meta_class)); + + s << "#include \"PythonQtWrapper_" << meta_class->name() << ".h\"" << endl << endl; + + s << "#include " << endl; + s << "#include " << endl; + s << "#include " << endl; + + //if (!meta_class->generateShellClass()) + // return; + + IncludeList list = meta_class->typeEntry()->extraIncludes(); + qSort(list.begin(), list.end()); + foreach (const Include &inc, list) { + ShellGenerator::writeInclude(s, inc); + } + s << endl; + + writeHelperCode(s, meta_class); + + // find constructors + AbstractMetaFunctionList ctors; + ctors = meta_class->queryFunctions(AbstractMetaClass::Constructors + | AbstractMetaClass::WasVisible + | AbstractMetaClass::NotRemovedFromTargetLang); + // find member functions + AbstractMetaFunctionList functions = getFunctionsToWrap(meta_class); + + // write metatype declarations + { + // QSet registeredTypeNames = m_qmetatype_declared_typenames; + // declareFunctionMetaTypes(s, functions, registeredTypeNames); + // s << endl; + } + + if (meta_class->generateShellClass()) { + + s << shellClassName(meta_class) << "::~" << shellClassName(meta_class) << "() {" << endl; + s << " PythonQtPrivate* priv = PythonQt::priv();" << endl; + s << " if (priv) { priv->shellClassDeleted(this); }" << endl; + s << "}" << endl; + + AbstractMetaFunctionList virtualsForShell = getVirtualFunctionsForShell(meta_class); + foreach (const AbstractMetaFunction *fun, virtualsForShell) { + bool hasReturnValue = (fun->type()); + writeFunctionSignature(s, fun, meta_class, QString(), + Option(OriginalName | ShowStatic | UnderscoreSpaces), + "PythonQtShell_"); + s << endl << "{" << endl; + + Option typeOptions = Option(OriginalName | UnderscoreSpaces | SkipName); + AbstractMetaArgumentList args = fun->arguments(); + + s << "if (_wrapper) {" << endl; + s << " PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, \"" << fun->name() << "\");" << endl; + s << " PyErr_Clear();" << endl; + s << " if (obj && !PythonQtSlotFunction_Check(obj)) {" << endl; + s << " static const char* argumentList[] ={\""; + if (hasReturnValue) { + // write the arguments, return type first + writeTypeInfo(s, fun->type(), typeOptions); + } + s << "\""; + for (int i = 0; i < args.size(); ++i) { + s << " , \""; + writeTypeInfo(s, args.at(i)->type(), typeOptions); + s << "\""; + } + s << "};" << endl; + s << " static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(" << QString::number(args.size()+1) << ", argumentList);" << endl; + + if (hasReturnValue) { + s << " "; + writeTypeInfo(s, fun->type(), typeOptions); + s << " returnValue;" << endl; + // TODO: POD init to default is missing... + } + s << " void* args[" << QString::number(args.size()+1) << "] = {NULL"; + for (int i = 0; i < args.size(); ++i) { + s << ", (void*)&" << args.at(i)->argumentName(); + } + s << "};" << endl; + + s << " PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);" << endl; + if (hasReturnValue) { + s << " if (result) {" << endl; + s << " args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);" << endl; + s << " if (args[0]!=&returnValue) {" << endl; + s << " if (args[0]==NULL) {" << endl; + s << " PythonQt::priv()->handleVirtualOverloadReturnError(\"" << fun->name() << "\", methodInfo, result);" << endl; + s << " } else {" << endl; + s << " returnValue = *(("; + writeTypeInfo(s, fun->type(), typeOptions); + s << "*)args[0]);" << endl; + s << " }" << endl; + s << " }" << endl; + s << " }" << endl; + } + s << " if (result) { Py_DECREF(result); } " << endl; + s << " Py_DECREF(obj);" << endl; + if (hasReturnValue) { + s << " return returnValue;" << endl; + } else { + s << " return;" << endl; + } + s << " }" << endl; + s << "}" << endl; + + s << " "; + if (fun->isAbstract()) { + if (fun->type()) { + // return empty default object + s << "return "; + if (fun->type()->indirections()>0) { + s << "0;"; + } else { + writeTypeInfo(s, fun->type(), typeOptions); + s << "();"; + } + } + } else { + if (fun->type()) { + s << "return "; + } + s << meta_class->qualifiedCppName() << "::"; + s << fun->originalName() << "("; + for (int i = 0; i < args.size(); ++i) { + if (i > 0) + s << ", "; + s << args.at(i)->argumentName(); + } + s << ");"; + } + s << endl << "}" << endl; + } + } + + if (meta_class->generateShellClass() || !meta_class->isAbstract()) { + + // write constructors + foreach (const AbstractMetaFunction *ctor, ctors) { + if (!ctor->isPublic() || ctor->isAbstract()) { continue; } + + s << meta_class->qualifiedCppName() << "* "; + s << "PythonQtWrapper_" << meta_class->name() << "::"; + writeFunctionSignature(s, ctor, 0, "new_", Option(OriginalName | ShowStatic)); + s << endl; + s << "{ " << endl; + s << "return new " << (meta_class->generateShellClass()?shellClassName(meta_class):meta_class->qualifiedCppName()) << "("; + AbstractMetaArgumentList args = ctor->arguments(); + for (int i = 0; i < args.size(); ++i) { + if (i > 0) + s << ", "; + s << args.at(i)->argumentName(); + } + s << ");" << " }" << endl << endl; + } + } + + QString wrappedObject = " (*theWrappedObject)"; + + // write member functions + for (int i = 0; i < functions.size(); ++i) { + AbstractMetaFunction *fun = functions.at(i); + bool needsWrapping = (!fun->isSlot() || fun->isVirtual()); + if (!needsWrapping) { + continue; + } + writeFunctionSignature(s, fun, meta_class, QString(), + Option(ConvertReferenceToPtr | FirstArgIsWrappedObject | OriginalName | ShowStatic | UnderscoreSpaces), + "PythonQtWrapper_"); + s << endl << "{" << endl; + s << " "; + if (ShellGenerator::isSpecialStreamingOperator(fun)) { + s << fun->arguments().at(0)->argumentName(); + if (fun->originalName().startsWith("operator>>")) { + s << " >> "; + } else { + s << " << "; + } + s << wrappedObject; + } else { + QString scriptFunctionName = fun->originalName(); + AbstractMetaArgumentList args = fun->arguments(); + // call the C++ implementation + if (fun->type()) { + s << "return "; + // call the C++ implementation + if (fun->type()->isReference()) { + s << "&"; + } + } + s << "("; + if (scriptFunctionName.startsWith("operator>>")) { + s << wrappedObject << " >>" << args.at(0)->argumentName(); + } else if (scriptFunctionName.startsWith("operator<<")) { + s << wrappedObject << " <<" << args.at(0)->argumentName(); + } else if (scriptFunctionName.startsWith("operator[]")) { + s << wrappedObject << "[" << args.at(0)->argumentName() << "]"; + } else if (scriptFunctionName.startsWith("operator") && args.size()==1) { + QString op = scriptFunctionName.mid(8); + s << wrappedObject << op << " " << args.at(0)->argumentName(); + } else { + if (fun->isStatic()) { + s << meta_class->qualifiedCppName() << "::"; + } else { + if (!fun->isPublic() || fun->isVirtual()) { + s << " ((" << promoterClassName(meta_class) << "*)theWrappedObject)->promoted_"; + } else { + s << " theWrappedObject->"; + } + } + s << fun->originalName() << "("; + for (int i = 0; i < args.size(); ++i) { + if (i > 0) + s << ", "; + s << args.at(i)->argumentName(); + } + s << ")"; + } + s << ")"; + } + s << ";" << endl; + + s << "}" << endl << endl; + } + + if (meta_class->hasDefaultToStringFunction()) { + s << "QString PythonQtWrapper_" << meta_class->name() << "::py_toString(" << meta_class->qualifiedCppName() << "* obj) { return obj->toString(); }" << endl; + } else if (meta_class->hasToStringCapability()) { + FunctionModelItem fun = meta_class->hasToStringCapability(); + int indirections = fun->arguments().at(1)->type().indirections(); + QString deref = QLatin1String(indirections == 0 ? "*" : ""); + s << "QString PythonQtWrapper_" << meta_class->name() << "::py_toString(" << meta_class->qualifiedCppName() << "* obj) {" << endl; + s << " QString result;" << endl; + s << " QDebug d(&result);" << endl; + s << " d << " << deref << "obj;" << endl; + s << " return result;" << endl; + s << "}" << endl << endl; + } + + writeInjectedCode(s, meta_class); + +} + +void ShellImplGenerator::writeInjectedCode(QTextStream &s, const AbstractMetaClass *meta_class) +{ + CodeSnipList code_snips = meta_class->typeEntry()->codeSnips(); + foreach (const CodeSnip &cs, code_snips) { + if (cs.language == TypeSystem::PyWrapperCode) { + s << cs.code() << endl; + } + } +} diff --git a/generator_50/shellimplgenerator.h b/generator_50/shellimplgenerator.h new file mode 100644 index 00000000..c2fc7c60 --- /dev/null +++ b/generator_50/shellimplgenerator.h @@ -0,0 +1,65 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef SHELLIMPLGENERATOR_H +#define SHELLIMPLGENERATOR_H + +#include "shellgenerator.h" +#include "metaqtscript.h" + +class ShellImplGenerator : public ShellGenerator +{ + Q_OBJECT + +public: + ShellImplGenerator(PriGenerator *pri) + { + priGenerator = pri; + } + + virtual QString fileNameForClass(const AbstractMetaClass *cls) const; + + void write(QTextStream &s, const AbstractMetaClass *meta_class); + void writeInjectedCode(QTextStream &s, const AbstractMetaClass *meta_class); + +}; + +#endif // SHELLIMPLGENERATOR_H diff --git a/generator_50/typeparser.cpp b/generator_50/typeparser.cpp new file mode 100644 index 00000000..87730fa5 --- /dev/null +++ b/generator_50/typeparser.cpp @@ -0,0 +1,284 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "typeparser.h" + +#include +#include + +class Scanner +{ +public: + enum Token { + StarToken, + AmpersandToken, + LessThanToken, + ColonToken, + CommaToken, + OpenParenToken, + CloseParenToken, + SquareBegin, + SquareEnd, + GreaterThanToken, + + ConstToken, + Identifier, + NoToken + }; + + Scanner(const QString &s) + : m_pos(0), m_length(s.length()), m_chars(s.constData()) + { + } + + Token nextToken(); + QString identifier() const; + +private: + int m_pos; + int m_length; + int m_token_start; + const QChar *m_chars; +}; + +QString Scanner::identifier() const +{ + return QString(m_chars + m_token_start, m_pos - m_token_start); +} + +Scanner::Token Scanner::nextToken() +{ + Token tok = NoToken; + + // remove whitespace + while (m_pos < m_length && m_chars[m_pos] == ' ') { + ++m_pos; + } + + m_token_start = m_pos; + + while (m_pos < m_length) { + + const QChar &c = m_chars[m_pos]; + + if (tok == NoToken) { + switch (c.toLatin1()) { + case '*': tok = StarToken; break; + case '&': tok = AmpersandToken; break; + case '<': tok = LessThanToken; break; + case '>': tok = GreaterThanToken; break; + case ',': tok = CommaToken; break; + case '(': tok = OpenParenToken; break; + case ')': tok = CloseParenToken; break; + case '[': tok = SquareBegin; break; + case ']' : tok = SquareEnd; break; + case ':': + tok = ColonToken; + Q_ASSERT(m_pos + 1 < m_length); + ++m_pos; + break; + default: + if (c.isLetterOrNumber() || c == '_') + tok = Identifier; + else + qFatal("Unrecognized character in lexer: %c", c.toLatin1()); + break; + } + } + + if (tok <= GreaterThanToken) { + ++m_pos; + break; + } + + if (tok == Identifier) { + if (c.isLetterOrNumber() || c == '_') + ++m_pos; + else + break; + } + } + + if (tok == Identifier && m_pos - m_token_start == 5) { + if (m_chars[m_token_start] == 'c' + && m_chars[m_token_start + 1] == 'o' + && m_chars[m_token_start + 2] == 'n' + && m_chars[m_token_start + 3] == 's' + && m_chars[m_token_start + 4] == 't') + tok = ConstToken; + } + + return tok; + +} + +TypeParser::Info TypeParser::parse(const QString &str) +{ + Scanner scanner(str); + + Info info; + QStack stack; + stack.push(&info); + + bool colon_prefix = false; + bool in_array = false; + QString array; + + Scanner::Token tok = scanner.nextToken(); + while (tok != Scanner::NoToken) { + +// switch (tok) { +// case Scanner::StarToken: printf(" - *\n"); break; +// case Scanner::AmpersandToken: printf(" - &\n"); break; +// case Scanner::LessThanToken: printf(" - <\n"); break; +// case Scanner::GreaterThanToken: printf(" - >\n"); break; +// case Scanner::ColonToken: printf(" - ::\n"); break; +// case Scanner::CommaToken: printf(" - ,\n"); break; +// case Scanner::ConstToken: printf(" - const\n"); break; +// case Scanner::SquareBegin: printf(" - [\n"); break; +// case Scanner::SquareEnd: printf(" - ]\n"); break; +// case Scanner::Identifier: printf(" - '%s'\n", qPrintable(scanner.identifier())); break; +// default: +// break; +// } + + switch (tok) { + + case Scanner::StarToken: + ++stack.top()->indirections; + break; + + case Scanner::AmpersandToken: + stack.top()->is_reference = true; + break; + + case Scanner::LessThanToken: + stack.top()->template_instantiations << Info(); + stack.push(&stack.top()->template_instantiations.last()); + break; + + case Scanner::CommaToken: + stack.pop(); + stack.top()->template_instantiations << Info(); + stack.push(&stack.top()->template_instantiations.last()); + break; + + case Scanner::GreaterThanToken: + stack.pop(); + break; + + case Scanner::ColonToken: + colon_prefix = true; + break; + + case Scanner::ConstToken: + stack.top()->is_constant = true; + break; + + case Scanner::OpenParenToken: // function pointers not supported + case Scanner::CloseParenToken: + { + Info i; + i.is_busted = true; + return i; + } + + + case Scanner::Identifier: + if (in_array) { + array = scanner.identifier(); + } else if (colon_prefix || stack.top()->qualified_name.isEmpty()) { + stack.top()->qualified_name << scanner.identifier(); + colon_prefix = false; + } else { + stack.top()->qualified_name.last().append(" " + scanner.identifier()); + } + break; + + case Scanner::SquareBegin: + in_array = true; + break; + + case Scanner::SquareEnd: + in_array = false; + stack.top()->arrays += array; + break; + + + default: + break; + } + + tok = scanner.nextToken(); + } + + return info; +} + +QString TypeParser::Info::instantiationName() const +{ + QString s(qualified_name.join("::")); + if (!template_instantiations.isEmpty()) { + s += '<'; + for (int i=0; i +#include +#include + +class TypeParser +{ +public: + struct Info + { + Info() : is_reference(false), is_constant(false), is_busted(false), indirections(0) { } + QStringList qualified_name; + QStringList arrays; + QList template_instantiations; + uint is_reference : 1; + uint is_constant : 1; + uint is_busted : 1; + uint indirections : 5; + + QString toString() const; + QString instantiationName() const; + }; + + static Info parse(const QString &str); +}; + +#endif // TYPEPARSER_H diff --git a/generator_50/typesystem.cpp b/generator_50/typesystem.cpp new file mode 100644 index 00000000..b91c443b --- /dev/null +++ b/generator_50/typesystem.cpp @@ -0,0 +1,2013 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include "typesystem.h" +#include "generator.h" + +#include "customtypes.h" + +#include + +#include + +#include + +QString strings_Object = QLatin1String("Object"); +QString strings_String = QLatin1String("String"); +QString strings_Thread = QLatin1String("Thread"); +QString strings_char = QLatin1String("char"); +QString strings_java_lang = QLatin1String("java.lang"); +QString strings_jchar = QLatin1String("jchar"); +QString strings_jobject = QLatin1String("jobject"); + +static void addRemoveFunctionToTemplates(TypeDatabase *db); + +class StackElement +{ + public: + enum ElementType { + None = 0x0, + + // Type tags (0x1, ... , 0xff) + ObjectTypeEntry = 0x1, + ValueTypeEntry = 0x2, + InterfaceTypeEntry = 0x3, + NamespaceTypeEntry = 0x4, + ComplexTypeEntryMask = 0xf, + + // Non-complex type tags (0x10, 0x20, ... , 0xf0) + PrimitiveTypeEntry = 0x10, + EnumTypeEntry = 0x20, + TypeEntryMask = 0xff, + + // Simple tags (0x100, 0x200, ... , 0xf00) + ExtraIncludes = 0x100, + Include = 0x200, + ModifyFunction = 0x300, + ModifyField = 0x400, + Root = 0x500, + CustomMetaConstructor = 0x600, + CustomMetaDestructor = 0x700, + ArgumentMap = 0x800, + SuppressedWarning = 0x900, + Rejection = 0xa00, + LoadTypesystem = 0xb00, + RejectEnumValue = 0xc00, + Template = 0xd00, + TemplateInstanceEnum = 0xe00, + Replace = 0xf00, + SimpleMask = 0xf00, + + // Code snip tags (0x1000, 0x2000, ... , 0xf000) + InjectCode = 0x1000, + InjectCodeInFunction = 0x2000, + CodeSnipMask = 0xf000, + + // Function modifier tags (0x010000, 0x020000, ... , 0xf00000) + Access = 0x010000, + Removal = 0x020000, + Rename = 0x040000, + ModifyArgument = 0x080000, + FunctionModifiers = 0xff0000, + + // Argument modifier tags (0x01000000 ... 0xf0000000) + ConversionRule = 0x01000000, + ReplaceType = 0x02000000, + ReplaceDefaultExpression = 0x04000000, + RemoveArgument = 0x08000000, + DefineOwnership = 0x10000000, + RemoveDefaultExpression = 0x20000000, + NoNullPointers = 0x40000000, + ReferenceCount = 0x80000000, + ArgumentModifiers = 0xff000000 + }; + + StackElement(StackElement *p) : entry(0), type(None), parent(p){ } + + TypeEntry *entry; + ElementType type; + StackElement *parent; + + union { + TemplateInstance *templateInstance; + TemplateEntry *templateEntry; + CustomFunction *customFunction; + } value; +}; + +class Handler : public QXmlDefaultHandler +{ +public: + Handler(TypeDatabase *database, bool generate) + : m_database(database), m_generate(generate ? TypeEntry::GenerateAll : TypeEntry::GenerateForSubclass) + { + m_current_enum = 0; + current = 0; + + tagNames["rejection"] = StackElement::Rejection; + tagNames["primitive-type"] = StackElement::PrimitiveTypeEntry; + tagNames["object-type"] = StackElement::ObjectTypeEntry; + tagNames["value-type"] = StackElement::ValueTypeEntry; + tagNames["interface-type"] = StackElement::InterfaceTypeEntry; + tagNames["namespace-type"] = StackElement::NamespaceTypeEntry; + tagNames["enum-type"] = StackElement::EnumTypeEntry; + tagNames["extra-includes"] = StackElement::ExtraIncludes; + tagNames["include"] = StackElement::Include; + tagNames["inject-code"] = StackElement::InjectCode; + tagNames["modify-function"] = StackElement::ModifyFunction; + tagNames["modify-field"] = StackElement::ModifyField; + tagNames["access"] = StackElement::Access; + tagNames["remove"] = StackElement::Removal; + tagNames["rename"] = StackElement::Rename; + tagNames["typesystem"] = StackElement::Root; + tagNames["custom-constructor"] = StackElement::CustomMetaConstructor; + tagNames["custom-destructor"] = StackElement::CustomMetaDestructor; + tagNames["argument-map"] = StackElement::ArgumentMap; + tagNames["suppress-warning"] = StackElement::SuppressedWarning; + tagNames["load-typesystem"] = StackElement::LoadTypesystem; + tagNames["define-ownership"] = StackElement::DefineOwnership; + tagNames["replace-default-expression"] = StackElement::ReplaceDefaultExpression; + tagNames["reject-enum-value"] = StackElement::RejectEnumValue; + tagNames["replace-type"] = StackElement::ReplaceType; + tagNames["conversion-rule"] = StackElement::ConversionRule; + tagNames["modify-argument"] = StackElement::ModifyArgument; + tagNames["remove-argument"] = StackElement::RemoveArgument; + tagNames["remove-default-expression"] = StackElement::RemoveDefaultExpression; + tagNames["template"] = StackElement::Template; + tagNames["insert-template"] = StackElement::TemplateInstanceEnum; + tagNames["replace"] = StackElement::Replace; + tagNames["no-null-pointer"] = StackElement::NoNullPointers; + tagNames["reference-count"] = StackElement::ReferenceCount; + } + + bool startElement(const QString &namespaceURI, const QString &localName, + const QString &qName, const QXmlAttributes &atts); + bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName); + + QString errorString() const { return m_error; } + bool error(const QXmlParseException &exception); + bool fatalError(const QXmlParseException &exception); + bool warning(const QXmlParseException &exception); + + bool characters(const QString &ch); + +private: + void fetchAttributeValues(const QString &name, const QXmlAttributes &atts, + QHash *acceptedAttributes); + + bool importFileElement(const QXmlAttributes &atts); + bool convertBoolean(const QString &, const QString &, bool); + + TypeDatabase *m_database; + StackElement* current; + QString m_defaultPackage; + QString m_defaultSuperclass; + QString m_error; + TypeEntry::CodeGeneration m_generate; + + EnumTypeEntry *m_current_enum; + + CodeSnipList m_code_snips; + FunctionModificationList m_function_mods; + FieldModificationList m_field_mods; + + QHash tagNames; +}; + +bool Handler::error(const QXmlParseException &e) +{ + qWarning("Error: line=%d, column=%d, message=%s\n", + e.lineNumber(), e.columnNumber(), qPrintable(e.message())); + return false; +} + +bool Handler::fatalError(const QXmlParseException &e) +{ + qWarning("Fatal error: line=%d, column=%d, message=%s\n", + e.lineNumber(), e.columnNumber(), qPrintable(e.message())); + + return false; +} + +bool Handler::warning(const QXmlParseException &e) +{ + qWarning("Warning: line=%d, column=%d, message=%s\n", + e.lineNumber(), e.columnNumber(), qPrintable(e.message())); + + return false; +} + +void Handler::fetchAttributeValues(const QString &name, const QXmlAttributes &atts, + QHash *acceptedAttributes) +{ + Q_ASSERT(acceptedAttributes != 0); + + for (int i=0; icontains(key)) { + ReportHandler::warning(QString("Unknown attribute for '%1': '%2'").arg(name).arg(key)); + } else { + (*acceptedAttributes)[key] = val; + } + } +} + +bool Handler::endElement(const QString &, const QString &localName, const QString &) +{ + QString tagName = localName.toLower(); + if(tagName == "import-file") + return true; + + if (!current) + return true; + + switch (current->type) { + case StackElement::ObjectTypeEntry: + case StackElement::ValueTypeEntry: + case StackElement::InterfaceTypeEntry: + case StackElement::NamespaceTypeEntry: + { + ComplexTypeEntry *centry = static_cast(current->entry); + centry->setFunctionModifications(m_function_mods); + centry->setFieldModifications(m_field_mods); + centry->setCodeSnips(m_code_snips); + + if (centry->designatedInterface()) { + centry->designatedInterface()->setCodeSnips(m_code_snips); + centry->designatedInterface()->setFunctionModifications(m_function_mods); + } + m_code_snips = CodeSnipList(); + m_function_mods = FunctionModificationList(); + m_field_mods = FieldModificationList(); + } + break; + case StackElement::CustomMetaConstructor: + { + current->entry->setCustomConstructor(*current->value.customFunction); + delete current->value.customFunction; + } + break; + case StackElement::CustomMetaDestructor: + { + current->entry->setCustomDestructor(*current->value.customFunction); + delete current->value.customFunction; + } + break; + case StackElement::EnumTypeEntry: + m_current_enum = 0; + break; + case StackElement::Template: + m_database->addTemplate(current->value.templateEntry); + break; + case StackElement::TemplateInstanceEnum: + if(current->parent->type == StackElement::InjectCode){ + m_code_snips.last().addTemplateInstance(current->value.templateInstance); + }else if(current->parent->type == StackElement::Template){ + current->parent->value.templateEntry->addTemplateInstance(current->value.templateInstance); + }else if(current->parent->type == StackElement::CustomMetaConstructor || current->parent->type == StackElement::CustomMetaConstructor){ + current->parent->value.customFunction->addTemplateInstance(current->value.templateInstance); + }else if(current->parent->type == StackElement::ConversionRule){ + m_function_mods.last().argument_mods.last().conversion_rules.last().addTemplateInstance(current->value.templateInstance); + }else if(current->parent->type == StackElement::InjectCodeInFunction){ + m_function_mods.last().snips.last().addTemplateInstance(current->value.templateInstance); + } + break; + default: + break; + } + + StackElement *child = current; + current=current->parent; + delete(child); + + return true; +} + +bool Handler::characters(const QString &ch) +{ + if(current->type == StackElement::Template){ + current->value.templateEntry->addCode(ch); + return true; + } + + if (current->type == StackElement::CustomMetaConstructor || current->type == StackElement::CustomMetaDestructor){ + current->value.customFunction->addCode(ch); + return true; + } + + if (current->type == StackElement::ConversionRule){ + m_function_mods.last().argument_mods.last().conversion_rules.last().addCode(ch); + return true; + } + + if (current->parent){ + if ((current->type & StackElement::CodeSnipMask) != 0) { + switch (current->parent->type) { + case StackElement::Root: + ((TypeSystemTypeEntry *) current->parent->entry)->snips.last().addCode(ch); + break; + case StackElement::ModifyFunction: + m_function_mods.last().snips.last().addCode(ch); + break; + case StackElement::NamespaceTypeEntry: + case StackElement::ObjectTypeEntry: + case StackElement::ValueTypeEntry: + case StackElement::InterfaceTypeEntry: + m_code_snips.last().addCode(ch); + break; + default: + Q_ASSERT(false); + }; + return true; + } + } + + return true; +} + +bool Handler::importFileElement(const QXmlAttributes &atts) +{ + QString fileName = atts.value("name"); + if(fileName.isEmpty()){ + m_error = "Required attribute 'name' missing for include-file tag."; + return false; + } + + QFile file(fileName); + if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { + file.setFileName(":/trolltech/generator/" + fileName); + if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { + m_error = QString("Could not open file: '%1'").arg(fileName); + return false; + } + } + + QString quoteFrom = atts.value("quote-after-line"); + bool foundFromOk = quoteFrom.isEmpty(); + bool from = quoteFrom.isEmpty(); + + QString quoteTo = atts.value("quote-before-line"); + bool foundToOk = quoteTo.isEmpty(); + bool to = true; + + QTextStream in(&file); + while (!in.atEnd()) { + QString line = in.readLine(); + if(from && to && line.contains(quoteTo)) { + to = false; + foundToOk = true; + break; + } + if(from && to) + characters(line + "\n"); + if(!from && line.contains(quoteFrom)) { + from = true; + foundFromOk = true; + } + } + if(!foundFromOk || !foundToOk){ + QString fromError = QString("Could not find quote-after-line='%1' in file '%2'.").arg(quoteFrom).arg(fileName); + QString toError = QString("Could not find quote-before-line='%1' in file '%2'.").arg(quoteTo).arg(fileName); + + if(!foundToOk) + m_error = toError; + if(!foundFromOk) + m_error = fromError; + if(!foundFromOk && !foundToOk) + m_error = fromError + " " + toError; + return false; + } + + return true; +} + +bool Handler::convertBoolean(const QString &_value, const QString &attributeName, bool defaultValue) +{ + QString value = _value.toLower(); + if (value == "true" || value == "yes") { + return true; + } else if (value == "false" || value == "no") { + return false; + } else { + QString warn = QString("Boolean value '%1' not supported in attribute '%2'. Use 'yes' or 'no'. Defaulting to '%3'.") + .arg(value).arg(attributeName).arg(defaultValue ? "yes" : "no"); + + ReportHandler::warning(warn); + return defaultValue; + } +} + +bool Handler::startElement(const QString &, const QString &n, + const QString &, const QXmlAttributes &atts) +{ + QString tagName = n.toLower(); + if(tagName == "import-file"){ + return importFileElement(atts); + } + + std::auto_ptr element(new StackElement(current)); + + if (!tagNames.contains(tagName)) { + m_error = QString("Unknown tag name: '%1'").arg(tagName); + return false; + } + + element->type = tagNames[tagName]; + if (element->type & StackElement::TypeEntryMask) { + if (current->type != StackElement::Root) { + m_error = "Nested types not supported"; + return false; + } + + QHash attributes; + attributes["name"] = QString(); + + switch (element->type) { + case StackElement::PrimitiveTypeEntry: + attributes["java-name"] = QString(); + attributes["jni-name"] = QString(); + attributes["preferred-conversion"] = "yes"; + attributes["preferred-java-type"] = "yes"; + break; + case StackElement::EnumTypeEntry: + attributes["flags"] = "no"; + attributes["upper-bound"] = QString(); + attributes["lower-bound"] = QString(); + attributes["force-integer"] = "no"; + attributes["extensible"] = "no"; + + break; + + case StackElement::ObjectTypeEntry: + case StackElement::ValueTypeEntry: + attributes["force-abstract"] = QString("no"); + attributes["deprecated"] = QString("no"); + // fall throooough + case StackElement::InterfaceTypeEntry: + attributes["default-superclass"] = m_defaultSuperclass; + attributes["polymorphic-id-expression"] = QString(); + attributes["delete-in-main-thread"] = QString("no"); + // fall through + case StackElement::NamespaceTypeEntry: + attributes["java-name"] = QString(); + attributes["package"] = m_defaultPackage; + attributes["expense-cost"] = "1"; + attributes["expense-limit"] = "none"; + attributes["polymorphic-base"] = QString("no"); + attributes["generate"] = QString("yes"); + attributes["target-type"] = QString(); + attributes["generic-class"] = QString("no"); + break; + default: + ; // nada + }; + + fetchAttributeValues(tagName, atts, &attributes); + + QString name = attributes["name"]; + + // We need to be able to have duplicate primitive type entries, or it's not possible to + // cover all primitive java types (which we need to do in order to support fake + // meta objects) + if (element->type != StackElement::PrimitiveTypeEntry) { + TypeEntry *tmp = m_database->findType(name); + if (tmp != 0) { + ReportHandler::warning(QString("Duplicate type entry: '%1'").arg(name)); + } + } + + if (name.isEmpty()) { + m_error = "no 'name' attribute specified"; + return false; + } + switch (element->type) { + case StackElement::PrimitiveTypeEntry: + { + QString java_name = attributes["java-name"]; + QString jni_name = attributes["jni-name"]; + QString preferred_conversion = attributes["preferred-conversion"].toLower(); + QString preferred_java_type = attributes["preferred-java-type"].toLower(); + + if (java_name.isEmpty()) + java_name = name; + if (jni_name.isEmpty()) + jni_name = name; + + PrimitiveTypeEntry *type = new PrimitiveTypeEntry(name); + type->setCodeGeneration(m_generate); + type->setTargetLangName(java_name); + type->setJniName(jni_name); + + type->setPreferredConversion(convertBoolean(preferred_conversion, "preferred-conversion", true)); + type->setPreferredTargetLangType(convertBoolean(preferred_java_type, "preferred-java-type", true)); + + element->entry = type; + } + break; + case StackElement::EnumTypeEntry: { + QStringList names = name.split(QLatin1String("::")); + + if (names.size() == 1) { + m_current_enum = new EnumTypeEntry(QString(), name); + } + else + m_current_enum = + new EnumTypeEntry(QStringList(names.mid(0, names.size() - 1)).join("::"), + names.last()); + element->entry = m_current_enum; + m_current_enum->setCodeGeneration(m_generate); + m_current_enum->setTargetLangPackage(m_defaultPackage); + m_current_enum->setUpperBound(attributes["upper-bound"]); + m_current_enum->setLowerBound(attributes["lower-bound"]); + m_current_enum->setForceInteger(convertBoolean(attributes["force-integer"], "force-integer", false)); + m_current_enum->setExtensible(convertBoolean(attributes["extensible"], "extensible", false)); + + // put in the flags parallel... + if (!attributes["flags"].isEmpty() && attributes["flags"].toLower() != "no") { + FlagsTypeEntry *ftype = new FlagsTypeEntry("QFlags<" + name + ">"); + ftype->setOriginator(m_current_enum); + ftype->setOriginalName(attributes["flags"]); + ftype->setCodeGeneration(m_generate); + QString origname = ftype->originalName(); + + QStringList lst = origname.split("::"); + if (QStringList(lst.mid(0, lst.size() - 1)).join("::") != m_current_enum->javaQualifier()) { + ReportHandler::warning(QString("enum %1 and flags %2 differ in qualifiers") + .arg(m_current_enum->javaQualifier()) + .arg(lst.at(0))); + } + + ftype->setFlagsName(lst.last()); + m_current_enum->setFlags(ftype); + + m_database->addFlagsType(ftype); + m_database->addType(ftype); + } + } + break; + + case StackElement::InterfaceTypeEntry: + { + ObjectTypeEntry *otype = new ObjectTypeEntry(name); + QString javaName = attributes["java-name"]; + if (javaName.isEmpty()) + javaName = name; + InterfaceTypeEntry *itype = + new InterfaceTypeEntry(InterfaceTypeEntry::interfaceName(javaName)); + + if (!convertBoolean(attributes["generate"], "generate", true)) + itype->setCodeGeneration(TypeEntry::GenerateForSubclass); + else + itype->setCodeGeneration(m_generate); + otype->setDesignatedInterface(itype); + itype->setOrigin(otype); + element->entry = otype; + } + // fall through + case StackElement::NamespaceTypeEntry: + if (element->entry == 0) { + element->entry = new NamespaceTypeEntry(name); + } + // fall through + case StackElement::ObjectTypeEntry: + if (element->entry == 0) { + element->entry = new ObjectTypeEntry(name); + } + // fall through + case StackElement::ValueTypeEntry: + { + if (element->entry == 0) { + element->entry = new ValueTypeEntry(name); + } + + ComplexTypeEntry *ctype = static_cast(element->entry); + ctype->setTargetLangPackage(attributes["package"]); + ctype->setDefaultSuperclass(attributes["default-superclass"]); + ctype->setGenericClass(convertBoolean(attributes["generic-class"], "generic-class", false)); + + if (!convertBoolean(attributes["generate"], "generate", true)) + element->entry->setCodeGeneration(TypeEntry::GenerateForSubclass); + else + element->entry->setCodeGeneration(m_generate); + + QString javaName = attributes["java-name"]; + if (!javaName.isEmpty()) + ctype->setTargetLangName(javaName); + + // The expense policy + QString limit = attributes["expense-limit"]; + if (!limit.isEmpty() && limit != "none") { + ExpensePolicy ep; + ep.limit = limit.toInt(); + ep.cost = attributes["expense-cost"]; + ctype->setExpensePolicy(ep); + } + + ctype->setIsPolymorphicBase(convertBoolean(attributes["polymorphic-base"], "polymorphic-base", false)); + ctype->setPolymorphicIdValue(attributes["polymorphic-id-expression"]); + + if (element->type == StackElement::ObjectTypeEntry || element->type == StackElement::ValueTypeEntry) { + if (convertBoolean(attributes["force-abstract"], "force-abstract", false)) + ctype->setTypeFlags(ctype->typeFlags() | ComplexTypeEntry::ForceAbstract); + if (convertBoolean(attributes["deprecated"], "deprecated", false)) + ctype->setTypeFlags(ctype->typeFlags() | ComplexTypeEntry::Deprecated); + } + + if (element->type == StackElement::InterfaceTypeEntry || + element->type == StackElement::ValueTypeEntry || + element->type == StackElement::ObjectTypeEntry) { + if (convertBoolean(attributes["delete-in-main-thread"], "delete-in-main-thread", false)) + ctype->setTypeFlags(ctype->typeFlags() | ComplexTypeEntry::DeleteInMainThread); + } + + QString targetType = attributes["target-type"]; + if (!targetType.isEmpty() && element->entry->isComplex()) + static_cast(element->entry)->setTargetType(targetType); + + // ctype->setInclude(Include(Include::IncludePath, ctype->name())); + ctype = ctype->designatedInterface(); + if (ctype != 0) + ctype->setTargetLangPackage(attributes["package"]); + + } + break; + default: + Q_ASSERT(false); + }; + + if (element->entry) + m_database->addType(element->entry); + else + ReportHandler::warning(QString("Type: %1 was rejected by typesystem").arg(name)); + + } else if (element->type != StackElement::None) { + bool topLevel = element->type == StackElement::Root + || element->type == StackElement::SuppressedWarning + || element->type == StackElement::Rejection + || element->type == StackElement::LoadTypesystem + || element->type == StackElement::InjectCode + || element->type == StackElement::Template; + + if (!topLevel && current->type == StackElement::Root) { + m_error = QString("Tag requires parent: '%1'").arg(tagName); + return false; + } + + StackElement topElement = current==0 ? StackElement(0) : *current; + element->entry = topElement.entry; + + QHash attributes; + switch (element->type) { + case StackElement::Root: + attributes["package"] = QString(); + attributes["default-superclass"] = QString(); + break; + case StackElement::LoadTypesystem: + attributes["name"] = QString(); + attributes["generate"] = "yes"; + break; + case StackElement::NoNullPointers: + attributes["default-value"] = QString(); + break; + case StackElement::SuppressedWarning: + attributes["text"] = QString(); + break; + case StackElement::ReplaceDefaultExpression: + attributes["with"] = QString(); + break; + case StackElement::DefineOwnership: + attributes["class"] = "java"; + attributes["owner"] = ""; + break; + case StackElement::ModifyFunction: + attributes["signature"] = QString(); + attributes["access"] = QString(); + attributes["remove"] = QString(); + attributes["rename"] = QString(); + attributes["deprecated"] = QString("no"); + attributes["associated-to"] = QString(); + attributes["virtual-slot"] = QString("no"); + break; + case StackElement::ModifyArgument: + attributes["index"] = QString(); + attributes["replace-value"] = QString(); + attributes["invalidate-after-use"] = QString("no"); + break; + case StackElement::ModifyField: + attributes["name"] = QString(); + attributes["write"] = "true"; + attributes["read"] = "true"; + break; + case StackElement::Access: + attributes["modifier"] = QString(); + break; + case StackElement::Include: + attributes["file-name"] = QString(); + attributes["location"] = QString(); + break; + case StackElement::CustomMetaConstructor: + attributes["name"] = topElement.entry->name().toLower() + "_create"; + attributes["param-name"] = "copy"; + break; + case StackElement::CustomMetaDestructor: + attributes["name"] = topElement.entry->name().toLower() + "_delete"; + attributes["param-name"] = "copy"; + break; + case StackElement::ReplaceType: + attributes["modified-type"] = QString(); + break; + case StackElement::InjectCode: + attributes["class"] = "java"; + attributes["position"] = "beginning"; + break; + case StackElement::ConversionRule: + attributes["class"] = ""; + break; + case StackElement::RejectEnumValue: + attributes["name"] = ""; + break; + case StackElement::ArgumentMap: + attributes["index"] = "1"; + attributes["meta-name"] = QString(); + break; + case StackElement::Rename: + attributes["to"] = QString(); + break; + case StackElement::Rejection: + attributes["class"] = "*"; + attributes["function-name"] = "*"; + attributes["field-name"] = "*"; + attributes["enum-name"] = "*"; + break; + case StackElement::Removal: + attributes["class"] = "all"; + break; + case StackElement::Template: + attributes["name"] = QString(); + break; + case StackElement::TemplateInstanceEnum: + attributes["name"] = QString(); + break; + case StackElement::Replace: + attributes["from"] = QString(); + attributes["to"] = QString(); + break; + case StackElement::ReferenceCount: + attributes["action"] = QString(); + attributes["variable-name"] = QString(); + attributes["thread-safe"] = QString("no"); + attributes["declare-variable"] = QString(); + attributes["access"] = QString("private"); + attributes["conditional"] = QString(""); + break; + default: + ; // nada + }; + + if (attributes.count() > 0) + fetchAttributeValues(tagName, atts, &attributes); + + switch (element->type) { + case StackElement::Root: + m_defaultPackage = attributes["package"]; + m_defaultSuperclass = attributes["default-superclass"]; + element->type = StackElement::Root; + element->entry = new TypeSystemTypeEntry(m_defaultPackage); + TypeDatabase::instance()->addType(element->entry); + break; + case StackElement::LoadTypesystem: + { + QString name = attributes["name"]; + if (name.isEmpty()) { + m_error = "No typesystem name specified"; + return false; + } + + if (!m_database->parseFile(name, convertBoolean(attributes["generate"], "generate", true))) { + m_error = QString("Failed to parse: '%1'").arg(name); + return false; + } + } + break; + case StackElement::RejectEnumValue: { + if (!m_current_enum) { + m_error = " node must be used inside a node"; + return false; + } + QString name = attributes["name"]; + + bool added = false; + if (!name.isEmpty()) { + added = true; + m_current_enum->addEnumValueRejection(name); + } + + } break; + case StackElement::ReplaceType: + { + if (topElement.type != StackElement::ModifyArgument) { + m_error = "Type replacement can only be specified for argument modifications"; + return false; + } + + if (attributes["modified-type"].isEmpty()) { + m_error = "Type replacement requires 'modified-type' attribute"; + return false; + } + + m_function_mods.last().argument_mods.last().modified_type = attributes["modified-type"]; + } + break; + case StackElement::ConversionRule: + { + if (topElement.type != StackElement::ModifyArgument) { + m_error = "Conversion rules can only be specified for argument modification"; + return false; + } + + static QHash languageNames; + if (languageNames.isEmpty()) { + languageNames["native"] = TypeSystem::NativeCode; + languageNames["shell"] = TypeSystem::ShellCode; + } + + CodeSnip snip; + QString languageAttribute = attributes["class"].toLower(); + TypeSystem::Language lang = languageNames.value(languageAttribute, TypeSystem::NoLanguage); + if (lang == TypeSystem::NoLanguage) { + m_error = QString("unsupported class attribute: '%1'").arg(languageAttribute); + return false; + } + + snip.language = lang; + m_function_mods.last().argument_mods.last().conversion_rules.append(snip); + } + + break; + case StackElement::ModifyArgument: + { + if (topElement.type != StackElement::ModifyFunction) { + m_error = QString::fromLatin1("argument modification requires function" + " modification as parent, was %1") + .arg(topElement.type, 0, 16); + return false; + } + + QString index = attributes["index"]; + if (index == "return") + index = "0"; + else if (index == "this") + index = "-1"; + + bool ok = false; + int idx = index.toInt(&ok); + if (!ok) { + m_error = QString("Cannot convert '%1' to integer").arg(index); + return false; + } + + QString replace_value = attributes["replace-value"]; + + if (!replace_value.isEmpty() && idx != 0) { + m_error = QString("replace-value is only supported for return values (index=0)."); + return false; + } + + ArgumentModification argumentModification = ArgumentModification(idx); + argumentModification.replace_value = replace_value; + argumentModification.reset_after_use = convertBoolean(attributes["invalidate-after-use"], "invalidate-after-use", false); + m_function_mods.last().argument_mods.append(argumentModification); + } + break; + case StackElement::NoNullPointers: + { + if (topElement.type != StackElement::ModifyArgument) { + m_error = "no-null-pointer requires argument modification as parent"; + return false; + } + + m_function_mods.last().argument_mods.last().no_null_pointers = true; + if (m_function_mods.last().argument_mods.last().index == 0) { + m_function_mods.last().argument_mods.last().null_pointer_default_value = attributes["default-value"]; + } else if (!attributes["default-value"].isEmpty()) { + ReportHandler::warning("default values for null pointer guards are only effective for return values"); + } + } + break; + case StackElement::DefineOwnership: + { + if (topElement.type != StackElement::ModifyArgument) { + m_error = "define-ownership requires argument modification as parent"; + return false; + } + + static QHash languageNames; + if (languageNames.isEmpty()) { + languageNames["java"] = TypeSystem::TargetLangCode; + languageNames["shell"] = TypeSystem::ShellCode; + } + + QString classAttribute = attributes["class"].toLower(); + TypeSystem::Language lang = languageNames.value(classAttribute, TypeSystem::NoLanguage); + if (lang == TypeSystem::NoLanguage) { + m_error = QString("unsupported class attribute: '%1'").arg(classAttribute); + return false; + } + + static QHash ownershipNames; + if (ownershipNames.isEmpty()) { + ownershipNames["java"] = TypeSystem::TargetLangOwnership; + ownershipNames["c++"] = TypeSystem::CppOwnership; + ownershipNames["default"] = TypeSystem::DefaultOwnership; + } + + QString ownershipAttribute = attributes["owner"].toLower(); + TypeSystem::Ownership owner = ownershipNames.value(ownershipAttribute, TypeSystem::InvalidOwnership); + if (owner == TypeSystem::InvalidOwnership) { + m_error = QString("unsupported owner attribute: '%1'").arg(ownershipAttribute); + return false; + } + + m_function_mods.last().argument_mods.last().ownerships[lang] = owner; + } + break; + case StackElement::SuppressedWarning: + if (attributes["text"].isEmpty()) + ReportHandler::warning("Suppressed warning with no text specified"); + else + m_database->addSuppressedWarning(attributes["text"]); + break; + case StackElement::ArgumentMap: + { + if (!(topElement.type & StackElement::CodeSnipMask)) { + m_error = "Argument maps requires code injection as parent"; + return false; + } + + bool ok; + int pos = attributes["index"].toInt(&ok); + if (!ok) { + m_error = QString("Can't convert position '%1' to integer") + .arg(attributes["position"]); + return false; + } + + if (pos <= 0) { + m_error = QString("Argument position %1 must be a positive number").arg(pos); + return false; + } + + QString meta_name = attributes["meta-name"]; + if (meta_name.isEmpty()) { + ReportHandler::warning("Empty meta name in argument map"); + } + + if (topElement.type == StackElement::InjectCodeInFunction) { + m_function_mods.last().snips.last().argumentMap[pos] = meta_name; + } else { + ReportHandler::warning("Argument maps are only useful for injection of code " + "into functions."); + } + } + break; + case StackElement::Removal: + { + if (topElement.type != StackElement::ModifyFunction) { + m_error = "Function modification parent required"; + return false; + } + + static QHash languageNames; + if (languageNames.isEmpty()) { + languageNames["java"] = TypeSystem::TargetLangAndNativeCode; + languageNames["all"] = TypeSystem::All; + } + + QString languageAttribute = attributes["class"].toLower(); + TypeSystem::Language lang = languageNames.value(languageAttribute, TypeSystem::NoLanguage); + if (lang == TypeSystem::NoLanguage) { + m_error = QString("unsupported class attribute: '%1'").arg(languageAttribute); + return false; + } + + m_function_mods.last().removal = lang; + } + break; + case StackElement::Rename: + case StackElement::Access: + { + if (topElement.type != StackElement::ModifyField + && topElement.type != StackElement::ModifyFunction) { + m_error = "Function or field modification parent required"; + return false; + } + + Modification *mod = 0; + if (topElement.type == StackElement::ModifyFunction) + mod = &m_function_mods.last(); + else + mod = &m_field_mods.last(); + + QString modifier; + if (element->type == StackElement::Rename) { + modifier = "rename"; + QString renamed_to = attributes["to"]; + if (renamed_to.isEmpty()) { + m_error = "Rename modifier requires 'to' attribute"; + return false; + } + + if (topElement.type == StackElement::ModifyFunction) + mod->setRenamedTo(renamed_to); + else + mod->setRenamedTo(renamed_to); + } else { + modifier = attributes["modifier"].toLower(); + } + + if (modifier.isEmpty()) { + m_error = "No access modification specified"; + return false; + } + + static QHash modifierNames; + if (modifierNames.isEmpty()) { + modifierNames["private"] = Modification::Private; + modifierNames["public"] = Modification::Public; + modifierNames["protected"] = Modification::Protected; + modifierNames["friendly"] = Modification::Friendly; + modifierNames["rename"] = Modification::Rename; + modifierNames["final"] = Modification::Final; + modifierNames["non-final"] = Modification::NonFinal; + } + + if (!modifierNames.contains(modifier)) { + m_error = QString("Unknown access modifier: '%1'").arg(modifier); + return false; + } + + mod->modifiers |= modifierNames[modifier]; + } + break; + case StackElement::RemoveArgument: + if (topElement.type != StackElement::ModifyArgument) { + m_error = "Removing argument requires argument modification as parent"; + return false; + } + + m_function_mods.last().argument_mods.last().removed = true; + + break; + + case StackElement::ModifyField: + { + QString name = attributes["name"]; + if (name.isEmpty()) + break; + FieldModification fm; + fm.name = name; + fm.modifiers = 0; + + QString read = attributes["read"]; + QString write = attributes["write"]; + + if (read == "true") fm.modifiers |= FieldModification::Readable; + if (write == "true") fm.modifiers |= FieldModification::Writable; + + m_field_mods << fm; + } + break; + case StackElement::ModifyFunction: + { + if (!(topElement.type & StackElement::ComplexTypeEntryMask)) { + m_error = QString::fromLatin1("Modify function requires complex type as parent" + ", was=%1").arg(topElement.type, 0, 16); + return false; + } + QString signature = attributes["signature"]; + + signature = QMetaObject::normalizedSignature(signature.toLocal8Bit().constData()); + if (signature.isEmpty()) { + m_error = "No signature for modified function"; + return false; + } + + FunctionModification mod; + mod.signature = signature; + + QString access = attributes["access"].toLower(); + if (!access.isEmpty()) { + if (access == QLatin1String("private")) + mod.modifiers |= Modification::Private; + else if (access == QLatin1String("protected")) + mod.modifiers |= Modification::Protected; + else if (access == QLatin1String("public")) + mod.modifiers |= Modification::Public; + else if (access == QLatin1String("final")) + mod.modifiers |= Modification::Final; + else if (access == QLatin1String("non-final")) + mod.modifiers |= Modification::NonFinal; + else { + m_error = QString::fromLatin1("Bad access type '%1'").arg(access); + return false; + } + } + + if (convertBoolean(attributes["deprecated"], "deprecated", false)) { + mod.modifiers |= Modification::Deprecated; + } + + QString remove = attributes["remove"].toLower(); + if (!remove.isEmpty()) { + if (remove == QLatin1String("all")) + mod.removal = TypeSystem::All; + else if (remove == QLatin1String("java")) + mod.removal = TypeSystem::TargetLangAndNativeCode; + else { + m_error = QString::fromLatin1("Bad removal type '%1'").arg(remove); + return false; + } + } + + QString rename = attributes["rename"]; + if (!rename.isEmpty()) { + mod.renamedToName = rename; + mod.modifiers |= Modification::Rename; + } + + QString association = attributes["associated-to"]; + if (!association.isEmpty()) + mod.association = association; + + mod.modifiers |= (convertBoolean(attributes["virtual-slot"], "virtual-slot", false) ? Modification::VirtualSlot : 0); + + m_function_mods << mod; + } + break; + case StackElement::ReplaceDefaultExpression: + if (!(topElement.type & StackElement::ModifyArgument)) { + m_error = "Replace default expression only allowed as child of argument modification"; + return false; + } + + if (attributes["with"].isEmpty()) { + m_error = "Default expression replaced with empty string. Use remove-default-expression instead."; + return false; + } + + m_function_mods.last().argument_mods.last().replaced_default_expression = attributes["with"]; + break; + case StackElement::RemoveDefaultExpression: + m_function_mods.last().argument_mods.last().removed_default_expression = true; + break; + case StackElement::CustomMetaConstructor: + case StackElement::CustomMetaDestructor: + { + CustomFunction *func = new CustomFunction(attributes["name"]); + func->param_name = attributes["param-name"]; + element->value.customFunction = func; + } + break; + case StackElement::ReferenceCount: + { + if (topElement.type != StackElement::ModifyArgument) { + m_error = "reference-count must be child of modify-argument"; + return false; + } + + ReferenceCount rc; + rc.threadSafe = convertBoolean(attributes["thread-safe"], "thread-safe", false); + + static QHash actions; + if (actions.isEmpty()) { + actions["add"] = ReferenceCount::Add; + actions["add-all"] = ReferenceCount::AddAll; + actions["remove"] = ReferenceCount::Remove; + actions["set"] = ReferenceCount::Set; + actions["ignore"] = ReferenceCount::Ignore; + } + rc.action = actions.value(attributes["action"].toLower(), ReferenceCount::Invalid); + + rc.variableName = attributes["variable-name"]; + if (rc.action != ReferenceCount::Ignore && rc.variableName.isEmpty()) { + m_error = "variable-name attribute must be specified"; + return false; + } + + rc.declareVariable = attributes["declare-variable"]; + rc.conditional = attributes["conditional"]; + + static QHash accessRights; + if (accessRights.isEmpty()) { + accessRights["private"] = ReferenceCount::Private; + accessRights["public"] = ReferenceCount::Public; + accessRights["protected"] = ReferenceCount::Protected; + accessRights["friendly"] = ReferenceCount::Friendly; + } + rc.access = accessRights.value(attributes["access"].toLower(), 0); + if (rc.access == 0) { + m_error = "unrecognized access value: " + attributes["access"]; + return false; + } + + if (rc.action == ReferenceCount::Invalid) { + m_error = "unrecognized value for action attribute. supported actions:"; + foreach (QString action, actions.keys()) + m_error += " " + action; + } + + m_function_mods.last().argument_mods.last().referenceCounts.append(rc); + } + break; + case StackElement::InjectCode: + { + if (((topElement.type & StackElement::ComplexTypeEntryMask) == 0) + && (topElement.type != StackElement::ModifyFunction) + && (topElement.type != StackElement::Root)) { + m_error = "wrong parent type for code injection"; + return false; + } + + static QHash languageNames; + if (languageNames.isEmpty()) { + languageNames["java"] = TypeSystem::TargetLangCode; + languageNames["native"] = TypeSystem::NativeCode; + languageNames["shell"] = TypeSystem::ShellCode; + languageNames["shell-declaration"] = TypeSystem::ShellDeclaration; + languageNames["library-initializer"] = TypeSystem::PackageInitializer; + languageNames["destructor-function"] = TypeSystem::DestructorFunction; + languageNames["constructors"] = TypeSystem::Constructors; + languageNames["interface"] = TypeSystem::Interface; + languageNames["pywrap-cpp"] = TypeSystem::PyWrapperCode; + languageNames["pywrap-h"] = TypeSystem::PyWrapperDeclaration; + } + + QString className = attributes["class"].toLower(); + if (!languageNames.contains(className)) { + m_error = QString("Invalid class specifier: '%1'").arg(className); + return false; + } + + + static QHash positionNames; + if (positionNames.isEmpty()) { + positionNames["beginning"] = CodeSnip::Beginning; + positionNames["end"] = CodeSnip::End; + // QtScript + positionNames["prototype-initialization"] = CodeSnip::PrototypeInitialization; + positionNames["constructor-initialization"] = CodeSnip::ConstructorInitialization; + positionNames["constructor"] = CodeSnip::Constructor; + } + + QString position = attributes["position"].toLower(); + if (!positionNames.contains(position)) { + m_error = QString("Invalid position: '%1'").arg(position); + return false; + } + + CodeSnip snip; + snip.language = languageNames[className]; + snip.position = positionNames[position]; + + if (snip.language == TypeSystem::Interface && topElement.type != StackElement::InterfaceTypeEntry) { + m_error = "Interface code injections must be direct child of an interface type entry"; + return false; + } + + if (topElement.type == StackElement::ModifyFunction) { + FunctionModification mod = m_function_mods.last(); + if (snip.language == TypeSystem::ShellDeclaration) { + m_error = "no function implementation in shell declaration in which to inject code"; + return false; + } + + m_function_mods.last().snips << snip; + element->type = StackElement::InjectCodeInFunction; + } else if (topElement.type == StackElement::Root) { + ((TypeSystemTypeEntry *) element->entry)->snips << snip; + + } else if (topElement.type != StackElement::Root) { + m_code_snips << snip; + } + } + break; + case StackElement::Include: + { + QString location = attributes["location"].toLower(); + + static QHash locationNames; + if (locationNames.isEmpty()) { + locationNames["global"] = Include::IncludePath; + locationNames["local"] = Include::LocalPath; + locationNames["java"] = Include::TargetLangImport; + } + + if (!locationNames.contains(location)) { + m_error = QString("Location not recognized: '%1'").arg(location); + return false; + } + + Include::IncludeType loc = locationNames[location]; + Include inc(loc, attributes["file-name"]); + + ComplexTypeEntry *ctype = static_cast(element->entry); + if (topElement.type & StackElement::ComplexTypeEntryMask) { + ctype->setInclude(inc); + } else if (topElement.type == StackElement::ExtraIncludes) { + ctype->addExtraInclude(inc); + } else { + m_error = "Only supported parents are complex types and extra-includes"; + return false; + } + + inc = ctype->include(); + IncludeList lst = ctype->extraIncludes(); + ctype = ctype->designatedInterface(); + if (ctype != 0) { + ctype->setExtraIncludes(lst); + ctype->setInclude(inc); + } + } + break; + case StackElement::Rejection: + { + QString cls = attributes["class"]; + QString function = attributes["function-name"]; + QString field = attributes["field-name"]; + QString enum_ = attributes["enum-name"]; + if (cls == "*" && function == "*" && field == "*" && enum_ == "*") { + m_error = "bad reject entry, neither 'class', 'function-name' nor " + "'field' specified"; + return false; + } + m_database->addRejection(cls, function, field, enum_); + } + break; + case StackElement::Template: + element->value.templateEntry = new TemplateEntry(attributes["name"]); + break; + case StackElement::TemplateInstanceEnum: + if (!(topElement.type & StackElement::CodeSnipMask) && + (topElement.type != StackElement::Template) && + (topElement.type != StackElement::CustomMetaConstructor) && + (topElement.type != StackElement::CustomMetaDestructor) && + (topElement.type != StackElement::ConversionRule)) + { + m_error = "Can only insert templates into code snippets, templates, custom-constructors, custom-destructors or conversion-rule."; + return false; + } + element->value.templateInstance = new TemplateInstance(attributes["name"]); + break; + case StackElement::Replace: + if (topElement.type != StackElement::TemplateInstanceEnum) { + m_error = "Can only insert replace rules into insert-template."; + return false; + } + element->parent->value.templateInstance->addReplaceRule(attributes["from"],attributes["to"]); + break; + default: + break; // nada + }; + } + + current = element.release(); + return true; +} + +TypeDatabase *TypeDatabase::instance() +{ + static TypeDatabase *db = new TypeDatabase(); + return db; +} + +TypeDatabase::TypeDatabase() : m_suppressWarnings(true) +{ + addType(new StringTypeEntry("QString")); + + StringTypeEntry *e = new StringTypeEntry("QLatin1String"); + e->setPreferredConversion(false); + addType(e); + + e = new StringTypeEntry("QStringRef"); + e->setPreferredConversion(false); + addType(e); + + e = new StringTypeEntry("QXmlStreamStringRef"); + e->setPreferredConversion(false); + addType(e); + + addType(new CharTypeEntry("QChar")); + + CharTypeEntry *c = new CharTypeEntry("QLatin1Char"); + c->setPreferredConversion(false); + addType(c); + + { + VariantTypeEntry *qvariant = new VariantTypeEntry("QVariant"); + qvariant->setCodeGeneration(TypeEntry::GenerateNothing); + addType(qvariant); + } + + { + JObjectWrapperTypeEntry *wrapper = new JObjectWrapperTypeEntry("JObjectWrapper"); + wrapper->setCodeGeneration(TypeEntry::GenerateNothing); + addType(wrapper); + } + + addType(new ThreadTypeEntry()); + addType(new VoidTypeEntry()); + + // Predefined containers... + addType(new ContainerTypeEntry("QList", ContainerTypeEntry::ListContainer)); + addType(new ContainerTypeEntry("QStringList", ContainerTypeEntry::StringListContainer)); + addType(new ContainerTypeEntry("QLinkedList", ContainerTypeEntry::LinkedListContainer)); + addType(new ContainerTypeEntry("QVector", ContainerTypeEntry::VectorContainer)); + addType(new ContainerTypeEntry("QStack", ContainerTypeEntry::StackContainer)); + addType(new ContainerTypeEntry("QSet", ContainerTypeEntry::SetContainer)); + addType(new ContainerTypeEntry("QMap", ContainerTypeEntry::MapContainer)); + addType(new ContainerTypeEntry("QHash", ContainerTypeEntry::HashContainer)); + addType(new ContainerTypeEntry("QPair", ContainerTypeEntry::PairContainer)); + addType(new ContainerTypeEntry("QQueue", ContainerTypeEntry::QueueContainer)); + addType(new ContainerTypeEntry("QMultiMap", ContainerTypeEntry::MultiMapContainer)); + + // Custom types... + // ### QtScript: no custom handling of QModelIndex for now +// addType(new QModelIndexTypeEntry()); + + addRemoveFunctionToTemplates(this); +} + +bool TypeDatabase::parseFile(const QString &filename, bool generate) +{ + QFile file(filename); + Q_ASSERT(file.exists()); + QXmlInputSource source(&file); + + int count = m_entries.size(); + + QXmlSimpleReader reader; + Handler handler(this, generate); + + reader.setContentHandler(&handler); + reader.setErrorHandler(&handler); + + bool ok = reader.parse(&source, false); + + int newCount = m_entries.size(); + + ReportHandler::debugSparse(QString::fromLatin1("Parsed: '%1', %2 new entries") + .arg(filename) + .arg(newCount - count)); + + return ok; +} + +QString PrimitiveTypeEntry::javaObjectName() const +{ + static QHash table; + if (table.isEmpty()) { + table["boolean"] = "Boolean"; + table["byte"] = "Byte"; + table["char"] = "Character"; + table["short"] = "Short"; + table["int"] = "Integer"; + table["long"] = "Long"; + table["float"] = "Float"; + table["double"] = "Double"; + } + Q_ASSERT(table.contains(targetLangName())); + return table[targetLangName()]; +} + +ContainerTypeEntry *TypeDatabase::findContainerType(const QString &name) +{ + QString template_name = name; + + int pos = name.indexOf('<'); + if (pos > 0) + template_name = name.left(pos); + + TypeEntry *type_entry = findType(template_name); + if (type_entry && type_entry->isContainer()) + return static_cast(type_entry); + return 0; +} + +PrimitiveTypeEntry *TypeDatabase::findTargetLangPrimitiveType(const QString &java_name) +{ + foreach (QList entries, m_entries.values()) { + foreach (TypeEntry *e, entries) { + if (e && e->isPrimitive()) { + PrimitiveTypeEntry *pe = static_cast(e); + if (pe->targetLangName() == java_name && pe->preferredConversion()) + return pe; + } + } + } + + return 0; +} + +IncludeList TypeDatabase::extraIncludes(const QString &className) +{ + ComplexTypeEntry *typeEntry = findComplexType(className); + if (typeEntry != 0) + return typeEntry->extraIncludes(); + else + return IncludeList(); +} + + + +QString Include::toString() const +{ + if (type == IncludePath) + return "#include <" + name + '>'; + else if (type == LocalPath) + return "#include \"" + name + "\""; + else + return "import " + name + ";"; +} + +QString Modification::accessModifierString() const +{ + if (isPrivate()) return "private"; + if (isProtected()) return "protected"; + if (isPublic()) return "public"; + if (isFriendly()) return "friendly"; + return QString(); +} + +FunctionModificationList ComplexTypeEntry::functionModifications(const QString &signature) const +{ + FunctionModificationList lst; + for (int i=0; ifindType(m_qualifier); + if (te != 0) + return te->targetLangName(); + else + return m_qualifier; +} + +QString EnumTypeEntry::jniName() const +{ + return "jint"; +} + +QString FlagsTypeEntry::jniName() const +{ + return "jint"; +} + +void EnumTypeEntry::addEnumValueRedirection(const QString &rejected, const QString &usedValue) +{ + m_enum_redirections << EnumValueRedirection(rejected, usedValue); +} + +QString EnumTypeEntry::enumValueRedirection(const QString &value) const +{ + for (int i=0; ijavaQualifier() + "." + targetLangName(); +} + + +void TypeDatabase::addRejection(const QString &class_name, const QString &function_name, + const QString &field_name, const QString &enum_name) +{ + TypeRejection r; + r.class_name = class_name; + r.function_name = function_name; + r.field_name = field_name; + r.enum_name = enum_name; + + m_rejections << r; +} + +bool TypeDatabase::isClassRejected(const QString &class_name) +{ + if (!m_rebuild_classes.isEmpty()) + return !m_rebuild_classes.contains(class_name); + + foreach (const TypeRejection &r, m_rejections) + if (r.class_name == class_name && r.function_name == "*" && r.field_name == "*" && r.enum_name == "*") { + return true; + } + return false; +} + +bool TypeDatabase::isEnumRejected(const QString &class_name, const QString &enum_name) +{ + foreach (const TypeRejection &r, m_rejections) { + if (r.enum_name == enum_name + && (r.class_name == class_name || r.class_name == "*")) { + return true; + } + } + + return false; +} + +bool TypeDatabase::isFunctionRejected(const QString &class_name, const QString &function_name) +{ + foreach (const TypeRejection &r, m_rejections) + if (r.function_name == function_name && + (r.class_name == class_name || r.class_name == "*")) + return true; + return false; +} + + +bool TypeDatabase::isFieldRejected(const QString &class_name, const QString &field_name) +{ + foreach (const TypeRejection &r, m_rejections) + if (r.field_name == field_name && + (r.class_name == class_name || r.class_name == "*")) + return true; + return false; +} + +FlagsTypeEntry *TypeDatabase::findFlagsType(const QString &name) const +{ + FlagsTypeEntry *fte = (FlagsTypeEntry *) findType(name); + return fte ? fte : (FlagsTypeEntry *) m_flags_entries.value(name); +} + +QString TypeDatabase::globalNamespaceClassName(const TypeEntry * /*entry*/) { + return QLatin1String("Global"); +} + + +/*! + * The Visual Studio 2002 compiler doesn't support these symbols, + * which our typedefs unforntuatly expand to. + */ +QString fixCppTypeName(const QString &name) +{ + if (name == "long long") return "qint64"; + else if (name == "unsigned long long") return "quint64"; + return name; +} + +QString formattedCodeHelper(QTextStream &s, Indentor &indentor, QStringList &lines) { + bool multilineComment = false; + bool lastEmpty = true; + QString lastLine; + while (!lines.isEmpty()) { + const QString line = lines.takeFirst().trimmed(); + if (line.isEmpty()) { + if (!lastEmpty) + s << endl; + lastEmpty = true; + continue; + } else { + lastEmpty = false; + } + if (line.startsWith("/*")) + multilineComment = true; + + if (multilineComment) { + s << indentor; + if (line.startsWith("*")) + s << " "; + s << line << endl; + if (line.endsWith("*/")) + multilineComment = false; + } else if (line.startsWith("}")) { + return line; + } else if (line.endsWith("}")) { + s << indentor << line << endl; + return 0; + } else if(line.endsWith("{")) { + s << indentor << line << endl; + QString tmp; + { + Indentation indent(indentor); + tmp = formattedCodeHelper(s, indentor, lines); + } + if (!tmp.isNull()) { + s << indentor << tmp << endl; + } + lastLine = tmp; + continue; + } else { + s << indentor; + if (!lastLine.isEmpty() && + !lastLine.endsWith(";") && + !line.startsWith("@") && + !line.startsWith("//") && + !lastLine.startsWith("//") && + !lastLine.endsWith("}") && + !line.startsWith("{")) + s << " "; + s << line << endl; + } + lastLine = line; + } + return 0; +} + + +QTextStream &CodeSnip::formattedCode(QTextStream &s, Indentor &indentor) const +{ + QStringList lst(code().split("\n")); + while (!lst.isEmpty()) { + QString tmp = formattedCodeHelper(s, indentor, lst); + if (!tmp.isNull()) { + s << indentor << tmp << endl; + } + } + s.flush(); + return s; +} + +QString TemplateInstance::expandCode() const{ + TemplateEntry *templateEntry = TypeDatabase::instance()->findTemplate(m_name); + if(templateEntry){ + QString res = templateEntry->code(); + foreach(QString key, replaceRules.keys()){ + res.replace(key, replaceRules[key]); + } + return "// TEMPLATE - " + m_name + " - START" + res + "// TEMPLATE - " + m_name + " - END"; + } + else{ + ReportHandler::warning("insert-template referring to non-existing template '" + m_name + "'"); + } + return QString(); +} + + +QString CodeSnipAbstract::code() const{ + QString res; + foreach(CodeSnipFragment *codeFrag, codeList){ + res.append(codeFrag->code()); + } + return res; +} + +QString CodeSnipFragment::code() const{ + if(m_instance) + return m_instance->expandCode(); + else + return m_code; +} + +QString FunctionModification::toString() const +{ + QString str = signature + QLatin1String("->"); + if (modifiers & AccessModifierMask) { + switch (modifiers & AccessModifierMask) { + case Private: str += QLatin1String("private"); break; + case Protected: str += QLatin1String("protected"); break; + case Public: str += QLatin1String("public"); break; + case Friendly: str += QLatin1String("friendly"); break; + } + } + + if (modifiers & Final) str += QLatin1String("final"); + if (modifiers & NonFinal) str += QLatin1String("non-final"); + + if (modifiers & Readable) str += QLatin1String("readable"); + if (modifiers & Writable) str += QLatin1String("writable"); + + if (modifiers & CodeInjection) { + foreach (CodeSnip s, snips) { + str += QLatin1String("\n//code injection:\n"); + str += s.code(); + } + } + + if (modifiers & Rename) str += QLatin1String("renamed:") + renamedToName; + + if (modifiers & Deprecated) str += QLatin1String("deprecate"); + + if (modifiers & ReplaceExpression) str += QLatin1String("replace-expression"); + + return str; +} + +static void removeFunction(ComplexTypeEntry *e, const char *signature) +{ + FunctionModification mod; + mod.signature = QMetaObject::normalizedSignature(signature); + mod.removal = TypeSystem::All; + + e->addFunctionModification(mod); +} + + + + +static void injectCode(ComplexTypeEntry *e, + const char *signature, + const QByteArray &code, + const ArgumentMap &args) +{ + CodeSnip snip; + snip.language = TypeSystem::NativeCode; + snip.position = CodeSnip::Beginning; + snip.addCode(QString::fromLatin1(code)); + snip.argumentMap = args; + + FunctionModification mod; + mod.signature = QMetaObject::normalizedSignature(signature); + mod.snips << snip; + mod.modifiers = Modification::CodeInjection; + e->addFunctionModification(mod); +} + + +static void addRemoveFunctionToTemplates(TypeDatabase *db) +{ + ContainerTypeEntry *qvector = db->findContainerType(QLatin1String("QVector")); + removeFunction(qvector, "constData() const"); + removeFunction(qvector, "data() const"); + removeFunction(qvector, "data()"); + removeFunction(qvector, "first()"); + removeFunction(qvector, "last()"); + removeFunction(qvector, "operator[](int)"); + removeFunction(qvector, "operator[](int) const"); + removeFunction(qvector, "operator=(QVector)"); + + ContainerTypeEntry *qlist = db->findContainerType(QLatin1String("QList")); + removeFunction(qlist, "constData() const"); + removeFunction(qlist, "data() const"); + removeFunction(qlist, "data()"); + removeFunction(qlist, "back()"); + removeFunction(qlist, "front()"); + removeFunction(qlist, "first()"); + removeFunction(qlist, "last()"); + removeFunction(qlist, "operator[](int)"); + removeFunction(qlist, "operator[](int) const"); + removeFunction(qlist, "operator=(QList)"); + + ContainerTypeEntry *qqueue = db->findContainerType(QLatin1String("QQueue")); + removeFunction(qqueue, "head() const"); + + // QtScript: The next part is Java-specific, skip it for now... + return; + + ArgumentMap args1; + args1[1] = QLatin1String("$1"); + ArgumentMap args2 = args1; + args2[2] = QLatin1String("$2"); + + QByteArray code = + "\nif ($1 >= __qt_this->size() || $1 < 0) {" + "\n __jni_env->ThrowNew(__jni_env->FindClass(\"java/lang/IndexOutOfBoundsException\")," + "\n QString::fromLatin1(\"Accessing container of size %3 at %4\")" + "\n .arg(__qt_this->size()).arg($1).toLatin1());" + "\n return;" + "\n}"; + + QByteArray code_with_return = QByteArray(code).replace("return;", "return 0;"); + + QByteArray code_index_length = + "\nif ($1 < 0 || $2 < 0 || ($1 + $2) >= __qt_this->size()) {" + "\n __jni_env->ThrowNew(__jni_env->FindClass(\"java/lang/IndexOutOfBoundsException\")," + "\n QString::fromLatin1(\"Accessing container of size %3 from %4 to %5\")" + "\n .arg(__qt_this->size()).arg($1).arg($1+$2).toLatin1());" + "\n return;" + "\n}"; + + QByteArray code_non_empty = + "\nif (__qt_this->isEmpty()) {" + "\n __jni_env->ThrowNew(__jni_env->FindClass(\"java/lang/IndexOutOfBoundsException\")," + "\n QString::fromLatin1(\"Accessing empty container...\").toLatin1());" + "\n return;" + "\n}"; + + QByteArray code_two_indices = + "\nif ($1 < 0 || $2 < 0 || $1 >= __qt_this->size() || $2 >= __qt_this->size()) {" + "\n __jni_env->ThrowNew(__jni_env->FindClass(\"java/lang/IndexOutOfBoundsException\")," + "\n QString::fromLatin1(\"Accessing container of size %3 from %4 to %5\")" + "\n .arg(__qt_this->size()).arg($1).arg($1+$2).toLatin1());" + "\n return;" + "\n}"; + + { // QVector safty... + injectCode(qvector, "at(int) const", code_with_return, args1); + injectCode(qvector, "replace(int,T)", code, args1); + injectCode(qvector, "remove(int)", code, args1); + injectCode(qvector, "remove(int, int)", code_index_length, args2); + injectCode(qvector, "pop_back()", code_non_empty, ArgumentMap()); + injectCode(qvector, "pop_front()", code_non_empty, ArgumentMap()); + } + + { // QList safty... + injectCode(qlist, "at(int) const", code_with_return, args1); + injectCode(qlist, "replace(int, T)", code, args1); + injectCode(qlist, "pop_back()", code_non_empty, ArgumentMap()); + injectCode(qlist, "pop_front()", code_non_empty, ArgumentMap()); + injectCode(qlist, "swap(int, int)", code_two_indices, args2); + injectCode(qlist, "move(int, int)", code_two_indices, args2); + injectCode(qlist, "removeAt(int)", code, args1); + injectCode(qlist, "takeAt(int)", code_with_return, args1); + } + +} diff --git a/generator_50/typesystem.h b/generator_50/typesystem.h new file mode 100644 index 00000000..4c051026 --- /dev/null +++ b/generator_50/typesystem.h @@ -0,0 +1,1225 @@ +/**************************************************************************** +** +** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the Qt Script Generator project on Qt Labs. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef TYPESYSTEM_H +#define TYPESYSTEM_H + +#include +#include +#include +#include +#include + +class Indentor; + +class AbstractMetaType; +class QTextStream; + +class EnumTypeEntry; +class FlagsTypeEntry; + +extern QString strings_Object; +extern QString strings_String; +extern QString strings_Thread; +extern QString strings_char; +extern QString strings_java_lang; +extern QString strings_jchar; +extern QString strings_jobject; + +struct Include +{ + enum IncludeType { + IncludePath, + LocalPath, + TargetLangImport + }; + + Include() : type(IncludePath) { } + Include(IncludeType t, const QString &nam) : type(t), name(nam) { }; + + bool isValid() { return !name.isEmpty(); } + + IncludeType type; + QString name; + + QString toString() const; + + bool operator<(const Include &other) const { return name < other.name; } +}; +typedef QList IncludeList; + +typedef QMap ArgumentMap; + +class TemplateInstance; + +namespace TypeSystem { + enum Language { + NoLanguage = 0x0000, + TargetLangCode = 0x0001, + NativeCode = 0x0002, + ShellCode = 0x0004, + ShellDeclaration = 0x0008, + PackageInitializer = 0x0010, + DestructorFunction = 0x0020, + Constructors = 0x0040, + Interface = 0x0080, + PyWrapperCode = 0x0100, + PyWrapperDeclaration = 0x0200, + + // masks + All = TargetLangCode + | NativeCode + | ShellCode + | ShellDeclaration + | PackageInitializer + | Constructors + | Interface + | DestructorFunction, + + JavaAndNativeCode = TargetLangCode | NativeCode, + TargetLangAndNativeCode = TargetLangCode | NativeCode + }; + + enum Ownership { + InvalidOwnership, + DefaultOwnership, + TargetLangOwnership, + CppOwnership + }; +}; + +struct ReferenceCount +{ + ReferenceCount() : threadSafe(false), access(Public) { } + enum Action { // 0x01 - 0xff + Invalid = 0x00, + Add = 0x01, + AddAll = 0x02, + Remove = 0x04, + Set = 0x08, + Ignore = 0x10, + + ActionsMask = 0xff, + + Padding = 0xffffffff + }; + + enum Flag { // 0x100 - 0xf00 + ThreadSafe = 0x100, + Static = 0x200, + DeclareVariable = 0x400, + + FlagsMask = 0xf00 + }; + + enum Access { // 0x1000 - 0xf000 + Private = 0x1000, + Protected = 0x2000, + Friendly = 0x3000, + Public = 0x4000, + + AccessMask = 0xf000 + }; + + Action action; + QString variableName; + QString conditional; + QString declareVariable; + + uint threadSafe : 1; + + uint access; +}; + +class CodeSnipFragment{ + private: + const QString m_code; + TemplateInstance *m_instance; + + public: + CodeSnipFragment(const QString &code) + : m_code(code), + m_instance(0) + {} + + CodeSnipFragment(TemplateInstance *instance) + : m_instance(instance) + {} + + QString code() const; +}; + +class CodeSnipAbstract{ +public: + QString code() const; + + void addCode(const QString &code){ + codeList.append(new CodeSnipFragment(code)); + } + + void addTemplateInstance(TemplateInstance *ti){ + codeList.append(new CodeSnipFragment(ti)); + } + + QList codeList; +}; + +class CustomFunction : public CodeSnipAbstract +{ + public: + CustomFunction(const QString &n = QString()) : name(n) { } + + QString name; + QString param_name; +}; + +class TemplateEntry : public CodeSnipAbstract +{ +public: + TemplateEntry(const QString &name) + : m_name(name) + { + }; + + QString name() const { + return m_name; + }; + +private: + QString m_name; +}; + +typedef QHash TemplateEntryHash; + +class TemplateInstance +{ + public: + TemplateInstance(const QString &name) + : m_name(name) + {} + + void addReplaceRule(const QString &name, const QString &value){ + replaceRules[name]=value; + } + + QString expandCode() const; + + QString name() const { + return m_name; + } + + private: + const QString m_name; + QHash replaceRules; +}; + + +class CodeSnip : public CodeSnipAbstract +{ + public: + enum Position { + Beginning, + End, + AfterThis, + // QtScript + PrototypeInitialization, + ConstructorInitialization, + Constructor + }; + + CodeSnip() : language(TypeSystem::TargetLangCode) { } + CodeSnip(TypeSystem::Language lang) : language(lang) { } + + // Very simple, easy to make code ugly if you try + QTextStream &formattedCode(QTextStream &s, Indentor &indentor) const; + + TypeSystem::Language language; + Position position; + ArgumentMap argumentMap; +}; +typedef QList CodeSnipList; + +struct ArgumentModification +{ + ArgumentModification(int idx) : removed_default_expression(false), removed(false), no_null_pointers(false), index(idx) + {} + + // Should the default expression be removed? + uint removed_default_expression : 1; + uint removed : 1; + uint no_null_pointers : 1; + uint reset_after_use : 1; + + // The index of this argument + int index; + + // Reference count flags for this argument + QList referenceCounts; + + // The text given for the new type of the argument + QString modified_type; + + QString replace_value; + + // The code to be used to construct a return value when no_null_pointers is true and + // the returned value is null. If no_null_pointers is true and this string is + // empty, then the base class implementation will be used (or a default construction + // if there is no implementation) + QString null_pointer_default_value; + + // The text of the new default expression of the argument + QString replaced_default_expression; + + // The new definition of ownership for a specific argument + QHash ownerships; + + // Different conversion rules + CodeSnipList conversion_rules; +}; + +struct Modification { + enum Modifiers { + Private = 0x0001, + Protected = 0x0002, + Public = 0x0003, + Friendly = 0x0004, + AccessModifierMask = 0x000f, + + Final = 0x0010, + NonFinal = 0x0020, + FinalMask = Final | NonFinal, + + Readable = 0x0100, + Writable = 0x0200, + + CodeInjection = 0x1000, + Rename = 0x2000, + Deprecated = 0x4000, + ReplaceExpression = 0x8000, + VirtualSlot = 0x10000 | NonFinal + }; + + Modification() : modifiers(0) { } + + bool isAccessModifier() const { return modifiers & AccessModifierMask; } + Modifiers accessModifier() const { return Modifiers(modifiers & AccessModifierMask); } + bool isPrivate() const { return accessModifier() == Private; } + bool isProtected() const { return accessModifier() == Protected; } + bool isPublic() const { return accessModifier() == Public; } + bool isFriendly() const { return accessModifier() == Friendly; } + bool isFinal() const { return modifiers & Final; } + bool isNonFinal() const { return modifiers & NonFinal; } + bool isVirtualSlot() const { return (modifiers & VirtualSlot) == VirtualSlot; } + QString accessModifierString() const; + + bool isDeprecated() const { return modifiers & Deprecated; } + + void setRenamedTo(const QString &name) { renamedToName = name; } + QString renamedTo() const { return renamedToName; } + bool isRenameModifier() const { return modifiers & Rename; } + + uint modifiers; + QString renamedToName; +}; + +struct FunctionModification: public Modification +{ + FunctionModification() : removal(TypeSystem::NoLanguage) { } + + bool isCodeInjection() const { return modifiers & CodeInjection; } + bool isRemoveModifier() const { return removal != TypeSystem::NoLanguage; } + + QString toString() const; + + QString signature; + QString association; + CodeSnipList snips; + TypeSystem::Language removal; + + QList argument_mods; +}; +typedef QList FunctionModificationList; + +struct FieldModification: public Modification +{ + bool isReadable() const { return modifiers & Readable; } + bool isWritable() const { return modifiers & Writable; } + + QString name; +}; +typedef QList FieldModificationList; + +struct ExpensePolicy { + ExpensePolicy() : limit(-1) { } + int limit; + QString cost; + bool isValid() const { return limit >= 0; } +}; + +class InterfaceTypeEntry; +class ObjectTypeEntry; + +class TypeEntry +{ +public: + enum Type { + PrimitiveType, + VoidType, + FlagsType, + EnumType, + TemplateArgumentType, + ThreadType, + BasicValueType, + StringType, + ContainerType, + InterfaceType, + ObjectType, + NamespaceType, + VariantType, + JObjectWrapperType, + CharType, + ArrayType, + TypeSystemType, + CustomType, + }; + + enum CodeGeneration { + GenerateTargetLang = 0x0001, + GenerateCpp = 0x0002, + GenerateForSubclass = 0x0004, + + GenerateNothing = 0, + GenerateAll = 0xffff, + GenerateCode = GenerateTargetLang | GenerateCpp + }; + + TypeEntry(const QString &name, Type t) + : m_name(name), + m_type(t), + m_code_generation(GenerateAll), + m_preferred_conversion(true) + { + }; + + virtual ~TypeEntry() { } + + Type type() const { return m_type; } + bool isPrimitive() const { return m_type == PrimitiveType; } + bool isEnum() const { return m_type == EnumType; } + bool isFlags() const { return m_type == FlagsType; } + bool isInterface() const { return m_type == InterfaceType; } + bool isObject() const { return m_type == ObjectType; } + bool isString() const { return m_type == StringType; } + bool isChar() const { return m_type == CharType; } + bool isNamespace() const { return m_type == NamespaceType; } + bool isContainer() const { return m_type == ContainerType; } + bool isVariant() const { return m_type == VariantType; } + bool isJObjectWrapper() const { return m_type == JObjectWrapperType; } + bool isArray() const { return m_type == ArrayType; } + bool isTemplateArgument() const { return m_type == TemplateArgumentType; } + bool isVoid() const { return m_type == VoidType; } + bool isThread() const { return m_type == ThreadType; } + bool isCustom() const { return m_type == CustomType; } + bool isBasicValue() const { return m_type == BasicValueType; } + bool isTypeSystem() const { return m_type == TypeSystemType; } + + virtual bool preferredConversion() const { return m_preferred_conversion; } + virtual void setPreferredConversion(bool b) { m_preferred_conversion = b; } + + // The type's name in C++, fully qualified + QString name() const { return m_name; } + + uint codeGeneration() const { return m_code_generation; } + void setCodeGeneration(uint cg) { m_code_generation = cg; } + + virtual QString qualifiedCppName() const { return m_name; } + + // Its type's name in JNI + virtual QString jniName() const { return m_name; } + + // The type's name in TargetLang + virtual QString targetLangName() const { return m_name; } + + // The type to lookup when converting to TargetLang + virtual QString lookupName() const { return targetLangName(); } + + // The package + virtual QString javaPackage() const { return QString(); } + + virtual QString qualifiedTargetLangName() const { + QString pkg = javaPackage(); + if (pkg.isEmpty()) return targetLangName(); + return pkg + '.' + targetLangName(); + } + + virtual InterfaceTypeEntry *designatedInterface() const { return 0; } + + void setCustomConstructor(const CustomFunction &func) { m_customConstructor = func; } + CustomFunction customConstructor() const { return m_customConstructor; } + + void setCustomDestructor(const CustomFunction &func) { m_customDestructor = func; } + CustomFunction customDestructor() const { return m_customDestructor; } + + virtual bool isValue() const { return false; } + virtual bool isComplex() const { return false; } + + virtual bool isNativeIdBased() const { return false; } + +private: + QString m_name; + Type m_type; + uint m_code_generation; + CustomFunction m_customConstructor; + CustomFunction m_customDestructor; + bool m_preferred_conversion; +}; +typedef QHash > TypeEntryHash; +typedef QHash SingleTypeEntryHash; + + +class TypeSystemTypeEntry : public TypeEntry +{ +public: + TypeSystemTypeEntry(const QString &name) + : TypeEntry(name, TypeSystemType) + { + }; + + QList snips; +}; + + +class ThreadTypeEntry : public TypeEntry +{ +public: + ThreadTypeEntry() : TypeEntry("QThread", ThreadType) { setCodeGeneration(GenerateNothing); } + + QString jniName() const { return strings_jobject; } + QString targetLangName() const { return strings_Thread; } + QString javaPackage() const { return strings_java_lang; } +}; + +class VoidTypeEntry : public TypeEntry +{ +public: + VoidTypeEntry() : TypeEntry("void", VoidType) { } +}; + +class TemplateArgumentEntry : public TypeEntry +{ +public: + TemplateArgumentEntry(const QString &name) + : TypeEntry(name, TemplateArgumentType), m_ordinal(0) + { + } + + int ordinal() const { return m_ordinal; } + void setOrdinal(int o) { m_ordinal = o; } + +private: + int m_ordinal; +}; + +class ArrayTypeEntry : public TypeEntry +{ +public: + ArrayTypeEntry(const TypeEntry *nested_type) : TypeEntry("Array", ArrayType), m_nested_type(nested_type) + { + Q_ASSERT(m_nested_type); + } + + void setNestedTypeEntry(TypeEntry *nested) { m_nested_type = nested; } + const TypeEntry *nestedTypeEntry() const { return m_nested_type; } + + QString targetLangName() const { return m_nested_type->targetLangName() + "[]"; } + QString jniName() const + { + if (m_nested_type->isPrimitive()) + return m_nested_type->jniName() + "Array"; + else + return "jobjectArray"; + } + +private: + const TypeEntry *m_nested_type; +}; + + +class PrimitiveTypeEntry : public TypeEntry +{ +public: + PrimitiveTypeEntry(const QString &name) + : TypeEntry(name, PrimitiveType), m_preferred_conversion(true), m_preferred_java_type(true) + { + } + + QString targetLangName() const { return m_java_name; } + void setTargetLangName(const QString &targetLangName) { m_java_name = targetLangName; } + + QString jniName() const { return m_jni_name; } + void setJniName(const QString &jniName) { m_jni_name = jniName; } + + QString javaObjectFullName() const { return javaObjectPackage() + "." + javaObjectName(); } + QString javaObjectName() const; + QString javaObjectPackage() const { return strings_java_lang; } + + virtual bool preferredConversion() const { return m_preferred_conversion; } + virtual void setPreferredConversion(bool b) { m_preferred_conversion = b; } + + virtual bool preferredTargetLangType() const { return m_preferred_java_type; } + virtual void setPreferredTargetLangType(bool b) { m_preferred_java_type = b; } + +private: + QString m_java_name; + QString m_jni_name; + uint m_preferred_conversion : 1; + uint m_preferred_java_type : 1; +}; + + + + +struct EnumValueRedirection +{ + EnumValueRedirection(const QString &rej, const QString &us) + : rejected(rej), + used(us) + { + } + QString rejected; + QString used; +}; + +class EnumTypeEntry : public TypeEntry +{ +public: + EnumTypeEntry(const QString &nspace, const QString &enumName) + : TypeEntry(nspace.isEmpty() ? enumName : nspace + QLatin1String("::") + enumName, + EnumType), + m_flags(0), + m_extensible(false) + { + m_qualifier = nspace; + m_java_name = enumName; + } + + QString javaPackage() const { return m_package_name; } + void setTargetLangPackage(const QString &package) { m_package_name = package; } + + QString targetLangName() const { return m_java_name; } + QString javaQualifier() const; + QString qualifiedTargetLangName() const { + QString pkg = javaPackage(); + if (pkg.isEmpty()) return javaQualifier() + '.' + targetLangName(); + return pkg + '.' + javaQualifier() + '.' + targetLangName(); + } + + QString jniName() const; + + Include include() const { return m_include; } + void setInclude(const Include &inc) { m_include = inc; } + + QString qualifier() const { return m_qualifier; } + void setQualifier(const QString &q) { m_qualifier = q; } + + virtual bool preferredConversion() const { return false; } + + bool isBoundsChecked() const { return m_lower_bound.isEmpty() && m_upper_bound.isEmpty(); } + + QString upperBound() const { return m_upper_bound; } + void setUpperBound(const QString &bound) { m_upper_bound = bound; } + + QString lowerBound() const { return m_lower_bound; } + void setLowerBound(const QString &bound) { m_lower_bound = bound; } + + void setFlags(FlagsTypeEntry *flags) { m_flags = flags; } + FlagsTypeEntry *flags() const { return m_flags; } + + bool isExtensible() const { return m_extensible; } + void setExtensible(bool is) { m_extensible = is; } + + bool isEnumValueRejected(const QString &name) { return m_rejected_enums.contains(name); } + void addEnumValueRejection(const QString &name) { m_rejected_enums << name; } + QStringList enumValueRejections() const { return m_rejected_enums; } + + void addEnumValueRedirection(const QString &rejected, const QString &usedValue); + QString enumValueRedirection(const QString &value) const; + + bool forceInteger() const { return m_force_integer; } + void setForceInteger(bool force) { m_force_integer = force; } + +private: + Include m_include; + QString m_package_name; + QString m_qualifier; + QString m_java_name; + + QString m_lower_bound; + QString m_upper_bound; + + QStringList m_rejected_enums; + QList m_enum_redirections; + + FlagsTypeEntry *m_flags; + + bool m_extensible; + bool m_force_integer; +}; + +class FlagsTypeEntry : public TypeEntry +{ +public: + FlagsTypeEntry(const QString &name) : TypeEntry(name, FlagsType), m_enum(0) + { + } + + QString qualifiedTargetLangName() const; + QString targetLangName() const { return m_java_name; } + QString jniName() const; + virtual bool preferredConversion() const { return false; } + + QString originalName() const { return m_original_name; } + void setOriginalName(const QString &s) { m_original_name = s; } + + QString flagsName() const { return m_java_name; } + void setFlagsName(const QString &name) { m_java_name = name; } + + bool forceInteger() const { return m_enum->forceInteger(); } + + EnumTypeEntry *originator() const { return m_enum; } + void setOriginator(EnumTypeEntry *e) { m_enum = e; } + + QString javaPackage() const { return m_enum->javaPackage(); } + +private: + QString m_original_name; + QString m_java_name; + EnumTypeEntry *m_enum; +}; + + +class ComplexTypeEntry : public TypeEntry +{ +public: + enum TypeFlag { + ForceAbstract = 0x1, + DeleteInMainThread = 0x2, + Deprecated = 0x4 + }; + typedef QFlags TypeFlags; + + ComplexTypeEntry(const QString &name, Type t) + : TypeEntry(QString(name).replace("::", "_"), t), + m_qualified_cpp_name(name), + m_qobject(false), + m_polymorphic_base(false), + m_generic_class(false), + m_type_flags(0) + { + Include inc; + inc.name = "QVariant"; + inc.type = Include::IncludePath; + + addExtraInclude(inc); + } + + bool isComplex() const { return true; } + + IncludeList extraIncludes() const { return m_extra_includes; } + void setExtraIncludes(const IncludeList &includes) { m_extra_includes = includes; } + void addExtraInclude(const Include &include) + { + if (!m_includes_used.value(include.name, false)) { + m_extra_includes << include; + m_includes_used[include.name] = true; + } + } + + ComplexTypeEntry *copy() const + { + ComplexTypeEntry *centry = new ComplexTypeEntry(name(), type()); + centry->setInclude(include()); + centry->setExtraIncludes(extraIncludes()); + centry->setFunctionModifications(functionModifications()); + centry->setFieldModifications(fieldModifications()); + centry->setQObject(isQObject()); + centry->setDefaultSuperclass(defaultSuperclass()); + centry->setCodeSnips(codeSnips()); + centry->setTargetLangPackage(javaPackage()); + + return centry; + } + + void setLookupName(const QString &name) + { + m_lookup_name = name; + } + + virtual QString lookupName() const + { + return m_lookup_name.isEmpty() ? targetLangName() : m_lookup_name; + } + + QString jniName() const { return strings_jobject; } + + + Include include() const { return m_include; } + void setInclude(const Include &inc) { m_include = inc; } + + void setTypeFlags(TypeFlags flags) + { + m_type_flags = flags; + } + + TypeFlags typeFlags() const + { + return m_type_flags; + } + + CodeSnipList codeSnips() const { return m_code_snips; } + void setCodeSnips(const CodeSnipList &codeSnips) { m_code_snips = codeSnips; } + void addCodeSnip(const CodeSnip &codeSnip) { m_code_snips << codeSnip; } + + FunctionModificationList functionModifications() const { return m_function_mods; } + void setFunctionModifications(const FunctionModificationList &functionModifications) { + m_function_mods = functionModifications; + } + void addFunctionModification(const FunctionModification &functionModification) { + m_function_mods << functionModification; + } + FunctionModificationList functionModifications(const QString &signature) const; + + FieldModification fieldModification(const QString &name) const; + void setFieldModifications(const FieldModificationList &mods) { m_field_mods = mods; } + FieldModificationList fieldModifications() const { return m_field_mods; } + + QString javaPackage() const { return m_package; } + void setTargetLangPackage(const QString &package) { m_package = package; } + + bool isQObject() const { return m_qobject; } + void setQObject(bool qobject) { m_qobject = qobject; } + + QString defaultSuperclass() const { return m_default_superclass; } + void setDefaultSuperclass(const QString &sc) { m_default_superclass = sc; } + + virtual QString qualifiedCppName() const { return m_qualified_cpp_name; } + + + void setIsPolymorphicBase(bool on) + { + m_polymorphic_base = on; + } + bool isPolymorphicBase() const { return m_polymorphic_base; } + + void setPolymorphicIdValue(const QString &value) + { + m_polymorphic_id_value = value; + } + QString polymorphicIdValue() const { return m_polymorphic_id_value; } + + void setExpensePolicy(const ExpensePolicy &policy) { m_expense_policy = policy; } + const ExpensePolicy &expensePolicy() const { return m_expense_policy; } + + QString targetType() const { return m_target_type; } + void setTargetType(const QString &code) { m_target_type = code; } + + QString targetLangName() const { return m_java_name.isEmpty() + ? TypeEntry::targetLangName() + : m_java_name; + } + void setTargetLangName(const QString &name) { m_java_name = name; } + + bool isGenericClass() const { return m_generic_class; } + void setGenericClass(bool isGeneric) { m_generic_class = isGeneric; } + +private: + IncludeList m_extra_includes; + Include m_include; + QHash m_includes_used; + FunctionModificationList m_function_mods; + FieldModificationList m_field_mods; + CodeSnipList m_code_snips; + QString m_package; + QString m_default_superclass; + QString m_qualified_cpp_name; + QString m_java_name; + + uint m_qobject : 1; + uint m_polymorphic_base : 1; + uint m_generic_class : 1; + + QString m_polymorphic_id_value; + QString m_lookup_name; + QString m_target_type; + ExpensePolicy m_expense_policy; + TypeFlags m_type_flags; +}; + +class ContainerTypeEntry : public ComplexTypeEntry +{ +public: + enum Type { + NoContainer, + ListContainer, + StringListContainer, + LinkedListContainer, + VectorContainer, + StackContainer, + QueueContainer, + SetContainer, + MapContainer, + MultiMapContainer, + HashContainer, + MultiHashContainer, + PairContainer, + }; + + ContainerTypeEntry(const QString &name, Type type) + : ComplexTypeEntry(name, ContainerType) + { + m_type = type; + setCodeGeneration(GenerateForSubclass); + } + + Type type() const { return m_type; } + QString targetLangName() const; + QString javaPackage() const; + QString qualifiedCppName() const; + +private: + Type m_type; +}; + + +class NamespaceTypeEntry : public ComplexTypeEntry +{ +public: + NamespaceTypeEntry(const QString &name) : ComplexTypeEntry(name, NamespaceType) { } +}; + + +class ValueTypeEntry : public ComplexTypeEntry +{ +public: + ValueTypeEntry(const QString &name) : ComplexTypeEntry(name, BasicValueType) { } + + bool isValue() const { return true; } + + virtual bool isNativeIdBased() const { return true; } + +protected: + ValueTypeEntry(const QString &name, Type t) : ComplexTypeEntry(name, t) { } +}; + + +class StringTypeEntry : public ValueTypeEntry +{ +public: + StringTypeEntry(const QString &name) + : ValueTypeEntry(name, StringType) + { + setCodeGeneration(GenerateNothing); + } + + QString jniName() const { return strings_jobject; } + QString targetLangName() const { return strings_String; } + QString javaPackage() const { return strings_java_lang; } + + virtual bool isNativeIdBased() const { return false; } +}; + +class CharTypeEntry : public ValueTypeEntry +{ +public: + CharTypeEntry(const QString &name) : ValueTypeEntry(name, CharType) + { + setCodeGeneration(GenerateNothing); + } + + QString jniName() const { return strings_jchar; } + QString targetLangName() const { return strings_char; } + QString javaPackage() const { return QString(); } + + virtual bool isNativeIdBased() const { return false; } +}; + +class JObjectWrapperTypeEntry: public ValueTypeEntry +{ +public: + JObjectWrapperTypeEntry(const QString &name) : ValueTypeEntry(name, JObjectWrapperType) { } + + QString jniName() const { return strings_jobject; } + QString targetLangName() const { return strings_Object; } + QString javaPackage() const { return strings_java_lang; } + + bool isNativeIdBased() const { return false; } +}; + +class VariantTypeEntry: public ValueTypeEntry +{ +public: + VariantTypeEntry(const QString &name) : ValueTypeEntry(name, VariantType) { } + + QString jniName() const { return strings_jobject; } + QString targetLangName() const { return strings_Object; } + QString javaPackage() const { return strings_java_lang; } + + virtual bool isNativeIdBased() const { return false; } +}; + + +class InterfaceTypeEntry : public ComplexTypeEntry +{ +public: + InterfaceTypeEntry(const QString &name) + : ComplexTypeEntry(name, InterfaceType) + { + } + + static QString interfaceName(const QString &name) { + return name + "Interface"; + } + + ObjectTypeEntry *origin() const { return m_origin; } + void setOrigin(ObjectTypeEntry *origin) { m_origin = origin; } + + virtual bool isNativeIdBased() const { return true; } + virtual QString qualifiedCppName() const { + return ComplexTypeEntry::qualifiedCppName().left(ComplexTypeEntry::qualifiedCppName().length() - interfaceName("").length()); + } + +private: + ObjectTypeEntry *m_origin; +}; + + +class ObjectTypeEntry : public ComplexTypeEntry +{ +public: + ObjectTypeEntry(const QString &name) + : ComplexTypeEntry(name, ObjectType), m_interface(0) + { + } + + InterfaceTypeEntry *designatedInterface() const { return m_interface; } + void setDesignatedInterface(InterfaceTypeEntry *entry) { m_interface = entry; } + + virtual bool isNativeIdBased() const { return true; } + +private: + InterfaceTypeEntry *m_interface; +}; + +class CustomTypeEntry : public ComplexTypeEntry +{ +public: + CustomTypeEntry(const QString &name) : ComplexTypeEntry(name, CustomType) { } + + virtual void generateCppJavaToQt(QTextStream &s, + const AbstractMetaType *java_type, + const QString &env_name, + const QString &qt_name, + const QString &java_name) const = 0; + + virtual void generateCppQtToJava(QTextStream &s, + const AbstractMetaType *java_type, + const QString &env_name, + const QString &qt_name, + const QString &java_name) const = 0; +}; + +struct TypeRejection +{ + QString class_name; + QString function_name; + QString field_name; + QString enum_name; +}; + +class TypeDatabase +{ +public: + TypeDatabase(); + + static TypeDatabase *instance(); + + QList extraIncludes(const QString &className); + + inline PrimitiveTypeEntry *findPrimitiveType(const QString &name); + inline ComplexTypeEntry *findComplexType(const QString &name); + inline ObjectTypeEntry *findObjectType(const QString &name); + inline NamespaceTypeEntry *findNamespaceType(const QString &name); + ContainerTypeEntry *findContainerType(const QString &name); + + TypeEntry *findType(const QString &name) const { + QList entries = findTypes(name); + foreach (TypeEntry *entry, entries) { + if (entry != 0 && + (!entry->isPrimitive() || static_cast(entry)->preferredTargetLangType())) { + return entry; + } + } + return 0; + } + QList findTypes(const QString &name) const { return m_entries.value(name); } + TypeEntryHash allEntries() { return m_entries; } + SingleTypeEntryHash entries() { + TypeEntryHash entries = allEntries(); + + SingleTypeEntryHash returned; + QList keys = entries.keys(); + + foreach(QString key, keys) { + returned[key] = findType(key); + } + + return returned; + } + + PrimitiveTypeEntry *findTargetLangPrimitiveType(const QString &java_name); + + void addRejection(const QString &class_name, const QString &function_name, + const QString &field_name, const QString &enum_name); + bool isClassRejected(const QString &class_name); + bool isFunctionRejected(const QString &class_name, const QString &function_name); + bool isFieldRejected(const QString &class_name, const QString &field_name); + bool isEnumRejected(const QString &class_name, const QString &enum_name); + + void addType(TypeEntry *e) { m_entries[e->qualifiedCppName()].append(e); } + + SingleTypeEntryHash flagsEntries() const { return m_flags_entries; } + FlagsTypeEntry *findFlagsType(const QString &name) const; + void addFlagsType(FlagsTypeEntry *fte) { m_flags_entries[fte->originalName()] = fte; } + + TemplateEntry *findTemplate(const QString &name) { return m_templates[name]; } + void addTemplate(TemplateEntry *t) { m_templates[t->name()] = t; } + + void setSuppressWarnings(bool on) { m_suppressWarnings = on; } + void addSuppressedWarning(const QString &s) + { + m_suppressedWarnings.append(s); + } + + bool isSuppressedWarning(const QString &s) + { + if (!m_suppressWarnings) + return false; + + foreach (const QString &_warning, m_suppressedWarnings) { + QString warning(QString(_warning).replace("\\*", "&place_holder_for_asterisk;")); + + QStringList segs = warning.split("*", QString::SkipEmptyParts); + if (segs.size() == 0) + continue ; + + int i = 0; + int pos = s.indexOf(QString(segs.at(i++)).replace("&place_holder_for_asterisk;", "*")); + //qDebug() << "s == " << s << ", warning == " << segs; + while (pos != -1) { + if (i == segs.size()) + return true; + pos = s.indexOf(QString(segs.at(i++)).replace("&place_holder_for_asterisk;", "*"), pos); + } + } + + return false; + } + + void setRebuildClasses(const QStringList &cls) { m_rebuild_classes = cls; } + + static QString globalNamespaceClassName(const TypeEntry *te); + QString filename() const { return "typesystem.txt"; } + + bool parseFile(const QString &filename, bool generate = true); + +private: + bool m_suppressWarnings; + TypeEntryHash m_entries; + SingleTypeEntryHash m_flags_entries; + TemplateEntryHash m_templates; + QStringList m_suppressedWarnings; + + QList m_rejections; + QStringList m_rebuild_classes; +}; + +inline PrimitiveTypeEntry *TypeDatabase::findPrimitiveType(const QString &name) +{ + QList entries = findTypes(name); + + foreach (TypeEntry *entry, entries) { + if (entry != 0 && entry->isPrimitive() && static_cast(entry)->preferredTargetLangType()) + return static_cast(entry); + } + + return 0; +} + +inline ComplexTypeEntry *TypeDatabase::findComplexType(const QString &name) +{ + TypeEntry *entry = findType(name); + if (entry != 0 && entry->isComplex()) + return static_cast(entry); + else + return 0; +} + +inline ObjectTypeEntry *TypeDatabase::findObjectType(const QString &name) +{ + TypeEntry *entry = findType(name); + if (entry != 0 && entry->isObject()) + return static_cast(entry); + else + return 0; +} + +inline NamespaceTypeEntry *TypeDatabase::findNamespaceType(const QString &name) +{ + TypeEntry *entry = findType(name); + if (entry != 0 && entry->isNamespace()) + return static_cast(entry); + else + return 0; +} + +QString fixCppTypeName(const QString &name); + +#endif // TYPESYSTEM_H diff --git a/generator_50/typesystem_core-common.xml b/generator_50/typesystem_core-common.xml new file mode 100644 index 00000000..04b86a5e --- /dev/null +++ b/generator_50/typesystem_core-common.xml @@ -0,0 +1,1518 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_core-qtscript.xml b/generator_50/typesystem_core-qtscript.xml new file mode 100644 index 00000000..74a45e6c --- /dev/null +++ b/generator_50/typesystem_core-qtscript.xml @@ -0,0 +1,1600 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QFile & %out% = *qscriptvalue_cast<QFile*>(%in%); + + + + + + + + QFile & %out% = *qscriptvalue_cast<QFile*>(%in%); + + + + + + + + + + QFile & %out% = *qscriptvalue_cast<QFile*>(%in%); + + + + + + + + + + + + Q_DECLARE_METATYPE(QScriptValue) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QScriptValue %out%; + if (!__ok) + %out% = context->engine()->nullValue(); + else + %out% = QScriptValue(context->engine(), double(%in%)).toObject(); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + PyObject* data(QByteArray* b) { + if (b->data()) { + return PyString_FromStringAndSize(b->data(), b->size()); + } else { + Py_INCREF(Py_None); + return Py_None; + } + } + + + + Q_DECLARE_METATYPE(QScriptValue) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + bool __result; + bool & %out% = __result; + + + + + bool %out% = __result; + + + + + + + + + unsigned char __result; + unsigned char & %out% = __result; + + + + + int %out% = __result; + + + + + + + + + int __result; + int & %out% = __result; + + + + + int %out% = __result; + + + + + + + + + uint __result; + uint & %out% = __result; + + + + + uint %out% = __result; + + + + + + + + + qint64 __result; + qint64 & %out% = __result; + + + + + qint64 %out% = __result; + + + + + + + + + unsigned long long __result; + unsigned long long & %out% = __result; + + + + + unsigned long long %out% = __result; + + + + + + + + + float __result; + float & %out% = __result; + + + + + float %out% = __result; + + + + + + + + + double __result; + double & %out% = __result; + + + + + double %out% = __result; + + + + + + + + + short __result; + short & %out% = __result; + + + + + short %out% = __result; + + + + + + + + + unsigned short __result; + unsigned short & %out% = __result; + + + + + unsigned short %out% = __result; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + char __result; + char & %out% = __result; + + + + + int %out% = __result; + + + + + + + + + short __result; + short & %out% = __result; + + + + + short %out% = __result; + + + + + + + + + int __result; + int & %out% = __result; + + + + + int %out% = __result; + + + + + + + + + unsigned short __result; + unsigned short & %out% = __result; + + + + + unsigned short %out% = __result; + + + + + + + + + unsigned int __result; + unsigned int & %out% = __result; + + + + + unsigned int %out% = __result; + + + + + + + + + qlonglong __result; + qlonglong & %out% = __result; + + + + + qlonglong %out% = __result; + + + + + + + + + qulonglong __result; + qulonglong & %out% = __result; + + + + + qulonglong %out% = __result; + + + + + + + + + float __result; + float & %out% = __result; + + + + + float %out% = __result; + + + + + + + + + double __result; + double & %out% = __result; + + + + + double %out% = __result; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + const QtScriptFuture & %out% = *qscriptvalue_cast<QtScriptFuture*>(%in%); + + + + + + + + const QtScriptFuture & %out% = *qscriptvalue_cast<QtScriptFuture*>(%in%); + + + + + + + + + + + + + const QtScriptVoidFuture & %out% = *qscriptvalue_cast<QtScriptVoidFuture*>(%in%); + + + + + + + + const QtScriptVoidFuture & %out% = *qscriptvalue_cast<QtScriptVoidFuture*>(%in%); + + + + + + + + + + + const QtScriptFuture & %out% = *qscriptvalue_cast<QtScriptFuture*>(%in%); + + + + + + + + + + + const QtScriptVoidFuture & %out% = *qscriptvalue_cast<QtScriptVoidFuture*>(%in%); + + + + + + + + + + + const QtScriptFuture & %out% = *qscriptvalue_cast<QtScriptFuture*>(%in%); + + + + + + + + const QtScriptFuture & %out% = *qscriptvalue_cast<QtScriptFuture*>(%in%); + + + + + + + + const QtScriptFuture & %out% = *qscriptvalue_cast<QtScriptFuture*>(%in%); + + + + + + + + + + + const QtScriptVoidFuture & %out% = *qscriptvalue_cast<QtScriptVoidFuture*>(%in%); + + + + + + + + const QtScriptVoidFuture & %out% = *qscriptvalue_cast<QtScriptVoidFuture*>(%in%); + + + + + + + + const QtScriptVoidFuture & %out% = *qscriptvalue_cast<QtScriptVoidFuture*>(%in%); + + + + + + + + + + + + const QtScriptFuture & %out% = *qscriptvalue_cast<QtScriptFuture*>(%in%); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QXmlStreamReader & %out% = *qscriptvalue_cast<QXmlStreamReader*>(%in%); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_core.xml b/generator_50/typesystem_core.xml new file mode 100644 index 00000000..52bde3d8 --- /dev/null +++ b/generator_50/typesystem_core.xml @@ -0,0 +1,2936 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Q_DECLARE_METATYPE(QScriptValue) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QScriptValue %out%; + if (!__ok) + %out% = context->engine()->nullValue(); + else + %out% = QScriptValue(context->engine(), double(%in%)).toObject(); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QFile & %out% = *qscriptvalue_cast<QFile*>(%in%); + + + + + + + + QFile & %out% = *qscriptvalue_cast<QFile*>(%in%); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + PyObject* data(QByteArray* b) { + if (b->data()) { + return PyString_FromStringAndSize(b->data(), b->size()); + } else { + Py_INCREF(Py_None); + return Py_None; + } + } + + + + Q_DECLARE_METATYPE(QScriptValue) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QFile & %out% = *qscriptvalue_cast<QFile*>(%in%); + + + + + + + + QFile & %out% = *qscriptvalue_cast<QFile*>(%in%); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + bool __result; + bool & %out% = __result; + + + + + bool %out% = __result; + + + + + + + + + unsigned char __result; + unsigned char & %out% = __result; + + + + + int %out% = __result; + + + + + + + + + int __result; + int & %out% = __result; + + + + + int %out% = __result; + + + + + + + + + uint __result; + uint & %out% = __result; + + + + + uint %out% = __result; + + + + + + + + + qint64 __result; + qint64 & %out% = __result; + + + + + qint64 %out% = __result; + + + + + + + + + unsigned long long __result; + unsigned long long & %out% = __result; + + + + + unsigned long long %out% = __result; + + + + + + + + + float __result; + float & %out% = __result; + + + + + float %out% = __result; + + + + + + + + + double __result; + double & %out% = __result; + + + + + double %out% = __result; + + + + + + + + + short __result; + short & %out% = __result; + + + + + short %out% = __result; + + + + + + + + + unsigned short __result; + unsigned short & %out% = __result; + + + + + unsigned short %out% = __result; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + char __result; + char & %out% = __result; + + + + + int %out% = __result; + + + + + + + + + short __result; + short & %out% = __result; + + + + + short %out% = __result; + + + + + + + + + int __result; + int & %out% = __result; + + + + + int %out% = __result; + + + + + + + + + unsigned short __result; + unsigned short & %out% = __result; + + + + + unsigned short %out% = __result; + + + + + + + + + unsigned int __result; + unsigned int & %out% = __result; + + + + + unsigned int %out% = __result; + + + + + + + + + qlonglong __result; + qlonglong & %out% = __result; + + + + + qlonglong %out% = __result; + + + + + + + + + qulonglong __result; + qulonglong & %out% = __result; + + + + + qulonglong %out% = __result; + + + + + + + + + float __result; + float & %out% = __result; + + + + + float %out% = __result; + + + + + + + + + double __result; + double & %out% = __result; + + + + + double %out% = __result; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + const QtScriptVoidFuture & %out% = *qscriptvalue_cast<QtScriptVoidFuture*>(%in%); + + + + + + + + const QtScriptVoidFuture & %out% = *qscriptvalue_cast<QtScriptVoidFuture*>(%in%); + + + + + + + + + + const QtScriptFuture & %out% = *qscriptvalue_cast<QtScriptFuture*>(%in%); + + + + + + + + const QtScriptFuture & %out% = *qscriptvalue_cast<QtScriptFuture*>(%in%); + + + + + + + + + + + + + + + + + const QtScriptVoidFuture & %out% = *qscriptvalue_cast<QtScriptVoidFuture*>(%in%); + + + + + + + + + + + + + + const QtScriptFuture & %out% = *qscriptvalue_cast<QtScriptFuture*>(%in%); + + + + + + + + + + + + const QtScriptFuture & %out% = *qscriptvalue_cast<QtScriptFuture*>(%in%); + + + + + + + + const QtScriptFuture & %out% = *qscriptvalue_cast<QtScriptFuture*>(%in%); + + + + + + + + const QtScriptFuture & %out% = *qscriptvalue_cast<QtScriptFuture*>(%in%); + + + + + + + + + + + const QtScriptVoidFuture & %out% = *qscriptvalue_cast<QtScriptVoidFuture*>(%in%); + + + + + + + + const QtScriptVoidFuture & %out% = *qscriptvalue_cast<QtScriptVoidFuture*>(%in%); + + + + + + + + const QtScriptVoidFuture & %out% = *qscriptvalue_cast<QtScriptVoidFuture*>(%in%); + + + + + + + + + + + + + + + + const QtScriptFuture & %out% = *qscriptvalue_cast<QtScriptFuture*>(%in%); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QXmlStreamReader & %out% = *qscriptvalue_cast<QXmlStreamReader*>(%in%); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_gui-common.xml b/generator_50/typesystem_gui-common.xml new file mode 100644 index 00000000..d759b20f --- /dev/null +++ b/generator_50/typesystem_gui-common.xml @@ -0,0 +1,5136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + return new QTreeWidgetItemIterator(*copy); + + + delete copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + return new QInputMethodEvent::Attribute(copy->type, copy->start, copy->length, copy->value); + + + delete copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + return new QConicalGradient(copy->center(), copy->angle()); + + + delete copy; + + + + + + return new QFontInfo(*copy); + + + delete copy; + + + + + + + + return new QRadialGradient(copy->center(), copy->radius(), copy->focalPoint()); + + + delete copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + return new QColormap(*copy); + + + delete copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + return new QFontMetricsF(*copy); + + + delete copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + return new QFontMetrics(*copy); + + + delete copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Q_UNUSED(copy) + qWarning("Copying empty QGradient object"); + return new QGradient(); + + + delete copy; + + + + + + + + + QLinearGradient *lg = new QLinearGradient(copy->start(), copy->finalStop()); + lg->setSpread(copy->spread()); + lg->setStops(copy->stops()); + return (void *) lg; + + + delete copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + if (%1 != null) disableGarbageCollection(); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + if (%1 != null) disableGarbageCollection(); + + + + + + if (%2 != null) disableGarbageCollection(); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_gui-qtscript.xml b/generator_50/typesystem_gui-qtscript.xml new file mode 100644 index 00000000..f52eedbd --- /dev/null +++ b/generator_50/typesystem_gui-qtscript.xml @@ -0,0 +1,651 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QDataStream & %out% = *qscriptvalue_cast<QDataStream*>(%in%); + + + jobject %out = qtjambi_from_object(__jni_env, %in, "QImage", "com/trolltech/qt/gui/", false); + QtJambiLink *__link = %out != 0 ? QtJambiLink::findLink(__jni_env, %out) : 0; + + + + + + + + QDataStream & %out% = *qscriptvalue_cast<QDataStream*>(%in%); + + + + + + + + + if ((context->argumentCount() == 1) && (qMetaTypeId<QTextFormat>() == context->argument(0).toVariant().userType())) { + QTextFormat _q_arg0 = qscriptvalue_cast<QTextFormat>(context->argument(0)); + QTextFormat _q_cpp_result(_q_arg0); + QScriptValue _q_result = context->engine()->newVariant(context->thisObject(), qVariantFromValue(_q_cpp_result)); + return _q_result; + } + + + + + + + + + QGradient & %out% = *qscriptvalue_cast<QGradient*>(%in%); + + + + + + + + + + + + + + + + + + + + + QScriptValue %out%_orig = %in%; + QWidget* %out% = qscriptvalue_cast<QWidget*>(%out%_orig); + if (%out% != 0) + context->engine()->newQObject(%out%_orig, %out%, QScriptEngine::QtOwnership); + + + + + + + + + + + QFontInfo & %out% = *qscriptvalue_cast<QFontInfo*>(%in%); + + + + + + + + + + + + + + + + + + + + + Q_DECLARE_METATYPE(QScriptValue) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Q_DECLARE_METATYPE(QScriptValue) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QModelIndex moveCursor(QAbstractItemView::CursorAction, Qt::KeyboardModifiers) + { return QModelIndex(); } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QAction* addAction (QMenu* menu, const QString & text, PyObject* callable, const QKeySequence & shortcut = 0) { + QAction* a = menu->addAction(text); + a->setShortcut(shortcut); + PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); + return a; + } + + QAction* addAction (QMenu* menu, const QIcon& icon, const QString& text, PyObject* callable, const QKeySequence& shortcut = 0) + { + QAction* a = menu->addAction(text); + a->setIcon(icon); + a->setShortcut(shortcut); + PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); + return a; + } + + + + + + QAction* addAction (QMenuBar* menu, const QString & text, PyObject* callable) + { + QAction* a = menu->addAction(text); + PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); + return a; + } + + + + + + QAction* addAction (QToolBar* menu, const QString & text, PyObject* callable) + { + QAction* a = menu->addAction(text); + PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); + return a; + } + + QAction* addAction (QToolBar* menu, const QIcon& icon, const QString& text, PyObject* callable) + { + QAction* a = menu->addAction(text); + a->setIcon(icon); + PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); + return a; + } + + + + + + + diff --git a/generator_50/typesystem_gui.xml b/generator_50/typesystem_gui.xml new file mode 100644 index 00000000..b4363040 --- /dev/null +++ b/generator_50/typesystem_gui.xml @@ -0,0 +1,5673 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + if ((context->argumentCount() == 1) && (qMetaTypeId<QTextFormat>() == context->argument(0).toVariant().userType())) { + QTextFormat _q_arg0 = qscriptvalue_cast<QTextFormat>(context->argument(0)); + QTextFormat _q_cpp_result(_q_arg0); + QScriptValue _q_result = context->engine()->newVariant(context->thisObject(), qVariantFromValue(_q_cpp_result)); + return _q_result; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + return new QTreeWidgetItemIterator(*copy); + + + delete copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + return new QInputMethodEvent::Attribute(copy->type, copy->start, copy->length, copy->value); + + + delete copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + return new QConicalGradient(copy->center(), copy->angle()); + + + delete copy; + + + + + + return new QFontInfo(*copy); + + + delete copy; + + + + + + + + + QFontInfo & %out% = *qscriptvalue_cast<QFontInfo*>(%in%); + + + + + + + + return new QRadialGradient(copy->center(), copy->radius(), copy->focalPoint()); + + + delete copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +QImage* new_QImage( const uchar * data, int width, int height, QImage::Format format ) +{ + QImage* image = new QImage(width, height, format); + memcpy(image->bits(), data, image->byteCount()); + return image; +} + + + + + + + + + + return new QColormap(*copy); + + + delete copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QGradient & %out% = *qscriptvalue_cast<QGradient*>(%in%); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + return new QFontMetricsF(*copy); + + + delete copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + return new QFontMetrics(*copy); + + + delete copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Q_UNUSED(copy) + qWarning("Copying empty QGradient object"); + return new QGradient(); + + + delete copy; + + + + + + + + + QLinearGradient *lg = new QLinearGradient(copy->start(), copy->finalStop()); + lg->setSpread(copy->spread()); + lg->setStops(copy->stops()); + return (void *) lg; + + + delete copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + if (%1 != null) disableGarbageCollection(); + + + + + + + + + + + + + + + + + + + + + + + + + + + + QModelIndex moveCursor(QAbstractItemView::CursorAction, Qt::KeyboardModifiers) + { return QModelIndex(); } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Q_DECLARE_METATYPE(QScriptValue) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QDataStream & %out% = *qscriptvalue_cast<QDataStream*>(%in%); + + + jobject %out = qtjambi_from_object(__jni_env, %in, "QImage", "com/trolltech/qt/gui/", false); + QtJambiLink *__link = %out != 0 ? QtJambiLink::findLink(__jni_env, %out) : 0; + + + + + + + + QDataStream & %out% = *qscriptvalue_cast<QDataStream*>(%in%); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QAction* addAction (QMenu* menu, const QString & text, PyObject* callable, const QKeySequence & shortcut = 0) { + QAction* a = menu->addAction(text); + a->setShortcut(shortcut); + PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); + return a; + } + + QAction* addAction (QMenu* menu, const QIcon& icon, const QString& text, PyObject* callable, const QKeySequence& shortcut = 0) + { + QAction* a = menu->addAction(text); + a->setIcon(icon); + a->setShortcut(shortcut); + PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); + return a; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QAction* addAction (QMenuBar* menu, const QString & text, PyObject* callable) + { + QAction* a = menu->addAction(text); + PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); + return a; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Q_DECLARE_METATYPE(QScriptValue) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QScriptValue %out%_orig = %in%; + QWidget* %out% = qscriptvalue_cast<QWidget*>(%out%_orig); + if (%out% != 0) + context->engine()->newQObject(%out%_orig, %out%, QScriptEngine::QtOwnership); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + if (%1 != null) disableGarbageCollection(); + + + + + + if (%2 != null) disableGarbageCollection(); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QAction* addAction (QToolBar* menu, const QString & text, PyObject* callable) + { + QAction* a = menu->addAction(text); + PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); + return a; + } + + QAction* addAction (QToolBar* menu, const QIcon& icon, const QString& text, PyObject* callable) + { + QAction* a = menu->addAction(text); + a->setIcon(icon); + PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); + return a; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_network-common.xml b/generator_50/typesystem_network-common.xml new file mode 100644 index 00000000..942bbef9 --- /dev/null +++ b/generator_50/typesystem_network-common.xml @@ -0,0 +1,199 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_network-qtscript.xml b/generator_50/typesystem_network-qtscript.xml new file mode 100644 index 00000000..a184dd5c --- /dev/null +++ b/generator_50/typesystem_network-qtscript.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_network.xml b/generator_50/typesystem_network.xml new file mode 100644 index 00000000..1cf04fd9 --- /dev/null +++ b/generator_50/typesystem_network.xml @@ -0,0 +1,233 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_opengl-common.xml b/generator_50/typesystem_opengl-common.xml new file mode 100644 index 00000000..bf4f7cff --- /dev/null +++ b/generator_50/typesystem_opengl-common.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_opengl-qtscript.xml b/generator_50/typesystem_opengl-qtscript.xml new file mode 100644 index 00000000..d9d8c76c --- /dev/null +++ b/generator_50/typesystem_opengl-qtscript.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/generator_50/typesystem_opengl.xml b/generator_50/typesystem_opengl.xml new file mode 100644 index 00000000..e3e1e6f2 --- /dev/null +++ b/generator_50/typesystem_opengl.xml @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_phonon-common.xml b/generator_50/typesystem_phonon-common.xml new file mode 100644 index 00000000..1cc84752 --- /dev/null +++ b/generator_50/typesystem_phonon-common.xml @@ -0,0 +1,206 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_phonon-qtscript.xml b/generator_50/typesystem_phonon-qtscript.xml new file mode 100644 index 00000000..c183c026 --- /dev/null +++ b/generator_50/typesystem_phonon-qtscript.xml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_phonon.xml b/generator_50/typesystem_phonon.xml new file mode 100644 index 00000000..2b5b390d --- /dev/null +++ b/generator_50/typesystem_phonon.xml @@ -0,0 +1,237 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_sql-common.xml b/generator_50/typesystem_sql-common.xml new file mode 100644 index 00000000..63f8a548 --- /dev/null +++ b/generator_50/typesystem_sql-common.xml @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_sql-qtscript.xml b/generator_50/typesystem_sql-qtscript.xml new file mode 100644 index 00000000..3387d0cf --- /dev/null +++ b/generator_50/typesystem_sql-qtscript.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/generator_50/typesystem_sql.xml b/generator_50/typesystem_sql.xml new file mode 100644 index 00000000..d148e9f8 --- /dev/null +++ b/generator_50/typesystem_sql.xml @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_svg-common.xml b/generator_50/typesystem_svg-common.xml new file mode 100644 index 00000000..48fec61e --- /dev/null +++ b/generator_50/typesystem_svg-common.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_svg-qtscript.xml b/generator_50/typesystem_svg-qtscript.xml new file mode 100644 index 00000000..fa09f9df --- /dev/null +++ b/generator_50/typesystem_svg-qtscript.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/generator_50/typesystem_svg.xml b/generator_50/typesystem_svg.xml new file mode 100644 index 00000000..e4270d05 --- /dev/null +++ b/generator_50/typesystem_svg.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_uitools.xml b/generator_50/typesystem_uitools.xml new file mode 100644 index 00000000..1b2c2edb --- /dev/null +++ b/generator_50/typesystem_uitools.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/generator_50/typesystem_webkit-common.xml b/generator_50/typesystem_webkit-common.xml new file mode 100644 index 00000000..3663efbd --- /dev/null +++ b/generator_50/typesystem_webkit-common.xml @@ -0,0 +1,171 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + return new QWebHistoryItem(*copy); + + + delete copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_webkit-qtscript.xml b/generator_50/typesystem_webkit-qtscript.xml new file mode 100644 index 00000000..148df2c8 --- /dev/null +++ b/generator_50/typesystem_webkit-qtscript.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/generator_50/typesystem_webkit.xml b/generator_50/typesystem_webkit.xml new file mode 100644 index 00000000..54e961e3 --- /dev/null +++ b/generator_50/typesystem_webkit.xml @@ -0,0 +1,171 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + return new QWebHistoryItem(*copy); + + + delete copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_xml-common.xml b/generator_50/typesystem_xml-common.xml new file mode 100644 index 00000000..3f945615 --- /dev/null +++ b/generator_50/typesystem_xml-common.xml @@ -0,0 +1,298 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QXmlNamespaceSupport *clone = new QXmlNamespaceSupport; + clone->setPrefix("", copy->uri("")); + + QStringList prefixes = copy->prefixes(); + for (int i=0; i<prefixes.size(); ++i) + clone->setPrefix(prefixes.at(i), copy->uri(prefixes.at(i))); + + return clone; + + + delete (QXmlNamespaceSupport *)copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_xml-qtscript.xml b/generator_50/typesystem_xml-qtscript.xml new file mode 100644 index 00000000..103f4d11 --- /dev/null +++ b/generator_50/typesystem_xml-qtscript.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + QTextStream & %out% = *qscriptvalue_cast<QTextStream*>(%in%); + + + + + + + + + QTextStream & %out% = *qscriptvalue_cast<QTextStream*>(%in%); + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_xml.xml b/generator_50/typesystem_xml.xml new file mode 100644 index 00000000..7f34c247 --- /dev/null +++ b/generator_50/typesystem_xml.xml @@ -0,0 +1,327 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QTextStream & %out% = *qscriptvalue_cast<QTextStream*>(%in%); + + + + + + + + + QTextStream & %out% = *qscriptvalue_cast<QTextStream*>(%in%); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QXmlNamespaceSupport *clone = new QXmlNamespaceSupport; + clone->setPrefix("", copy->uri("")); + + QStringList prefixes = copy->prefixes(); + for (int i=0; i<prefixes.size(); ++i) + clone->setPrefix(prefixes.at(i), copy->uri(prefixes.at(i))); + + return clone; + + + delete (QXmlNamespaceSupport *)copy; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_xmlpatterns-common.xml b/generator_50/typesystem_xmlpatterns-common.xml new file mode 100644 index 00000000..d0a6e086 --- /dev/null +++ b/generator_50/typesystem_xmlpatterns-common.xml @@ -0,0 +1,191 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/generator_50/typesystem_xmlpatterns-qtscript.xml b/generator_50/typesystem_xmlpatterns-qtscript.xml new file mode 100644 index 00000000..af289ddb --- /dev/null +++ b/generator_50/typesystem_xmlpatterns-qtscript.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/generator_50/typesystem_xmlpatterns.xml b/generator_50/typesystem_xmlpatterns.xml new file mode 100644 index 00000000..7305c556 --- /dev/null +++ b/generator_50/typesystem_xmlpatterns.xml @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/PythonQt.cpp b/src/PythonQt.cpp index a5e8c6fd..e0b25368 100644 --- a/src/PythonQt.cpp +++ b/src/PythonQt.cpp @@ -58,7 +58,9 @@ PythonQt* PythonQt::_self = NULL; int PythonQt::_uniqueModuleCount = 0; +#if defined(QT_GUI_LIB) void PythonQt_init_QtGuiBuiltin(PyObject*); +#endif void PythonQt_init_QtCoreBuiltin(PyObject*); @@ -90,8 +92,10 @@ void PythonQt::init(int flags, const QByteArray& pythonQtModuleName) // TODO: which other POD types should be available for QList etc. PythonQt_init_QtCoreBuiltin(NULL); +#if defined(QT_GUI_LIB) PythonQt_init_QtGuiBuiltin(NULL); - +#endif + PythonQt::self()->addDecorators(new PythonQtStdDecorators()); PythonQt::self()->registerCPPClass("QMetaObject",0, "QtCore", PythonQtCreateObject); @@ -111,6 +115,8 @@ void PythonQt::init(int flags, const QByteArray& pythonQtModuleName) PythonQtRegisterToolClassesTemplateConverter(QPointF); PythonQtRegisterToolClassesTemplateConverter(QRegExp); +// Only included if QtGui is wrapped +#if defined(QT_GUI_LIB) PythonQtRegisterToolClassesTemplateConverter(QFont); PythonQtRegisterToolClassesTemplateConverter(QPixmap); PythonQtRegisterToolClassesTemplateConverter(QBrush); @@ -122,13 +128,17 @@ void PythonQt::init(int flags, const QByteArray& pythonQtModuleName) PythonQtRegisterToolClassesTemplateConverter(QRegion); PythonQtRegisterToolClassesTemplateConverter(QBitmap); PythonQtRegisterToolClassesTemplateConverter(QCursor); - PythonQtRegisterToolClassesTemplateConverter(QSizePolicy); PythonQtRegisterToolClassesTemplateConverter(QKeySequence); PythonQtRegisterToolClassesTemplateConverter(QPen); PythonQtRegisterToolClassesTemplateConverter(QTextLength); PythonQtRegisterToolClassesTemplateConverter(QTextFormat); PythonQtRegisterToolClassesTemplateConverter(QMatrix); - +#endif + +// Only included if QtWidgets is wrapped +#if defined(QT_WIDGETS_LIB) + PythonQtRegisterToolClassesTemplateConverter(QSizePolicy); +#endif PyObject* pack = PythonQt::priv()->packageByName("QtCore"); PyObject* pack2 = PythonQt::priv()->packageByName("Qt"); @@ -251,30 +261,34 @@ void PythonQt::setRedirectStdInCallback(PythonQtInputChangedCB* callback, void * sys.setNewRef(PyImport_ImportModule("sys")); // Backup original 'sys.stdin' if not yet done - PyRun_SimpleString("if not hasattr(sys, 'pythonqt_original_stdin'):" - "sys.pythonqt_original_stdin = sys.stdin"); + if( !PyObject_HasAttrString(sys.object(), "pythonqt_original_stdin") ) + PyObject_SetAttrString(sys.object(), "pythonqt_original_stdin", PyObject_GetAttrString(sys.object(), "stdin")); in = PythonQtStdInRedirectType.tp_new(&PythonQtStdInRedirectType, NULL, NULL); ((PythonQtStdInRedirect*)in.object())->_cb = callback; ((PythonQtStdInRedirect*)in.object())->_callData = callbackData; // replace the built in file objects with our own objects - PyModule_AddObject(sys, "stdin", in); + PyModule_AddObject(sys.object(), "stdin", in); // Backup custom 'stdin' into 'pythonqt_stdin' - PyRun_SimpleString("sys.pythonqt_stdin = sys.stdin"); + Py_IncRef(in); + PyModule_AddObject(sys.object(), "pythonqt_stdin", in); } void PythonQt::setRedirectStdInCallbackEnabled(bool enabled) { + PythonQtObjectPtr sys; + sys.setNewRef(PyImport_ImportModule("sys")); + if (enabled) { - PyRun_SimpleString("if hasattr(sys, 'pythonqt_stdin'):" - "sys.stdin = sys.pythonqt_stdin"); + if( !PyObject_HasAttrString(sys.object(), "pythonqt_stdin") ) + PyObject_SetAttrString(sys.object(), "stdin", PyObject_GetAttrString(sys.object(), "pythonqt_stdin")); } else { - PyRun_SimpleString("if hasattr(sys,'pythonqt_original_stdin'):" - "sys.stdin = sys.pythonqt_original_stdin"); + if( !PyObject_HasAttrString(sys.object(), "pythonqt_original_stdin") ) + PyObject_SetAttrString(sys.object(), "stdin", PyObject_GetAttrString(sys.object(), "pythonqt_original_stdin")); } } @@ -1206,26 +1220,29 @@ void PythonQtPrivate::addDecorators(QObject* o, int decoTypes) QMetaMethod m = o->metaObject()->method(i); if ((m.methodType() == QMetaMethod::Method || m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) { - if (qstrncmp(m.signature(), "new_", 4)==0) { +// QMetaMethod::signature changed to QMetaMethod::methodSignature in QT5 +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + QByteArray signature = m.methodSignature(); +#else + QByteArray signature = m.signature(); +#endif + if (qstrncmp(signature, "new_", 4)==0) { if ((decoTypes & ConstructorDecorator) == 0) continue; const PythonQtMethodInfo* info = PythonQtMethodInfo::getCachedMethodInfo(m, NULL); if (info->parameters().at(0).pointerCount == 1) { - QByteArray signature = m.signature(); QByteArray nameOfClass = signature.mid(4, signature.indexOf('(')-4); PythonQtClassInfo* classInfo = lookupClassInfoAndCreateIfNotPresent(nameOfClass); PythonQtSlotInfo* newSlot = new PythonQtSlotInfo(NULL, m, i, o, PythonQtSlotInfo::ClassDecorator); classInfo->addConstructor(newSlot); } - } else if (qstrncmp(m.signature(), "delete_", 7)==0) { + } else if (qstrncmp(signature, "delete_", 7)==0) { if ((decoTypes & DestructorDecorator) == 0) continue; - QByteArray signature = m.signature(); QByteArray nameOfClass = signature.mid(7, signature.indexOf('(')-7); PythonQtClassInfo* classInfo = lookupClassInfoAndCreateIfNotPresent(nameOfClass); PythonQtSlotInfo* newSlot = new PythonQtSlotInfo(NULL, m, i, o, PythonQtSlotInfo::ClassDecorator); classInfo->setDestructor(newSlot); - } else if (qstrncmp(m.signature(), "static_", 7)==0) { + } else if (qstrncmp(signature, "static_", 7)==0) { if ((decoTypes & StaticDecorator) == 0) continue; - QByteArray signature = m.signature(); QByteArray nameOfClass = signature.mid(7); nameOfClass = nameOfClass.mid(0, nameOfClass.indexOf('_')); PythonQtClassInfo* classInfo = lookupClassInfoAndCreateIfNotPresent(nameOfClass); @@ -1453,6 +1470,18 @@ void PythonQt::initPythonQtModule(bool redirectStdOut, const QByteArray& pythonQ PyModule_AddObject(sys, "stdout", out); PyModule_AddObject(sys, "stderr", err); } + + // add PythonQt to the list of builtin module names + PythonQtObjectPtr sys; + sys.setNewRef(PyImport_ImportModule("sys")); + PyObject *old_module_names = PyObject_GetAttrString(sys.object(),"builtin_module_names"); + Py_ssize_t old_size = PyTuple_Size(old_module_names); + PyObject *module_names = PyTuple_New(old_size+1); + for(Py_ssize_t i = 0; i < old_size; i++) + PyTuple_SetItem(module_names, i, PyTuple_GetItem(old_module_names, i)); + PyTuple_SetItem(module_names, old_size, PyString_FromString(name.constData())); + PyModule_AddObject(sys.object(),"builtin_module_names",module_names); + Py_DecRef(old_module_names); } QString PythonQt::getReturnTypeOfWrappedMethod(PyObject* module, const QString& name) diff --git a/src/PythonQtClassInfo.cpp b/src/PythonQtClassInfo.cpp index b2cbf2ce..fd27f046 100644 --- a/src/PythonQtClassInfo.cpp +++ b/src/PythonQtClassInfo.cpp @@ -169,16 +169,20 @@ PythonQtSlotInfo* PythonQtClassInfo::findDecoratorSlotsFromDecoratorProvider(con QMetaMethod m = meta->method(i); if ((m.methodType() == QMetaMethod::Method || m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) { - - const char* sigStart = m.signature(); + +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + QByteArray sigStart = m.methodSignature(); +#else + QByteArray sigStart = m.signature(); +#endif bool isClassDeco = false; - if (qstrncmp(sigStart, "static_", 7)==0) { + if (sigStart.startsWith("static_")) { // skip the static_classname_ part of the string - sigStart += 7 + 1 + strlen(className()); + sigStart.remove(0,7+strlen(className())+1); isClassDeco = true; - } else if (qstrncmp(sigStart, "new_", 4)==0) { + } else if (sigStart.startsWith("new_")) { isClassDeco = true; - } else if (qstrncmp(sigStart, "delete_", 7)==0) { + } else if (sigStart.startsWith("delete_")) { isClassDeco = true; } // find the first '(' @@ -220,7 +224,11 @@ PythonQtSlotInfo* PythonQtClassInfo::findDecoratorSlotsFromDecoratorProvider(con m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) || m.methodType()==QMetaMethod::Signal) { - const char* sigStart = m.signature(); +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + QByteArray sigStart = m.methodSignature(); +#else + QByteArray sigStart = m.signature(); +#endif // find the first '(' int offset = findCharOffset(sigStart, '('); @@ -378,11 +386,16 @@ PythonQtSlotInfo* PythonQtClassInfo::findDecoratorSlots(const char* memberName, while (it.hasNext()) { PythonQtSlotInfo* infoOrig = it.next(); - - const char* sigStart = infoOrig->metaMethod()->signature(); - if (qstrncmp("static_", sigStart, 7)==0) { - sigStart += 7; - sigStart += findCharOffset(sigStart, '_')+1; + +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + QByteArray sigStart = infoOrig->metaMethod()->methodSignature(); +#else + QByteArray sigStart = infoOrig->metaMethod()->signature(); +#endif + if (sigStart.startsWith("static_")) { + sigStart.remove(0,7); + int offset = findCharOffset(sigStart, '_'); + sigStart.remove(0,offset+1); } int offset = findCharOffset(sigStart, '('); if (memberNameLen == offset && qstrncmp(memberName, sigStart, offset)==0) { @@ -412,18 +425,22 @@ void PythonQtClassInfo::listDecoratorSlotsFromDecoratorProvider(QStringList& lis QMetaMethod m = meta->method(i); if ((m.methodType() == QMetaMethod::Method || m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) { - - const char* sigStart = m.signature(); + +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + QByteArray sigStart = m.methodSignature(); +#else + QByteArray sigStart = m.signature(); +#endif bool isClassDeco = false; - if (qstrncmp(sigStart, "static_", 7)==0) { + if (sigStart.startsWith("static_")) { // skip the static_classname_ part of the string - sigStart += 7 + 1 + strlen(className()); + sigStart.remove(0,7+strlen(className())+1); isClassDeco = true; - } else if (qstrncmp(sigStart, "new_", 4)==0) { + } else if (sigStart.startsWith("new_")) { continue; - } else if (qstrncmp(sigStart, "delete_", 7)==0) { + } else if (sigStart.startsWith("delete_")) { continue; - } else if (qstrncmp(sigStart, "py_", 3)==0) { + } else if (sigStart.startsWith("py_")) { // hide everything that starts with py_ continue; } @@ -432,7 +449,7 @@ void PythonQtClassInfo::listDecoratorSlotsFromDecoratorProvider(QStringList& lis // XXX no checking is currently done if the slots have correct first argument or not... if (!metaOnly || isClassDeco) { - list << QString::fromLatin1(sigStart, offset); + list << QString::fromLatin1(sigStart, offset); } } } @@ -487,7 +504,11 @@ QStringList PythonQtClassInfo::memberList() if (((m.methodType() == QMetaMethod::Method || m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) || m.methodType()==QMetaMethod::Signal) { +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + QByteArray signa(m.methodSignature()); +#else QByteArray signa(m.signature()); +#endif signa = signa.left(signa.indexOf('(')); l << signa; } @@ -641,7 +662,11 @@ QString PythonQtClassInfo::help() for (int i = 0; i < numMethods; i++) { QMetaMethod m = _meta->method(i); if (m.methodType() == QMetaMethod::Signal) { +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + h += QString(m.methodSignature()) + "\n"; +#else h += QString(m.signature()) + "\n"; +#endif } } } @@ -882,4 +907,4 @@ PythonQtMemberInfo::PythonQtMemberInfo( const QMetaProperty& prop ) _enumValue = NULL; _property = prop; _enumWrapper = NULL; -} \ No newline at end of file +} diff --git a/src/PythonQtClassWrapper.cpp b/src/PythonQtClassWrapper.cpp index 17ffbcf6..f107d6b3 100644 --- a/src/PythonQtClassWrapper.cpp +++ b/src/PythonQtClassWrapper.cpp @@ -179,13 +179,13 @@ static void initializeSlots(PythonQtClassWrapper* wrap) } if (typeSlots & PythonQt::Type_InplaceAdd) { - wrap->_base.as_number.nb_add = (binaryfunc)PythonQtInstanceWrapper_iadd; + wrap->_base.as_number.nb_inplace_add = (binaryfunc)PythonQtInstanceWrapper_iadd; } if (typeSlots & PythonQt::Type_InplaceSubtract) { - wrap->_base.as_number.nb_subtract = (binaryfunc)PythonQtInstanceWrapper_isub; + wrap->_base.as_number.nb_inplace_subtract = (binaryfunc)PythonQtInstanceWrapper_isub; } if (typeSlots & PythonQt::Type_InplaceMultiply) { - wrap->_base.as_number.nb_multiply = (binaryfunc)PythonQtInstanceWrapper_imul; + wrap->_base.as_number.nb_inplace_multiply = (binaryfunc)PythonQtInstanceWrapper_imul; } if (typeSlots & PythonQt::Type_InplaceDivide) { wrap->_base.as_number.nb_inplace_divide = (binaryfunc)PythonQtInstanceWrapper_idiv; @@ -245,6 +245,16 @@ static int PythonQtClassWrapper_init(PythonQtClassWrapper* self, PyObject* args, if (!self->classInfo()) { PyTypeObject* superType = ((PyTypeObject *)self)->tp_base; + // recursively search for PythonQtClassWrapper superclass, + // this is needed for multiple levels of inheritance in python, + // e.g. + // class MyWidgetBase(QWidget): + // ... + // class MyWidget(MyWidgetBase): + // ... + while( superType && superType->ob_type != &PythonQtClassWrapper_Type ) + superType = superType->tp_base; + if (!superType || (superType->ob_type != &PythonQtClassWrapper_Type)) { PyErr_Format(PyExc_TypeError, "type %s is not derived from PythonQtClassWrapper", ((PyTypeObject*)self)->tp_name); return -1; diff --git a/src/PythonQtConversion.cpp b/src/PythonQtConversion.cpp index b5315abc..5cd487c4 100644 --- a/src/PythonQtConversion.cpp +++ b/src/PythonQtConversion.cpp @@ -175,7 +175,9 @@ PyObject* PythonQtConv::ConvertQtValueToPythonInternal(int type, const void* dat case PythonQtMethodInfo::Variant: return PythonQtConv::QVariantToPyObject(*((QVariant*)data)); case QMetaType::QObjectStar: +#if QT_VERSION < QT_VERSION_CHECK(5,0,0) case QMetaType::QWidgetStar: +#endif return PythonQt::priv()->wrapQObject(*((QObject**)data)); default: @@ -187,7 +189,11 @@ PyObject* PythonQtConv::ConvertQtValueToPythonInternal(int type, const void* dat } else { if (type > 0) { // if the type is known, we can construct it via QMetaType::construct +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + void* newCPPObject = QMetaType::create(type, data); +#else void* newCPPObject = QMetaType::construct(type, data); +#endif // XXX this could be optimized by using metatypeid directly PythonQtInstanceWrapper* wrap = (PythonQtInstanceWrapper*)PythonQt::priv()->wrapPtr(newCPPObject, QMetaType::typeName(type)); wrap->_ownedByPythonQt = true; @@ -277,6 +283,8 @@ return Py_None; void* PythonQtConv::handlePythonToQtAutoConversion(int typeId, PyObject* obj, void* alreadyAllocatedCPPObject) { +// Only included if QtGui is wrapped +#if defined(QT_GUI_LIB) void* ptr = alreadyAllocatedCPPObject; static int penId = QMetaType::type("QPen"); @@ -345,6 +353,11 @@ void* PythonQtConv::handlePythonToQtAutoConversion(int typeId, PyObject* obj, vo return ptr; } } +#else + Q_UNUSED(typeId); + Q_UNUSED(obj); + Q_UNUSED(alreadyAllocatedCPPObject); +#endif return NULL; } @@ -399,7 +412,7 @@ void* PythonQtConv::ConvertPythonToQt(const PythonQtMethodInfo::ParameterInfo& i bytes = str.toUtf8(); if (ok) { void* ptr2 = NULL; - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(NULL,global_variantStorage, QVariant, QVariant(bytes), ptr2); + PythonQtValueStorage_ADD_VALUE_IF_NEEDED(false,global_variantStorage, QVariant, QVariant(bytes), ptr2); PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_ptrStorage, void*, (((QByteArray*)((QVariant*)ptr2)->constData())->data()), ptr); } } @@ -411,7 +424,7 @@ void* PythonQtConv::ConvertPythonToQt(const PythonQtMethodInfo::ParameterInfo& i QString str = PyObjGetString(obj, strict, ok); if (ok) { void* ptr2 = NULL; - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(NULL,global_variantStorage, QVariant, QVariant(str), ptr2); + PythonQtValueStorage_ADD_VALUE_IF_NEEDED(false,global_variantStorage, QVariant, QVariant(str), ptr2); PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_ptrStorage, void*, (void*)((QVariant*)ptr2)->constData(), ptr); } } else if (info.name == "PyObject") { @@ -1256,24 +1269,27 @@ QString PythonQtConv::CPPObjectToString(int type, const void* data) { case QVariant::Time: { const QTime* s = static_cast(data); r = s->toString(Qt::ISODate); - } + } break; +// Only included if QtGui is wrapped +#if defined(QT_GUI_LIB) case QVariant::Pixmap: - { + { const QPixmap* s = static_cast(data); r = QString("Pixmap ") + QString::number(s->width()) + ", " + QString::number(s->height()); - } + } break; case QVariant::Image: - { + { const QImage* s = static_cast(data); r = QString("Image ") + QString::number(s->width()) + ", " + QString::number(s->height()); - } + } break; +#endif case QVariant::Url: { - const QUrl* s = static_cast(data); - r = s->toString(); + const QUrl* s = static_cast(data); + r = s->toString(); } break; //TODO: add more printing for other variant types diff --git a/src/PythonQtConversion.h b/src/PythonQtConversion.h index 12b5e7a1..6ca8cd12 100644 --- a/src/PythonQtConversion.h +++ b/src/PythonQtConversion.h @@ -47,7 +47,6 @@ #include "PythonQtClassInfo.h" #include "PythonQtMethodInfo.h" -#include #include #include @@ -197,7 +196,7 @@ bool PythonQtConvertPythonListToListOfValueType(PyObject* obj, void* /*QList* // this is quite some overhead, but it avoids having another large switch... QVariant v = PythonQtConv::PyObjToQVariant(value, innerType); if (v.isValid()) { - list->push_back(qVariantValue(v)); + list->push_back(v.value()); } else { result = false; break; diff --git a/src/PythonQtMethodInfo.cpp b/src/PythonQtMethodInfo.cpp index f8f11c06..707dec8c 100644 --- a/src/PythonQtMethodInfo.cpp +++ b/src/PythonQtMethodInfo.cpp @@ -49,7 +49,11 @@ QHash PythonQtMethodInfo::_parameterNameAliases; PythonQtMethodInfo::PythonQtMethodInfo(const QMetaMethod& meta, PythonQtClassInfo* classInfo) { #ifdef PYTHONQT_DEBUG +# if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + QByteArray sig(meta.methodSignature()); +# else QByteArray sig(meta.signature()); +# endif sig = sig.mid(sig.indexOf('(')); QByteArray fullSig = QByteArray(meta.typeName()) + " " + sig; std::cout << "caching " << fullSig.data() << std::endl; @@ -78,7 +82,11 @@ PythonQtMethodInfo::PythonQtMethodInfo(const QByteArray& typeName, const QList= QT_VERSION_CHECK(5,0,0) + QByteArray sig(signal.methodSignature()); +#else QByteArray sig(signal.signature()); +#endif sig = sig.mid(sig.indexOf('(')); QByteArray fullSig = QByteArray(signal.typeName()) + " " + sig; PythonQtMethodInfo* result = _cachedSignatures.value(fullSig); @@ -151,7 +159,11 @@ void PythonQtMethodInfo::fillParameterInfo(ParameterInfo& type, const QByteArray type.typeId = nameToType(name); if ((type.pointerCount == 0) && type.typeId == Unknown) { type.typeId = QMetaType::type(name.constData()); +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + if (type.typeId == QMetaType::UnknownType) { +#else if (type.typeId == QMetaType::Void) { +#endif type.typeId = Unknown; } } @@ -370,7 +382,11 @@ QString PythonQtSlotInfo::fullSignature() QByteArray PythonQtSlotInfo::slotName() { +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + QByteArray sig(_meta.methodSignature()); +#else QByteArray sig(_meta.signature()); +#endif int idx = sig.indexOf('('); sig = sig.left(idx); return sig; diff --git a/src/PythonQtObjectPtr.cpp b/src/PythonQtObjectPtr.cpp index c26664f6..c65192d7 100644 --- a/src/PythonQtObjectPtr.cpp +++ b/src/PythonQtObjectPtr.cpp @@ -109,7 +109,7 @@ QVariant PythonQtObjectPtr::call(const QVariantList& args, const QVariantMap& kw bool PythonQtObjectPtr::fromVariant(const QVariant& variant) { if (!variant.isNull()) { - setObject(qVariantValue(variant)); + setObject(variant.value()); return true; } else { diff --git a/src/PythonQtPythonInclude.h b/src/PythonQtPythonInclude.h index a023361e..497b7aab 100644 --- a/src/PythonQtPythonInclude.h +++ b/src/PythonQtPythonInclude.h @@ -47,76 +47,19 @@ #undef _POSIX_THREADS #undef _XOPEN_SOURCE -// -// Use the real python debugging library if it is provided. -// Otherwise use the "documented" trick involving checking for _DEBUG -// and undefined that symbol while we include Python headers. -// Update: this method does not fool Microsoft Visual C++ 8 anymore; two -// of its header files (crtdefs.h and use_ansi.h) check if _DEBUG was set -// or not, and set flags accordingly (_CRT_MANIFEST_RETAIL, -// _CRT_MANIFEST_DEBUG, _CRT_MANIFEST_INCONSISTENT). The next time the -// check is performed in the same compilation unit, and the flags are found, -// and error is triggered. Let's prevent that by setting _CRT_NOFORCE_MANIFEST. -// - // If PYTHONQT_USE_RELEASE_PYTHON_FALLBACK is enabled, try to link // release Python DLL if it is available by undefining _DEBUG while // including Python.h #if defined(PYTHONQT_USE_RELEASE_PYTHON_FALLBACK) && defined(_DEBUG) -# define PYTHONQT_UNDEF_DEBUG -// Include these low level headers before undefing _DEBUG. Otherwise when doing -// a debug build against a release build of python the compiler will end up -// including these low level headers without DEBUG enabled, causing it to try -// and link release versions of this low level C api. -# include -# include -# include -# include -# include -# include -# include -# include -# include -# include -# include -# include -# include -# include -# include -# undef _DEBUG -# if defined(_MSC_VER) && _MSC_VER >= 1400 -# define _CRT_NOFORCE_MANIFEST 1 -# define _STL_NOFORCE_MANIFEST 1 -# endif +#undef _DEBUG +#if defined(_MSC_VER) && _MSC_VER >= 1400 +#define _CRT_NOFORCE_MANIFEST 1 +#define _STL_NOFORCE_MANIFEST 1 #endif - #include - -#ifdef PYTHONQT_UNDEF_DEBUG -# define _DEBUG +#define _DEBUG +#else +#include #endif -/* - * The following undefs for C standard library macros prevent - * build errors of the following type on mac ox 10.7.4 and XCode 4.3.3 - * -/usr/include/c++/4.2.1/bits/localefwd.h:57:21: error: too many arguments provided to function-like macro invocation - isspace(_CharT, const locale&); - ^ -/usr/include/c++/4.2.1/bits/localefwd.h:56:5: error: 'inline' can only appear on functions - inline bool - ^ -/usr/include/c++/4.2.1/bits/localefwd.h:57:5: error: variable 'isspace' declared as a template - isspace(_CharT, const locale&); - ^ -*/ -#undef isspace -#undef isupper -#undef islower -#undef isalpha -#undef isalnum -#undef toupper -#undef tolower - #endif - diff --git a/src/PythonQtSignal.cpp b/src/PythonQtSignal.cpp index a752e62b..48687e09 100644 --- a/src/PythonQtSignal.cpp +++ b/src/PythonQtSignal.cpp @@ -109,7 +109,11 @@ meth_get__doc__(PythonQtSignalFunctionObject * /*m*/, void * /*closure*/) static PyObject * meth_get__name__(PythonQtSignalFunctionObject *m, void * /*closure*/) { +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + return PyString_FromString(m->m_ml->metaMethod()->methodSignature()); +#else return PyString_FromString(m->m_ml->metaMethod()->signature()); +#endif } static int @@ -187,7 +191,11 @@ static PyObject *PythonQtSignalFunction_connect(PythonQtSignalFunctionObject* ty if (argc==1) { // connect with Python callable PyObject* callable = PyTuple_GET_ITEM(args, 0); +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + bool result = PythonQt::self()->addSignalHandler(self->_obj, QByteArray("2") + type->m_ml->metaMethod()->methodSignature(), callable); +#else bool result = PythonQt::self()->addSignalHandler(self->_obj, QByteArray("2") + type->m_ml->metaMethod()->signature(), callable); +#endif return PythonQtConv::GetPyBool(result); } else { PyErr_SetString(PyExc_ValueError, "Called connect with wrong number of arguments"); @@ -203,7 +211,11 @@ static PyObject *PythonQtSignalFunction_disconnect(PythonQtSignalFunctionObject* PythonQtInstanceWrapper* self = (PythonQtInstanceWrapper*) type->m_self; if (self->_obj) { Py_ssize_t argc = PyTuple_Size(args); +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + QByteArray signal = QByteArray("2") + type->m_ml->metaMethod()->methodSignature(); +#else QByteArray signal = QByteArray("2") + type->m_ml->metaMethod()->signature(); +#endif if (argc==1) { // disconnect with Python callable PyObject* callable = PyTuple_GET_ITEM(args, 0); @@ -272,7 +284,11 @@ meth_compare(PythonQtSignalFunctionObject *a, PythonQtSignalFunctionObject *b) return (a->m_self < b->m_self) ? -1 : 1; if (a->m_ml == b->m_ml) return 0; +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + if (strcmp(a->m_ml->metaMethod()->methodSignature(), b->m_ml->metaMethod()->methodSignature()) < 0) +#else if (strcmp(a->m_ml->metaMethod()->signature(), b->m_ml->metaMethod()->signature()) < 0) +#endif return -1; else return 1; diff --git a/src/PythonQtSignalReceiver.cpp b/src/PythonQtSignalReceiver.cpp index 82b208d1..6ec1c1af 100644 --- a/src/PythonQtSignalReceiver.cpp +++ b/src/PythonQtSignalReceiver.cpp @@ -227,7 +227,7 @@ bool PythonQtSignalReceiver::removeSignalHandler(const char* signal, PyObject* c } } } - if ((foundCount>0) && (sigId == _destroyedSignal1Id) || (sigId == _destroyedSignal2Id)) { + if ((foundCount>0) && ((sigId == _destroyedSignal1Id) || (sigId == _destroyedSignal2Id))) { _destroyedSignalCount -= foundCount; if (_destroyedSignalCount==0) { // make ourself child of QObject again, to get deleted when the object gets deleted diff --git a/src/PythonQtSlot.cpp b/src/PythonQtSlot.cpp index a1740c23..db71eca1 100644 --- a/src/PythonQtSlot.cpp +++ b/src/PythonQtSlot.cpp @@ -157,7 +157,11 @@ bool PythonQtCallSlot(PythonQtClassInfo* classInfo, QObject* objectToCall, PyObj className = objectToCall->metaObject()->className(); } +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + profilingCB(PythonQt::Enter, className, info->metaMethod()->methodSignature()); +#else profilingCB(PythonQt::Enter, className, info->metaMethod()->signature()); +#endif } // invoke the slot via metacall @@ -293,7 +297,13 @@ PyObject *PythonQtSlotFunction_CallImpl(PythonQtClassInfo* classInfo, QObject* o int argc = args?PyTuple_Size(args):0; #ifdef PYTHONQT_DEBUG - std::cout << "called " << info->metaMethod()->typeName() << " " << info->metaMethod()->signature() << std::endl; + std::cout << "called " << info->metaMethod()->typeName() << " " +# if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + << info->metaMethod()->signature() +# else + << info->metaMethod()->methodSignature() +# endif + << std::endl; #endif PyObject* r = NULL; @@ -414,7 +424,11 @@ meth_get__doc__(PythonQtSlotFunctionObject * /*m*/, void * /*closure*/) static PyObject * meth_get__name__(PythonQtSlotFunctionObject *m, void * /*closure*/) { +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + return PyString_FromString(m->m_ml->metaMethod()->methodSignature()); +#else return PyString_FromString(m->m_ml->metaMethod()->signature()); +#endif } static int @@ -581,7 +595,11 @@ meth_compare(PythonQtSlotFunctionObject *a, PythonQtSlotFunctionObject *b) return (a->m_self < b->m_self) ? -1 : 1; if (a->m_ml == b->m_ml) return 0; +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + if (strcmp(a->m_ml->metaMethod()->methodSignature(), b->m_ml->metaMethod()->methodSignature()) < 0) +#else if (strcmp(a->m_ml->metaMethod()->signature(), b->m_ml->metaMethod()->signature()) < 0) +#endif return -1; else return 1; diff --git a/src/PythonQtStdDecorators.cpp b/src/PythonQtStdDecorators.cpp index 75f0eca6..ea717fd2 100644 --- a/src/PythonQtStdDecorators.cpp +++ b/src/PythonQtStdDecorators.cpp @@ -165,7 +165,11 @@ QVariant PythonQtStdDecorators::property(QObject* o, const char* name) QString PythonQtStdDecorators::tr(QObject* obj, const QByteArray& text, const QByteArray& ambig, int n) { +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + return QCoreApplication::translate(obj->metaObject()->className(), text.constData(), ambig.constData(), n); +#else return QCoreApplication::translate(obj->metaObject()->className(), text.constData(), ambig.constData(), QCoreApplication::CodecForTr, n); +#endif } QObject* PythonQtStdDecorators::findChild(QObject* parent, PyObject* type, const QString& name) @@ -320,4 +324,4 @@ int PythonQtStdDecorators::findChildren(QObject* parent, const char* typeName, c const QMetaObject* PythonQtStdDecorators::metaObject( QObject* obj ) { return obj->metaObject(); -} \ No newline at end of file +} diff --git a/src/PythonQtStdDecorators.h b/src/PythonQtStdDecorators.h index 290d3e19..a66e3c3b 100644 --- a/src/PythonQtStdDecorators.h +++ b/src/PythonQtStdDecorators.h @@ -47,13 +47,6 @@ #include "PythonQtSystem.h" #include -#include -#include -#include -#include -#include -#include -#include #include #include #include diff --git a/src/PythonQtStdIn.cpp b/src/PythonQtStdIn.cpp index 653e2e66..8dbe55d1 100644 --- a/src/PythonQtStdIn.cpp +++ b/src/PythonQtStdIn.cpp @@ -58,7 +58,11 @@ static PyObject *PythonQtStdInRedirect_readline(PyObject * self, PyObject * args if (s->_cb) { string = (*s->_cb)(s->_callData); } +#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) + return Py_BuildValue(const_cast("s"), const_cast(string.toLatin1().data())); +#else return Py_BuildValue(const_cast("s"), const_cast(string.toAscii().data())); +#endif } static PyMethodDef PythonQtStdInRedirect_methods[] = { diff --git a/src/PythonQtVariants.h b/src/PythonQtVariants.h index 7e069101..f50dee3f 100644 --- a/src/PythonQtVariants.h +++ b/src/PythonQtVariants.h @@ -56,23 +56,30 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +// Only included if QtGui is wrapped +#if defined(QT_GUI_LIB) + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include +#endif + +// Only included if QtWidgets is wrapped +#if defined(QT_WIDGETS_LIB) + #include +#endif #endif diff --git a/src/gui/PythonQtScriptingConsole.cpp b/src/gui/PythonQtScriptingConsole.cpp index b8105371..62be55c9 100644 --- a/src/gui/PythonQtScriptingConsole.cpp +++ b/src/gui/PythonQtScriptingConsole.cpp @@ -41,6 +41,7 @@ #include "PythonQtScriptingConsole.h" +#include #include #include #include diff --git a/tests/PythonQtTestMain.cpp b/tests/PythonQtTestMain.cpp index 41f0df99..41b65e2f 100644 --- a/tests/PythonQtTestMain.cpp +++ b/tests/PythonQtTestMain.cpp @@ -44,8 +44,12 @@ int main( int argc, char **argv ) { - QApplication qapp(argc, argv); - +#if defined(QT_GUI_LIB) + QGuiApplication qapp(argc, argv); +#else + QCoreApplication qapp(argc, argv); +#endif + PythonQt::init(PythonQt::IgnoreSiteModule | PythonQt::RedirectStdOut); int failCount = 0; diff --git a/tests/PythonQtTests.cpp b/tests/PythonQtTests.cpp index e5c35978..67e4d6bc 100644 --- a/tests/PythonQtTests.cpp +++ b/tests/PythonQtTests.cpp @@ -127,6 +127,7 @@ void PythonQtTestSlotCalling::testInheritance() { } void PythonQtTestSlotCalling::testAutoConversion() { +#if defined(QT_GUI_LIB) QVERIFY(_helper->runScript("if obj.setAutoConvertColor(PythonQt.QtCore.Qt.red)==PythonQt.Qt.QColor(PythonQt.QtCore.Qt.red): obj.setPassed();\n")); QVERIFY(_helper->runScript("if obj.setAutoConvertBrush(PythonQt.QtCore.Qt.red)==PythonQt.Qt.QBrush(PythonQt.QtCore.Qt.red): obj.setPassed();\n")); QVERIFY(_helper->runScript("if obj.setAutoConvertPen(PythonQt.QtCore.Qt.red)==PythonQt.Qt.QPen(PythonQt.QtCore.Qt.red): obj.setPassed();\n")); @@ -134,6 +135,7 @@ void PythonQtTestSlotCalling::testAutoConversion() { QVERIFY(_helper->runScript("if obj.setAutoConvertPen(PythonQt.Qt.QColor(PythonQt.QtCore.Qt.red))==PythonQt.Qt.QPen(PythonQt.QtCore.Qt.red): obj.setPassed();\n")); QVERIFY(_helper->runScript("if obj.setAutoConvertCursor(PythonQt.Qt.QCursor(PythonQt.QtCore.Qt.UpArrowCursor)).shape()==PythonQt.Qt.QCursor(PythonQt.QtCore.Qt.UpArrowCursor).shape(): obj.setPassed();\n")); QVERIFY(_helper->runScript("if obj.setAutoConvertCursor(PythonQt.QtCore.Qt.UpArrowCursor).shape()==PythonQt.Qt.QCursor(PythonQt.QtCore.Qt.UpArrowCursor).shape(): obj.setPassed();\n")); +#endif } void PythonQtTestSlotCalling::testNoArgSlotCall() @@ -165,6 +167,7 @@ void PythonQtTestSlotCalling::testPyObjectSlotCall() void PythonQtTestSlotCalling::testCPPSlotCalls() { +#if defined(QT_GUI_LIB) // test QColor compare operation QVERIFY(_helper->runScript("if PythonQt.QtGui.QColor(1,2,3)==PythonQt.QtGui.QColor(1,2,3): obj.setPassed();obj.testNoArg()\n")); QVERIFY(_helper->runScript("if PythonQt.QtGui.QColor(1,2,3)!=PythonQt.QtGui.QColor(3,2,1): obj.setPassed();obj.testNoArg()\n")); @@ -175,6 +178,7 @@ void PythonQtTestSlotCalling::testCPPSlotCalls() QVERIFY(_helper->runScript("if obj.getQColor3(PythonQt.QtGui.QColor(1,2,3))==PythonQt.QtGui.QColor(1,2,3): obj.setPassed();\n")); QVERIFY(_helper->runScript("if obj.getQColor4(PythonQt.QtGui.QColor(1,2,3))==PythonQt.QtGui.QColor(1,2,3): obj.setPassed();\n")); QVERIFY(_helper->runScript("if obj.getQColor5()==PythonQt.QtGui.QColor(1,2,3): obj.setPassed();\n")); +#endif } void PythonQtTestSlotCalling::testPODSlotCalls() @@ -522,7 +526,10 @@ void PythonQtTestApi::testQtNamespace() { QVERIFY(_main.getVariable("PythonQt.QtCore.Qt.red").toInt()==Qt::red); QVERIFY(_main.getVariable("PythonQt.QtCore.Qt.FlatCap").toInt()==Qt::FlatCap); +#if QT_VERSION < QT_VERSION_CHECK(5,0,0) + // The function 'escape' (http://qt-project.org/doc/qt-4.8/qt.html#escape) does not exist in Qt5 QVERIFY(PythonQtObjectPtr(_main.getVariable("PythonQt.QtCore.Qt.escape"))); +#endif // check for an enum type wrapper QVERIFY(PythonQtObjectPtr(_main.getVariable("PythonQt.QtCore.Qt.AlignmentFlag"))); // check for a flags type wrapper @@ -537,6 +544,7 @@ void PythonQtTestApi::testConnects() void PythonQtTestApi::testQColorDecorators() { +#if defined(QT_GUI_LIB) PythonQtObjectPtr colorClass = _main.getVariable("PythonQt.QtGui.QColor"); QVERIFY(colorClass); // verify that the class is in the correct module @@ -567,6 +575,7 @@ void PythonQtTestApi::testQColorDecorators() QVERIFY(publicMethod); // call with passing self in: QVERIFY(colorClass.call("red", QVariantList() << QColor(255,0,0)).toInt() == 255); +#endif } QByteArray PythonQtTestApiHelper::readFileAsBytes(const QString& filename) diff --git a/tests/PythonQtTests.h b/tests/PythonQtTests.h index e03de359..5d37c9b6 100644 --- a/tests/PythonQtTests.h +++ b/tests/PythonQtTests.h @@ -42,16 +42,31 @@ */ //---------------------------------------------------------------------------------- +#ifndef PythonQtTests_h +#define PythonQtTests_h + #include "PythonQt.h" #include #include #include "PythonQtImportFileInterface.h" #include "PythonQtCppWrapperFactory.h" +// Only included if QtGui is wrapped +#if defined(QT_GUI_LIB) #include #include #include #include +#endif + +// qVariantValue was removed in Qt5 ... Let's resurect it only for the tests! +#if (QT_VERSION >= QT_VERSION_CHECK(5,0,0)) +template +inline T qVariantValue(const QVariant &variant) +{ + return qvariant_cast(variant); +} +#endif class PythonQtTestSlotCallingHelper; class PythonQtTestApiHelper; @@ -410,12 +425,14 @@ public slots: QVariant getQVariant(const QVariant& var) { _called = true; return var; } // QColor as representative for C++ value classes +#if defined(QT_GUI_LIB) QColor getQColor1(const QColor& var) { _called = true; return var; } QColor getQColor2(QColor& var) { _called = true; return var; } QColor getQColor3(QColor* col) { _called = true; return *col; } QColor getQColor4(const QVariant& color) { _called = true; return qVariantValue(color); } QColor* getQColor5() { _called = true; static QColor c(1,2,3); return &c; } - +#endif + PyObject* getPyObject(PyObject* obj) { _called = true; return obj; } PyObject* getPyObjectFromVariant(const QVariant& val) { _called = true; return PythonQtObjectPtr(val); }; QVariant getPyObjectFromVariant2(const QVariant& val) { _called = true; return val; }; @@ -467,11 +484,13 @@ public slots: ClassA* createClassDAsA() { _called = true; return new ClassD; } ClassB* createClassDAsB() { _called = true; return new ClassD; } +#if defined(QT_GUI_LIB) QColor setAutoConvertColor(const QColor& color) { _called = true; return color; }; QBrush setAutoConvertBrush(const QBrush& brush) { _called = true; return brush; }; QPen setAutoConvertPen(const QPen& pen) { _called = true; return pen; }; QCursor setAutoConvertCursor(const QCursor& cursor) { _called = true; return cursor; }; - +#endif + private: bool _passed; bool _called; @@ -543,3 +562,4 @@ public slots: }; #endif +#endif \ No newline at end of file